Files
secondary-school-grade-archive/frontend/dist/assets/index-BFUIx7uW.js
T
dekun 1cb3c7fad5 新增作文区与 AI 解读开关,修复 CSV 导出。
系统设置可关闭成绩复盘 AI;学生详情增加作文区(OCR/手动题目、方案与范文、历史与 MD 下载);导出改用 UTF-8 文件名响应。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 17:42:17 +08:00

518 lines
2.5 MiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z`}}]},name:`check-circle`,theme:`filled`}}));function p(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=p(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function m(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=p(e))&&(r&&(r+=` `),r+=t);return r}var h=l(d()),g=(0,h.createContext)({}),_=`data-rc-order`,v=`data-rc-priority`,y=`rc-util-key`,b=new Map;function x(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function S(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}function C({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:y}function w(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function T(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function E(e){return Array.from((b.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function D(e,t={}){if(!x())return null;let{csp:n,prepend:r,priority:i=0}=t,a=T(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(_,a),o&&i&&s.setAttribute(v,`${i}`),n?.nonce&&(s.nonce=n.nonce),s.innerHTML=e;let c=w(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||E(c)).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(_))?i>=Number(e.getAttribute(v)||0):!1);if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function O(e,t={}){let{styles:n}=t;return n||=E(w(t)),n.find(n=>n.getAttribute(C(t))===e)}function k(e,t){let n=b.get(e);if(!n||!S(document,n)){let n=D(``,t);if(!n)return;let{parentNode:r}=n;b.set(e,r),e.removeChild(n)}}function A(e,t,n={}){if(!x())return null;let r=w(n),i=E(r),a={...n,styles:i};k(r,a);let o=O(t,a);if(o)return a.csp?.nonce&&o.nonce!==a.csp.nonce&&(o.nonce=a.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;let s=D(e,a);return s?.setAttribute(C(a),t),s}function j(e){return e?.getRootNode?.()}function M(e){let t=j(e);return typeof ShadowRoot<`u`&&t instanceof ShadowRoot?t:null}var N={};function P(e,t){e||N[t]||(N[t]=!0)}function F(e){return e.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function I(e,t){P(e,`[@ant-design/icons] ${t}`)}function L(e){return typeof e==`object`&&typeof e.name==`string`&&typeof e.theme==`string`&&(typeof e.icon==`object`||typeof e.icon==`function`)}function R(e={}){return Object.keys(e).reduce((t,n)=>{let r=e[n];switch(n){case`class`:t.className=r,delete t.class;break;default:delete t[n],t[F(n)]=r}return t},{})}function z(e,t,n){return n?h.createElement(e.tag,{key:t,...R(e.attrs),...n},(e.children||[]).map((n,r)=>z(n,`${t}-${e.tag}-${r}`))):h.createElement(e.tag,{key:t,...R(e.attrs)},(e.children||[]).map((n,r)=>z(n,`${t}-${e.tag}-${r}`)))}var B=`
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
vertical-align: inherit;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin {
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,V=e=>{let{csp:t,prefixCls:n,layer:r,zeroRuntime:i}=(0,h.useContext)(g),a=B;n&&(a=a.replace(/anticon/g,n)),r&&(a=`@layer ${r} {\n${a}\n}`),(0,h.useEffect)(()=>{if(i)return;let n=e.current,o=M(n);A(a,`@ant-design-icons`,{prepend:!r,csp:t,attachTo:o})},[])},H=e=>{let{icon:t,className:n,onClick:r,style:i,primaryColor:a,secondaryColor:o,...s}=e,c=h.useRef(null);if(V(c),I(L(t),`icon should be icon definiton, but got ${t}`),!L(t))return null;let l=t;return z(l.icon,`svg-${l.name}`,{className:n,onClick:r,style:i,"data-icon":l.name,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,...s,ref:c})};H.displayName=`IconReact`;function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}var W=h.forwardRef((e,t)=>{let{className:n,icon:r,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:c,...l}=e,{prefixCls:u=`anticon`,rootClassName:d}=h.useContext(g),f=m(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!i||r.name===`loading`},n),p=o;p===void 0&&s&&(p=-1);let _=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0;return h.createElement(`span`,U({role:`img`,"aria-label":r.name},l,{ref:t,tabIndex:p,onClick:s,className:f}),h.createElement(H,{icon:r,style:_}))}),G=l(f());function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}var q=h.forwardRef((e,t)=>h.createElement(W,K({},e,{ref:t,icon:G.default}))),ee=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z`}}]},name:`close-circle`,theme:`filled`}}))());function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},te.apply(this,arguments)}var ne=h.forwardRef((e,t)=>h.createElement(W,te({},e,{ref:t,icon:ee.default}))),re=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z`}}]},name:`close`,theme:`outlined`}}))());function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie.apply(this,arguments)}var ae=h.forwardRef((e,t)=>h.createElement(W,ie({},e,{ref:t,icon:re.default}))),oe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`exclamation-circle`,theme:`filled`}}))());function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se.apply(this,arguments)}var ce=h.forwardRef((e,t)=>h.createElement(W,se({},e,{ref:t,icon:oe.default}))),le=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`info-circle`,theme:`filled`}}))());function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}var de=h.forwardRef((e,t)=>h.createElement(W,ue({},e,{ref:t,icon:le.default}))),fe=e=>{let t=h.useRef(e);return t.current=e,h.useCallback((...e)=>t.current?.(...e),[])};function pe(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var me=pe()?h.useLayoutEffect:h.useEffect,he=(e,t)=>{let n=h.useRef(!0);me(()=>e(n.current),t),me(()=>(n.current=!1,()=>{n.current=!0}),[])},ge=(e,t)=>{he(t=>{if(!t)return e()},t)},_e=e=>{let t=h.useRef(!1),[n,r]=h.useState(e);h.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(e,n){n&&t.current||r(e)}return[n,i]};function ve(e,t){let[n,r]=(0,h.useState)(e),i=t===void 0?n:t;return he(e=>{e||r(t)},[t]),[i,r]}function ye(){return{...h}.useId}var be=0;function xe(e,t){return`${e}-${String(t).replace(/[^a-zA-Z0-9_.:-]/g,`-`)}`}var Se=ye(),Ce=Se?function(e){let t=Se();return e||t}:function(e){let[t,n]=h.useState(`ssr-id`);return h.useEffect(()=>{let e=be;be+=1,n(`rc_unique_${e}`)},[]),e||t};function we(e,t,n){let r=h.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Te(e){let[,t]=h.useReducer(e=>e+1,0),n=h.useRef(e);return[fe(()=>n.current),fe(e=>{n.current=typeof e==`function`?e(n.current):e,t()})]}var Ee=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ForwardRef=l,e.isMemo=function(e){return m(e)===f}})),De=o(((e,t)=>{t.exports=Ee()})),Oe=Symbol.for(`react.element`),ke=Symbol.for(`react.transitional.element`),Ae=Symbol.for(`react.fragment`);function je(e){return e&&typeof e==`object`&&(e.$$typeof===Oe||e.$$typeof===ke)&&e.type===Ae}var Me=De(),Ne=Number(h.version.split(`.`)[0]),Pe=(e,t)=>{typeof e==`function`?e(t):typeof e==`object`&&e&&`current`in e&&(e.current=t)},Fe=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{Pe(e,t)})}},Ie=(...e)=>we(()=>Fe(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),Le=e=>{if(!e)return!1;if(Re(e)&&Ne>=19)return!0;let t=(0,Me.isMemo)(e)?e.type.type:e.type;return!(typeof t==`function`&&!t.prototype?.render&&t.$$typeof!==Me.ForwardRef||typeof e==`function`&&!e.prototype?.render&&e.$$typeof!==Me.ForwardRef)};function Re(e){return(0,h.isValidElement)(e)&&!je(e)}var ze=e=>Re(e)&&Le(e),Be=e=>{if(e&&Re(e)){let t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null};function Ve(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}var He=`data-rc-order`,Ue=`data-rc-priority`,We=`rc-util-key`,Ge=new Map;function Ke({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:We}function qe(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function Je(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function Ye(e){return Array.from((Ge.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function Xe(e,t={}){if(!pe())return null;let{csp:n,prepend:r,priority:i=0}=t,a=Je(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(He,a),o&&i&&s.setAttribute(Ue,`${i}`),n?.nonce&&(s.nonce=n?.nonce),s.innerHTML=e;let c=qe(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||Ye(c)).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(He))?i>=Number(e.getAttribute(Ue)||0):!1);if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function Ze(e,t={}){let{styles:n}=t;return n||=Ye(qe(t)),n.find(n=>n.getAttribute(Ke(t))===e)}function Qe(e,t={}){let n=Ze(e,t);n&&qe(t).removeChild(n)}function $e(e,t){let n=Ge.get(e);if(!n||!Ve(document,n)){let n=Xe(``,t),{parentNode:r}=n;Ge.set(e,r),e.removeChild(n)}}function et(e,t,n={}){let r=qe(n),i=Ye(r),a={...n,styles:i};$e(r,a);let o=Ze(t,a);if(o)return a.csp?.nonce&&o.nonce!==a.csp?.nonce&&(o.nonce=a.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;let s=Xe(e,a);return s.setAttribute(Ke(a),t),s}function tt(e){return e instanceof HTMLElement||e instanceof SVGElement}function nt(e){return e&&typeof e==`object`&&tt(e.nativeElement)?e.nativeElement:tt(e)?e:null}var rt=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){let{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function it(e,t=!1){if(rt(e)){let n=e.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(n)||e.isContentEditable||n===`a`&&!!e.getAttribute(`href`),i=e.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function at(e,t=!1){let n=[...e.querySelectorAll(`*`)].filter(e=>it(e,t));return it(e,t)&&n.unshift(e),n}function ot(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let t=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var st=null,ct=[],lt=new Map,ut=new Map;function dt(){return ct[ct.length-1]}function ft(e){let t=dt();if(e&&t){let n;for(let[e,r]of lt.entries())if(r===t){n=e;break}let r=ut.get(n);return!!r&&(r===e||r.contains(e))}return!1}function pt(e){let{activeElement:t}=document;return e===t||e.contains(t)}function mt(){let e=dt(),{activeElement:t}=document;if(!ft(t))if(e&&!pt(e)){let t=at(e);(t.includes(st)?st:t[0])?.focus({preventScroll:!0})}else st=t}function ht(e){if(e.key===`Tab`){let{activeElement:t}=document,n=at(dt()),r=n[n.length-1];e.shiftKey&&t===n[0]?st=r:!e.shiftKey&&t===r&&(st=n[0])}}function gt(e,t){return e&&(lt.set(t,e),ct=ct.filter(t=>t!==e),ct.push(e),window.addEventListener(`focusin`,mt),window.addEventListener(`keydown`,ht,!0),mt()),()=>{st=null,ct=ct.filter(t=>t!==e),lt.delete(t),ut.delete(t),ct.length===0&&(window.removeEventListener(`focusin`,mt),window.removeEventListener(`keydown`,ht,!0))}}function _t(e,t){let n=(0,h.useRef)(0),[r,i]=(0,h.useState)(0);(0,h.useEffect)(()=>{n.current=0},t),(0,h.useEffect)(()=>{let[t,r]=e(n.current);return r||(n.current+=1,i(e=>e+1)),t},[...t,r])}function vt(e,t){let n=Ce(),r=(0,h.useRef)(t);return r.current=t,_t(t=>{if(!e)return[void 0,!0];let i=r.current();return i?[gt(i,n),!0]:[void 0,t>=1]},[n,e]),[e=>{e&&ut.set(n,e)}]}function yt(e){return e?.getRootNode?.()}function bt(e){return yt(e)instanceof ShadowRoot}function xt(e){return bt(e)?yt(e):null}var St=e=>{if(pe()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},Ct=(e,t)=>{if(!St(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function wt(e,t){return!Array.isArray(e)&&t!==void 0?Ct(e,t):St(e)}var Tt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){let{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Tt.F1&&t<=Tt.F12)return!1;switch(t){case Tt.ALT:case Tt.CAPS_LOCK:case Tt.CONTEXT_MENU:case Tt.CTRL:case Tt.DOWN:case Tt.END:case Tt.ESC:case Tt.HOME:case Tt.INSERT:case Tt.LEFT:case Tt.MAC_FF_META:case Tt.META:case Tt.NUMLOCK:case Tt.NUM_CENTER:case Tt.PAGE_DOWN:case Tt.PAGE_UP:case Tt.PAUSE:case Tt.PRINT_SCREEN:case Tt.RIGHT:case Tt.SHIFT:case Tt.UP:case Tt.WIN_KEY:case Tt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Tt.ZERO&&e<=Tt.NINE||e>=Tt.NUM_ZERO&&e<=Tt.NUM_MULTIPLY||e>=Tt.A&&e<=Tt.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case Tt.SPACE:case Tt.QUESTION_MARK:case Tt.NUM_PLUS:case Tt.NUM_MINUS:case Tt.NUM_PERIOD:case Tt.NUM_DIVISION:case Tt.SEMICOLON:case Tt.DASH:case Tt.EQUALS:case Tt.COMMA:case Tt.PERIOD:case Tt.SLASH:case Tt.APOSTROPHE:case Tt.SINGLE_QUOTE:case Tt.OPEN_SQUARE_BRACKET:case Tt.BACKSLASH:case Tt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){let t=e.target;if(!(t instanceof HTMLElement))return!1;let n=t.tagName;return!!(n===`INPUT`||n===`TEXTAREA`||n===`SELECT`||t.isContentEditable)}},Et;function Dt(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement(`div`);n.id=t;let r=n.style;r.position=`absolute`,r.left=`0`,r.top=`0`,r.width=`100px`,r.height=`100px`,r.overflow=`scroll`;let i,a;if(e){let n=getComputedStyle(e);r.scrollbarColor=n.scrollbarColor,r.scrollbarWidth=n.scrollbarWidth;let o=getComputedStyle(e,`::-webkit-scrollbar`),s=parseInt(o.width,10),c=parseInt(o.height,10);try{et(`
#${t}::-webkit-scrollbar {
${s?`width: ${o.width};`:``}
${c?`height: ${o.height};`:``}
}`,t)}catch(e){console.error(e),i=s,a=c}}document.body.appendChild(n);let o=e&&i&&!Number.isNaN(i)?i:n.offsetWidth-n.clientWidth,s=e&&a&&!Number.isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Qe(t),{width:o,height:s}}function Ot(e){return typeof document>`u`?0:((e||Et===void 0)&&(Et=Dt()),Et.width)}function kt(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:Dt(e)}var At={},jt=[],Mt=e=>{jt.push(e)};function Nt(e,t){}function Pt(e,t){}function Ft(){At={}}function It(e,t,n){!t&&!At[n]&&(e(!1,n),At[n]=!0)}function Lt(e,t){It(Nt,e,t)}function Rt(e,t){It(Pt,e,t)}Lt.preMessage=Mt,Lt.resetWarned=Ft,Lt.noteOnce=Rt;function zt(e,t,n=!1){let r=new Set;function i(e,t,a=1){let o=r.has(e);if(Lt(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);let s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n],s))return!1;return!0}if(e&&t&&typeof e==`object`&&typeof t==`object`){let n=Object.keys(e);return n.length===Object.keys(t).length?n.every(n=>i(e[n],t[n],s)):!1}return!1}return i(e,t)}var eee=l(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),Bt,Vt=()=>(Bt===void 0&&(Bt=(0,eee.default)()),Bt);function Ht(e,t){let n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}var Ut=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),Wt=`aria-`,Gt=`data-`;function Kt(e,t){return e.indexOf(t)===0}function qt(e,t=!1){let n;n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:{...t};let r={};return Object.keys(e).forEach(t=>{(n.aria&&(t===`role`||Kt(t,Wt))||n.data&&Kt(t,Gt)||n.attr&&Ut.includes(t))&&(r[t]=e[t])}),r}function Jt(e,t){return typeof Proxy<`u`&&e?new Proxy(e,{get(e,n){if(t[n])return t[n];let r=e[n];return typeof r==`function`?r.bind(e):r}}):e}var Yt=e=>+setTimeout(e,16),Xt=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(Yt=e=>window.requestAnimationFrame(e),Xt=e=>window.cancelAnimationFrame(e));var Zt=0,Qt=new Map;function $t(e){Qt.delete(e)}var en=(e,t=1)=>{Zt+=1;let n=Zt;function r(t){if(t===0)$t(n),e();else{let e=Yt(()=>{r(t-1)});Qt.set(n,e)}}return r(t),n};en.cancel=e=>{let t=Qt.get(e);return $t(e),Xt(t)};function tn(e,t={}){let n=[];return h.Children.forEach(e,e=>{e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(tn(e)):je(e)&&e.props?n=n.concat(tn(e.props.children,t)):n.push(e))}),n}function nn(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n))n[e]!==void 0&&(t[e]=n[e]);return t}function rn(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(n==null)return;n=n[t[e]]}return n}function an(e,t,n,r){if(!t.length)return n;let[i,...a]=t,o;return o=!e&&typeof i==`number`?[]:Array.isArray(e)?[...e]:{...e},r&&n===void 0&&a.length===1?delete o[i][a[0]]:o[i]=an(o[i],a,n,r),o}function on(e,t,n,r=!1){return t.length&&r&&n===void 0&&!rn(e,t.slice(0,-1))?e:an(e,t,n,r)}function sn(e){return typeof e==`object`&&!!e&&Object.getPrototypeOf(e)===Object.prototype}function cn(e){return Array.isArray(e)?[]:{}}var ln=typeof Reflect>`u`?Object.keys:Reflect.ownKeys;function un(e,t={}){let{prepareArray:n}=t,r=n||(()=>[]),i=cn(e[0]);return e.forEach(e=>{function t(n,a){let o=new Set(a),s=rn(e,n),c=Array.isArray(s);if(c||sn(s)){if(!o.has(s)){o.add(s);let e=rn(i,n);c?i=on(i,n,r(e,s)):(!e||typeof e!=`object`)&&(i=on(i,n,cn(s))),ln(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],o)})}}else i=on(i,n,s)}t([])}),i}function dn(...e){return un(e)}var fn=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),tee=o(((e,t)=>{t.exports=fn()})),pn=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),nee=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=pn()})),mn=o((e=>{var t=tee(),n=d(),r=nee();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),k=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=k&&e[k]||e[`@@iterator`],typeof e==`function`?e:null)}var j=Symbol.for(`react.client.reference`);function M(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?M(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return M(e(t))}catch{}}return null}var N=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},L=[],R=-1;function z(e){return{current:e}}function B(e){0>R||(e.current=L[R],L[R]=null,R--)}function V(e,t){R++,L[R]=e.current,e.current=t}var H=z(null),U=z(null),W=z(null),G=z(null);function K(e,t){switch(V(W,t),V(U,e),V(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ad(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ad(t),e=jd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}B(H),V(H,e)}function q(){B(H),B(U),B(W)}function ee(e){e.memoizedState!==null&&V(G,e);var t=H.current,n=jd(t,e.type);t!==n&&(V(U,e),V(H,n))}function te(e){U.current===e&&(B(H),B(U)),G.current===e&&(B(G),Rf._currentValue=I)}var ne,re;function ie(e){if(ne===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ne=t&&t[1]||``,re=-1<e.stack.indexOf(`
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+ne+e+re}var ae=!1;function oe(e,t){if(!e||ae)return``;ae=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ae=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ie(n):``}function se(e,t){switch(e.tag){case 26:case 27:case 5:return ie(e.type);case 16:return ie(`Lazy`);case 13:return e.child!==t&&t!==null?ie(`Suspense Fallback`):ie(`Suspense`);case 19:return ie(`SuspenseList`);case 0:case 15:return oe(e.type,!1);case 11:return oe(e.type.render,!1);case 1:return oe(e.type,!0);case 31:return ie(`Activity`);default:return``}}function ce(e){try{var t=``,n=null;do t+=se(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var le=Object.prototype.hasOwnProperty,ue=t.unstable_scheduleCallback,de=t.unstable_cancelCallback,fe=t.unstable_shouldYield,pe=t.unstable_requestPaint,me=t.unstable_now,he=t.unstable_getCurrentPriorityLevel,ge=t.unstable_ImmediatePriority,_e=t.unstable_UserBlockingPriority,ve=t.unstable_NormalPriority,ye=t.unstable_LowPriority,be=t.unstable_IdlePriority,xe=t.log,Se=t.unstable_setDisableYieldValue,Ce=null,we=null;function Te(e){if(typeof xe==`function`&&Se(e),we&&typeof we.setStrictMode==`function`)try{we.setStrictMode(Ce,e)}catch{}}var Ee=Math.clz32?Math.clz32:ke,De=Math.log,Oe=Math.LN2;function ke(e){return e>>>=0,e===0?32:31-(De(e)/Oe|0)|0}var Ae=256,je=262144,Me=4194304;function Ne(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Pe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ne(n))):i=Ne(o):i=Ne(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ne(n))):i=Ne(o)):i=Ne(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Fe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ie(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Le(){var e=Me;return Me<<=1,!(Me&62914560)&&(Me=4194304),e}function Re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Be(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ee(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ve(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ve(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ee(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function He(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ee(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ue(e,t){var n=t&-t;return n=n&42?1:We(n),(n&(e.suspendedLanes|t))===0?n:0}function We(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ge(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ke(){var e=F.p;return e===0?(e=window.event,e===void 0?32:ep(e.type)):e}function qe(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Je=Math.random().toString(36).slice(2),Ye=`__reactFiber$`+Je,Xe=`__reactProps$`+Je,Ze=`__reactContainer$`+Je,Qe=`__reactEvents$`+Je,$e=`__reactListeners$`+Je,et=`__reactHandles$`+Je,tt=`__reactResources$`+Je,nt=`__reactMarker$`+Je;function rt(e){delete e[Ye],delete e[Xe],delete e[Qe],delete e[$e],delete e[et]}function it(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ze]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xd(e);e!==null;){if(n=e[Ye])return n;e=Xd(e)}return t}e=n,n=e.parentNode}return null}function at(e){if(e=e[Ye]||e[Ze]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function st(e){var t=e[tt];return t||=e[tt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ct(e){e[nt]=!0}var lt=new Set,ut={};function dt(e,t){ft(e,t),ft(e+`Capture`,t)}function ft(e,t){for(ut[e]=t,e=0;e<t.length;e++)lt.add(t[e])}var pt=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]*$`),mt={},ht={};function gt(e){return le.call(ht,e)?!0:le.call(mt,e)?!1:pt.test(e)?ht[e]=!0:(mt[e]=!0,!1)}function _t(e,t,n){if(gt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function vt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function yt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function bt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function xt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function St(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ct(e){if(!e._valueTracker){var t=xt(e)?`checked`:`value`;e._valueTracker=St(e,t,``+e[t])}}function wt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=xt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Tt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Et=/[\n"\\]/g;function Dt(e){return e.replace(Et,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ot(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+bt(t)):e.value!==``+bt(t)&&(e.value=``+bt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):At(e,o,bt(n)):At(e,o,bt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+bt(s):e.removeAttribute(`name`)}function kt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ct(e);return}n=n==null?``:``+bt(n),t=t==null?n:``+bt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ct(e)}function At(e,t,n){t===`number`&&Tt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function jt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Mt(e,t,n){if(t!=null&&(t=``+bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+bt(n)}function Nt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(N(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=bt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ct(e)}function Pt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ft=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 It(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Ft.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Lt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&It(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&It(e,o,t[o])}function Rt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 zt=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`]]),eee=/^[\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 Bt(e){return eee.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Vt(){}var Ht=null;function Ut(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wt=null,Gt=null;function Kt(e){var t=at(e);if(t&&(e=t.stateNode)){var n=e[Xe]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ot(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Dt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Xe]||null;if(!a)throw Error(i(90));Ot(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&wt(r)}break a;case`textarea`:Mt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&jt(e,!!n.multiple,t,!1)}}}var qt=!1;function Jt(e,t,n){if(qt)return e(t,n);qt=!0;try{return e(t)}finally{if(qt=!1,(Wt!==null||Gt!==null)&&(lu(),Wt&&(t=Wt,e=Gt,Gt=Wt=null,Kt(t),e)))for(t=0;t<e.length;t++)Kt(e[t])}}function Yt(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Xe]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Xt=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Zt=!1;if(Xt)try{var Qt={};Object.defineProperty(Qt,"passive",{get:function(){Zt=!0}}),window.addEventListener(`test`,Qt,Qt),window.removeEventListener(`test`,Qt,Qt)}catch{Zt=!1}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t=en,n=t.length,r,i=`value`in $t?$t.value:$t.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return tn=i.slice(e,1<r?1-r:void 0)}function rn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?an:on,this.isPropagationStopped=on,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=sn(cn),un=p({},cn,{view:0,detail:0}),dn=sn(un),fn,pn,mn,hn=p({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==mn&&(mn&&e.type===`mousemove`?(fn=e.screenX-mn.screenX,pn=e.screenY-mn.screenY):pn=fn=0,mn=e),fn)},movementY:function(e){return`movementY`in e?e.movementY:pn}}),gn=sn(hn),_n=sn(p({},hn,{dataTransfer:0})),vn=sn(p({},un,{relatedTarget:0})),yn=sn(p({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=sn(p({},cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),xn=sn(p({},cn,{data:0})),Sn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Cn={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`},wn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wn[e])?!!t[e]:!1}function En(){return Tn}var Dn=sn(p({},un,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=rn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Cn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return e.type===`keypress`?rn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?rn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),On=sn(p({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=sn(p({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),ree=sn(p({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=sn(p({},hn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),iee=sn(p({},cn,{newState:0,oldState:0})),aee=[9,13,27,32],jn=Xt&&`CompositionEvent`in window,Mn=null;Xt&&`documentMode`in document&&(Mn=document.documentMode);var Nn=Xt&&`TextEvent`in window&&!Mn,Pn=Xt&&(!jn||Mn&&8<Mn&&11>=Mn),Fn=` `,In=!1;function Ln(e,t){switch(e){case`keyup`:return aee.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Rn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var zn=!1;function Bn(e,t){switch(e){case`compositionend`:return Rn(t);case`keypress`:return t.which===32?(In=!0,Fn):null;case`textInput`:return e=t.data,e===Fn&&In?null:e;default:return null}}function Vn(e,t){if(zn)return e===`compositionend`||!jn&&Ln(e,t)?(e=nn(),tn=en=$t=null,zn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Pn&&t.locale!==`ko`?null:t.data;default:return null}}var oee={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!oee[e.type]:t===`textarea`}function Un(e,t,n,r){Wt?Gt?Gt.push(r):Gt=[r]:Wt=r,t=md(t,`onChange`),0<t.length&&(n=new ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Gn=null;function Kn(e){od(e,0)}function qn(e){if(wt(ot(e)))return e}function Jn(e,t){if(e===`change`)return t}var Yn=!1;if(Xt){var Xn;if(Xt){var Zn=`oninput`in document;if(!Zn){var Qn=document.createElement(`div`);Qn.setAttribute(`oninput`,`return;`),Zn=typeof Qn.oninput==`function`}Xn=Zn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function $n(){Wn&&(Wn.detachEvent(`onpropertychange`,er),Gn=Wn=null)}function er(e){if(e.propertyName===`value`&&qn(Gn)){var t=[];Un(t,Gn,e,Ut(e)),Jt(Kn,t)}}function see(e,t,n){e===`focusin`?($n(),Wn=t,Gn=n,Wn.attachEvent(`onpropertychange`,er)):e===`focusout`&&$n()}function tr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return qn(Gn)}function nr(e,t){if(e===`click`)return qn(t)}function rr(e,t){if(e===`input`||e===`change`)return qn(t)}function ir(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var ar=typeof Object.is==`function`?Object.is:ir;function or(e,t){if(ar(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!le.call(t,i)||!ar(e[i],t[i]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n=sr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=sr(n)}}function lr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ur(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Tt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Tt(e.document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var fr=Xt&&`documentMode`in document&&11>=document.documentMode,pr=null,mr=null,hr=null,gr=!1;function _r(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gr||pr==null||pr!==Tt(r)||(r=pr,`selectionStart`in r&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hr&&or(hr,r)||(hr=r,r=md(mr,`onSelect`),0<r.length&&(t=new ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function vr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var yr={animationend:vr(`Animation`,`AnimationEnd`),animationiteration:vr(`Animation`,`AnimationIteration`),animationstart:vr(`Animation`,`AnimationStart`),transitionrun:vr(`Transition`,`TransitionRun`),transitionstart:vr(`Transition`,`TransitionStart`),transitioncancel:vr(`Transition`,`TransitionCancel`),transitionend:vr(`Transition`,`TransitionEnd`)},br={},xr={};Xt&&(xr=document.createElement(`div`).style,`AnimationEvent`in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),`TransitionEvent`in window||delete yr.transitionend.transition);function Sr(e){if(br[e])return br[e];if(!yr[e])return e;var t=yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xr)return br[e]=t[n];return e}var Cr=Sr(`animationend`),wr=Sr(`animationiteration`),Tr=Sr(`animationstart`),Er=Sr(`transitionrun`),Dr=Sr(`transitionstart`),Or=Sr(`transitioncancel`),kr=Sr(`transitionend`),Ar=new Map,jr=`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(` `);jr.push(`scrollEnd`);function Mr(e,t){Ar.set(e,t),dt(t,[e])}var Nr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Pr=[],Fr=0,Ir=0;function Lr(){for(var e=Fr,t=Ir=Fr=0;t<e;){var n=Pr[t];Pr[t++]=null;var r=Pr[t];Pr[t++]=null;var i=Pr[t];Pr[t++]=null;var a=Pr[t];if(Pr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Vr(n,i,a)}}function Rr(e,t,n,r){Pr[Fr++]=e,Pr[Fr++]=t,Pr[Fr++]=n,Pr[Fr++]=r,Ir|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function zr(e,t,n,r){return Rr(e,t,n,r),Hr(e)}function Br(e,t){return Rr(e,null,null,t),Hr(e)}function Vr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ee(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Hr(e){if(50<eu)throw eu=0,tu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ur={};function Wr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gr(e,t,n,r){return new Wr(e,t,n,r)}function Kr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qr(e,t){var n=e.alternate;return n===null?(n=Gr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Jr(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Yr(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)Kr(e)&&(s=1);else if(typeof e==`string`)s=kf(e,n,H.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=Gr(31,n,t,a),e.elementType=D,e.lanes=o,e;case _:return Xr(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=Gr(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=Gr(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=Gr(19,n,t,a),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case T:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Gr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Xr(e,t,n,r){return e=Gr(7,e,r,t),e.lanes=n,e}function Zr(e,t,n){return e=Gr(6,e,null,t),e.lanes=n,e}function Qr(e){var t=Gr(18,null,null,0);return t.stateNode=e,t}function $r(e,t,n){return t=Gr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ei=new WeakMap;function ti(e,t){if(typeof e==`object`&&e){var n=ei.get(e);return n===void 0?(t={value:e,source:t,stack:ce(t)},ei.set(e,t),t):n}return{value:e,source:t,stack:ce(t)}}var ni=[],ri=0,ii=null,ai=0,oi=[],si=0,J=null,ci=1,li=``;function ui(e,t){ni[ri++]=ai,ni[ri++]=ii,ii=e,ai=t}function di(e,t,n){oi[si++]=ci,oi[si++]=li,oi[si++]=J,J=e;var r=ci;e=li;var i=32-Ee(r)-1;r&=~(1<<i),n+=1;var a=32-Ee(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ci=1<<32-Ee(t)+i|n<<i|r,li=a+e}else ci=1<<a|n<<i|r,li=e}function fi(e){e.return!==null&&(ui(e,1),di(e,1,0))}function pi(e){for(;e===ii;)ii=ni[--ri],ni[ri]=null,ai=ni[--ri],ni[ri]=null;for(;e===J;)J=oi[--si],oi[si]=null,li=oi[--si],oi[si]=null,ci=oi[--si],oi[si]=null}function mi(e,t){oi[si++]=ci,oi[si++]=li,oi[si++]=J,ci=t.id,li=t.overflow,J=e}var hi=null,gi=null,_i=!1,vi=null,yi=!1,bi=Error(i(519));function xi(e){throw Di(ti(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),bi}function Si(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ye]=e,t[Xe]=r,n){case`dialog`:sd(`cancel`,t),sd(`close`,t);break;case`iframe`:case`object`:case`embed`:sd(`load`,t);break;case`video`:case`audio`:for(n=0;n<ad.length;n++)sd(ad[n],t);break;case`source`:sd(`error`,t);break;case`img`:case`image`:case`link`:sd(`error`,t),sd(`load`,t);break;case`details`:sd(`toggle`,t);break;case`input`:sd(`invalid`,t),kt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:sd(`invalid`,t);break;case`textarea`:sd(`invalid`,t),Nt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||bd(t.textContent,n)?(r.popover!=null&&(sd(`beforetoggle`,t),sd(`toggle`,t)),r.onScroll!=null&&sd(`scroll`,t),r.onScrollEnd!=null&&sd(`scrollend`,t),r.onClick!=null&&(t.onclick=Vt),t=!0):t=!1,t||xi(e,!0)}function Ci(e){for(hi=e.return;hi;)switch(hi.tag){case 5:case 31:case 13:yi=!1;return;case 27:case 3:yi=!0;return;default:hi=hi.return}}function wi(e){if(e!==hi)return!1;if(!_i)return Ci(e),_i=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Md(e.type,e.memoizedProps)),n=!n),n&&gi&&xi(e),Ci(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));gi=Yd(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));gi=Yd(e)}else t===27?(t=gi,zd(e.type)?(e=Jd,Jd=null,gi=e):gi=t):gi=hi?qd(e.stateNode.nextSibling):null;return!0}function Ti(){gi=hi=null,_i=!1}function Ei(){var e=vi;return e!==null&&(Bl===null?Bl=e:Bl.push.apply(Bl,e),vi=null),e}function Di(e){vi===null?vi=[e]:vi.push(e)}var Oi=z(null),ki=null,Ai=null;function ji(e,t,n){V(Oi,t._currentValue),t._currentValue=n}function Mi(e){e._currentValue=Oi.current,B(Oi)}function Ni(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Pi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ni(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ni(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Fi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;ar(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===G.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Rf]:e.push(Rf))}a=a.return}e!==null&&Pi(t,e,n,r),t.flags|=262144}function Ii(e){for(e=e.firstContext;e!==null;){if(!ar(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Li(e){ki=e,Ai=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ri(e){return Bi(ki,e)}function zi(e,t){return ki===null&&Li(e),Bi(e,t)}function Bi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ai===null){if(e===null)throw Error(i(308));Ai=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ai=Ai.next=t;return n}var Vi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Hi=t.unstable_scheduleCallback,Ui=t.unstable_NormalPriority,Wi={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gi(){return{controller:new Vi,data:new Map,refCount:0}}function Ki(e){e.refCount--,e.refCount===0&&Hi(Ui,function(){e.controller.abort()})}var qi=null,Ji=0,Yi=0,Xi=null;function Zi(e,t){if(qi===null){var n=qi=[];Ji=0,Yi=ed(),Xi={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ji++,t.then(Qi,Qi),t}function Qi(){if(--Ji===0&&qi!==null){Xi!==null&&(Xi.status=`fulfilled`);var e=qi;qi=null,Yi=0,Xi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $i(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ea=P.S;P.S=function(e,t){Ul=me(),typeof t==`object`&&t&&typeof t.then==`function`&&Zi(e,t),ea!==null&&ea(e,t)};var ta=z(null);function na(){var e=ta.current;return e===null?wl.pooledCache:e}function ra(e,t){t===null?V(ta,ta.current):V(ta,t.pool)}function ia(){var e=na();return e===null?null:{parent:Wi._currentValue,pool:e}}var aa=Error(i(460)),oa=Error(i(474)),sa=Error(i(542)),ca={then:function(){}};function la(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ua(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Vt,Vt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ma(e),e;default:if(typeof t.status==`string`)t.then(Vt,Vt);else{if(e=wl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ma(e),e}throw fa=t,aa}}function da(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(fa=e,aa):e}}var fa=null;function pa(){if(fa===null)throw Error(i(459));var e=fa;return fa=null,e}function ma(e){if(e===aa||e===sa)throw Error(i(483))}var ha=null,ga=0;function _a(e){var t=ga;return ga+=1,ha===null&&(ha=[]),ua(ha,e,t)}function va(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ya(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ba(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=qr(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Zr(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===E&&da(i)===t.type)?(t=a(t,n.props),va(t,n),t.return=e,t):(t=Yr(n.type,n.key,n.props,null,e.mode,r),va(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=$r(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Xr(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Zr(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=Yr(t.type,t.key,t.props,null,e.mode,n),va(n,t),n.return=e,n;case g:return t=$r(t,e.mode,n),t.return=e,t;case E:return t=da(t),f(e,t,n)}if(N(t)||A(t))return t=Xr(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,_a(t),n);if(t.$$typeof===x)return f(e,zi(e,t),n);ya(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case E:return n=da(n),p(e,t,n,r)}if(N(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,_a(n),r);if(n.$$typeof===x)return p(e,t,zi(e,n),r);ya(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=da(r),m(e,t,n,r,i)}if(N(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,_a(r),i);if(r.$$typeof===x)return m(e,t,n,zi(t,r),i);ya(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),_i&&ui(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return _i&&ui(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),_i&&ui(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),_i&&ui(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return _i&&ui(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),_i&&ui(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&da(l)===r.type){n(e,r.sibling),c=a(r,o.props),va(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=Xr(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=Yr(o.type,o.key,o.props,null,e.mode,c),va(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=$r(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=da(o),b(e,r,o,c)}if(N(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,_a(o),c);if(o.$$typeof===x)return b(e,r,zi(e,o),c);ya(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Zr(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ga=0;var i=b(e,t,n,r);return ha=null,i}catch(t){if(t===aa||t===sa)throw t;var a=Gr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var xa=ba(!0),Sa=ba(!1),Ca=!1;function wa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ta(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ea(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Cl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Hr(e),Vr(e,null,n),t}return Rr(e,r,t,n),Hr(e)}function Oa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,He(e,n)}}function ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Aa=!1;function ja(){if(Aa){var e=Xi;if(e!==null)throw e}}function Ma(e,t,n,r){Aa=!1;var i=e.updateQueue;Ca=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(El&f)===f:(r&f)===f){f!==0&&f===Yi&&(Aa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Ca=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Pl|=o,e.lanes=o,e.memoizedState=d}}function Na(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Pa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Na(n[e],t)}var Fa=z(null),Ia=z(0);function La(e,t){e=Ml,V(Ia,e),V(Fa,t),Ml=e|t.baseLanes}function Ra(){V(Ia,Ml),V(Fa,Fa.current)}function za(){Ml=Ia.current,B(Fa),B(Ia)}var Ba=z(null),Va=null;function Ha(e){var t=e.alternate;V(qa,qa.current&1),V(Ba,e),Va===null&&(t===null||Fa.current!==null||t.memoizedState!==null)&&(Va=e)}function Ua(e){V(qa,qa.current),V(Ba,e),Va===null&&(Va=e)}function Wa(e){e.tag===22?(V(qa,qa.current),V(Ba,e),Va===null&&(Va=e)):Ga(e)}function Ga(){V(qa,qa.current),V(Ba,Ba.current)}function Ka(e){B(Ba),Va===e&&(Va=null),B(qa)}var qa=z(0);function Ja(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Wd(n)||Gd(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ya=0,Xa=null,Za=null,Qa=null,$a=!1,eo=!1,to=!1,no=0,ro=0,io=null,ao=0;function oo(){throw Error(i(321))}function so(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function co(e,t,n,r,i,a){return Ya=a,Xa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?ws:Ts,to=!1,a=n(r,i),to=!1,eo&&(a=uo(t,n,r,i)),lo(e),a}function lo(e){P.H=Cs;var t=Za!==null&&Za.next!==null;if(Ya=0,Qa=Za=Xa=null,$a=!1,ro=0,io=null,t)throw Error(i(300));e===null||Hs||(e=e.dependencies,e!==null&&Ii(e)&&(Hs=!0))}function uo(e,t,n,r){Xa=e;var a=0;do{if(eo&&(io=null),ro=0,eo=!1,25<=a)throw Error(i(301));if(a+=1,Qa=Za=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=Es,o=t(n,r)}while(eo);return o}function fo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?yo(t):t,e=e.useState()[0],(Za===null?null:Za.memoizedState)!==e&&(Xa.flags|=1024),t}function po(){var e=no!==0;return no=0,e}function mo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ho(e){if($a){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$a=!1}Ya=0,Qa=Za=Xa=null,eo=!1,ro=no=0,io=null}function go(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qa===null?Xa.memoizedState=Qa=e:Qa=Qa.next=e,Qa}function _o(){if(Za===null){var e=Xa.alternate;e=e===null?null:e.memoizedState}else e=Za.next;var t=Qa===null?Xa.memoizedState:Qa.next;if(t!==null)Qa=t,Za=e;else{if(e===null)throw Xa.alternate===null?Error(i(467)):Error(i(310));Za=e,e={memoizedState:Za.memoizedState,baseState:Za.baseState,baseQueue:Za.baseQueue,queue:Za.queue,next:null},Qa===null?Xa.memoizedState=Qa=e:Qa=Qa.next=e}return Qa}function vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yo(e){var t=ro;return ro+=1,io===null&&(io=[]),e=ua(io,e,t),t=Xa,(Qa===null?t.memoizedState:Qa.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?ws:Ts),e}function bo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return yo(e);if(e.$$typeof===x)return Ri(e)}throw Error(i(438,String(e)))}function xo(e){var t=null,n=Xa.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Xa.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=vo(),Xa.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function So(e,t){return typeof t==`function`?t(e):t}function Co(e){return wo(_o(),Za,e)}function wo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ya&f)===f:(El&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Yi&&(d=!0);else if((Ya&p)===p){u=u.next,p===Yi&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Xa.lanes|=p,Pl|=p;f=u.action,to&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Xa.lanes|=f,Pl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!ar(o,e.memoizedState)&&(Hs=!0,d&&(n=Xi,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function To(e){var t=_o(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);ar(o,t.memoizedState)||(Hs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Eo(e,t,n){var r=Xa,a=_o(),o=_i;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!ar((Za||a).memoizedState,n);if(s&&(a.memoizedState=n,Hs=!0),a=a.queue,Xo(ko.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||Qa!==null&&Qa.memoizedState.tag&1){if(r.flags|=2048,Go(9,{destroy:void 0},Oo.bind(null,r,a,n,t),null),wl===null)throw Error(i(349));o||Ya&127||Do(r,t,n)}return n}function Do(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Xa.updateQueue,t===null?(t=vo(),Xa.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Oo(e,t,n,r){t.value=n,t.getSnapshot=r,Ao(t)&&jo(e)}function ko(e,t,n){return n(function(){Ao(t)&&jo(e)})}function Ao(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch{return!0}}function jo(e){var t=Br(e,2);t!==null&&iu(t,e,2)}function Mo(e){var t=go();if(typeof e==`function`){var n=e;if(e=n(),to){Te(!0);try{n()}finally{Te(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:e},t}function No(e,t,n,r){return e.baseState=n,wo(e,Za,typeof r==`function`?r:So)}function cee(e,t,n,r,a){if(bs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Po(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Po(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Fo(e,t,s)}catch(n){Lo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Fo(e,t,a)}catch(n){Lo(e,t,n)}}function Fo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Io(e,t,n)},function(n){return Lo(e,t,n)}):Io(e,t,n)}function Io(e,t,n){t.status=`fulfilled`,t.value=n,Ro(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Po(e,n)))}function Lo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ro(t),t=t.next;while(t!==r)}e.action=null}function Ro(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zo(e,t){return t}function Bo(e,t){if(_i){var n=wl.formState;if(n!==null){a:{var r=Xa;if(_i){if(gi){b:{for(var i=gi,a=yi;i.nodeType!==8;){if(!a){i=null;break b}if(i=qd(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){gi=qd(i.nextSibling),r=i.data===`F!`;break a}}xi(r)}r=!1}r&&(t=n[0])}}return n=go(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:t},n.queue=r,n=_s.bind(null,Xa,r),r.dispatch=n,r=Mo(!1),a=ys.bind(null,Xa,!1,r.queue),r=go(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=cee.bind(null,Xa,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Vo(e){return Ho(_o(),Za,e)}function Ho(e,t,n){if(t=wo(e,t,zo)[0],e=Co(So)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=yo(t)}catch(e){throw e===aa?sa:e}else r=t;t=_o();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Xa.flags|=2048,Go(9,{destroy:void 0},Uo.bind(null,i,n),null)),[r,a,e]}function Uo(e,t){e.action=t}function Wo(e){var t=_o(),n=Za;if(n!==null)return Ho(t,n,e);_o(),t=t.memoizedState,n=_o();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Go(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Xa.updateQueue,t===null&&(t=vo(),Xa.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ko(){return _o().memoizedState}function qo(e,t,n,r){var i=go();Xa.flags|=e,i.memoizedState=Go(1|t,{destroy:void 0},n,r===void 0?null:r)}function Jo(e,t,n,r){var i=_o();r=r===void 0?null:r;var a=i.memoizedState.inst;Za!==null&&r!==null&&so(r,Za.memoizedState.deps)?i.memoizedState=Go(t,a,n,r):(Xa.flags|=e,i.memoizedState=Go(1|t,a,n,r))}function Yo(e,t){qo(8390656,8,e,t)}function Xo(e,t){Jo(2048,8,e,t)}function Zo(e){Xa.flags|=4;var t=Xa.updateQueue;if(t===null)t=vo(),Xa.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Qo(e){var t=_o().memoizedState;return Zo({ref:t,nextImpl:e}),function(){if(Cl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function $o(e,t){return Jo(4,2,e,t)}function es(e,t){return Jo(4,4,e,t)}function ts(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ns(e,t,n){n=n==null?null:n.concat([e]),Jo(4,4,ts.bind(null,t,e),n)}function rs(){}function is(e,t){var n=_o();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&so(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function as(e,t){var n=_o();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&so(t,r[1]))return r[0];if(r=e(),to){Te(!0);try{e()}finally{Te(!1)}}return n.memoizedState=[r,t],r}function os(e,t,n){return n===void 0||Ya&1073741824&&!(El&261930)?e.memoizedState=t:(e.memoizedState=n,e=ru(),Xa.lanes|=e,Pl|=e,n)}function ss(e,t,n,r){return ar(n,t)?n:Fa.current===null?!(Ya&42)||Ya&1073741824&&!(El&261930)?(Hs=!0,e.memoizedState=n):(e=ru(),Xa.lanes|=e,Pl|=e,t):(e=os(e,n,r),ar(e,t)||(Hs=!0),e)}function cs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,ys(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?vs(e,t,$i(c,r),nu(e)):vs(e,t,r,nu(e))}catch(n){vs(e,t,{then:function(){},status:`rejected`,reason:n},nu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function ls(){}function us(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ds(e).queue;cs(e,a,t,I,n===null?ls:function(){return fs(e),n(r)})}function ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fs(e){var t=ds(e);t.next===null&&(t=e.alternate.memoizedState),vs(e,t.next.queue,{},nu())}function ps(){return Ri(Rf)}function ms(){return _o().memoizedState}function hs(){return _o().memoizedState}function lee(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=nu();e=Ea(n);var r=Da(t,e,n);r!==null&&(iu(r,t,n),Oa(r,t,n)),t={cache:Gi()},e.payload=t;return}t=t.return}}function gs(e,t,n){var r=nu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},bs(e)?xs(t,n):(n=zr(e,t,n,r),n!==null&&(iu(n,e,r),Ss(n,t,r)))}function _s(e,t,n){vs(e,t,n,nu())}function vs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(bs(e))xs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ar(s,o))return Rr(e,t,i,0),wl===null&&Lr(),!1}catch{}if(n=zr(e,t,i,r),n!==null)return iu(n,e,r),Ss(n,t,r),!0}return!1}function ys(e,t,n,r){if(r={lane:2,revertLane:ed(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},bs(e)){if(t)throw Error(i(479))}else t=zr(e,n,r,2),t!==null&&iu(t,e,2)}function bs(e){var t=e.alternate;return e===Xa||t!==null&&t===Xa}function xs(e,t){eo=$a=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ss(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,He(e,n)}}var Cs={readContext:Ri,use:bo,useCallback:oo,useContext:oo,useEffect:oo,useImperativeHandle:oo,useLayoutEffect:oo,useInsertionEffect:oo,useMemo:oo,useReducer:oo,useRef:oo,useState:oo,useDebugValue:oo,useDeferredValue:oo,useTransition:oo,useSyncExternalStore:oo,useId:oo,useHostTransitionStatus:oo,useFormState:oo,useActionState:oo,useOptimistic:oo,useMemoCache:oo,useCacheRefresh:oo};Cs.useEffectEvent=oo;var ws={readContext:Ri,use:bo,useCallback:function(e,t){return go().memoizedState=[e,t===void 0?null:t],e},useContext:Ri,useEffect:Yo,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),qo(4194308,4,ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qo(4194308,4,e,t)},useInsertionEffect:function(e,t){qo(4,2,e,t)},useMemo:function(e,t){var n=go();t=t===void 0?null:t;var r=e();if(to){Te(!0);try{e()}finally{Te(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=go();if(n!==void 0){var i=n(t);if(to){Te(!0);try{n(t)}finally{Te(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=gs.bind(null,Xa,e),[r.memoizedState,e]},useRef:function(e){var t=go();return e={current:e},t.memoizedState=e},useState:function(e){e=Mo(e);var t=e.queue,n=_s.bind(null,Xa,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:rs,useDeferredValue:function(e,t){return os(go(),e,t)},useTransition:function(){var e=Mo(!1);return e=cs.bind(null,Xa,e.queue,!0,!1),go().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Xa,a=go();if(_i){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),wl===null)throw Error(i(349));El&127||Do(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Yo(ko.bind(null,r,o,e),[e]),r.flags|=2048,Go(9,{destroy:void 0},Oo.bind(null,r,o,n,t),null),n},useId:function(){var e=go(),t=wl.identifierPrefix;if(_i){var n=li,r=ci;n=(r&~(1<<32-Ee(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=no++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ao++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ps,useFormState:Bo,useActionState:Bo,useOptimistic:function(e){var t=go();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ys.bind(null,Xa,!0,n),n.dispatch=t,[e,t]},useMemoCache:xo,useCacheRefresh:function(){return go().memoizedState=lee.bind(null,Xa)},useEffectEvent:function(e){var t=go(),n={impl:e};return t.memoizedState=n,function(){if(Cl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ts={readContext:Ri,use:bo,useCallback:is,useContext:Ri,useEffect:Xo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:Co,useRef:Ko,useState:function(){return Co(So)},useDebugValue:rs,useDeferredValue:function(e,t){return ss(_o(),Za.memoizedState,e,t)},useTransition:function(){var e=Co(So)[0],t=_o().memoizedState;return[typeof e==`boolean`?e:yo(e),t]},useSyncExternalStore:Eo,useId:ms,useHostTransitionStatus:ps,useFormState:Vo,useActionState:Vo,useOptimistic:function(e,t){return No(_o(),Za,e,t)},useMemoCache:xo,useCacheRefresh:hs};Ts.useEffectEvent=Qo;var Es={readContext:Ri,use:bo,useCallback:is,useContext:Ri,useEffect:Xo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:To,useRef:Ko,useState:function(){return To(So)},useDebugValue:rs,useDeferredValue:function(e,t){var n=_o();return Za===null?os(n,e,t):ss(n,Za.memoizedState,e,t)},useTransition:function(){var e=To(So)[0],t=_o().memoizedState;return[typeof e==`boolean`?e:yo(e),t]},useSyncExternalStore:Eo,useId:ms,useHostTransitionStatus:ps,useFormState:Wo,useActionState:Wo,useOptimistic:function(e,t){var n=_o();return Za===null?(n.baseState=e,[e,n.queue.dispatch]):No(n,Za,e,t)},useMemoCache:xo,useCacheRefresh:hs};Es.useEffectEvent=Qo;function Ds(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Os={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nu(),i=Ea(r);i.payload=t,n!=null&&(i.callback=n),t=Da(e,i,r),t!==null&&(iu(t,e,r),Oa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nu(),i=Ea(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Da(e,i,r),t!==null&&(iu(t,e,r),Oa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nu(),r=Ea(n);r.tag=2,t!=null&&(r.callback=t),t=Da(e,r,n),t!==null&&(iu(t,e,n),Oa(t,e,n))}};function ks(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!or(n,r)||!or(i,a):!0}function As(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Os.enqueueReplaceState(t,t.state,null)}function js(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ms(e){Nr(e)}function Ns(e){console.error(e)}function Ps(e){Nr(e)}function Fs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Is(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ls(e,t,n){return n=Ea(n),n.tag=3,n.payload={element:null},n.callback=function(){Fs(e,t)},n}function Rs(e){return e=Ea(e),e.tag=3,e}function zs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Is(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Is(t,n,r),typeof i!=`function`&&(Kl===null?Kl=new Set([this]):Kl.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Bs(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Fi(t,n,a,!0),n=Ba.current,n!==null){switch(n.tag){case 31:case 13:return Va===null?gu():n.alternate===null&&Nl===0&&(Nl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ca?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Fu(e,r,a)),!1;case 22:return n.flags|=65536,r===ca?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Fu(e,r,a)),!1}throw Error(i(435,n.tag))}return Fu(e,r,a),gu(),!1}if(_i)return t=Ba.current,t===null?(r!==bi&&(t=Error(i(423),{cause:r}),Di(ti(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=ti(r,n),a=Ls(e.stateNode,r,a),ka(e,a),Nl!==4&&(Nl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==bi&&(e=Error(i(422),{cause:r}),Di(ti(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=ti(o,n),zl===null?zl=[o]:zl.push(o),Nl!==4&&(Nl=2),t===null)return!0;r=ti(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ls(n.stateNode,r,e),ka(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Kl===null||!Kl.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Rs(a),zs(a,e,n,r),ka(n,a),!1}n=n.return}while(n!==null);return!1}var Vs=Error(i(461)),Hs=!1;function Us(e,t,n,r){t.child=e===null?Sa(t,null,n,r):xa(t,e.child,n,r)}function Ws(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Li(t),r=co(e,t,n,o,a,i),s=po(),e!==null&&!Hs?(mo(e,t,i),pc(e,t,i)):(_i&&s&&fi(t),t.flags|=1,Us(e,t,r,i),t.child)}function Gs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Kr(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ks(e,t,a,r,i)):(e=Yr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!mc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?or:n,n(o,r)&&e.ref===t.ref)return pc(e,t,i)}return t.flags|=1,e=qr(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ks(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(or(a,r)&&e.ref===t.ref)if(Hs=!1,t.pendingProps=r=a,mc(e,i))e.flags&131072&&(Hs=!0);else return t.lanes=e.lanes,pc(e,t,i)}return $s(e,t,n,r,i)}function qs(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Ys(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ra(t,a===null?null:a.cachePool),a===null?Ra():La(t,a),Wa(t);else return r=t.lanes=536870912,Ys(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ra(t,null),Ra(),Ga(t)):(ra(t,a.cachePool),La(t,a),Ga(t),t.memoizedState=null);return Us(e,t,i,n),t.child}function Js(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ys(e,t,n,r,i){var a=na();return a=a===null?null:{parent:Wi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ra(t,null),Ra(),Wa(t),e!==null&&Fi(e,t,r,!0),t.childLanes=i,null}function Xs(e,t){return t=cc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zs(e,t,n){return xa(t,e.child,null,n),e=Xs(t,t.pendingProps),e.flags|=2,Ka(t),t.memoizedState=null,e}function uee(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(_i){if(r.mode===`hidden`)return e=Xs(t,r),t.lanes=536870912,Js(null,e);if(Ua(t),(e=gi)?(e=Ud(e,yi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:J===null?null:{id:ci,overflow:li},retryLane:536870912,hydrationErrors:null},n=Qr(e),n.return=t,t.child=n,hi=t,gi=null)):e=null,e===null)throw xi(t);return t.lanes=536870912,null}return Xs(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ua(t),a)if(t.flags&256)t.flags&=-257,t=Zs(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Hs||Fi(e,t,n,!1),a=(n&e.childLanes)!==0,Hs||a){if(r=wl,r!==null&&(s=Ue(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Br(e,s),iu(r,e,s),Vs;gu(),t=Zs(e,t,n)}else e=o.treeContext,gi=qd(s.nextSibling),hi=t,_i=!0,vi=null,yi=!1,e!==null&&mi(t,e),t=Xs(t,r),t.flags|=4096;return t}return e=qr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function $s(e,t,n,r,i){return Li(t),n=co(e,t,n,r,void 0,i),r=po(),e!==null&&!Hs?(mo(e,t,i),pc(e,t,i)):(_i&&r&&fi(t),t.flags|=1,Us(e,t,n,i),t.child)}function ec(e,t,n,r,i,a){return Li(t),t.updateQueue=null,n=uo(t,r,n,i),lo(e),r=po(),e!==null&&!Hs?(mo(e,t,a),pc(e,t,a)):(_i&&r&&fi(t),t.flags|=1,Us(e,t,n,a),t.child)}function tc(e,t,n,r,i){if(Li(t),t.stateNode===null){var a=Ur,o=n.contextType;typeof o==`object`&&o&&(a=Ri(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Os,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},wa(t),o=n.contextType,a.context=typeof o==`object`&&o?Ri(o):Ur,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ds(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Os.enqueueReplaceState(a,a.state,null),Ma(t,r,a,i),ja(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=js(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ur,typeof u==`object`&&u&&(o=Ri(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&As(t,a,r,o),Ca=!1;var f=t.memoizedState;a.state=f,Ma(t,r,a,i),ja(),l=t.memoizedState,s||f!==l||Ca?(typeof d==`function`&&(Ds(t,n,d,r),l=t.memoizedState),(c=Ca||ks(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ta(e,t),o=t.memoizedProps,u=js(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ur,typeof l==`object`&&l&&(c=Ri(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&As(t,a,r,c),Ca=!1,f=t.memoizedState,a.state=f,Ma(t,r,a,i),ja();var p=t.memoizedState;o!==d||f!==p||Ca||e!==null&&e.dependencies!==null&&Ii(e.dependencies)?(typeof s==`function`&&(Ds(t,n,s,r),p=t.memoizedState),(u=Ca||ks(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ii(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Qs(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=xa(t,e.child,null,i),t.child=xa(t,null,n,i)):Us(e,t,n,i),t.memoizedState=a.state,e=t.child):e=pc(e,t,i),e}function nc(e,t,n,r){return Ti(),t.flags|=256,Us(e,t,n,r),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ic(e){return{baseLanes:e,cachePool:ia()}}function ac(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Ll),e}function oc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(qa.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(_i){if(a?Ha(t):Ga(t),(e=gi)?(e=Ud(e,yi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:J===null?null:{id:ci,overflow:li},retryLane:536870912,hydrationErrors:null},n=Qr(e),n.return=t,t.child=n,hi=t,gi=null)):e=null,e===null)throw xi(t);return Gd(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Ga(t),a=t.mode,c=cc({mode:`hidden`,children:c},a),r=Xr(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=ic(n),r.childLanes=ac(e,s,n),t.memoizedState=rc,Js(null,r)):(Ha(t),sc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Ha(t),t.flags&=-257,t=lc(e,t,n)):t.memoizedState===null?(Ga(t),c=r.fallback,a=t.mode,r=cc({mode:`visible`,children:r.children},a),c=Xr(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,xa(t,e.child,null,n),r=t.child,r.memoizedState=ic(n),r.childLanes=ac(e,s,n),t.memoizedState=rc,t=Js(null,r)):(Ga(t),t.child=e.child,t.flags|=128,t=null);else if(Ha(t),Gd(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Di({value:r,source:null,stack:null}),t=lc(e,t,n)}else if(Hs||Fi(e,t,n,!1),s=(n&e.childLanes)!==0,Hs||s){if(s=wl,s!==null&&(r=Ue(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Br(e,r),iu(s,e,r),Vs;Wd(c)||gu(),t=lc(e,t,n)}else Wd(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,gi=qd(c.nextSibling),hi=t,_i=!0,vi=null,yi=!1,e!==null&&mi(t,e),t=sc(t,r.children),t.flags|=4096);return t}return a?(Ga(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=qr(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=Xr(c,a,n,null),c.flags|=2):c=qr(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,Js(null,r),r=t.child,c=e.child.memoizedState,c===null?c=ic(n):(a=c.cachePool,a===null?a=ia():(l=Wi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=ac(e,s,n),t.memoizedState=rc,Js(e.child,r)):(Ha(t),n=e.child,e=n.sibling,n=qr(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function sc(e,t){return t=cc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function cc(e,t){return e=Gr(22,e,null,t),e.lanes=0,e}function lc(e,t,n){return xa(t,e.child,null,n),e=sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ni(e.return,t,n)}function dc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function fc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=qa.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,V(qa,o),Us(e,t,r,n),r=_i?ai:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uc(e,n,t);else if(e.tag===19)uc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ja(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),dc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ja(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}dc(t,!0,n,null,a,r);break;case`together`:dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function pc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Fi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=qr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ii(e))):!0}function hc(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),ji(t,Wi,e.memoizedState.cache),Ti();break;case 27:case 5:ee(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ua(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ha(t),e=pc(e,t,n),e===null?null:e.sibling):oc(e,t,n):(Ha(t),t.flags|=128,null);Ha(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Fi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return fc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(qa,qa.current),r)break;return null;case 22:return t.lanes=0,qs(e,t,n,t.pendingProps);case 24:ji(t,Wi,e.memoizedState.cache)}return pc(e,t,n)}function gc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Hs=!0;else{if(!mc(e,n)&&!(t.flags&128))return Hs=!1,hc(e,t,n);Hs=!!(e.flags&131072)}else Hs=!1,_i&&t.flags&1048576&&di(t,ai,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=da(t.elementType),t.type=e,typeof e==`function`)Kr(e)?(r=js(e,r),t.tag=1,t=tc(null,t,e,r,n)):(t.tag=0,t=$s(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=Ws(null,t,e,r,n);break a}else if(a===T){t.tag=14,t=Gs(null,t,e,r,n);break a}}throw t=M(e)||e,Error(i(306,t,``))}}return t;case 0:return $s(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=js(r,t.pendingProps),tc(e,t,r,a,n);case 3:a:{if(K(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ta(e,t),Ma(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ji(t,Wi,r),r!==o.cache&&Pi(t,[Wi],n,!0),ja(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=nc(e,t,r,n);break a}else if(r!==a){a=ti(Error(i(424)),t),Di(a),t=nc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(gi=qd(e.firstChild),hi=t,_i=!0,vi=null,yi=!0,n=Sa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ti(),r===a){t=pc(e,t,n);break a}Us(e,t,r,n)}t=t.child}return t;case 26:return Qs(e,t),e===null?(n=hf(t.type,null,t.pendingProps,null))?t.memoizedState=n:_i||(n=t.type,e=t.pendingProps,r=kd(W.current).createElement(n),r[Ye]=t,r[Xe]=e,Cd(r,n,e),ct(r),t.stateNode=r):t.memoizedState=hf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ee(t),e===null&&_i&&(r=t.stateNode=Zd(t.type,t.pendingProps,W.current),hi=t,yi=!0,a=gi,zd(t.type)?(Jd=a,gi=qd(r.firstChild)):gi=a),Us(e,t,t.pendingProps.children,n),Qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_i&&((a=r=gi)&&(r=_ee(r,t.type,t.pendingProps,yi),r===null?a=!1:(t.stateNode=r,hi=t,gi=qd(r.firstChild),yi=!1,a=!0)),a||xi(t)),ee(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Md(a,o)?r=null:s!==null&&Md(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=co(e,t,fo,null,null,n),Rf._currentValue=a),Qs(e,t),Us(e,t,r,n),t.child;case 6:return e===null&&_i&&((e=n=gi)&&(n=vee(n,t.pendingProps,yi),n===null?e=!1:(t.stateNode=n,hi=t,gi=null,e=!0)),e||xi(t)),null;case 13:return oc(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xa(t,null,r,n):Us(e,t,r,n),t.child;case 11:return Ws(e,t,t.type,t.pendingProps,n);case 7:return Us(e,t,t.pendingProps,n),t.child;case 8:return Us(e,t,t.pendingProps.children,n),t.child;case 12:return Us(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,ji(t,t.type,r.value),Us(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Li(t),a=Ri(a),r=r(a),t.flags|=1,Us(e,t,r,n),t.child;case 14:return Gs(e,t,t.type,t.pendingProps,n);case 15:return Ks(e,t,t.type,t.pendingProps,n);case 19:return fc(e,t,n);case 31:return uee(e,t,n);case 22:return qs(e,t,n,t.pendingProps);case 24:return Li(t),r=Ri(Wi),e===null?(a=na(),a===null&&(a=wl,o=Gi(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},wa(t),ji(t,Wi,a)):((e.lanes&n)!==0&&(Ta(e,t),Ma(t,null,null,n),ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ji(t,Wi,r),r!==a.cache&&Pi(t,[Wi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ji(t,Wi,r))),Us(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function _c(e){e.flags|=4}function vc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(pu())e.flags|=8192;else throw fa=ca,oa}else e.flags&=-16777217}function yc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Af(t))if(pu())e.flags|=8192;else throw fa=ca,oa}function bc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Le(),e.lanes|=t,Rl|=t)}function xc(e,t){if(!_i)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Sc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dee(e,t,n){var r=t.pendingProps;switch(pi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sc(t),null;case 1:return Sc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Mi(Wi),q(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(wi(t)?_c(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ei())),Sc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(_c(t),o===null?(Sc(t),vc(t,a,null,r,n)):(Sc(t),yc(t,o))):o?o===e.memoizedState?(Sc(t),t.flags&=-16777217):(_c(t),Sc(t),yc(t,o)):(e=e.memoizedProps,e!==r&&_c(t),Sc(t),vc(t,a,e,r,n)),null;case 27:if(te(t),n=W.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_c(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Sc(t),null}e=H.current,wi(t)?Si(t,e):(e=Zd(a,r,n),t.stateNode=e,_c(t))}return Sc(t),null;case 5:if(te(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_c(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Sc(t),null}if(o=H.current,wi(t))Si(t,o);else{var s=kd(W.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Ye]=t,o[Xe]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Cd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&_c(t)}}return Sc(t),vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&_c(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=W.current,wi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=hi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Ye]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||bd(e.nodeValue,n)),e||xi(t,!0)}else e=kd(e).createTextNode(r),e[Ye]=t,t.stateNode=e}return Sc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=wi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Ye]=t}else Ti(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sc(t),e=!1}else n=Ei(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ka(t),t):(Ka(t),null);if(t.flags&128)throw Error(i(558))}return Sc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=wi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Ye]=t}else Ti(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sc(t),a=!1}else a=Ei(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ka(t),t):(Ka(t),null)}return Ka(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),bc(t,t.updateQueue),Sc(t),null);case 4:return q(),e===null&&ud(t.stateNode.containerInfo),Sc(t),null;case 10:return Mi(t.type),Sc(t),null;case 19:if(B(qa),r=t.memoizedState,r===null)return Sc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)xc(r,!1);else{if(Nl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ja(e),o!==null){for(t.flags|=128,xc(r,!1),e=o.updateQueue,t.updateQueue=e,bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Jr(n,e),n=n.sibling;return V(qa,qa.current&1|2),_i&&ui(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&me()>Wl&&(t.flags|=128,a=!0,xc(r,!1),t.lanes=4194304)}else{if(!a)if(e=Ja(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,bc(t,e),xc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!_i)return Sc(t),null}else 2*me()-r.renderingStartTime>Wl&&n!==536870912&&(t.flags|=128,a=!0,xc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Sc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=me(),e.sibling=null,n=qa.current,V(qa,a?n&1|2:n&1),_i&&ui(t,r.treeForkCount),e);case 22:case 23:return Ka(t),za(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Sc(t),t.subtreeFlags&6&&(t.flags|=8192)):Sc(t),n=t.updateQueue,n!==null&&bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&B(ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Mi(Wi),Sc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function fee(e,t){switch(pi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mi(Wi),q(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return te(t),null;case 31:if(t.memoizedState!==null){if(Ka(t),t.alternate===null)throw Error(i(340));Ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ka(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(qa),null;case 4:return q(),null;case 10:return Mi(t.type),null;case 22:case 23:return Ka(t),za(),e!==null&&B(ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mi(Wi),null;case 25:return null;default:return null}}function Cc(e,t){switch(pi(t),t.tag){case 3:Mi(Wi),q();break;case 26:case 27:case 5:te(t);break;case 4:q();break;case 31:t.memoizedState!==null&&Ka(t);break;case 13:Ka(t);break;case 19:B(qa);break;case 10:Mi(t.type);break;case 22:case 23:Ka(t),za(),e!==null&&B(ta);break;case 24:Mi(Wi)}}function wc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Pu(t,t.return,e)}}function Tc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Pu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Pu(t,t.return,e)}}function Ec(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Pa(t,n)}catch(t){Pu(e,e.return,t)}}}function Dc(e,t,n){n.props=js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Pu(e,t,n)}}function Oc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Pu(e,t,n)}}function kc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Pu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Pu(e,t,n)}else n.current=null}function Ac(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Pu(e,e.return,t)}}function jc(e,t,n){try{var r=e.stateNode;wd(r,e.type,n,t),r[Xe]=t}catch(t){Pu(e,e.return,t)}}function Mc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zd(e.type)||e.tag===4}function Nc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Mc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vt));else if(r!==4&&(r===27&&zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Pc(e,t,n),e=e.sibling;e!==null;)Pc(e,t,n),e=e.sibling}function Fc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Fc(e,t,n),e=e.sibling;e!==null;)Fc(e,t,n),e=e.sibling}function Ic(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Cd(t,r,n),t[Ye]=e,t[Xe]=n}catch(t){Pu(e,e.return,t)}}var Lc=!1,Rc=!1,zc=!1,Bc=typeof WeakSet==`function`?WeakSet:Set,Vc=null;function Hc(e,t){if(e=e.containerInfo,Dd=qf,e=ur(e),dr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Od={focusedElem:e,selectionRange:n},qf=!1,Vc=t;Vc!==null;)if(t=Vc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Vc=e;else for(;Vc!==null;){switch(t=Vc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=js(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Pu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Hd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:Hd(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Vc=e;break}Vc=t.return}}function Uc(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:il(e,n),r&4&&wc(5,n);break;case 1:if(il(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Pu(n,n.return,e)}else{var i=js(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Pu(n,n.return,e)}}r&64&&Ec(n),r&512&&Oc(n,n.return);break;case 3:if(il(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Pa(e,t)}catch(e){Pu(n,n.return,e)}}break;case 27:t===null&&r&4&&Ic(n);case 26:case 5:il(e,n),t===null&&r&4&&Ac(n),r&512&&Oc(n,n.return);break;case 12:il(e,n);break;case 31:il(e,n),r&4&&Yc(e,n);break;case 13:il(e,n),r&4&&Xc(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=pee.bind(null,n),Kd(e,n))));break;case 22:if(r=n.memoizedState!==null||Lc,!r){t=t!==null&&t.memoizedState!==null||Rc,i=Lc;var a=Rc;Lc=r,(Rc=t)&&!a?ol(e,n,(n.subtreeFlags&8772)!=0):il(e,n),Lc=i,Rc=a}break;case 30:break;default:il(e,n)}}function Wc(e){var t=e.alternate;t!==null&&(e.alternate=null,Wc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&rt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Gc=null,Kc=!1;function qc(e,t,n){for(n=n.child;n!==null;)Jc(e,t,n),n=n.sibling}function Jc(e,t,n){if(we&&typeof we.onCommitFiberUnmount==`function`)try{we.onCommitFiberUnmount(Ce,n)}catch{}switch(n.tag){case 26:Rc||kc(n,t),qc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Rc||kc(n,t);var r=Gc,i=Kc;zd(n.type)&&(Gc=n.stateNode,Kc=!1),qc(e,t,n),Qd(n.stateNode),Gc=r,Kc=i;break;case 5:Rc||kc(n,t);case 6:if(r=Gc,i=Kc,Gc=null,qc(e,t,n),Gc=r,Kc=i,Gc!==null)if(Kc)try{(Gc.nodeType===9?Gc.body:Gc.nodeName===`HTML`?Gc.ownerDocument.body:Gc).removeChild(n.stateNode)}catch(e){Pu(n,t,e)}else try{Gc.removeChild(n.stateNode)}catch(e){Pu(n,t,e)}break;case 18:Gc!==null&&(Kc?(e=Gc,Bd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),yp(e)):Bd(Gc,n.stateNode));break;case 4:r=Gc,i=Kc,Gc=n.stateNode.containerInfo,Kc=!0,qc(e,t,n),Gc=r,Kc=i;break;case 0:case 11:case 14:case 15:Tc(2,n,t),Rc||Tc(4,n,t),qc(e,t,n);break;case 1:Rc||(kc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Dc(n,t,r)),qc(e,t,n);break;case 21:qc(e,t,n);break;case 22:Rc=(r=Rc)||n.memoizedState!==null,qc(e,t,n),Rc=r;break;default:qc(e,t,n)}}function Yc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{yp(e)}catch(e){Pu(t,t.return,e)}}}function Xc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{yp(e)}catch(e){Pu(t,t.return,e)}}function Zc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Bc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Bc),t;default:throw Error(i(435,e.tag))}}function Qc(e,t){var n=Zc(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ru.bind(null,e,t);t.then(r,r)}})}function $c(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(zd(c.type)){Gc=c.stateNode,Kc=!1;break a}break;case 5:Gc=c.stateNode,Kc=!1;break a;case 3:case 4:Gc=c.stateNode.containerInfo,Kc=!0;break a}c=c.return}if(Gc===null)throw Error(i(160));Jc(o,s,a),Gc=null,Kc=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)tl(t,e),t=t.sibling}var el=null;function tl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$c(t,e),nl(e),r&4&&(Tc(3,e,e.return),wc(3,e),Tc(5,e,e.return));break;case 1:$c(t,e),nl(e),r&512&&(Rc||n===null||kc(n,n.return)),r&64&&Lc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=el;if($c(t,e),nl(e),r&512&&(Rc||n===null||kc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[nt]||o[Ye]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Cd(o,r,n),o[Ye]=e,ct(o),r=o;break a;case`link`:var s=Df(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Cd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Df(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Cd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[Ye]=e,ct(o),r=o}e.stateNode=r}else Of(a,e.type,e.stateNode);else e.stateNode=Sf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&jc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Of(a,e.type,e.stateNode):Sf(a,r,e.memoizedProps))}break;case 27:$c(t,e),nl(e),r&512&&(Rc||n===null||kc(n,n.return)),n!==null&&r&4&&jc(e,e.memoizedProps,n.memoizedProps);break;case 5:if($c(t,e),nl(e),r&512&&(Rc||n===null||kc(n,n.return)),e.flags&32){a=e.stateNode;try{Pt(a,``)}catch(t){Pu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,jc(e,a,n===null?a:n.memoizedProps)),r&1024&&(zc=!0);break;case 6:if($c(t,e),nl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Pu(e,e.return,t)}}break;case 3:if(Ef=null,a=el,el=tf(t.containerInfo),$c(t,e),el=a,nl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{yp(t.containerInfo)}catch(t){Pu(e,e.return,t)}zc&&(zc=!1,rl(e));break;case 4:r=el,el=tf(e.stateNode.containerInfo),$c(t,e),nl(e),el=r;break;case 12:$c(t,e),nl(e);break;case 31:$c(t,e),nl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Qc(e,r)));break;case 13:$c(t,e),nl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Hl=me()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Qc(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Lc,d=Rc;if(Lc=u||a,Rc=d||l,$c(t,e),Rc=d,Lc=u,nl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Lc||Rc||al(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Pu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Pu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?Vd(m,!0):Vd(l.stateNode,!1)}catch(e){Pu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Qc(e,n))));break;case 19:$c(t,e),nl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Qc(e,r)));break;case 30:break;case 21:break;default:$c(t,e),nl(e)}}function nl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Mc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Fc(e,Nc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Pt(o,``),n.flags&=-33),Fc(e,Nc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Pc(e,Nc(e),s);break;default:throw Error(i(161))}}catch(t){Pu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;rl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function il(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Uc(e,t.alternate,t),t=t.sibling}function al(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tc(4,t,t.return),al(t);break;case 1:kc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Dc(t,t.return,n),al(t);break;case 27:Qd(t.stateNode);case 26:case 5:kc(t,t.return),al(t);break;case 22:t.memoizedState===null&&al(t);break;case 30:al(t);break;default:al(t)}e=e.sibling}}function ol(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:ol(i,a,n),wc(4,a);break;case 1:if(ol(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Pu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Na(c[i],s)}catch(e){Pu(r,r.return,e)}}n&&o&64&&Ec(a),Oc(a,a.return);break;case 27:Ic(a);case 26:case 5:ol(i,a,n),n&&r===null&&o&4&&Ac(a),Oc(a,a.return);break;case 12:ol(i,a,n);break;case 31:ol(i,a,n),n&&o&4&&Yc(i,a);break;case 13:ol(i,a,n),n&&o&4&&Xc(i,a);break;case 22:a.memoizedState===null&&ol(i,a,n),Oc(a,a.return);break;case 30:break;default:ol(i,a,n)}t=t.sibling}}function sl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ki(n))}function cl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ki(e))}function ll(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ul(e,t,n,r),t=t.sibling}function ul(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:ll(e,t,n,r),i&2048&&wc(9,t);break;case 1:ll(e,t,n,r);break;case 3:ll(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ki(e)));break;case 12:if(i&2048){ll(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Pu(t,t.return,e)}}else ll(e,t,n,r);break;case 31:ll(e,t,n,r);break;case 13:ll(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?ll(e,t,n,r):(a._visibility|=2,dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?ll(e,t,n,r):fl(e,t),i&2048&&sl(o,t);break;case 24:ll(e,t,n,r),i&2048&&cl(t.alternate,t);break;default:ll(e,t,n,r)}}function dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:dl(a,o,s,c,i),wc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,dl(a,o,s,c,i)):u._visibility&2?dl(a,o,s,c,i):fl(a,o),i&&l&2048&&sl(o.alternate,o);break;case 24:dl(a,o,s,c,i),i&&l&2048&&cl(o.alternate,o);break;default:dl(a,o,s,c,i)}t=t.sibling}}function fl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:fl(n,r),i&2048&&sl(r.alternate,r);break;case 24:fl(n,r),i&2048&&cl(r.alternate,r);break;default:fl(n,r)}t=t.sibling}}var pl=8192;function ml(e,t,n){if(e.subtreeFlags&pl)for(e=e.child;e!==null;)hl(e,t,n),e=e.sibling}function hl(e,t,n){switch(e.tag){case 26:ml(e,t,n),e.flags&pl&&e.memoizedState!==null&&jf(n,el,e.memoizedState,e.memoizedProps);break;case 5:ml(e,t,n);break;case 3:case 4:var r=el;el=tf(e.stateNode.containerInfo),ml(e,t,n),el=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=pl,pl=16777216,ml(e,t,n),pl=r):ml(e,t,n));break;default:ml(e,t,n)}}function gl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _l(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Vc=r,bl(r,e)}gl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vl(e),e=e.sibling}function vl(e){switch(e.tag){case 0:case 11:case 15:_l(e),e.flags&2048&&Tc(9,e,e.return);break;case 3:_l(e);break;case 12:_l(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,yl(e)):_l(e);break;default:_l(e)}}function yl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Vc=r,bl(r,e)}gl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tc(8,t,t.return),yl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,yl(t));break;default:yl(t)}e=e.sibling}}function bl(e,t){for(;Vc!==null;){var n=Vc;switch(n.tag){case 0:case 11:case 15:Tc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ki(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Vc=r;else a:for(n=e;Vc!==null;){r=Vc;var i=r.sibling,a=r.return;if(Wc(r),r===n){Vc=null;break a}if(i!==null){i.return=a,Vc=i;break a}Vc=a}}}var xl={getCacheForType:function(e){var t=Ri(Wi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ri(Wi).controller.signal}},Sl=typeof WeakMap==`function`?WeakMap:Map,Cl=0,wl=null,Tl=null,El=0,Dl=0,Ol=null,kl=!1,Al=!1,jl=!1,Ml=0,Nl=0,Pl=0,Fl=0,Il=0,Ll=0,Rl=0,zl=null,Bl=null,Vl=!1,Hl=0,Ul=0,Wl=1/0,Gl=null,Kl=null,ql=0,Jl=null,Yl=null,Xl=0,Zl=0,Ql=null,$l=null,eu=0,tu=null;function nu(){return Cl&2&&El!==0?El&-El:P.T===null?Ke():ed()}function ru(){if(Ll===0)if(!(El&536870912)||_i){var e=je;je<<=1,!(je&3932160)&&(je=262144),Ll=e}else Ll=536870912;return e=Ba.current,e!==null&&(e.flags|=32),Ll}function iu(e,t,n){(e===wl&&(Dl===2||Dl===9)||e.cancelPendingCommit!==null)&&(du(e,0),cu(e,El,Ll,!1)),ze(e,n),(!(Cl&2)||e!==wl)&&(e===wl&&(!(Cl&2)&&(Fl|=n),Nl===4&&cu(e,El,Ll,!1)),Ku(e))}function au(e,t,n){if(Cl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Fe(e,t),a=r?yu(e,t):_u(e,t,!0),o=r;do{if(a===0){Al&&!r&&cu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!su(n)){a=_u(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=zl;var l=c.current.memoizedState.isDehydrated;if(l&&(du(c,s).flags|=256),s=_u(c,s,!1),s!==2){if(jl&&!l){c.errorRecoveryDisabledLanes|=o,Fl|=o,a=4;break a}o=Bl,Bl=a,o!==null&&(Bl===null?Bl=o:Bl.push.apply(Bl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){du(e,0),cu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:cu(r,t,Ll,!kl);break a;case 2:Bl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Hl+300-me(),10<a)){if(cu(r,t,Ll,!kl),Pe(r,0,!0)!==0)break a;Xl=t,r.timeoutHandle=Fd(ou.bind(null,r,n,Bl,Gl,Vl,t,Ll,Fl,Rl,kl,o,`Throttled`,-0,0),a);break a}ou(r,n,Bl,Gl,Vl,t,Ll,Fl,Rl,kl,o,null,-0,0)}}break}while(1);Ku(e)}function ou(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vt},hl(t,a,d);var m=(a&62914560)===a?Hl-me():(a&4194048)===a?Ul-me():0;if(m=Nf(d,m),m!==null){Xl=a,e.cancelPendingCommit=m(Eu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),cu(e,a,o,!l);return}}Eu(e,t,a,n,r,i,o,s,c)}function su(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!ar(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function cu(e,t,n,r){t&=~Il,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ee(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ve(e,n,t)}function lu(){return Cl&6?!0:(qu(0,!1),!1)}function uu(){if(Tl!==null){if(Dl===0)var e=Tl.return;else e=Tl,Ai=ki=null,ho(e),ha=null,ga=0,e=Tl;for(;e!==null;)Cc(e.alternate,e),e=e.return;Tl=null}}function du(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,gee(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Xl=0,uu(),wl=e,Tl=n=qr(e.current,null),El=t,Dl=0,Ol=null,kl=!1,Al=Fe(e,t),jl=!1,Rl=Ll=Il=Fl=Pl=Nl=0,Bl=zl=null,Vl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ee(r),a=1<<i;t|=e[i],r&=~a}return Ml=t,Lr(),n}function fu(e,t){Xa=null,P.H=Cs,t===aa||t===sa?(t=pa(),Dl=3):t===oa?(t=pa(),Dl=4):Dl=t===Vs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ol=t,Tl===null&&(Nl=1,Fs(e,ti(t,e.current)))}function pu(){var e=Ba.current;return e===null?!0:(El&4194048)===El?Va===null:(El&62914560)===El||El&536870912?e===Va:!1}function mu(){var e=P.H;return P.H=Cs,e===null?Cs:e}function hu(){var e=P.A;return P.A=xl,e}function gu(){Nl=4,kl||(El&4194048)!==El&&Ba.current!==null||(Al=!0),!(Pl&134217727)&&!(Fl&134217727)||wl===null||cu(wl,El,Ll,!1)}function _u(e,t,n){var r=Cl;Cl|=2;var i=mu(),a=hu();(wl!==e||El!==t)&&(Gl=null,du(e,t)),t=!1;var o=Nl;a:do try{if(Dl!==0&&Tl!==null){var s=Tl,c=Ol;switch(Dl){case 8:uu(),o=6;break a;case 3:case 2:case 9:case 6:Ba.current===null&&(t=!0);var l=Dl;if(Dl=0,Ol=null,Cu(e,s,c,l),n&&Al){o=0;break a}break;default:l=Dl,Dl=0,Ol=null,Cu(e,s,c,l)}}vu(),o=Nl;break}catch(t){fu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ai=ki=null,Cl=r,P.H=i,P.A=a,Tl===null&&(wl=null,El=0,Lr()),o}function vu(){for(;Tl!==null;)xu(Tl)}function yu(e,t){var n=Cl;Cl|=2;var r=mu(),a=hu();wl!==e||El!==t?(Gl=null,Wl=me()+500,du(e,t)):Al=Fe(e,t);a:do try{if(Dl!==0&&Tl!==null){t=Tl;var o=Ol;b:switch(Dl){case 1:Dl=0,Ol=null,Cu(e,t,o,1);break;case 2:case 9:if(la(o)){Dl=0,Ol=null,Su(t);break}t=function(){Dl!==2&&Dl!==9||wl!==e||(Dl=7),Ku(e)},o.then(t,t);break a;case 3:Dl=7;break a;case 4:Dl=5;break a;case 7:la(o)?(Dl=0,Ol=null,Su(t)):(Dl=0,Ol=null,Cu(e,t,o,7));break;case 5:var s=null;switch(Tl.tag){case 26:s=Tl.memoizedState;case 5:case 27:var c=Tl;if(s?Af(s):c.stateNode.complete){Dl=0,Ol=null;var l=c.sibling;if(l!==null)Tl=l;else{var u=c.return;u===null?Tl=null:(Tl=u,wu(u))}break b}}Dl=0,Ol=null,Cu(e,t,o,5);break;case 6:Dl=0,Ol=null,Cu(e,t,o,6);break;case 8:uu(),Nl=6;break a;default:throw Error(i(462))}}bu();break}catch(t){fu(e,t)}while(1);return Ai=ki=null,P.H=r,P.A=a,Cl=n,Tl===null?(wl=null,El=0,Lr(),Nl):0}function bu(){for(;Tl!==null&&!fe();)xu(Tl)}function xu(e){var t=gc(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,t===null?wu(e):Tl=t}function Su(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ec(n,t,t.pendingProps,t.type,void 0,El);break;case 11:t=ec(n,t,t.pendingProps,t.type.render,t.ref,El);break;case 5:ho(t);default:Cc(n,t),t=Tl=Jr(t,Ml),t=gc(n,t,Ml)}e.memoizedProps=e.pendingProps,t===null?wu(e):Tl=t}function Cu(e,t,n,r){Ai=ki=null,ho(t),ha=null,ga=0;var i=t.return;try{if(Bs(e,i,t,n,El)){Nl=1,Fs(e,ti(n,e.current)),Tl=null;return}}catch(t){if(i!==null)throw Tl=i,t;Nl=1,Fs(e,ti(n,e.current)),Tl=null;return}t.flags&32768?(_i||r===1?e=!0:Al||El&536870912?e=!1:(kl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ba.current,r!==null&&r.tag===13&&(r.flags|=16384))),Tu(t,e)):wu(t)}function wu(e){var t=e;do{if(t.flags&32768){Tu(t,kl);return}e=t.return;var n=dee(t.alternate,t,Ml);if(n!==null){Tl=n;return}if(t=t.sibling,t!==null){Tl=t;return}Tl=t=e}while(t!==null);Nl===0&&(Nl=5)}function Tu(e,t){do{var n=fee(e.alternate,e);if(n!==null){n.flags&=32767,Tl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Tl=e;return}Tl=e=n}while(e!==null);Nl=6,Tl=null}function Eu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do ju();while(ql!==0);if(Cl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Ir,Be(e,n,o,s,c,l),e===wl&&(Tl=wl=null,El=0),Yl=t,Jl=e,Xl=n,Zl=o,Ql=a,$l=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,zu(ve,function(){return Mu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=P.T,P.T=null,a=F.p,F.p=2,s=Cl,Cl|=4;try{Hc(e,t,n)}finally{Cl=s,F.p=a,P.T=r}}ql=1,Du(),Ou(),ku()}}function Du(){if(ql===1){ql=0;var e=Jl,t=Yl,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Cl;Cl|=4;try{tl(t,e);var a=Od,o=ur(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&lr(s.ownerDocument.documentElement,s)){if(c!==null&&dr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=cr(s,h),v=cr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}qf=!!Dd,Od=Dd=null}finally{Cl=i,F.p=r,P.T=n}}e.current=t,ql=2}}function Ou(){if(ql===2){ql=0;var e=Jl,t=Yl,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Cl;Cl|=4;try{Uc(e,t.alternate,t)}finally{Cl=i,F.p=r,P.T=n}}ql=3}}function ku(){if(ql===4||ql===3){ql=0,pe();var e=Jl,t=Yl,n=Xl,r=$l;t.subtreeFlags&10256||t.flags&10256?ql=5:(ql=0,Yl=Jl=null,Au(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Kl=null),Ge(n),t=t.stateNode,we&&typeof we.onCommitFiberRoot==`function`)try{we.onCommitFiberRoot(Ce,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}Xl&3&&ju(),Ku(e),i=e.pendingLanes,n&261930&&i&42?e===tu?eu++:(eu=0,tu=e):eu=0,qu(0,!1)}}function Au(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ki(t)))}function ju(){return Du(),Ou(),ku(),Mu()}function Mu(){if(ql!==5)return!1;var e=Jl,t=Zl;Zl=0;var n=Ge(Xl),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=Ql,Ql=null;var o=Jl,s=Xl;if(ql=0,Yl=Jl=null,Xl=0,Cl&6)throw Error(i(331));var c=Cl;if(Cl|=4,vl(o.current),ul(o,o.current,s,n),Cl=c,qu(0,!1),we&&typeof we.onPostCommitFiberRoot==`function`)try{we.onPostCommitFiberRoot(Ce,o)}catch{}return!0}finally{F.p=a,P.T=r,Au(e,t)}}function Nu(e,t,n){t=ti(n,t),t=Ls(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(ze(e,2),Ku(e))}function Pu(e,t,n){if(e.tag===3)Nu(e,e,n);else for(;t!==null;){if(t.tag===3){Nu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Kl===null||!Kl.has(r))){e=ti(n,e),n=Rs(2),r=Da(t,n,2),r!==null&&(zs(n,r,t,e),ze(r,2),Ku(r));break}}t=t.return}}function Fu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Sl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(jl=!0,i.add(n),e=Iu.bind(null,e,t,n),t.then(e,e))}function Iu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,wl===e&&(El&n)===n&&(Nl===4||Nl===3&&(El&62914560)===El&&300>me()-Hl?!(Cl&2)&&du(e,0):Il|=n,Rl===El&&(Rl=0)),Ku(e)}function Lu(e,t){t===0&&(t=Le()),e=Br(e,t),e!==null&&(ze(e,t),Ku(e))}function pee(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lu(e,n)}function Ru(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Lu(e,n)}function zu(e,t){return ue(e,t)}var Bu=null,Vu=null,Hu=!1,Uu=!1,Wu=!1,Gu=0;function Ku(e){e!==Vu&&e.next===null&&(Vu===null?Bu=Vu=e:Vu=Vu.next=e),Uu=!0,Hu||(Hu=!0,$u())}function qu(e,t){if(!Wu&&Uu){Wu=!0;do for(var n=!1,r=Bu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ee(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Qu(r,a))}else a=El,a=Pe(r,r===wl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Fe(r,a)||(n=!0,Qu(r,a));r=r.next}while(n);Wu=!1}}function Ju(){Yu()}function Yu(){Uu=Hu=!1;var e=0;Gu!==0&&Pd()&&(e=Gu);for(var t=me(),n=null,r=Bu;r!==null;){var i=r.next,a=Xu(r,t);a===0?(r.next=null,n===null?Bu=i:n.next=i,i===null&&(Vu=n)):(n=r,(e!==0||a&3)&&(Uu=!0)),r=i}ql!==0&&ql!==5||qu(e,!1),Gu!==0&&(Gu=0)}function Xu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ee(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ie(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=wl,n=El,n=Pe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Dl===2||Dl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&de(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Fe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&de(r),Ge(n)){case 2:case 8:n=_e;break;case 32:n=ve;break;case 268435456:n=be;break;default:n=ve}return r=Zu.bind(null,e),n=ue(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&de(r),e.callbackPriority=2,e.callbackNode=null,2}function Zu(e,t){if(ql!==0&&ql!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ju()&&e.callbackNode!==n)return null;var r=El;return r=Pe(e,e===wl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(au(e,r,t),Xu(e,me()),e.callbackNode!=null&&e.callbackNode===n?Zu.bind(null,e):null)}function Qu(e,t){if(ju())return null;au(e,t,!0)}function $u(){Ld(function(){Cl&6?ue(ge,Ju):Yu()})}function ed(){if(Gu===0){var e=Yi;e===0&&(e=Ae,Ae<<=1,!(Ae&261888)&&(Ae=256)),Gu=e}return Gu}function td(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Bt(``+e)}function nd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function mee(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=td((i[Xe]||null).action),o=r.submitter;o&&(t=(t=o[Xe]||null)?td(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Gu!==0){var e=o?nd(i,o):new FormData(i);us(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?nd(i,o):new FormData(i),us(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var rd=0;rd<jr.length;rd++){var id=jr[rd];Mr(id.toLowerCase(),`on`+(id[0].toUpperCase()+id.slice(1)))}Mr(Cr,`onAnimationEnd`),Mr(wr,`onAnimationIteration`),Mr(Tr,`onAnimationStart`),Mr(`dblclick`,`onDoubleClick`),Mr(`focusin`,`onFocus`),Mr(`focusout`,`onBlur`),Mr(Er,`onTransitionRun`),Mr(Dr,`onTransitionStart`),Mr(Or,`onTransitionCancel`),Mr(kr,`onTransitionEnd`),ft(`onMouseEnter`,[`mouseout`,`mouseover`]),ft(`onMouseLeave`,[`mouseout`,`mouseover`]),ft(`onPointerEnter`,[`pointerout`,`pointerover`]),ft(`onPointerLeave`,[`pointerout`,`pointerover`]),dt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),dt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),dt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),dt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),dt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),dt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ad=`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(` `),hee=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(ad));function od(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Nr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Nr(e)}i.currentTarget=null,a=c}}}}function sd(e,t){var n=t[Qe];n===void 0&&(n=t[Qe]=new Set);var r=e+`__bubble`;n.has(r)||(dd(t,e,2,!1),n.add(r))}function cd(e,t,n){var r=0;t&&(r|=4),dd(n,e,r,t)}var ld=`_reactListening`+Math.random().toString(36).slice(2);function ud(e){if(!e[ld]){e[ld]=!0,lt.forEach(function(t){t!==`selectionchange`&&(hee.has(t)||cd(t,!1,e),cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ld]||(t[ld]=!0,cd(`selectionchange`,!1,t))}}function dd(e,t,n,r){switch(ep(t)){case 2:var i=Jf;break;case 8:i=Yf;break;default:i=Xf}n=i.bind(null,t,n,e),i=void 0,!Zt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function fd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=it(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Jt(function(){var r=a,i=Ut(n),s=[];a:{var c=Ar.get(e);if(c!==void 0){var l=ln,u=e;switch(e){case`keypress`:if(rn(n)===0)break a;case`keydown`:case`keyup`:l=Dn;break;case`focusin`:u=`focus`,l=vn;break;case`focusout`:u=`blur`,l=vn;break;case`beforeblur`:case`afterblur`:l=vn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=_n;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=kn;break;case Cr:case wr:case Tr:l=yn;break;case kr:l=ree;break;case`scroll`:case`scrollend`:l=dn;break;case`wheel`:l=An;break;case`copy`:case`cut`:case`paste`:l=bn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=On;break;case`toggle`:case`beforetoggle`:l=iee}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Yt(m,p),g!=null&&d.push(pd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Ht&&(u=n.relatedTarget||n.fromElement)&&(it(u)||u[Ze]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?it(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=gn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=On,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:ot(l),h=u==null?c:ot(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,it(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=hd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&gd(s,c,l,d,!1),u!==null&&f!==null&&gd(s,f,u,d,!0)}}a:{if(c=r?ot(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=Jn;else if(Hn(c))if(Yn)v=rr;else{v=tr;var y=see}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Rt(r.elementType)&&(v=Jn):v=nr;if(v&&=v(e,r)){Un(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&At(c,`number`,c.value)}switch(y=r?ot(r):window,e){case`focusin`:(Hn(y)||y.contentEditable===`true`)&&(pr=y,mr=r,hr=null);break;case`focusout`:hr=mr=pr=null;break;case`mousedown`:gr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:gr=!1,_r(s,n,i);break;case`selectionchange`:if(fr)break;case`keydown`:case`keyup`:_r(s,n,i)}var b;if(jn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else zn?Ln(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Pn&&n.locale!==`ko`&&(zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&zn&&(b=nn()):($t=i,en=`value`in $t?$t.value:$t.textContent,zn=!0)),y=md(r,x),0<y.length&&(x=new xn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Rn(n),b!==null&&(x.data=b)))),(b=Nn?Bn(e,n):Vn(e,n))&&(x=md(r,`onBeforeInput`),0<x.length&&(y=new xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),mee(s,e,r,n,i)}od(s,t)})}function pd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function md(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Yt(e,n),i!=null&&r.unshift(pd(e,i,a)),i=Yt(e,t),i!=null&&r.push(pd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function hd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Yt(n,a),l!=null&&o.unshift(pd(n,l,c))):i||(l=Yt(n,a),l!=null&&o.push(pd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var _d=/\r\n?/g,vd=/\u0000|\uFFFD/g;function yd(e){return(typeof e==`string`?e:``+e).replace(_d,`
`).replace(vd,``)}function bd(e,t){return t=yd(t),yd(e)===t}function xd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Pt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Pt(e,``+r);break;case`className`:vt(e,`class`,r);break;case`tabIndex`:vt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:vt(e,n,r);break;case`style`:Lt(e,r,o);break;case`data`:if(t!==`object`){vt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&xd(e,t,`name`,a.name,a,null),xd(e,t,`formEncType`,a.formEncType,a,null),xd(e,t,`formMethod`,a.formMethod,a,null),xd(e,t,`formTarget`,a.formTarget,a,null)):(xd(e,t,`encType`,a.encType,a,null),xd(e,t,`method`,a.method,a,null),xd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`onScroll`:r!=null&&sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&sd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Bt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:sd(`beforetoggle`,e),sd(`toggle`,e),_t(e,`popover`,r);break;case`xlinkActuate`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:yt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:_t(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=zt.get(n)||n,_t(e,n,r))}}function Sd(e,t,n,r,a,o){switch(n){case`style`:Lt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Pt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Pt(e,``+r);break;case`onScroll`:r!=null&&sd(`scroll`,e);break;case`onScrollEnd`:r!=null&&sd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!ut.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[Xe]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):_t(e,n,r)}}}function Cd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:sd(`error`,e),sd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:xd(e,t,o,s,n,null)}}a&&xd(e,t,`srcSet`,n.srcSet,n,null),r&&xd(e,t,`src`,n.src,n,null);return;case`input`:sd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:xd(e,t,r,d,n,null)}}kt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in sd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:xd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&jt(e,!!r,n,!0):jt(e,!!r,t,!1);return;case`textarea`:for(s in sd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:xd(e,t,s,c,n,null)}Nt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:xd(e,t,l,r,n,null)}return;case`dialog`:sd(`beforetoggle`,e),sd(`toggle`,e),sd(`cancel`,e),sd(`close`,e);break;case`iframe`:case`object`:sd(`load`,e);break;case`video`:case`audio`:for(r=0;r<ad.length;r++)sd(ad[r],e);break;case`image`:sd(`error`,e),sd(`load`,e);break;case`details`:sd(`toggle`,e);break;case`embed`:case`source`:case`link`:sd(`error`,e),sd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:xd(e,t,u,r,n,null)}return;default:if(Rt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Sd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&xd(e,t,c,r,n,null))}function wd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||xd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&xd(e,t,p,m,r,f)}}Ot(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||xd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&xd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?jt(e,!!n,n?[]:``,!1):jt(e,!!n,t,!0)):jt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:xd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&xd(e,t,s,a,r,o)}Mt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:xd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:xd(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&xd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:xd(e,t,u,p,r,m)}return;default:if(Rt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Sd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Sd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&xd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||xd(e,t,f,p,r,m)}function Td(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ed(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Td(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Td(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Dd=null,Od=null;function kd(e){return e.nodeType===9?e:e.ownerDocument}function Ad(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function jd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Md(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nd=null;function Pd(){var e=window.event;return e&&e.type===`popstate`?e===Nd?!1:(Nd=e,!0):(Nd=null,!1)}var Fd=typeof setTimeout==`function`?setTimeout:void 0,gee=typeof clearTimeout==`function`?clearTimeout:void 0,Id=typeof Promise==`function`?Promise:void 0,Ld=typeof queueMicrotask==`function`?queueMicrotask:Id===void 0?Fd:function(e){return Id.resolve(null).then(e).catch(Rd)};function Rd(e){setTimeout(function(){throw e})}function zd(e){return e===`head`}function Bd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),yp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Qd(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Qd(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[nt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Qd(e.ownerDocument.body);n=i}while(n);yp(t)}function Vd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function Hd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:Hd(n),rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function _ee(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[nt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=qd(e.nextSibling),e===null)break}return null}function vee(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=qd(e.nextSibling),e===null))return null;return e}function Ud(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=qd(e.nextSibling),e===null))return null;return e}function Wd(e){return e.data===`$?`||e.data===`$~`}function Gd(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function Kd(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function qd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var Jd=null;function Yd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return qd(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Xd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Zd(e,t,n){switch(t=kd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Qd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);rt(e)}var $d=new Map,ef=new Set;function tf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var nf=F.d;F.d={f:rf,r:af,D:cf,C:lf,L:uf,m:df,X:pf,S:ff,M:mf};function rf(){var e=nf.f(),t=lu();return e||t}function af(e){var t=at(e);t!==null&&t.tag===5&&t.type===`form`?fs(t):nf.r(e)}var of=typeof document>`u`?null:document;function sf(e,t,n){var r=of;if(r&&typeof t==`string`&&t){var i=Dt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ef.has(i)||(ef.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Cd(t,`link`,e),ct(t),r.head.appendChild(t)))}}function cf(e){nf.D(e),sf(`dns-prefetch`,e,null)}function lf(e,t){nf.C(e,t),sf(`preconnect`,e,t)}function uf(e,t,n){nf.L(e,t,n);var r=of;if(r&&e&&t){var i=`link[rel="preload"][as="`+Dt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Dt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Dt(n.imageSizes)+`"]`)):i+=`[href="`+Dt(e)+`"]`;var a=i;switch(t){case`style`:a=gf(e);break;case`script`:a=bf(e)}$d.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),$d.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(_f(a))||t===`script`&&r.querySelector(xf(a))||(t=r.createElement(`link`),Cd(t,`link`,e),ct(t),r.head.appendChild(t)))}}function df(e,t){nf.m(e,t);var n=of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Dt(r)+`"][href="`+Dt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=bf(e)}if(!$d.has(a)&&(e=p({rel:`modulepreload`,href:e},t),$d.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(xf(a)))return}r=n.createElement(`link`),Cd(r,`link`,e),ct(r),n.head.appendChild(r)}}}function ff(e,t,n){nf.S(e,t,n);var r=of;if(r&&e){var i=st(r).hoistableStyles,a=gf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(_f(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=$d.get(a))&&wf(e,n);var c=o=r.createElement(`link`);ct(c),Cd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Cf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function pf(e,t){nf.X(e,t);var n=of;if(n&&e){var r=st(n).hoistableScripts,i=bf(e),a=r.get(i);a||(a=n.querySelector(xf(i)),a||(e=p({src:e,async:!0},t),(t=$d.get(i))&&Tf(e,t),a=n.createElement(`script`),ct(a),Cd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function mf(e,t){nf.M(e,t);var n=of;if(n&&e){var r=st(n).hoistableScripts,i=bf(e),a=r.get(i);a||(a=n.querySelector(xf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=$d.get(i))&&Tf(e,t),a=n.createElement(`script`),ct(a),Cd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function hf(e,t,n,r){var a=(a=W.current)?tf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=gf(n.href),n=st(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=gf(n.href);var o=st(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(_f(e)))&&!o._p&&(s.instance=o,s.state.loading=5),$d.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},$d.set(e,n),o||yf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=bf(n),n=st(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function gf(e){return`href="`+Dt(e)+`"`}function _f(e){return`link[rel="stylesheet"][`+e+`]`}function vf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function yf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Cd(t,`link`,n),ct(t),e.head.appendChild(t))}function bf(e){return`[src="`+Dt(e)+`"]`}function xf(e){return`script[async]`+e}function Sf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Dt(n.href)+`"]`);if(r)return t.instance=r,ct(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ct(r),Cd(r,`style`,a),Cf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=gf(n.href);var o=e.querySelector(_f(a));if(o)return t.state.loading|=4,t.instance=o,ct(o),o;r=vf(n),(a=$d.get(a))&&wf(r,a),o=(e.ownerDocument||e).createElement(`link`),ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Cd(o,`link`,r),t.state.loading|=4,Cf(o,n.precedence,e),t.instance=o;case`script`:return o=bf(n.src),(a=e.querySelector(xf(o)))?(t.instance=a,ct(a),a):(r=n,(a=$d.get(o))&&(r=p({},n),Tf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ct(a),Cd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Cf(r,n.precedence,e));return t.instance}function Cf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function wf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Tf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Ef=null;function Df(e,t,n){if(Ef===null){var r=new Map,i=Ef=new Map;i.set(n,r)}else i=Ef,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[nt]||a[Ye]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Of(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function kf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Af(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function jf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=gf(r.href),a=t.querySelector(_f(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Pf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ct(a);return}a=t.ownerDocument||t,r=vf(r),(i=$d.get(i))&&wf(r,i),a=a.createElement(`link`),ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Cd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Pf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Mf=0;function Nf(e,t){return e.stylesheets&&e.count===0&&If(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&If(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Mf===0&&(Mf=62500*Ed());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&If(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Mf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Pf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)If(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ff=null;function If(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ff=new Map,t.forEach(Lf,e),Ff=null,Pf.call(e))}function Lf(e,t){if(!(t.state.loading&4)){var n=Ff.get(e);if(n)var r=n.get(null);else{n=new Map,Ff.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Pf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Rf={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function zf(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=Re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Re(0),this.hiddenUpdates=Re(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Bf(e,t,n,r,i,a,o,s,c,l,u,d){return e=new zf(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Gr(3,null,null,t),e.current=a,a.stateNode=e,t=Gi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},wa(a),e}function Vf(e){return e?(e=Ur,e):Ur}function Hf(e,t,n,r,i,a){i=Vf(i),r.context===null?r.context=i:r.pendingContext=i,r=Ea(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Da(e,r,t),n!==null&&(iu(n,e,t),Oa(n,e,t))}function Uf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Wf(e,t){Uf(e,t),(e=e.alternate)&&Uf(e,t)}function Gf(e){if(e.tag===13||e.tag===31){var t=Br(e,67108864);t!==null&&iu(t,e,67108864),Wf(e,67108864)}}function Kf(e){if(e.tag===13||e.tag===31){var t=nu();t=We(t);var n=Br(e,t);n!==null&&iu(n,e,t),Wf(e,t)}}var qf=!0;function Jf(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,Xf(e,t,n,r)}finally{F.p=a,P.T=i}}function Yf(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,Xf(e,t,n,r)}finally{F.p=a,P.T=i}}function Xf(e,t,n,r){if(qf){var i=Zf(r);if(i===null)fd(e,t,r,Qf,n),lp(e,r);else if(dp(i,e,t,n,r))r.stopPropagation();else if(lp(e,r),t&4&&-1<cp.indexOf(e)){for(;i!==null;){var a=at(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ne(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ee(o);s.entanglements[1]|=c,o&=~c}Ku(a),!(Cl&6)&&(Wl=me()+500,qu(0,!1))}}break;case 31:case 13:s=Br(a,2),s!==null&&iu(s,a,2),lu(),Wf(a,2)}if(a=Zf(r),a===null&&fd(e,t,r,Qf,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else fd(e,t,r,null,n)}}function Zf(e){return e=Ut(e),$f(e)}var Qf=null;function $f(e){if(Qf=null,e=it(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qf=e,null}function ep(e){switch(e){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(he()){case ge:return 2;case _e:return 8;case ve:case ye:return 32;case be:return 268435456;default:return 32}default:return 32}}var tp=!1,np=null,rp=null,ip=null,ap=new Map,op=new Map,sp=[],cp=`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 lp(e,t){switch(e){case`focusin`:case`focusout`:np=null;break;case`dragenter`:case`dragleave`:rp=null;break;case`mouseover`:case`mouseout`:ip=null;break;case`pointerover`:case`pointerout`:ap.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:op.delete(t.pointerId)}}function up(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=at(t),t!==null&&Gf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function dp(e,t,n,r,i){switch(t){case`focusin`:return np=up(np,e,t,n,r,i),!0;case`dragenter`:return rp=up(rp,e,t,n,r,i),!0;case`mouseover`:return ip=up(ip,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return ap.set(a,up(ap.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,op.set(a,up(op.get(a)||null,e,t,n,r,i)),!0}return!1}function fp(e){var t=it(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,qe(e.priority,function(){Kf(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,qe(e.priority,function(){Kf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zf(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ht=r,n.target.dispatchEvent(r),Ht=null}else return t=at(n),t!==null&&Gf(t),e.blockedOn=n,!1;t.shift()}return!0}function mp(e,t,n){pp(e)&&n.delete(t)}function hp(){tp=!1,np!==null&&pp(np)&&(np=null),rp!==null&&pp(rp)&&(rp=null),ip!==null&&pp(ip)&&(ip=null),ap.forEach(mp),op.forEach(mp)}function gp(e,n){e.blockedOn===n&&(e.blockedOn=null,tp||(tp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,hp)))}var _p=null;function vp(e){_p!==e&&(_p=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){_p===e&&(_p=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if($f(r||n)===null)continue;break}var a=at(n);a!==null&&(e.splice(t,3),t-=3,us(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function yp(e){function t(t){return gp(t,e)}np!==null&&gp(np,e),rp!==null&&gp(rp,e),ip!==null&&gp(ip,e),ap.forEach(t),op.forEach(t);for(var n=0;n<sp.length;n++){var r=sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<sp.length&&(n=sp[0],n.blockedOn===null);)fp(n),n.blockedOn===null&&sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Xe]||null;if(typeof a==`function`)o||vp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Xe]||null)s=o.formAction;else if($f(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),vp(n)}}}function bp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function xp(e){this._internalRoot=e}Sp.prototype.render=xp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;Hf(n,nu(),e,t,null,null)},Sp.prototype.unmount=xp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hf(e.current,2,null,e,null,null),lu(),t[Ze]=null}};function Sp(e){this._internalRoot=e}Sp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ke();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sp.length&&t!==0&&t<sp[n].priority;n++);sp.splice(n,0,e),n===0&&fp(e)}};var Cp=n.version;if(Cp!==`19.2.7`)throw Error(i(527,Cp,`19.2.7`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var wp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Tp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tp.isDisabled&&Tp.supportsFiber)try{Ce=Tp.inject(wp),we=Tp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ms,s=Ns,c=Ps;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Bf(e,1,!1,null,null,n,r,null,o,s,c,bp),e[Ze]=t.current,ud(e),new xp(t)}})),hn=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=mn()}))(),gn=`__rc_react_root__`;function _n(e,t){let n=t[gn]||(0,hn.createRoot)(t);n.render(e),t[gn]=n}async function vn(e){return Promise.resolve().then(()=>{e[gn]?.unmount(),delete e[gn]})}var yn=l(nee()),bn=h.createContext({}),xn=e=>{let{children:t,...n}=e,r=h.useMemo(()=>({motion:n.motion}),[n.motion]);return h.createElement(bn.Provider,{value:r},t)},Sn=`none`,Cn=`appear`,wn=`enter`,Tn=`leave`,En=`none`,Dn=`prepare`,On=`start`,kn=`active`,ree=`prepared`;function An(e,t){let n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function iee(e,t){let n={animationend:An(`Animation`,`AnimationEnd`),transitionend:An(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var aee=iee(pe(),typeof window<`u`?window:{}),jn={};pe()&&({style:jn}=document.createElement(`div`));var Mn={};function Nn(e){if(Mn[e])return Mn[e];let t=aee[e];if(t){let n=Object.keys(t),r=n.length;for(let i=0;i<r;i+=1){let r=n[i];if(Object.prototype.hasOwnProperty.call(t,r)&&r in jn)return Mn[e]=t[r],Mn[e]}}return``}var Pn=Nn(`animationend`),Fn=Nn(`transitionend`),In=!!(Pn&&Fn),Ln=Pn||`animationend`,Rn=Fn||`transitionend`;function zn(e,t){return e?typeof e==`object`?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}var Bn=(e=>{let t=(0,h.useRef)();function n(t){t&&(t.removeEventListener(Rn,e),t.removeEventListener(Ln,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Rn,e),r.addEventListener(Ln,e),t.current=r)}return h.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),Vn=pe()?h.useLayoutEffect:h.useEffect,oee=(()=>{let e=h.useRef(null);function t(){en.cancel(e.current)}function n(r,i=2){t();let a=en(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return h.useEffect(()=>()=>{t()},[]),[n,t]}),Hn=[Dn,On,kn,`end`],Un=[Dn,ree];function Wn(e){return e===`active`||e===`end`}var Gn=((e,t,n)=>{let[r,i]=_e(En),[a,o]=oee();function s(){i(Dn,!0)}let c=t?Un:Hn;return Vn(()=>{if(r!==`none`&&r!==`end`){let e=c[c.indexOf(r)+1],t=n(r);t===!1?i(e,!0):e&&a(n=>{function r(){n.isCanceled()||i(e,!0)}t===!0?r():Promise.resolve(t).then(r)})}},[e,r]),h.useEffect(()=>()=>{o()},[]),[s,r]});function Kn(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:a=!0,motionDeadline:o,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:d,onEnterStart:f,onLeaveStart:p,onAppearActive:m,onEnterActive:g,onLeaveActive:_,onAppearEnd:v,onEnterEnd:y,onLeaveEnd:b,onVisibleChanged:x}){let[S,C]=h.useState(),[w,T]=Te(Sn),[E,D]=h.useState([null,null]),O=w(),k=(0,h.useRef)(!1),A=(0,h.useRef)(null);function j(){return n()}let M=(0,h.useRef)(!1);function N(){T(Sn),D([null,null])}let P=fe(e=>{let t=w();if(t===`none`)return;let n=j();if(e&&!e.deadline&&e.target!==n)return;let r=M.current,i;t===`appear`&&r?i=v?.(n,e):t===`enter`&&r?i=y?.(n,e):t===`leave`&&r&&(i=b?.(n,e)),r&&i!==!1&&N()}),[F]=Bn(P),I=e=>{switch(e){case Cn:return{[Dn]:c,[On]:d,[kn]:m};case wn:return{[Dn]:l,[On]:f,[kn]:g};case Tn:return{[Dn]:u,[On]:p,[kn]:_};default:return{}}},L=h.useMemo(()=>I(O),[O]),[R,z]=Gn(O,!e,e=>{if(e===`prepare`){let e=L[Dn];return e?e(j()):!1}return e in L&&D([L[e]?.(j(),null)||null,e]),e===`active`&&O!==`none`&&(F(j()),o>0&&(clearTimeout(A.current),A.current=setTimeout(()=>{P({deadline:!0})},o))),e===`prepared`&&N(),!0});M.current=Wn(z);let B=(0,h.useRef)(null);Vn(()=>{if(k.current&&B.current===t)return;C(t);let n=k.current;k.current=!0;let o;!n&&t&&i&&(o=Cn),n&&t&&r&&(o=wn),(n&&!t&&a||!n&&s&&!t&&a)&&(o=Tn);let c=I(o);o&&(e||c.prepare)?(T(o),R()):T(Sn),B.current=t},[t]),(0,h.useEffect)(()=>{(O===`appear`&&!i||O===`enter`&&!r||O===`leave`&&!a)&&T(Sn)},[i,r,a]),(0,h.useEffect)(()=>()=>{k.current=!1,clearTimeout(A.current)},[]);let V=h.useRef(!1);(0,h.useEffect)(()=>{S&&(V.current=!0),S!==void 0&&O===`none`&&((V.current||S)&&x?.(S),V.current=!0)},[S,O]);let H=E[0];L.prepare&&z===`start`&&(H={transition:`none`,...H});let U=E[1];return[w,z,H,S??t,!k.current&&O===`none`&&e&&i?`NONE`:z===`start`||z===`active`?U===z:!0]}function qn(e){return e?.length<2}function Jn(e){let t=e;typeof e==`object`&&({transitionSupport:t}=e);function n(e,n){return!!(e.motionName&&t&&n!==!1)}let r=h.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:i=!0,forceRender:a,children:o,motionName:s,leavedClassName:c,eventProps:l}=e,{motion:u}=h.useContext(bn),d=n(e,u),f=(0,h.useRef)();function p(){return nt(f.current)}let[g,_,v,y,b]=Kn(d,r,p,e),x=g(),S=h.useRef(y);y&&(S.current=!0);let C=h.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>g()!==Sn},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);h.useImperativeHandle(t,()=>C,[]);let w=h.useRef(0);b&&(w.current+=1);let T=h.useMemo(()=>{if(b===`NONE`)return null;let e,t={...l,visible:r};if(!o)e=null;else if(x===`none`)e=y?o({...t},f):!i&&S.current&&c?o({...t,className:c},f):a||!i&&!c?o({...t,style:{display:`none`}},f):null;else{let n;_===`prepare`?n=`prepare`:Wn(_)?n=`active`:_===`start`&&(n=`start`);let r=zn(s,`${x}-${n}`);e=o({...t,className:m(zn(s,x),{[r]:r&&n,[s]:typeof s==`string`}),style:v},f)}return e},[w.current]);if(qn(o)&&ze(T)){let e=Be(T);if(e!==f)return h.cloneElement(T,{ref:Fe(e,f)})}return T});return r.displayName=`CSSMotion`,r}var Yn=Jn(In),Xn=`keep`,Zn=`remove`,Qn=`removed`;function $n(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},{...t,key:String(t.key)}}function er(e=[]){return e.map($n)}function see(e=[],t=[]){let n=[],r=0,i=t.length,a=er(e),o=er(t);a.forEach(e=>{let t=!1;for(let a=r;a<i;a+=1){let i=o[a];if(i.key===e.key){r<a&&(n=n.concat(o.slice(r,a).map(e=>({...e,status:`add`}))),r=a),n.push({...i,status:Xn}),r+=1,t=!0;break}}t||n.push({...e,status:Zn})}),r<i&&(n=n.concat(o.slice(r).map(e=>({...e,status:`add`}))));let s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==`remove`),n.forEach(t=>{t.key===e&&(t.status=Xn)})}),n}function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tr.apply(this,arguments)}var nr=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`];function rr(e,t=Yn){class n extends h.Component{static defaultProps={component:`div`};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:see(t,er(e)).filter(e=>{let n=t.find(({key:t})=>e.key===t);return!(n&&n.status===`removed`&&e.status===`remove`)})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key===e?{...t,status:Qn}:t)}),()=>{let{keyEntities:e}=this.state;e.filter(({status:e})=>e!==`removed`).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:e}=this.state,{component:n,children:r,onVisibleChanged:i,onAllRemoved:a,...o}=this.props,s=n||h.Fragment,c={};return nr.forEach(e=>{c[e]=o[e],delete o[e]}),delete o.keys,h.createElement(s,o,e.map(({status:e,...n},a)=>{let o=e===`add`||e===`keep`;return h.createElement(t,tr({},c,{key:n.key,visible:o,eventProps:n,onVisibleChanged:e=>{i?.(e,{key:n.key}),e||this.removeKey(n.key)}}),qn(r)?e=>r({...e,index:a}):(e,t)=>r({...e,index:a},t))}))}}return n}var ir=rr(In),ar=Yn;function or(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sr(e){if(Array.isArray(e))return or(e)}function cr(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function lr(e,t){if(e){if(typeof e==`string`)return or(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?or(e,t):void 0}}function ur(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dr(e){return sr(e)||cr(e)||lr(e)||ur()}var fr=e=>e!=null,pr=e=>fr(e)&&e!==!1&&e!==``,mr=e=>typeof e==`number`&&!Number.isNaN(e),hr=e=>typeof e==`string`,gr=e=>typeof e==`object`&&!!e,_r=e=>typeof e==`function`,vr=e=>fr(e)&&_r(e.then),yr=e=>typeof e!=`object`&&!_r(e)||e===null,br=e=>gr(e)&&`propertyName`in e&&hr(e.propertyName),xr=(e,t)=>{let n={...e};return Object.keys(t).forEach(e=>{t[e]._default?n[e]||(n[e]={}):n[e]=xr(n[e],t[e])}),n},Sr=(e={},...t)=>t.filter(e=>!!e).reduce((t,n)=>(Object.keys(n).forEach(r=>{let i=e[r],a=n[r];if(i)if(gr(a))t[r]=Sr(i,t[r],a);else{let{_default:e}=i;e&&(t[r]=t[r]||{},t[r][e]=m(t[r][e],a))}else t[r]=m(t[r],a)}),t),{}),Cr=(e,...t)=>h.useMemo(()=>Sr.apply(void 0,[e].concat(t)),[e].concat(t)),wr=(...e)=>e.filter(e=>!!e).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),Tr=(...e)=>h.useMemo(()=>wr.apply(void 0,e),[].concat(e)),Er=e=>h.useMemo(()=>e?{root:e}:void 0,[e]),Dr=(e,t)=>_r(e)?e(t):e,Or=(e,t,n,r)=>{let i=e.map(e=>e?Dr(e,n):void 0),a=t.map(e=>e?Dr(e,n):void 0),o=Cr.apply(void 0,[r].concat(dr(i))),s=Tr.apply(void 0,dr(a));return h.useMemo(()=>r?[xr(o,r),xr(s,r)]:[o,s],[o,s,r])};function kr(){}var{resetWarned:Ar}=Lt,jr=h.createContext({}),Mr=()=>{let e=()=>{};return e.deprecated=kr,e},Nr=`anticon`,Pr=[`outlined`,`borderless`,`filled`,`underlined`],Fr=h.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:Nr}),{Consumer:Ir}=Fr,Lr={};function Rr(e){let t=h.useContext(Fr),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t;return{classNames:Lr,styles:Lr,...t[e],getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}}function zr(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Br=`%`;function Vr(e){return e.join(Br)}var Hr=0,Ur=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(Vr(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(Vr(e),t)}opUpdate(e,t){let n=t(this.cache.get(e));n===null?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,Hr),Hr+=1)}},Wr=`data-token-hash`,Gr=`data-css-hash`,Kr=`__cssinjs_instance__`;function qr(){let e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){let t=document.body.querySelectorAll(`style[data-css-hash]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Kr]||=e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${Gr}]`)).forEach(t=>{let n=t.getAttribute(Gr);r[n]?t.__cssinjs_instance__===e&&t.parentNode?.removeChild(t):r[n]=!0})}return new Ur(e)}var Jr=h.createContext({hashPriority:`low`,cache:qr(),defaultCache:!0,autoPrefix:!1});function Yr(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Xr=class e{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach(e=>{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let r=this.cache;t.forEach((e,i)=>{if(i===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{let t=r.get(e);t?t.map||=new Map:r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){let n=e.get(t[0]);if(t.length===1)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];let r=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!Yr(t,e)),this.deleteByPath(this.cache,e)}},Zr=0,Qr=class{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Zr,e.length===0&&e.length,Zr+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},$r=new Xr;function ei(e){let t=Array.isArray(e)?e:[e];return $r.has(t)||$r.set(t,new Qr(t)),$r.get(t)}var ti=new WeakMap,ni={};function ri(e,t){let n=ti;for(let e=0;e<t.length;e+=1){let r=t[e];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(ni)||n.set(ni,e()),n.get(ni)}var ii=new WeakMap;function ai(e){let t=ii.get(e)||``;return t||(Object.keys(e).forEach(n=>{let r=e[n];t+=n,r instanceof Qr?t+=r.id:r&&typeof r==`object`?t+=ai(r):t+=r}),t=zr(t),ii.set(e,t)),t}function oi(e,t){return zr(`${t}_${ai(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var si=pe();function J(e){return typeof e==`number`?`${e}px`:e}function ci(e){let{hashCls:t,hashPriority:n=`low`}=e||{};if(!t)return``;let r=`.${t}`;return n===`low`?`:where(${r})`:r}var li=e=>e!=null;function ui(e,t){let n=typeof t==`function`?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}var di=(e,t=``)=>`--${t?`${t}-`:``}${e}`.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,`$1-$2`).replace(/([a-z])([A-Z0-9])/g,`$1-$2`).toLowerCase(),fi=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,scope:a}=n||{};if(!Object.keys(e).length)return``;let o=`${ci({hashCls:r,hashPriority:i})}.${t}`,s=[a].flat().filter(Boolean);return`${s.length?s.map(e=>`${o}.${e}`).join(`, `):o}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join(``)}}`},pi=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,prefix:a,unitless:o,ignore:s,preserve:c}=n||{},l={},u={};return Object.entries(e).forEach(([e,t])=>{if(c?.[e])u[e]=t;else if((typeof t==`string`||typeof t==`number`)&&!s?.[e]){let n=di(e,a);l[n]=typeof t==`number`&&!o?.[e]?`${t}px`:String(t),u[e]=`var(${n})`}}),[u,fi(l,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},mi=new Map;function hi(e,t,n,r,i){let{cache:a}=h.useContext(Jr),o=Vr([e,...t]),s=e=>{a.opUpdate(o,t=>{let[r=0,i]=t||[void 0,void 0],a=[r,i||n()];return e?e(a):a})};h.useMemo(()=>{s()},[o]);let c=a.opGet(o)[1];return(0,h.useInsertionEffect)(()=>(s(([e,t])=>[e+1,t]),mi.has(o)||(i?.(c),mi.set(o,!0),Promise.resolve().then(()=>{mi.delete(o)})),()=>{a.opUpdate(o,e=>{let[t=0,n]=e||[];return t-1==0?(r?.(n,!1),mi.delete(o),null):[t-1,n]})}),[o]),c}var gi={},_i=`css`,vi=new Map;function yi(e){vi.set(e,(vi.get(e)||0)+1)}function bi(e,t){typeof document<`u`&&document.querySelectorAll(`style[${Wr}="${e}"]`).forEach(e=>{e.__cssinjs_instance__===t&&e.parentNode?.removeChild(e)})}var xi=-1;function Si(e,t){vi.set(e,(vi.get(e)||0)-1);let n=new Set;vi.forEach((e,t)=>{e<=0&&n.add(t)}),vi.size-n.size>xi&&n.forEach(e=>{bi(e,t),vi.delete(e)})}var Ci=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},wi=`token`;function Ti(e,t,n){let{cache:{instanceId:r},container:i,hashPriority:a}=(0,h.useContext)(Jr),{salt:o=``,override:s=gi,formatToken:c,getComputedToken:l,cssVar:u,nonce:d}=n,f=ri(()=>Object.assign({},...t),t),p=ai(f),m=ai(s),g=ai(u);return hi(wi,[o,e.id,p,m,g],()=>{let t=l?l(f,s,e):Ci(f,s,e,c),n={...t},r=`${o}_${u.prefix}`,i=zr(r),d=`${_i}-${i}`;n._tokenKey=oi(n,r);let[p,m]=pi(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:a,hashCls:u.hashed?d:void 0});return p._hashId=i,yi(u.key),[p,d,n,m,u.key]},([,,,,e])=>{Si(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:Gr,prepend:`queue`,attachTo:i,priority:-999};n=ui(n,d);let a=et(e,zr(`css-var-${t}`),n);a[Kr]=r,a.setAttribute(Wr,t)})}var Ei={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Di=`-ms-`,Oi=`-moz-`,ki=`-webkit-`,Ai=`comm`,ji=`rule`,Mi=`decl`,Ni=`@import`,Pi=`@namespace`,Fi=`@keyframes`,Ii=`@layer`,Li=Math.abs,Ri=String.fromCharCode,zi=Object.assign;function Bi(e,t){return Gi(e,0)^45?(((t<<2^Gi(e,0))<<2^Gi(e,1))<<2^Gi(e,2))<<2^Gi(e,3):0}function Vi(e){return e.trim()}function Hi(e,t){return(e=t.exec(e))?e[0]:e}function Ui(e,t,n){return e.replace(t,n)}function Wi(e,t){return e.indexOf(t)}function Gi(e,t){return e.charCodeAt(t)|0}function Ki(e,t,n){return e.slice(t,n)}function qi(e){return e.length}function Ji(e){return e.length}function Yi(e,t){return t.push(e),e}function Xi(e,t){return e.map(t).join(``)}function Zi(e,t){return e.filter(function(e){return!Hi(e,t)})}var Qi=1,$i=1,ea=0,ta=0,na=0,ra=``;function ia(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Qi,column:$i,length:o,return:``,siblings:s}}function aa(e,t){return zi(ia(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function oa(e){for(;e.root;)e=aa(e.root,{children:[e]});Yi(e,e.siblings)}function sa(){return na}function ca(){return na=ta>0?Gi(ra,--ta):0,$i--,na===10&&($i=1,Qi--),na}function la(){return na=ta<ea?Gi(ra,ta++):0,$i++,na===10&&($i=1,Qi++),na}function ua(){return Gi(ra,ta)}function da(){return ta}function fa(e,t){return Ki(ra,e,t)}function pa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ma(e){return Qi=$i=1,ea=qi(ra=e),ta=0,[]}function ha(e){return ra=``,e}function ga(e){return Vi(fa(ta-1,ya(e===91?e+2:e===40?e+1:e)))}function _a(e){for(;(na=ua())&&na<33;)la();return pa(e)>2||pa(na)>3?``:` `}function va(e,t){for(;--t&&la()&&!(na<48||na>102||na>57&&na<65||na>70&&na<97););return fa(e,da()+(t<6&&ua()==32&&la()==32))}function ya(e){for(;la();)switch(na){case e:return ta;case 34:case 39:e!==34&&e!==39&&ya(na);break;case 40:e===41&&ya(e);break;case 92:la();break}return ta}function ba(e,t){for(;la()&&e+na!==57&&!(e+na===84&&ua()===47););return`/*`+fa(t,ta-1)+`*`+Ri(e===47?e:la())}function xa(e){for(;!pa(ua());)la();return fa(e,ta)}function Sa(e){return ha(Ca(``,null,null,null,[``],e=ma(e),0,[0],e))}function Ca(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=la()){case 40:m!=108&&Gi(w,d-1)==58?(v++,w+=`(`):w+=ga(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=ga(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Ri(y);break}w+=_a(m);break;case 92:w+=va(da()-1,7);continue;case 47:switch(ua()){case 42:case 47:Yi(Ta(ba(la(),da()),t,n,c),c),(pa(m||1)==5||pa(ua()||1)==5)&&qi(w)&&Ki(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=qi(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Ri(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Ui(w,/\f/g,``)),p>0&&(qi(w)-d||h===0)&&Yi(p>32?Ea(w+`;`,r,n,d-1,c):Ea(Ui(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(Yi(C=wa(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)Ca(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Gi(w,3)===110)break;case 108:if(Gi(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ca(e,C,C,r&&Yi(wa(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Ca(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+qi(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&ca()==125)continue}switch(w+=Ri(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(qi(w)-1)*_,_=1;break;case 64:ua()===45&&(w+=ga(la())),f=ua(),u=d=qi(b=w+=xa(da())),y++;break;case 45:m===45&&qi(w)==2&&(h=0)}}return a}function wa(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Ji(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Ki(e,f+1,f=Li(g=o[h])),b=e;v<m;++v)(b=Vi(g>0?p[v]+` `+y:Ui(y,/&\f/g,p[v])))&&(c[_++]=b);return ia(e,t,n,i===0?ji:s,c,l,u,d)}function Ta(e,t,n,r){return ia(e,t,n,Ai,Ri(sa()),Ki(e,2,-2),0,r)}function Ea(e,t,n,r,i){return ia(e,t,n,Mi,Ki(e,0,r),Ki(e,r+1,-1),r,i)}function Da(e,t,n){switch(Bi(e,t)){case 5103:return ki+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return ki+e+e;case 4855:return ki+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return Oi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ki+e+Oi+e+Di+e+e;case 5936:switch(Gi(e,t+11)){case 114:return ki+e+Di+Ui(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return ki+e+Di+Ui(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return ki+e+Di+Ui(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return ki+e+Di+e+e;case 6165:return ki+e+Di+`flex-`+e+e;case 5187:return ki+e+Ui(e,/(\w+).+(:[^]+)/,ki+`box-$1$2`+Di+`flex-$1$2`)+e;case 5443:return ki+e+Di+`flex-item-`+Ui(e,/flex-|-self/g,``)+(Hi(e,/flex-|baseline/)?``:Di+`grid-row-`+Ui(e,/flex-|-self/g,``))+e;case 4675:return ki+e+Di+`flex-line-pack`+Ui(e,/align-content|flex-|-self/g,``)+e;case 5548:return ki+e+Di+Ui(e,`shrink`,`negative`)+e;case 5292:return ki+e+Di+Ui(e,`basis`,`preferred-size`)+e;case 6060:return ki+`box-`+Ui(e,`-grow`,``)+ki+e+Di+Ui(e,`grow`,`positive`)+e;case 4554:return ki+Ui(e,/([^-])(transform)/g,`$1`+ki+`$2`)+e;case 6187:return Ui(Ui(Ui(e,/(zoom-|grab)/,ki+`$1`),/(image-set)/,ki+`$1`),e,``)+e;case 5495:case 3959:return Ui(e,/(image-set\([^]*)/,ki+"$1$`$1");case 4968:return Ui(Ui(e,/(.+:)(flex-)?(.*)/,ki+`box-pack:$3`+Di+`flex-pack:$3`),/space-between/,`justify`)+ki+e+e;case 4200:if(!Hi(e,/flex-|baseline/))return Di+`grid-column-align`+Ki(e,t)+e;break;case 2592:case 3360:return Di+Ui(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Hi(e.props,/grid-\w+-end/)})?~Wi(e+(n=n[t].value),`span`)?e:Di+Ui(e,`-start`,``)+e+Di+`grid-row-span:`+(~Wi(n,`span`)?Hi(n,/\d+/):Hi(n,/\d+/)-+Hi(e,/\d+/))+`;`:Di+Ui(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return Hi(e.props,/grid-\w+-start/)})?e:Di+Ui(Ui(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return Ui(e,/(.+)-inline(.+)/,ki+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qi(e)-1-t>6)switch(Gi(e,t+1)){case 109:if(Gi(e,t+4)!==45)break;case 102:return Ui(e,/(.+:)(.+)-([^]+)/,`$1`+ki+`$2-$3$1`+Oi+(Gi(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Wi(e,`stretch`)?Da(Ui(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return Ui(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return Di+n+`:`+r+s+(i?Di+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(Gi(e,t+6)===121)return Ui(e,`:`,`:`+ki)+e;break;case 6444:switch(Gi(e,Gi(e,14)===45?18:11)){case 120:return Ui(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+ki+(Gi(e,14)===45?`inline-`:``)+`box$3$1`+ki+`$2$3$1`+Di+`$2box$3`)+e;case 100:return Ui(e,`:`,`:`+Di)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ui(e,`scroll-`,`scroll-snap-`)+e}return e}function Oa(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function ka(e,t,n,r){switch(e.type){case Ii:if(e.children.length)break;case Ni:case Pi:case Mi:return e.return=e.return||e.value;case Ai:return``;case Fi:return e.return=e.value+`{`+Oa(e.children,r)+`}`;case ji:if(!qi(e.value=e.props.join(`,`)))return``}return qi(n=Oa(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Aa(e){var t=Ji(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function ja(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Mi:e.return=Da(e.value,e.length,n);return;case Fi:return Oa([aa(e,{value:Ui(e.value,`@`,`@`+ki)})],r);case ji:if(e.length)return Xi(n=e.props,function(t){switch(Hi(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:oa(aa(e,{props:[Ui(t,/:(read-\w+)/,`:`+Oi+`$1`)]})),oa(aa(e,{props:[t]})),zi(e,{props:Zi(n,r)});break;case`::placeholder`:oa(aa(e,{props:[Ui(t,/:(plac\w+)/,`:`+ki+`input-$1`)]})),oa(aa(e,{props:[Ui(t,/:(plac\w+)/,`:`+Oi+`$1`)]})),oa(aa(e,{props:[Ui(t,/:(plac\w+)/,Di+`input-$1`)]})),oa(aa(e,{props:[t]})),zi(e,{props:Zi(n,r)});break}return``})}}var Ma=`data-ant-cssinjs-cache-path`,Na=`_FILE_STYLE__`,Pa,Fa=!0;function Ia(){if(!Pa&&(Pa={},pe())){let e=document.createElement(`div`);e.className=Ma,e.style.position=`fixed`,e.style.visibility=`hidden`,e.style.top=`-9999px`,document.body.appendChild(e);let t=getComputedStyle(e).content||``;t=t.replace(/^"/,``).replace(/"$/,``),t.split(`;`).forEach(e=>{let[t,n]=e.split(`:`);Pa[t]=n});let n=document.querySelector(`style[${Ma}]`);n&&(Fa=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function La(e){return Ia(),!!Pa[e]}function Ra(e){let t=Pa[e],n=null;if(t&&pe())if(Fa)n=Na;else{let t=document.querySelector(`style[${Gr}="${Pa[e]}"]`);t?n=t.innerHTML:delete Pa[e]}return[n,t]}var za=`_skip_check_`,Ba=`_multi_value_`;function Va(e,t){return(t?Oa(Sa(e),Aa([ja,ka])):Oa(Sa(e),ka)).replace(/\{%%%\:[^;];}/g,`;`)}function Ha(e){return typeof e==`object`&&e&&(za in e||Ba in e)}function Ua(e,t,n=`high`){if(!t)return e;let r=ci({hashCls:t,hashPriority:n});return e.split(`,`).map(e=>{let t=e.trim().split(/\s+/),n=t[0]||``,i=n.match(/^\w+/)?.[0]||``;return n=`${i}${r}${n.slice(i.length)}`,[n,...t.slice(1)].join(` `)}).join(`,`)}var Wa=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{let{hashId:a,layer:o,path:s,hashPriority:c,transformers:l=[],linters:u=[]}=t,d=``,f={};function p(e){let n=e.getName(a);if(!f[n]){let[r]=Wa(e.style,t,{root:!1,parentSelectors:i});f[n]=`@keyframes ${e.getName(a)}${r}`}}function m(e,t=[]){return e.forEach(e=>{Array.isArray(e)?m(e,t):e&&t.push(e)}),t}return m(Array.isArray(e)?e:[e]).forEach(e=>{let o=typeof e==`string`&&!n?{}:e;if(typeof o==`string`)d+=`${o}\n`;else if(o._keyframe)p(o);else{let e=l.reduce((e,t)=>t?.visit?.(e)||e,o);Object.keys(e).forEach(o=>{let s=e[o];if(typeof s==`object`&&s&&(o!==`animationName`||!s._keyframe)&&!Ha(s)){let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith(`@`)?e=!0:l=Ua(l===`&`?``:o,a,c):n&&!a&&(l===`&`||l===``)&&(l=``,u=!0);let[p,m]=Wa(s,t,{root:u,injectHash:e,parentSelectors:[...i,l]});f={...f,...m},d+=`${l}${p}`}else{function e(e,t){let n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),r=t;!Ei[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t?._keyframe&&(p(t),r=t.getName(a)),d+=`${n}:${r};`}let t=s?.value??s;typeof s==`object`&&s?.[Ba]&&Array.isArray(t)?t.forEach(t=>{e(o,t)}):li(t)&&e(o,t)}})}}),n?o&&(d&&=`@layer ${o.name} {${d}}`,o.dependencies&&(f[`@layer ${o.name}`]=o.dependencies.map(e=>`@layer ${e}, ${o.name};`).join(`
`))):d=`{${d}}`,[d,f]};function Ga(e,t){return zr(`${e.join(`%`)}${t}`)}var Ka=`style`;function qa(e,t){let{path:n,hashId:r,layer:i,nonce:a,clientOnly:o,order:s=0}=e,{mock:c,hashPriority:l,container:u,transformers:d,linters:f,cache:p,layer:m,autoPrefix:g}=h.useContext(Jr),_=[r||``];m&&_.push(`layer`),_.push(...n);let v=si;hi(Ka,_,()=>{let e=_.join(`|`);if(La(e)){let[t,n]=Ra(e);if(t)return[t,n,{},o,s]}let[a,c]=Wa(t(),{hashId:r,hashPriority:l,layer:m?i:void 0,path:n.join(`-`),transformers:d,linters:f}),u=Va(a,g||!1);return[u,Ga(_,u),c,o,s]},(e,t)=>{let[,n]=e;t&&si&&Qe(n,{mark:Gr,attachTo:u})},e=>{let[t,n,r,,i]=e;if(v&&t!==`_FILE_STYLE__`){let e={mark:Gr,prepend:m?!1:`queue`,attachTo:u,priority:i};e=ui(e,a);let o=[],s=[];Object.keys(r).forEach(e=>{e.startsWith(`@layer`)?o.push(e):s.push(e)}),o.forEach(t=>{et(Va(r[t],g||!1),`_layer-${t}`,{...e,prepend:!0})});let c=et(t,n,e);c[Kr]=p.instanceId,s.forEach(t=>{et(Va(r[t],g||!1),`_effect-${t}`,e)})}})}var Ja=`cssVar`,Ya=(e,t)=>{let{key:n,prefix:r,unitless:i,ignore:a,token:o,hashId:s,scope:c,nonce:l}=e,{cache:{instanceId:u},container:d,hashPriority:f}=(0,h.useContext)(Jr),{_tokenKey:p}=o,m=Array.isArray(c)?c.join(`@@`):c,g=[...e.path,n,m,p];return hi(Ja,g,()=>{let[e,o]=pi(t(),n,{prefix:r,unitless:i,ignore:a,scope:c,hashPriority:f,hashCls:s});return[e,o,Ga(g,o),n]},([,,e])=>{si&&Qe(e,{mark:Gr,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:Gr,prepend:`queue`,attachTo:d,priority:-999};r=ui(r,l);let i=et(e,t,r);i[Kr]=u,i.setAttribute(Wr,n)})},Xa=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=``){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function Za(e){return e.notSplit=!0,e}Za([`borderTop`,`borderBottom`]),Za([`borderTop`]),Za([`borderBottom`]),Za([`borderLeft`,`borderRight`]),Za([`borderLeft`]),Za([`borderRight`]);var Qa={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},$a=(e,t=!1)=>({boxSizing:`border-box`,margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:`none`,fontFamily:t?`inherit`:e.fontFamily}),eo=()=>({display:`inline-flex`,alignItems:`center`,color:`inherit`,fontStyle:`normal`,lineHeight:0,textAlign:`center`,textTransform:`none`,verticalAlign:`-0.125em`,textRendering:`optimizeLegibility`,"-webkit-font-smoothing":`antialiased`,"-moz-osx-font-smoothing":`grayscale`,"> *":{lineHeight:1},svg:{display:`inline-block`}}),to=new Xa(`loadingCircle`,{"100%":{transform:`rotate(360deg)`}}),no=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),ro=(e,t)=>({outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),io=(e,t)=>({"&:focus-visible":ro(e,t)}),ao=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:`transparent`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":`objects`,"&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...io(e),"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),oo=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...o,[i]:o}}},so=e=>({[`.${e}`]:{...eo(),[`.${e} .${e}-icon`]:{display:`block`}},[`.${e}-spin`]:{animationName:to,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`}}),co=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:`none`,userSelect:`none`,...io(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}});function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},lo(e)}function uo(e){if(Array.isArray(e))return e}function fo(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function po(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mo(e,t){return uo(e)||fo(e,t)||lr(e,t)||po()}function ho(e,t){if(lo(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(lo(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function go(e){var t=ho(e,`string`);return lo(t)==`symbol`?t:t+``}function _o(e,t,n){return(t=go(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vo(Object(n),!0).forEach(function(t){_o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bo(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,go(r.key),r)}}function So(e,t,n){return t&&xo(e.prototype,t),n&&xo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Co(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function wo(e,t){return wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wo(e,t)}function To(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wo(e,t)}function Eo(e){return Eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Eo(e)}function Do(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Do=function(){return!!e})()}function Oo(e,t){if(t&&(lo(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Co(e)}function ko(e){var t=Do();return function(){var n,r=Eo(e);if(t){var i=Eo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Oo(this,n)}}var Ao=So(function e(){bo(this,e)}),jo=`CALC_UNIT`,Mo=new RegExp(jo,`g`);function No(e){return typeof e==`number`?`${e}${jo}`:e}var cee=function(e){To(n,e);var t=ko(n);function n(e,r){var i;bo(this,n),i=t.call(this),_o(Co(i),`result`,``),_o(Co(i),`unitlessCssVar`,void 0),_o(Co(i),`lowPriority`,void 0);var a=lo(e);return i.unitlessCssVar=r,e instanceof n?i.result=`(${e.result})`:a===`number`?i.result=No(e):a===`string`&&(i.result=e),i}return So(n,[{key:`add`,value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} + ${No(e)}`),this.lowPriority=!0,this}},{key:`sub`,value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} - ${No(e)}`),this.lowPriority=!0,this}},{key:`mul`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:`div`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:`getResult`,value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:`equal`,value:function(e){var t=this,n=(e||{}).unit,r=!0;return typeof n==`boolean`?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(Mo,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(Ao),Po=function(e){To(n,e);var t=ko(n);function n(e){var r;return bo(this,n),r=t.call(this),_o(Co(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return So(n,[{key:`add`,value:function(e){return e instanceof n?this.result+=e.result:typeof e==`number`&&(this.result+=e),this}},{key:`sub`,value:function(e){return e instanceof n?this.result-=e.result:typeof e==`number`&&(this.result-=e),this}},{key:`mul`,value:function(e){return e instanceof n?this.result*=e.result:typeof e==`number`&&(this.result*=e),this}},{key:`div`,value:function(e){return e instanceof n?this.result/=e.result:typeof e==`number`&&(this.result/=e),this}},{key:`equal`,value:function(){return this.result}}]),n}(Ao),Fo=function(e,t){var n=e===`css`?cee:Po;return function(e){return new n(e,t)}},Io=function(e,t){return`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`)].filter(Boolean).join(`-`)}`};function Lo(e,t,n,r){var i=yo({},t[e]);r!=null&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=mo(e,2),n=t[0],r=t[1];(i!=null&&i[n]||i!=null&&i[r])&&(i[r]??(i[r]=i?.[n]))});var a=yo(yo({},n),i);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var Ro=typeof CSSINJS_STATISTIC<`u`,zo=!0;function Bo(){var e=[...arguments];if(!Ro)return Object.assign.apply(Object,[{}].concat(e));zo=!1;var t={};return e.forEach(function(e){lo(e)===`object`&&Object.keys(e).forEach(function(n){Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return e[n]}})})}),zo=!0,t}var Vo={};function Ho(){}var Uo=function(e){var t,n=e,r=Ho;return Ro&&typeof Proxy<`u`&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(zo){var r;(r=t)==null||r.add(n)}return e[n]}}),r=function(e,n){Vo[e]={global:Array.from(t),component:yo(yo({},Vo[e]?.component),n)}}),{token:n,keys:t,flush:r}};function Wo(e,t,n){return typeof n==`function`?n(Bo(t,t[e]??{})):n??{}}function Go(e){return e===`js`?{max:Math.max,min:Math.min}:{max:function(){return`max(${[...arguments].map(function(e){return J(e)}).join(`,`)})`},min:function(){return`min(${[...arguments].map(function(e){return J(e)}).join(`,`)})`}}}var Ko=1e3*60*10,qo=new(function(){function e(){bo(this,e),_o(this,`map`,new Map),_o(this,`objectIDMap`,new WeakMap),_o(this,`nextID`,0),_o(this,`lastAccessBeat`,new Map),_o(this,`accessBeat`,0)}return So(e,[{key:`set`,value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:`get`,value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:`getCompositeKey`,value:function(e){var t=this;return e.map(function(e){return e&&lo(e)===`object`?`obj_${t.getObjectID(e)}`:`${lo(e)}_${e}`}).join(`|`)}},{key:`getObjectID`,value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:`clear`,value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>Ko&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function Jo(e,t){return h.useMemo(function(){var n=qo.get(t);if(n)return n;var r=e();return qo.set(t,r),r},t)}var Yo=function(){return{}};function Xo(e){var t=e.useCSP,n=t===void 0?Yo:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=r?.unitless||{},c=yo(yo({},typeof s==`function`?s(e):{}),{},_o({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=yo(yo({},r),{},{unitless:c,prefixToken:a}),f=u(e,t,n,d),p=l(i,n,d);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=f(e,t),i=r?.extraCssVarPrefixCls,a=typeof i==`function`?i({prefixCls:e,rootCls:t}):i;return[n,p(a!=null&&a.length?[t].concat(dr(a)):t)]}}function l(e,t,i){var a=i.unitless,o=i.prefixToken,s=i.ignore;return function(c){var l=r(),u=l.cssVar,d=l.realToken,f=n();return Ya({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=Wo(e,d,t),r=Lo(e,d,n,{deprecatedTokens:i?.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[o(e)]=r[e],delete r[e]}),r}),u?.key}}function u(t,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=mo(u,1)[0],f=u.join(`-`),p=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,u=r(),m=u.theme,g=u.realToken,_=u.hashId,v=u.token,y=u.cssVar,b=u.zeroRuntime;if((0,h.useMemo)(function(){return b},[]))return _;var x=i(),S=x.rootPrefixCls,C=x.iconPrefixCls,w=n(),T=`css`,E=Jo(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(di(t,y.prefix)),e.add(di(t,Io(d,y.prefix)))}),Fo(T,e)},[T,d,y?.prefix]),D=Go(T),O=D.max,k=D.min,A={theme:m,token:v,hashId:_,nonce:function(){return w.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};return typeof a==`function`&&qa(yo(yo({},A),{},{clientOnly:!1,path:[`Shared`,S]}),function(){return a(v,{prefix:{rootPrefixCls:S,iconPrefixCls:C},csp:w})}),qa(yo(yo({},A),{},{path:[f,e,C]}),function(){if(l.injectStyle===!1)return[];var n=Uo(v),r=n.token,i=n.flush,a=Wo(d,g,c),u=`.${e}`,f=Lo(d,g,a,{deprecatedTokens:l.deprecatedTokens});a&&lo(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${di(e,Io(d,y.prefix))})`});var p=Bo(r,{componentCls:u,prefixCls:e,iconCls:`.${C}`,antCls:`.${S}`,calc:E,max:O,min:k},a),m=s(p,{hashId:_,prefixCls:e,rootPrefixCls:S,iconPrefixCls:C});i(d,f);var h=typeof o==`function`?o(p,e,t,l.resetFont):null;return[l.resetStyle===!1?null:h,m]}),_}}function d(e,t,n){var r=u(e,t,n,yo({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null}}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:u}}var Zo=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function Qo(e){return(e+8)/e}function $o(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:Qo(e)}))}var es=`6.5.0`,ts={blue:`#1677FF`,purple:`#722ED1`,cyan:`#13C2C2`,green:`#52C41A`,magenta:`#EB2F96`,pink:`#EB2F96`,red:`#F5222D`,orange:`#FA8C16`,yellow:`#FADB14`,volcano:`#FA541C`,geekblue:`#2F54EB`,gold:`#FAAD14`,lime:`#A0D911`},ns={...ts,colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:`'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,fontSize:14,lineWidth:1,lineType:`solid`,motionUnit:.1,motionBase:0,motionEaseOutCirc:`cubic-bezier(0.08, 0.82, 0.17, 1)`,motionEaseInOutCirc:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,motionEaseOut:`cubic-bezier(0.215, 0.61, 0.355, 1)`,motionEaseInOut:`cubic-bezier(0.645, 0.045, 0.355, 1)`,motionEaseOutBack:`cubic-bezier(0.12, 0.4, 0.29, 1.46)`,motionEaseInBack:`cubic-bezier(0.71, -0.46, 0.88, 0.6)`,motionEaseInQuint:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,motionEaseOutQuint:`cubic-bezier(0.23, 1, 0.32, 1)`,borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},rs={aliceblue:`9ehhb`,antiquewhite:`9sgk7`,aqua:`1ekf`,aquamarine:`4zsno`,azure:`9eiv3`,beige:`9lhp8`,bisque:`9zg04`,black:`0`,blanchedalmond:`9zhe5`,blue:`73`,blueviolet:`5e31e`,brown:`6g016`,burlywood:`8ouiv`,cadetblue:`3qba8`,chartreuse:`4zshs`,chocolate:`87k0u`,coral:`9yvyo`,cornflowerblue:`3xael`,cornsilk:`9zjz0`,crimson:`8l4xo`,cyan:`1ekf`,darkblue:`3v`,darkcyan:`rkb`,darkgoldenrod:`776yz`,darkgray:`6mbhl`,darkgreen:`jr4`,darkgrey:`6mbhl`,darkkhaki:`7ehkb`,darkmagenta:`5f91n`,darkolivegreen:`3bzfz`,darkorange:`9yygw`,darkorchid:`5z6x8`,darkred:`5f8xs`,darksalmon:`9441m`,darkseagreen:`5lwgf`,darkslateblue:`2th1n`,darkslategray:`1ugcv`,darkslategrey:`1ugcv`,darkturquoise:`14up`,darkviolet:`5rw7n`,deeppink:`9yavn`,deepskyblue:`11xb`,dimgray:`442g9`,dimgrey:`442g9`,dodgerblue:`16xof`,firebrick:`6y7tu`,floralwhite:`9zkds`,forestgreen:`1cisi`,fuchsia:`9y70f`,gainsboro:`8m8kc`,ghostwhite:`9pq0v`,goldenrod:`8j4f4`,gold:`9zda8`,gray:`50i2o`,green:`pa8`,greenyellow:`6senj`,grey:`50i2o`,honeydew:`9eiuo`,hotpink:`9yrp0`,indianred:`80gnw`,indigo:`2xcoy`,ivory:`9zldc`,khaki:`9edu4`,lavenderblush:`9ziet`,lavender:`90c8q`,lawngreen:`4vk74`,lemonchiffon:`9zkct`,lightblue:`6s73a`,lightcoral:`9dtog`,lightcyan:`8s1rz`,lightgoldenrodyellow:`9sjiq`,lightgray:`89jo3`,lightgreen:`5nkwg`,lightgrey:`89jo3`,lightpink:`9z6wx`,lightsalmon:`9z2ii`,lightseagreen:`19xgq`,lightskyblue:`5arju`,lightslategray:`4nwk9`,lightslategrey:`4nwk9`,lightsteelblue:`6wau6`,lightyellow:`9zlcw`,lime:`1edc`,limegreen:`1zcxe`,linen:`9shk6`,magenta:`9y70f`,maroon:`4zsow`,mediumaquamarine:`40eju`,mediumblue:`5p`,mediumorchid:`79qkz`,mediumpurple:`5r3rv`,mediumseagreen:`2d9ip`,mediumslateblue:`4tcku`,mediumspringgreen:`1di2`,mediumturquoise:`2uabw`,mediumvioletred:`7rn9h`,midnightblue:`z980`,mintcream:`9ljp6`,mistyrose:`9zg0x`,moccasin:`9zfzp`,navajowhite:`9zest`,navy:`3k`,oldlace:`9wq92`,olive:`50hz4`,olivedrab:`472ub`,orange:`9z3eo`,orangered:`9ykg0`,orchid:`8iu3a`,palegoldenrod:`9bl4a`,palegreen:`5yw0o`,paleturquoise:`6v4ku`,palevioletred:`8k8lv`,papayawhip:`9zi6t`,peachpuff:`9ze0p`,peru:`80oqn`,pink:`9z8wb`,plum:`8nba5`,powderblue:`6wgdi`,purple:`4zssg`,rebeccapurple:`3zk49`,red:`9y6tc`,rosybrown:`7cv4f`,royalblue:`2jvtt`,saddlebrown:`5fmkz`,salmon:`9rvci`,sandybrown:`9jn1c`,seagreen:`1tdnb`,seashell:`9zje6`,sienna:`6973h`,silver:`7ir40`,skyblue:`5arjf`,slateblue:`45e4t`,slategray:`4e100`,slategrey:`4e100`,snow:`9zke2`,springgreen:`1egv`,steelblue:`2r1kk`,tan:`87yx8`,teal:`pds`,thistle:`8ggk8`,tomato:`9yqfb`,turquoise:`2j4r4`,violet:`9b10u`,wheat:`9ld4j`,white:`9zldr`,whitesmoke:`9lhpx`,yellow:`9zl6o`,yellowgreen:`61fzm`},is=Math.round;function as(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return n[3]?r[3]=n[3].includes(`%`)?r[3]/100:r[3]:r[3]=1,r}var os=(e,t,n)=>n===0?e:e/100;function ss(e,t){let n=t||255;return e>n?n:e<0?0:e}var cs=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t)if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}if(/^#?[A-F\d]{3,8}$/i.test(e))this.fromHexString(e);else if(n(`rgb`))this.fromRgbString(e);else if(n(`hsl`))this.fromHslString(e);else if(n(`hsv`)||n(`hsb`))this.fromHsvString(e);else{let t=rs[e.toLowerCase()];t&&this.fromHexString(parseInt(t,36).toString(16).padStart(6,`0`))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=ss(t.r),this.g=ss(t.g),this.b=ss(t.b),this.a=typeof t.a==`number`?ss(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}setR(e){return this._sc(`r`,e)}setG(e){return this._sc(`g`,e)}setB(e){return this._sc(`b`,e)}setA(e){return this._sc(`a`,e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=is(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(this._hsv_s===void 0){let e=this.getMax()-this.getMin();e===0?this._hsv_s=0:this._hsv_s=e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(this._hsl_s===void 0){let e=this.getMax()-this.getMin();if(e===0)this._hsl_s=0;else{let t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return this._l===void 0&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return this._v===void 0&&(this._v=this.getMax()/255),this._v}getBrightness(){return this._brightness===void 0&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:is(i(`r`)),g:is(i(`g`)),b:is(i(`b`)),a:is(i(`a`)*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>is((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=is(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=is(this.getHSLSaturation()*100),n=is(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=ss(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){let i=(e%360+360)%360;if(this._h=i,this._hsl_s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=is(n*255);this.r=e,this.g=e,this.b=e;return}let a=0,o=0,s=0,c=i/60,l=(1-Math.abs(2*n-1))*t,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);let d=n-l/2;this.r=is((a+d)*255),this.g=is((o+d)*255),this.b=is((s+d)*255)}fromHsv({h:e,s:t,v:n,a:r}){let i=(e%360+360)%360;this._h=i,this._hsv_s=t,this._v=n,this.a=typeof r==`number`?r:1;let a=is(n*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;let o=i/60,s=Math.floor(o),c=o-s,l=is(n*(1-t)*255),u=is(n*(1-t*c)*255),d=is(n*(1-t*(1-c))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=u;break;case 4:this.r=d,this.g=l;break;default:this.g=l,this.b=u;break}}fromHsvString(e){let t=as(e,os);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=as(e,os);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=as(e,(e,t)=>t.includes(`%`)?is(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},ls=2,us=.16,ds=.05,fs=.05,ps=.15,ms=5,hs=4,lee=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function gs(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ls*t:Math.round(e.h)+ls*t:n?Math.round(e.h)+ls*t:Math.round(e.h)-ls*t,r<0?r+=360:r>=360&&(r-=360),r}function _s(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return r=n?e.s-us*t:t===hs?e.s+us:e.s+ds*t,r>1&&(r=1),n&&t===ms&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function vs(e,t,n){let r;return r=n?e.v+fs*t:e.v-ps*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ys(e,t={}){let n=[],r=new cs(e),i=r.toHsv();for(let e=ms;e>0;--e){let t=new cs({h:gs(i,e,!0),s:_s(i,e,!0),v:vs(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=hs;e+=1){let t=new cs({h:gs(i,e),s:_s(i,e),v:vs(i,e)});n.push(t)}return t.theme===`dark`?lee.map(({index:e,amount:r})=>new cs(t.backgroundColor||`#141414`).mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}var bs={red:`#F5222D`,volcano:`#FA541C`,orange:`#FA8C16`,gold:`#FAAD14`,yellow:`#FADB14`,lime:`#A0D911`,green:`#52C41A`,cyan:`#13C2C2`,blue:`#1677FF`,geekblue:`#2F54EB`,purple:`#722ED1`,magenta:`#EB2F96`,grey:`#666666`},xs=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];xs.primary=xs[5];var Ss=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];Ss.primary=Ss[5];var Cs=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];Cs.primary=Cs[5];var ws=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];ws.primary=ws[5];var Ts=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];Ts.primary=Ts[5];var Es=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];Es.primary=Es[5];var Ds=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];Ds.primary=Ds[5];var Os=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];Os.primary=Os[5];var ks=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];ks.primary=ks[5];var As=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];As.primary=As[5];var js=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];js.primary=js[5];var Ms=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];Ms.primary=Ms[5];var Ns=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];Ns.primary=Ns[5];var Ps={red:xs,volcano:Ss,orange:Cs,gold:ws,yellow:Ts,lime:Es,green:Ds,cyan:Os,blue:ks,geekblue:As,purple:js,magenta:Ms,grey:Ns},Fs=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];Fs.primary=Fs[5];var Is=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];Is.primary=Is[5];var Ls=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];Ls.primary=Ls[5];var Rs=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];Rs.primary=Rs[5];var zs=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];zs.primary=zs[5];var Bs=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];Bs.primary=Bs[5];var Vs=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];Vs.primary=Vs[5];var Hs=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];Hs.primary=Hs[5];var Us=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];Us.primary=Us[5];var Ws=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];Ws.primary=Ws[5];var Gs=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];Gs.primary=Gs[5];var Ks=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];Ks.primary=Ks[5];var qs=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];qs.primary=qs[5];function Js(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new cs(p[1]).mix(new cs(p[3]),50).toHexString(),v={};return Zo.forEach(n=>{let r=e[n];if(r){let e=t(r);v[`${n}Hover`]=e[5],v[`${n}Active`]=e[7]}}),{...h,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],...v,colorBgMask:new cs(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`}}var Ys=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Xs(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...Ys(r)}}var Zs=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},uee=e=>{let t=$o(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Qs(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var $s=(e,t)=>new cs(e).setA(t).toRgbString(),ec=(e,t)=>new cs(e).darken(t).toHexString(),tc=e=>{let t=ys(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},nc=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:$s(i,.88),colorTextSecondary:$s(i,.65),colorTextTertiary:$s(i,.45),colorTextQuaternary:$s(i,.25),colorFill:$s(i,.15),colorFillSecondary:$s(i,.06),colorFillTertiary:$s(i,.04),colorFillQuaternary:$s(i,.02),colorBgSolid:$s(i,1),colorBgSolidHover:$s(i,.75),colorBgSolidActive:$s(i,.95),colorBgLayout:ec(r,4),colorBgContainer:ec(r,0),colorBgElevated:ec(r,0),colorBgSpotlight:$s(i,.85),colorBgBlur:`transparent`,colorBorder:ec(r,15),colorBorderDisabled:ec(r,15),colorBorderSecondary:ec(r,6)}};function rc(e){bs.pink=bs.magenta,Ps.pink=Ps.magenta;let t=Object.keys(ts).map(t=>{let n=e[t]===bs[t]?Ps[t]:ys(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{});return{...e,...t,...Js(e,{generateColorPalettes:tc,generateNeutralColorPalettes:nc}),...uee(e.fontSize),...Qs(e),...Zs(e),...Xs(e)}}var ic=ei(rc),ac={token:ns,override:{override:ns},hashed:!0},oc=h.createContext(ac);function sc(e){return e>=0&&e<=255}function cc(e,t){let{r:n,g:r,b:i,a}=new cs(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new cs(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(sc(t)&&sc(a)&&sc(l))return new cs({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new cs({r:n,g:r,b:i,a:1}).toRgbString()}function lc(e){let{override:t,...n}=e,r={...t};Object.keys(ns).forEach(e=>{delete r[e]});let i={...n,...r},a=new cs(i.colorShadow),o=a.a,s=e=>a.clone().setA(o*e).toRgbString(),c=1200,l=1600,u=1920;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:cc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:cc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:cc(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:cc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
0 6px 16px 0 ${s(.08)},
0 3px 6px -4px ${s(.12)},
0 9px 28px 8px ${s(.05)}
`,boxShadowSecondary:`
0 6px 16px 0 ${s(.08)},
0 3px 6px -4px ${s(.12)},
0 9px 28px 8px ${s(.05)}
`,boxShadowTertiary:`
0 1px 2px 0 ${s(.05)},
0 1px 6px -1px ${s(.03)},
0 2px 4px 0 ${s(.03)}
`,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,screenXXLMax:u-1,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${s(.08)}) drop-shadow(0 3px 6px ${s(.12)}) drop-shadow(0 9px 28px ${s(.05)})`,boxShadowCard:`
0 1px 2px -2px ${s(.16)},
0 3px 6px 0 ${s(.12)},
0 5px 12px 4px ${s(.09)}
`,boxShadowDrawerRight:`
-6px 0 16px 0 ${s(.08)},
-3px 0 6px -4px ${s(.12)},
-9px 0 28px 8px ${s(.05)}
`,boxShadowDrawerLeft:`
6px 0 16px 0 ${s(.08)},
3px 0 6px -4px ${s(.12)},
9px 0 28px 8px ${s(.05)}
`,boxShadowDrawerUp:`
0 6px 16px 0 ${s(.08)},
0 3px 6px -4px ${s(.12)},
0 9px 28px 8px ${s(.05)}
`,boxShadowDrawerDown:`
0 -6px 16px 0 ${s(.08)},
0 -3px 6px -4px ${s(.12)},
0 -9px 28px 8px ${s(.05)}
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...r}}var uc={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},dc={motionBase:!0,motionUnit:!0},fc={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},pc=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i,...a}=t,o={...r,override:i};return o=lc(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n,...r}=t,i=r;n&&(i=pc({...o,...r},{override:r},n)),o[e]=i}),o};function mc(){let{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:a}=h.useContext(oc),{csp:o,getPrefixCls:s}=h.useContext(Fr),c={prefix:i?.prefix??s(),key:i?.key??`css-var-root`},l=`${es}-${t||``}`,u=n||ic,[d,f,p]=Ti(u,[ns,e],{salt:l,override:r,getComputedToken:pc,cssVar:{...c,unitless:uc,ignore:dc,preserve:fc},nonce:o?.nonce});return[u,p,t?f:``,d,c,!!a]}var{genStyleHooks:hc,genComponentStyleHook:gc,genSubStyleComponent:_c}=Xo({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,h.useContext)(Fr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=mc();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,h.useContext)(Fr);return e??{}},getResetStyles:(e,t)=>{let n=ao(e);return[n,{"&":n},so(t?.prefix.iconPrefixCls??`anticon`)]},getCommonStyle:oo,getCompUnitless:()=>uc}),vc=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function yc(e,t){return Zo.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s})}},{})}var bc=(e,t)=>{let[n,r]=mc();return qa({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>so(e))},xc=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),Sc=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:l,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m,lineWidth:h,lineType:g,colorSuccessBorder:_,colorWarningBorder:v,colorErrorBorder:y,colorInfoBorder:b}=e;return{[t]:{...$a(e),position:`relative`,display:`flex`,alignItems:`center`,padding:m,wordWrap:`break-word`,borderRadius:c,borderWidth:J(h),borderStyle:g,[`&${t}-success`]:{borderColor:_},[`&${t}-info`]:{borderColor:b},[`&${t}-warning`]:{borderColor:v},[`&${t}-error`]:{borderColor:y},[`&${t}-filled`]:{borderColor:`transparent`},[`&${t}-rtl`]:{direction:`rtl`},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:`none`,fontSize:a,lineHeight:s},"&-title":{color:f},[`&${t}-motion-leave`]:{overflow:`hidden`,opacity:1,transition:[`max-height`,`opacity`,`padding-top`,`padding-bottom`,`margin-bottom`].map(e=>`${e} ${n} ${l}`).join(`, `)},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:`0 !important`,paddingTop:0,paddingBottom:0,opacity:0},[`&${t}-with-description`]:{alignItems:`flex-start`,padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-title`]:{display:`block`,marginBottom:r,color:f,fontSize:o},[`${t}-description`]:{display:`block`,color:d}},[`&${t}-banner`]:{marginBottom:0,border:`0 !important`,borderRadius:0}}}},dee=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:i,colorWarningBg:a,colorError:o,colorErrorBg:s,colorInfo:c,colorInfoBg:l}=e;return{[t]:{"&-success":xc(r,n,t),"&-info":xc(l,c,t),"&-warning":xc(a,i,t),"&-error":{...xc(s,o,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},fee=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{[`${t}-actions`]:{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:`hidden`,fontSize:a,lineHeight:J(a),backgroundColor:`transparent`,border:`none`,cursor:`pointer`,...io(e),[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},Cc=hc(`Alert`,e=>[Sc(e),dee(e),fee(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),wc=e=>{let{icon:t,type:n,className:r,style:i,successIcon:a,infoIcon:o,warningIcon:s,errorIcon:c}=e,l={success:a??h.createElement(q,null),info:o??h.createElement(de,null),error:c??h.createElement(ne,null),warning:s??h.createElement(ce,null)};return h.createElement(`span`,{className:r,style:i},t??l[n])},Tc=e=>{let{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a,className:o,style:s}=e,c=r===!0||r===void 0?h.createElement(ae,null):r;return t?h.createElement(`button`,{type:`button`,onClick:i,className:m(`${n}-close-icon`,o),tabIndex:0,style:s,...a},c):null},Ec=h.forwardRef((e,t)=>{let{description:n,prefixCls:r,message:i,title:a,banner:o,className:s,rootClassName:c,style:l,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:g,closable:_,closeText:v,closeIcon:y,action:b,id:x,styles:S,classNames:C,...w}=e,T=a??i,[E,D]=h.useState(!1),O=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:O.current}));let{getPrefixCls:k,direction:A,variant:j,closable:M,closeIcon:N,className:P,style:F,classNames:I,styles:L,successIcon:R,infoIcon:z,warningIcon:B,errorIcon:V}=Rr(`alert`),H=k(`alert`,r),[U,W]=Cc(H),{onClose:G,afterClose:K}=gr(_)?_:{},q=t=>{D(!0),(G??e.onClose)?.(t)},ee=h.useMemo(()=>e.type===void 0?o?`warning`:`info`:e.type,[e.type,o]),te=e.variant??j??`outlined`,ne=h.useMemo(()=>gr(_)&&_.closeIcon||v?!0:typeof _==`boolean`?_:y!==!1&&fr(y)?!0:!!M,[v,y,_,M]),re=o&&g===void 0?!0:g,ie={...e,prefixCls:H,variant:te,type:ee,showIcon:re,closable:ne},ae=Er(F),oe=Er(l),[se,ce]=Or([I,C],[L,ae,S,oe],{props:ie}),le=m(H,`${H}-${ee}`,`${H}-${te}`,{[`${H}-with-description`]:!!n,[`${H}-no-icon`]:!re,[`${H}-banner`]:!!o,[`${H}-rtl`]:A===`rtl`},P,s,c,se.root,W,U),ue=qt(w,{aria:!0,data:!0}),de=h.useMemo(()=>gr(_)&&_.closeIcon?_.closeIcon:v||(y===void 0?gr(M)&&M.closeIcon?M.closeIcon:N:y),[y,_,M,v,N]),fe=h.useMemo(()=>{let e=_??M;return gr(e)?qt(e,{data:!0,aria:!0}):{}},[_,M]);return h.createElement(ar,{visible:!E,motionName:`${H}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:K??p},({className:t,style:r},i)=>h.createElement(`div`,{id:x,ref:Fe(O,i),"data-show":!E,className:m(le,t),style:{...ce.root,...r},onMouseEnter:u,onMouseLeave:d,onClick:f,role:`alert`,...ue},re?h.createElement(wc,{className:m(`${H}-icon`,se.icon),style:ce.icon,description:n,icon:e.icon,prefixCls:H,type:ee,successIcon:R,infoIcon:z,warningIcon:B,errorIcon:V}):null,h.createElement(`div`,{className:m(`${H}-section`,se.section),style:ce.section},T?h.createElement(`div`,{className:m(`${H}-title`,se.title),style:ce.title},T):null,n?h.createElement(`div`,{className:m(`${H}-description`,se.description),style:ce.description},n):null),b?h.createElement(`div`,{className:m(`${H}-actions`,se.actions),style:ce.actions},b):null,h.createElement(Tc,{className:se.close,style:ce.close,isClosable:ne,prefixCls:H,closeIcon:de,handleClose:q,ariaProps:fe})))});function Dc(e,t,n){return t=Eo(t),Oo(e,Do()?Reflect.construct(t,n||[],Eo(e).constructor):t.apply(e,n))}var Oc=function(e){function t(){var e;return bo(this,t),e=Dc(this,t,arguments),e.state={error:void 0,info:{}},e}return To(t,e),So(t,[{key:`componentDidCatch`,value:function(e,t){this.setState({error:e,info:t})}},{key:`render`,value:function(){let{message:e,title:t,description:n,id:r,children:i}=this.props,{error:a,info:o}=this.state,s=t??e,c=o?.componentStack||null,l=fr(s)?s:a?.toString(),u=fr(n)?n:c;return a?h.createElement(Ec,{id:r,type:`error`,title:l,description:h.createElement(`pre`,{style:{fontSize:`0.9em`,overflowX:`auto`}},u)}):i}}])}(h.PureComponent),kc=Ec;kc.ErrorBoundary=Oc;var Ac=(0,h.createContext)(void 0),jc={items_per_page:`/ page`,jump_to:`Go to`,jump_to_confirm:`confirm`,page:`Page`,prev_page:`Previous Page`,next_page:`Next Page`,prev_5:`Previous 5 Pages`,next_5:`Next 5 Pages`,prev_3:`Previous 3 Pages`,next_3:`Next 3 Pages`,page_size:`Page Size`},Mc={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0,locale:`en_US`,today:`Today`,now:`Now`,backToToday:`Back to today`,ok:`OK`,clear:`Clear`,week:`Week`,month:`Month`,year:`Year`,timeSelect:`select time`,dateSelect:`select date`,weekSelect:`Choose a week`,monthSelect:`Choose a month`,yearSelect:`Choose a year`,decadeSelect:`Choose a decade`,previousMonth:`Previous month (PageUp)`,nextMonth:`Next month (PageDown)`,previousYear:`Last year (Control + left)`,nextYear:`Next year (Control + right)`,previousDecade:`Last decade`,nextDecade:`Next decade`,previousCentury:`Last century`,nextCentury:`Next century`},Nc={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},Pc={lang:{placeholder:`Select date`,yearPlaceholder:`Select year`,quarterPlaceholder:`Select quarter`,monthPlaceholder:`Select month`,weekPlaceholder:`Select week`,rangePlaceholder:[`Start date`,`End date`],rangeYearPlaceholder:[`Start year`,`End year`],rangeQuarterPlaceholder:[`Start quarter`,`End quarter`],rangeMonthPlaceholder:[`Start month`,`End month`],rangeWeekPlaceholder:[`Start week`,`End week`],...Mc},timePickerLocale:{...Nc}},Fc=Pc,Ic="${label} is not a valid ${type}",Lc={locale:`en`,Pagination:jc,DatePicker:Pc,TimePicker:Nc,Calendar:Fc,global:{placeholder:`Please select`,close:`Close`,sortable:`sortable`,show:`Show`,hide:`Hide`},Table:{filterTitle:`Filter menu`,filterConfirm:`OK`,filterReset:`Reset`,filterEmptyText:`No filters`,filterCheckAll:`Select all items`,filterSearchPlaceholder:`Search in filters`,emptyText:`No data`,selectAll:`Select current page`,selectInvert:`Invert current page`,selectNone:`Clear all data`,selectionAll:`Select all data`,sortTitle:`Sort`,expand:`Expand row`,collapse:`Collapse row`,triggerDesc:`Click to sort descending`,triggerAsc:`Click to sort ascending`,cancelSort:`Click to cancel sorting`},Tour:{Next:`Next`,Previous:`Previous`,Finish:`Finish`},Modal:{okText:`OK`,cancelText:`Cancel`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Cancel`},Transfer:{titles:[``,``],searchPlaceholder:`Search here`,itemUnit:`item`,itemsUnit:`items`,remove:`Remove`,selectCurrent:`Select current page`,removeCurrent:`Remove current page`,selectAll:`Select all data`,deselectAll:`Deselect all data`,removeAll:`Remove all data`,selectInvert:`Invert current page`},Upload:{uploading:`Uploading...`,removeFile:`Remove file`,uploadError:`Upload error`,previewFile:`Preview file`,downloadFile:`Download file`},Empty:{description:`No data`},Icon:{icon:`icon`},Text:{edit:`Edit`,copy:`Copy`,copied:`Copied`,expand:`Expand`,collapse:`Collapse`},Form:{optional:`(optional)`,defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ic,method:Ic,array:Ic,object:Ic,number:Ic,date:Ic,boolean:Ic,integer:Ic,float:Ic,regexp:Ic,email:Ic,url:Ic,hex:Ic},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:`QR code expired`,refresh:`Refresh`,scanned:`Scanned`},ColorPicker:{presetEmpty:`Empty`,transparent:`Transparent`,singleColor:`Single`,gradientColor:`Gradient`}},Rc={...Lc.Modal},zc=[],Bc=()=>zc.reduce((e,t)=>({...e,...t}),Lc.Modal);function Vc(e){if(e){let t={...e};return zc.push(t),Rc=Bc(),()=>{zc=zc.filter(e=>e!==t),Rc=Bc()}}Rc={...Lc.Modal}}function Hc(){return Rc}var Uc=(0,h.createContext)(void 0),Wc=(e,t)=>{let n=h.useContext(Uc);return[h.useMemo(()=>{let r=t||Lc[e],i=n?.[e]??{};return{..._r(r)?r():r,...i||{}}},[e,t,n]),h.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?Lc.locale:e},[n])]},Gc=`internalMark`,Kc=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>Vc(t?.Modal),[t]);let i=h.useMemo(()=>({...t,exist:!0}),[t]);return h.createElement(Uc.Provider,{value:i},n)},qc=h.createContext(null),Jc=!1;function Yc(e){return typeof e==`boolean`&&(Jc=e),Jc}var Xc=[];function Zc(e,t){let[n]=h.useState(()=>pe()?document.createElement(`div`):null),r=h.useRef(!1),i=h.useContext(qc),[a,o]=h.useState(Xc),s=i||(r.current?void 0:e=>{o(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function l(){n.parentElement?.removeChild(n),r.current=!1}return he(()=>(e?i?i(c):c():l(),l),[e]),he(()=>{a.length&&(a.forEach(e=>e()),o(Xc))},[a]),[n,s]}function Qc(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var $c=`rc-util-locker-${Date.now()}`,el=0;function tl(e){let t=!!e,[n]=h.useState(()=>(el+=1,`${$c}_${el}`));he(()=>{if(t){let e=kt(document.body).width;et(`
html body {
overflow-y: hidden;
${Qc()?`width: calc(100% - ${e}px);`:``}
}`,n)}else Qe(n);return()=>{Qe(n)}},[t,n])}var nl=[],rl=200,il=0,al=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-il<rl)return;let t=nl.length;for(let n=t-1;n>=0;--n)nl[n].onEsc({top:n===t-1,event:e})}},ol=()=>{il=Date.now()};function sl(){window.addEventListener(`keydown`,al),window.addEventListener(`compositionend`,ol)}function cl(){nl.length===0&&(window.removeEventListener(`keydown`,al),window.removeEventListener(`compositionend`,ol))}function ll(e,t){let n=Ce(),r=fe(t),i=()=>{nl.find(e=>e.id===n)||nl.push({id:n,onEsc:r})},a=()=>{nl=nl.filter(e=>e.id!==n)};(0,h.useMemo)(()=>{e?i():e||a()},[e]),(0,h.useEffect)(()=>{if(e)return i(),sl(),()=>{a(),cl()}},[e])}var ul=e=>e===!1?!1:!pe()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,dl=h.forwardRef((e,t)=>{let{open:n,autoLock:r,getContainer:i,debug:a,autoDestroy:o=!0,children:s,onEsc:c}=e,[l,u]=h.useState(n),d=l||n;h.useEffect(()=>{(o||n)&&u(n)},[n,o]);let[f,p]=h.useState(()=>ul(i));h.useEffect(()=>{let e=ul(i);p(()=>e??null)});let[m,g]=Zc(d&&!f,a),_=f??m;tl(r&&n&&pe()&&(_===m||_===document.body)),ll(n,c);let v=null;s&&Le(s)&&t&&(v=Be(s));let y=Ie(v,t);if(!d||!pe()||f===void 0)return null;let b=_===!1||Yc(),x=s;return t&&(x=h.cloneElement(s,{ref:y})),h.createElement(qc.Provider,{value:g},b?x:(0,yn.createPortal)(x,_))}),fl=h.createContext(null);function pl({children:e,onBatchResize:t}){let n=h.useRef(0),r=h.useRef([]),i=h.useContext(fl),a=h.useCallback((e,a,o)=>{n.current+=1;let s=n.current;r.current.push({size:e,element:a,data:o}),Promise.resolve().then(()=>{s===n.current&&(t?.(r.current),r.current=[])}),i?.(e,a,o)},[t,i]);return h.createElement(fl.Provider,{value:a},e)}var ml=new Map;function hl(e){e.forEach(e=>{let{target:t}=e;ml.get(t)?.forEach(e=>e(t))})}var gl;function _l(){return gl||=new ResizeObserver(hl),gl}function vl(e,t){ml.has(e)||(ml.set(e,new Set),_l().observe(e)),ml.get(e).add(t)}function yl(e,t){ml.has(e)&&(ml.get(e).delete(t),ml.get(e).size||(_l().unobserve(e),ml.delete(e)))}function bl(e,t,n,r){let i=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=fe(e=>{let{width:t,height:a}=e.getBoundingClientRect(),{offsetWidth:o,offsetHeight:s}=e,c=Math.floor(t),l=Math.floor(a);if(i.current.width!==c||i.current.height!==l||i.current.offsetWidth!==o||i.current.offsetHeight!==s){let u={width:c,height:l,offsetWidth:o,offsetHeight:s};i.current=u;let d=o===Math.round(t)?t:o,f=s===Math.round(a)?a:s,p={...u,offsetWidth:d,offsetHeight:f};r?.(p,e),Promise.resolve().then(()=>{n?.(p,e)})}}),o=typeof t==`function`,s=h.useRef(0);h.useEffect(()=>{let n=o?t():t;return n&&e?vl(n,a):e&&o&&(s.current+=1),()=>{n&&yl(n,a)}},[e,o?s.current:t])}function xl(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=h.useRef(null),s=h.useContext(fl),c=typeof n==`function`,l=c?n(o):n,u=!c&&h.isValidElement(l)&&Le(l),d=Ie(u?Be(l):null,o),f=()=>nt(o.current);return h.useImperativeHandle(t,()=>f()),bl(!r,f,i,(e,t)=>{s?.(e,t,a)}),u?h.cloneElement(l,{ref:d}):l}var Sl=h.forwardRef(xl);function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cl.apply(this,arguments)}var wl=`rc-observer-key`;function Tl(e,t){let{children:n}=e;return(typeof n==`function`?[n]:tn(n)).map((n,r)=>{let i=n?.key||`${wl}-${r}`;return h.createElement(Sl,Cl({},e,{key:i,ref:r===0?t:void 0}),n)})}var El=h.forwardRef(Tl);El.Collection=pl;function Dl(e){let{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:a,content:o,style:s}=r||{},{x:c=0,y:l=0}=i,u=h.useRef(null);if(!n||!n.points)return null;let d={position:`absolute`};if(n.autoArrow!==!1){let e=n.points[0],t=n.points[1],r=e[0],i=e[1],a=t[0],o=t[1];r===a||![`t`,`b`].includes(r)?d.top=l:r===`t`?d.top=0:d.bottom=0,i===o||![`l`,`r`].includes(i)?d.left=c:i===`l`?d.left=0:d.right=0}return h.createElement(`div`,{ref:u,className:m(`${t}-arrow`,a),style:{...d,...s}},o)}function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ol.apply(this,arguments)}function kl(e){let{prefixCls:t,open:n,zIndex:r,mask:i,motion:a,mobile:o}=e;return i?h.createElement(ar,Ol({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>h.createElement(`div`,{style:{zIndex:r},className:m(`${t}-mask`,o&&`${t}-mobile-mask`,e)})):null}var Al=h.memo(({children:e})=>e,(e,t)=>t.cache);function jl(e,t,n,r,i,a,o,s){let c=`auto`,l=e?{}:{left:`-1000vw`,top:`-1000vh`,right:c,bottom:c};if(!e&&(t||!n)){let{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&e[0][1]===`r`,u=t&&e[0][0]===`b`;n?(l.right=i,l.left=c):(l.left=o,l.right=c),u?(l.bottom=a,l.top=c):(l.top=s,l.bottom=c)}return l}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}var Nl=h.forwardRef((e,t)=>{let{onEsc:n,popup:r,className:i,prefixCls:a,style:o,target:s,onVisibleChanged:c,open:l,keepDom:u,fresh:d,onClick:f,mask:p,arrow:g,arrowPos:_,align:v,motion:y,maskMotion:b,mobile:x,forceRender:S,getPopupContainer:C,autoDestroy:w,portal:T,children:E,zIndex:D,onMouseEnter:O,onMouseLeave:k,onPointerEnter:A,onPointerDownCapture:j,ready:M,offsetX:N,offsetY:P,offsetR:F,offsetB:I,onAlign:L,onPrepare:R,onResize:z,stretch:B,targetWidth:V,targetHeight:H}=e,U=typeof r==`function`?r():r,W=l||u,G=!!x,[K,q,ee]=h.useMemo(()=>x?[x.mask,x.maskMotion,x.motion]:[p,b,y],[x,p,b,y]),te=C?.length>0,[ne,re]=h.useState(!C||!te);he(()=>{!ne&&te&&s&&re(!0)},[ne,te,s]);let ie=fe((e,t)=>{z?.(e,t),L()}),ae=jl(G,M,l,v,F,I,N,P);if(!ne)return null;let oe={};return B&&(B.includes(`height`)&&H?oe.height=H:B.includes(`minHeight`)&&H&&(oe.minHeight=H),B.includes(`width`)&&V?oe.width=V:B.includes(`minWidth`)&&V&&(oe.minWidth=V)),l||(oe.pointerEvents=`none`),h.createElement(T,{open:S||W,getContainer:C&&(()=>C(s)),autoDestroy:w,onEsc:n},h.createElement(kl,{prefixCls:a,open:l,zIndex:D,mask:K,motion:q,mobile:G}),h.createElement(El,{onResize:ie,disabled:!l},e=>h.createElement(ar,Ml({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:`${a}-hidden`},ee,{onAppearPrepare:R,onEnterPrepare:R,visible:l,onVisibleChanged:e=>{y?.onVisibleChanged?.(e),c(e)}}),({className:n,style:r},s)=>{let c=m(a,n,i,{[`${a}-mobile`]:G});return h.createElement(`div`,{ref:Fe(e,t,s),className:c,style:{"--arrow-x":`${_.x||0}px`,"--arrow-y":`${_.y||0}px`,...ae,...oe,...r,boxSizing:`border-box`,zIndex:D,...o},onMouseEnter:O,onMouseLeave:k,onPointerEnter:A,onClick:f,onPointerDownCapture:j},g&&h.createElement(Dl,{prefixCls:a,arrow:g,arrowPos:_,align:v}),h.createElement(Al,{cache:!l&&!d},U))})),E)}),Pl=h.createContext(null),Fl=h.createContext(null);function Il(e){return e?Array.isArray(e)?e:[e]:[]}function Ll(e,t,n){return h.useMemo(()=>{let r=Il(t??e),i=Il(n??e),a=new Set(r),o=new Set(i);return a.has(`hover`)&&!a.has(`click`)&&a.add(`touch`),o.has(`hover`)&&!o.has(`click`)&&o.add(`touch`),[a,o]},[e,t,n])}function Rl(e=[],t=[],n){let r=(e,t)=>e[t]||``;return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function zl(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){let o=a[n];if(Rl(e[o]?.points,i,r))return`${t}-placement-${o}`}return``}function Bl(e){return e.ownerDocument.defaultView}function Vl(e){let t=[],n=e?.parentElement,r=[`hidden`,`scroll`,`clip`,`auto`];for(;n;){let{overflowX:e,overflowY:i,overflow:a}=Bl(n).getComputedStyle(n);[e,i,a].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function Hl(e,t=1){return Number.isNaN(e)?t:e}function Ul(e){return Hl(parseFloat(e),0)}function Wl(e,t){let n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:o,borderRightWidth:s}=Bl(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=Ul(i),m=Ul(a),h=Ul(o),g=Ul(s),_=Hl(Math.round(c.width/d*1e3)/1e3),v=Hl(Math.round(c.height/l*1e3)/1e3),y=(d-f-h-g)*_,b=(l-u-p-m)*v,x=p*v,S=m*v,C=h*_,w=g*_,T=0,E=0;if(t===`clip`){let e=Ul(r);T=e*_,E=e*v}let D=c.x+C-T,O=c.y+x-E,k=D+c.width+2*T-C-w-y,A=O+c.height+2*E-x-S-b;n.left=Math.max(n.left,D),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,A)}),n}function Gl(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Kl(e,t){let[n,r]=t||[];return[Gl(e.width,n),Gl(e.height,r)]}function ql(e=``){return[e[0],e[1]]}function Jl(e,t){let n=t[0],r=t[1],i,a;return a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2,i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function Yl(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function Xl(e){return e.join(``)}function Zl(e,t,n,r,i,a,o,s){let[c,l]=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=h.useRef(0),d=h.useMemo(()=>!t||s?[]:Vl(t),[t]),f=h.useRef({});e||(f.current={});let p=fe(()=>{if(t&&n&&e&&!s){let e=t,s=e.ownerDocument,c=Bl(e),{position:u}=c.getComputedStyle(e),p=e.style.left,m=e.style.top,h=e.style.right,g=e.style.bottom,_=e.style.overflow,v=e.style.overflowX,y=e.style.overflowY,b={...i[r],...a},x=s.createElement(`div`);e.parentElement?.appendChild(x),x.style.left=`${e.offsetLeft}px`,x.style.top=`${e.offsetTop}px`,x.style.position=u,x.style.height=`${e.offsetHeight}px`,x.style.width=`${e.offsetWidth}px`,e.style.left=`0`,e.style.top=`0`,e.style.right=`auto`,e.style.bottom=`auto`,e.style.overflow=`hidden`;let S;if(Array.isArray(n))S={x:n[0],y:n[1],width:0,height:0};else{let e=n.getBoundingClientRect();e.x=e.x??e.left,e.y=e.y??e.top,S={x:e.x,y:e.y,width:e.width,height:e.height}}let C=e.getBoundingClientRect(),{height:w,width:T}=c.getComputedStyle(e);C.x=C.x??C.left,C.y=C.y??C.top;let{clientWidth:E,clientHeight:D,scrollWidth:O,scrollHeight:k,scrollTop:A,scrollLeft:j}=s.documentElement,M=C.height,N=C.width,P=S.height,F=S.width,I={left:0,top:0,right:E,bottom:D},L={left:-j,top:-A,right:O-j,bottom:k-A},{htmlRegion:R}=b,z=`visible`,B=`visibleFirst`;R!==`scroll`&&R!==B&&(R=z);let V=R===B,H=Wl(L,d),U=Wl(I,d),W=R===z?U:H,G=V?U:W;e.style.left=`auto`,e.style.top=`auto`,e.style.right=`0`,e.style.bottom=`0`;let K=e.getBoundingClientRect();e.style.left=p,e.style.top=m,e.style.right=h,e.style.bottom=g,e.style.overflow=_,e.style.overflowX=v,e.style.overflowY=y,e.parentElement?.removeChild(x);let q=Hl(Math.round(N/parseFloat(T)*1e3)/1e3),ee=Hl(Math.round(M/parseFloat(w)*1e3)/1e3);if(q===0||ee===0||tt(n)&&!rt(n))return;let{offset:te,targetOffset:ne}=b,[re,ie]=Kl(C,te),[ae,oe]=Kl(S,ne);S.x-=ae,S.y-=oe;let[se,ce]=b.points||[],le=ql(ce),ue=ql(se),de=Jl(S,le),fe=Jl(C,ue),pe={...b},me=[ue,le],he=de.x-fe.x+re,ge=de.y-fe.y+ie;function _e(e,t,n=W){let r=C.x+e,i=C.y+t,a=r+N,o=i+M,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}let ve=_e(he,ge),ye=_e(he,ge,U),be=Jl(S,[`t`,`l`]),xe=Jl(C,[`t`,`l`]),Se=Jl(S,[`b`,`r`]),Ce=Jl(C,[`b`,`r`]),{adjustX:we,adjustY:Te,shiftX:Ee,shiftY:De}=b.overflow||{},Oe=e=>typeof e==`boolean`?e:e>=0,ke,Ae,je,Me;function Ne(){ke=C.y+ge,Ae=ke+M,je=C.x+he,Me=je+N}Ne();let Pe=Oe(Te),Fe=ue[0]===le[0];if(Pe&&ue[0]===`t`&&(Ae>G.bottom||f.current.bt)){let e=ge;Fe?e-=M-P:e=be.y-Ce.y-ie;let t=_e(he,e),n=_e(he,e,U);t>ve||t===ve&&(!V||n>=ye)?(f.current.bt=!0,ge=e,ie=-ie,me=[Yl(me[0],0),Yl(me[1],0)]):f.current.bt=!1}if(Pe&&ue[0]===`b`&&(ke<G.top||f.current.tb)){let e=ge;Fe?e+=M-P:e=Se.y-xe.y-ie;let t=_e(he,e),n=_e(he,e,U);t>ve||t===ve&&(!V||n>=ye)?(f.current.tb=!0,ge=e,ie=-ie,me=[Yl(me[0],0),Yl(me[1],0)]):f.current.tb=!1}let Ie=Oe(we),Le=ue[1]===le[1];if(Ie&&ue[1]===`l`&&(Me>G.right||f.current.rl)){let e=he;Le?e-=N-F:e=be.x-Ce.x-re;let t=_e(e,ge),n=_e(e,ge,U);t>ve||t===ve&&(!V||n>=ye)?(f.current.rl=!0,he=e,re=-re,me=[Yl(me[0],1),Yl(me[1],1)]):f.current.rl=!1}if(Ie&&ue[1]===`r`&&(je<G.left||f.current.lr)){let e=he;Le?e+=N-F:e=Se.x-xe.x-re;let t=_e(e,ge),n=_e(e,ge,U);t>ve||t===ve&&(!V||n>=ye)?(f.current.lr=!0,he=e,re=-re,me=[Yl(me[0],1),Yl(me[1],1)]):f.current.lr=!1}pe.points=[Xl(me[0]),Xl(me[1])],Ne();let Re=Ee===!0?0:Ee;typeof Re==`number`&&(je<U.left&&(he-=je-U.left-re,S.x+F<U.left+Re&&(he+=S.x-U.left+F-Re)),Me>U.right&&(he-=Me-U.right-re,S.x>U.right-Re&&(he+=S.x-U.right+Re)));let ze=De===!0?0:De;typeof ze==`number`&&(ke<U.top&&(ge-=ke-U.top-ie,S.y+P<U.top+ze&&(ge+=S.y-U.top+P-ze)),Ae>U.bottom&&(ge-=Ae-U.bottom-ie,S.y>U.bottom-ze&&(ge+=S.y-U.bottom+ze)));let Be=C.x+he,Ve=Be+N,He=C.y+ge,Ue=He+M,We=S.x,Ge=We+F,Ke=S.y,qe=Ke+P,Je=(Math.max(Be,We)+Math.min(Ve,Ge))/2-Be,Ye=(Math.max(He,Ke)+Math.min(Ue,qe))/2-He;o?.(t,pe);let Xe=K.right-C.x-(he+C.width),Ze=K.bottom-C.y-(ge+C.height);q===1&&(he=Math.floor(he),Xe=Math.floor(Xe)),ee===1&&(ge=Math.floor(ge),Ze=Math.floor(Ze)),l({ready:!0,offsetX:he/q,offsetY:ge/ee,offsetR:Xe/q,offsetB:Ze/ee,arrowX:Je/q,arrowY:Ye/ee,scaleX:q,scaleY:ee,align:pe})}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},g=()=>{l(e=>({...e,ready:!1}))};return he(g,[r]),he(()=>{e||g()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function Ql(){let e=h.useRef(null),t=()=>{e.current&&=(clearTimeout(e.current),null)};return h.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)}}function $l(e,t,n,r,i){he(()=>{if(e&&t&&n){let e=t,a=n,o=Vl(e),s=Vl(a),c=Bl(a),l=new Set([c,...o,...s]);function u(){r(),i()}return l.forEach(e=>{e.addEventListener(`scroll`,u,{passive:!0})}),c.addEventListener(`resize`,u,{passive:!0}),r(),()=>{l.forEach(e=>{e.removeEventListener(`scroll`,u),c.removeEventListener(`resize`,u)})}}},[e,t,n])}function eu(e,t,n,r,i,a,o,s){let c=h.useRef(e);c.current=e;let l=h.useRef(!1);h.useEffect(()=>{if(t&&r&&(!i||a)){let e=()=>{l.current=!1},t=e=>{c.current&&!o(e.composedPath?.()?.[0]||e.target)&&!l.current&&s(!1)},i=Bl(r);i.addEventListener(`pointerdown`,e,!0),i.addEventListener(`mousedown`,t,!0),i.addEventListener(`contextmenu`,t,!0);let a=xt(n);return a&&(a.addEventListener(`mousedown`,t,!0),a.addEventListener(`contextmenu`,t,!0)),()=>{i.removeEventListener(`pointerdown`,e,!0),i.removeEventListener(`mousedown`,t,!0),i.removeEventListener(`contextmenu`,t,!0),a&&(a.removeEventListener(`mousedown`,t,!0),a.removeEventListener(`contextmenu`,t,!0))}}},[t,n,r,i,a]);function u(){l.current=!0}return u}function tu(){let[e,t]=h.useState(null),[n,r]=h.useState(!1),[i,a]=h.useState(!1),o=h.useRef(null);return[fe(e=>{e===!1?(o.current=null,r(!1)):i&&n?o.current=e:(r(!0),t(e),o.current=null,n||a(!0))}),n,e,fe(e=>{e?(a(!1),o.current&&=(t(o.current),null)):(a(!1),o.current=null)})]}function nu(){return nu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nu.apply(this,arguments)}var ru=e=>{let{prefixCls:t,isMobile:n,ready:r,open:i,align:a,offsetR:o,offsetB:s,offsetX:c,offsetY:l,arrowPos:u,popupSize:d,motion:f,uniqueContainerClassName:p,uniqueContainerStyle:g}=e,_=`${t}-unique-container`,[v,y]=h.useState(!1),b=jl(n,r,i,a,o,s,c,l),x=h.useRef(b);r&&(x.current=b);let S={};return d&&(S.width=d.width,S.height=d.height),h.createElement(ar,nu({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${_}-hidden`},f,{visible:i,onVisibleChanged:e=>{y(e)}}),({className:e,style:t})=>{let n=m(_,e,p,{[`${_}-visible`]:v});return h.createElement(`div`,{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...x.current,...S,...t,...g}})})},iu=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=tu(),o=h.useMemo(()=>!i||!t?i:t(i),[i,t]),[s,c]=h.useState(null),[l,u]=h.useState(null),d=h.useRef(null),f=fe(e=>{d.current=e,tt(e)&&s!==e&&c(e)}),p=h.useRef(null),g=Ql(),_=fe((e,t)=>{p.current=t,g(()=>{n(e)},e.delay)}),v=e=>{g(()=>{p.current?.()||n(!1)},e)},y=fe(e=>{a(e)}),[b,x,S,C,w,T,E,,,D,O]=Zl(r,s,o?.target,o?.popupPlacement,o?.builtinPlacements||{},o?.popupAlign,void 0,!1),k=h.useMemo(()=>o?m(zl(o.builtinPlacements||{},o.prefixCls||``,D,!1),o.getPopupClassNameFromAlign?.(D)):``,[D,o?.getPopupClassNameFromAlign,o?.builtinPlacements,o?.prefixCls]),A=h.useMemo(()=>({show:_,hide:v}),[]);h.useEffect(()=>{O()},[o?.target]);let j=fe(()=>(O(),Promise.resolve())),M=h.useRef({}),N=h.useContext(Pl),P=h.useMemo(()=>({registerSubPopup:(e,t)=>{M.current[e]=t,N?.registerSubPopup(e,t)}}),[N]),F=o?.prefixCls;return h.createElement(Fl.Provider,{value:A},e,o&&h.createElement(Pl.Provider,{value:P},h.createElement(Nl,{ref:f,portal:dl,onEsc:o.onEsc,prefixCls:F,popup:o.popup,className:m(o.popupClassName,k,`${F}-unique-controlled`),style:o.popupStyle,target:o.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:y,ready:b,offsetX:x,offsetY:S,offsetR:C,offsetB:w,onAlign:O,onPrepare:j,onResize:e=>u({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:T,y:E},align:D,zIndex:o.zIndex,mask:o.mask,arrow:o.arrow,motion:o.popupMotion,maskMotion:o.maskMotion,getPopupContainer:o.getPopupContainer},h.createElement(ru,{prefixCls:F,isMobile:!1,ready:b,open:r,align:D,offsetR:C,offsetB:w,offsetX:x,offsetY:S,arrowPos:{x:T,y:E},popupSize:l,motion:o.popupMotion,uniqueContainerClassName:m(o.uniqueContainerClassName,k),uniqueContainerStyle:o.uniqueContainerStyle}))))};function au(e=dl){return h.forwardRef((t,n)=>{let{prefixCls:r=`rc-trigger-popup`,children:i,action:a=`hover`,showAction:o,hideAction:s,popupVisible:c,defaultPopupVisible:l,onOpenChange:u,afterOpenChange:d,onPopupVisibleChange:f,afterPopupVisibleChange:p,mouseEnterDelay:g,mouseLeaveDelay:_=.1,focusDelay:v,blurDelay:y,mask:b,maskClosable:x=!0,getPopupContainer:S,forceRender:C,autoDestroy:w,popup:T,popupClassName:E,uniqueContainerClassName:D,uniqueContainerStyle:O,popupStyle:k,popupPlacement:A,builtinPlacements:j={},popupAlign:M,zIndex:N,stretch:P,getPopupClassNameFromAlign:F,fresh:I,unique:L,alignPoint:R,onPopupClick:z,onPopupAlign:B,arrow:V,popupMotion:H,maskMotion:U,mobile:W,...G}=t,K=w||!1,q=c===void 0,ee=!!W,te=h.useRef({}),ne=h.useContext(Pl),re=h.useMemo(()=>({registerSubPopup:(e,t)=>{te.current[e]=t,ne?.registerSubPopup(e,t)}}),[ne]),ie=h.useContext(Fl),ae=Ce(),[oe,se]=h.useState(null),ce=h.useRef(null),le=fe(e=>{ce.current=e,tt(e)&&oe!==e&&se(e),ne?.registerSubPopup(ae,e)}),[ue,de]=h.useState(null),pe=h.useRef(null),me=fe(e=>{let t=nt(e);tt(t)&&ue!==t&&(de(t),pe.current=t)}),ge={},_e=fe(e=>{let t=ue;return t?.contains(e)||xt(t)?.host===e||e===t||oe?.contains(e)||xt(oe)?.host===e||e===oe||Object.values(te.current).some(t=>t?.contains(e)||e===t)}),ye=V?{...V===!0?{}:V}:null,[be,xe]=ve(l||!1,c),Se=be||!1,we=h.useMemo(()=>{let e=typeof i==`function`?i({open:Se}):i;return h.Children.only(e)},[i,Se]),Te=we?.props||{},Ee=fe(()=>Se),De=fe((e=0)=>({popup:T,target:ue,delay:e,prefixCls:r,popupClassName:E,uniqueContainerClassName:D,uniqueContainerStyle:O,popupStyle:k,popupPlacement:A,builtinPlacements:j,popupAlign:M,zIndex:N,mask:b,maskClosable:x,popupMotion:H,maskMotion:U,arrow:ye,getPopupContainer:S,getPopupClassNameFromAlign:F,id:ae,onEsc:Me}));he(()=>{ie&&L&&ue&&!q&&!ne&&(Se?ie.show(De(g),Ee):ie.hide(_))},[Se,ue]);let Oe=h.useRef(Se);Oe.current=Se;let ke=fe(e=>{(0,yn.flushSync)(()=>{Se!==e&&(xe(e),u?.(e),f?.(e))})}),Ae=Ql(),je=(e,t=0)=>{if(c!==void 0){Ae(()=>{ke(e)},t);return}if(ie&&L&&q&&!ne){e?ie.show(De(t),Ee):ie.hide(t);return}Ae(()=>{ke(e)},t)};function Me({top:e}){e&&je(!1)}let[Ne,Pe]=h.useState(!1);he(e=>{(!e||Se)&&Pe(!0)},[Se]);let[Fe,Le]=h.useState(null),[Re,ze]=h.useState(null),Ve=e=>{ze([e.clientX,e.clientY])},[He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe]=Zl(Se,oe,R&&Re!==null?Re:ue,A,j,M,B,ee),[$e,et]=Ll(a,o,s),rt=$e.has(`click`),it=et.has(`click`)||et.has(`contextMenu`),at=fe(()=>{Ne||Qe()});$l(Se,ue,oe,at,()=>{Oe.current&&R&&it&&je(!1)}),he(()=>{at()},[Re,A]),he(()=>{Se&&!j?.[A]&&at()},[JSON.stringify(M)]);let ot=h.useMemo(()=>m(zl(j,r,Ze,R),F?.(Ze)),[Ze,F,j,r,R]);h.useImperativeHandle(n,()=>({nativeElement:pe.current,popupElement:ce.current,forceAlign:at}));let[st,ct]=h.useState(0),[lt,ut]=h.useState(0),dt=()=>{if(P&&ue){let e=ue.getBoundingClientRect();ct(e.width),ut(e.height)}},ft=()=>{dt(),at()},pt=e=>{Pe(!1),Qe(),d?.(e),p?.(e)},mt=()=>new Promise(e=>{dt(),Le(()=>e)});he(()=>{Fe&&(Qe(),Fe(),Le(null))},[Fe]);function ht(e,t,n,r,i){ge[e]=(a,...o)=>{(!i||!i())&&(r?.(a),je(t,n)),Te[e]?.(a,...o)}}let gt=$e.has(`touch`),_t=et.has(`touch`),vt=h.useRef(!1);(gt||_t)&&(ge.onTouchStart=(...e)=>{vt.current=!0,Oe.current&&_t?je(!1):!Oe.current&&gt&&je(!0),Te.onTouchStart?.(...e)}),(rt||it)&&(ge.onClick=(e,...t)=>{Oe.current&&it?je(!1):!Oe.current&&rt&&(Ve(e),je(!0)),Te.onClick?.(e,...t),vt.current=!1});let yt=eu(Se,it||_t,ue,oe,b,x,_e,je),bt=$e.has(`hover`),St=et.has(`hover`),Ct,wt,Tt=()=>vt.current;if(bt){let e=e=>{Ve(e)};ht(`onMouseEnter`,!0,g,e,Tt),ht(`onPointerEnter`,!0,g,e,Tt),Ct=e=>{(Se||Ne)&&oe?.contains(e.target)&&je(!0,g)},R&&(ge.onMouseMove=e=>{Te.onMouseMove?.(e)})}St&&(ht(`onMouseLeave`,!1,_,void 0,Tt),ht(`onPointerLeave`,!1,_,void 0,Tt),wt=()=>{je(!1,_)}),$e.has(`focus`)&&ht(`onFocus`,!0,v),et.has(`focus`)&&ht(`onBlur`,!1,y),$e.has(`contextMenu`)&&(ge.onContextMenu=(e,...t)=>{Oe.current&&et.has(`contextMenu`)?je(!1):(Ve(e),je(!0)),e.preventDefault(),Te.onContextMenu?.(e,...t)});let Et=h.useRef(!1);Et.current||=C||Se||Ne;let Dt={...Te,...ge},Ot={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(e=>{G[e]&&(Ot[e]=(...t)=>{Dt[e]?.(...t),G[e](...t)})});let kt={x:qe,y:Je};bl(Se,ue,ft);let At=Ie(me,Be(we)),jt=h.cloneElement(we,{...Dt,...Ot,ref:At});return h.createElement(h.Fragment,null,jt,Et.current&&(!ie||!L)&&h.createElement(Pl.Provider,{value:re},h.createElement(Nl,{portal:e,ref:le,prefixCls:r,popup:T,className:m(E,!ee&&ot),style:k,target:ue,onMouseEnter:Ct,onMouseLeave:wt,onPointerEnter:Ct,zIndex:N,open:Se,keepDom:Ne,fresh:I,onClick:z,onPointerDownCapture:yt,mask:b,motion:H,maskMotion:U,onVisibleChanged:pt,onPrepare:mt,forceRender:C,autoDestroy:K,getPopupContainer:S,onEsc:Me,align:Ze,arrow:ye,arrowPos:kt,ready:He,offsetX:Ue,offsetY:We,offsetR:Ge,offsetB:Ke,onAlign:at,stretch:P,targetWidth:st/Ye,targetHeight:lt/Xe,mobile:W})))})}var ou=au(dl);function su(e){return e&&h.isValidElement(e)&&e.type===h.Fragment}var cu=(e,t,n)=>h.isValidElement(e)?h.cloneElement(e,_r(n)?n(e.props||{}):n):t;function lu(e,t){return cu(e,e,t)}var uu=({children:e})=>{let{getPrefixCls:t}=h.useContext(Fr),n=t();return h.isValidElement(e)?h.createElement(ar,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>lu(e,e=>({className:m(e.className,n),style:{...e.style,...t}}))):e},du=[null,null];function fu(e){if(du[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),du[0]=e,du[1]=t}return du[1]}var pu=({children:e})=>h.createElement(iu,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=_r(r)?r():r,a=fu(n);return{...e,getPopupContainer:null,arrow:!1,popup:h.createElement(uu,{key:t},i),builtinPlacements:a}}},e),mu=h.createContext(!1),hu=({children:e,disabled:t})=>{let n=h.useContext(mu);return h.createElement(mu.Provider,{value:t??n},e)},gu=h.createContext(void 0),_u=({children:e,size:t})=>{let n=h.useContext(gu);return h.createElement(gu.Provider,{value:t||n},e)};function vu(){return{componentDisabled:(0,h.useContext)(mu),componentSize:(0,h.useContext)(gu)}}function yu(e,t,n){Mr(`ConfigProvider`);let r=e||{},i=r.inherit===!1||!t?{...ac,hashed:t?.hashed??ac.hashed,cssVar:t?.cssVar}:t,a=(0,h.useId)();return we(()=>{if(!e)return t;let o={...i.components};Object.keys(e.components||{}).forEach(t=>{o[t]={...o[t],...e.components[t]}});let s=`css-var-${a.replace(/:/g,``)}`,c={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||s};return{...i,...r,token:{...i.token,...r.token},components:o,cssVar:c}},[r,i],(e,t)=>e.some((e,n)=>{let r=t[n];return!zt(e,r,!0)}))}var bu=h.createContext(!0);function xu(e){let t=h.useContext(bu),{children:n}=e,[,r]=mc(),{motion:i}=r,a=h.useRef(!1);return a.current||=t!==i,a.current?h.createElement(bu.Provider,{value:i},h.createElement(xn,{motion:i},n)):n}var Su=()=>null,Cu=({iconPrefixCls:e,csp:t})=>(bc(e,t),null),wu=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],Tu,Eu,Du,Ou;function ku(){return Tu||`ant`}function Au(){return Eu||`anticon`}var ju=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Tu=t),n!==void 0&&(Eu=n),`holderRender`in e&&(Ou=i),r&&(Du=r)},Mu=()=>({getPrefixCls:(e,t)=>t||(e?`${ku()}-${e}`:ku()),getIconPrefixCls:Au,getRootPrefixCls:()=>Tu||ku(),getTheme:()=>Du,holderRender:Ou}),Nu=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,form:c,locale:l,componentSize:u,direction:d,space:f,splitter:p,virtual:m,dropdownMatchSelectWidth:_,popupMatchSelectWidth:v,popupOverflow:y,legacyLocale:b,parentContext:x,iconPrefixCls:S,theme:C,componentDisabled:w,segmented:T,statistic:E,spin:D,calendar:O,carousel:k,cascader:A,collapse:j,typography:M,checkbox:N,descriptions:P,divider:F,drawer:I,skeleton:L,steps:R,image:z,layout:B,list:V,mentions:H,modal:U,progress:W,result:G,slider:K,breadcrumb:q,masonry:ee,menu:te,pagination:ne,input:re,inputPassword:ie,inputSearch:ae,textArea:oe,otp:se,empty:ce,badge:le,borderBeam:ue,radio:de,rate:fe,ribbon:pe,switch:me,transfer:he,avatar:ge,message:_e,tag:ve,table:ye,card:be,cardMeta:xe,tabs:Se,timeline:Ce,timePicker:Te,upload:Ee,notification:De,tree:Oe,colorPicker:ke,datePicker:Ae,rangePicker:je,flex:Me,wave:Ne,dropdown:Pe,warning:Fe,tour:Ie,tooltip:Le,popover:Re,popconfirm:ze,qrcode:Be,floatButton:Ve,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ge,watermark:Ke}=e,qe=h.useMemo(()=>gr(l)&&Object.prototype.hasOwnProperty.call(l,`default`)&&l.default?.locale?l.default:l,[l]),Je=h.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let i=r||x.getPrefixCls(``);return t?`${i}-${t}`:i},[x.getPrefixCls,e.prefixCls]),Ye=S||x.iconPrefixCls||`anticon`,Xe=n||x.csp,Ze=yu(C,x.theme,{prefixCls:Je(``)}),Qe={csp:Xe,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,locale:qe||b,direction:d,space:f,splitter:p,virtual:m,popupMatchSelectWidth:v??_,popupOverflow:y,getPrefixCls:Je,iconPrefixCls:Ye,theme:Ze,segmented:T,statistic:E,spin:D,calendar:O,carousel:k,cascader:A,collapse:j,typography:M,checkbox:N,descriptions:P,divider:F,drawer:I,skeleton:L,steps:R,image:z,input:re,inputPassword:ie,inputSearch:ae,textArea:oe,otp:se,layout:B,list:V,mentions:H,modal:U,progress:W,result:G,slider:K,breadcrumb:q,masonry:ee,menu:te,pagination:ne,empty:ce,badge:le,borderBeam:ue,radio:de,rate:fe,ribbon:pe,switch:me,transfer:he,avatar:ge,message:_e,tag:ve,table:ye,card:be,cardMeta:xe,tabs:Se,timeline:Ce,timePicker:Te,upload:Ee,notification:De,tree:Oe,colorPicker:ke,datePicker:Ae,rangePicker:je,flex:Me,wave:Ne,dropdown:Pe,warning:Fe,tour:Ie,tooltip:Le,popover:Re,popconfirm:ze,qrcode:Be,floatButton:Ve,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ge,watermark:Ke},$e={...x};Object.keys(Qe).forEach(e=>{Qe[e]!==void 0&&($e[e]=Qe[e])}),wu.forEach(t=>{let n=e[t];n&&($e[t]=n)}),r!==void 0&&($e.button={autoInsertSpace:r,...$e.button});let et=we(()=>$e,$e,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:tt}=h.useContext(Jr),nt=h.useMemo(()=>({prefixCls:Ye,csp:Xe,layer:tt?`antd`:void 0,zeroRuntime:Ze?.zeroRuntime}),[Ye,Xe,tt,Ze?.zeroRuntime]),rt=h.createElement(h.Fragment,null,h.createElement(Cu,{iconPrefixCls:Ye,csp:Xe}),h.createElement(Su,{dropdownMatchSelectWidth:_}),t),it=h.useMemo(()=>dn(Lc.Form?.defaultValidateMessages||{},et.locale?.Form?.defaultValidateMessages||{},et.form?.validateMessages||{},c?.validateMessages||{}),[et,c?.validateMessages]);Object.keys(it).length>0&&(rt=h.createElement(Ac.Provider,{value:it},rt)),qe&&(rt=h.createElement(Kc,{locale:qe,_ANT_MARK__:Gc},rt)),(Ye||Xe)&&(rt=h.createElement(g.Provider,{value:nt},rt)),u&&(rt=h.createElement(_u,{size:u},rt)),rt=h.createElement(xu,null,rt),Le?.unique&&(rt=h.createElement(pu,null,rt));let at=h.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...i}=Ze||{},a=e&&(!Array.isArray(e)||e.length>0)?ei(e):ic,o={};Object.entries(n||{}).forEach(([e,t])=>{let n={...t};`algorithm`in n&&(n.algorithm===!0?n.theme=a:(Array.isArray(n.algorithm)||_r(n.algorithm))&&(n.theme=ei(n.algorithm)),delete n.algorithm),o[e]=n});let s={...ns,...t};return{...i,theme:a,token:s,components:o,override:{override:s,...o},cssVar:r}},[Ze]);return C&&(rt=h.createElement(oc.Provider,{value:at},rt)),et.warning&&(rt=h.createElement(jr.Provider,{value:et.warning},rt)),w!==void 0&&(rt=h.createElement(hu,{disabled:w},rt)),h.createElement(Fr.Provider,{value:et},rt)},Pu=e=>{let t=h.useContext(Fr),n=h.useContext(Uc);return h.createElement(Nu,{parentContext:t,legacyLocale:n,...e})};Pu.ConfigContext=Fr,Pu.SizeContext=gu,Pu.config=ju,Pu.useConfig=vu,Object.defineProperty(Pu,"SizeContext",{get:()=>gu});var Fu=gc(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=vc(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s`,`opacity 2s`].map(e=>`${e} ${a}`).join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0},"&.wave-quick":{transition:[`box-shadow`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`,`)}}}}}),Iu=`ant-wave-target`,Lu=e=>e?hr(e)&&e!==`#fff`&&e!==`#ffffff`&&e!==`rgb(255, 255, 255)`&&e!==`rgba(255, 255, 255, 1)`&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&e!==`transparent`&&e!==`canvastext`:!1;function pee(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&Lu(n[t])?n[t]:[r,i,a].find(Lu)??null}function Ru(e){return Number.isNaN(e)?0:e}var zu=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=h.useRef(null),{getPrefixCls:o}=h.useContext(Fr),[s]=vc(o(),`wave`),[c,l]=h.useState(null),[u,d]=h.useState([]),[f,p]=h.useState(0),[g,_]=h.useState(0),[v,y]=h.useState(0),[b,x]=h.useState(0),[S,C]=h.useState(!1),w={left:f,top:g,width:v,height:b,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(w[s(`color`)]=c);function T(){let e=getComputedStyle(n);l(pee(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:Ru(-Number.parseFloat(r))),_(t?n.offsetTop:Ru(-Number.parseFloat(a))),y(n.offsetWidth),x(n.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([o,s,u,c].map(e=>Ru(Number.parseFloat(e))))}if(h.useEffect(()=>{if(n){let e=en(()=>{T(),C(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(T),t.observe(n)),()=>{en.cancel(e),t?.disconnect()}}},[n]),!S)return null;let E=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(Iu);return h.createElement(ar,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||br(t)&&t.propertyName===`opacity`){let e=a.current?.parentElement;vn(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>h.createElement(`div`,{ref:Fe(a,n),className:m(t,e,{"wave-quick":E}),style:w}))},Bu=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild),_n(h.createElement(zu,{...t,target:e}),r)},Vu=(e,t,n,r)=>{let{wave:i}=h.useContext(Fr),[,a,o]=mc(),s=fe(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${Iu}`)||c,{showEffect:u}=i||{};(u||Bu)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=h.useRef(null);return h.useEffect(()=>()=>{en.cancel(c.current)},[]),e=>{en.cancel(c.current),c.current=en(()=>{s(e)})}},Hu={click:`click`,mousedown:`mousedown`,mouseup:`mouseup`,pointerdown:`pointerdown`,pointerup:`pointerup`},Uu=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a,wave:o}=(0,h.useContext)(Fr),s=(0,h.useRef)(null),c=a(`wave`),l=Vu(s,m(c,Fu(c)),r,i);return h.useEffect(()=>{let e=s.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!rt(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||l(t)},r=o?.triggerType,i=r&&r in Hu?Hu[r]:`click`;return e.addEventListener(i,t,!0),()=>{e.removeEventListener(i,t,!0)}},[n,o?.triggerType]),h.isValidElement(t)?lu(t,{ref:Le(t)?Fe(Be(t),s):s}):t??null},Wu=e=>{let t=h.useContext(gu);return h.useMemo(()=>e?hr(e)?e??t:_r(e)?e(t):t:t,[e,t])};function Gu(...e){return e.find(e=>e!==void 0)}var Ku=e=>{let{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:i,defaultAllowClear:a,componentName:o}=e;return(0,h.useMemo)(()=>t??r??a?{clearIcon:Gu(gr(t)?t?.clearIcon:n,gr(r)?r?.clearIcon:i,h.createElement(ne,null)),disabled:(gr(t)?t?.disabled:void 0)??(gr(r)?r?.disabled:void 0)}:!1,[t,n,r,i,a])},qu=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},Ju={},Yu=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!fr(e)&&!fr(t))return null;let n={closeIcon:typeof t!=`boolean`&&fr(t)?t:void 0};return gr(e)&&(n={...n,...e}),n},Xu=(e,t,n)=>e===!1?!1:e?nn(n,t,e):t===!1?!1:t?nn(n,t):n.closable?n:!1,Zu=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i,...a}=e,o=i,s=qt(a,!0);return fr(o)&&(r&&(o=r(o)),o=h.isValidElement(o)?h.cloneElement(o,{"aria-label":n,...o.props,...s}):h.createElement(`span`,{"aria-label":n,...s},o)),[o,s]},Qu=(e,t,n=Ju,r=`Close`)=>{let i=Yu(e?.closable,e?.closeIcon),a=Yu(t?.closable,t?.closeIcon),o={closeIcon:h.createElement(ae,null),...n},s=Xu(i,a,o),c=typeof s==`boolean`?!1:!!s?.disabled;if(s===!1)return[!1,null,c,{}];let[l,u]=Zu(s,o,r);return[!0,l,c,u]},$u=(e,t,n=Ju)=>{let[r]=Wc(`global`,Lc.global);return h.useMemo(()=>Qu(e,t,{closeIcon:h.createElement(ae,null),...n},r.close),[e,t,n,r.close])},ed=()=>h.useReducer(e=>e+1,0),td=(e,t)=>{let n={};return gr(e)&&(n=e),typeof e==`boolean`&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},nd=(e,t,n,r)=>(0,h.useMemo)(()=>{let i=td(e,r),a=td(t),o={blur:!1,...a,...i,closable:i.closable??r??a.closable??!0},s=o.blur?`${n}-mask-blur`:void 0;return[o.enabled!==!1,{mask:s},!!o.closable]},[e,t,n,r]),mee=e=>{let[t,n]=(0,h.useState)(null);return[(0,h.useCallback)((r,i,a)=>{let o=t??r,s=Math.min(o||0,r),c=Math.max(o||0,r),l=i.slice(s,c+1).map(e),u=l.some(e=>!a.has(e)),d=[];return l.forEach(e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))}),n(u?c:null),d},[t]),n]},rd=e=>e===`horizontal`||e===`vertical`,id=(e,t,n)=>(0,h.useMemo)(()=>{let r=rd(e),i;return i=r?e:typeof t==`boolean`?t?`vertical`:`horizontal`:rd(n)?n:`horizontal`,[i,i===`vertical`]},[n,e,t]),ad=()=>{let[e,t]=h.useState([]);return[e,h.useCallback(e=>(t(t=>[].concat(dr(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]},hee=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){let r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),od=(e,t)=>(0,h.useImperativeHandle)(e,()=>{let e=t(),{nativeElement:n}=e;return typeof Proxy<`u`?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):hee(n,e)}),sd=e=>{let t=h.useRef(e),[,n]=ed();return[()=>t.current,e=>{t.current=e,n()}]},cd=h.createContext(void 0),ld=100,ud=ld*10,dd={Modal:ld,Drawer:ld,Popover:ld,Popconfirm:ld,Tooltip:ld,Tour:ld,FloatButton:ld},fd={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},pd=e=>e in dd,md=(e,t)=>{let[,n]=mc(),r=h.useContext(cd),i=pd(e),a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+dd[e]:o+=fd[e],a=[r===void 0?t:o,o]}return a},hd=hc([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1}),gd=h.createContext(null),_d=(e,t)=>{let n=h.useContext(gd),r=h.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return m(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},vd=e=>{let{children:t}=e;return h.createElement(gd.Provider,{value:null},t)},yd=e=>{let{children:t,...n}=e;return h.createElement(gd.Provider,{value:h.useMemo(()=>n,[n])},t)},bd=e=>{let{getPrefixCls:t,direction:n}=h.useContext(Fr),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d,...f}=e,[p,g]=id(a,d,i),_=Wu(e=>r??e),v=t(`space-compact`,s),[y]=hd(v),b=m(v,y,{[`${v}-rtl`]:n===`rtl`,[`${v}-block`]:o,[`${v}-vertical`]:g},c,l),x=h.useContext(gd),S=tn(u),C=h.useMemo(()=>S.map((e,t)=>{let n=e?.key||`${v}-item-${t}`;return h.createElement(yd,{key:n,compactSize:_,compactDirection:p,isFirstItem:t===0&&(!x||x?.isFirstItem),isLastItem:t===S.length-1&&(!x||x?.isLastItem)},e)}),[S,x,p,_,v]);return S.length===0?null:h.createElement(`div`,{className:b,...f},C)},xd=h.createContext(void 0),Sd=e=>{let{getPrefixCls:t,direction:n}=h.useContext(Fr),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=mc(),l=h.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=m(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return h.createElement(xd.Provider,{value:i},h.createElement(`div`,{...o,className:u}))},Cd=/^[\u4E00-\u9FA5]{2}$/,wd=Cd.test.bind(Cd);function Td(e){return e===`danger`?{danger:!0}:{type:e}}function Ed(e){return e===`text`||e===`link`}function Dd(e,t,n,r){if(!pr(e))return;let i=t?` `:``;return!hr(e)&&!mr(e)&&hr(e.type)&&wd(e.props.children)?lu(e,e=>{let t=m(e.className,r)||void 0,a={...n,...e.style};return{...e,children:e.children.split(``).join(i),className:t,style:a}}):hr(e)?h.createElement(`span`,{className:r,style:n},wd(e)?e.split(``).join(i):e):su(e)?h.createElement(`span`,{className:r,style:n},e):lu(e,e=>({...e,className:m(e.className,r)||void 0,style:{...e.style,...n}}))}function Od(e,t,n,r){let i=!1,a=[];return h.Children.forEach(e,e=>{let t=hr(e)||mr(e);if(i&&t){let t=a.length-1;a[t]=`${a[t]}${e}`}else a.push(e);i=t}),h.Children.map(a,e=>Dd(e,t,n,r))}[`default`,`primary`,`danger`].concat(dr(Zo));var kd=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z`}}]},name:`loading`,theme:`outlined`}}))());function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ad.apply(this,arguments)}var jd=h.forwardRef((e,t)=>h.createElement(W,Ad({},e,{ref:t,icon:kd.default}))),Md=(0,h.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:a}=e,o=m(`${a}-icon`,n);return h.createElement(`span`,{ref:t,className:o,style:r},i)}),Nd=(0,h.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=m(`${n}-loading-icon`,r);return h.createElement(Md,{prefixCls:n,className:o,style:i,ref:t},h.createElement(jd,{className:a}))}),Pd=()=>({width:0,opacity:0,transform:`scale(0)`}),Fd=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),gee=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?h.createElement(Nd,{prefixCls:t,className:i,style:a}):h.createElement(ar,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:Pd,onAppearActive:Fd,onEnterStart:Pd,onEnterActive:Fd,onLeaveStart:Fd,onLeaveActive:Pd},({className:e,style:n},r)=>{let o={...a,...n};return h.createElement(Nd,{prefixCls:t,className:m(i,e),style:o,ref:r})})},Id=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}},Ld=e=>({animationDuration:e,animationFillMode:`both`}),Rd=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
${a}${e}-enter,
${a}${e}-appear
`]:{...Ld(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...Ld(r),animationPlayState:`paused`},[`
${a}${e}-enter${e}-enter-active,
${a}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},zd=new Xa(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),Bd=new Xa(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),Vd=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[Rd(r,zd,Bd,e.motionDurationMid,t),{[`
${i}${r}-enter,
${i}${r}-appear
`]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},Hd=new Xa(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),_ee=new Xa(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),vee=new Xa(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Ud=new Xa(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Wd=new Xa(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Gd=new Xa(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Kd={"move-up":{inKeyframes:new Xa(`antMoveUpIn`,{"0%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),outKeyframes:new Xa(`antMoveUpOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0}})},"move-down":{inKeyframes:Hd,outKeyframes:_ee},"move-left":{inKeyframes:vee,outKeyframes:Ud},"move-right":{inKeyframes:Wd,outKeyframes:Gd}},qd=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Kd[t];return[Rd(r,i,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Jd=new Xa(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),Yd=new Xa(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),Xd=new Xa(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),Zd=new Xa(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),Qd=new Xa(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),$d=new Xa(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),ef=new Xa(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),tf=new Xa(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),nf={"slide-up":{inKeyframes:Jd,outKeyframes:Yd},"slide-down":{inKeyframes:Xd,outKeyframes:Zd},"slide-left":{inKeyframes:Qd,outKeyframes:$d},"slide-right":{inKeyframes:ef,outKeyframes:tf}},rf=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=nf[t];return[Rd(r,i,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},af=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),of=new Xa(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),sf=new Xa(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),cf=new Xa(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),lf=new Xa(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),uf=new Xa(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),df=new Xa(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),ff=new Xa(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),pf=new Xa(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),mf=new Xa(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),hf=new Xa(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),gf=new Xa(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),_f=new Xa(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),vf={zoom:{inKeyframes:of,outKeyframes:sf},"zoom-big":{inKeyframes:cf,outKeyframes:lf},"zoom-big-fast":{inKeyframes:cf,outKeyframes:lf},"zoom-left":{inKeyframes:ff,outKeyframes:pf},"zoom-right":{inKeyframes:mf,outKeyframes:hf},"zoom-up":{inKeyframes:uf,outKeyframes:df},"zoom-down":{inKeyframes:gf,outKeyframes:_f}},yf=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=vf[t];return[Rd(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},bf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),xf=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},bf(`${t}-primary`,i),bf(`${t}-danger`,a)]}},Sf=e=>Math.round(Number(e||0)),Cf=e=>{if(e instanceof cs)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},wf=class extends cs{constructor(e){super(Cf(e))}toHsbString(){let e=this.toHsb(),t=Sf(e.s*100),n=Sf(e.b*100),r=Sf(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}};(e=>e instanceof wf?e:new wf(e))(`#1677ff`);var Tf=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,Ef=(e,t)=>e?Tf(e,t):``,Df=function(){function e(t){if(bo(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new wf(this.colors[0].color.metaColor)):this.metaColor=new wf(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return So(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return Ef(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),Of=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z`}}]},name:`right`,theme:`outlined`}}))());function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kf.apply(this,arguments)}var Af=h.forwardRef((e,t)=>h.createElement(W,kf({},e,{ref:t,icon:Of.default})));function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jf.apply(null,arguments)}var Mf=()=>({height:0,opacity:0}),Nf=e=>({height:e?.scrollHeight??0,opacity:+!!e}),Pf=e=>({height:e?.offsetHeight??0}),Ff=(e,t)=>t?.deadline===!0||br(t)&&t.propertyName===`height`,If=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:Mf,onEnterStart:Mf,onAppearActive:Nf,onEnterActive:Nf,onLeaveStart:Pf,onLeaveActive:Mf,onAppearEnd:Ff,onEnterEnd:Ff,onLeaveEnd:Ff,motionDeadline:500}),Lf=(e,t,n)=>n===void 0?`${e}-${t}`:n,Rf=e=>e instanceof Df?e:new Df(e),zf=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new wf(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},Bf=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Bo(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Vf=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??Qo(t),a=e.contentLineHeightSM??Qo(n),o=e.contentLineHeightLG??Qo(r),s=zf(new Df(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=Zo.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${J(e.controlOutlineWidth)} 0 ${cc(e[`${n}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...c,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:`transparent`,defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:`inherit`,onlyIconSizeSM:`inherit`,onlyIconSizeLG:`inherit`,groupBorderColor:e.colorPrimaryHover,linkHoverBg:`transparent`,textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:u}},Hf=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=vc(n,`btn`);return{[t]:[{[i(`border-width`)]:r,[i(`border-color`)]:`#000`,[i(`border-color-hover`)]:a(`border-color`),[i(`border-color-active`)]:a(`border-color`),[i(`border-color-disabled`)]:a(`border-color`),[i(`border-style`)]:`solid`,[i(`text-color`)]:`#000`,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`),[i(`text-color-disabled`)]:a(`text-color`),[i(`bg-color`)]:`#ddd`,[i(`bg-color-hover`)]:a(`bg-color`),[i(`bg-color-active`)]:a(`bg-color`),[i(`bg-color-disabled`)]:e.colorBgContainerDisabled,[i(`bg-color-container`)]:e.colorBgContainer,[i(`shadow`)]:`none`},{border:[a(`border-width`),a(`border-style`),a(`border-color`)].join(` `),color:a(`text-color`),backgroundColor:a(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a(`border-width`),a(`border-style`),a(`border-color-hover`)].join(` `),color:a(`text-color-hover`),backgroundColor:a(`bg-color-hover`)},"&:active":{border:[a(`border-width`),a(`border-style`),a(`border-color-active`)].join(` `),color:a(`text-color-active`),backgroundColor:a(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[i(`solid-bg-color`)]:a(`color-base`),[i(`solid-bg-color-hover`)]:a(`color-hover`),[i(`solid-bg-color-active`)]:a(`color-active`),[i(`border-color`)]:`transparent`,[i(`text-color`)]:e.colorTextLightSolid,[i(`bg-color`)]:a(`solid-bg-color`),[i(`bg-color-hover`)]:a(`solid-bg-color-hover`),[i(`bg-color-active`)]:a(`solid-bg-color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`border-color`)]:a(`color-base`),[i(`border-color-hover`)]:a(`color-hover`),[i(`border-color-active`)]:a(`color-active`),[i(`bg-color`)]:a(`bg-color-container`),[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-dashed`]:{[i(`border-style`)]:`dashed`,[i(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`bg-color`)]:a(`color-light`),[i(`bg-color-hover`)]:a(`color-light-hover`),[i(`bg-color-active`)]:a(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),[i(`bg-color`)]:`transparent`,[i(`bg-color-hover`)]:`transparent`,[i(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[i(`bg-color-hover`)]:a(`color-light`),[i(`bg-color-active`)]:a(`color-light-active`)}},{[`&${t}-variant-link`]:{[i(`color-base`)]:e.colorLink,[i(`color-hover`)]:e.colorLinkHover,[i(`color-active`)]:e.colorLinkActive,[i(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[i(`color-base`)]:e.colorPrimary,[i(`color-hover`)]:e.colorPrimaryHover,[i(`color-active`)]:e.colorPrimaryActive,[i(`color-light`)]:e.colorPrimaryBg,[i(`color-light-hover`)]:e.colorPrimaryBgHover,[i(`color-light-active`)]:e.colorPrimaryBorder,[i(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.primaryColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-dangerous`]:{[i(`color-base`)]:e.colorError,[i(`color-hover`)]:e.colorErrorHover,[i(`color-active`)]:e.colorErrorActive,[i(`color-light`)]:e.colorErrorBg,[i(`color-light-hover`)]:e.colorErrorBgFilledHover,[i(`color-light-active`)]:e.colorErrorBgActive,[i(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.dangerColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-default`]:{[i(`solid-bg-color`)]:e.colorBgSolid,[i(`solid-bg-color-hover`)]:e.colorBgSolidHover,[i(`solid-bg-color-active`)]:e.colorBgSolidActive,[i(`color-base`)]:e.defaultBorderColor,[i(`color-hover`)]:e.defaultHoverBorderColor,[i(`color-active`)]:e.defaultActiveBorderColor,[i(`color-light`)]:e.colorFillTertiary,[i(`color-light-hover`)]:e.colorFillSecondary,[i(`color-light-active`)]:e.colorFill,[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i(`text-color`)]:e.solidTextColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`bg-color-container`)]:e.defaultBg,[i(`bg-color-hover`)]:e.defaultHoverBg,[i(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i(`text-color`)]:e.textTextColor,[i(`text-color-hover`)]:e.textTextHoverColor,[i(`text-color-active`)]:e.textTextActiveColor,[i(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultGhostColor,[i(`border-color`)]:e.defaultGhostBorderColor}}}},Zo.map(n=>{let r=e[`${n}6`],a=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[i(`color-base`)]:r,[i(`color-hover`)]:o,[i(`color-active`)]:l,[i(`color-light`)]:a,[i(`color-light-hover`)]:s,[i(`color-light-active`)]:c,[i(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:a(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[i(`bg-color`)]:e.ghostBg,[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg,[i(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg}}}]}},Uf=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`,...af(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:eo(),"> a":{color:`currentColor`},"&:not(:disabled)":io(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:`0.34em`},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:`-0.34em`,letterSpacing:`0.34em`},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:`none`}},[`&${t}-loading`]:{opacity:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},Wf=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),Gf=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${J(c)} ${J(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:Wf(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Kf=e=>Gf(Bo(e,{fontSize:e.contentFontSize}),e.componentCls),qf=e=>Gf(Bo(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),Jf=e=>Gf(Bo(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),Yf=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},Xf=hc(`Button`,e=>{let t=Bf(e);return[Uf(t),Kf(t),qf(t),Jf(t),Yf(t),Hf(t),xf(t)]},Vf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Zf(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=s?` ${s}`:``,l=e=>e.filter(Boolean).map(e=>`&:${e}${c}`).join(`,`),u=l([`hover`,i?`hover${i}`:null]),d=l([a?`focus`:null,`active`]);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[d]:{zIndex:3},[u]:{zIndex:4},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function Qf(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function $f(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...Zf(e,a,t,i),...Qf(i,a,t)}}}function ep(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function tp(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function np(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...ep(e,t,e.componentCls),...tp(e.componentCls,t)}}}var rp=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=vc(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},ip=_c([`Button`,`compact`],e=>{let t=Bf(e);return[$f(t),np(t),rp(t)]},Vf);function ap(e){if(gr(e)){let t=e?.delay;return t=mr(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var op={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},sp=h.forwardRef((e,t)=>{let{_skipSemantic:n,loading:r=!1,prefixCls:i,color:a,variant:o,type:s,danger:c=!1,shape:l,size:u,disabled:d,className:f,rootClassName:p,children:g,icon:_,iconPosition:v,iconPlacement:y,ghost:b=!1,block:x=!1,htmlType:S=`button`,classNames:C,styles:w,style:T,autoInsertSpace:E,autoFocus:D,...O}=e,k=tn(g),A=s||`default`,{getPrefixCls:j,direction:M,autoInsertSpace:N,className:P,style:F,classNames:I,styles:L,loadingIcon:R,shape:z,color:B,variant:V}=Rr(`button`),H=l||z||`default`,[U,W]=(0,h.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=op[A]||[];return c?[`danger`,e[1]]:e}return o===`solid`?[`primary`,o]:B&&V?[B,V]:V===`solid`?[`primary`,V]:[`default`,`outlined`]},[a,o,s,c,B,V,A]),[G,K]=(0,h.useMemo)(()=>b&&W===`solid`?[U,`outlined`]:[U,W],[U,W,b]),q=G===`danger`,ee=q?`dangerous`:G,te=E??N??!0,ne=j(`btn`,i),[re,ie]=Xf(ne),ae=(0,h.useContext)(mu),oe=d??ae,se=(0,h.useContext)(xd),ce=(0,h.useMemo)(()=>ap(r),[r]),[le,ue]=(0,h.useState)(ce.loading),[de,fe]=(0,h.useState)(!1),pe=(0,h.useRef)(null),me=Ie(t,pe),ge=k.length===1&&!_&&!Ed(K),_e=(0,h.useRef)(!0);h.useEffect(()=>(_e.current=!1,()=>{_e.current=!0}),[]),he(()=>{let e=null;ce.delay>0?e=setTimeout(()=>{e=null,ue(!0)},ce.delay):ue(ce.loading);function t(){e&&=(clearTimeout(e),null)}return t},[ce.delay,ce.loading]),(0,h.useEffect)(()=>{if(!pe.current||!te)return;let e=pe.current.textContent||``;ge&&wd(e)?de||fe(!0):de&&fe(!1)}),(0,h.useEffect)(()=>{D&&pe.current&&pe.current.focus()},[]);let ve=h.useCallback(t=>{if(le||oe){t.preventDefault();return}e.onClick?.((`href`in e,t))},[e.onClick,le,oe]),{compactSize:ye,compactItemClassnames:be}=_d(ne,M),xe=Wu(e=>u??ye??se??e),Se=le?`loading`:_,Ce=y??v??`start`,we=Ht(O,[`navigate`]),Te={...e,type:A,color:G,variant:K,danger:q,shape:H,size:xe,disabled:oe,loading:le,iconPlacement:Ce},Ee=Er(F),De=Er(T),[Oe,ke]=Or([n?void 0:I,C],[n?void 0:L,Ee,w,De],{props:Te}),Ae=m(ne,re,ie,{[`${ne}-${H}`]:H!=="default"&&H!==`square`&&H,[`${ne}-${A}`]:A,[`${ne}-dangerous`]:c,[`${ne}-color-${ee}`]:ee,[`${ne}-variant-${K}`]:K,[`${ne}-lg`]:xe===`large`,[`${ne}-sm`]:xe===`small`,[`${ne}-icon-only`]:!g&&g!==0&&!!Se,[`${ne}-background-ghost`]:b&&!Ed(K),[`${ne}-loading`]:le,[`${ne}-two-chinese-chars`]:de&&te&&!le,[`${ne}-block`]:x,[`${ne}-rtl`]:M===`rtl`,[`${ne}-icon-end`]:Ce===`end`},be,f,p,P,Oe.root),je={className:Oe.icon,style:ke.icon},Me=e=>h.createElement(Md,{prefixCls:ne,...je},e),Ne=h.createElement(gee,{existIcon:!!_,prefixCls:ne,loading:le,mount:_e.current,...je}),Pe=gr(r)&&r.icon||R,Fe;Fe=_&&!le?Me(_):r&&Pe?Me(Pe):Ne;let Le=pr(g)?Od(g,ge&&te,ke.content,Oe.content):null;if(we.href!==void 0)return h.createElement(`a`,{...we,className:m(Ae,{[`${ne}-disabled`]:oe}),href:oe?void 0:we.href,style:ke.root,onClick:ve,ref:me,tabIndex:oe?-1:0,"aria-disabled":oe},Fe,Le);let Re=h.createElement(`button`,{...O,type:S,className:Ae,style:ke.root,onClick:ve,disabled:oe,ref:me},Fe,Le,be&&h.createElement(ip,{prefixCls:ne}));return Ed(K)||(Re=h.createElement(Uu,{component:`Button`,disabled:le},Re)),Re});sp.Group=Sd,sp.__ANT_BUTTON=!0;var cp=sp,lp=`RC_FORM_INTERNAL_HOOKS`,up=()=>{Lt(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},dp=h.createContext({getFieldValue:up,getFieldsValue:up,getFieldError:up,getFieldWarning:up,getFieldsError:up,isFieldsTouched:up,isFieldTouched:up,isFieldValidating:up,isFieldsValidating:up,resetFields:up,setFields:up,setFieldValue:up,setFieldsValue:up,validateFields:up,submit:up,getInternalHooks:()=>(up(),{dispatch:up,initEntityValue:up,registerField:up,useSubscribe:up,setInitialValues:up,destroyForm:up,setCallbacks:up,registerWatch:up,getFields:up,setValidateMessages:up,setPreserve:up,getInitialValue:up})}),fp=h.createContext(null);function pp(e){return e==null?[]:Array.isArray(e)?e:[e]}function mp(e){return e&&!!e._init}function hp(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,tel:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone(){let e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var gp=hp(),_p=/%[sdj%]/g,vp=()=>{};function yp(e){if(!e||!e.length)return null;let t={};return e.forEach(e=>{let n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function bp(e,...t){let n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(_p,e=>{if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function xp(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function Sp(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||xp(t)&&typeof e==`string`&&!e)}function Cp(e,t,n){let r=[],i=0,a=e.length;function o(e){r.push(...e||[]),i++,i===a&&n(r)}e.forEach(e=>{t(e,o)})}function wp(e,t,n){let r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}let s=r;r+=1,s<i?t(e[s],a):n([])}a([])}function Tp(e){let t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}var Ep=class extends Error{errors;fields;constructor(e,t){super(`Async Validation Error`),this.errors=e,this.fields=t}};function yee(e,t,n,r,i){if(t.first){let t=new Promise((t,a)=>{wp(Tp(e),n,e=>(r(e),e.length?a(new Ep(e,yp(e))):t(i)))});return t.catch(e=>e),t}let a=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),s=o.length,c=0,l=[],u=new Promise((t,u)=>{let d=e=>{if(l.push.apply(l,e),c++,c===s)return r(l),l.length?u(new Ep(l,yp(l))):t(i)};o.length||(r(l),t(i)),o.forEach(t=>{let r=e[t];a.indexOf(t)===-1?Cp(r,n,d):wp(r,n,d)})});return u.catch(e=>e),u}function bee(e){return!!(e&&e.message!==void 0)}function xee(e,t){let n=e;for(let e=0;e<t.length;e++){if(n==null)return n;n=n[t[e]]}return n}function Dp(e,t){return n=>{let r;return r=e.fullFields?xee(t,e.fullFields):t[n.field||e.fullField],bee(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n==`function`?n():n,fieldValue:r,field:n.field||e.fullField}}}function Op(e,t){if(t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];typeof r==`object`&&typeof e[n]==`object`?e[n]={...e[n],...r}:e[n]=r}}return e}var kp=`enum`,See=(e,t,n,r,i)=>{e[kp]=Array.isArray(e[kp])?e[kp]:[],e[kp].indexOf(t)===-1&&r.push(bp(i.messages[kp],e.fullField,e[kp].join(`, `)))},Cee=(e,t,n,r,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(bp(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(bp(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},wee=(e,t,n,r,i)=>{let a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(bp(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(bp(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(bp(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(bp(i.messages[u].range,e.fullField,e.min,e.max))},Ap=(e,t,n,r,i,a)=>{e.required&&(!n.hasOwnProperty(e.field)||Sp(t,a||e.type))&&r.push(bp(i.messages.required,e.fullField))},jp,Tee=(()=>{if(jp)return jp;let e=`[a-fA-F\\d:]`,t=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:``,n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}$)|(?:^${i}$)`),o=RegExp(`^${n}$`),s=RegExp(`^${i}$`),c=e=>e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`);c.v4=e=>e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`),c.v6=e=>e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`);let l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return jp=RegExp(`(?:^${l}$)`,`i`),jp}),Mp={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Np={integer(e){return Np.number(e)&&parseInt(e,10)===e},float(e){return Np.number(e)&&!Np.integer(e)},array(e){return Array.isArray(e)},regexp(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number(e){return isNaN(e)?!1:typeof e==`number`},object(e){return typeof e==`object`&&!Np.array(e)},method(e){return typeof e==`function`},email(e){return typeof e==`string`&&e.length<=320&&!!e.match(Mp.email)},tel(e){return typeof e==`string`&&e.length<=32&&!!e.match(Mp.tel)},url(e){return typeof e==`string`&&e.length<=2048&&!!e.match(Tee())},hex(e){return typeof e==`string`&&!!e.match(Mp.hex)}},Pp={required:Ap,whitespace:(e,t,n,r,i)=>{(/^\s+$/.test(t)||t===``)&&r.push(bp(i.messages.whitespace,e.fullField))},type:(e,t,n,r,i)=>{if(e.required&&t===void 0){Ap(e,t,n,r,i);return}let a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?Np[o](t)||r.push(bp(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(bp(i.messages.types[o],e.fullField,e.type))},range:wee,enum:See,pattern:Cee},Eee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t)&&!e.required)return n();Pp.required(e,t,r,a,i)}n(a)},Dee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();Pp.required(e,t,r,a,i,`array`),t!=null&&(Pp.type(e,t,r,a,i),Pp.range(e,t,r,a,i))}n(a)},Oee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t)&&!e.required)return n();Pp.required(e,t,r,a,i),t!==void 0&&Pp.type(e,t,r,a,i)}n(a)},kee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t,`date`)&&!e.required)return n();if(Pp.required(e,t,r,a,i),!Sp(t,`date`)){let n;n=t instanceof Date?t:new Date(t),Pp.type(e,n,r,a,i),n&&Pp.range(e,n.getTime(),r,a,i)}}n(a)},Aee=`enum`,jee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t)&&!e.required)return n();Pp.required(e,t,r,a,i),t!==void 0&&Pp[Aee](e,t,r,a,i)}n(a)},Mee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t)&&!e.required)return n();Pp.required(e,t,r,a,i),t!==void 0&&(Pp.type(e,t,r,a,i),Pp.range(e,t,r,a,i))}n(a)},Nee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t)&&!e.required)return n();Pp.required(e,t,r,a,i),t!==void 0&&(Pp.type(e,t,r,a,i),Pp.range(e,t,r,a,i))}n(a)},Pee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t)&&!e.required)return n();Pp.required(e,t,r,a,i),t!==void 0&&Pp.type(e,t,r,a,i)}n(a)},Fee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),Sp(t)&&!e.required)return n();Pp.required(e,t,r,a,i),t!==void 0&&(Pp.type(e,t,r,a,i),Pp.range(e,t,r,a,i))}n(a)},Iee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t)&&!e.required)return n();Pp.required(e,t,r,a,i),t!==void 0&&Pp.type(e,t,r,a,i)}n(a)},Lee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t,`string`)&&!e.required)return n();Pp.required(e,t,r,a,i),Sp(t,`string`)||Pp.pattern(e,t,r,a,i)}n(a)},Ree=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t)&&!e.required)return n();Pp.required(e,t,r,a,i),Sp(t)||Pp.type(e,t,r,a,i)}n(a)},zee=(e,t,n,r,i)=>{let a=[],o=Array.isArray(t)?`array`:typeof t;Pp.required(e,t,r,a,i,o),n(a)},Bee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t,`string`)&&!e.required)return n();Pp.required(e,t,r,a,i,`string`),Sp(t,`string`)||(Pp.type(e,t,r,a,i),Pp.range(e,t,r,a,i),Pp.pattern(e,t,r,a,i),e.whitespace===!0&&Pp.whitespace(e,t,r,a,i))}n(a)},Fp=(e,t,n,r,i)=>{let a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Sp(t,a)&&!e.required)return n();Pp.required(e,t,r,o,i,a),Sp(t,a)||Pp.type(e,t,r,o,i)}n(o)},Ip={string:Bee,method:Pee,number:Fee,boolean:Oee,regexp:Ree,integer:Nee,float:Mee,array:Dee,object:Iee,enum:jee,pattern:Lee,date:kee,url:Fp,hex:Fp,email:Fp,tel:Fp,required:zee,any:Eee},Vee=class e{static register=function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);Ip[e]=t};static warning=vp;static messages=gp;static validators=Ip;rules=null;_messages=gp;constructor(e){this.define(e)}define(e){if(!e)throw Error(`Cannot configure a schema with no rules`);if(typeof e!=`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(t=>{let n=e[t];this.rules[t]=Array.isArray(n)?n:[n]})}messages(e){return e&&(this._messages=Op(hp(),e)),this._messages}validate(t,n={},r=()=>{}){let i=t,a=n,o=r;if(typeof a==`function`&&(o=a,a={}),!this.rules||Object.keys(this.rules).length===0)return o&&o(null,i),Promise.resolve(i);function s(e){let t=[],n={};function r(e){Array.isArray(e)?t=t.concat(...e):t.push(e)}for(let t=0;t<e.length;t++)r(e[t]);t.length?(n=yp(t),o(t,n)):o(null,i)}if(a.messages){let e=this.messages();e===gp&&(e=hp()),Op(e,a.messages),a.messages=e}else a.messages=this.messages();let c={};(a.keys||Object.keys(this.rules)).forEach(e=>{let n=this.rules[e],r=i[e];n.forEach(n=>{let a=n;typeof a.transform==`function`&&(i===t&&(i={...i}),r=i[e]=a.transform(r),r!=null&&(a.type=a.type||(Array.isArray(r)?`array`:typeof r))),a=typeof a==`function`?{validator:a}:{...a},a.validator=this.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=this.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))})});let l={};return yee(c,a,(t,n)=>{let r=t.rule,o=(r.type===`object`||r.type===`array`)&&(typeof r.fields==`object`||typeof r.defaultField==`object`);o&&=r.required||!r.required&&t.value,r.field=t.field;function s(e,t){return{...t,fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[...r.fullFields,e]:[e]}}function c(c=[]){let u=Array.isArray(c)?c:[c];!a.suppressWarning&&u.length&&e.warning(`async-validator:`,u),u.length&&r.message!==void 0&&r.message!==null&&(u=[].concat(r.message));let d=u.map(Dp(r,i));if(a.first&&d.length)return l[r.field]=1,n(d);if(!o)n(d);else{if(r.required&&!t.value)return r.message===void 0?a.error&&(d=[a.error(r,bp(a.messages.required,r.field))]):d=[].concat(r.message).map(Dp(r,i)),n(d);let o={};r.defaultField&&Object.keys(t.value).map(e=>{o[e]=r.defaultField}),o={...o,...t.rule.fields};let c={};Object.keys(o).forEach(e=>{let t=o[e];c[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});let l=new e(c);l.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),l.validate(t.value,t.rule.options||a,e=>{let t=[];d&&d.length&&t.push(...d),e&&e.length&&t.push(...e),n(t.length?t:null)})}}let u;if(r.asyncValidator)u=r.asyncValidator(r,t.value,c,t.source,a);else if(r.validator){try{u=r.validator(r,t.value,c,t.source,a)}catch(e){console.error?.(e),a.suppressValidatorError||setTimeout(()=>{throw e},0),c(e.message)}u===!0?c():u===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):u instanceof Array?c(u):u instanceof Error&&c(u.message)}u&&u.then&&u.then(()=>c(),e=>c(e))},e=>{s(e)},i)}getType(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!Ip.hasOwnProperty(e.type))throw Error(bp(`Unknown rule type %s`,e.type));return e.type||`string`}getValidationMethod(e){if(typeof e.validator==`function`)return e.validator;let t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?Ip.required:Ip[this.getType(e)]||void 0}},Lp="'${name}' is not a valid ${type}",Rp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Lp,method:Lp,array:Lp,object:Lp,number:Lp,date:Lp,boolean:Lp,integer:Lp,float:Lp,regexp:Lp,email:Lp,tel:Lp,url:Lp,hex:Lp},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},zp=Vee;function Hee(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var Bp=`CODE_LOGIC_ERROR`;async function Vp(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,zp.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(Bp)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new zp({[e]:[a]}),c=dn(Rp,r.validateMessages);s.messages(c);let l=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===Bp?c.default:e;return h.isValidElement(n)?h.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,n)=>Vp(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u={...n,name:e,enum:(n.enum||[]).join(`, `),...i};return l.map(e=>typeof e==`string`?Hee(e,u):e)}function Uee(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{Lt(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,Lt(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;e<s.length;e+=1){let i=s[e],c=await Vp(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>Vp(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?Gee(e):Wee(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function Wee(e){return Promise.all(e).then(e=>[].concat(...e))}async function Gee(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}function Hp(e){return pp(e)}function Up(e,t){let n={};return t.forEach(t=>{let r=rn(e,t);n=on(n,t,r)}),n}function Wp(e,t,n=!1){return e&&e.some(e=>Gp(t,e,n))}function Gp(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function Kee(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function qee(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function Kp(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}var qp=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Jee=class{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!Gp(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;qp(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};async function Yee(){return new Promise(e=>{qp(()=>{en(()=>{e()})})})}function Jp(){return Jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jp.apply(this,arguments)}var Yp=[],Xp=[];function Zp(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var Xee=class extends h.PureComponent{static contextType=dp;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Yp;warnings=Xp;constructor(e){if(super(e),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(lp);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(lp);this.cancelRegisterFunc=n(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,Hp(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};zt(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&Wp(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!zt(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Yp,this.warnings=Xp,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Yp,this.warnings=Xp,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&Zp(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||Yp),`warnings`in i&&(this.warnings=i.warnings||Xp),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&Wp(t,s,!0)){this.reRender();return}if(r&&!s.length&&Zp(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(Hp).some(e=>Wp(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&Zp(r,e,o,c,l,n)){this.reRender();return}break}r===!0&&this.reRender()};validateRules=e=>{let t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:a}=e||{},o=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:i=!1,messageVariables:s,validateDebounce:c}=this.props;a&&await Yee();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?pp(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=Uee(t,n,l,e,i,s);return u.catch(e=>e).then((e=Yp)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=Yp})=>{e?n.push(...r):t.push(...r)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),u});return i?o:(this.validatePromise=o,this.dirty=!0,this.errors=Yp,this.warnings=Xp,this.triggerMetaEvent(),this.reRender(),o)};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(lp);return t(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=tn(e);return t.length!==1||!h.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return rn(e||t(!0),n)};getControlled=(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(lp),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m),v={...e,..._};return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t;t=i?i(...e):qee(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},pp(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v};render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:h.isValidElement(n)?i=h.cloneElement(n,this.getControlled(n.props)):(Lt(!n,"`children` of Field is not validate ReactElement."),i=n),h.createElement(h.Fragment,{key:e},i)}};function Qp({name:e,...t}){let n=h.useContext(dp),r=h.useContext(fp),i=e===void 0?void 0:Hp(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),h.createElement(Xee,Jp({key:o,name:i,isListField:a},t,{fieldContext:n}))}function $p({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=h.useContext(dp),s=h.useContext(fp),c=h.useRef({keys:[],id:0}).current,l=h.useMemo(()=>[...Hp(o.prefixName)||[],...Hp(e)],[o.prefixName,e]),u=h.useMemo(()=>({...o,prefixName:l}),[o,l]),d=h.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?h.createElement(fp.Provider,{value:d},h.createElement(dp.Provider,{value:u},h.createElement(Qp,{name:[],shouldUpdate:(e,t,{source:n})=>n===`internal`?!1:e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=Kp(c.keys,e,n),t(Kp(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(Lt(!1,`Form.List only accepts function as children.`),null)}function Zee(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var em=`__@field_split__`;function tm(e){return e.map(e=>`${typeof e}:${e}`).join(em)}var nm=class{kvs=new Map;set(e,t){this.kvs.set(tm(e),t)}get(e){return this.kvs.get(tm(e))}getAsPrefix(e){let t=tm(e),n=t+em,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(tm(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(em).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}},Qee=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Jee(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Lt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=dn(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=on(t,n,rn(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new nm;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=rn(this.initialValues,e);return e.length?dn(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let t=new nm;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=Hp(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=Hp(e);return n.get(t)||{INVALIDATE_NAME_PATH:Hp(e)}})};getFieldsValue=(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.()){o.push(t);return}if(!r)a.push(t);else{let n=`getMeta`in e?e.getMeta():null;r(n)&&a.push(t)}});let s=Up(this.store,a.map(Hp));return o.forEach(e=>{rn(s,e)||(s=on(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=Hp(e);return rn(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Hp(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=Hp(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=Hp(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(Hp),i=!1):(r=null,i=t):(r=t.map(Hp),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new nm;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(Hp);return t.some(e=>Wp(n,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new nm,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)Lt(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)Lt(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(on(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(dn(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(Hp);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(on(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=Hp(r);n.push(a),`value`in i&&this.updateStore(on(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,"originRCField",{value:!0}),n});initEntityValue=e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();rn(this.store,n)===void 0&&this.updateStore(on(this.store,n,t))}};isMergedPreserve=e=>(e===void 0?this.preserve:e)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!Gp(e.getNamePath(),t))){let n=this.store;this.updateStore(on(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}};notifyObservers=(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n};updateValue=(e,t)=>{let n=Hp(e),r=this.store;this.updateStore(on(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=Up(this.store,[n]);a(e,on(this.getFieldsValue(),n,rn(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=dn(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let t=new Set,n=[],r=new nm;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=Hp(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n};triggerOnFieldsChange=(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new nm;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>Wp(e,t));i.length&&n(i,r)}};validateFields=(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(Hp):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>Gp(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||Wp(a,t,u))){let n=e.validateRules({validateMessages:{...Rp,...this.validateMessages},...r});s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?r.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let f=Zee(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}};function rm(e){let t=h.useRef(null),[,n]=h.useState({});return t.current||(e?t.current=e:t.current=new Qee(()=>{n({})}).getForm()),[t.current]}var im=h.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),am=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=h.useContext(im),a=h.useRef({});return h.createElement(im.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),i.registerForm(e,t)},unregisterForm:e=>{let t={...a.current};delete t[e],a.current=t,i.unregisterForm(e)}}},r)};function om(){return om=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},om.apply(this,arguments)}var $ee=(e,t)=>{let{name:n,initialValues:r,fields:i,form:a,preserve:o,children:s,component:c=`form`,validateMessages:l,validateTrigger:u=`onChange`,onValuesChange:d,onFieldsChange:f,onFinish:p,onFinishFailed:m,clearOnDestroy:g,..._}=e,v=h.useRef(null),y=h.useContext(im),[b]=rm(a),{useSubscribe:x,setInitialValues:S,setCallbacks:C,setValidateMessages:w,setPreserve:T,destroyForm:E}=b.getInternalHooks(lp);h.useImperativeHandle(t,()=>({...b,nativeElement:v.current})),h.useEffect(()=>(y.registerForm(n,b),()=>{y.unregisterForm(n)}),[y,b,n]),w({...y.validateMessages,...l}),C({onValuesChange:d,onFieldsChange:(e,...t)=>{y.triggerFormChange(n,e),f&&f(e,...t)},onFinish:e=>{y.triggerFormFinish(n,e),p&&p(e)},onFinishFailed:m}),T(o);let D=h.useRef(null);S(r,!D.current),D.current||=!0,h.useEffect(()=>()=>E(g),[]);let O,k=typeof s==`function`;O=k?s(b.getFieldsValue(!0),b):s,x(!k);let A=h.useRef(null);h.useEffect(()=>{Kee(A.current||[],i||[])||b.setFields(i||[]),A.current=i},[i,b]);let j=h.useMemo(()=>({...b,validateTrigger:u}),[b,u]),M=h.createElement(fp.Provider,{value:null},h.createElement(dp.Provider,{value:j},O));return c===!1?M:h.createElement(c,om({},_,{ref:v,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),b.submit()},onReset:e=>{e.preventDefault(),b.resetFields(),_.onReset?.(e)}}),M)};function sm(e){try{return JSON.stringify(e)}catch{return Math.random()}}function cm(...e){let[t,n={}]=e,r=mp(n)?{form:n}:n,i=r.form,[a,o]=(0,h.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,h.useMemo)(()=>sm(a),[a]),c=(0,h.useRef)(s);c.current=s;let l=(0,h.useContext)(dp),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(lp),g=fe((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):rn(i,Hp(t));sm(a)!==sm(s)&&o(s)});return(0,h.useEffect)(()=>{d&&g()},[d,typeof t==`function`?t:JSON.stringify(t)]),(0,h.useEffect)(()=>{if(d)return m((e,t)=>{g(e,t)})},[d]),a}var lm=h.forwardRef($ee);lm.FormProvider=am,lm.Field=Qp,lm.List=$p,lm.useForm=rm,lm.useWatch=cm;var um=h.createContext({labelAlign:`right`,layout:`horizontal`,itemRef:()=>{}}),ete=h.createContext(null),tte=e=>{let t=Ht(e,[`prefixCls`]);return h.createElement(am,{...t})},dm=h.createContext({prefixCls:``}),fm=h.createContext({}),nte=({children:e,status:t,override:n})=>{let r=h.useContext(fm),i=h.useMemo(()=>{let e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return h.createElement(fm.Provider,{value:i},e)},rte=h.createContext(void 0),pm=(e,t,n)=>{let{variant:r,[e]:i}=h.useContext(Fr),a=h.useContext(rte),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=Pr.includes(s);return[s,c]},mm=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=m({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=m({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=h.useMemo(()=>mr(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return h.createElement(`span`,{className:m(t,o,s,n),style:{...c,...r}})},ite=new Xa(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),hm=e=>({height:e,lineHeight:J(e)}),gm=e=>({width:e,...hm(e)}),ate=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:ite,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),_m=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...hm(e)}),ote=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...gm(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...gm(i)},[`${t}${t}-sm`]:{...gm(a)}}},ste=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,..._m(t,s)},[`${r}-lg`]:{..._m(i,s)},[`${r}-sm`]:{..._m(a,s)}}},cte=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...gm(i(r).mul(2).equal())}},lte=e=>({[e.skeletonNodeCls]:{...cte(e)}}),ute=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...cte(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...gm(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},vm=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},ym=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...hm(e)}),dte=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...ym(r,s)},...vm(e,r,n),[`${n}-lg`]:{...ym(i,s)},...vm(e,i,`${n}-lg`),[`${n}-sm`]:{...ym(a,s)},...vm(e,a,`${n}-sm`)}},fte=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...gm(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...gm(u)},[`${n}-sm`]:{...gm(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...dte(e),...ote(e),...ste(e),...lte(e),...ute(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
${r},
${i} > li,
${n},
${a},
${o},
${s},
${c}
`]:{...ate(e)}}}},bm=hc(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return fte(Bo(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),pte=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,style:o,styles:s,shape:c=`circle`,size:l,...u}=e,{getPrefixCls:d}=h.useContext(Fr),f=d(`skeleton`,t),[p,g]=bm(f),_=Wu(e=>l??e),v=m(f,`${f}-element`,{[`${f}-active`]:a},r?.root,n,i,p,g);return h.createElement(`div`,{className:v,style:s?.root},h.createElement(mm,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:_,...u}))},mte=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,active:a,style:o,styles:s,block:c=!1,size:l,...u}=e,{getPrefixCls:d}=h.useContext(Fr),f=d(`skeleton`,t),[p,g]=bm(f),_=Wu(e=>l??e),v=m(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:c},i?.root,n,r,p,g);return h.createElement(`div`,{className:v,style:s?.root},h.createElement(mm,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:_,...u}))},hte=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:a,style:o,styles:s,active:c,children:l}=e,{getPrefixCls:u}=h.useContext(Fr),d=u(`skeleton`,t),[f,p]=bm(d),g=m(d,`${d}-element`,{[`${d}-active`]:c},f,r?.root,n,i,p);return h.createElement(`div`,{className:g,style:s?.root},h.createElement(`div`,{className:m(r?.content,a||`${d}-node`),style:{...s?.content,...o}},l))},gte=e=>{let{getPrefixCls:t}=h.useContext(Fr),n=t(`skeleton`,e.prefixCls);return h.createElement(hte,{...e,internalClassName:`${n}-image`},h.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},h.createElement(`title`,null,`Image placeholder`),h.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${n}-image-path`})))},_te=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,block:o,style:s,styles:c,size:l,...u}=e,{getPrefixCls:d}=h.useContext(Fr),f=d(`skeleton`,t),[p,g]=bm(f),_=Wu(e=>l??e),v=m(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},r?.root,n,i,p,g);return h.createElement(`div`,{className:v,style:c?.root},h.createElement(mm,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:_,...u}))},vte=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},yte=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>h.createElement(`li`,{key:n,style:{width:vte(n,e)}}));return h.createElement(`ul`,{className:m(t,n),style:r},a)},bte=({prefixCls:e,className:t,width:n,style:r})=>h.createElement(`h3`,{className:m(e,t),style:{width:n,...r}});function xm(e){return gr(e)?e:{}}function xte(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function Ste(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function Cte(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var Sm=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:a,style:o,styles:s,children:c,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:g,direction:_,className:v,style:y,classNames:b,styles:x}=Rr(`skeleton`),S=g(`skeleton`,t),[C,w]=bm(S),T={...e,avatar:l,title:u,paragraph:d},E=Er(y),D=Er(o),[O,k]=Or([b,a],[x,E,s,D],{props:T});if(n||!(`loading`in e)){let e=!!l,t=!!u,n=!!d,a;if(e){let e={className:O.avatar,prefixCls:`${S}-avatar`,...xte(t,n),...xm(l),style:k.avatar};a=h.createElement(`div`,{className:m(O.header,`${S}-header`),style:k.header},h.createElement(mm,{...e}))}let o;if(t||n){let r;if(t){let t={className:O.title,prefixCls:`${S}-title`,...Ste(e,n),...xm(u),style:k.title};r=h.createElement(bte,{...t})}let i;if(n){let n={className:O.paragraph,prefixCls:`${S}-paragraph`,...Cte(e,t),...xm(d),style:k.paragraph};i=h.createElement(yte,{...n})}o=h.createElement(`div`,{className:m(O.section,`${S}-section`),style:k.section},r,i)}let s=m(S,{[`${S}-with-avatar`]:e,[`${S}-active`]:f,[`${S}-rtl`]:_===`rtl`,[`${S}-round`]:p},O.root,v,r,i,C,w);return h.createElement(`div`,{className:s,style:k.root},a,o)}return c??null};Sm.Button=mte,Sm.Avatar=pte,Sm.Input=_te,Sm.Image=gte,Sm.Node=hte;var wte=Sm,Tte=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`}}))());function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cm.apply(this,arguments)}var wm=h.forwardRef((e,t)=>h.createElement(W,Cm({},e,{ref:t,icon:Tte.default}))),Ete=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z`}},{tag:`path`,attrs:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z`}}]},name:`plus`,theme:`outlined`}}))());function Tm(){return Tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tm.apply(this,arguments)}var Em=h.forwardRef((e,t)=>h.createElement(W,Tm({},e,{ref:t,icon:Ete.default}))),Dm=(0,h.createContext)(null),Dte=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,h.useState)(),l=(0,h.useRef)(),u=h.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){en.cancel(l.current)}return(0,h.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=en(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},Om={width:0,height:0,left:0,top:0};function Ote(e,t,n){return(0,h.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||Om,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||Om;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function km(e,t){let n=h.useRef(e),[,r]=h.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var kte=.1,Am=.01,jm=20,Mm=.995**jm;function Ate(e,t){let[n,r]=(0,h.useState)(),[i,a]=(0,h.useState)(0),[o,s]=(0,h.useState)(0),[c,l]=(0,h.useState)(),u=(0,h.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<kte)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<Am&&Math.abs(i)<Am){window.clearInterval(u.current);return}r*=Mm,i*=Mm,t(r*jm,i*jm)},jm)}}let m=(0,h.useRef)();function g(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let _=(0,h.useRef)(null);_.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:g},h.useEffect(()=>{function t(e){_.current.onTouchStart(e)}function n(e){_.current.onTouchMove(e)}function r(e){_.current.onTouchEnd(e)}function i(e){_.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function Nm(e){let[t,n]=(0,h.useState)(0),r=(0,h.useRef)(0),i=(0,h.useRef)();return i.current=e,ge(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function jte(e){let t=(0,h.useRef)([]),[,n]=(0,h.useState)({}),r=(0,h.useRef)(typeof e==`function`?e():e),i=Nm(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var Pm={width:0,height:0,left:0,top:0,right:0};function Mte(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,h.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||Pm;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||Pm)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function Fm(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var Nte=`TABS_DQ`;function Im(e){return String(e).replace(/"/g,Nte)}function Lm(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Rm=h.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:h.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),zm=h.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!h.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?h.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null}),{ESC:Pte,TAB:Fte}=Tt;function Ite({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=h.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case Pte:o();break;case Fte:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};h.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&en(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Lte=(0,h.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,h.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=Fe(t,Be(a));return h.createElement(h.Fragment,null,r&&h.createElement(`div`,{className:`${i}-arrow`}),h.cloneElement(a,{ref:Le(a)?o:void 0}))}),Bm={adjustX:1,adjustY:1},Vm=[0,0],Rte={topLeft:{points:[`bl`,`tl`],overflow:Bm,offset:[0,-4],targetOffset:Vm},top:{points:[`bc`,`tc`],overflow:Bm,offset:[0,-4],targetOffset:Vm},topRight:{points:[`br`,`tr`],overflow:Bm,offset:[0,-4],targetOffset:Vm},bottomLeft:{points:[`tl`,`bl`],overflow:Bm,offset:[0,4],targetOffset:Vm},bottom:{points:[`tc`,`bc`],overflow:Bm,offset:[0,4],targetOffset:Vm},bottomRight:{points:[`tr`,`br`],overflow:Bm,offset:[0,4],targetOffset:Vm}};function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(this,arguments)}var Um=h.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=Rte,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:g,trigger:_=[`hover`],autoFocus:v,overlay:y,children:b,onVisibleChange:x,...S}=e,[C,w]=h.useState(),T=`visible`in e?g:C,E=a?`${r}-${a}`:i,D=h.useRef(null),O=h.useRef(null),k=h.useRef(null);h.useImperativeHandle(t,()=>D.current);let A=e=>{w(e),x?.(e)};Ite({visible:T,triggerRef:k,onVisibleChange:A,autoFocus:v,overlayRef:O});let j=t=>{let{onOverlayClick:n}=e;w(!1),n&&n(t)},M=()=>h.createElement(Lte,{ref:O,overlay:y,prefixCls:r,arrow:n}),N=()=>typeof y==`function`?M:M(),P=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},F=h.cloneElement(b,{className:m(b.props?.className,T&&(()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t})()),ref:Le(b)?Fe(k,Be(b)):void 0}),I=d;return!I&&_.indexOf(`contextMenu`)!==-1&&(I=[`click`]),h.createElement(ou,Hm({builtinPlacements:c},S,{prefixCls:r,ref:D,popupClassName:m(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:_,showAction:u,hideAction:I,popupPlacement:s,popupAlign:o,popupMotion:{motionName:E},popupVisible:T,stretch:P()?`minWidth`:``,popup:N(),onOpenChange:A,onPopupClick:j,getPopupContainer:l}),F)}),Wm=void 0;function zte(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:g,component:_=`div`,...v}=e,y=o&&!p;function b(e){c(l,e)}h.useEffect(()=>()=>{b(null)},[]);let x=a&&i!==Wm?a(i,{index:g}):f,S;r||(S={opacity:+!y,height:y?0:Wm,overflowY:y?`hidden`:Wm,order:o?g:Wm,pointerEvents:y?`none`:Wm,position:y?`absolute`:Wm});let C={};y&&(C[`aria-hidden`]=!0);let w=h.createElement(_,jf({className:m(!r&&n,u),style:{...S,...d}},C,v,{ref:t}),x);return o&&(w=h.createElement(El,{onResize:({offsetWidth:e})=>{b(e)},disabled:s},w)),w}var Gm=h.forwardRef(zte);function Bte(e){if(typeof MessageChannel>`u`)en(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function Vte(){let e=h.useRef(null);return t=>{e.current||(e.current=[],Bte(()=>{(0,yn.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Km(e,t){let[n,r]=h.useState(t);return[n,fe(t=>{e(()=>{r(t)})})]}var qm=h.createContext(null),Hte=h.forwardRef((e,t)=>{let n=h.useContext(qm);if(!n){let{component:n=`div`,...r}=e;return h.createElement(n,jf({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return h.createElement(qm.Provider,{value:null},h.createElement(Gm,jf({ref:t,className:m(r,a)},i,o)))}),Jm=`responsive`,Ym=`invalidate`;function Ute(e){return`+ ${e.length} ...`}function Wte(e,t){let{prefixCls:n=`rc-overflow`,data:r=[],renderItem:i,renderRawItem:a,itemKey:o,itemWidth:s=10,ssr:c,style:l,className:u,maxCount:d,renderRest:f,renderRawRest:p,prefix:g,suffix:_,component:v=`div`,itemComponent:y,onVisibleChange:b,...x}=e,S=c===`full`,C=Vte(),[w,T]=Km(C,null),E=w||0,[D,O]=Km(C,new Map),[k,A]=Km(C,0),[j,M]=Km(C,0),[N,P]=Km(C,0),[F,I]=Km(C,0),[L,R]=(0,h.useState)(null),[z,B]=(0,h.useState)(null),V=h.useMemo(()=>z===null&&S?2**53-1:z||0,[z,w]),[H,U]=(0,h.useState)(!1),W=`${n}-item`,G=Math.max(k,j),K=d===Jm,q=r.length&&K,ee=d===Ym,te=q||typeof d==`number`&&r.length>d,ne=(0,h.useMemo)(()=>{let e=r;return q?e=w===null&&S?r:r.slice(0,Math.min(r.length,E/s)):typeof d==`number`&&(e=r.slice(0,d)),e},[r,s,w,d,q]),re=(0,h.useMemo)(()=>q?r.slice(V+1):r.slice(ne.length),[r,ne,q,V]),ie=(0,h.useCallback)((e,t)=>typeof o==`function`?o(e):(o&&e?.[o])??t,[o]),ae=(0,h.useCallback)(i||(e=>e),[i]);function oe(e,t,n){z===e&&(t===void 0||t===L)||(B(e),n||(U(e<r.length-1),b?.(e)),t!==void 0&&R(t))}function se(e,t){T(t.clientWidth)}function ce(e,t){O(n=>{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function le(e,t){M(t),A(j)}function ue(e,t){P(t)}function de(e,t){I(t)}function fe(e){return D.get(ie(ne[e],e))}he(()=>{if(E&&typeof G==`number`&&ne){let e=N+F,t=ne.length,n=t-1;if(!t){oe(0,null);return}for(let r=0;r<t;r+=1){let t=fe(r);if(S&&(t||=0),t===void 0){oe(r-1,void 0,!0);break}if(e+=t,n===0&&e<=E||r===n-1&&e+fe(n)<=E){oe(n,null);break}else if(e+G>E){oe(r-1,e-t-F+j);break}}_&&fe(0)+F>E&&R(null)}},[E,D,j,N,F,ie,ne]);let pe=H&&!!re.length,me={};L!==null&&q&&(me={position:`absolute`,top:0,insetInlineStart:L});let ge={prefixCls:W,responsive:q,component:y,invalidate:ee},_e=a?(e,t)=>{let n=ie(e,t);return h.createElement(qm.Provider,{key:n,value:{...ge,order:t,item:e,itemKey:n,registerSize:ce,display:t<=V}},a(e,t))}:(e,t)=>{let n=ie(e,t);return h.createElement(Gm,jf({},ge,{order:t,key:n,item:e,renderItem:ae,itemKey:n,registerSize:ce,display:t<=V}))},ve={order:pe?V:2**53-1,className:`${W}-rest`,registerSize:le,display:pe},ye=f||Ute,be=p?h.createElement(qm.Provider,{value:{...ge,...ve}},p(re)):h.createElement(Gm,jf({},ge,ve),typeof ye==`function`?ye(re):ye),xe=h.createElement(v,jf({className:m(!ee&&n,u),style:l,ref:t},x),g&&h.createElement(Gm,jf({},ge,{responsive:K,responsiveDisabled:!q,order:-1,className:`${W}-prefix`,registerSize:ue,display:!0}),g),ne.map(_e),te?be:null,_&&h.createElement(Gm,jf({},ge,{responsive:K,responsiveDisabled:!q,order:V,className:`${W}-suffix`,registerSize:de,display:!0,style:me}),_));return K?h.createElement(El,{onResize:se,disabled:!q},xe):xe}var Xm=h.forwardRef(Wte);Xm.Item=Hte,Xm.RESPONSIVE=Jm,Xm.INVALIDATE=Ym;var Zm=Xm,Qm=h.createContext(null);function $m(e,t){return`${e}-${t}`}function eh(e){return $m(h.useContext(Qm),e)}var th=h.createContext(null);function Gte(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function nh({children:e,locked:t,...n}){let r=h.useContext(th),i=we(()=>Gte(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!zt(e[1],n[1],!0)));return h.createElement(th.Provider,{value:i},e)}var Kte=[],rh=h.createContext(null);function ih(){return h.useContext(rh)}var ah=h.createContext(Kte);function oh(e){let t=h.useContext(ah);return h.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var sh=h.createContext(null),ch=h.createContext({}),{LEFT:lh,RIGHT:uh,UP:dh,DOWN:fh,ENTER:ph,ESC:mh,HOME:hh,END:gh}=Tt,_h=[dh,fh,lh,uh];function qte(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===ph)return{inlineTrigger:!0};let c={[dh]:i,[fh]:a},l={[lh]:n?a:i,[uh]:n?i:a,[fh]:o,[ph]:o},u={[dh]:i,[fh]:a,[ph]:o,[mh]:s,[lh]:n?o:s,[uh]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function Jte(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function Yte(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function vh(e,t){return at(e,!0).filter(e=>t.has(e))}function yh(e,t,n,r=1){if(!e)return null;let i=vh(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var bh=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${$m(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function Xte(e,t,n,r,i,a,o,s,c,l){let u=h.useRef(),d=h.useRef();d.current=t;let f=()=>{en.cancel(u.current)};return h.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([..._h,ph,mh,hh,gh].includes(m)){let l=a(),h=bh(l,r),{elements:g,key2element:_,element2key:v}=h,y=Yte(_.get(t),g),b=v.get(y),x=qte(e,o(b,!0).length===1,n,m);if(!x&&m!==hh&&m!==gh)return;(_h.includes(m)||[hh,gh].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=en(()=>{d.current===r&&t.focus()})}};if([hh,gh].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:Jte(y);let n,r=vh(t,g);n=m===hh?r[0]:m===gh?r[r.length-1]:yh(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=en(()=>{h=bh(l,r);let e=y.getAttribute(`aria-controls`);S(yh(document.getElementById(e),h.elements))},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function Zte(e){Promise.resolve().then(e)}var xh=`__RC_UTIL_PATH_SPLIT__`,Sh=e=>e.join(xh),Qte=e=>e.split(xh),Ch=`rc-menu-more`;function $te(){let[,e]=h.useState({}),t=(0,h.useRef)(new Map),n=(0,h.useRef)(new Map),[r,i]=h.useState([]),a=(0,h.useRef)(0),o=(0,h.useRef)(!1),s=()=>{o.current||e({})},c=(0,h.useCallback)((e,r)=>{let i=Sh(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;Zte(()=>{o===a.current&&s()})},[]),l=(0,h.useCallback)((e,r)=>{let i=Sh(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,h.useCallback)(e=>{i(e)},[]),d=(0,h.useCallback)((e,n)=>{let i=Qte(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(Ch),i},[r]),f=(0,h.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(Ch),e},m=(0,h.useCallback)(e=>{let r=`${t.current.get(e)}${xh}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return h.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function wh(e){let t=h.useRef(e);t.current=e;let n=h.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function Th(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=h.useContext(th),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function Eh(e){let{mode:t,rtl:n,inlineIndent:r}=h.useContext(th);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function Dh({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=h.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function Oh({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Lt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function kh(){return kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kh.apply(this,arguments)}var ene=class extends h.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=Ht(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return Lt(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(Zm.Item,kh({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},tne=h.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,itemData:l,role:u,onMouseEnter:d,onMouseLeave:f,onClick:p,onKeyDown:g,onFocus:_,...v}=e,y=eh(i),{prefixCls:b,onItemClick:x,disabled:S,overflowDisabled:C,itemIcon:w,selectedKeys:T,onActive:E}=h.useContext(th),{_internalRenderMenuItem:D}=h.useContext(ch),O=`${b}-item`,k=h.useRef(),A=h.useRef(),j=S||o,M=Ie(t,A),N=oh(i),P=t=>{let n=l||{key:i||``,label:c,itemIcon:s,extra:e.extra,title:e.title};return{key:i,keyPath:[...N].reverse(),item:k.current,domEvent:t,itemData:l||n}},F=s||w,{active:I,...L}=Th(i,j,d,f),R=T.includes(i),z=Eh(N.length),B=e=>{if(j)return;let t=P(e);p?.(Oh(t)),x(t)},V=e=>{if(g?.(e),e.which===Tt.ENTER){let t=P(e);p?.(Oh(t)),x(t)}},H=e=>{E(i),_?.(e)},U={};e.role===`option`&&(U[`aria-selected`]=R);let W=h.createElement(ene,kh({ref:k,elementRef:M,role:u===null?`none`:u||`menuitem`,tabIndex:o?null:-1,"data-menu-id":C&&y?null:y},Ht(v,[`extra`]),L,U,{component:`li`,"aria-disabled":o,style:{...z,...n},className:m(O,{[`${O}-active`]:I,[`${O}-selected`]:R,[`${O}-disabled`]:j},r),onClick:B,onKeyDown:V,onFocus:H}),c,h.createElement(Dh,{props:{...e,isSelected:R},icon:F}));return D&&(W=D(W,e,{selected:R})),W});function nne(e,t){let{eventKey:n}=e,r=ih(),i=oh(n);return h.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:h.createElement(tne,kh({},e,{ref:t}))}var Ah=h.forwardRef(nne);function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jh.apply(this,arguments)}var Mh=h.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=h.useContext(th);return h.createElement(`ul`,jh({className:m(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function Nh(e,t){return tn(e).map((e,n)=>{if(h.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return h.cloneElement(e,a)}return e})}var Ph={adjustX:1,adjustY:1},rne={topLeft:{points:[`bl`,`tl`],overflow:Ph},topRight:{points:[`br`,`tr`],overflow:Ph},bottomLeft:{points:[`tl`,`bl`],overflow:Ph},bottomRight:{points:[`tr`,`br`],overflow:Ph},leftTop:{points:[`tr`,`tl`],overflow:Ph},leftBottom:{points:[`br`,`bl`],overflow:Ph},rightTop:{points:[`tl`,`tr`],overflow:Ph},rightBottom:{points:[`bl`,`br`],overflow:Ph}},ine={topLeft:{points:[`bl`,`tl`],overflow:Ph},topRight:{points:[`br`,`tr`],overflow:Ph},bottomLeft:{points:[`tl`,`bl`],overflow:Ph},bottomRight:{points:[`tr`,`br`],overflow:Ph},rightTop:{points:[`tr`,`tl`],overflow:Ph},rightBottom:{points:[`br`,`bl`],overflow:Ph},leftTop:{points:[`tl`,`tr`],overflow:Ph},leftBottom:{points:[`bl`,`br`],overflow:Ph}};function Fh(e,t,n){if(t)return t;if(n)return n[e]||n.other}var ane={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function one({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:g,triggerSubMenuAction:_,forceSubMenuRender:v,rootClassName:y,motion:b,defaultMotions:x}=h.useContext(th),[S,C]=h.useState(!1),w=d?{...ine,...g}:{...rne,...g},T=ane[c],E=Fh(c,b,x),D=h.useRef(E);c!==`inline`&&(D.current=E);let O={...D.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},k=h.useRef();return h.useEffect(()=>(k.current=en(()=>{C(t)}),()=>{en.cancel(k.current)}),[t]),h.createElement(ou,{prefixCls:e,popupClassName:m(`${e}-popup`,{[`${e}-rtl`]:d},a,y),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:w,popupPlacement:T,popupVisible:S,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[_],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:v,popupMotion:O,fresh:!0},n)}function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ih.apply(this,arguments)}function sne({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=h.useContext(th),u=h.useRef(!1);u.current=l===i;let[d,f]=h.useState(!u.current),p=u.current?t:!1;h.useEffect(()=>{u.current&&f(!1)},[l]);let m={...Fh(i,s,c)};n.length>1&&(m.motionAppear=!1);let g=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),g?.(e)),d?null:h.createElement(nh,{mode:i,locked:!u.current},h.createElement(ar,Ih({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>h.createElement(Mh,{id:e,className:t,style:n},r)))}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(this,arguments)}var cne=h.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:g,popupOffset:_,popupStyle:v,onClick:y,onMouseEnter:b,onMouseLeave:x,onTitleClick:S,onTitleMouseEnter:C,onTitleMouseLeave:w,popupRender:T,...E}=e,D=eh(s),{prefixCls:O,mode:k,openKeys:A,disabled:j,overflowDisabled:M,activeKey:N,selectedKeys:P,itemIcon:F,expandIcon:I,onItemClick:L,onOpenChange:R,onActive:z,popupRender:B}=h.useContext(th),{_internalRenderSubMenuItem:V}=h.useContext(ch),{isSubPathKey:H}=h.useContext(sh),U=oh(),W=`${O}-submenu`,G=j||l,K=h.useRef(),q=h.useRef(),ee=f??F,te=p??I,ne=A.includes(s),re=!M&&ne,ie=H(P,s),{active:ae,...oe}=Th(s,G,C,w),[se,ce]=h.useState(!1),le=e=>{G||ce(e)},ue=e=>{le(!0),b?.({key:s,domEvent:e})},de=e=>{le(!1),x?.({key:s,domEvent:e})},fe=h.useMemo(()=>ae||(k===`inline`?!1:se||H([N],s)),[k,ae,N,se,s,H]),pe=Eh(U.length),me=e=>{G||(S?.({key:s,domEvent:e}),k===`inline`&&R(s,!ne))},he=wh(e=>{y?.(Oh(e)),L(e)}),ge=e=>{k!==`inline`&&R(s,e)},_e=()=>{z(s)},ve=D&&`${D}-popup`,ye=h.useMemo(()=>h.createElement(Dh,{icon:k===`horizontal`?void 0:te,props:{...e,isOpen:re,isSubMenu:!0}},h.createElement(`i`,{className:`${W}-arrow`})),[k,te,e,re,W]),be=h.createElement(`div`,Lh({role:`menuitem`,style:pe,className:`${W}-title`,tabIndex:G?null:-1,ref:K,title:typeof o==`string`?o:null,"data-menu-id":M&&D?null:D,"aria-expanded":re,"aria-haspopup":!0,"aria-controls":ve,"aria-disabled":G,onClick:me,onFocus:_e},oe),o,ye),xe=h.useRef(k);k!==`inline`&&U.length>1?xe.current=`vertical`:xe.current=k;let Se=xe.current,Ce=h.useMemo(()=>{let t=h.createElement(nh,{classNames:a,styles:i,mode:Se===`horizontal`?`vertical`:Se},h.createElement(Mh,{id:ve,ref:q},d)),n=T||B;return n?n(t,{item:e,keys:U}):t},[T,B,U,ve,d,e,Se]);if(!M){let e=xe.current;be=h.createElement(one,{mode:e,prefixCls:W,visible:!u&&re&&k!==`inline`,popupClassName:g,popupOffset:_,popupStyle:v,popup:Ce,disabled:G,onVisibleChange:ge},be)}let we=h.createElement(Zm.Item,Lh({ref:t,role:`none`},E,{component:`li`,style:n,className:m(W,`${W}-${k}`,r,{[`${W}-open`]:re,[`${W}-active`]:fe,[`${W}-selected`]:ie,[`${W}-disabled`]:G}),onMouseEnter:ue,onMouseLeave:de}),be,!M&&h.createElement(sne,{id:ve,open:re,keyPath:U},d));return V&&(we=V(we,e,{selected:ie,active:fe,open:re,disabled:G})),h.createElement(nh,{classNames:a,styles:i,onItemClick:he,mode:k===`horizontal`?`vertical`:k,itemIcon:ee,expandIcon:te},we)}),Rh=h.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=oh(n),a=Nh(r,i),o=ih();h.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:h.createElement(cne,Lh({ref:t},e),a),h.createElement(ah.Provider,{value:i},s)});function zh({className:e,style:t}){let{prefixCls:n}=h.useContext(th);return ih()?null:h.createElement(`li`,{role:`separator`,className:m(`${n}-item-divider`,e),style:t})}function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bh.apply(this,arguments)}var lne=h.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=h.useContext(th),u=`${s}-item-group`;return h.createElement(`li`,Bh({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:m(u,n)}),h.createElement(`div`,{role:`presentation`,className:m(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),h.createElement(`ul`,{role:`group`,className:m(`${u}-list`,c?.list),style:l?.list},a))}),Vh=h.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Nh(r,oh(n));return ih()?i:h.createElement(lne,Bh({ref:t},Ht(e,[`warnKey`])),i)});function Hh(){return Hh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hh.apply(this,arguments)}function Uh(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;if(l||d===`group`)return d===`group`?h.createElement(i,Hh({key:m},p,{title:c}),Uh(l,t,n)):h.createElement(a,Hh({key:m},p,{title:c}),Uh(l,t,n));if(d===`divider`)return h.createElement(o,Hh({key:m},p));let g=!!f||f===0;return h.createElement(r,Hh({key:m},p,{extra:f,itemData:{...e,key:m}}),g?h.createElement(h.Fragment,null,h.createElement(`span`,{className:`${n}-item-label`},c),h.createElement(`span`,{className:`${n}-item-extra`},f)):c)}return null}).filter(e=>e)}function Wh(e,t,n,r,i){let a=e,o={divider:zh,item:Ah,group:Vh,submenu:Rh,...r};return t&&(a=Uh(t,o,i)),Nh(a,n)}function Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gh.apply(this,arguments)}var Kh=[],qh=h.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:g,disabled:_,disabledOverflow:v,subMenuOpenDelay:y=.1,subMenuCloseDelay:b=.1,forceSubMenuRender:x,defaultOpenKeys:S,openKeys:C,activeKey:w,defaultActiveFirst:T,selectable:E=!0,multiple:D=!1,defaultSelectedKeys:O,selectedKeys:k,onSelect:A,onDeselect:j,inlineIndent:M=24,motion:N,defaultMotions:P,triggerSubMenuAction:F=`hover`,builtinPlacements:I,itemIcon:L,expandIcon:R,overflowedIndicator:z=`...`,overflowedIndicatorPopupClassName:B,getPopupContainer:V,onClick:H,onOpenChange:U,onKeyDown:W,openAnimation:G,openTransitionName:K,_internalRenderMenuItem:q,_internalRenderSubMenuItem:ee,_internalComponents:te,popupRender:ne,...re}=e,[ie,ae]=h.useMemo(()=>[Wh(u,l,Kh,te,n),Wh(u,l,Kh,{},n)],[u,l,te]),[oe,se]=h.useState(!1),ce=h.useRef(),le=Ce(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),ue=d===`rtl`,[de,fe]=ve(S,C),pe=de||Kh,me=(e,t=!1)=>{function n(){fe(e),U?.(e)}t?(0,yn.flushSync)(n):n()},[he,ge]=h.useState(pe),_e=h.useRef(!1),[ye,be]=h.useMemo(()=>(p===`inline`||p===`vertical`)&&g?[`vertical`,g]:[p,!1],[p,g]),xe=ye===`inline`,[Se,we]=h.useState(ye),[Te,Ee]=h.useState(be);h.useEffect(()=>{we(ye),Ee(be),_e.current&&(xe?fe(he):me(Kh))},[ye,be]);let[De,Oe]=h.useState(0),ke=De>=ie.length-1||Se!==`horizontal`||v;h.useEffect(()=>{xe&&ge(pe)},[pe]),h.useEffect(()=>(_e.current=!0,()=>{_e.current=!1}),[]);let{registerPath:Ae,unregisterPath:je,refreshOverflowKeys:Me,isSubPathKey:Ne,getKeyPath:Pe,getKeys:Fe,getSubPathKeys:Ie}=$te(),Le=h.useMemo(()=>({registerPath:Ae,unregisterPath:je}),[Ae,je]),Re=h.useMemo(()=>({isSubPathKey:Ne}),[Ne]);h.useEffect(()=>{Me(ke?Kh:ie.slice(De+1).map(e=>e.key))},[De,ke]);let[ze,Be]=ve(w||T&&ie[0]?.key,w),Ve=wh(e=>{Be(e)}),He=wh(()=>{Be(void 0)});(0,h.useImperativeHandle)(t,()=>({list:ce.current,focus:e=>{let t=Fe(),{elements:n,key2element:r,element2key:i}=bh(t,le),a=vh(ce.current,n),o;o=ze&&t.includes(ze)?ze:a[0]?i.get(a[0]):ie.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=bh(Fe(),le);return t.get(e)||null}}));let[Ue,We]=ve(O||[],k),Ge=h.useMemo(()=>Array.isArray(Ue)?Ue:Ue==null?Kh:[Ue],[Ue]),Ke=e=>{if(E){let{key:t}=e,n=Ge.includes(t),r;r=D?n?Ge.filter(e=>e!==t):[...Ge,t]:[t],We(r);let i={...e,selectedKeys:r};n?j?.(i):A?.(i)}!D&&pe.length&&Se!==`inline`&&me(Kh)},qe=wh(e=>{H?.(Oh(e)),Ke(e)}),Je=wh((e,t)=>{let n=pe.filter(t=>t!==e);if(t)n.push(e);else if(Se!==`inline`){let t=Ie(e);n=n.filter(e=>!t.has(e))}zt(pe,n,!0)||me(n,!0)}),Ye=Xte(Se,ze,ue,le,ce,Fe,Pe,Be,(e,t)=>{Je(e,t??!pe.includes(e))},W);h.useEffect(()=>{se(!0)},[]);let Xe=h.useMemo(()=>({_internalRenderMenuItem:q,_internalRenderSubMenuItem:ee}),[q,ee]),Ze=Se!==`horizontal`||v?ie:ie.map((e,t)=>h.createElement(nh,{key:e.key,overflowDisabled:t>De,classNames:s,styles:o},e)),Qe=h.createElement(Zm,Gh({id:f,ref:ce,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:Ah,className:m(n,`${n}-root`,`${n}-${Se}`,a,{[`${n}-inline-collapsed`]:Te,[`${n}-rtl`]:ue},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Ze,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?ie.slice(-t):null;return h.createElement(Rh,{eventKey:Ch,title:z,disabled:ke,internalPopupClose:t===0,popupClassName:B},n)},maxCount:Se!==`horizontal`||v?Zm.INVALIDATE:Zm.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{Oe(e)},onKeyDown:Ye},re));return h.createElement(ch.Provider,{value:Xe},h.createElement(Qm.Provider,{value:le},h.createElement(nh,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:Se,openKeys:pe,rtl:ue,disabled:_,motion:oe?N:null,defaultMotions:oe?P:null,activeKey:ze,onActive:Ve,onInactive:He,selectedKeys:Ge,inlineIndent:M,subMenuOpenDelay:y,subMenuCloseDelay:b,forceSubMenuRender:x,builtinPlacements:I,triggerSubMenuAction:F,getPopupContainer:V,itemIcon:L,expandIcon:R,onItemClick:qe,onOpenChange:Je,popupRender:ne},h.createElement(sh.Provider,{value:Re},Qe),h.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},h.createElement(rh.Provider,{value:Le},ae)))))});qh.Item=Ah,qh.SubMenu=Rh,qh.ItemGroup=Vh,qh.Divider=zh;function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jh.apply(this,arguments)}var une=h.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:g,getPopupContainer:_,popupClassName:v,popupStyle:y,classNames:b,styles:x}=e,[S,C]=(0,h.useState)(!1),[w,T]=(0,h.useState)(null),{icon:E=`More`}=s,D=`${r}-more-popup`,O=`${n}-dropdown`,k=w===null?null:`${D}-${w}`,A=a?.dropdownAriaLabel;function j(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let M=h.createElement(qh,{onClick:({key:e,domEvent:t})=>{g(e,t),C(!1)},prefixCls:`${O}-menu`,id:D,tabIndex:-1,role:`listbox`,"aria-activedescendant":k,selectedKeys:[w],"aria-label":A===void 0?`expanded dropdown`:A},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=Lm(t,i,u,n);return h.createElement(Ah,{key:a,id:`${D}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},h.createElement(`span`,null,o),s&&h.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:m(`${O}-menu-item-remove`,b?.remove),style:x?.remove,onClick:e=>{e.stopPropagation(),j(e,a)}},i||u.removeIcon||`×`))}));function N(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===w)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){T(i.key);return}}}function P(e){let{which:t}=e;if(!S){[Tt.DOWN,Tt.SPACE,Tt.ENTER].includes(t)&&(C(!0),e.preventDefault());return}switch(t){case Tt.UP:N(-1),e.preventDefault();break;case Tt.DOWN:N(1),e.preventDefault();break;case Tt.ESC:C(!1);break;case Tt.SPACE:case Tt.ENTER:w!==null&&g(w,e);break}}(0,h.useEffect)(()=>{let e=document.getElementById(k);e?.scrollIntoView&&e.scrollIntoView(!1)},[k,w]),(0,h.useEffect)(()=>{S||T(null)},[S]);let F={marginInlineStart:d};i.length||(F.visibility=`hidden`,F.order=1);let I=m(v,{[`${O}-rtl`]:f}),L=o?null:h.createElement(Um,Jh({prefixCls:O,overlay:M,visible:i.length?S:!1,onVisibleChange:C,overlayClassName:I,overlayStyle:y,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:_},s),h.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:F,"aria-haspopup":`listbox`,"aria-controls":D,id:`${r}-more`,"aria-expanded":S,onKeyDown:P},E));return h.createElement(`div`,{className:m(`${n}-nav-operations`,l),style:c,ref:t},L,h.createElement(Rm,{prefixCls:n,locale:a,editable:u}))}),dne=h.memo(une,(e,t)=>t.tabMoving),fne=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:g,onFocus:_,onBlur:v,onKeyDown:y,onMouseDown:b,onMouseUp:x,styles:S,classNames:C,tabCount:w,currentPosition:T}=e,E=`${t}-tab`,D=Lm(u,c,p,s);function O(e){s||g(e)}function k(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let A=h.useMemo(()=>l&&typeof o==`string`?h.createElement(`span`,null,o):o,[o,l]),j=h.useRef(null);h.useEffect(()=>{i&&j.current&&j.current.focus()},[i]);let M=h.createElement(`div`,{key:a,"data-node-key":Im(a),className:m(E,C?.item,{[`${E}-with-remove`]:D,[`${E}-active`]:r,[`${E}-disabled`]:s,[`${E}-focus`]:i}),style:S?.item,onClick:O},h.createElement(`div`,{ref:j,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${E}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),O(e)},onKeyDown:y,onMouseDown:b,onMouseUp:x,onFocus:_,onBlur:v},i&&h.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${T} of ${w}`),l&&h.createElement(`span`,{className:`${E}-icon`},l),o&&A),D&&h.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:m(`${E}-remove`,C?.remove),style:S?.remove,onClick:e=>{e.stopPropagation(),k(e)}},c||p.removeIcon||`×`));return d?d(M):M};function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yh.apply(this,arguments)}var pne=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},Xh=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},Zh=(e,t)=>e[+!t],Qh=h.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:g,onTabScroll:_,indicator:v,classNames:y,styles:b}=e,{prefixCls:x,tabs:S}=h.useContext(Dm),C=(0,h.useRef)(null),w=(0,h.useRef)(null),T=(0,h.useRef)(null),E=(0,h.useRef)(null),D=(0,h.useRef)(null),O=(0,h.useRef)(null),k=(0,h.useRef)(null),A=d===`top`||d===`bottom`,[j,M]=km(0,(e,t)=>{A&&_&&_({direction:e>t?`left`:`right`})}),[N,P]=km(0,(e,t)=>{!A&&_&&_({direction:e>t?`top`:`bottom`})}),[F,I]=(0,h.useState)([0,0]),[L,R]=(0,h.useState)([0,0]),[z,B]=(0,h.useState)([0,0]),[V,H]=(0,h.useState)([0,0]),[U,W]=jte(new Map),G=Ote(S,U,L[0]),K=Zh(F,A),q=Zh(L,A),ee=Zh(z,A),te=Zh(V,A),ne=Math.floor(K)<Math.floor(q+ee),re=ne?K-te:K-ee,ie=`${x}-nav-operations-hidden`,ae=0,oe=0;A&&s?(ae=0,oe=Math.max(0,q-re)):(ae=Math.min(0,re-q),oe=0);function se(e){return e<ae?ae:e>oe?oe:e}let ce=(0,h.useRef)(null),[le,ue]=(0,h.useState)();function de(){ue(Date.now())}function pe(){ce.current&&clearTimeout(ce.current)}Ate(E,(e,t)=>{function n(e,t){e(e=>se(e+t))}return ne?(A?n(M,e):n(P,t),pe(),de(),!0):!1}),(0,h.useEffect)(()=>(pe(),le&&(ce.current=setTimeout(()=>{ue(0)},100)),pe),[le]);let[me,he]=Mte(G,re,A?j:N,q,ee,te,{...e,tabs:S}),ge=fe((e=o)=>{let t=G.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){let e=j;s?t.right<j?e=t.right:t.right+t.width>j+re&&(e=t.right+t.width-re):t.left<-j?e=-t.left:t.left+t.width>-j+re&&(e=-(t.left+t.width-re)),P(0),M(se(e))}else{let e=N;t.top<-N?e=-t.top:t.top+t.height>-N+re&&(e=-(t.top+t.height-re)),M(0),P(se(e))}}),[_e,ve]=(0,h.useState)(),[ye,be]=(0,h.useState)(!1),xe=S.filter(e=>!e.disabled).map(e=>e.key),Se=e=>{let t=xe.indexOf(_e||o),n=xe.length,r=xe[(t+e+n)%n];ve(r)},Ce=(e,t)=>{let n=xe.indexOf(e),r=S.find(t=>t.key===e);Lm(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===xe.length-1?Se(-1):Se(1))},we=(e,t)=>{be(!0),t.button===1&&Ce(e,t)},Te=e=>{let{code:t}=e,n=s&&A,r=xe[0],i=xe[xe.length-1];switch(t){case`ArrowLeft`:A&&Se(n?1:-1);break;case`ArrowRight`:A&&Se(n?-1:1);break;case`ArrowUp`:e.preventDefault(),A||Se(-1);break;case`ArrowDown`:e.preventDefault(),A||Se(1);break;case`Home`:e.preventDefault(),ve(r);break;case`End`:e.preventDefault(),ve(i);break;case`Enter`:case`Space`:e.preventDefault(),g(_e??o,e);break;case`Backspace`:case`Delete`:Ce(_e,e);break}},Ee={};A?Ee.marginInlineStart=f:Ee.marginTop=f;let De=S.map((e,t)=>{let{key:n}=e;return h.createElement(fne,{id:i,prefixCls:x,key:n,tab:e,classNames:{item:y?.item,remove:y?.remove},styles:{item:t===0?b?.item:{...Ee,...b?.item},remove:b?.remove},closable:e.closable,editable:l,active:n===o,focus:n===_e,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:xe.length,currentPosition:t+1,onClick:e=>{g(n,e)},onKeyDown:Te,onFocus:()=>{ye||ve(n),ge(n),de(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{ve(void 0)},onMouseDown:e=>we(n,e),onMouseUp:()=>{be(!1)}})}),Oe=()=>W(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return S.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${Im(n)}"]`);if(r){let[i,a,o,s]=pne(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,h.useEffect)(()=>{Oe()},[S.map(e=>e.key).join(`_`)]);let ke=Nm(()=>{let e=Xh(C),t=Xh(w),n=Xh(T);I([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=Xh(k);B(r),H(Xh(O));let i=Xh(D);R([i[0]-r[0],i[1]-r[1]]),Oe()}),Ae=S.slice(0,me),je=S.slice(he+1),Me=[...Ae,...je],Ne=G.get(o),{style:Pe}=Dte({activeTabOffset:Ne,horizontal:A,indicator:v,rtl:s});(0,h.useEffect)(()=>{ge()},[o,ae,oe,Fm(Ne),Fm(G),A]),(0,h.useEffect)(()=>{ke()},[s]);let Fe=!!Me.length,Le=`${x}-nav-wrap`,Re,ze,Be,Ve;return A?s?(ze=j>0,Re=j!==oe):(Re=j<0,ze=j!==ae):(Be=N<0,Ve=N!==ae),h.createElement(El,{onResize:ke},h.createElement(`div`,{ref:Ie(t,C),role:`tablist`,"aria-orientation":A?`horizontal`:`vertical`,className:m(`${x}-nav`,n,y?.header),style:{...b?.header,...r},onKeyDown:()=>{de()}},h.createElement(zm,{ref:w,position:`left`,extra:c,prefixCls:x}),h.createElement(El,{onResize:ke},h.createElement(`div`,{className:m(Le,{[`${Le}-ping-left`]:Re,[`${Le}-ping-right`]:ze,[`${Le}-ping-top`]:Be,[`${Le}-ping-bottom`]:Ve}),ref:E},h.createElement(El,{onResize:ke},h.createElement(`div`,{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${j}px, ${N}px)`,transition:le?`none`:void 0}},De,h.createElement(Rm,{ref:k,prefixCls:x,locale:u,editable:l,style:{...De.length===0?void 0:Ee,visibility:Fe?`hidden`:null}}),h.createElement(`div`,{className:m(`${x}-ink-bar`,y?.indicator,{[`${x}-ink-bar-animated`]:a.inkBar}),style:{...Pe,...b?.indicator}}))))),h.createElement(dne,Yh({},e,{removeAriaLabel:u?.removeAriaLabel,ref:O,prefixCls:x,tabs:Me,className:!Fe&&ie,popupStyle:b?.popup,tabMoving:!!le})),h.createElement(zm,{ref:T,position:`right`,extra:c,prefixCls:x})))}),mne=({renderTabBar:e,...t})=>e?e(t,Qh):h.createElement(Qh,t),hne=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=h.Children.count(c)>0;return h.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:m(n,o&&`${n}-active`,r),ref:t},c)});function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$h.apply(this,arguments)}var gne=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,bodyStyle:o,bodyClassName:s,contentStyle:c,contentClassName:l}=e,{prefixCls:u,tabs:d}=h.useContext(Dm),f=r.tabPane,p=`${u}-body`,g=`${u}-content`;return h.createElement(`div`,{className:m(`${p}-holder`)},h.createElement(`div`,{className:m(p,`${p}-${i}`,{[`${p}-animated`]:f},s),style:o},d.map(e=>{let{key:i,forceRender:o,style:s,className:u,destroyOnHidden:d,...p}=e,_=i===n;return h.createElement(ar,$h({key:i,visible:_,forceRender:o,removeOnLeave:!!(a??d),leavedClassName:`${g}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>h.createElement(hne,$h({},p,{prefixCls:g,id:t,tabKey:i,animated:f,active:_,style:{...c,...s,...e},className:m(l,u,n),ref:r})))})))};function _ne(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function eg(){return eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eg.apply(this,arguments)}var tg=0,vne=h.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:g,locale:_,more:v,destroyOnHidden:y,renderTabBar:b,onChange:x,onTabClick:S,onTabScroll:C,getPopupContainer:w,popupClassName:T,indicator:E,classNames:D,styles:O,...k}=e,A=h.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),j=o===`rtl`,M=_ne(u),[N,P]=(0,h.useState)(!1);(0,h.useEffect)(()=>{P(Vt())},[]);let[F,I]=ve(c??A[0]?.key,s),[L,R]=(0,h.useState)(()=>A.findIndex(e=>e.key===F));(0,h.useEffect)(()=>{let e=A.findIndex(e=>e.key===F);e===-1&&(e=Math.max(0,Math.min(L,A.length-1)),I(A[e]?.key)),R(e)},[A.map(e=>e.key).join(`_`),F,L]);let[z,B]=ve(null,n);(0,h.useEffect)(()=>{n||(B(`rc-tabs-${tg}`),tg+=1)},[]);function V(e,t){S?.(e,t);let n=e!==F;I(e),n&&x?.(e)}let H={id:z,activeKey:F,animated:M,tabPosition:d,rtl:j,mobile:N},U={...H,editable:l,locale:_,more:v,tabBarGutter:f,onTabClick:V,onTabScroll:C,extra:g,style:p,getPopupContainer:w,popupClassName:m(T,D?.popup),indicator:E,styles:O,classNames:D},W=h.useMemo(()=>({tabs:A,prefixCls:r}),[A,r]);return h.createElement(Dm.Provider,{value:W},h.createElement(`div`,eg({ref:t,id:n,className:m(r,`${r}-${d}`,{[`${r}-mobile`]:N,[`${r}-editable`]:l,[`${r}-rtl`]:j},i)},k),h.createElement(mne,eg({},U,{renderTabBar:b})),h.createElement(gne,eg({destroyOnHidden:y},H,{bodyStyle:O?.body,bodyClassName:D?.body,contentStyle:O?.content,contentClassName:D?.content,animated:M}))))}),ng=e=>`${e}-css-var`,yne={motionAppear:!1,motionEnter:!0,motionLeave:!0};function bne(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...gr(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...yne,motionName:Lf(e,`switch`)}),n}function xne(e){return e.filter(e=>e)}function Sne(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):xne(tn(t).map(e=>{if(h.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var Cne=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[rf(e,`slide-up`),rf(e,`slide-down`)]]},wne=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${J(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ro(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:J(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:J(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadiusLG)} 0 0 ${J(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Tne=e=>{let{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${n}-dropdown`]:{...$a(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomLeft,
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomLeft,
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottom,
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottom,
&${t}-slide-down-enter${t}-slide-down-enter-active${n}-dropdown-placement-bottomRight,
&${t}-slide-down-appear${t}-slide-down-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Jd},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft,
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-top,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-top,
&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight,
&${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Xd},[`&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomLeft,
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottom,
&${t}-slide-down-leave${t}-slide-down-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Yd},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft,
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-top,
&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Zd},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${J(i)} 0`,overflowX:`hidden`,overflowY:`auto`,textAlign:{_skip_check_:!0,value:`left`},listStyleType:`none`,backgroundColor:e.colorBgContainer,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,"&-item":{...Qa,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${J(e.paddingXXS)} ${J(e.paddingSM)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}}}}}},Ene=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${J(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:[`height`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{marginLeft:{_skip_check_:!0,value:J(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-body-holder, > div > ${t}-body-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Dne=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${J(e.borderRadius)} ${J(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${J(e.borderRadius)} ${J(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${J(e.borderRadius)} ${J(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${J(e.borderRadius)} 0 0 ${J(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},One=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...io(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:ro(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},kne=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-body-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-body-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},Ane=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...$a(e),display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${t}-nav-wrap`]:{position:`relative`,display:`flex`,flex:`auto`,alignSelf:`stretch`,overflow:`hidden`,whiteSpace:`nowrap`,transform:`translate(0)`,"&::before, &::after":{position:`absolute`,zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${t}-nav-more`]:{position:`relative`,padding:n,background:`transparent`,border:0,color:e.colorText,"&::after":{position:`absolute`,right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:`translateY(100%)`,content:`''`}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${J(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...io(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...One(e),[`${t}-body`]:{position:`relative`,width:`100%`},[`${t}-body-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-content`]:{...io(e),"&-hidden":{display:`none`}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:`auto`}}}}}},jne=hc(`Tabs`,e=>{let t=Bo(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${J(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${J(e.horizontalItemGutter)}`});return[Dne(t),kne(t),Ene(t),Tne(t),wne(t),Ane(t),Cne(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Mne=()=>null,rg=h.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:g,items:_,animated:v,style:y,indicatorSize:b,indicator:x,classNames:S,styles:C,destroyInactiveTabPane:w,destroyOnHidden:T,tabPlacement:E,tabPosition:D,...O}=e,{prefixCls:k}=O,{getPrefixCls:A,direction:j,getPopupContainer:M,className:N,style:P,classNames:F,styles:I}=Rr(`tabs`),{tabs:L}=h.useContext(Fr),R=A(`tabs`,k),z=ng(R),[B,V]=jne(R,z),H=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:H.current}));let U;n===`editable-card`&&(U={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??L?.removeIcon??h.createElement(ae,null),addIcon:(l??L?.addIcon)||h.createElement(Em,null),showAdd:s!==!0});let W=A(),G=Wu(a),K=Sne(_,g),q=bne(R,v),ee={align:x?.align??L?.indicator?.align,size:x?.size??b??L?.indicator?.size??L?.indicatorSize},te=h.useMemo(()=>{let e=E??D??void 0,t=j===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[E,D,j]),ne={...e,size:G,tabPlacement:te,items:K},re=Er(P),ie=Er(y),[oe,se]=Or([F,S],[I,re,C,ie],{props:ne},{popup:{_default:`root`}});return h.createElement(vne,{ref:H,direction:j,getPopupContainer:M,...O,items:K,className:m({[`${R}-large`]:G===`large`,[`${R}-small`]:G===`small`,[`${R}-card`]:[`card`,`editable-card`].includes(n),[`${R}-editable-card`]:n===`editable-card`,[`${R}-centered`]:c},N,r,i,oe.root,B,V,z),classNames:{...oe,popup:m(p,B,V,z,oe.popup?.root)},styles:se,style:se.root,editable:U,more:{icon:L?.more?.icon??L?.moreIcon??d??h.createElement(wm,null),transitionName:`${W}-slide-up`,...f},prefixCls:R,animated:q,indicator:ee,destroyOnHidden:T??w,tabPosition:te})});rg.TabPane=Mne;var ig=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=h.useContext(Fr),a=i(`card`,e),o=m(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return h.createElement(`div`,{...r,className:o})},Nne=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${J(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`,...no(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...Qa,[`
> ${n}-typography,
> ${n}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},Pne=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
${J(i)} 0 0 0 ${n},
0 ${J(i)} 0 0 ${n},
${J(i)} ${J(i)} 0 0 ${n},
${J(i)} 0 0 0 ${n} inset,
0 ${J(i)} 0 0 ${n} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},Fne=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${J(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`,...no(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:J(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:J(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${a}`}}}},Ine=e=>({margin:`${J(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...no(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...Qa},"&-description":{color:e.colorTextDescription}}),Lne=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${J(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${J(e.padding)} ${J(i)}`}}},Rne=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},zne=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...$a(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Nne(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:Pne(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Fne(e),[`${t}-meta`]:Ine(e)},[`${t}-bordered`]:{border:`${J(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Lne(e),[`${t}-loading`]:Rne(e),[`${t}-rtl`]:{direction:`rtl`}}},Bne=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${J(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},Vne=hc(`Card`,e=>{let t=Bo(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[zne(t),Bne(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),Hne=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return h.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return h.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},h.createElement(`span`,null,e))}))},Une=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:g,cover:_,actions:v,tabList:y,children:b,activeTabKey:x,defaultActiveTabKey:S,tabBarExtraContent:C,hoverable:w,tabProps:T={},classNames:E,styles:D,...O}=e,{getPrefixCls:k,direction:A,className:j,style:M,classNames:N,styles:P}=Rr(`card`),[F]=pm(`card`,f,d),I=Wu(p),L={...e,size:I,variant:F},R=Er(M),z=Er(a),[B,V]=Or([N,E],[P,R,D,z],{props:L}),H=t=>{e.onTabChange?.(t)},U=h.useMemo(()=>tn(b),[b]),W=h.useMemo(()=>U.some(e=>h.isValidElement(e)&&e.type===ig),[U]),G=k(`card`,n),[K,q]=Vne(G),ee=h.createElement(wte,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),te=x!==void 0,ne={...T,[te?`activeKey`:`defaultActiveKey`]:te?x:S,tabBarExtraContent:C},re,ie=I===`small`?I:`large`,ae=y?h.createElement(rg,{size:ie,...ne,className:`${G}-head-tabs`,onChange:H,items:y.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ae){let e=m(`${G}-head`,B.header),t=m(`${G}-head-title`,B.title),n=m(`${G}-extra`,B.extra),r={...s,...V.header};re=h.createElement(`div`,{className:e,style:r},h.createElement(`div`,{className:`${G}-head-wrapper`},l&&h.createElement(`div`,{className:t,style:V.title},l),o&&h.createElement(`div`,{className:n,style:V.extra},o)),ae)}let oe=m(`${G}-cover`,B.cover),se=_?h.createElement(`div`,{className:oe,style:V.cover},_):null,ce=m(`${G}-body`,B.body),le={...c,...V.body},ue=u||U.length?h.createElement(`div`,{className:ce,style:le},u?ee:b):null,de=m(`${G}-actions`,B.actions),fe=v?.length?h.createElement(Hne,{actionClasses:de,actionStyle:V.actions,actions:v}):null,pe=Ht(O,[`onTabChange`]),me=m(G,j,{[`${G}-loading`]:u,[`${G}-bordered`]:F!==`borderless`,[`${G}-hoverable`]:w,[`${G}-contain-grid`]:W,[`${G}-contain-tabs`]:y?.length,[`${G}-small`]:I===`small`,[`${G}-type-${g}`]:!!g,[`${G}-rtl`]:A===`rtl`},r,i,K,q,B.root),he={...V.root};return h.createElement(`div`,{ref:t,...pe,className:me,style:he},re,se,ue,fe)}),Wne=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:g}=Rr(`cardMeta`),_=`${u(`card`,t)}-meta`,v=Er(f),y=Er(o),[b,x]=Or([p,s],[g,v,c,y],{props:e}),S=m(_,n,d,b.root),C={...x.root},w=m(`${_}-avatar`,b.avatar),T=m(`${_}-title`,b.title),E=m(`${_}-description`,b.description),D=m(`${_}-section`,b.section),O=r?h.createElement(`div`,{className:w,style:x.avatar},r):null,k=i?h.createElement(`div`,{className:T,style:x.title},i):null,A=a?h.createElement(`div`,{className:E,style:x.description},a):null,j=k||A?h.createElement(`div`,{className:D,style:x.section},k,A):null;return h.createElement(`div`,{...l,className:S,style:C},O,j)},ag=Une;ag.Grid=ig,ag.Meta=Wne;function og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},og.apply(this,arguments)}var sg=(0,h.forwardRef)((e,t)=>{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onChange:u,...d}=e,f=(0,h.useRef)(null),p=(0,h.useRef)(null),[g,_]=ve(s,a);(0,h.useImperativeHandle)(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:p.current}));let v=m(n,r,{[`${n}-checked`]:g,[`${n}-disabled`]:o});return h.createElement(`span`,{className:v,title:l,style:i,ref:p},h.createElement(`input`,og({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||_(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!g,type:c})))}),cg=h.createContext(null),Gne=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`,a=`@media (hover: hover) and (pointer: fine)`;return[{[`${t}-group`]:{...$a(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...$a(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0}},[t]:{...$a(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${J(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...af(),"&:after":{boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${J(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:`rotate(45deg) scale(0) translate(-50%,-50%)`,opacity:0,content:`""`,transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`,...af()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:ro(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[a]:{[`
${i}:not(${i}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...af()},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`},[a]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${i}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function lg(e,t){return Gne(Bo(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var ug=hc(`Checkbox`,(e,{prefixCls:t})=>[lg(t,e)]);function dg(e){let t=h.useRef(null),n=()=>{en.cancel(t.current),t.current=null};return[()=>{n(),t.current=en(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var fg=h.forwardRef((e,t)=>{let{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:o,skipGroup:s=!1,disabled:c,rootClassName:l,className:u,style:d,classNames:f,styles:p,name:g,value:_,checked:v,defaultChecked:y,onChange:b,...x}=e,{getPrefixCls:S,direction:C,className:w,style:T,classNames:E,styles:D}=Rr(`checkbox`),O=h.useContext(cg),{isFormItemInput:k}=h.useContext(fm),A=h.useContext(mu),j=(O?.disabled||c)??A,[M,N]=ve(y,v),P=M,F=fe(e=>{N(e.target.checked),b?.(e),!s&&O?.toggleOption&&O.toggleOption({label:r,value:_})});O&&!s&&(P=O.value.includes(_));let I=h.useRef(null),L=Ie(t,I);h.useEffect(()=>{if(!(s||!O))return O.registerValue(_),()=>{O.cancelValue(_)}},[_,s]),h.useEffect(()=>{I.current?.input&&(I.current.input.indeterminate=i)},[i]);let R=S(`checkbox`,n),z=ng(R),[B,V]=ug(R,z),H={...x},U={...e,indeterminate:i,disabled:j,checked:P},W=Er(T),G=Er(d),[K,q]=Or([E,f],[D,W,p,G],{props:U}),ee=m(`${R}-wrapper`,{[`${R}-rtl`]:C===`rtl`,[`${R}-wrapper-checked`]:P,[`${R}-wrapper-disabled`]:j,[`${R}-wrapper-in-form-item`]:k},w,u,K.root,l,V,z,B),te=m(K.icon,{[`${R}-indeterminate`]:i},Iu,B),[ne,re]=dg(H.onClick);return h.createElement(Uu,{component:`Checkbox`,disabled:j},h.createElement(`label`,{className:ee,style:q.root,onMouseEnter:a,onMouseLeave:o,onClick:ne},h.createElement(sg,{...H,name:!s&&O?O.name:g,checked:P,onClick:re,onChange:F,prefixCls:R,className:te,style:q.icon,disabled:j,ref:L,value:_}),pr(r)&&h.createElement(`span`,{className:m(`${R}-label`,K.label),style:q.label},r)))}),Kne=h.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:u=`group`,...d}=e,{getPrefixCls:f,direction:p}=h.useContext(Fr),[g,_]=h.useState(d.value||n||[]),[v,y]=h.useState([]);h.useEffect(()=>{`value`in d&&_(d.value||[])},[d.value]);let b=h.useMemo(()=>i.map(e=>typeof e==`string`||mr(e)?{label:e,value:e}:e),[i]),x=e=>{y(t=>t.filter(t=>t!==e))},S=e=>{y(t=>[].concat(dr(t),[e]))},C=e=>{let t=g.indexOf(e.value),n=dr(g);t===-1?n.push(e.value):n.splice(t,1),`value`in d||_(n),l?.(n.filter(e=>v.includes(e)).sort((e,t)=>b.findIndex(t=>t.value===e)-b.findIndex(e=>e.value===t)))},w=f(`checkbox`,a),T=`${w}-group`,E=ng(w),[D,O]=ug(w,E),k=Ht(d,[`value`,`disabled`]),A=i.length?b.map(e=>h.createElement(fg,{prefixCls:w,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:m(`${T}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,j=h.useMemo(()=>({toggleOption:C,value:g,disabled:d.disabled,name:d.name,registerValue:S,cancelValue:x}),[C,g,d.disabled,d.name,S,x]),M=m(T,{[`${T}-rtl`]:p===`rtl`},o,s,O,E,D);return h.createElement(`div`,{className:M,style:c,role:u,...k,ref:t},h.createElement(cg.Provider,{value:j},A))}),pg=fg;pg.Group=Kne,pg.__ANT_CHECKBOX=!0;var mg=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],hg=[].concat(mg).reverse(),qne=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Jne=e=>{let t=e,n=[].concat(mg).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},Yne=()=>{let[,e]=mc(),t=qne(Jne(e));return h.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);_r(i.addEventListener)&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];_r(t?.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])},gg=(0,h.createContext)({}),Xne=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,flexFlow:`row wrap`,minWidth:0,"&::before, &::after":{display:`flex`},"&-no-wrap":{flexWrap:`nowrap`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`},"&-space-between":{justifyContent:`space-between`},"&-space-around":{justifyContent:`space-around`},"&-space-evenly":{justifyContent:`space-evenly`},"&-top":{alignItems:`flex-start`},"&-middle":{alignItems:`center`},"&-bottom":{alignItems:`flex-end`}}}},Zne=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},Qne=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=vc(i,`grid`),[,s]=vc(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},_g=(e,t)=>Qne(e,t),$ne=(e,t,n)=>({[`@media (min-width: ${J(t)})`]:{..._g(e,n)}}),ere=()=>({}),tre=()=>({}),nre=hc(`Grid`,Xne,ere),vg=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),rre=hc(`Grid`,e=>{let t=Bo(e,{gridColumns:24}),n=vg(t);return delete n.xs,[Zne(t),_g(t,``),_g(t,`-xs`),Object.keys(n).map(e=>$ne(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},tre);function yg(e){return e===`auto`?`1 1 auto`:mr(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var bg=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Fr),{gutter:i,wrap:a}=h.useContext(gg),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:g,style:_,...v}=e,y=n(`col`,o),b=n(),[x,S]=rre(y),[C]=vc(b,`col`),w={},T={};hg.forEach(t=>{let n={},i=e[t];mr(i)?n.span=i:gr(i)&&(n=i||{}),delete v[t],T={...T,[`${y}-${t}-${n.span}`]:fr(n.span),[`${y}-${t}-order-${n.order}`]:n.order||n.order===0,[`${y}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${y}-${t}-push-${n.push}`]:n.push||n.push===0,[`${y}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${y}-rtl`]:r===`rtl`},n.flex&&(T[`${y}-${t}-flex`]=!0,w[C(`${t}-flex`)]=yg(n.flex))});let E=m(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${c}`]:c,[`${y}-offset-${l}`]:l,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},f,T,x,S),D={};return i?.[0]&&(D.paddingInline=mr(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),g&&(D.flex=yg(g),a===!1&&!D.minWidth&&(D.minWidth=0)),h.createElement(`div`,{...v,style:{...D,..._,...w},className:E,ref:t},p)});function xg(e=!0,t={}){let n=(0,h.useRef)(t),[,r]=ed(),i=Yne();return he(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}function ire(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(gr(e))for(let r=0;r<mg.length;r++){let a=mg[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var Sg=(e,t)=>{let[n,r]=h.useState(()=>hr(e)?e:``),i=()=>{if(hr(e)&&r(e),gr(e))for(let n=0;n<mg.length;n++){let i=mg[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return h.useEffect(()=>{i()},[JSON.stringify(e),t]),n},Cg=h.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=h.useContext(Fr),p=xg(!0,null),g=Sg(i,p),_=Sg(r,p),v=d(`row`,n),[y,b]=nre(v),x=ire(c,p),S=m(v,{[`${v}-no-wrap`]:l===!1,[`${v}-${_}`]:_,[`${v}-${g}`]:g,[`${v}-rtl`]:f===`rtl`},a,y,b),C={};x?.[0]&&(C.marginInline=mr(x[0])?`${x[0]/-2}px`:`calc(${x[0]} / -2)`);let[w,T]=x;C.rowGap=T;let E=h.useMemo(()=>({gutter:[w,T],wrap:l}),[w,T,l]);return h.createElement(gg.Provider,{value:E},h.createElement(`div`,{...u,className:S,style:{...C,...o},ref:t},s))}),wg=bg,are=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),ore=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,`day`).add(e,`day`)}}}))})),sre=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),cre=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),lre=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),ure=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),dre=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Tg=l(are()),fre=l(ore()),pre=l(sre()),mre=l(cre()),hre=l(lre()),gre=l(ure()),_re=l(dre());Tg.default.extend(_re.default),Tg.default.extend(gre.default),Tg.default.extend(fre.default),Tg.default.extend(pre.default),Tg.default.extend(mre.default),Tg.default.extend(hre.default),Tg.default.extend((e,t)=>{let n=t.prototype,r=n.format;n.format=function(e){let t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var vre={bn_BD:`bn-bd`,by_BY:`be`,en_GB:`en-gb`,en_US:`en`,fr_BE:`fr`,fr_CA:`fr-ca`,hy_AM:`hy-am`,kmr_IQ:`ku`,nl_BE:`nl-be`,pt_BR:`pt-br`,zh_CN:`zh-cn`,zh_HK:`zh-hk`,zh_TW:`zh-tw`},Eg=e=>vre[e]||e.split(`_`)[0],Dg=e=>!Tg.default.isDayjs(e)||e instanceof Tg.default?e:(0,Tg.default)(e.valueOf()),yre={getNow:()=>{let e=(0,Tg.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,Tg.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>Dg(e).endOf(`month`),getWeekDay:e=>{let t=Dg(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Dg(e).year(),getMonth:e=>Dg(e).month(),getDate:e=>Dg(e).date(),getHour:e=>Dg(e).hour(),getMinute:e=>Dg(e).minute(),getSecond:e=>Dg(e).second(),getMillisecond:e=>Dg(e).millisecond(),addYear:(e,t)=>Dg(e).add(t,`year`),addMonth:(e,t)=>Dg(e).add(t,`month`),addDate:(e,t)=>Dg(e).add(t,`day`),setYear:(e,t)=>Dg(e).year(t),setMonth:(e,t)=>Dg(e).month(t),setDate:(e,t)=>Dg(e).date(t),setHour:(e,t)=>Dg(e).hour(t),setMinute:(e,t)=>Dg(e).minute(t),setSecond:(e,t)=>Dg(e).second(t),setMillisecond:(e,t)=>Dg(e).millisecond(t),isAfter:(e,t)=>Dg(e).isAfter(Dg(t)),isValidate:e=>Dg(e).isValid(),locale:{getWeekFirstDay:e=>(0,Tg.default)().locale(Eg(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Dg(t).locale(Eg(e)).weekday(0),getWeek:(e,t)=>Dg(t).locale(Eg(e)).week(),getShortWeekDays:e=>(0,Tg.default)().locale(Eg(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,Tg.default)().locale(Eg(e)).localeData().monthsShort(),format:(e,t,n)=>Dg(t).locale(Eg(e)).format(n),parse:(e,t,n)=>{let r=Eg(e);for(let e=0;e<n.length;e+=1){let i=n[e],a=t;if(i.includes(`wo`)||i.includes(`Wo`)){let e=a.split(`-`)[0],t=a.split(`-`)[1],n=(0,Tg.default)(e,`YYYY`).startOf(`year`).locale(r);for(let e=0;e<=52;e+=1){let r=n.add(e,`week`);if(r.format(`Wo`)===t)return r}return null}let o=(0,Tg.default)(a,i,!0).locale(r);if(o.isValid())return o}return null}}};function Og(e){return t=>h.createElement(Pu,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,{...t}))}var kg=(e,t,n,r,i)=>Og(a=>{let{prefixCls:o,style:s}=a,c=h.useRef(null),[l,u]=h.useState(0),[d,f]=h.useState(0),[p,m]=ve(!1,a.open),{getPrefixCls:g}=h.useContext(Fr),_=g(r||`select`,o);h.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(_)}`:`.${_}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[_]);let v={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(v=n(v)),t&&(v={...v,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:l,position:`relative`,minWidth:d};return h.createElement(`div`,{ref:c,style:y},h.createElement(e,{...v}))}),bre=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z`}}]},name:`swap-right`,theme:`outlined`}}))());function Ag(){return Ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ag.apply(this,arguments)}var xre=h.forwardRef((e,t)=>h.createElement(W,Ag({},e,{ref:t,icon:bre.default})));function Sre(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var jg=h.createContext(null),Cre={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Mg({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=Cre,direction:u,visible:d,onClose:f}){let{prefixCls:p}=h.useContext(jg),g=`${p}-dropdown`,_=Sre(c,u===`rtl`);return h.createElement(ou,{showAction:[],hideAction:[`click`],popupPlacement:_,builtinPlacements:l,prefixCls:g,popupMotion:{motionName:i},popup:e,popupAlign:r,popupVisible:d,popupClassName:m(n,{[`${g}-range`]:s,[`${g}-rtl`]:u===`rtl`}),popupStyle:t,stretch:`minWidth`,getPopupContainer:a,onPopupVisibleChange:e=>{e||f()}},o)}function Ng(e,t,n=`0`){let r=String(e);for(;r.length<t;)r=`${n}${r}`;return r}function Pg(e){return e==null?[]:Array.isArray(e)?e:[e]}function Fg(e,t,n){let r=[...e];return r[t]=n,r}function Ig(e,t){let n={};return(t||Object.keys(e)).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function Lg(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function Rg(e,t,n){let r=n===void 0?t[t.length-1]:n,i=t.find(t=>e[t]);return r===i?void 0:e[i]}function zg(e){return Ig(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function Bg(e,t,n,r){let i=h.useMemo(()=>e||((e,r)=>{let i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}),[e,n,t]);return h.useCallback((e,t)=>i(e,{...t,range:r}),[i,r])}function Vg(e,t,n=[]){let[r,i]=h.useState([!1,!1]);return[h.useMemo(()=>r.map((r,i)=>{if(r)return!0;let a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1}),[e,r,t,n]),(e,t)=>{i(n=>Fg(n,t,e))}]}function Hg(e,t,n,r,i){let a=``,o=[];return e&&o.push(i?`hh`:`HH`),t&&o.push(`mm`),n&&o.push(`ss`),a=o.join(`:`),r&&(a+=`.SSS`),i&&(a+=` A`),a}function wre(e,t,n,r,i,a){let{fieldDateTimeFormat:o,fieldDateFormat:s,fieldTimeFormat:c,fieldMonthFormat:l,fieldYearFormat:u,fieldWeekFormat:d,fieldQuarterFormat:f,yearFormat:p,cellYearFormat:m,cellQuarterFormat:h,dayFormat:g,cellDateFormat:_}=e,v=Hg(t,n,r,i,a);return{...e,fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`}}function Ug(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return h.useMemo(()=>wre(e,n,r,i,a,o),[e,n,r,i,a,o])}function Wg(e,t,n){return n??t.some(t=>e.includes(t))}var Tre=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function Ere(e){let t=Ig(e,Tre),{format:n,picker:r}=e,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=typeof i==`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function Dre(e){return e&&typeof e==`string`}function Ore(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function kre(e,t,n,r,i){let a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){let e=[a,o,s].some(e=>e===!1),t=[a,o,s].some(e=>e===!0),n=e?!0:!t;a??=n,o??=n,s??=n}return[a,o,s,i]}function Are(e){let{showTime:t}=e,[n,r]=Ere(e),i=t&&typeof t==`object`?t:{},a={defaultOpenValue:i.defaultOpenValue||i.defaultValue,...n,...i},{showMillisecond:o}=a,{showHour:s,showMinute:c,showSecond:l}=a,u=Ore(s,c,l,o);return[s,c,l]=kre(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function jre(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=Lg(e,i,null),s=[t,n];for(let e=0;e<s.length;e+=1){let t=Pg(s[e])[0];if(Dre(t)){o=t;break}}let{showHour:c,showMinute:l,showSecond:u,showMillisecond:d}=a,{use12Hours:f}=a,p=Wg(o,[`a`,`A`,`LT`,`LLL`,`LTS`],f),m=Ore(c,l,u,d);m||(c=Wg(o,[`H`,`h`,`k`,`LT`,`LLL`]),l=Wg(o,[`m`,`LT`,`LLL`]),u=Wg(o,[`s`,`LTS`]),d=Wg(o,[`SSS`])),[c,l,u]=kre(m,c,l,u,d);let h=t||Hg(c,l,u,d,p);return{...a,format:h,showHour:c,showMinute:l,showSecond:u,showMillisecond:d,use12Hours:p}}return null}function Mre(e,t,n){return t===!1?null:(t&&typeof t==`object`?t:{}).clearIcon||n||h.createElement(`span`,{className:`${e}-clear-btn`})}function Gg(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Kg(e,t,n){return Gg(t,n,()=>Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function qg(e,t,n){return Gg(t,n,()=>e.getYear(t)===e.getYear(n))}function Nre(e,t){return Math.floor(e.getMonth(t)/3)+1}function Pre(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&Nre(e,t)===Nre(e,n))}function Jg(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function Yg(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&Jg(e,t,n)&&e.getDate(t)===e.getDate(n))}function Fre(e,t,n){return Gg(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function Ire(e,t,n){return Gg(t,n,()=>Yg(e,t,n)&&Fre(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function Xg(e,t,n,r){return Gg(n,r,()=>qg(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function Zg(e,t,n,r,i){switch(i){case`date`:return Yg(e,n,r);case`week`:return Xg(e,t.locale,n,r);case`month`:return Jg(e,n,r);case`quarter`:return Pre(e,n,r);case`year`:return qg(e,n,r);case`decade`:return Kg(e,n,r);case`time`:return Fre(e,n,r);default:return Ire(e,n,r)}}function Qg(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function $g(e,t,n,r,i){return Zg(e,t,n,r,i)?!0:e.isAfter(n,r)}function Lre(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function e_(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function t_(e,t,n){let r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach((t,a)=>{r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function Rre(e,t,n,r,i){return fe((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!Zg(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!Zg(e,t,i,a,o.type)))}function zre(e,t,n){return h.useMemo(()=>{let r=Pg(Lg(e,t,n)),i=r[0],a=typeof i==`object`&&i.type===`mask`?i.format:null;return[r.map(e=>typeof e==`string`||typeof e==`function`?e:e.format),a]},[e,t,n])}function Bre(e,t,n){return typeof e[0]==`function`||n?!0:t}function Vre(e,t,n,r){return fe((i,a)=>{let o={type:t,...a};if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){let t=a&&a.activeIndex===1?`end`:`start`,{disabledHours:n,disabledMinutes:s,disabledSeconds:c,disabledMilliseconds:l}=r.disabledTime?.(i,t,{from:o.from})||{},{disabledHours:u,disabledMinutes:d,disabledSeconds:f}=r,p=n||u,m=s||d,h=c||f,g=e.getHour(i),_=e.getMinute(i),v=e.getSecond(i),y=e.getMillisecond(i);if(p&&p().includes(g)||m&&m(g).includes(_)||h&&h(g,_).includes(v)||l&&l(g,_,v).includes(y))return!0}return!1})}function n_(e,t=!1){return h.useMemo(()=>{let n=e&&Pg(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function Hre(e,t){let{generateConfig:n,locale:r,picker:i=`date`,prefixCls:a=`rc-picker`,previewValue:o=`hover`,styles:s={},classNames:c={},order:l=!0,components:u={},inputRender:d,allowClear:f,clearIcon:p,needConfirm:m,multiple:g,format:_,inputReadOnly:v,disabledDate:y,minDate:b,maxDate:x,showTime:S,value:C,defaultValue:w,pickerValue:T,defaultPickerValue:E}=e,D=n_(C),O=n_(w),k=n_(T),A=n_(E),j=i===`date`&&S?`datetime`:i,M=j===`time`||j===`datetime`,N=M||g,P=m??M,[F,I,L,R]=Are(e),z=Ug(r,I),B=h.useMemo(()=>jre(j,L,R,F,z),[j,L,R,F,z]),V=h.useMemo(()=>({...e,previewValue:o,prefixCls:a,locale:z,picker:i,styles:s,classNames:c,order:l,components:{input:d,...u},clearIcon:Mre(a,f,p),showTime:B,value:D,defaultValue:O,pickerValue:k,defaultPickerValue:A,...t?.()}),[e]),[H,U]=zre(j,z,_),W=Bre(H,v,g),G=Rre(n,r,y,b,x),K=Vre(n,i,G,B);return[h.useMemo(()=>({...V,needConfirm:P,inputReadOnly:W,disabledDate:G}),[V,P,W,G]),j,N,H,U,K]}function Ure(e,t,n){let[r,i]=ve(t,e),[,a]=h.useState({}),o=fe(e=>{i(e),a({})}),s=h.useRef(e),c=h.useRef(),l=()=>{en.cancel(c.current)},u=fe(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),d=fe((e,t)=>{l(),s.current=e,e||t?u():c.current=en(u)});return h.useEffect(()=>l,[]),[r,d]}function Wre(e,t,n=[],r){let[i,a]=Ure(n.every(e=>e)?!1:e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function Gre(e){let t=h.useRef();return h.useImperativeHandle(e,()=>({nativeElement:t.current?.nativeElement,focus:e=>{t.current?.focus(e)},blur:()=>{t.current?.blur()}})),t}function Kre(e,t){return h.useMemo(()=>e||(t?(Lt(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function r_(e,t,n=1){let r=h.useRef(t);r.current=t,ge(()=>{if(e)r.current(e);else{let t=en(()=>{r.current(e)},n);return()=>{en.cancel(t)}}},[e])}function qre(e,t=[],n=!1){let[r,i]=h.useState(0),[a,o]=h.useState(!1),s=h.useRef([]),c=h.useRef(null),l=h.useRef(null),u=e=>{c.current=e};return r_(a||n,()=>{a||(s.current=[],u(null))}),h.useEffect(()=>{a&&s.current.push(r)},[a,r]),[a,e=>{o(e)},e=>(e&&(l.current=e),l.current),r,i,n=>{let r=s.current,i=new Set(r.filter(e=>n[e]||t[e])),a=+(r[r.length-1]===0);return i.size>=2||e[a]?null:a},s.current,u,e=>c.current===e]}function Jre(e,t,n,r,i,a){let o=n[n.length-1];return(s,c)=>{let[l,u]=e,d={...c,from:Rg(e,n)};return o===1&&t[0]&&l&&!Zg(r,i,l,s,d.type)&&r.isAfter(l,s)||o===0&&t[1]&&u&&!Zg(r,i,u,s,d.type)&&r.isAfter(s,u)?!0:a?.(s,d)}}function i_(e,t,n,r){switch(t){case`date`:case`week`:return e.addMonth(n,r);case`month`:case`quarter`:return e.addYear(n,r);case`year`:return e.addYear(n,r*10);case`decade`:return e.addYear(n,r*100);default:return n}}var a_=[];function Yre(e,t,n,r,i,a,o,s,c=a_,l=a_,u=a_,d,f,p){let m=o===`time`,g=a||0,_=t=>{let r=e.getNow();return m&&(r=t_(e,r)),c[t]||n[t]||r},[v,y]=l,[b,x]=ve(()=>_(0),v),[S,C]=ve(()=>_(1),y),w=h.useMemo(()=>{let t=[b,S][g];return m?t:t_(e,t,u[g])},[m,b,S,g,e,u]),T=(n,i=`panel`)=>{let a=[x,C][g];a(n);let s=[b,S];s[g]=n,d&&(!Zg(e,t,b,s[0],o)||!Zg(e,t,S,s[1],o))&&d(s,{source:i,range:g===1?`end`:`start`,mode:r})},E=(n,r)=>{if(s){let i={date:`month`,week:`month`,month:`year`,quarter:`year`}[o];if(i&&!Zg(e,t,n,r,i)||o===`year`&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return i_(e,o,r,-1)}return r},D=h.useRef(null);return he(()=>{if(i&&!c[g]){let t=m?null:e.getNow();if(D.current!==null&&D.current!==g?t=[b,S][g^1]:n[g]?t=g===0?n[0]:E(n[0],n[1]):n[g^1]&&(t=n[g^1]),t){f&&e.isAfter(f,t)&&(t=f);let n=s?i_(e,o,t,1):t;p&&e.isAfter(n,p)&&(t=s?i_(e,o,p,-1):p),T(t,`reset`)}}},[i,g,n[g]]),h.useEffect(()=>{i?D.current=g:D.current=null},[i,g]),he(()=>{i&&c&&c[g]&&T(c[g],`reset`)},[i,g]),[w,T]}function Xre(e,t){let n=h.useRef(e),[,r]=h.useState({}),i=e=>e&&t!==void 0?t:n.current;return[i,e=>{n.current=e,r({})},i(!0)]}var Zre=[];function Qre(e,t,n){return[r=>r.map(r=>e_(r,{generateConfig:e,locale:t,format:n[0]})),(t,n)=>{let r=Math.max(t.length,n.length),i=-1;for(let a=0;a<r;a+=1){let r=t[a]||null,o=n[a]||null;if(r!==o&&!Ire(e,r,o)){i=a;break}}return[i<0,i!==0]}]}function $re(e,t){return[...e].sort((e,n)=>t.isAfter(e,n)?1:-1)}function eie(e){let[t,n]=Xre(e),r=fe(()=>{n(e)});return h.useEffect(()=>{r()},[e]),[t,n]}function tie(e,t,n,r,i,a,o,s,c){let[l,u]=ve(a,o),d=l||Zre,[f,p]=eie(d),[m,h]=Qre(e,t,n);return[d,u,f,fe(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=$re(n.filter(e=>e),e));let[a,o]=h(f(),n);if(!a&&(p(n),s)){let e=m(n);s(n,e,{range:o?`end`:`start`})}}),()=>{c&&c(f())}]}function nie(e,t,n,r,i,a,o,s,c,l){let{generateConfig:u,locale:d,picker:f,onChange:p,allowEmpty:m,order:g}=e,_=a.some(e=>e)?!1:g,[v,y]=Qre(u,d,o),[b,x]=Xre(t),S=fe(()=>{x(t)});h.useEffect(()=>{S()},[t]);let C=fe(e=>{let r=e===null,o=[...e||b()];if(r){let e=Math.max(a.length,o.length);for(let t=0;t<e;t+=1)a[t]||(o[t]=null)}_&&o[0]&&o[1]&&(o=$re(o,u)),i(o);let[s,c]=o,h=!s,x=!c,S=m?(!h||m[0])&&(!x||m[1]):!0,C=!g||h||x||Zg(u,d,s,c,f)||u.isAfter(c,s),w=(a[0]||!s||!l(s,{activeIndex:0}))&&(a[1]||!c||!l(c,{from:s,activeIndex:1})),T=r||S&&C&&w;if(T){n(o);let[e]=y(o,t);if(p&&!e){let e=o.every(e=>!e);p(r&&e?null:o,e?null:v(o))}}return T}),w=fe((e,t)=>{x(Fg(b(),e,r()[e])),t&&C()}),T=!s&&!c;return r_(!T,()=>{T&&(C(),i(t),S())},2),[w,C]}function rie(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function iie(e,t,n,r,i,a){let o=e;function s(e,t,n){let r=a[e](o),i=n.find(e=>e.value===r);if(!i||i.disabled){let e=n.filter(e=>!e.disabled),i=[...e].reverse().find(e=>e.value<=r)||e[0];i&&(r=i.value,o=a[t](o,r))}return r}let c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}function o_(){return[]}function s_(e,t,n=1,r=!1,i=[],a=2){let o=[],s=n>=1?n|0:1;for(let n=e;n<=t;n+=s){let e=i.includes(n);(!e||!r)&&o.push({label:Ng(n,a),value:n,disabled:e})}return o}function c_(e,t={},n){let{use12Hours:r,hourStep:i=1,minuteStep:a=1,secondStep:o=1,millisecondStep:s=100,hideDisabledOptions:c,disabledTime:l,disabledHours:u,disabledMinutes:d,disabledSeconds:f}=t||{},p=h.useMemo(()=>n||e.getNow(),[n,e]),m=h.useCallback(e=>{let t=l?.(e)||{};return[t.disabledHours||u||o_,t.disabledMinutes||d||o_,t.disabledSeconds||f||o_,t.disabledMilliseconds||o_]},[l,u,d,f]),[g,_,v,y]=h.useMemo(()=>m(p),[p,m]),b=h.useCallback((e,t,n,l)=>{let u=s_(0,23,i,c,e());return[r?u.map(e=>({...e,label:Ng(e.value%12||12,2)})):u,e=>s_(0,59,a,c,t(e)),(e,t)=>s_(0,59,o,c,n(e,t)),(e,t,n)=>s_(0,999,s,c,l(e,t,n),3)]},[c,i,r,s,a,o]),[x,S,C,w]=h.useMemo(()=>b(g,_,v,y),[b,g,_,v,y]);return[(t,n)=>{let r=()=>x,i=S,a=C,o=w;if(n){let[e,t,s,c]=m(n),[l,u,d,f]=b(e,t,s,c);r=()=>l,i=u,a=d,o=f}return iie(t,r,i,a,o,e)},x,S,C,w]}function aie(e){let{mode:t,internalMode:n,renderExtraFooter:r,showNow:i,showTime:a,onSubmit:o,onNow:s,invalid:c,needConfirm:l,generateConfig:u,disabledDate:d}=e,{prefixCls:f,locale:p,button:g=`button`,classNames:_,styles:v}=h.useContext(jg),y=u.getNow(),[b]=c_(u,a,y),x=r?.(t),S=d(y,{type:t}),C=()=>{S||s(b(y))},w=`${f}-now`,T=`${w}-btn`,E=i&&h.createElement(`li`,{className:w},h.createElement(`a`,{className:m(T,S&&`${T}-disabled`),"aria-disabled":S,onClick:C},n===`date`?p.today:p.now)),D=l&&h.createElement(`li`,{className:`${f}-ok`},h.createElement(g,{disabled:c,onClick:o},p.ok)),O=(E||D)&&h.createElement(`ul`,{className:`${f}-ranges`},E,D);return!x&&!O?null:h.createElement(`div`,{className:m(`${f}-footer`,_.popup.footer),style:v.popup.footer},x&&h.createElement(`div`,{className:`${f}-footer-extra`},x),O)}function oie(e,t,n){function r(r,i){let a=r.findIndex(r=>Zg(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var sie=h.createContext(null),l_=h.createContext(null);function u_(){return h.useContext(l_)}function d_(e,t){let{prefixCls:n,generateConfig:r,locale:i,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,values:f,pickerValue:p,onSelect:m,prevIcon:g,nextIcon:_,superPrevIcon:v,superNextIcon:y}=e,{classNames:b,styles:x}=h.useContext(sie),S=r.getNow();return[{now:S,values:f,pickerValue:p,prefixCls:n,classNames:b,styles:x,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:_,superPrevIcon:v,superNextIcon:y},S]}var f_=h.createContext({});function p_(e){let{rowNum:t,colNum:n,baseDate:r,getCellDate:i,prefixColumn:a,rowClassName:o,titleFormat:s,getCellText:c,getCellClassName:l,headerCells:u,cellSelection:d=!0,disabledDate:f}=e,{prefixCls:p,classNames:g,styles:_,panelType:v,now:y,disabledDate:b,cellRender:x,onHover:S,hoverValue:C,hoverRangeValue:w,generateConfig:T,values:E,locale:D,onSelect:O}=u_(),k=f||b,A=`${p}-cell`,{onCellDblClick:j}=h.useContext(f_),M=e=>E.some(t=>t&&Zg(T,D,e,t,v)),N=[];for(let e=0;e<t;e+=1){let t=[],u;for(let o=0;o<n;o+=1){let f=i(r,e*n+o),b=k?.(f,{type:v});o===0&&(u=f,a&&t.push(a(u)));let E=!1,N=!1,P=!1;if(d&&w){let[e,t]=w;E=Qg(T,e,t,f),N=Zg(T,D,f,e,v),P=Zg(T,D,f,t,v)}let F=s?e_(f,{locale:D,format:s,generateConfig:T}):void 0,I=h.createElement(`div`,{className:`${A}-inner`},c(f));t.push(h.createElement(`td`,{key:o,title:F,className:m(A,g.item,{[`${A}-disabled`]:b,[`${A}-hover`]:(C||[]).some(e=>Zg(T,D,f,e,v)),[`${A}-in-range`]:E&&!N&&!P,[`${A}-range-start`]:N,[`${A}-range-end`]:P,[`${p}-cell-selected`]:!w&&v!==`week`&&M(f),...l(f)}),style:_.item,onClick:()=>{b||O(f)},onDoubleClick:()=>{!b&&j&&j()},onMouseEnter:()=>{b||S?.(f)},onMouseLeave:()=>{b||S?.(null)}},x?x(f,{prefixCls:p,originNode:I,today:y,type:v,locale:D}):I))}N.push(h.createElement(`tr`,{key:e,className:o?.(u)},t))}return h.createElement(`div`,{className:m(`${p}-body`,g.body),style:_.body},h.createElement(`table`,{className:m(`${p}-content`,g.content),style:_.content},u&&h.createElement(`thead`,null,h.createElement(`tr`,null,u)),h.createElement(`tbody`,null,N)))}var m_={visibility:`hidden`};function h_(e){let{offset:t,superOffset:n,onChange:r,getStart:i,getEnd:a,children:o}=e,{prefixCls:s,classNames:c,styles:l,prevIcon:u=``,nextIcon:d=``,superPrevIcon:f=`«`,superNextIcon:p=`»`,minDate:g,maxDate:_,generateConfig:v,locale:y,pickerValue:b,panelType:x}=u_(),S=`${s}-header`,{hidePrev:C,hideNext:w,hideHeader:T}=h.useContext(f_),E=h.useMemo(()=>!g||!t||!a?!1:!$g(v,y,a(t(-1,b)),g,x),[g,t,b,a,v,y,x]),D=h.useMemo(()=>!g||!n||!a?!1:!$g(v,y,a(n(-1,b)),g,x),[g,n,b,a,v,y,x]),O=h.useMemo(()=>!_||!t||!i?!1:!$g(v,y,_,i(t(1,b)),x),[_,t,b,i,v,y,x]),k=h.useMemo(()=>!_||!n||!i?!1:!$g(v,y,_,i(n(1,b)),x),[_,n,b,i,v,y,x]),A=e=>{t&&r(t(e,b))},j=e=>{n&&r(n(e,b))};if(T)return null;let M=`${S}-prev-btn`,N=`${S}-next-btn`,P=`${S}-super-prev-btn`,F=`${S}-super-next-btn`;return h.createElement(`div`,{className:m(S,c.header),style:l.header},n&&h.createElement(`button`,{type:`button`,"aria-label":y.previousYear,onClick:()=>j(-1),tabIndex:-1,className:m(P,D&&`${P}-disabled`),disabled:D,style:C?m_:{}},f),t&&h.createElement(`button`,{type:`button`,"aria-label":y.previousMonth,onClick:()=>A(-1),tabIndex:-1,className:m(M,E&&`${M}-disabled`),disabled:E,style:C?m_:{}},u),h.createElement(`div`,{className:`${S}-view`},o),t&&h.createElement(`button`,{type:`button`,"aria-label":y.nextMonth,onClick:()=>A(1),tabIndex:-1,className:m(N,O&&`${N}-disabled`),disabled:O,style:w?m_:{}},d),n&&h.createElement(`button`,{type:`button`,"aria-label":y.nextYear,onClick:()=>j(1),tabIndex:-1,className:m(F,k&&`${F}-disabled`),disabled:k,style:w?m_:{}},p))}function g_(){return g_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g_.apply(this,arguments)}function __(e){let{prefixCls:t,panelName:n=`date`,locale:r,generateConfig:i,pickerValue:a,onPickerValueChange:o,onModeChange:s,mode:c=`date`,disabledDate:l,onSelect:u,onHover:d,showWeek:f}=e,p=`${t}-${n}-panel`,g=`${t}-cell`,_=c===`week`,[v,y]=d_(e,c),b=i.locale.getWeekFirstDay(r.locale),x=i.setDate(a,1),S=Lre(r.locale,i,x),C=i.getMonth(a),w=(f===void 0?_:f)?e=>{let t=l?.(e,{type:`week`});return h.createElement(`td`,{key:`week`,className:m(g,`${g}-week`,{[`${g}-disabled`]:t}),onClick:()=>{t||u(e)},onMouseEnter:()=>{t||d?.(e)},onMouseLeave:()=>{t||d?.(null)}},h.createElement(`div`,{className:`${g}-inner`},i.locale.getWeek(r.locale,e)))}:null,T=[],E=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);w&&T.push(h.createElement(`th`,{key:`empty`},h.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},r.week)));for(let e=0;e<7;e+=1)T.push(h.createElement(`th`,{key:e},E[(e+b)%7]));let D=(e,t)=>i.addDate(e,t),O=e=>e_(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),k=e=>({[`${t}-cell-in-view`]:Jg(i,e,a),[`${t}-cell-today`]:Yg(i,e,y)}),A=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),j=h.createElement(`button`,{type:`button`,"aria-label":r.yearSelect,key:`year`,onClick:()=>{s(`year`,a)},tabIndex:-1,className:`${t}-year-btn`},e_(a,{locale:r,format:r.yearFormat,generateConfig:i})),M=h.createElement(`button`,{type:`button`,"aria-label":r.monthSelect,key:`month`,onClick:()=>{s(`month`,a)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?e_(a,{locale:r,format:r.monthFormat,generateConfig:i}):A[C]),N=r.monthBeforeYear?[M,j]:[j,M];return h.createElement(l_.Provider,{value:v},h.createElement(`div`,{className:m(p,f&&`${p}-show-week`)},h.createElement(h_,{offset:e=>i.addMonth(a,e),superOffset:e=>i.addYear(a,e),onChange:o,getStart:e=>i.setDate(e,1),getEnd:e=>{let t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},N),h.createElement(p_,g_({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:S,headerCells:T,getCellDate:D,getCellText:O,getCellClassName:k,prefixColumn:w,cellSelection:!_}))))}var cie=1/3;function lie(e,t){let n=h.useRef(!1),r=h.useRef(null),i=h.useRef(null),a=()=>n.current,o=()=>{en.cancel(r.current),n.current=!1},s=h.useRef();return[fe(()=>{let a=e.current;if(i.current=null,s.current=0,a){let e=a.querySelector(`[data-value="${t}"]`),c=a.querySelector(`li`),l=()=>{o(),n.current=!0,s.current+=1;let{scrollTop:t}=a,u=c.offsetTop,d=e.offsetTop,f=d-u;if(d===0&&e!==c||!rt(a)){s.current<=5&&(r.current=en(l));return}let p=t+(f-t)*cie,m=Math.abs(f-p);if(i.current!==null&&i.current<m){o();return}if(i.current=m,m<=1){a.scrollTop=f,o();return}a.scrollTop=p,r.current=en(l)};e&&c&&l()}}),o,a]}var uie=300;function die(e){return e.map(({value:e,label:t,disabled:n})=>[e,t,n].join(`,`)).join(`;`)}function v_(e){let{units:t,value:n,optionalValue:r,type:i,onChange:a,onHover:o,onDblClick:s,changeOnScroll:c}=e,{prefixCls:l,cellRender:u,now:d,locale:f,classNames:p,styles:g}=u_(),_=`${l}-time-panel`,v=`${l}-time-panel-cell`,y=h.useRef(null),b=h.useRef(),x=()=>{clearTimeout(b.current)},[S,C,w]=lie(y,n??r);he(()=>(S(),x(),()=>{C(),x()}),[n,r,die(t)]);let T=e=>{x();let n=e.target;!w()&&c&&(b.current=setTimeout(()=>{let e=y.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(e=>e.offsetTop-r).map((e,r)=>t[r].disabled?2**53-1:Math.abs(e-n.scrollTop)),o=Math.min(...i),s=t[i.findIndex(e=>e===o)];s&&!s.disabled&&a(s.value)},uie))},E=`${_}-column`;return h.createElement(`ul`,{className:E,ref:y,"data-type":i,onScroll:T},t.map(({label:e,value:t,disabled:r})=>{let c=h.createElement(`div`,{className:`${v}-inner`},e);return h.createElement(`li`,{key:t,style:g.item,className:m(v,p.item,{[`${v}-selected`]:n===t,[`${v}-disabled`]:r}),onClick:()=>{r||a(t)},onDoubleClick:()=>{!r&&s&&s()},onMouseEnter:()=>{o(t)},onMouseLeave:()=>{o(null)},"data-value":t},u?u(t,{prefixCls:l,originNode:c,today:d,type:`time`,subType:i,locale:f}):c)}))}function y_(){return y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y_.apply(this,arguments)}function b_(e){return e<12}function fie(e){let{showHour:t,showMinute:n,showSecond:r,showMillisecond:i,use12Hours:a,changeOnScroll:o}=e,{prefixCls:s,classNames:c,styles:l,values:u,generateConfig:d,locale:f,onSelect:p,onHover:g=()=>{},pickerValue:_}=u_(),v=u?.[0]||null,{onCellDblClick:y}=h.useContext(f_),[b,x,S,C,w]=c_(d,e,v),T=e=>[v&&d[e](v),_&&d[e](_)],[E,D]=T(`getHour`),[O,k]=T(`getMinute`),[A,j]=T(`getSecond`),[M,N]=T(`getMillisecond`),P=E===null?null:b_(E)?`am`:`pm`,F=h.useMemo(()=>a?b_(E)?x.filter(e=>b_(e.value)):x.filter(e=>!b_(e.value)):x,[E,x,a]),I=(e,t)=>{let n=e.filter(e=>!e.disabled);return t??n?.[0]?.value},L=I(x,E),R=h.useMemo(()=>S(L),[S,L]),z=I(R,O),B=h.useMemo(()=>C(L,z),[C,L,z]),V=I(B,A),H=h.useMemo(()=>w(L,z,V),[w,L,z,V]),U=I(H,M),W=h.useMemo(()=>{if(!a)return[];let e=d.getNow(),t=d.setHour(e,9),n=d.setHour(e,15),r=(e,t)=>{let{cellMeridiemFormat:n}=f;return n?e_(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:x.every(e=>e.disabled||!b_(e.value))},{label:r(n,`PM`),value:`pm`,disabled:x.every(e=>e.disabled||b_(e.value))}]},[x,a,d,f]),G=e=>{p(b(e))},K=h.useMemo(()=>{let e=v||_||d.getNow(),t=e=>e!=null;return t(E)?(e=d.setHour(e,E),e=d.setMinute(e,O),e=d.setSecond(e,A),e=d.setMillisecond(e,M)):t(D)?(e=d.setHour(e,D),e=d.setMinute(e,k),e=d.setSecond(e,j),e=d.setMillisecond(e,N)):t(L)&&(e=d.setHour(e,L),e=d.setMinute(e,z),e=d.setSecond(e,V),e=d.setMillisecond(e,U)),e},[v,_,E,O,A,M,L,z,V,U,D,k,j,N,d]),q=(e,t)=>e===null?null:d[t](K,e),ee=e=>q(e,`setHour`),te=e=>q(e,`setMinute`),ne=e=>q(e,`setSecond`),re=e=>q(e,`setMillisecond`),ie=e=>e===null?null:e===`am`&&!b_(E)?d.setHour(K,E-12):e===`pm`&&b_(E)?d.setHour(K,E+12):K,ae=e=>{G(ee(e))},oe=e=>{G(te(e))},se=e=>{G(ne(e))},ce=e=>{G(re(e))},le=e=>{G(ie(e))},ue=e=>{g(ee(e))},de=e=>{g(te(e))},fe=e=>{g(ne(e))},pe=e=>{g(re(e))},me=e=>{g(ie(e))},he={onDblClick:y,changeOnScroll:o};return h.createElement(`div`,{className:m(`${s}-content`,c.content),style:l.content},t&&h.createElement(v_,y_({units:F,value:E,optionalValue:D,type:`hour`,onChange:ae,onHover:ue},he)),n&&h.createElement(v_,y_({units:R,value:O,optionalValue:k,type:`minute`,onChange:oe,onHover:de},he)),r&&h.createElement(v_,y_({units:B,value:A,optionalValue:j,type:`second`,onChange:se,onHover:fe},he)),i&&h.createElement(v_,y_({units:H,value:M,optionalValue:N,type:`millisecond`,onChange:ce,onHover:pe},he)),a&&h.createElement(v_,y_({units:W,value:P,type:`meridiem`,onChange:le,onHover:me},he)))}function pie(e){let{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:a}=e,{format:o}=a||{},s=`${t}-time-panel`,[c]=d_(e,`time`);return h.createElement(l_.Provider,{value:c},h.createElement(`div`,{className:m(s)},h.createElement(h_,null,n?e_(n,{locale:r,format:o,generateConfig:i}):`\xA0`),h.createElement(fie,a)))}function x_(){return x_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x_.apply(this,arguments)}function mie(e){let{prefixCls:t,generateConfig:n,showTime:r,onSelect:i,value:a,pickerValue:o,onHover:s}=e,c=`${t}-datetime-panel`,[l]=c_(n,r),u=e=>a?t_(n,e,a):t_(n,e,o);return h.createElement(`div`,{className:c},h.createElement(__,x_({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s?.(e&&u(e))}})),h.createElement(pie,e))}function S_(){return S_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S_.apply(this,arguments)}function hie(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o}=e,s=`${t}-decade-panel`,[c]=d_(e,`decade`),l=e=>{let t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=e=>{let t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=(e,t)=>r.addYear(e,t*10),g=e=>{let t=n.cellYearFormat;return`${e_(e,{locale:n,format:t,generateConfig:r})}-${e_(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},_=e=>({[`${t}-cell-in-view`]:Kg(r,e,d)||Kg(r,e,f)||Qg(r,d,f,e)}),v=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,y=`${e_(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${e_(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return h.createElement(l_.Provider,{value:c},h.createElement(`div`,{className:s},h.createElement(h_,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},y),h.createElement(p_,S_({},e,{disabledDate:v,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:g,getCellClassName:_}))))}function C_(){return C_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C_.apply(this,arguments)}function gie(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-month-panel`,[l]=d_(e,`month`),u=r.setMonth(i,0),d=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),f=(e,t)=>r.addMonth(e,t),p=e=>{let t=r.getMonth(e);return n.monthFormat?e_(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=()=>({[`${t}-cell-in-view`]:!0}),g=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,_=h.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{s(`year`)},tabIndex:-1,className:`${t}-year-btn`},e_(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(l_.Provider,{value:l},h.createElement(`div`,{className:c},h.createElement(h_,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},_),h.createElement(p_,C_({},e,{disabledDate:g,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function w_(){return w_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w_.apply(this,arguments)}function _ie(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,onPickerValueChange:a,onModeChange:o}=e,s=`${t}-quarter-panel`,[c]=d_(e,`quarter`),l=r.setMonth(i,0),u=(e,t)=>r.addMonth(e,t*3),d=e=>e_(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),f=()=>({[`${t}-cell-in-view`]:!0}),p=h.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{o(`year`)},tabIndex:-1,className:`${t}-year-btn`},e_(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(l_.Provider,{value:c},h.createElement(`div`,{className:s},h.createElement(h_,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),h.createElement(p_,w_({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function T_(){return T_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T_.apply(this,arguments)}function vie(e){let{prefixCls:t,generateConfig:n,locale:r,value:i,hoverValue:a,hoverRangeValue:o}=e,s=r.locale,c=`${t}-week-panel-row`;return h.createElement(__,T_({},e,{mode:`week`,panelName:`week`,rowClassName:e=>{let t={};if(o){let[r,i]=o,a=Xg(n,s,r,e),l=Xg(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&Qg(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>Xg(n,s,e,t))),m(c,{[`${c}-selected`]:!o&&Xg(n,s,i,e)},t)}}))}function E_(){return E_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E_.apply(this,arguments)}function yie(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-year-panel`,[l]=d_(e,`year`),u=e=>{let t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=e=>{let t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),g=(e,t)=>r.addYear(e,t),_=e=>e_(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),v=e=>({[`${t}-cell-in-view`]:qg(r,e,f)||qg(r,e,p)||Qg(r,f,p,e)}),y=a?(e,t)=>{let n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,b=h.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:()=>{s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},e_(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,e_(p,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(l_.Provider,{value:l},h.createElement(`div`,{className:c},h.createElement(h_,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},b),h.createElement(p_,E_({},e,{disabledDate:y,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:g,getCellText:_,getCellClassName:v}))))}function D_(){return D_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D_.apply(this,arguments)}var bie={date:__,datetime:mie,week:vie,month:gie,quarter:_ie,year:yie,decade:hie,time:pie};function xie(e,t){let{classNames:n,styles:r,locale:i,generateConfig:a,direction:o,prefixCls:s,tabIndex:c=0,multiple:l,defaultValue:u,value:d,onChange:f,onSelect:p,defaultPickerValue:g,pickerValue:_,onPickerValueChange:v,mode:y,onPanelChange:b,picker:x=`date`,showTime:S,hoverValue:C,hoverRangeValue:w,cellRender:T,dateRender:E,monthCellRender:D,components:O={},hideHeader:k}=e,{prefixCls:A,classNames:j,styles:M}=h.useContext(jg)||{},N=A||s||`rc-picker`,P=h.useRef();h.useImperativeHandle(t,()=>({nativeElement:P.current}));let[F,I,L,R]=Are(e),z=Ug(i,I),B=x===`date`&&S?`datetime`:x,V=h.useMemo(()=>jre(B,L,R,F,z),[B,L,R,F,z]),H=a.getNow(),[U,W]=ve(x||`date`,y),G=U===`date`&&V?`datetime`:U,K=oie(a,i,B),[q,ee]=ve(u,d),te=h.useMemo(()=>{let e=Pg(q).filter(e=>e);return l?e:e.slice(0,1)},[q,l]),ne=fe(e=>{ee(e),f&&(e===null||te.length!==e.length||te.some((t,n)=>!Zg(a,i,t,e[n],B)))&&f?.(l?e:e[0])}),re=fe(e=>{p?.(e),U===x&&ne(l?K(te,e):[e])}),[ie,ae]=ve(g||te[0]||H,_);h.useEffect(()=>{te[0]&&!_&&ae(te[0])},[te[0]]);let oe=(e,t)=>{b?.(e||_,t||U)},se=(e,t=!1)=>{ae(e),v?.(e),t&&oe(e)},ce=(e,t)=>{W(e),t&&se(t),oe(t,e)},le=e=>{if(re(e),se(e),U!==x){let t=[`decade`,`year`],n=[...t,`month`],r={quarter:[...t,`quarter`],week:[...n,`week`],date:[...n,`date`]}[x]||n,i=r[r.indexOf(U)+1];i&&ce(i,e)}},ue=h.useMemo(()=>{let e,t;return Array.isArray(w)?[e,t]=w:e=w,!e&&!t?null:(e||=t,t||=e,a.isAfter(e,t)?[t,e]:[e,t])},[w,a]),de=Bg(T,E,D),pe=O[G]||bie[G]||__,me=h.useMemo(()=>({classNames:j?.popup??n??{},styles:M?.popup??r??{}}),[j,n,M,r]),he=h.useContext(f_),ge=h.useMemo(()=>({...he,hideHeader:k}),[he,k]),_e=`${N}-panel`,ye=Ig(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return h.createElement(sie.Provider,{value:me},h.createElement(f_.Provider,{value:ge},h.createElement(`div`,{ref:P,tabIndex:c,className:m(_e,{[`${_e}-rtl`]:o===`rtl`})},h.createElement(pe,D_({},ye,{showTime:V,prefixCls:N,locale:z,generateConfig:a,onModeChange:ce,pickerValue:ie,onPickerValueChange:e=>{se(e,!0)},value:te[0],onSelect:le,values:te,cellRender:de,hoverRangeValue:ue,hoverValue:C})))))}var O_=h.memo(h.forwardRef(xie));function k_(){return k_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k_.apply(this,arguments)}function Sie(e){let{picker:t,multiplePanel:n,pickerValue:r,onPickerValueChange:i,needConfirm:a,onSubmit:o,range:s,hoverValue:c}=e,{prefixCls:l,generateConfig:u}=h.useContext(jg),d=h.useCallback((e,n)=>i_(u,t,e,n),[u,t]),f=h.useMemo(()=>d(r,1),[r,d]),p=e=>{i(d(e,-1))},m={onCellDblClick:()=>{a&&o()}},g=t===`time`,_={...e,hoverValue:null,hoverRangeValue:null,hideHeader:g};return s?_.hoverRangeValue=c:_.hoverValue=c,n?h.createElement(`div`,{className:`${l}-panels`},h.createElement(f_.Provider,{value:{...m,hideNext:!0}},h.createElement(O_,_)),h.createElement(f_.Provider,{value:{...m,hidePrev:!0}},h.createElement(O_,k_({},_,{pickerValue:f,onPickerValueChange:p})))):h.createElement(f_.Provider,{value:{...m}},h.createElement(O_,_))}function Cie(e){return typeof e==`function`?e():e}function wie(e){let{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?h.createElement(`div`,{className:`${t}-presets`},h.createElement(`ul`,null,n.map(({label:e,value:t},n)=>h.createElement(`li`,{key:n,onClick:()=>{r(Cie(t))},onMouseEnter:()=>{i(Cie(t))},onMouseLeave:()=>{i(null)}},e)))):null}function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A_.apply(this,arguments)}function Tie(e){let{panelRender:t,internalMode:n,picker:r,showNow:i,range:a,multiple:o,activeInfo:s=[0,0,0],presets:c,onPresetHover:l,onPresetSubmit:u,onFocus:d,onBlur:f,onPanelMouseDown:p,direction:g,value:_,onSelect:v,isInvalid:y,defaultOpenValue:b,onOk:x,onSubmit:S,classNames:C,styles:w}=e,{prefixCls:T}=h.useContext(jg),E=`${T}-panel`,D=g===`rtl`,O=h.useRef(null),k=h.useRef(null),[A,j]=h.useState(0),[M,N]=h.useState(0),[P,F]=h.useState(0),I=e=>{e.width&&j(e.width)},[L,R,z]=s,[B,V]=h.useState(0);h.useEffect(()=>{V(10)},[L]),h.useEffect(()=>{if(a&&k.current){let e=O.current?.offsetWidth||0,t=k.current.getBoundingClientRect();if(!t.height||t.right<0){V(e=>Math.max(0,e-1));return}if(F((D?R-e:L)-t.left),A&&A<z){let n=D?t.right-(R-e+A):L+e-t.left-A;N(Math.max(0,n))}else N(0)}},[B,D,A,L,R,z,a]);function H(e){return e.filter(e=>e)}let U=h.useMemo(()=>H(Pg(_)),[_]),W=r===`time`&&!U.length,G=h.useMemo(()=>W?H([b]):U,[W,U,b]),K=W?b:U,q=h.useMemo(()=>G.length?G.some(e=>y(e)):!0,[G,y]),ee=h.createElement(`div`,{className:`${T}-panel-layout`},h.createElement(wie,{prefixCls:T,presets:c,onClick:u,onHover:l}),h.createElement(`div`,null,h.createElement(Sie,A_({},e,{value:K})),h.createElement(aie,A_({},e,{showNow:o?!1:i,invalid:q,onSubmit:()=>{W&&v(b),x(),S()}}))));t&&(ee=t(ee));let te=`${E}-container`,ne=`marginLeft`,re=`marginRight`,ie=h.createElement(`div`,{onMouseDown:p,tabIndex:-1,className:m(te,`${T}-${n}-panel-container`,C?.popup?.container),style:{[D?re:ne]:M,[D?ne:re]:`auto`,...w?.popup?.container},onFocus:d,onBlur:f},ee);return a&&(ie=h.createElement(`div`,{onMouseDown:p,ref:k,className:m(`${T}-range-wrapper`,`${T}-${r}-range-wrapper`)},h.createElement(`div`,{ref:O,className:`${T}-range-arrow`,style:{left:P}}),h.createElement(El,{onResize:I},ie))),ie}function Eie(e,t){let{format:n,maskFormat:r,generateConfig:i,locale:a,preserveInvalidOnBlur:o,inputReadOnly:s,required:c,"aria-required":l,onSubmit:u,onFocus:d,onBlur:f,onInputChange:p,onInvalid:m,open:g,onOpenChange:_,onKeyDown:v,onChange:y,activeHelp:b,name:x,autoComplete:S,id:C,value:w,invalid:T,placeholder:E,disabled:D,activeIndex:O,allHelp:k,picker:A}=e,j=(e,t)=>{let n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},M=n[0],N=h.useCallback(e=>e_(e,{locale:a,format:M,generateConfig:i}),[a,i,M]),P=h.useMemo(()=>w.map(N),[w,N]),F=h.useMemo(()=>{let e=A===`time`?8:10,t=typeof M==`function`?M(i.getNow()).length:M.length;return Math.max(e,t)+2},[M,A,i]),I=e=>{for(let t=0;t<n.length;t+=1){let r=n[t];if(typeof r==`string`){let t=j(e,r);if(t)return t}}return!1};return[n=>{function i(e){return n===void 0?e:e[n]}let a={...qt(e,{aria:!0,data:!0}),format:r,validateFormat:e=>!!I(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:x,autoComplete:S,size:F,id:i(C),value:i(P)||``,invalid:i(T),placeholder:i(E),active:O===n,helped:k||b&&O===n,disabled:i(D),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=I(e);if(t){m(!1,n),y(t,n);return}m(!!e,n)},onHelp:()=>{_(!0,{index:n})},onKeyDown:e=>{let t=!1;if(v?.(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:_(!1,{index:n});break;case`Enter`:g||_(!0);break}},...t?.({valueTexts:P})};return Object.keys(a).forEach(e=>{a[e]===void 0&&delete a[e]}),a},N]}var Die=[`onMouseEnter`,`onMouseLeave`];function Oie(e){return h.useMemo(()=>Ig(e,Die),[e])}function j_(){return j_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j_.apply(this,arguments)}function M_({icon:e,...t}){let{prefixCls:n,classNames:r,styles:i}=h.useContext(jg);return e?h.createElement(`span`,j_({className:m(`${n}-suffix`,r.suffix),style:i.suffix},t),e):null}function N_(){return N_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N_.apply(this,arguments)}function P_({icon:e,onClear:t,...n}){let{prefixCls:r,classNames:i,styles:a,locale:o}=h.useContext(jg);return h.createElement(`button`,N_({},n,{type:`button`,"aria-label":o.clear,className:m(`${r}-clear`,i.suffix),style:a.suffix,onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()}}),e)}var F_=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],kie=`顧`,Aie=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=F_.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>kie.repeat(e.length));let r=RegExp(`(${F_.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=F_.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(e=>e.mask)}getSelection(e){let{start:t,end:n}=this.maskCells[e]||{};return[t||0,n||0]}match(e){for(let t=0;t<this.maskFormat.length;t+=1){let n=this.maskFormat[t],r=e[t];if(!r||n!==kie&&n!==r)return!1}return!0}size(){return this.maskCells.length}getMaskCellIndex(e){let t=2**53-1,n=0;for(let r=0;r<this.maskCells.length;r+=1){let{start:i,end:a}=this.maskCells[r];if(e>=i&&e<=a)return r;let o=Math.min(Math.abs(e-i),Math.abs(e-a));o<t&&(t=o,n=r)}return n}};function jie(e){return{YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}function I_(){return I_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I_.apply(this,arguments)}var L_=h.forwardRef((e,t)=>{let{className:n,active:r,showActiveCls:i=!0,suffixIcon:a,format:o,validateFormat:s,onChange:c,onInput:l,helped:u,onHelp:d,onSubmit:f,onKeyDown:p,preserveInvalidOnBlur:g=!1,invalid:_,clearIcon:v,...y}=e,{value:b,onFocus:x,onBlur:S,onMouseUp:C}=e,{prefixCls:w,input:T=`input`,classNames:E,styles:D}=h.useContext(jg),O=`${w}-input`,[k,A]=h.useState(!1),[j,M]=h.useState(b),[N,P]=h.useState(``),[F,I]=h.useState(null),[L,R]=h.useState(null),z=j||``;h.useEffect(()=>{M(b)},[b]);let B=h.useRef(null),V=h.useRef(null),H=h.useRef(!1);h.useImperativeHandle(t,()=>({nativeElement:B.current,inputElement:V.current,focus:e=>{V.current.focus(e)},blur:()=>{V.current.blur()}}));let U=h.useMemo(()=>new Aie(o||``),[o]),[W,G]=h.useMemo(()=>u?[0,0]:U.getSelection(F),[U,F,u]),K=e=>{e&&e!==o&&e!==b&&d()},q=fe(e=>{s(e)&&c(e),M(e),K(e)}),ee=e=>{if(!o){let t=e.target.value;K(t),M(t),c(t)}},te=e=>{if(H.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&q(t)},ne=()=>{H.current=!0},re=e=>{let{selectionStart:t}=e.target;I(U.getMaskCellIndex(t)),R({}),C?.(e),H.current=!1},ie=e=>{A(!0),I(0),P(``),x(e)},ae=e=>{S(e)},oe=e=>{A(!1),ae(e)};r_(r,()=>{!r&&!g&&M(b)});let se=e=>{e.key===`Enter`&&s(z)&&f(),p?.(e)},ce=e=>{if(H.current){e.preventDefault();return}se(e);let{key:t}=e,n=null,r=null,i=G-W,a=o.slice(W,G),s=e=>{I(t=>{let n=t+e;return n=Math.max(n,0),n=Math.min(n,U.size()-1),n})},c=e=>{let[t,n,r]=jie(a),i=z.slice(W,G),o=Number(i);if(isNaN(o))return String(r||(e>0?t:n));let s=o+e,c=n-t+1;return String(t+(c+s-t)%c)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,s(-1);break;case`ArrowRight`:n=``,s(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=N+t,r=n);break}n!==null&&(P(n),n.length>=i&&(s(1),P(``))),r!==null&&q((z.slice(0,W)+Ng(r,i)+z.slice(G)).slice(0,o.length)),R({})},le=h.useRef();he(()=>{if(!(!k||!o||H.current)){if(!U.match(z)){q(o);return}return V.current.setSelectionRange(W,G),le.current=en(()=>{V.current.setSelectionRange(W,G)}),()=>{en.cancel(le.current)}}},[U,o,k,z,F,W,G,L,q]);let ue=o?{onFocus:ie,onBlur:oe,onKeyDown:ce,onMouseDown:ne,onMouseUp:re,onPaste:te}:{};return h.createElement(`div`,{ref:B,className:m(O,{[`${O}-active`]:r&&i,[`${O}-placeholder`]:u},n)},h.createElement(T,I_({ref:V,"aria-invalid":_,autoComplete:`off`},y,{onKeyDown:se,onBlur:ae},ue,{value:z,onChange:ee,className:E.input,style:D.input})),h.createElement(M_,{icon:a}),v)});function R_(){return R_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R_.apply(this,arguments)}function Mie(e,t){let{id:n,prefix:r,clearIcon:i,suffixIcon:a,separator:o=`~`,activeIndex:s,activeHelp:c,allHelp:l,focused:u,onFocus:d,onBlur:f,onKeyDown:p,locale:g,generateConfig:_,placeholder:v,className:y,style:b,onClick:x,onClear:S,value:C,onChange:w,onSubmit:T,onInputChange:E,format:D,maskFormat:O,preserveInvalidOnBlur:k,onInvalid:A,disabled:j,invalid:M,inputReadOnly:N,direction:P,onOpenChange:F,onActiveInfo:I,placement:L,onMouseDown:R,required:z,"aria-required":B,autoFocus:V,tabIndex:H,...U}=e,W=P===`rtl`,{prefixCls:G,classNames:K,styles:q}=h.useContext(jg),ee=h.useMemo(()=>{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),te=h.useRef(),ne=h.useRef(),re=h.useRef(),ie=e=>[ne,re][e]?.current;h.useImperativeHandle(t,()=>({nativeElement:te.current,focus:e=>{if(typeof e==`object`){let{index:t=0,...n}=e||{};ie(t)?.focus(n)}else ie(e??0)?.focus()},blur:()=>{ie(0)?.blur(),ie(1)?.blur()}}));let ae=Oie(U),oe=h.useMemo(()=>Array.isArray(v)?v:[v,v],[v]),[se]=Eie({...e,id:ee,placeholder:oe}),[ce,le]=h.useState({position:`absolute`,width:0}),ue=fe(()=>{let e=ie(s);if(e){let t=e.nativeElement.getBoundingClientRect(),n=te.current.getBoundingClientRect(),r=t.left-n.left;le(e=>({...e,width:t.width,left:r})),I([t.left,t.right,n.width])}});h.useEffect(()=>{ue()},[s]);let de=i&&(C[0]&&!j[0]||C[1]&&!j[1]),pe=V&&!j[0],me=V&&!pe&&!j[1];return h.createElement(El,{onResize:ue},h.createElement(`div`,R_({},ae,{className:m(G,`${G}-range`,{[`${G}-focused`]:u,[`${G}-disabled`]:j.every(e=>e),[`${G}-invalid`]:M.some(e=>e),[`${G}-rtl`]:W},y),style:b,ref:te,onClick:x,onMouseDown:e=>{let{target:t}=e;t!==ne.current.inputElement&&t!==re.current.inputElement&&e.preventDefault(),R?.(e)}}),r&&h.createElement(`div`,{className:m(`${G}-prefix`,K.prefix),style:q.prefix},r),h.createElement(L_,R_({ref:ne},se(0),{className:`${G}-input-start`,autoFocus:pe,tabIndex:H,"date-range":`start`})),h.createElement(`div`,{className:`${G}-range-separator`},o),h.createElement(L_,R_({ref:re},se(1),{className:`${G}-input-end`,autoFocus:me,tabIndex:H,"date-range":`end`})),h.createElement(`div`,{className:`${G}-active-bar`,style:ce}),h.createElement(M_,{icon:a}),de&&h.createElement(P_,{icon:i,onClear:S})))}var Nie=h.forwardRef(Mie);function z_(e,t){return(0,h.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}function B_(){return B_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B_.apply(this,arguments)}function V_(e,t){let n=e??t;return Array.isArray(n)?n:[n,n]}function H_(e){return e===1?`end`:`start`}function Pie(e,t){let[n,r,i,a,o,s]=Hre(e,()=>{let{disabled:t,allowEmpty:n}=e;return{disabled:V_(t,!1),allowEmpty:V_(n,!1)}}),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,defaultValue:p,value:g,needConfirm:_,onClear:v,onKeyDown:y,disabled:b,allowEmpty:x,disabledDate:S,minDate:C,maxDate:w,defaultOpen:T,open:E,onOpenChange:D,locale:O,generateConfig:k,picker:A,showNow:j,showToday:M,showTime:N,mode:P,onPanelChange:F,onCalendarChange:I,onOk:L,defaultPickerValue:R,pickerValue:z,onPickerValueChange:B,inputReadOnly:V,suffixIcon:H,onFocus:U,onBlur:W,presets:G,ranges:K,components:q,cellRender:ee,dateRender:te,monthCellRender:ne,onClick:re}=n,ie=Gre(t),[ae,oe]=z_(d,u),[se,ce]=Wre(E,T,b,D),le=(e,t)=>{(b.some(e=>!e)||!e)&&ce(e,t)},[ue,de,pe,me,ge]=tie(k,O,a,!0,!1,p,g,I,L),_e=pe(),[ye,be,xe,Se,Ce,we,Te,Ee,De]=qre(b,x,se),Oe=(e,t)=>{be(!0),U?.(e,{range:H_(t??Se)})},ke=(e,t)=>{be(!1),W?.(e,{range:H_(t??Se)})},Ae=h.useMemo(()=>{if(!N)return null;let{disabledTime:e}=N,t=e?t=>e(t,H_(Se),{from:Rg(_e,Te,Se)}):void 0;return{...N,disabledTime:t}},[N,Se,_e,Te]),[je,Me]=ve([A,A],P),Ne=je[Se]||A,Pe=Ne===`date`&&Ae?`datetime`:Ne,Fe=Pe===A&&Pe!==`time`,Ie=rie(A,Ne,j,M,!0),[Le,Re]=nie(n,ue,de,pe,me,b,a,ye,se,s),ze=Jre(_e,b,Te,k,O,S),[Be,Ve]=Vg(_e,s,x),[He,Ue]=Yre(k,O,_e,je,se,Se,r,Fe,R,z,Ae?.defaultOpenValue,B,C,w),We=fe((e,t,n)=>{let r=Fg(je,Se,t);if((r[0]!==je[0]||r[1]!==je[1])&&Me(r),F&&n!==!1){let t=[..._e];e&&(t[Se]=e),F(t,r)}}),Ge=(e,t)=>Fg(_e,t,e),Ke=(e,t)=>{let n=_e;e&&(n=Ge(e,Se)),Ee(Se);let r=we(n);me(n),Le(Se,r===null),r===null?le(!1,{force:!0}):t||ie.current.focus({index:r})},qe=e=>{let t=e.target.getRootNode();if(!ie.current.nativeElement.contains(t.activeElement??document.activeElement)){let e=b.findIndex(e=>!e);e>=0&&ie.current.focus({index:e})}le(!0),re?.(e)},Je=()=>{Re(null),le(!1,{force:!0}),v?.()},[Ye,Xe]=h.useState(null),[Ze,Qe]=h.useState(null),$e=h.useMemo(()=>Ze||_e,[_e,Ze]);h.useEffect(()=>{se||Qe(null)},[se]);let[et,tt]=h.useState([0,0,0]),nt=(e,t)=>{f===`hover`&&(Qe(e),Xe(t))},rt=Kre(G,K),it=e=>{nt(e,`preset`)},at=e=>{Re(e)&&(xe(`preset-click`),le(!1,{force:!0}))},ot=e=>{Ke(e)},st=e=>{nt(e?Ge(e,Se):null,`cell`)},ct=e=>{le(!0),Oe(e)},lt=()=>{xe(`panel`)},ut=e=>{me(Fg(_e,Se,e)),!_&&!i&&r===Pe&&Ke(e)},dt=()=>{le(!1)},ft=Bg(ee,te,ne,H_(Se)),pt=_e[Se]||null,mt=fe(e=>s(e,{activeIndex:Se})),ht=h.useMemo(()=>{let e=qt(n,!1);return Ht(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),gt=h.createElement(Tie,B_({},ht,{showNow:Ie,showTime:Ae,range:!0,multiplePanel:Fe,activeInfo:et,disabledDate:ze,onFocus:ct,onBlur:ke,onPanelMouseDown:lt,picker:A,mode:Ne,internalMode:Pe,onPanelChange:We,format:o,value:pt,isInvalid:mt,onChange:null,onSelect:ut,pickerValue:He,defaultOpenValue:Pg(N?.defaultOpenValue)[Se],onPickerValueChange:Ue,hoverValue:$e,onHover:st,needConfirm:_,onSubmit:Ke,onOk:ge,presets:rt,onPresetHover:it,onPresetSubmit:at,onNow:ot,cellRender:ft,classNames:ae,styles:oe})),_t=(e,t)=>{me(Ge(e,t))},vt=()=>{xe(`input`)},yt=(e,t)=>{let n=Te.length,r=Te[n-1];if(n&&r!==t&&_&&!x[r]&&!De(r)&&_e[r]){ie.current.focus({index:r});return}xe(`input`),le(!0,{inherit:!0}),Se!==t&&se&&!_&&i&&Ke(null,!0),Ce(t),Oe(e,t)},bt=(e,t)=>{le(!1),!_&&xe()===`input`&&Le(Se,we(_e)===null),ke(e,t)},xt=(e,t)=>{e.key===`Tab`&&Ke(null,!0),y?.(e,t)},St=h.useMemo(()=>({prefixCls:c,locale:O,generateConfig:k,button:q.button,input:q.input,classNames:ae,styles:oe}),[c,O,k,q.button,q.input,ae,oe]);return he(()=>{se&&Se!==void 0&&We(null,A,!1)},[se,Se,A]),he(()=>{let e=xe();!se&&e===`input`&&(le(!1),Ke(null,!0)),!se&&i&&!_&&e===`panel`&&(le(!0),Ke())},[se]),h.createElement(jg.Provider,{value:St},h.createElement(Mg,B_({},zg(n),{popupElement:gt,popupStyle:oe.popup.root,popupClassName:m(l,ae.popup.root),visible:se,onClose:dt,range:!0}),h.createElement(Nie,B_({},n,{ref:ie,className:m(n.className,l,ae.root),style:{...oe.root,...n.style},suffixIcon:H,activeIndex:ye||se?Se:null,activeHelp:!!Ze,allHelp:!!Ze&&Ye===`preset`,focused:ye,onFocus:yt,onBlur:bt,onKeyDown:xt,onSubmit:Ke,value:$e,maskFormat:o,onChange:_t,onInputChange:vt,format:a,inputReadOnly:V,disabled:b,open:se,onOpenChange:le,onClick:qe,onClear:Je,invalid:Be,onInvalid:Ve,onActiveInfo:tt}))))}var Fie=h.forwardRef(Pie);function Iie(e){let{prefixCls:t,value:n,onRemove:r,removeIcon:i=`×`,formatDate:a,disabled:o,maxTagCount:s,tagRender:c,placeholder:l}=e,u=`${t}-selector`,d=`${t}-selection`,f=`${d}-overflow`;function p(e,t){return h.createElement(`span`,{className:m(`${d}-item`),title:typeof e==`string`?e:null},h.createElement(`span`,{className:`${d}-item-content`},e),!o&&t&&h.createElement(`span`,{onMouseDown:e=>{e.preventDefault()},onClick:t,className:`${d}-item-remove`},i))}function g(e){let t=a(e),n=!o,i=t=>{t&&t.stopPropagation(),o||r(e)};return c?c({label:t,value:e,disabled:!!o,closable:n,onClose:i}):p(t,i)}function _(e){return p(`+ ${e.length} ...`)}return h.createElement(`div`,{className:u},h.createElement(Zm,{prefixCls:f,data:n,renderItem:g,renderRest:_,itemKey:e=>a(e),maxCount:s}),!n.length&&h.createElement(`span`,{className:`${t}-selection-placeholder`},l))}function U_(){return U_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U_.apply(this,arguments)}function Lie(e,t){let{id:n,open:r,prefix:i,clearIcon:a,suffixIcon:o,activeHelp:s,allHelp:c,focused:l,onFocus:u,onBlur:d,onKeyDown:f,locale:p,generateConfig:g,placeholder:_,className:v,style:y,onClick:b,onClear:x,internalPicker:S,value:C,onChange:w,onSubmit:T,onInputChange:E,multiple:D,maxTagCount:O,tagRender:k,format:A,maskFormat:j,preserveInvalidOnBlur:M,onInvalid:N,disabled:P,invalid:F,inputReadOnly:I,direction:L,onOpenChange:R,onMouseDown:z,required:B,"aria-required":V,autoFocus:H,tabIndex:U,removeIcon:W,...G}=e,K=L===`rtl`,{prefixCls:q,classNames:ee,styles:te}=h.useContext(jg),ne=h.useRef(),re=h.useRef();h.useImperativeHandle(t,()=>({nativeElement:ne.current,focus:e=>{re.current?.focus(e)},blur:()=>{re.current?.blur()}}));let ie=Oie(G),ae=e=>{w([e])},oe=e=>{w(C.filter(t=>t&&!Zg(g,p,t,e,S))),r||T()},[se,ce]=Eie({...e,onChange:ae},({valueTexts:e})=>({value:e[0]||``,active:l})),le=!!(a&&C.length&&!P),ue=D?h.createElement(h.Fragment,null,h.createElement(Iie,{prefixCls:q,value:C,onRemove:oe,formatDate:ce,maxTagCount:O,tagRender:k,disabled:P,removeIcon:W,placeholder:_}),h.createElement(`input`,{className:`${q}-multiple-input`,value:C.map(ce).join(`,`),ref:re,readOnly:!0,autoFocus:H,tabIndex:U}),h.createElement(M_,{icon:o}),le&&h.createElement(P_,{icon:a,onClear:x})):h.createElement(L_,U_({ref:re},se(),{autoFocus:H,tabIndex:U,suffixIcon:o,clearIcon:le&&h.createElement(P_,{icon:a,onClear:x}),showActiveCls:!1}));return h.createElement(`div`,U_({},ie,{className:m(q,{[`${q}-multiple`]:D,[`${q}-focused`]:l,[`${q}-disabled`]:P,[`${q}-invalid`]:F,[`${q}-rtl`]:K},v),style:y,ref:ne,onClick:b,onMouseDown:e=>{let{target:t}=e;t!==re.current?.inputElement&&e.preventDefault(),z?.(e)}}),i&&h.createElement(`div`,{className:m(`${q}-prefix`,ee.prefix),style:te.prefix},i),ue)}var Rie=h.forwardRef(Lie);function W_(){return W_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W_.apply(this,arguments)}function zie(e,t){let[n,r,i,a,o,s]=Hre(e),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,order:p,defaultValue:g,value:_,needConfirm:v,onChange:y,onClear:b,onKeyDown:x,disabled:S,disabledDate:C,minDate:w,maxDate:T,defaultOpen:E,open:D,onOpenChange:O,locale:k,generateConfig:A,picker:j,showNow:M,showToday:N,showTime:P,mode:F,onPanelChange:I,onCalendarChange:L,onOk:R,multiple:z,defaultPickerValue:B,pickerValue:V,onPickerValueChange:H,inputReadOnly:U,suffixIcon:W,removeIcon:G,tagRender:K,onFocus:q,onBlur:ee,presets:te,components:ne,cellRender:re,dateRender:ie,monthCellRender:ae,onClick:oe}=n,se=Gre(t);function ce(e){return e===null?null:z?e:e[0]}let le=oie(A,k,r),[ue,de]=z_(d,u),[pe,me]=Wre(D,E,[S],O),[ge,_e,ye,be,xe]=tie(A,k,a,!1,p,g,_,(e,t,n)=>{if(L){let r={...n};delete r.range,L(ce(e),ce(t),r)}},e=>{R?.(ce(e))}),Se=ye(),[Ce,we,Te,Ee]=qre([S]),De=e=>{we(!0),q?.(e,{})},Oe=e=>{we(!1),ee?.(e,{})},[ke,Ae]=ve(j,F),je=ke===`date`&&P?`datetime`:ke,Me=rie(j,ke,M,N),Ne=y&&((e,t)=>{y(ce(e),ce(t))}),[,Pe]=nie({...n,onChange:Ne},ge,_e,ye,be,[],a,Ce,pe,s),[Fe,Ie]=Vg(Se,s),Le=h.useMemo(()=>Fe.some(e=>e),[Fe]),[Re,ze]=Yre(A,k,Se,[ke],pe,Ee,r,!1,B,V,Pg(P?.defaultOpenValue),(e,t)=>{if(H){let n={...t,mode:t.mode[0]};delete n.range,H(e[0],n)}},w,T),Be=fe((e,t,n)=>{Ae(t),I&&n!==!1&&I(e||Se[Se.length-1],t)}),Ve=()=>{Pe(ye()),me(!1,{force:!0})},He=e=>{!S&&!se.current.nativeElement.contains(document.activeElement)&&se.current.focus(),me(!0),oe?.(e)},Ue=()=>{Pe(null),me(!1,{force:!0}),se.current.focus(),b?.()},[We,Ge]=h.useState(null),[Ke,qe]=h.useState(null),Je=h.useMemo(()=>{let e=[Ke,...Se].filter(e=>e);return z?e:e.slice(0,1)},[Se,Ke,z]),Ye=h.useMemo(()=>!z&&Ke?[Ke]:Se.filter(e=>e),[Se,Ke,z]);h.useEffect(()=>{pe||qe(null)},[pe]);let Xe=(e,t)=>{f===`hover`&&(qe(e),Ge(t))},Ze=Kre(te),Qe=e=>{Xe(e,`preset`)},$e=e=>{Pe(z?le(ye(),e):[e])&&!z&&me(!1,{force:!0})},et=e=>{$e(e)},tt=e=>{Xe(e,`cell`)},nt=e=>{me(!0),De(e)},rt=e=>{Te(`panel`),!(z&&je!==j)&&(be(z?le(ye(),e):[e]),!v&&!i&&r===je&&Ve())},it=()=>{me(!1)},at=Bg(re,ie,ae),ot=h.useMemo(()=>{let e=qt(n,!1);return{...Ht(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),st=h.createElement(Tie,W_({},ot,{showNow:Me,showTime:P,disabledDate:C,onFocus:nt,onBlur:Oe,picker:j,mode:ke,internalMode:je,onPanelChange:Be,format:o,value:Se,isInvalid:s,onChange:null,onSelect:rt,pickerValue:Re,defaultOpenValue:P?.defaultOpenValue,onPickerValueChange:ze,hoverValue:Je,onHover:tt,needConfirm:v,onSubmit:Ve,onOk:xe,presets:Ze,onPresetHover:Qe,onPresetSubmit:$e,onNow:et,cellRender:at,classNames:ue,styles:de})),ct=e=>{be(e)},lt=()=>{Te(`input`)},ut=e=>{Te(`input`),me(!0,{inherit:!0}),De(e)},dt=e=>{me(!1),Oe(e)},ft=(e,t)=>{e.key===`Tab`&&Ve(),x?.(e,t)},pt=h.useMemo(()=>({prefixCls:c,locale:k,generateConfig:A,button:ne.button,input:ne.input,classNames:ue,styles:de}),[c,k,A,ne.button,ne.input,ue,de]);return he(()=>{pe&&Ee!==void 0&&Be(null,j,!1)},[pe,Ee,j]),he(()=>{let e=Te();!pe&&e===`input`&&(me(!1),Ve()),!pe&&i&&!v&&e===`panel`&&Ve()},[pe]),h.createElement(jg.Provider,{value:pt},h.createElement(Mg,W_({},zg(n),{popupElement:st,popupStyle:de.popup.root,popupClassName:m(l,ue.popup.root),visible:pe,onClose:it}),h.createElement(Rie,W_({},n,{ref:se,className:m(n.className,l,ue.root),style:{...de.root,...n.style},suffixIcon:W,removeIcon:G,tagRender:K,activeHelp:!!Ke,allHelp:!!Ke&&We===`preset`,focused:Ce,onFocus:ut,onBlur:dt,onKeyDown:ft,onSubmit:Ve,value:Ye,maskFormat:o,onChange:ct,onInputChange:lt,internalPicker:r,format:a,inputReadOnly:U,disabled:S,open:pe,onOpenChange:me,onClick:He,onClear:Ue,invalid:Le,onInvalid:e=>{Ie(e,0)}}))))}var Bie=h.forwardRef(zie),G_=e=>{let{space:t,form:n,children:r}=e;if(!pr(r))return null;let i=r;return n&&(i=h.createElement(nte,{override:!0,status:!0},i)),t&&(i=h.createElement(vd,null,i)),i},K_=(e,t,n)=>m({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),q_=(e,t)=>t||e,J_=(e,t,n,r,i,a)=>{let{classNames:o,styles:s}=Rr(e),[c,l]=Or([o,t],[s,n],{props:a},{popup:{_default:`root`}});return h.useMemo(()=>[{...c,popup:{...c.popup,root:m(c.popup?.root,r)}},{...l,popup:{...l.popup,root:{...l.popup?.root,...i}}}],[c,l,r,i])};function Y_(e){return Bo(e,{inputAffixPadding:e.paddingXXS})}var X_=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},Vie=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Z_=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...Vie(Bo(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),Q_=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),$_=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Q_(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),ev=(e,t)=>({"&-outlined":{...Q_(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Z_(e)},...$_(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...$_(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),tv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Hie=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...tv(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...tv(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Z_(e)}}}}),nv=`&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)`,rv=(e,t)=>({outline:`${J(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:J(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),iv=(e,t)=>({"&, & input, & textarea":{color:t.color},[nv]:rv(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),av=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[nv]:rv(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:iv(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:iv(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},ov=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),sv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...ov(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),cv=(e,t)=>({"&-filled":{...ov(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Z_(e)},...sv(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...sv(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),lv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Uie=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...lv(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...lv(e,{status:`warning`,addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),uv=(e,t)=>({background:e.colorBgContainer,borderWidth:`${J(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),dv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...uv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),fv=(e,t)=>({"&-underlined":{...uv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`,"&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:`not-allowed`},...dv(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...dv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),pv=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),mv=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${J(t)} ${J(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},hv=e=>({padding:`${J(e.paddingBlockSM)} ${J(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),gv=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${J(e.paddingBlock)} ${J(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...pv(e.colorTextPlaceholder),"&-lg":{...mv(e),...t.largeStyle},"&-sm":{...hv(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),Wie=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...mv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...hv(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:`table-cell`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:`table-cell`,width:1,whiteSpace:`nowrap`,verticalAlign:`middle`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:`block !important`},"&-addon":{position:`relative`,padding:`0 ${J(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${J(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${J(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${J(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${J(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}}},[t]:{width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:`block`,...no(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:`inline-flex`,float:`none`,verticalAlign:`top`,borderRadius:0},[`
& > ${t}-affix-wrapper,
& > ${t}-number-affix-wrapper,
& > ${n}-picker-range
`]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:`none`},[`& > ${n}-select,
& > ${n}-select-auto-complete ${t},
& > ${n}-cascader-picker ${t},
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${n}-select:first-child,
& > ${n}-select-auto-complete:first-child ${t},
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${n}-select:last-child,
& > ${n}-cascader-picker:last-child ${t},
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},Gie=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...$a(e),...gv(e),...ev(e),...cv(e),...av(e),...fv(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},Kie=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...ro(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${J(e.inputAffixPadding)}`}}}},qie=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:{...gv(e),display:`inline-flex`,"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n},"&-password-icon":{display:`inline-flex`,color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},...Kie(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},Jie=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...$a(e),...Wie(e),"&-rtl":{direction:`rtl`},"&-wrapper":{display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...Hie(e),...Uie(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},Yie=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},_v=hc([`Input`,`Shared`],e=>{let t=Bo(e,Y_(e));return[Gie(t),qie(t)]},X_,{resetFont:!1}),vv=hc([`Input`,`Component`],e=>{let t=Bo(e,Y_(e));return[Jie(t),Yie(t),$f(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},X_,{resetFont:!1});function yv(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var bv=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e,l={content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${J(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,zIndex:0,background:`transparent`};return n&&(l.boxShadow=n),{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":l}},Xie=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:J(t),itemLineHeight:J(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Zie=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`calc(100% - 4px)`,display:`inline-flex`},[`${t}-selection-item`]:{display:`flex`,alignSelf:`center`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,marginBlock:u,borderRadius:r,cursor:`default`,transition:[`font-size`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":{...eo(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},xv=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=Xie(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:J(a.itemLineHeight)}}}]},Qie=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=Bo(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Bo(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[xv(i,`small`),xv(e),xv(a,`large`),{[`${t}${t}-multiple`]:{width:`100%`,cursor:`text`,[`${t}-selector`]:{flex:`auto`,padding:0,position:`relative`,"&:after":{margin:0},[`${t}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`,...Qa}},...Zie(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},$ie=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:`translateY(-50%)`,content:`""`,pointerEvents:`none`},[n]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:r,height:r,lineHeight:J(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${J(s)} ${c} ${l}`,borderRadius:i,content:`""`}},[`&-in-view${t}-in-range,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{position:`relative`,[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:`50%`},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:`50%`},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},eae=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:g,pickerControlIconBorderWidth:_,colorIcon:v,textHeight:y,motionDurationMid:b,colorIconHover:x,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:w,colorTextDisabled:T,colorText:E,fontSize:D,motionDurationSlow:O,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,borderRadiusSM:j,colorTextLightSolid:M,cellHoverBg:N,timeColumnHeight:P,timeColumnWidth:F,timeCellHeight:I,controlItemBgActive:L,marginXXS:R,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:B}=e,V=e.calc(o).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,
${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon,
${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:V},"&-header":{display:`flex`,padding:`0 ${J(c)}`,color:h,borderBottom:`${J(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:v,lineHeight:J(y),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${b}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:D,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:S,lineHeight:J(y),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:B,insetInlineStart:B,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:_,borderInlineStartWidth:_,content:`""`}},"&-prev-icon, &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon, &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:C,fontWeight:`normal`},th:{height:e.calc(C).add(e.calc(w).mul(2)).equal(),color:E,verticalAlign:`middle`}},"&-cell":{padding:`${J(w)} 0`,color:T,cursor:`pointer`,"&-in-view":{color:E},...$ie(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${J(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${J(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${J(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${J(c)} ${J(z)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${b}`},"&:first-child:before":{borderStartStartRadius:j,borderEndStartRadius:j},"&:last-child:before":{borderStartEndRadius:j,borderEndEndRadius:j}},"&:hover td:before":{background:N},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new cs(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${J(c)} ${J(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${J(d)} ${f} ${g}`},[`${t}-date-panel,
${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel,
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:P},"&-column":{flex:`1 0 auto`,width:F,margin:`${J(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${b}`,overflowX:`hidden`,"&::-webkit-scrollbar":{width:8,backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:`thin`,scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:`block`,height:`calc(100% - ${J(I)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${J(d)} ${f} ${g}`},"&-active":{background:new cs(L).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(F).sub(e.calc(R).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(I).div(2).equal(),color:E,lineHeight:J(I),borderRadius:j,cursor:`pointer`,transition:`background-color ${b}`,"&:hover":{background:N}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:`transparent`,cursor:`not-allowed`}}}}}}}}},tae=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${J(r)} ${l} ${u}`,"&-extra":{padding:`0 ${J(i)}`,lineHeight:J(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${J(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:J(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:J(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:`inline-block`},[`${t}-now-btn-disabled`]:{pointerEvents:`none`,color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}},nae=e=>{let{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},rae=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new cs(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new cs(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},iae=e=>({...X_(e),...rae(e),...yv(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),aae=e=>{let{componentCls:t}=e;return{[t]:[{...ev(e),...fv(e),...cv(e),...av(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Sv=(e,t)=>({padding:`${J(e)} ${J(t)}`}),oae=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=vc(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},sae=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:a,colorBorder:o,borderRadius:s,motionDurationMid:c,colorTextDisabled:l,colorTextPlaceholder:u,colorTextQuaternary:d,fontSizeLG:f,inputFontSizeLG:p,fontSizeSM:m,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:_,paddingXS:v,marginXS:y,colorIcon:b,lineWidthBold:x,colorPrimary:S,motionDurationSlow:C,zIndexPopup:w,paddingXXS:T,sizePopupArrow:E,colorBgElevated:D,borderRadiusLG:O,boxShadowSecondary:k,borderRadiusSM:A,colorSplit:j,cellHoverBg:M,presetsWidth:N,presetsMaxWidth:P,boxShadowPopoverArrow:F,fontHeight:I,lineHeightLG:L}=e,[R,z]=vc(n,`date-picker`);return[{[t]:{[R(`affix-color`)]:`inherit`,...$a(e),...Sv(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:s,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${c}`).join(`, `),[`${t}-prefix`]:{color:z(`affix-color`),flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...pv(u),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:l,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:u}}},"&-large":{...Sv(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:p??f,lineHeight:L}},"&-small":{...Sv(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:h??m}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(v).div(2).equal(),color:d,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:d,lineHeight:1,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0,appearance:`none`,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${c}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:b},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...ro(e)}},"&:hover, &:focus-within":{[`${t}-clear`]:{opacity:1,pointerEvents:`auto`},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:f,color:d,fontSize:f,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:x,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${J(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:_}}},"&-dropdown":{...$a(e),...eae(e),pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${t}-dropdown-hidden`]:{display:`none`},"&-rtl":{direction:`rtl`},[`&${t}-dropdown-placement-bottomLeft,
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${t}-dropdown-placement-topLeft,
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:`none`}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Xd},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Jd},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:`none`},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Zd},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Yd},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${C} ease-out`,...bv(e,D,F),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:D,borderRadius:O,boxShadow:k,transition:`margin ${C}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:N,maxWidth:P,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:v,borderInlineEnd:`${J(i)} ${a} ${j}`,li:{...Qa,borderRadius:A,paddingInline:v,paddingBlock:e.calc(g).sub(I).div(2).equal(),cursor:`pointer`,transition:`all ${C}`,"+ li":{marginTop:y},"&:hover":{background:M}}}},[`${t}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:`center`},"&-focused":{borderColor:o}}}},"&-dropdown-range":{padding:`${J(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},rf(e,`slide-up`),rf(e,`slide-down`),qd(e,`move-up`),qd(e,`move-down`)]},Cv=hc(`DatePicker`,e=>{let t=Bo(Y_(e),nae(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[tae(t),sae(t),aae(t),oae(t),Qie(t),$f(e,{focusElCls:`${e.componentCls}-focused`})]},iae),cae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z`}}]},name:`check`,theme:`outlined`}}))());function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wv.apply(this,arguments)}var Tv=h.forwardRef((e,t)=>h.createElement(W,wv({},e,{ref:t,icon:cae.default}))),lae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z`}}]},name:`down`,theme:`outlined`}}))());function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ev.apply(this,arguments)}var Dv=h.forwardRef((e,t)=>h.createElement(W,Ev({},e,{ref:t,icon:lae.default}))),uae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z`}}]},name:`search`,theme:`outlined`}}))());function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov.apply(this,arguments)}var kv=h.forwardRef((e,t)=>h.createElement(W,Ov({},e,{ref:t,icon:uae.default})));function Av({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:a,removeIcon:o,contextRemoveIcon:s,loading:c,loadingIcon:l,contextLoadingIcon:u,searchIcon:d,contextSearchIcon:f,multiple:p,hasFeedback:m,showSuffixIcon:g,feedbackIcon:_,showArrow:v,componentName:y}){return h.useMemo(()=>{let y=Gu(n,r,h.createElement(ne,null)),b=t=>e===null&&!m&&!v?null:h.createElement(h.Fragment,null,g!==!1&&t,m&&_),x=null;x=e===void 0?c?b(Gu(l,u,h.createElement(jd,{spin:!0}))):({open:e,showSearch:n})=>b(e&&n?Gu(d,f,h.createElement(kv,null)):Gu(t,h.createElement(Dv,null))):b(e);let S=Gu(i,a,p?h.createElement(Tv,null):null),C=Gu(o,s,h.createElement(ae,null));return{clearIcon:y,suffixIcon:x,itemIcon:S,removeIcon:C}},[e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,g,_,v])}var dae=(e,t,n)=>fr(n)?n:t===`year`&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,fae=(e,t,n)=>fr(n)?n:t===`year`&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,pae=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=Av({...e,prefixCls:t,componentName:`DatePicker`});return[h.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[mae,hae]=[`week`,`WeekPicker`],[gae,_ae]=[`month`,`MonthPicker`],[vae,yae]=[`year`,`YearPicker`],[bae,xae]=[`quarter`,`QuarterPicker`],[jv,Mv]=[`time`,`TimePicker`],Sae=e=>h.createElement(sp,{size:`small`,type:`primary`,...e});function Nv(e){return(0,h.useMemo)(()=>({button:Sae,...e}),[e])}var Cae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z`}}]},name:`calendar`,theme:`outlined`}}))());function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pv.apply(this,arguments)}var wae=h.forwardRef((e,t)=>h.createElement(W,Pv({},e,{ref:t,icon:Cae.default}))),Tae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z`}}]},name:`clock-circle`,theme:`outlined`}}))());function Fv(){return Fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fv.apply(this,arguments)}var Eae=h.forwardRef((e,t)=>h.createElement(W,Fv({},e,{ref:t,icon:Tae.default}))),Iv=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?h.createElement(h.Fragment,null,e===jv?h.createElement(Eae,{"aria-hidden":`true`}):h.createElement(wae,{"aria-hidden":`true`}),t&&n):r,Dae=e=>(0,h.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:o,style:s,classNames:c,styles:l,placement:u,size:d,disabled:f,bordered:p=!0,placeholder:g,status:_,variant:v,picker:y,dropdownClassName:b,popupClassName:x,popupStyle:S,rootClassName:C,suffixIcon:w,separator:T,allowClear:E,clearIcon:D,...O}=t,k=y===jv?`timePicker`:`datePicker`,{suffixIcon:A,clearIcon:j,allowClear:M}=Rr(k),[N,P]=J_(k,c,l,x||b,S),F=h.useRef(null),{getPrefixCls:I,direction:L,getPopupContainer:R,rangePicker:z}=(0,h.useContext)(Fr),B=I(`picker`,r),{compactSize:V,compactItemClassnames:H}=_d(B,L),U=I(),W=T??z?.separator,[G,K]=pm(`rangePicker`,v,p),q=ng(B),[ee,te]=Cv(B,q),ne=m(ee,te,q,C),re=Ku({componentName:`RangePicker`,allowClear:E,clearIcon:D,contextAllowClear:M,contextClearIcon:j,defaultAllowClear:!0}),ie=Nv(a),ae=Wu(e=>d??V??e),oe=h.useContext(mu),se=f??oe,{hasFeedback:ce,status:le,feedbackIcon:ue}=(0,h.useContext)(fm),de=Iv({picker:y,hasFeedback:ce,feedbackIcon:ue,suffixIcon:w===void 0?A:w});(0,h.useImperativeHandle)(n,()=>F.current);let[fe]=Wc(`Calendar`,Pc),pe=dn(fe,t.locale||{}),[me]=md(`DatePicker`,P?.popup?.root?.zIndex);return h.createElement(G_,{space:!0},h.createElement(Fie,{separator:h.createElement(`span`,{"aria-label":`to`,className:`${B}-separator`},W??h.createElement(xre,null)),disabled:se,ref:F,placement:u,placeholder:fae(pe,y,g),suffixIcon:de,prevIcon:h.createElement(`span`,{className:`${B}-prev-icon`}),nextIcon:h.createElement(`span`,{className:`${B}-next-icon`}),superPrevIcon:h.createElement(`span`,{className:`${B}-super-prev-icon`}),superNextIcon:h.createElement(`span`,{className:`${B}-super-next-icon`}),transitionName:`${U}-slide-up`,picker:y,...O,locale:pe.lang,getPopupContainer:i||R,generateConfig:e,components:ie,direction:L,prefixCls:B,rootClassName:ne,className:m({[`${B}-large`]:ae===`large`,[`${B}-small`]:ae===`small`,[`${B}-${G}`]:K},K_(B,q_(le,_),ce),H,o,z?.className),style:{...z?.style,...s},classNames:N,styles:{...P,popup:{...P.popup,root:{...P.popup.root,zIndex:me}}},allowClear:re}))}),Oae=e=>{let t=(t,n=`DatePicker`)=>{let r=n===Mv?`timePicker`:`datePicker`;return(0,h.forwardRef)((i,a)=>{let{prefixCls:o,getPopupContainer:s,components:c,style:l,className:u,size:d,bordered:f,placement:p,placeholder:g,disabled:_,status:v,variant:y,onCalendarChange:b,classNames:x,styles:S,dropdownClassName:C,popupClassName:w,popupStyle:T,rootClassName:E,suffixIcon:D,allowClear:O,clearIcon:k,...A}=i,{suffixIcon:j,clearIcon:M,allowClear:N}=Rr(n===Mv?`timePicker`:`datePicker`),{getPrefixCls:P,direction:F,getPopupContainer:I,[r]:L}=(0,h.useContext)(Fr),R=P(`picker`,o),{compactSize:z,compactItemClassnames:B}=_d(R,F),V=Wu(e=>d??z??e),H=h.useContext(mu),U=_??H,W={...i,size:V,disabled:U,status:v,variant:y},[G,K]=J_(r,x,S,w||C,T,W),q=h.useRef(null),[ee,te]=pm(`datePicker`,y,f),ne=ng(R),[re,ie]=Cv(R,ne),ae=m(re,ie,ne,E);(0,h.useImperativeHandle)(a,()=>q.current);let oe={showToday:!0},se=t||i.picker,ce=P(),{onSelect:le,multiple:ue}=A,de=le&&t===`time`&&!ue,fe=(e,t,n)=>{b?.(e,t,n),de&&le(e)},[,pe]=pae(i,R),me=Ku({componentName:n,allowClear:O,clearIcon:k,contextAllowClear:N,contextClearIcon:M,defaultAllowClear:!0}),he=Nv(c),{hasFeedback:ge,status:_e,feedbackIcon:ve}=(0,h.useContext)(fm),ye=Iv({picker:se,hasFeedback:ge,feedbackIcon:ve,suffixIcon:D===void 0?j:D}),[be]=Wc(`DatePicker`,Pc),xe=dn(be,i.locale||{}),[Se]=md(`DatePicker`,K?.popup?.root?.zIndex);return h.createElement(G_,{space:!0},h.createElement(Bie,{ref:q,placeholder:dae(xe,se,g),suffixIcon:ye,placement:p,prevIcon:h.createElement(`span`,{className:`${R}-prev-icon`}),nextIcon:h.createElement(`span`,{className:`${R}-next-icon`}),superPrevIcon:h.createElement(`span`,{className:`${R}-super-prev-icon`}),superNextIcon:h.createElement(`span`,{className:`${R}-super-next-icon`}),transitionName:`${ce}-slide-up`,picker:t,onCalendarChange:fe,...oe,...A,locale:xe.lang,getPopupContainer:s||I,generateConfig:e,components:he,direction:F,disabled:U,prefixCls:R,rootClassName:ae,className:m({[`${R}-large`]:V===`large`,[`${R}-small`]:V===`small`,[`${R}-${ee}`]:te},K_(R,q_(_e,v),ge),B,L?.className,u),style:{...L?.style,...l},classNames:G,styles:{...K,popup:{...K.popup,root:{...K.popup.root,zIndex:Se}}},allowClear:me,removeIcon:pe}))})},n=t(),r=t(mae,hae),i=t(gae,_ae),a=t(vae,yae),o=t(bae,xae);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(jv,Mv),QuarterPicker:o}},Lv=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=Oae(e),s=Dae(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},Rv=Lv(yre);Rv._InternalPanelDoNotUseOrYouWillBeFired=kg(Rv,`popupAlign`,void 0,`picker`),Rv._InternalRangePanelDoNotUseOrYouWillBeFired=kg(Rv.RangePicker,`popupAlign`,void 0,`picker`),Rv.generatePicker=Lv;var kae=e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Aae=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=e,c=`${t}-rail`;return{[t]:{...$a(e),borderBlockStart:`${J(i)} solid ${r}`,[c]:{borderBlockStart:`${J(i)} solid ${r}`},"&-vertical":{position:`relative`,top:`-0.06em`,display:`inline-block`,height:`0.9em`,marginInline:s,marginBlock:0,verticalAlign:`middle`,borderTop:0,borderInlineStart:`${J(i)} solid ${r}`},"&-horizontal":{display:`flex`,clear:`both`,width:`100%`,minWidth:`100%`,margin:`${J(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:`flex`,alignItems:`center`,margin:`${J(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:`nowrap`,textAlign:`center`,borderBlockStart:`0 ${r}`,[`${c}-start, ${c}-end`]:{width:`50%`,borderBlockStartColor:`inherit`,borderBlockEnd:0,content:`''`}},[`&-horizontal${t}-with-text-start`]:{[`${c}-start`]:{width:`calc(${o} * 100%)`},[`${c}-end`]:{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${c}-start`]:{width:`calc(100% - ${o} * 100%)`},[`${c}-end`]:{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:`inline-block`,paddingBlock:0,paddingInline:a},"&-dashed":{background:`none`,borderColor:r,borderStyle:`dashed`,borderWidth:`${J(i)} 0 0`,[c]:{borderBlockStart:`${J(i)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${c}-start, ${c}-end`]:{borderStyle:`dashed none none`}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:`none`,borderColor:r,borderStyle:`dotted`,borderWidth:`${J(i)} 0 0`,[c]:{borderBlockStart:`${J(i)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:`dotted none none`}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${c}-start`]:{width:0},[`${c}-end`]:{width:`100%`},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${c}-start`]:{width:`100%`},[`${c}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},jae=hc(`Divider`,e=>{let t=Bo(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Aae(t),kae(t)]},e=>({textPaddingInline:`1em`,orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}}),Mae=[`left`,`right`,`center`,`start`,`end`],Nae=e=>{let{getPrefixCls:t,direction:n,className:r,style:i,classNames:a,styles:o}=Rr(`divider`),{prefixCls:s,type:c,orientation:l,vertical:u,titlePlacement:d,orientationMargin:f,className:p,rootClassName:g,children:_,dashed:v,variant:y=`solid`,plain:b,style:x,size:S,classNames:C,styles:w,...T}=e,E=t(`divider`,s),D=`${E}-rail`,[O,k]=jae(E),A=Wu(S),j=!!_,M=Mae.includes(l||``),N=h.useMemo(()=>{let e=d??(M?l:`center`);return e===`left`?n===`rtl`?`end`:`start`:e===`right`?n===`rtl`?`start`:`end`:e},[n,l,d,M]),P=N===`start`&&f!=null,F=N===`end`&&f!=null,[I,L]=id(l,u,c),R={...e,orientation:I,titlePlacement:N,size:A},[z,B]=Or([a,C],[o,w],{props:R}),V=m(E,r,O,k,`${E}-${I}`,{[`${E}-with-text`]:j,[`${E}-with-text-${N}`]:j,[`${E}-dashed`]:!!v,[`${E}-${y}`]:y!==`solid`,[`${E}-plain`]:!!b,[`${E}-rtl`]:n===`rtl`,[`${E}-no-default-orientation-margin-start`]:P,[`${E}-no-default-orientation-margin-end`]:F,[`${E}-md`]:A===`medium`||A===`middle`,[`${E}-sm`]:A===`small`,[D]:!_,[z.rail]:z.rail&&!_},p,g,z.root),H=h.useMemo(()=>mr(f)?f:/^\d+$/.test(f)?Number(f):f,[f]),U={marginInlineStart:P?H:void 0,marginInlineEnd:F?H:void 0};return h.createElement(`div`,{className:V,style:{...i,...B.root,..._?{}:B.rail,...x},...T,role:`separator`},_&&!L&&h.createElement(h.Fragment,null,h.createElement(`div`,{className:m(D,`${D}-start`,z.rail),style:B.rail}),h.createElement(`span`,{className:m(`${E}-inner-text`,z.content),style:{...U,...B.content}},_),h.createElement(`div`,{className:m(D,`${D}-end`,z.rail),style:B.rail})))};function zv(e){let[t,n]=h.useState(e);return h.useEffect(()=>{let t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var Pae=e=>{let{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,i=`${t}-show-help`,a=`${t}-show-help-item`;return{[i]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[a]:{overflow:`hidden`,transition:`${[`height`,`opacity`,`transform`].map(e=>`${e} ${n} ${r}`).join(`, `)} !important`,[`&${a}-appear, &${a}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${a}-leave-active`]:{transform:`translateY(-5px)`}}}}},Fae=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${J(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Bv=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Iae=e=>{let{componentCls:t}=e;return{[t]:{...$a(e),...Fae(e),[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":{...Bv(e,e.controlHeightSM)},"&-large":{...Bv(e,e.controlHeightLG)}}}},Lae=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[f]=vc(i,`grid`);return{[t]:{...$a(e),marginBottom:d,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden,
&-hidden${i}-row`]:{display:`none`},[`${t}-label`]:{flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:e.lineHeight,whiteSpace:`unset`,"> label":{verticalAlign:`middle`,textWrap:`balance`}},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:c,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required`]:{"&::before":{display:`inline-block`,marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:`sans-serif`,lineHeight:1,content:`"*"`},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:`none`}}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:l,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:`"\\a0"`}}},[`${t}-control`]:{[f(`display`)]:`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`,[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:`flex`,alignItems:`center`}}}},[t]:{"&-additional":{display:`flex`,flexDirection:`column`},"&-explain, &-extra":{clear:`both`,color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:`100%`},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:`auto`,opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:`center`,visibility:`visible`,animationName:of,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},Vv=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),Rae=e=>{let{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:`1 1 0`,minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:`unset`}},[`${t}-col-24${n}-label,
${t}-col-xl-24${n}-label`]:Vv(e)}}},zae=e=>{let{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[`${n}-inline`]:{flex:`none`,marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:`nowrap`},[`> ${n}-label,
> ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},Bae=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Vv(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},Vae=e=>{let{componentCls:t,formItemCls:n,antCls:r,verticalLabelHeight:i}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:`column`},[`${n}-label > label`]:{height:i},[`${n}-control`]:{width:`100%`},[`${n}-label,
${r}-col-24${n}-label,
${r}-col-xl-24${n}-label`]:Vv(e)},[`@media (max-width: ${J(e.screenXSMax)})`]:[Bae(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Vv(e)}}}],[`@media (max-width: ${J(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Vv(e)}}},[`@media (max-width: ${J(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Vv(e)}}},[`@media (max-width: ${J(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Vv(e)}}}}},Hae=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??`auto`,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Hv=(e,t)=>Bo(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Uv=hc(`Form`,(e,{rootPrefixCls:t})=>{let n=Hv(e,t);return[Iae(n),Lae(n),Pae(n),Rae(n),zae(n),Vae(n),Id(n),of]},Hae,{order:-1e3}),Wv=[];function Gv(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var Kv=({help:e,helpStatus:t,errors:n=Wv,warnings:r=Wv,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=h.useContext(dm),{classNames:c,styles:l}=h.useContext(um),u=`${s}-item-explain`,d=ng(s),[f,p]=Uv(s,d),g=h.useMemo(()=>If(s),[s]),_=zv(n),v=zv(r),y=fr(e)&&e!==!1,b=h.useMemo(()=>y?[Gv(e,`help`,t)]:[].concat(dr(_.map((e,t)=>Gv(e,`error`,`error`,t))),dr(v.map((e,t)=>Gv(e,`warning`,`warning`,t)))),[e,t,y,_,v]),x=h.useMemo(()=>{let e={};return b.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),b.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[b]),S={};return a&&(S.id=`${a}_help`),h.createElement(ar,{motionDeadline:g.motionDeadline,motionName:`${s}-show-help`,visible:!!x.length,onVisibleChanged:o},e=>{let{className:t,style:n}=e;return h.createElement(`div`,{...S,className:m(u,t,c?.help,p,d,i,f),style:{...l?.help,...n}},h.createElement(ir,{keys:x,...If(s),motionName:`${s}-show-help-item`,component:!1},e=>{let{key:t,error:n,errorStatus:r,className:i,style:a}=e;return h.createElement(`div`,{key:t,className:m(i,c?.helpItem,{[`${u}-${r}`]:r}),style:{...l?.helpItem,...a}},n)}))})},qv=e=>typeof e==`object`&&!!e&&e.nodeType===1,Jv=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,Yv=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return Jv(n.overflowY,t)||Jv(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Xv=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,Uae=e=>e.parentElement??(e.getRootNode().host||null),Zv=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!qv(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;qv(u)&&s(u);){if(u=Uae(u),u===c){l.push(u);break}u!=null&&u===document.body&&Yv(u)&&!Yv(document.documentElement)||u!=null&&Yv(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,{scrollX:p,scrollY:m}=window,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),{top:x,right:S,bottom:C,left:w}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),T=r===`start`||r===`nearest`?_-x:r===`end`?y+C:_+h/2-x+C,E=i===`center`?b+g/2-w+S:i===`end`?v+S:b-w,D=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:x,left:S}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&(t===c&&!Yv(t)||_>=s&&y<=x&&b>=S&&v<=u))return D;let C=getComputedStyle(t),w=parseInt(C.borderLeftWidth,10),O=parseInt(C.borderTopWidth,10),k=parseInt(C.borderRightWidth,10),A=parseInt(C.borderBottomWidth,10),j=0,M=0,N=`offsetWidth`in t?t.offsetWidth-t.clientWidth-w-k:0,P=`offsetHeight`in t?t.offsetHeight-t.clientHeight-O-A:0,F=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,I=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)j=r===`start`?T:r===`end`?T-f:r===`nearest`?Xv(m,m+f,f,O,A,m+T,m+T+h,h):T-f/2,M=i===`start`?E:i===`center`?E-d/2:i===`end`?E-d:Xv(p,p+d,d,w,k,p+E,p+E+g,g),j=Math.max(0,j+m),M=Math.max(0,M+p);else{j=r===`start`?T-s-O:r===`end`?T-x+A+P:r===`nearest`?Xv(s,x,a,O,A+P,T,T+h,h):T-(s+a/2)+P/2,M=i===`start`?E-S-w:i===`center`?E-(S+o/2)+N/2:i===`end`?E-u+k+N:Xv(S,u,o,w,k+N,E,E+g,g);let{scrollLeft:e,scrollTop:n}=t;j=I===0?0:Math.max(0,Math.min(n+j/I,t.scrollHeight-a/I+P)),M=F===0?0:Math.max(0,Math.min(e+M/F,t.scrollWidth-o/F+N)),T+=n-j,E+=e-M}D.push({el:t,top:j,left:M})}return D},Wae=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function Gae(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>typeof e==`object`&&typeof e.behavior==`function`)(t))return t.behavior(Zv(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of Zv(e,Wae(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var Kae=[`parentNode`],qae=`form_item`;function Qv(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function $v(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:Kae.includes(n)?`${qae}_${n}`:n}function ey(e,t,n,r,i,a){let o=r;return a===void 0?n.validating?o=`validating`:e.length?o=`error`:t.length?o=`warning`:(n.touched||i&&n.validated)&&(o=`success`):o=a,o}function ty(e){return Qv(e).join(`_`)}function ny(e,t){let n=nt(t.getFieldInstance(e));if(n)return n;let r=$v(Qv(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function ry(e){let[t]=rm(),n=h.useRef({}),r=h.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let r=ty(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n,...i}=t,a=ny(e,r);a&&(Gae(a,{scrollMode:`if-needed`,block:`nearest`,...i}),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);_r(t?.focus)?t.focus():ny(e,r)?.focus?.()},getFieldInstance:e=>{let t=ty(e);return n.current[t]}},[e,t]);return[r]}var Jae=h.forwardRef((e,t)=>{let n=h.useContext(mu),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f,labelAlign:p,labelWrap:g}=Rr(`form`),{prefixCls:_,className:v,rootClassName:y,size:b,disabled:x=n,form:S,colon:C,labelAlign:w,labelWrap:T,labelCol:E,wrapperCol:D,layout:O=`horizontal`,scrollToFirstError:k,requiredMark:A,onFinishFailed:j,name:M,style:N,feedbackIcons:P,variant:F,classNames:I,styles:L,tooltip:R,...z}=e,B=Wu(b),V=h.useContext(Ac),H=h.useMemo(()=>A===void 0?a===void 0?!0:a:A,[A,a]),U=C??o,W=w??p,G=T??g,K={...f,...R},q=r(`form`,_),ee=ng(q),[te,ne]=Uv(q,ee),re={...e,size:B,disabled:x,layout:O,colon:U,requiredMark:H,labelAlign:W,labelWrap:G},ie=Er(l),ae=Er(N),[oe,se]=Or([d,I],[u,ie,L,ae],{props:re}),ce=m(q,`${q}-${O}`,{[`${q}-hide-required-mark`]:H===!1,[`${q}-rtl`]:i===`rtl`,[`${q}-large`]:B===`large`,[`${q}-small`]:B===`small`},ne,ee,te,c,v,y,oe.root),[le]=ry(S),{__INTERNAL__:ue}=le;ue.name=M;let de=h.useMemo(()=>({name:M,labelAlign:W,labelCol:E,labelWrap:G,wrapperCol:D,layout:O,colon:U,requiredMark:H,itemRef:ue.itemRef,form:le,feedbackIcons:P,tooltip:K,classNames:oe,styles:se}),[M,W,G,E,D,O,U,H,le,P,oe,se,K]),fe=h.useRef(null);h.useImperativeHandle(t,()=>({...le,nativeElement:fe.current?.nativeElement}));let pe=(e,t)=>{if(e){let n={block:`nearest`};gr(e)&&(n={...n,...e}),le.scrollToField(t,n)}},me=e=>{if(j?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(k!==void 0){pe(k,t);return}s!==void 0&&pe(s,t)}};return h.createElement(rte.Provider,{value:F},h.createElement(hu,{disabled:x},h.createElement(gu.Provider,{value:B},h.createElement(tte,{validateMessages:V},h.createElement(um.Provider,{value:de},h.createElement(nte,{status:!0},h.createElement(lm,{id:M,...z,name:M,onFinishFailed:me,form:le,ref:fe,style:se?.root,className:ce})))))))}),Yae=e=>{if(_r(e))return e;let t=tn(e);return t.length<=1?t[0]:t},iy=()=>{let{status:e,errors:t=[],warnings:n=[]}=h.useContext(fm);return{status:e,errors:t,warnings:n}};iy.Context=fm;function Xae(e){let[t,n]=h.useState(e),r=h.useRef(null),i=h.useRef([]),a=h.useRef(!1);h.useEffect(()=>(a.current=!1,()=>{a.current=!0,en.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=en(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var Zae=()=>{let{itemRef:e}=h.useContext(um),t=h.useRef({});return(n,r)=>{let i=r&&gr(r)&&Be(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Fe(e(n),i)),t.current.ref}},Qae=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},$ae=_c([`Form`,`item-item`],(e,{rootPrefixCls:t})=>Qae(Hv(e,t))),eoe=24,toe=e=>{let{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:a,errors:o,warnings:s,_internalItemRender:c,extra:l,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:p,label:g}=e,_=`${t}-item`,v=h.useContext(um),{classNames:y,styles:b}=v,x=h.useMemo(()=>{let e={...i||v.wrapperCol||{}};return g===null&&!r&&!i&&v.labelCol&&[void 0].concat(dr(hg)).forEach(t=>{let n=t?[t]:[],r=rn(v.labelCol,n),i=gr(r)?r:{},a=rn(e,n),o=gr(a)?a:{};`span`in i&&!(`offset`in o)&&i.span<eoe&&(e=on(e,[].concat(n,[`offset`]),i.span))}),e},[i,v.wrapperCol,v.labelCol,g,r]),S=m(`${_}-control`,x.className),C=h.useMemo(()=>{let{labelCol:e,wrapperCol:t,...n}=v;return n},[v]),w=h.useRef(null),[T,E]=h.useState(0);he(()=>{l&&w.current?E(w.current.clientHeight):E(0)},[l]);let D=h.createElement(`div`,{className:`${_}-control-input`},h.createElement(`div`,{className:m(`${_}-control-input-content`,y?.content),style:b?.content},a)),O=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),k=f!==null||o.length||s.length?h.createElement(dm.Provider,{value:O},h.createElement(Kv,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${_}-explain-connected`,onVisibleChanged:p})):null,A={};d&&(A.id=`${d}_extra`);let j=l?h.createElement(`div`,{...A,className:m(`${_}-extra`,y?.extra),style:b?.extra,ref:w},l):null,M=k||j?h.createElement(`div`,{className:`${_}-additional`,style:f?{minHeight:f+T}:{}},k,j):null,N=c&&c.mark===`pro_table_render`&&c.render?c.render(e,{input:D,errorList:k,extra:j}):h.createElement(h.Fragment,null,D,M);return h.createElement(um.Provider,{value:C},h.createElement(bg,{...x,className:S},N),h.createElement($ae,{prefixCls:t}))},noe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`question-circle`,theme:`outlined`}}))());function ay(){return ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ay.apply(this,arguments)}var roe=h.forwardRef((e,t)=>h.createElement(W,ay({},e,{ref:t,icon:noe.default}))),ioe=(e,t)=>pr(e)?gr(e)&&!(0,h.isValidElement)(e)?{...t,...e}:{...t,title:e}:null,oy=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return h.createElement(`div`,{id:r,className:m(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},sy={shiftX:64,adjustY:1},cy={adjustX:1,shiftY:!0},ly=[0,0],aoe={left:{points:[`cr`,`cl`],overflow:cy,offset:[-4,0],targetOffset:ly},right:{points:[`cl`,`cr`],overflow:cy,offset:[4,0],targetOffset:ly},top:{points:[`bc`,`tc`],overflow:sy,offset:[0,-4],targetOffset:ly},bottom:{points:[`tc`,`bc`],overflow:sy,offset:[0,4],targetOffset:ly},topLeft:{points:[`bl`,`tl`],overflow:sy,offset:[0,-4],targetOffset:ly},leftTop:{points:[`tr`,`tl`],overflow:cy,offset:[-4,0],targetOffset:ly},topRight:{points:[`br`,`tr`],overflow:sy,offset:[0,-4],targetOffset:ly},rightTop:{points:[`tl`,`tr`],overflow:cy,offset:[4,0],targetOffset:ly},bottomRight:{points:[`tr`,`br`],overflow:sy,offset:[0,4],targetOffset:ly},rightBottom:{points:[`bl`,`br`],overflow:cy,offset:[4,0],targetOffset:ly},bottomLeft:{points:[`tl`,`bl`],overflow:sy,offset:[0,4],targetOffset:ly},leftBottom:{points:[`br`,`bl`],overflow:cy,offset:[-4,0],targetOffset:ly}};function uy(){return uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uy.apply(this,arguments)}var ooe=h.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:g,arrowContent:_,overlay:v,id:y,showArrow:b=!0,classNames:x,styles:S,...C}=e,w=Ce(y),T=(0,h.useRef)(null);(0,h.useImperativeHandle)(t,()=>T.current);let E={...C};`visible`in e&&(E.popupVisible=e.visible);let D=h.useMemo(()=>{if(!b)return!1;let e=b===!0?{}:b;return{...e,className:m(e.className,x?.arrow),style:{...e.style,...S?.arrow},content:e.content??_}},[b,x?.arrow,S?.arrow,_]);return h.createElement(ou,uy({popupClassName:x?.root,prefixCls:a,popup:h.createElement(oy,{key:`content`,prefixCls:a,id:w,classNames:x,styles:S},v),action:n,builtinPlacements:aoe,popupPlacement:u,ref:T,popupAlign:d,getPopupContainer:g,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:S?.root,mouseEnterDelay:r,arrow:D,uniqueContainerClassName:x?.uniqueContainer,uniqueContainerStyle:S?.uniqueContainer},E),({open:e})=>{let t=h.Children.only(o),n={"aria-describedby":v&&e?w:void 0};return h.cloneElement(t,n)})});function dy(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}var fy=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=vc(s,`tooltip`),{arrowDistance:l=0,arrowShadow:u=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...bv(e,t,u?i:!1),"&:before":{background:t}}],[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${J(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${J(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}},[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a},[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}}}};function soe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=gr(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var py={left:{points:[`cr`,`cl`]},right:{points:[`cl`,`cr`]},top:{points:[`bc`,`tc`]},bottom:{points:[`tc`,`bc`]},topLeft:{points:[`bl`,`tl`]},leftTop:{points:[`tr`,`tl`]},topRight:{points:[`br`,`tr`]},rightTop:{points:[`tl`,`tr`]},bottomRight:{points:[`tr`,`br`]},rightBottom:{points:[`bl`,`br`]},bottomLeft:{points:[`tl`,`bl`]},leftBottom:{points:[`br`,`bl`]}},coe={topLeft:{points:[`bl`,`tc`]},leftTop:{points:[`tr`,`cl`]},topRight:{points:[`br`,`tc`]},rightTop:{points:[`tl`,`cr`]},bottomRight:{points:[`tr`,`bc`]},rightBottom:{points:[`bl`,`cr`]},bottomLeft:{points:[`tl`,`bc`]},leftBottom:{points:[`br`,`cl`]}},loe=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function my(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=dy({contentRadius:a,limitVerticalRadius:!0});return Object.keys(py).forEach(e=>{let a={...r&&coe[e]||py[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,loe.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=soe(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var hy=h.createContext(!1),gy=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return h.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},_y=`50%`,uoe=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,dropShadowPopover:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=vc(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${J(e.calc(u).div(2).equal())} ${J(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,_y),`var(--arrow-y, ${_y})`].join(` `)};return[{[n]:{...$a(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,filter:l,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,Vd(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...yc(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},fy(e,g(`arrow-background-color`),{arrowShadow:!1}),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),filter:l,"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},doe=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...dy({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...yv(Bo(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),vy=(e,t,n=!0)=>hc(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[uoe(Bo(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),yf(e,`zoom-big-fast`)]},doe,{resetStyle:!1,injectStyle:n})(e,t),foe=Zo.map(e=>`${e}-inverse`),poe=[`success`,`processing`,`error`,`default`,`warning`];function yy(e,t=!0){return t?[].concat(dr(foe),dr(Zo)).includes(e):Zo.includes(e)}function moe(e){return poe.includes(e)}var by=(e,t,n)=>{let r=yy(n),[i]=vc(e,`tooltip`),a=m({[`${t}-${n}`]:n&&r}),o={},s={},c=Rf(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},hoe=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=h.useContext(Fr),u=l(`tooltip`,t),d=l(),f=ng(u),[p,g]=vy(u,f),_=by(d,u,a),v=_.arrowStyle,y=h.useMemo(()=>({container:{...o,..._.overlayStyle}}),[o,_.overlayStyle]),b={...e,placement:r},[x,S]=Or([s],[y,c],{props:b}),C=m(f,p,g,u,`${u}-pure`,`${u}-placement-${r}`,n,_.className);return h.createElement(`div`,{className:C,style:v},h.createElement(`div`,{className:`${u}-arrow`}),h.createElement(oy,{...e,className:p,prefixCls:u,classNames:x,styles:S},i))},xy=h.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:g,autoAdjustOverflow:_=!0,motion:v,getPopupContainer:y,placement:b=`top`,mouseEnterDelay:x=.1,mouseLeaveDelay:S=.1,rootClassName:C,styles:w,classNames:T,onOpenChange:E,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=mc(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=Rr(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=gy(c,V),W=U.show,G=p||H||`hover`,K=y||N,q=u??!!l,ee=h.useContext(hy);Mr(`Tooltip`);let te=h.useRef(null),ne=()=>{te.current?.forceAlign()};h.useImperativeHandle(t,()=>({forceAlign:ne,nativeElement:te.current?.nativeElement,popupElement:te.current?.popupElement}));let[re,ie]=ve(e.defaultOpen??!1,e.open),ae=!d&&!f&&d!==0,oe=e=>{ie(ae?!1:e),!ae&&E&&E(e)},se=h.useMemo(()=>g||my({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:_,arrowWidth:W?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,g,j,W,_]),ce=h.useMemo(()=>d===0?d:f||d||``,[f,d]),le=h.createElement(G_,{space:!0,form:!0},_r(ce)?ce():ce),ue={...e,trigger:G,builtinPlacements:se,getPopupContainer:K,destroyOnHidden:q},[de,fe]=Or([z,T],[B,w],{props:ue}),pe=P(`tooltip`,n),me=P(),he=re;(!(`open`in e)&&ae||ee)&&(he=!1);let ge=h.isValidElement(o)&&!su(o)?o:h.createElement(`span`,null,o),_e=ge.props,ye=!_e.className||typeof _e.className==`string`?m(_e.className,r||`${pe}-open`):_e.className,be=ng(pe),[xe,Se]=vy(pe,be,!M),Ce=by(me,pe,a),we=Ce.arrowStyle,Te=m(be,xe,Se),Ee=m(k,{[`${pe}-rtl`]:F===`rtl`},Ce.className,C,Te,L,de.root),[De,Oe]=md(`Tooltip`,A.zIndex),ke={...fe.container,...D,...Ce.overlayStyle},Ae=h.createElement(ooe,{unique:!0,...A,zIndex:De,showArrow:W,placement:b,mouseEnterDelay:x,mouseLeaveDelay:S,prefixCls:pe,classNames:{root:Ee,container:de.container,arrow:de.arrow,uniqueContainer:m(Te,de.container)},styles:{root:{...we,...fe.root,...R,...O},container:ke,uniqueContainer:ke,arrow:fe.arrow},ref:te,overlay:le,visible:he,onVisibleChange:oe,afterVisibleChange:s,arrowContent:h.createElement(`span`,{className:`${pe}-arrow-content`}),motion:{motionName:Lf(me,`zoom-big-fast`,typeof v?.motionName==`string`?v?.motionName:void 0),motionDeadline:1e3},trigger:G,builtinPlacements:se,getTooltipContainer:K,destroyOnHidden:q},he?lu(ge,{className:ye}):ge);return h.createElement(cd.Provider,{value:Oe},Ae)});xy._InternalPanelDoNotUseOrYouWillBeFired=hoe,xy.UniqueProvider=pu;var goe=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=Wc(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:g,classNames:_,styles:v,tooltip:y}=h.useContext(um);if(!t)return null;let b=r||f||{},x=i||d,S=`${e}-item-label`,C=m(S,x===`left`&&`${S}-left`,b.className,{[`${S}-wrap`]:!!p}),w=t,T=a===!0||g!==!1&&a!==!1;T&&!l&&typeof t==`string`&&t.trim()&&(w=t.replace(/[:|]\s*$/,``));let E=ioe(c,y);if(E){let t=h.createElement(xy,{...E},h.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},E.icon||E.children||h.createElement(roe,null)));w=h.createElement(h.Fragment,null,w,t)}let D=s===`optional`,O=_r(s),k=s===!1;O?w=s(w,{required:!!o}):D&&!o&&(w=h.createElement(h.Fragment,null,w,h.createElement(`span`,{className:`${e}-item-optional`},u?.optional||Lc.Form?.optional)));let A;k?A=`hidden`:(D||O)&&(A=`optional`);let j=m(_?.label,{[`${e}-item-required`]:o,[`${e}-item-required-mark-${A}`]:A,[`${e}-item-no-colon`]:!T});return h.createElement(bg,{...b,className:C},h.createElement(`label`,{htmlFor:n,className:j,style:v?.label,title:typeof t==`string`?t:void 0},w))},_oe={success:q,warning:ce,error:ne,validating:jd};function Sy({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:i,prefixCls:a,meta:o,noStyle:s,name:c}){let l=`${a}-item`,{feedbackIcons:u}=h.useContext(um),d=ey(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:g,feedbackIcon:_,name:v}=h.useContext(fm),y=h.useMemo(()=>{let e;if(r){let i=r!==!0&&r.icons||u,a=d&&i?.({status:d,errors:t,warnings:n})?.[d],o=d?_oe[d]:null;e=a!==!1&&o?h.createElement(`span`,{className:m(`${l}-feedback-icon`,`${l}-feedback-icon-${d}`)},a||h.createElement(o,null)):null}let i={status:d||``,errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:e,isFormItemInput:!0,name:c};return s&&(i.status=(d??p)||``,i.isFormItemInput=f,i.hasFeedback=!!(r??g),i.feedbackIcon=r===void 0?_:i.feedbackIcon,i.name=c??v),i},[d,r,s,f,p]);return h.createElement(fm.Provider,{value:y},e)}function voe(e){let{prefixCls:t,className:n,rootClassName:r,style:i,help:a,errors:o,warnings:s,validateStatus:c,meta:l,hasFeedback:u,hidden:d,children:f,fieldId:p,required:g,isRequired:_,onSubItemMetaChange:v,layout:y,name:b,...x}=e,S=`${t}-item`,{requiredMark:C,layout:w}=h.useContext(um),T=y||w,E=T===`vertical`,D=h.useRef(null),O=zv(o),k=zv(s),A=fr(a)&&a!==!1,j=!!(A||o.length||s.length),M=!!D.current&&rt(D.current),[N,P]=h.useState(null);he(()=>{if(j&&D.current){let e=getComputedStyle(D.current);P(Number.parseInt(e.marginBottom,10))}},[j,M]);let F=e=>{e||P(null)},I=((e=!1)=>ey(e?O:l.errors,e?k:l.warnings,l,``,!!u,c))(),L=m(S,n,r,{[`${S}-with-help`]:A||O.length||k.length,[`${S}-has-feedback`]:I&&u,[`${S}-has-success`]:I===`success`,[`${S}-has-warning`]:I===`warning`,[`${S}-has-error`]:I===`error`,[`${S}-is-validating`]:I===`validating`,[`${S}-hidden`]:d,[`${S}-${T}`]:T});return h.createElement(`div`,{className:L,style:i,ref:D},h.createElement(Cg,{className:`${S}-row`,...Ht(x,`_internalItemRender.colon.dependencies.extra.fieldKey.getValueFromEvent.getValueProps.htmlFor.id.initialValue.isListField.label.labelAlign.labelCol.labelWrap.messageVariables.name.normalize.noStyle.preserve.requiredMark.rules.shouldUpdate.trigger.tooltip.validateFirst.validateTrigger.valuePropName.wrapperCol.validateDebounce`.split(`.`))},h.createElement(goe,{htmlFor:p,...e,requiredMark:C,required:g??_,prefixCls:t,vertical:E}),h.createElement(toe,{...e,...l,errors:O,warnings:k,prefixCls:t,status:I,help:a,marginBottom:N,onErrorVisibleChanged:F},h.createElement(ete.Provider,{value:v},h.createElement(Sy,{prefixCls:t,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:u,validateStatus:I,name:b},f)))),!!N&&h.createElement(`div`,{className:`${S}-margin-offset`,style:{marginBottom:-N}}))}var yoe=`__SPLIT__`;function boe(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{let r=e[n],i=t[n];return r===i||_r(r)||_r(i)})}var xoe=h.memo(e=>e.children,(e,t)=>boe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function Cy(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Soe(e){let{name:t,noStyle:n,className:r,dependencies:i,prefixCls:a,shouldUpdate:o,rules:s,children:c,required:l,label:u,messageVariables:d,trigger:f=`onChange`,validateTrigger:p,hidden:g,help:_,layout:v}=e,{getPrefixCls:y}=h.useContext(Fr),{name:b}=h.useContext(um),x=Yae(c),S=_r(x),C=h.useContext(ete),{validateTrigger:w}=h.useContext(dp),T=fr(p)?p:w,E=fr(t),D=y(`form`,a),O=ng(D),[k,A]=Uv(D,O);Mr(`Form.Item`);let j=h.useContext(fp),M=h.useRef(null),[N,P]=Xae({}),[F,I]=_e(()=>Cy()),L=e=>{let t=j?.getKey(e.name);if(I(e.destroy?Cy():e,!0),n&&_!==!1&&C){let n=e.name;if(e.destroy)n=M.current||n;else if(t!==void 0){let[e,r]=t;n=[e].concat(dr(r)),M.current=n}C(e,n)}},R=(e,t)=>{P(n=>{let r={...n},i=[].concat(dr(e.name.slice(0,-1)),dr(t)).join(yoe);return e.destroy?delete r[i]:r[i]=e,r})},[z,B]=h.useMemo(()=>{let e=dr(F.errors),t=dr(F.warnings);return Object.values(N).forEach(n=>{e.push.apply(e,dr(n.errors||[])),t.push.apply(t,dr(n.warnings||[]))}),[e,t]},[N,F.errors,F.warnings]),V=Zae();function H(i,a,o){return n&&!g?h.createElement(Sy,{prefixCls:D,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:z,warnings:B,noStyle:!0,name:t},i):h.createElement(voe,{key:`row`,...e,className:m(r,A,O,k),prefixCls:D,fieldId:a,isRequired:o,errors:z,warnings:B,meta:F,onSubItemMetaChange:R,layout:v,name:t},i)}if(!E&&!S&&!i)return H(x);let U={};return typeof u==`string`?U.label=u:t&&(U.label=String(t)),d&&(U={...U,...d}),h.createElement(Qp,{...e,messageVariables:U,trigger:f,validateTrigger:T,onMetaChange:L},(n,r,a)=>{let c=Qv(t).length&&r?r.name:[],u=$v(c,b),d=l===void 0?s?.some(e=>{if(gr(e)&&e.required&&!e.warningOnly)return!0;if(_r(e)){let t=e(a);return t?.required&&!t?.warningOnly}return!1}):l,p={...n},m=null;if(Array.isArray(x)&&E)m=x;else if(!(S&&(!(o||i)||E))&&!(i&&!S&&!E))if(h.isValidElement(x)){let t={...x.props,...p};if(t.id||=u,_||z.length>0||B.length>0||e.extra){let n=[];(_||z.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t[`aria-describedby`]=n.join(` `)}z.length>0&&(t[`aria-invalid`]=`true`),d&&(t[`aria-required`]=`true`),Le(x)&&(t.ref=V(c,x)),new Set([].concat(dr(Qv(f)),dr(Qv(T)))).forEach(e=>{t[e]=(...t)=>{p[e]?.(...t),x.props[e]?.(...t)}});let n=[t[`aria-required`],t[`aria-invalid`],t[`aria-describedby`]];m=h.createElement(xoe,{control:p,update:x,childProps:n},lu(x,t))}else m=S&&(o||i)&&!E?x(a):x;return H(m,u,d)})}var wy=Soe;wy.useStatus=iy;var Coe=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=h.useContext(Fr),i=r(`form`,e),a=h.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return h.createElement($p,{...n},(e,n,r)=>h.createElement(dm.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function woe(){let{form:e}=h.useContext(um);return e}var Ty=Jae;Ty.Item=wy,Ty.List=Coe,Ty.ErrorList=Kv,Ty.useForm=ry,Ty.useFormInstance=woe,Ty.useWatch=cm,Ty.Provider=tte;function Ey(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function Dy(e){return e?mr(e):!1}var Toe=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=vc(f,`space-addon`);return{[t]:[{...$a(e),display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},Eoe=hc(`Addon`,e=>[Toe(e),$f(e,{focus:!1})]),Oy=h.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=h.useContext(Fr),f=u(`space-addon`,a),[p,g]=Eoe(f),{compactItemClassnames:_,compactSize:v}=_d(f,d),y=K_(f,c),b=m(f,p,_,g,`${f}-variant-${o}`,y,{[`${f}-${v}`]:v,[`${f}-disabled`]:s},n);return h.createElement(`div`,{ref:t,className:b,style:i,...l},r)}),ky=h.createContext({latestIndex:0}),Doe=ky.Provider,Ooe=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=h.useContext(ky);return pr(i)?h.createElement(h.Fragment,null,h.createElement(`div`,{className:t,style:o},i),r<l&&a&&h.createElement(`span`,{className:m(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},koe=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},Aoe=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},joe=hc(`Space`,e=>{let t=Bo(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[koe(t),Aoe(t)]},()=>({}),{resetStyle:!1}),Ay=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Rr(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:g,orientation:_,prefixCls:v,split:y,separator:b,style:x,vertical:S,wrap:C=!1,classNames:w,styles:T,...E}=e,[D,O]=Array.isArray(l)?l:[l,l],k=Ey(O),A=Ey(D),j=Dy(O),M=Dy(D),N=tn(p,{keepEmpty:!0}),[P,F]=id(_,S,g),I=u===void 0&&!F?`center`:u,L=b??y,R=n(`space`,v),[z,B]=joe(R),V={...e,size:l,orientation:P,align:I},[H,U]=Or([s,w],[c,T],{props:V}),W=m(R,a,z,`${R}-${P}`,{[`${R}-rtl`]:r===`rtl`,[`${R}-align-${I}`]:I,[`${R}-gap-row-${O}`]:k,[`${R}-gap-col-${D}`]:A},d,f,B,H.root),G=m(`${R}-item`,H.item),K=N.map((e,t)=>{let n=e?.key||`${G}-${t}`;return h.createElement(Ooe,{prefix:R,classNames:H,styles:U,className:G,key:n,index:t,separator:L,style:U.item},e)}),q=h.useMemo(()=>({latestIndex:N.reduce((e,t,n)=>pr(t)?n:e,0)}),[N]);if(N.length===0)return null;let ee={};return C&&(ee.flexWrap=`wrap`),!A&&M&&(ee.columnGap=D),!k&&j&&(ee.rowGap=O),h.createElement(`div`,{ref:t,className:W,style:{...ee,...U.root,...o,...x},...E},h.createElement(Doe,{value:q},K))});Ay.Compact=bd,Ay.Addon=Oy;var Moe=e=>{let{getPrefixCls:t,direction:n}=(0,h.useContext)(Fr),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=vv(t(`input`)),c=m(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,h.useContext)(fm),u=(0,h.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return h.createElement(fm.Provider,{value:u},h.createElement(Ay.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))};function Noe(e){return!!(e.addonBefore||e.addonAfter)}function Poe(e){return!!(e.prefix||e.suffix||e.allowClear)}function jy(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function My(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=jy(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=jy(t,e,r),n(i);return}n(i)}function Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ny.apply(this,arguments)}var Py=h.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:g,allowClear:_,value:v,handleReset:y,hidden:b,classes:x,classNames:S,dataAttrs:C,styles:w,components:T,onClear:E}=e,D=r??n,O=T?.affixWrapper||`span`,k=T?.groupWrapper||`span`,A=T?.wrapper||`span`,j=T?.groupAddon||`span`,M=(0,h.useRef)(null),N=e=>{M.current?.contains(e.target)&&g?.()},P=Poe(e),F=(0,h.cloneElement)(D,{value:v,className:m(D.props?.className,!P&&S?.variant)||null}),I=(0,h.useRef)(null);if(h.useImperativeHandle(t,()=>({nativeElement:I.current||M.current})),P){let e=null;if(_){let t=!d&&!f&&v&&!(typeof _==`object`&&_.disabled),n=`${i}-clear-icon`,r=typeof _==`object`&&_?.clearIcon?_.clearIcon:`✖`;e=h.createElement(`button`,{type:`button`,onClick:e=>{y?.(e),E?.()},onMouseDown:e=>e.preventDefault(),className:m(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o},S?.clear),style:w?.clear},r)}let t=`${i}-affix-wrapper`,n=m(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&_&&v},x?.affixWrapper,S?.affixWrapper,S?.variant),r=(o||_)&&h.createElement(`span`,{className:m(`${i}-suffix`,S?.suffix),style:w?.suffix},e,o);F=h.createElement(O,Ny({className:n,style:w?.affixWrapper,onClick:N},C?.affixWrapper,{ref:M}),a&&h.createElement(`span`,{className:m(`${i}-prefix`,S?.prefix),style:w?.prefix},a),F,r)}if(Noe(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=m(`${i}-wrapper`,e,x?.wrapper,S?.wrapper),a=m(n,{[`${n}-disabled`]:d},x?.group,S?.groupWrapper);F=h.createElement(k,{className:a,ref:I},h.createElement(A,{className:r},s&&h.createElement(j,{className:t},s),F,c&&h.createElement(j,{className:t},c)))}return h.cloneElement(F,{className:m(F.props?.className,l)||null,style:{...F.props?.style,...u},hidden:b})});function Fy(e,t){return h.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function Iy({countConfig:e,value:t,maxLength:n}){return h.useMemo(()=>{let r=e.max??n,i=e.strategy(t),a=!!r&&i>r,o=Number(r)>0;return{mergedMax:r,isOutOfRange:a,dataCount:e.show?e.showFormatter?e.showFormatter({value:t,count:i,maxLength:r}):`${i}${o?` / ${r}`:``}`:void 0}},[e,n,t])}function Ly({countConfig:e,getTarget:t}){let[n,r]=h.useState(null),i=h.useRef(t);return h.useEffect(()=>{i.current=t},[t]),h.useEffect(()=>{n&&(i.current()?.setSelectionRange(...n),r(null))},[n]),h.useCallback((t,n)=>{let a=t;return!n&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(a=e.exceedFormatter(t,{max:e.max}),t!==a&&r([i.current()?.selectionStart||0,i.current()?.selectionEnd||0])),a},[e])}function Ry(e,t){let[n,r]=ve(e,t);return{value:n,setValue:r,formatValue:n==null?``:String(n)}}function zy(){return zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zy.apply(this,arguments)}var Foe=(0,h.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:g,showCount:_,count:v,type:y=`text`,classes:b,classNames:x,styles:S,onCompositionStart:C,onCompositionEnd:w,...T}=e,[E,D]=(0,h.useState)(!1),O=(0,h.useRef)(!1),k=(0,h.useRef)(!1),A=(0,h.useRef)(null),j=(0,h.useRef)(null),M=e=>{A.current&&ot(A.current,e)},{setValue:N,formatValue:P}=Ry(e.defaultValue,e.value),F=Fy(v,_),{isOutOfRange:I,dataCount:L}=Iy({countConfig:F,value:P,maxLength:p}),R=Ly({countConfig:F,getTarget:()=>A.current});(0,h.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,h.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let z=(e,t,n)=>{let i=R(t,O.current);n.source===`compositionEnd`&&t===i||(N(i),A.current&&My(A.current,e,r,i))},B=e=>{z(e,e.target.value,{source:`change`})},V=e=>{O.current=!1,z(e,e.currentTarget.value,{source:`compositionEnd`}),w?.(e)},H=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},U=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},W=e=>{D(!0),i?.(e)},G=e=>{k.current&&=!1,D(!1),a?.(e)},K=e=>{N(``),M(),A.current&&My(A.current,e,r)},q=I&&`${l}-out-of-range`;return h.createElement(Py,zy({},T,{prefixCls:l,className:m(f,q),handleReset:K,value:P,focused:E,triggerFocus:M,suffix:g||F.show?h.createElement(h.Fragment,null,F.show&&h.createElement(`span`,{className:m(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!g},x?.count),style:{...S?.count}},L),g):null,disabled:u,classes:b,classNames:x,styles:S,ref:j}),(()=>{let t=Ht(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return h.createElement(`input`,zy({autoComplete:n},t,{onChange:B,onFocus:W,onBlur:G,onKeyDown:H,onKeyUp:U,className:m(l,{[`${l}-disabled`]:u},x?.input),style:S?.input,ref:A,size:d,type:y,onCompositionStart:e=>{O.current=!0,C?.(e)},onCompositionEnd:V}))})())}),Ioe=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,Loe=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],By={},Vy;function Roe(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&By[n])return By[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:Loe.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(By[n]=s),s}function zoe(e,t=!1,n=null,r=null){Vy||(Vy=document.createElement(`textarea`),Vy.setAttribute(`tab-index`,`-1`),Vy.setAttribute(`aria-hidden`,`true`),Vy.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(Vy)),e.getAttribute(`wrap`)?Vy.setAttribute(`wrap`,e.getAttribute(`wrap`)):Vy.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=Roe(e,t);Vy.setAttribute(`style`,`${s};${Ioe}`),Vy.value=e.value||e.placeholder||``;let c,l,u,d=Vy.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){Vy.value=` `;let e=Vy.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?void 0:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hy.apply(this,arguments)}var Uy=0,Wy=1,Gy=2,Boe=h.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,g]=ve(r,i),_=p??``,v=e=>{g(e.target.value),u?.(e)},y=h.useRef(null);h.useImperativeHandle(t,()=>({textArea:y.current}));let[b,x]=h.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),S=!!a,[C,w]=h.useState(Gy),[T,E]=h.useState(),D=()=>{w(Uy)};he(()=>{S&&D()},[i,b,x,S]),he(()=>{if(C===Uy)w(Wy);else if(C===Wy){let e=zoe(y.current,!1,b,x);w(Gy),E(e)}},[C]);let O=h.useRef(void 0),k=()=>{O.current!==void 0&&en.cancel(O.current)},A=e=>{C===Gy&&(o?.(e),a&&(k(),O.current=en(()=>{D()})))};h.useEffect(()=>k,[]);let j=S?T:null,M={...c,...j};return(C===Uy||C===Wy)&&(M.overflowY=`hidden`,M.overflowX=`hidden`),h.createElement(El,{onResize:A,disabled:!(a||o)},h.createElement(`textarea`,Hy({},f,{ref:y,style:M,className:m(n,s,{[`${n}-disabled`]:l}),disabled:l,value:_,onChange:v})))});function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ky.apply(this,arguments)}var Voe=h.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:g,disabled:_,hidden:v,classNames:y,styles:b,onResize:x,onClear:S,onPressEnter:C,readOnly:w,autoSize:T,onKeyDown:E,...D},O)=>{let[k,A]=h.useState(!1),j=h.useRef(!1),[M,N]=h.useState(null),P=(0,h.useRef)(null),F=(0,h.useRef)(null),I=()=>F.current?.textArea||null,{setValue:L,formatValue:R}=Ry(e,t),z=Fy(f,d),{isOutOfRange:B,dataCount:V}=Iy({countConfig:z,value:R,maxLength:o}),H=Ly({countConfig:z,getTarget:()=>F.current?.textArea||null}),U=()=>{I()?.focus()};(0,h.useImperativeHandle)(O,()=>({resizableTextArea:F.current,focus:U,blur:()=>{I()?.blur()},nativeElement:P.current?.nativeElement||I()})),(0,h.useEffect)(()=>{A(e=>!_&&e)},[_]);let W=(e,t)=>{let n=H(t,j.current);L(n),My(e.currentTarget,e,i,n)},G=e=>{j.current=!0,s?.(e)},K=e=>{j.current=!1,W(e,e.currentTarget.value),c?.(e)},q=e=>{W(e,e.target.value)},ee=e=>{e.key===`Enter`&&C&&!e.nativeEvent.isComposing&&C(e),E?.(e)},te=e=>{A(!0),n?.(e)},ne=e=>{A(!1),r?.(e)},re=e=>{L(``),U();let t=I();t&&My(t,e,i)},ie=l;z.show&&(ie=h.createElement(h.Fragment,null,ie,h.createElement(`span`,{className:m(`${u}-data-count`,y?.count),style:b?.count},V)));let ae=e=>{x?.(e),I()?.style.height&&N(!0)},oe=!T&&!d&&!a;return h.createElement(Py,{ref:P,value:R,allowClear:a,handleReset:re,suffix:ie,prefixCls:u,classNames:{...y,affixWrapper:m(y?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:_,focused:k,className:m(p,B&&`${u}-out-of-range`),style:{...g,...M&&!oe?{height:`auto`}:{}},dataAttrs:typeof V==`string`?{affixWrapper:{"data-count":V}}:void 0,styles:b,hidden:v,readOnly:w,onClear:S},h.createElement(Boe,Ky({},D,{autoSize:T,maxLength:o,onKeyDown:ee,onChange:q,onFocus:te,onBlur:ne,onCompositionStart:G,onCompositionEnd:K,className:m(y?.textarea),style:{resize:g?.resize,...b?.textarea},disabled:_,prefixCls:u,onResize:ae,ref:F,readOnly:w})))}),Hoe=Foe;function qy(e,t){let n=(0,h.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,h.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function Uoe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Jy=(0,h.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:g,styles:_,rootClassName:v,onChange:y,classNames:b,variant:x,...S}=e,{getPrefixCls:C,direction:w,allowClear:T,autoComplete:E,className:D,style:O,classNames:k,styles:A}=Rr(`input`),j=C(`input`,n),M=(0,h.useRef)(null),N=ng(j),[P,F]=_v(j,v);vv(j,N);let{compactSize:I,compactItemClassnames:L}=_d(j,w),R=Wu(e=>a??I??e),z=h.useContext(mu),B=o??z,V={...e,size:R,disabled:B},H=Er(O),U=Er(g),[W,G]=Or([k,b],[A,H,_,U],{props:V}),{status:K,hasFeedback:q,feedbackIcon:ee}=(0,h.useContext)(fm),te=q_(K,i);(0,h.useRef)(Uoe(e)||!!q);let ne=qy(M,!0),re=e=>{ne(),s?.(e)},ie=e=>{ne(),c?.(e)},ae=e=>{ne(),y?.(e)},oe=(q||l)&&h.createElement(h.Fragment,null,l,q&&ee),se=Ku({allowClear:u,contextAllowClear:T,componentName:`Input`}),[ce,le]=pm(`input`,x,r);return h.createElement(Hoe,{ref:Fe(t,M),prefixCls:j,autoComplete:E,...S,disabled:B,onBlur:re,onFocus:ie,style:G.root,styles:G,suffix:oe,allowClear:se,className:m(p,v,F,N,L,D,W.root),onChange:ae,addonBefore:f&&h.createElement(G_,{form:!0,space:!0},f),addonAfter:d&&h.createElement(G_,{form:!0,space:!0},d),classNames:{...W,input:m({[`${j}-sm`]:R===`small`,[`${j}-lg`]:R===`large`,[`${j}-rtl`]:w===`rtl`},W.input,P),variant:m({[`${j}-${ce}`]:le},K_(j,te)),affixWrapper:m({[`${j}-affix-wrapper-sm`]:R===`small`,[`${j}-affix-wrapper-lg`]:R===`large`,[`${j}-affix-wrapper-rtl`]:w===`rtl`},P),wrapper:m({[`${j}-group-rtl`]:w===`rtl`},P),groupWrapper:m({[`${j}-group-wrapper-sm`]:R===`small`,[`${j}-group-wrapper-lg`]:R===`large`,[`${j}-group-wrapper-rtl`]:w===`rtl`,[`${j}-group-wrapper-${ce}`]:le},K_(`${j}-group-wrapper`,te,q),P)}})}),Woe=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Goe=hc([`Input`,`OTP`],e=>Woe(Bo(e,Y_(e))),X_),Koe=h.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=h.useContext(Fr),d=u(`otp`),f=typeof s==`string`?s:r,p=h.useRef(null);h.useImperativeHandle(t,()=>p.current);let g=e=>{i(o,e.target.value)},_=()=>{en(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},v=e=>{c?.(e),_()},y=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),_()};return h.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&h.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),h.createElement(Jy,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:g,onFocus:v,onKeyDown:y,onMouseDown:_,onMouseUp:_,className:m(n,{[`${d}-mask-input`]:s})}))});function Yy(e){return(e||``).split(``)}var qoe=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=_r(r)?r(t):r;return o?h.createElement(`span`,{className:m(`${n}-separator`,i),style:a},o):null},Joe=h.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:g,type:_,autoComplete:v,onInput:y,onFocus:b,inputMode:x,classNames:S,styles:C,className:w,style:T,...E}=e,{classNames:D,styles:O,getPrefixCls:k,direction:A,style:j,className:M}=Rr(`otp`),N=k(`otp`,n),P={...e,length:r},F=Er(j),I=Er(T),[L,R]=Or([D,S],[O,F,C,I],{props:P}),z=qt(E,{aria:!0,data:!0,attr:!0}),[B,V]=Goe(N),H=Wu(e=>i??e),U=h.useContext(fm),W=q_(U.status,f),G=h.useMemo(()=>({...U,status:W,hasFeedback:!1,feedbackIcon:null}),[U,W]),K=h.useRef(null),q=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{q.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)q.current[e]?.blur()},nativeElement:K.current}));let ee=e=>c?c(e):e,[te,ne]=h.useState(()=>Yy(ee(a||``)));h.useEffect(()=>{o!==void 0&&ne(Yy(o))},[o]);let re=fe(e=>{ne(e),y&&y(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>te[t]!==e)&&s(e.join(``))}),ie=fe((e,t)=>{let n=dr(te);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat(Yy(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=Yy(ee(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),ae=(e,t)=>{let n=ie(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&q.current[i]?.focus(),re(n)},oe=e=>{q.current[e]?.focus()},se=(e,t)=>{for(let e=0;e<t;e+=1)if(!q.current[e]?.input?.value){q.current[e]?.focus();break}b?.(e)},ce={variant:u,disabled:d,status:W,mask:g,type:_,inputMode:x,autoComplete:v};return h.createElement(`div`,{...z,ref:K,className:m(w,N,{[`${N}-sm`]:H===`small`,[`${N}-lg`]:H===`large`,[`${N}-rtl`]:A===`rtl`},V,B,M,L.root),style:R.root,role:`group`},h.createElement(fm.Provider,{value:G},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=te[t]||``;return h.createElement(h.Fragment,{key:n},h.createElement(Koe,{ref:e=>{q.current[t]=e},index:t,size:H,htmlSize:1,className:m(L.input,`${N}-input`),style:R.input,onChange:ae,value:i,onActiveChange:oe,autoFocus:t===0&&p,onFocus:e=>se(e,t),...ce}),t<r-1&&h.createElement(qoe,{separator:l,index:t,prefixCls:N,className:m(L.separator),style:R.separator}))})))}),Yoe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z`}},{tag:`path`,attrs:{d:`M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z`}}]},name:`eye-invisible`,theme:`outlined`}}))());function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xy.apply(this,arguments)}var Xoe=h.forwardRef((e,t)=>h.createElement(W,Xy({},e,{ref:t,icon:Yoe.default}))),Zoe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z`}}]},name:`eye`,theme:`outlined`}}))());function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zy.apply(this,arguments)}var Qy=h.forwardRef((e,t)=>h.createElement(W,Zy({},e,{ref:t,icon:Zoe.default}))),Qoe=e=>e?h.createElement(Qy,null):h.createElement(Xoe,null),$oe={click:`onClick`,hover:`onMouseOver`},ese=h.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a,prefixCls:o,inputPrefixCls:s,suffix:c,className:l,style:u,classNames:d,styles:f,...p}=e,{getPrefixCls:g,className:_,style:v,classNames:y,styles:b,iconRender:x}=Rr(`inputPassword`),[S]=Wc(`global`),C=h.useContext(mu),w=n??C,T={...e,disabled:w},[E,D]=Or([y,d],[b,f],{props:T}),O=gr(i)&&i.visible!==void 0,[k,A]=(0,h.useState)(()=>O?i.visible:!1),j=(0,h.useRef)(null);h.useEffect(()=>{O&&A(i.visible)},[O,i]);let M=qy(j),N=()=>{if(w)return;k&&M();let e=!k;A(e),gr(i)&&i.onVisibleChange?.(e)},P=e=>{let t=$oe[r]||``,n=(a||x||Qoe)(k),o=gr(i)?i.tabIndex:void 0;return h.createElement(`span`,{key:`passwordIcon`,role:`button`,tabIndex:w?-1:o??0,className:`${e}-icon`,"aria-disabled":w,"aria-pressed":k,"aria-label":k?S.hide:S.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),N())},[t]:N},n)},F=g(`input`,s),I=g(`input-password`,o),L=i&&P(I),R=m(I,_,l,{[`${I}-${e.size}`]:!!e.size}),z={...p,type:k?`text`:`password`,prefixCls:F,suffix:h.createElement(h.Fragment,null,L,c),disabled:w,className:R,style:{...v,...u},classNames:E,styles:D};return h.createElement(Jy,{ref:Fe(t,j),...z})}),tse=e=>{let{componentCls:t,antCls:n,calc:r,max:i}=e,a=`${t}-btn`,[o,s]=vc(n,`input-search`),c=e.inputFontSizeSM??e.fontSize,l=i(e.controlHeightSM,r(c).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[o(`btn-height`)]:J(e.controlHeight),width:`100%`,[a]:{height:s(`btn-height`),[`&${n}-btn-icon-only`]:{width:s(`btn-height`)},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[o(`btn-height`)]:J(e.controlHeightLG)},[`&${t}-small`]:{[o(`btn-height`)]:J(e.controlHeightSM)},[`&${t}-small ${a}`]:{minHeight:l,[`&${e.antCls}-btn-icon-only`]:{minWidth:l}}}}},nse=hc([`Input`,`Search`],e=>tse(Bo(e,Y_(e))),X_),rse=h.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,searchIcon:c,addonAfter:l,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:g,onCompositionEnd:_,variant:v,onPressEnter:y,classNames:b,styles:x,hidden:S,...C}=e,{direction:w,getPrefixCls:T,className:E,style:D,classNames:O,styles:k,searchIcon:A}=Rr(`inputSearch`),j={...e,enterButton:s},[M,N]=Or([O,b],[k,x],{props:j},{button:{_default:`root`}}),P=h.useRef(!1),F=T(`input-search`,n),I=T(`input`,r),[L,R]=nse(F),{compactSize:z}=_d(F,w),B=Wu(e=>a??z??e),V=h.useRef(null),H=e=>{e?.target&&e.type===`click`&&f&&f(e.target.value,e,{source:`clear`}),p?.(e)},U=e=>{document.activeElement===V.current?.input&&e.preventDefault()},W=e=>{f&&f(V.current?.input?.value,e,{source:`input`})},G=e=>{P.current||u||(y?.(e),W(e))},K=typeof s==`boolean`?Gu(c,A,h.createElement(kv,null)):null,q=`${F}-btn`,ee=m(q,{[`${q}-${v}`]:v}),te,ne=s||{},re=ne.type&&ne.type.__ANT_BUTTON===!0;if(re||ne.type===`button`){let e=ne.props;te=lu(ne,{onMouseDown:U,onClick:e=>{ne?.props?.onClick?.(e),W(e)},key:`enterButton`,...re?{className:m(ee,e.className),size:B}:{}})}else te=h.createElement(sp,{classNames:M.button,styles:N.button,className:ee,color:s?`primary`:`default`,size:B,disabled:d,key:`enterButton`,onMouseDown:U,onClick:W,loading:u,icon:K,variant:v===`borderless`||v===`filled`||v===`underlined`?`text`:s?`solid`:void 0},s);l&&(te=[te,lu(l,{key:`addonAfter`})]);let ie=m(F,R,{[`${F}-rtl`]:w===`rtl`,[`${F}-${B}`]:!!B,[`${F}-with-button`]:!!s},i,E,L,M.root),ae=e=>{P.current=!0,g?.(e)},oe=e=>{P.current=!1,_?.(e)},se=qt(C,{data:!0}),ce=Ht({...C,classNames:Ht(M,[`button`,`root`]),styles:Ht(N,[`button`,`root`]),prefixCls:I,type:`search`,size:B,variant:v,onPressEnter:G,onCompositionStart:ae,onCompositionEnd:oe,onChange:H,disabled:d},Object.keys(se));return h.createElement(bd,{className:ie,style:{...N.root,...D,...o},...se,hidden:S},h.createElement(Jy,{ref:Fe(V,t),...ce}),te)}),ise=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},ase=hc([`Input`,`TextArea`],e=>ise(Bo(e,Y_(e))),X_,{resetFont:!1}),$y=(0,h.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:g,onMouseDown:_,onResize:v,...y}=e,{getPrefixCls:b,direction:x,allowClear:S,autoComplete:C,className:w,style:T,classNames:E,styles:D}=Rr(`textArea`),O=h.useContext(mu),k=a??O,{status:A,hasFeedback:j,feedbackIcon:M}=h.useContext(fm),N=q_(A,o),P=Er(T),F=Er(d),[I,L]=Or([E,c],[D,P,f,F],{props:e}),R=h.useRef(null);h.useImperativeHandle(t,()=>({resizableTextArea:R.current?.resizableTextArea,focus:e=>{ot(R.current?.resizableTextArea?.textArea,e)},blur:()=>R.current?.blur(),nativeElement:R.current?.nativeElement||null}));let z=b(`input`,n),B=ng(z),[V,H]=_v(z,l);ase(z,B);let{compactSize:U,compactItemClassnames:W}=_d(z,x),G=Wu(e=>i??U??e),[K,q]=pm(`textArea`,p,r),ee=Ku({allowClear:s,contextAllowClear:S,componentName:`TextArea`}),[te,ne]=h.useState(!1),[re,ie]=h.useState(!1),ae=e=>{ne(!0),_?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},oe=e=>{if(v?.(e),te&&_r(getComputedStyle)){let e=R.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ie(!0)}};return h.createElement(Voe,{autoComplete:C,...y,style:L.root,styles:L,disabled:k,allowClear:ee,className:m(H,B,u,l,W,w,I.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...I,textarea:m({[`${z}-sm`]:G===`small`,[`${z}-lg`]:G===`large`},V,I.textarea,te&&`${z}-mouse-active`),variant:m({[`${z}-${K}`]:q},K_(z,N)),affixWrapper:m(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:x===`rtl`,[`${z}-affix-wrapper-sm`]:G===`small`,[`${z}-affix-wrapper-lg`]:G===`large`,[`${z}-textarea-show-count`]:g||e.count?.show},V)},prefixCls:z,suffix:j&&h.createElement(`span`,{className:`${z}-textarea-suffix`},M),showCount:g,ref:R,onResize:oe,onMouseDown:ae})}),eb=Jy;eb.Group=Moe,eb.Search=rse,eb.TextArea=$y,eb.Password=ese,eb.OTP=Joe;var ose=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`minus`,theme:`outlined`}}))());function tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tb.apply(this,arguments)}var sse=h.forwardRef((e,t)=>h.createElement(W,tb({},e,{ref:t,icon:ose.default}))),cse=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z`}}]},name:`up`,theme:`outlined`}}))());function nb(){return nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nb.apply(this,arguments)}var lse=h.forwardRef((e,t)=>h.createElement(W,nb({},e,{ref:t,icon:cse.default})));function rb(){return typeof BigInt==`function`}function ib(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ab(e){var t=e.trim(),n=t.startsWith(`-`);n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,`$1`).replace(/\.0*$/,``).replace(/^0+/,``),t.startsWith(`.`)&&(t=`0${t}`);var r=t||`0`,i=r.split(`.`),a=i[0]||`0`,o=i[1]||`0`;a===`0`&&o===`0`&&(n=!1);var s=n?`-`:``;return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:`${s}${r}`}}function ob(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes(`e`)}function sb(e){var t=mo(e.toLowerCase().split(`e`),2),n=t[0],r=t[1],i=r===void 0?`0`:r,a=n.startsWith(`-`),o=mo((a?n.slice(1):n).split(`.`),2),s=o[0],c=s===void 0?`0`:s,l=o[1],u=l===void 0?``:l;return{decimal:u,digits:`${c}${u}`.replace(/^0+/,``)||`0`,exponent:Number(i),integer:c,negative:a}}function use(e){var t=e.decimal,n=e.digits,r=e.exponent,i=e.integer,a=e.negative;if(n===`0`)return`0`;var o=i.replace(/^0+/,``).length,s=(t.match(/^0*/)||[``])[0].length,c=(o||-s)+r,l=``;return l=c<=0?`0.${`0`.repeat(-c)}${n}`:c>=n.length?`${n}${`0`.repeat(c-n.length)}`:`${n.slice(0,c)}.${n.slice(c)}`,`${a?`-`:``}${l}`}function cb(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function lb(e){var t=String(e);return ob(e)?cb(sb(t)):t.includes(`.`)&&db(t)?t.length-t.indexOf(`.`)-1:0}function ub(e){var t=String(e);if(ob(e)){if(e>2**53-1)return String(rb()?BigInt(e).toString():2**53-1);if(e<-(2**53-1))return String(rb()?BigInt(e).toString():-(2**53-1));var n=sb(t),r=cb(n);t=r>100?use(n):e.toFixed(r)}return ab(t).fullStr}function db(e){return typeof e==`number`?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var dse=function(){function e(t){if(bo(this,e),_o(this,`origin`,``),_o(this,`negative`,void 0),_o(this,`integer`,void 0),_o(this,`decimal`,void 0),_o(this,`decimalLen`,void 0),_o(this,`empty`,void 0),_o(this,`nan`,void 0),ib(t)){this.empty=!0;return}if(this.origin=String(t),t===`-`||Number.isNaN(t)){this.nan=!0;return}var n=t;if(ob(n)&&(n=Number(n)),n=typeof n==`string`?n:ub(n),db(n)){var r=ab(n);this.negative=r.negative;var i=r.trimStr.split(`.`);this.integer=BigInt(i[0]);var a=i[1]||`0`;this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return So(e,[{key:`getMark`,value:function(){return this.negative?`-`:``}},{key:`getIntegerStr`,value:function(){return this.integer.toString()}},{key:`getDecimalStr`,value:function(){return this.decimal.toString().padStart(this.decimalLen,`0`)}},{key:`alignDecimal`,value:function(e){var t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,`0`)}`;return BigInt(t)}},{key:`negate`,value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:`cal`,value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),o=r(i),s=ab(a),c=`${s.negativeStr}${s.trimStr.padStart(o+1,`0`)}`;return new e(`${c.slice(0,-o)}.${c.slice(-o)}`)}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:`multi`,value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return e*2})}},{key:`isEmpty`,value:function(){return this.empty}},{key:`isNaN`,value:function(){return this.nan}},{key:`isInvalidate`,value:function(){return this.isEmpty()||this.isNaN()}},{key:`equals`,value:function(e){return this.toString()===e?.toString()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:ab(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}]),e}(),fse=function(){function e(t){if(bo(this,e),_o(this,`origin`,``),_o(this,`number`,void 0),_o(this,`empty`,void 0),ib(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return So(e,[{key:`negate`,value:function(){return new e(-this.toNumber())}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(lb(this.number),lb(n));return new e(r.toFixed(i))}},{key:`multi`,value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(lb(this.number),lb(n));return new e(r.toFixed(i))}},{key:`isEmpty`,value:function(){return this.empty}},{key:`isNaN`,value:function(){return Number.isNaN(this.number)}},{key:`isInvalidate`,value:function(){return this.isEmpty()||this.isNaN()}},{key:`equals`,value:function(e){return this.toNumber()===e?.toNumber()}},{key:`lessEquals`,value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:`toNumber`,value:function(){return this.number}},{key:`toString`,value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:ob(this.number)&&lb(this.number)>100?String(this.number):ub(this.number):this.origin}}]),e}();function fb(e){return rb()?new dse(e):new fse(e)}function pb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===``)return``;var i=ab(e),a=i.negativeStr,o=i.integerStr,s=i.decimalStr,c=`${t}${s}`,l=`${a}${o}`;if(n>=0){var u=Number(s[n]);return u>=5&&!r?pb(fb(e).add(`${a}0.${`0`.repeat(n)}${10-u}`).toString(),t,n,r):n===0?l:`${l}${t}${s.padEnd(n,`0`).slice(0,n)}`}return c===`.0`?l:`${l}${c}`}var mb=fb;function pse(e,t){let n=(0,h.useRef)(null);function r(){try{let{selectionStart:t,selectionEnd:r,value:i}=e;n.current={start:t,end:r,value:i,beforeTxt:i.substring(0,t),afterTxt:i.substring(r)}}catch{}}function i(){if(e&&n.current&&t)try{let{value:t}=e,{beforeTxt:r,afterTxt:i,start:a}=n.current,o=t.length;if(t.startsWith(r))o=r.length;else if(t.endsWith(i))o=t.length-n.current.afterTxt.length;else{let e=r[a-1],n=t.indexOf(e,a-1);n!==-1&&(o=n+1)}e.setSelectionRange(o,o)}catch(e){Lt(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}return[r,i]}var mse=200,hse=600;function hb({prefixCls:e,action:t,children:n,disabled:r,className:i,style:a,onStep:o}){let s=t===`up`,c=h.useRef(),l=h.useRef([]),u=()=>{clearTimeout(c.current)},d=e=>{e.preventDefault(),u(),o(s,`handler`);function t(){o(s,`handler`),c.current=setTimeout(t,mse)}c.current=setTimeout(t,hse)};h.useEffect(()=>()=>{u(),l.current.forEach(e=>{en.cancel(e)})},[]);let f=`${e}-action`,p=m(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:r},i),g=()=>l.current.push(en(u));return h.createElement(`span`,{unselectable:`on`,role:`button`,onMouseUp:g,onMouseLeave:g,onMouseDown:e=>{d(e)},"aria-label":s?`Increase Value`:`Decrease Value`,"aria-disabled":r,className:p,style:a},n||h.createElement(`span`,{unselectable:`on`,className:`${e}-action-${t}-inner`}))}function gb(e){let t=typeof e==`number`?ub(e):ab(e).fullStr;return t.includes(`.`)?ab(t.replace(/(\d)\.(\d)/g,`$1$2.`)).fullStr:e+`0`}var gse=(()=>{let e=(0,h.useRef)(0),t=()=>{en.cancel(e.current)};return(0,h.useEffect)(()=>t,[]),n=>{t(),e.current=en(()=>{n()})}});function _b(){return _b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_b.apply(this,arguments)}var vb=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),yb=e=>{let t=mb(e);return t.isInvalidate()?null:t},_se=h.forwardRef((e,t)=>{let{mode:n=`input`,prefixCls:r=`rc-input-number`,className:i,style:a,classNames:o,styles:s,min:c,max:l,step:u=1,defaultValue:d,value:f,disabled:p,readOnly:g,upHandler:_,downHandler:v,keyboard:y,changeOnWheel:b=!1,controls:x=!0,prefix:S,suffix:C,stringMode:w,parser:T,formatter:E,precision:D,decimalSeparator:O,onChange:k,onInput:A,onPressEnter:j,onStep:M,onMouseDown:N,onClick:P,onMouseUp:F,onMouseLeave:I,onMouseMove:L,onMouseEnter:R,onMouseOut:z,changeOnBlur:B=!0,...V}=e,[H,U]=h.useState(!1),W=h.useRef(!1),G=h.useRef(!1),K=h.useRef(!1),q=h.useRef(null),ee=h.useRef(null);h.useImperativeHandle(t,()=>Jt(ee.current,{focus:e=>{ot(ee.current,e)},blur:()=>{ee.current?.blur()},nativeElement:q.current}));let[te,ne]=h.useState(()=>mb(f??d));function re(e){f===void 0&&ne(e)}let ie=h.useCallback((e,t)=>{if(!t)return D>=0?D:Math.max(lb(e),lb(u))},[D,u]),ae=h.useCallback(e=>{let t=String(e);if(T)return T(t);let n=t;return O&&(n=n.replace(O,`.`)),n.replace(/[^\w.-]+/g,``)},[T,O]),oe=h.useRef(``),se=h.useCallback((e,t)=>{if(E)return E(e,{userTyping:t,input:String(oe.current)});let n=typeof e==`number`?ub(e):e;if(!t){let e=ie(n,t);db(n)&&(O||e>=0)&&(n=pb(n,O||`.`,e))}return n},[E,ie,O]),[ce,le]=h.useState(()=>{let e=d??f;return te.isInvalidate()&&[`string`,`number`].includes(typeof e)?Number.isNaN(e)?``:e:se(te.toString(),!1)});oe.current=ce;function ue(e,t){le(se(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}let de=h.useMemo(()=>yb(l),[l,D]),pe=h.useMemo(()=>yb(c),[c,D]),me=h.useMemo(()=>!de||!te||te.isInvalidate()?!1:de.lessEquals(te),[de,te]),he=h.useMemo(()=>!pe||!te||te.isInvalidate()?!1:te.lessEquals(pe),[pe,te]),[_e,ve]=pse(ee.current,H),ye=e=>de&&!e.lessEquals(de)?de:pe&&!pe.lessEquals(e)?pe:null,be=e=>!ye(e),xe=(e,t)=>{let n=e,r=be(n)||n.isEmpty();if(!n.isEmpty()&&!t&&(n=ye(n)||n,r=!0),!g&&!p&&r){let e=n.toString(),r=ie(e,t);return r>=0&&(n=mb(pb(e,`.`,r)),be(n)||(n=mb(pb(e,`.`,r,!0)))),n.equals(te)||(re(n),k?.(n.isEmpty()?null:vb(w,n)),f===void 0&&ue(n,t)),n}return te},Se=gse(),Ce=e=>{if(_e(),oe.current=e,le(e),!G.current){let t=mb(ae(e));t.isNaN()||xe(t,!0)}A?.(e),Se(()=>{let t=e;T||(t=e.replace(/。/g,`.`)),t!==e&&Ce(t)})},we=()=>{G.current=!0},Te=()=>{G.current=!1,Ce(ee.current.value)},Ee=e=>{Ce(e.target.value)},De=fe((e,t)=>{if(e&&me||!e&&he)return;W.current=!1;let n=mb(K.current?gb(u):u);e||(n=n.negate());let r=xe((te||mb(0)).add(n.toString()),!1);M?.(vb(w,r),{offset:K.current?gb(u):u,type:e?`up`:`down`,emitter:t}),ee.current?.focus()}),Oe=e=>{let t=mb(ae(ce)),n;n=t.isNaN()?xe(te,e):xe(t,e),f===void 0?n.isNaN()||ue(n,!1):ue(te,!1)},ke=()=>{W.current=!0},Ae=e=>{let{key:t,shiftKey:n}=e;W.current=!0,K.current=n,t===`Enter`&&(G.current||(W.current=!1),Oe(!1),j?.(e)),y!==!1&&!G.current&&[`Up`,`ArrowUp`,`Down`,`ArrowDown`].includes(t)&&(De(t===`Up`||t===`ArrowUp`,`keyboard`),e.preventDefault())},je=()=>{W.current=!1,K.current=!1};h.useEffect(()=>{if(b&&H){let e=e=>{De(e.deltaY<0,`wheel`),e.preventDefault()},t=ee.current;if(t)return t.addEventListener(`wheel`,e,{passive:!1}),()=>t.removeEventListener(`wheel`,e)}});let Me=()=>{B&&Oe(!1),U(!1),W.current=!1},Ne=e=>{ee.current&&e.target!==ee.current&&(ee.current.focus(),e.preventDefault()),N?.(e)};ge(()=>{te.isInvalidate()||ue(te,!1)},[D,E]),ge(()=>{let e=mb(f);ne(e);let t=mb(ae(ce));(!e.equals(t)||!W.current||E)&&ue(e,W.current)},[f]),ge(()=>{E&&ve()},[ce]);let Pe={prefixCls:r,onStep:De,className:o?.action,style:s?.action},Fe=h.createElement(hb,_b({},Pe,{action:`up`,disabled:me}),_),Ie=h.createElement(hb,_b({},Pe,{action:`down`,disabled:he}),v);return h.createElement(`div`,{ref:q,className:m(r,`${r}-mode-${n}`,i,o?.root,{[`${r}-focused`]:H,[`${r}-disabled`]:p,[`${r}-readonly`]:g,[`${r}-not-a-number`]:te.isNaN(),[`${r}-out-of-range`]:!te.isInvalidate()&&!be(te)}),style:{...s?.root,...a},onMouseDown:Ne,onMouseUp:F,onMouseLeave:I,onMouseMove:L,onMouseEnter:R,onMouseOut:z,onClick:P,onFocus:()=>{U(!0)},onBlur:Me,onKeyDown:Ae,onKeyUp:je,onCompositionStart:we,onCompositionEnd:Te,onBeforeInput:ke},n===`spinner`&&x&&Ie,S!==void 0&&h.createElement(`div`,{className:m(`${r}-prefix`,o?.prefix),style:s?.prefix},S),h.createElement(`input`,_b({autoComplete:`off`,role:`spinbutton`,"aria-valuemin":c,"aria-valuemax":l,"aria-valuenow":te.isInvalidate()?null:te.toString(),step:u,ref:ee,className:m(`${r}-input`,o?.input),style:s?.input,value:ce,onChange:Ee,disabled:p,readOnly:g},V)),C!==void 0&&h.createElement(`div`,{className:m(`${r}-suffix`,o?.suffix),style:s?.suffix},C),n===`spinner`&&x&&Fe,n===`input`&&x&&h.createElement(`div`,{className:m(`${r}-actions`,o?.actions),style:s?.actions},Fe,Ie))}),vse=e=>{let t=e.handleVisible??`auto`,n=e.controlHeightSM-e.lineWidth*2;return{...X_(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new cs(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(t===!0),handleVisibleWidth:t===!0?n:0}},yse=e=>{let{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:a,inputFontSizeLG:o,colorError:s,paddingInlineSM:c,paddingBlockSM:l,paddingBlockLG:u,paddingInlineLG:d,colorIcon:f,colorTextDisabled:p,motionDurationMid:m,handleHoverColor:h,handleOpacity:g,paddingInline:_,paddingBlock:v,handleBg:y,handleActiveBg:b,inputAffixPadding:x,borderRadiusSM:S,controlWidth:C,handleBorderColor:w,filledHandleBg:T,lineHeightLG:E,antCls:D}=e,O=`${J(n)} ${r} ${w}`,[k,A]=vc(D,`input-number`);return[{[t]:{...$a(e),...gv(e),[k(`input-padding-block`)]:J(v),[k(`input-padding-inline`)]:J(_),display:`inline-flex`,width:C,margin:0,paddingBlock:0,borderRadius:i,...ev(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...cv(e,{[`${t}-actions`]:{background:T,[`${t}-action-down`]:{borderBlockStart:O}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...fv(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...av(e),[`&${t}-borderless`]:{paddingBlock:0,[k(`input-padding-block`)]:J(e.calc(v).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[k(`input-padding-block`)]:J(e.calc(l).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[k(`input-padding-block`)]:J(e.calc(u).add(n).equal())},"&-rtl":{direction:`rtl`,[`${t}-input`]:{direction:`rtl`}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:{...$a(e),width:`100%`,paddingBlock:A(`input-padding-block`),textAlign:`start`,backgroundColor:`transparent`,border:0,borderRadius:0,outline:0,transition:`all ${m} linear`,appearance:`textfield`,fontSize:`inherit`,lineHeight:`inherit`,...pv(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:`none`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:`not-allowed`,color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{...eo(),userSelect:`none`,overflow:`hidden`,fontWeight:`bold`,lineHeight:0,textAlign:`center`,cursor:`pointer`,transition:`all ${m} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:b},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:h},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:`not-allowed`,color:p}},"&-mode-input":{overflow:`hidden`,[`${t}-actions`]:{position:`absolute`,insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:g,height:`100%`,borderRadius:0,display:`flex`,flexDirection:`column`,alignItems:`stretch`,transition:`all ${m}`,overflow:`hidden`,[`${t}-action`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`auto`,height:`40%`,marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:f,height:`50%`,borderInlineStart:O,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:`60%`}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:`none`}}},[`&${t}-mode-spinner`]:{padding:0,width:`auto`,[`${t}-action`]:{flex:`none`,paddingInline:A(`input-padding-inline`),"&-up":{borderInlineStart:O},"&-down":{borderInlineEnd:O}},[`${t}-input`]:{textAlign:`center`,paddingInline:A(`input-padding-inline`)}}}},{[t]:{"&-lg":{[k(`input-padding-block`)]:J(u),[k(`input-padding-inline`)]:J(d),paddingBlock:0,fontSize:o,lineHeight:E},"&-sm":{[k(`input-padding-block`)]:J(l),[k(`input-padding-inline`)]:J(c),paddingBlock:0,fontSize:a,borderRadius:S}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:`flex`,flex:`none`,alignItems:`center`,alignSelf:`center`,pointerEvents:`none`},[`${t}-prefix`]:{marginInlineEnd:x},[`${t}-suffix`]:{height:`100%`,marginInlineStart:x,transition:`margin ${m}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},bse=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},xse=hc(`InputNumber`,e=>{let t=Bo(e,Y_(e));return[yse(t),bse(t),$f(t)]},vse,{unitless:{handleOpacity:!0},resetFont:!1}),Sse=h.forwardRef((e,t)=>{let n=h.useRef(null);h.useImperativeHandle(t,()=>n.current);let{rootClassName:r,size:i,disabled:a,prefixCls:o,addonBefore:s,addonAfter:c,prefix:l,suffix:u,bordered:d,readOnly:f,status:p,controls:g=!0,variant:_,className:v,style:y,classNames:b,styles:x,mode:S,...C}=e,{direction:w,className:T,style:E,styles:D,classNames:O}=Rr(`inputNumber`),k=h.useContext(mu),A=a??k,j=h.useMemo(()=>!g||A||f?!1:g,[g,A,f]),{compactSize:M,compactItemClassnames:N}=_d(o,w),P=S===`spinner`?h.createElement(Em,null):h.createElement(lse,null),F=S===`spinner`?h.createElement(sse,null):h.createElement(Dv,null),I=typeof j==`boolean`?j:void 0;gr(j)&&(P=j.upIcon||P,F=j.downIcon||F);let{hasFeedback:L,isFormItemInput:R,feedbackIcon:z}=h.useContext(fm),B=Wu(e=>i??M??e),[V,H]=pm(`inputNumber`,_,d),U=L&&h.createElement(h.Fragment,null,z),W={...e,size:B,disabled:A,controls:j},G=Er(E),K=Er(y),[q,ee]=Or([O,b],[D,G,x,K],{props:W});return h.createElement(_se,{ref:n,mode:S,disabled:A,className:m(v,r,q.root,T,N,K_(o,p,L),{[`${o}-${V}`]:H,[`${o}-lg`]:B===`large`,[`${o}-sm`]:B===`small`,[`${o}-rtl`]:w===`rtl`,[`${o}-in-form-item`]:R,[`${o}-without-controls`]:!j}),style:ee.root,upHandler:P,downHandler:F,prefixCls:o,readOnly:f,controls:I,prefix:l,suffix:U||u,classNames:q,styles:ee,...C})}),bb=h.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:r,prefixCls:i,className:a,status:o,rootClassName:s,...c}=e,{getPrefixCls:l}=Rr(`inputNumber`),u=l(`input-number`,i),{status:d}=h.useContext(fm),f=q_(d,o),p=ng(u),[g,_]=xse(u,p),v=n||r,y=h.createElement(Sse,{ref:t,...c,prefixCls:u,status:f,className:m(_,p,g,a),rootClassName:v?void 0:s});if(v){let t=t=>t?h.createElement(Oy,{className:m(`${u}-addon`,_,g),variant:e.variant,disabled:e.disabled,status:f},h.createElement(G_,{form:!0},t)):null,i=t(n),a=t(r);return h.createElement(bd,{rootClassName:s},i,y,a)}return y}),xb=bb;xb._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(Pu,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(bb,{...e}));var Sb=(e,t)=>e?.startsWith(`var(`)||t?.startsWith(`var(`)?e:new cs(e).onBackground(t).toHexString(),Cse=()=>{let[,e]=mc(),[t]=Wc(`Empty`),{colorBgContainer:n,colorFill:r,colorFillSecondary:i,colorFillTertiary:a,colorTextQuaternary:o}=e,{panelBgColor:s,borderColor:c,detailColor:l,shadowColor:u,iconColor:d}=(0,h.useMemo)(()=>({panelBgColor:Sb(a,n),borderColor:Sb(o,n),detailColor:Sb(r,n),shadowColor:Sb(i,n),iconColor:n}),[n,r,i,a,o]);return h.createElement(`svg`,{width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},h.createElement(`title`,null,t?.description||`Empty`),h.createElement(`g`,{fill:`none`,fillRule:`evenodd`},h.createElement(`g`,{transform:`translate(24 31.7)`},h.createElement(`ellipse`,{fillOpacity:`.8`,fill:u,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),h.createElement(`path`,{fill:c,d:`M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z`}),h.createElement(`path`,{fill:s,d:`M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4`}),h.createElement(`path`,{fill:l,d:`M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8`})),h.createElement(`path`,{fill:l,d:`m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8`}),h.createElement(`g`,{fill:d,transform:`translate(149.7 15.4)`},h.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),h.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},wse=()=>{let[,e]=mc(),[t]=Wc(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,h.useMemo)(()=>({borderColor:Sb(n,a),shadowColor:Sb(r,a),contentColor:Sb(i,a)}),[n,r,i,a]);return h.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},h.createElement(`title`,null,t?.description||`Empty`),h.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},h.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),h.createElement(`g`,{fillRule:`nonzero`,stroke:o},h.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),h.createElement(`path`,{d:`M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3`,fill:c}))))},Tse=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{maxWidth:`100%`,height:`100%`,margin:`auto`}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Ese=hc(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return Tse(Bo(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),Cb=h.createElement(Cse,null),wb=h.createElement(wse,null),Tb=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f,direction:p,className:g,style:_,classNames:v,styles:y,image:b}=Rr(`empty`),x=f(`empty`,r),[S,C]=Ese(x),w=Er(_),T=Er(c),[E,D]=Or([v,l],[y,w,u,T],{props:e}),[O]=Wc(`Empty`),k=a===void 0?O?.description:a,A=typeof k==`string`?k:`empty`,j=i??b??Cb,M=null;return M=typeof j==`string`?h.createElement(`img`,{draggable:!1,alt:A,src:j}):j,h.createElement(`div`,{className:m(S,C,x,g,{[`${x}-normal`]:j===wb,[`${x}-rtl`]:p===`rtl`},t,n,E.root),style:D.root,...d},h.createElement(`div`,{className:m(`${x}-image`,E.image),style:{...s,...D.image}},M),k&&h.createElement(`div`,{className:m(`${x}-description`,E.description),style:D.description},k),o&&h.createElement(`div`,{className:m(`${x}-footer`,E.footer),style:D.footer},o))};Tb.PRESENTED_IMAGE_DEFAULT=Cb,Tb.PRESENTED_IMAGE_SIMPLE=wb;var Eb=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,h.useContext)(Fr),r=n(`empty`);switch(t){case`Table`:case`List`:return h.createElement(Tb,{image:Tb.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return h.createElement(Tb,{image:Tb.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return h.createElement(Tb,null)}},Dse=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`}}))());function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Db.apply(this,arguments)}var Ob=h.forwardRef((e,t)=>h.createElement(W,Db({},e,{ref:t,icon:Dse.default}))),Ose=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`}}))());function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kb.apply(this,arguments)}var Ab=h.forwardRef((e,t)=>h.createElement(W,kb({},e,{ref:t,icon:Ose.default}))),kse=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`}}))());function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jb.apply(this,arguments)}var Mb=h.forwardRef((e,t)=>h.createElement(W,jb({},e,{ref:t,icon:kse.default}))),Ase={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},jse=[10,20,50,100],Mse=e=>{let{pageSizeOptions:t=jse,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=h.useState(``),m=h.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),g=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,_=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},v=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===Tt.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:g(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?h.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):h.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=h.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,h.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:_,onKeyUp:y,onBlur:v,"aria-label":n.page}),n.page,w)),h.createElement(`li`,{className:x},S,C)},Nb=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=m(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},g=l(n,`page`,h.createElement(`a`,{rel:`nofollow`},n));return g?h.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},g):null};function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pb.apply(this,arguments)}var Nse=(e,t,n)=>n;function Fb(){}function Ib(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Lb(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var Pse=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=Fb,hideOnSinglePage:f,align:p,showPrevNextJumpers:g=!0,showQuickJumper:_,showLessItems:v,showTitle:y=!0,onShowSizeChange:b=Fb,locale:x=Ase,style:S,totalBoundaryShowSizeChanger:C=50,disabled:w,simple:T,showTotal:E,showSizeChanger:D=c>C,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=Nse,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=h.useRef(null),[I,L]=ve(u,l),[R,z]=ve(s,o),B=Math.max(1,Math.min(R,Lb(void 0,I,c))),[V,H]=h.useState(B);(0,h.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(v?3:5)),W=Math.min(Lb(void 0,I,c),B+(v?3:5));function G(n,r){let i=n||h.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=h.createElement(n,e)),i}function K(e){let t=e.target.value,n=Lb(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function q(e){return Ib(e)&&e!==B&&Ib(c)&&c>0}let ee=c>I?_:!1;function te(e){(e.keyCode===Tt.UP||e.keyCode===Tt.DOWN)&&e.preventDefault()}function ne(e){let t=K(e);switch(t!==V&&H(t),e.keyCode){case Tt.ENTER:ae(t);break;case Tt.UP:ae(t-1);break;case Tt.DOWN:ae(t+1);break;default:break}}function re(e){ae(K(e))}function ie(e){let t=Lb(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),b?.(B,e),z(n),d?.(n,e)}function ae(e){if(q(e)&&!w){let t=Lb(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let oe=B>1,se=B<Lb(void 0,I,c);function ce(){oe&&ae(B-1)}function le(){se&&ae(B+1)}function ue(){ae(U)}function de(){ae(W)}function fe(e,t,...n){(e.key===`Enter`||e.charCode===Tt.ENTER||e.keyCode===Tt.ENTER)&&t(...n)}function pe(e){fe(e,ce)}function me(e){fe(e,le)}function he(e){fe(e,ue)}function ge(e){fe(e,de)}function _e(e){let t=A(e,`prev`,G(N,`prev page`));return h.isValidElement(t)?h.cloneElement(t,{disabled:!oe}):t}function ye(e){let t=A(e,`next`,G(P,`next page`));return h.isValidElement(t)?h.cloneElement(t,{disabled:!se}):t}function be(e){(e.type===`click`||e.keyCode===Tt.ENTER)&&ae(V)}let xe=null,Se=qt(e,{aria:!0,data:!0}),Ce=E&&h.createElement(`li`,{className:`${t}-total-text`},E(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),we=null,Te=Lb(void 0,I,c);if(f&&c<=I)return null;let Ee=[],De={rootPrefixCls:t,onClick:ae,onKeyPress:fe,showTitle:y,itemRender:A,page:-1,className:i?.item,style:a?.item},Oe=B-1>0?B-1:0,ke=B+1<Te?B+1:Te,Ae=_&&_.goButton,je=typeof T==`object`?T.readOnly:!T,Me=Ae,Ne=null;T&&(Ae&&(Me=typeof Ae==`boolean`?h.createElement(`button`,{type:`button`,onClick:be,onKeyUp:be},x.jump_to_confirm):h.createElement(`span`,{onClick:be,onKeyUp:be},Ae),Me=h.createElement(`li`,{title:y?`${x.jump_to}${B}/${Te}`:null,className:`${t}-simple-pager`},Me)),Ne=h.createElement(`li`,{title:y?`${B}/${Te}`:null,className:m(`${t}-simple-pager`,i?.item),style:a?.item},je?V:h.createElement(`input`,{type:`text`,"aria-label":x.jump_to,value:V,disabled:w,onKeyDown:te,onKeyUp:ne,onChange:ne,onBlur:re,size:3}),h.createElement(`span`,{className:`${t}-slash`},`/`),Te));let Pe=v?1:2;if(Te<=3+Pe*2){Te||Ee.push(h.createElement(Nb,Pb({},De,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=Te;e+=1)Ee.push(h.createElement(Nb,Pb({},De,{key:e,page:e,active:B===e})))}else{let e=v?x.prev_3:x.prev_5,n=v?x.next_3:x.next_5,r=A(U,`jump-prev`,G(j,`prev page`)),i=A(W,`jump-next`,G(M,`next page`));g&&(xe=r?h.createElement(`li`,{title:y?e:null,key:`prev`,onClick:ue,tabIndex:0,onKeyDown:he,className:m(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,we=i?h.createElement(`li`,{title:y?n:null,key:`next`,onClick:de,tabIndex:0,onKeyDown:ge,className:m(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Pe),o=Math.min(B+Pe,Te);B-1<=Pe&&(o=1+Pe*2),Te-B<=Pe&&(a=Te-Pe*2);let s=!!xe&&B-1>=Pe*2&&B!==3,c=!!we&&Te-B>=Pe*2&&B!==Te-2;!v&&s&&o!==Te&&(a+=1),!v&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)Ee.push(h.createElement(Nb,Pb({},De,{key:e,page:e,active:B===e})));if(s&&(Ee[0]=h.cloneElement(Ee[0],{className:m(`${t}-item-after-jump-prev`,Ee[0].props.className)}),Ee.unshift(xe)),c){let e=Ee[Ee.length-1];Ee[Ee.length-1]=h.cloneElement(e,{className:m(`${t}-item-before-jump-next`,e.props.className)}),Ee.push(we)}a!==1&&Ee.unshift(h.createElement(Nb,Pb({},De,{key:1,page:1}))),o!==Te&&Ee.push(h.createElement(Nb,Pb({},De,{key:Te,page:Te})))}let Fe=_e(Oe);if(Fe){let e=!oe||!Te;Fe=h.createElement(`li`,{title:y?x.prev_page:null,onClick:ce,tabIndex:e?null:0,onKeyDown:pe,className:m(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Fe)}let Ie=ye(ke);if(Ie){let e,n;T?(e=!se,n=oe?0:null):(e=!se||!Te,n=e?null:0),Ie=h.createElement(`li`,{title:y?x.next_page:null,onClick:le,tabIndex:n,onKeyDown:me,className:m(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ie)}let Le=m(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:T,[`${t}-disabled`]:w});return h.createElement(`ul`,Pb({className:Le,style:S,ref:F},Se),Ce,Fe,T?Ne:Ee,Ie,h.createElement(Mse,{locale:x,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ie,pageSize:I,pageSizeOptions:k,quickGo:ee?ae:null,goButton:Me,showSizeChanger:D,sizeChangerRender:O}))},Fse=(e,t,n,r,i=!1,a,o)=>{let s=(0,h.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,h.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},Rb=h.createContext(null);function zb(){return h.useContext(Rb)}function Ise(e=250){let t=h.useRef(null),n=h.useRef(null);h.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function Bb(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function Lse(e,t,n,r){let i=fe(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!Bb(e(),a)&&n(!1)});h.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vb.apply(this,arguments)}var Rse=e=>{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},zse=h.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:g,popupRender:_,popupAlign:v,getPopupContainer:y,empty:b,onPopupVisibleChange:x,onPopupMouseEnter:S,onPopupMouseDown:C,onPopupBlur:w,...T}=e,E=`${n}-dropdown`,D=o;_&&(D=_(o));let O=h.useMemo(()=>p||Rse(g),[p,g]),k=s?`${E}-${s}`:c,A=typeof g==`number`,j=h.useMemo(()=>g===!1||A?`minWidth`:`width`,[g,A]),M=l;A&&(M={...l,width:g});let N=h.useRef(null);return h.useImperativeHandle(t,()=>({getPopupElement:()=>N.current?.popupElement})),h.createElement(ou,Vb({},T,{showAction:x?[`click`]:[],hideAction:x?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:O,prefixCls:E,popupMotion:{motionName:k},popup:h.createElement(`div`,{onMouseEnter:S,onMouseDown:C,onBlur:w},D),ref:N,stretch:j,popupAlign:v,popupVisible:i,getPopupContainer:y,popupClassName:m(u,{[`${E}-empty`]:b}),popupStyle:M,onPopupVisibleChange:x}),a)});function Hb(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function Ub(e){return e!==void 0&&!Number.isNaN(e)}function Wb(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function Bse(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=Wb(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:Hb(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:Hb(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function Gb(e){let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return Lt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Vse=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r||=a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function Hse(e){let{visible:t,values:n}=e;return t?h.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var Use=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Kb=(e,t=1)=>{if(t<=0){e();return}Use(()=>{Kb(e,t-1)})};function Wse(e,t,n,r){let[i,a]=(0,h.useState)(!1);(0,h.useEffect)(()=>{a(!0)},[]);let[o,s]=ve(e,t),[c,l]=(0,h.useState)(!1),u=i?o:!1,d=r(u),f=(0,h.useRef)(0),p=fe(e=>{n&&d!==e&&n(e),s(e)});return[u,d,fe((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():Kb(()=>{a()})}),c]}function qb(e){let{children:t,...n}=e;return t?h.createElement(`div`,n,t):null}var Jb=h.createContext(null);function Yb(){return h.useContext(Jb)}var Xb=h.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:g,onInputBlur:_,autoFocus:v,tokenWithEnter:y,placeholder:b,components:{input:x=`input`}}=Yb(),{id:S,classNames:C,styles:w,open:T,activeDescendantId:E,role:D,disabled:O}=zb()||{},k=m(`${d}-input`,C?.input,c),A=h.useRef(!1),j=h.useRef(null),M=h.useRef(null);h.useImperativeHandle(t,()=>M.current);let N=e=>{let{value:t}=e.target;if(y&&j.current&&/[\r\n]/.test(j.current)){let e=j.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,j.current)}j.current=null,p&&p(t,!0,A.current),n?.(e)},P=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!T&&!A.current&&g&&g(n),r?.(e)},F=e=>{_?.(),i?.(e)},I=()=>{A.current=!0},L=e=>{if(A.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},R=e=>{let{clipboardData:t}=e;j.current=t?.getData(`text`)||``},[z,B]=h.useState(void 0);he(()=>{let e=M.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;B(t),e.style.width=``}},[o,s]);let V={id:S,type:`text`,...u,ref:M,style:{...w?.input,...a,"--select-input-width":z},autoFocus:v,autoComplete:l||`new-password`,className:k,disabled:O,value:s||``,onChange:N,onKeyDown:P,onBlur:F,onPaste:R,onCompositionStart:I,onCompositionEnd:L,role:D||`combobox`,"aria-expanded":T||!1,"aria-haspopup":`listbox`,"aria-owns":T?`${S}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":T?`${S}_list`:void 0,"aria-activedescendant":T?E:void 0};if(h.isValidElement(x)){let t=x.props||{},n={placeholder:e.placeholder||b,...V,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),V[e]?.(...t)})}),n.ref=Fe(x.ref,V.ref),h.cloneElement(x,n)}let H=x;return h.createElement(H,V)});function Zb(e){let{prefixCls:t,placeholder:n,displayValues:r}=Yb(),{classNames:i,styles:a}=zb(),{show:o=!0}=e;return r.length?null:h.createElement(`div`,{className:m(`${t}-placeholder`,i?.placeholder),style:{visibility:o?`visible`:`hidden`,...a?.placeholder}},n)}var Qb=h.createContext(null);function $b(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function Gse(e){return e!=null}function Kse(e){return!e&&e!==0}function ex(e){return[`string`,`number`].includes(typeof e)}function tx(e){let t;return e&&(ex(e.title)?t=e.title.toString():ex(e.label)&&(t=e.label.toString())),t}function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nx.apply(this,arguments)}var qse=h.forwardRef(({inputProps:e},t)=>{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=Yb(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=zb(),g=h.useContext(Qb),[_,v]=h.useState(!1),y=s===`combobox`,b=a[0],x=h.useMemo(()=>y&&i&&!_&&l?i:d?r:``,[y,i,_,l,r,d]),[S,C,w,T]=h.useMemo(()=>{let e,t,n;if(b&&g?.flattenOptions){let r=g.flattenOptions.find(e=>e.value===b.value);r?.data&&(e=r.data.className,t=r.data.style,n=tx(r.data))}return b&&!n&&(n=tx(b)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[b,g?.flattenOptions,u]);h.useEffect(()=>{y&&v(!1)},[y,i]);let E=b&&b.label!==null&&b.label!==void 0&&String(b.label).trim()!==``,D=y&&c?.input?null:b?T?h.createElement(`div`,{className:m(`${n}-content-value`,S),style:{...x?{visibility:`hidden`}:{},...C},title:w},b.label):b.label:h.createElement(Zb,{show:!x});return h.createElement(`div`,{className:m(`${n}-content`,E&&`${n}-content-has-value`,x&&`${n}-content-has-search-value`,T&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:T?void 0:w},D,h.createElement(Xb,nx({ref:t},e,{value:x,maxLength:s===`combobox`?o:void 0,onChange:t=>{v(!0),e.onChange?.(t)}})))}),rx=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return h.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?h.createElement(`span`,{className:m(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ix.apply(this,arguments)}function Jse(e){return e.key??e.value}var ax=e=>{e.preventDefault(),e.stopPropagation()},Yse=h.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=Yb(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:g,maxTagPlaceholder:_,maxTagTextLength:v,maxTagCount:y,classNames:b,styles:x}=zb(),S=`${n}-selection-item`,C=i;!d&&a===`multiple`&&p!==!1&&(C=``);let w=l&&C||``,T=l&&!c,E=s??`×`,D=_??(e=>`+ ${e.length} ...`),O=g,k=e=>{f(e)},A=e=>{o?.(e)},j=(e,t,n,r,i)=>h.createElement(`span`,{title:tx(e),className:m(S,{[`${S}-disabled`]:n},b?.item),style:x?.item},h.createElement(`span`,{className:m(`${S}-content`,b?.itemContent),style:x?.itemContent},t),r&&h.createElement(rx,{className:m(`${S}-remove`,b?.itemRemove),style:x?.itemRemove,onMouseDown:ax,onClick:i,customizeIcon:E},`×`)),M=(e,t,n,r,i,a,o)=>h.createElement(`span`,{onMouseDown:e=>{ax(e),k(!u)}},O({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return h.createElement(Zm,{prefixCls:`${n}-content`,className:b?.content,style:x?.content,prefix:!r.length&&!w&&h.createElement(Zb,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof v==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>v&&(o=`${e.slice(0,v)}...`)}let s=t=>{t&&t.stopPropagation(),A(e)};return typeof O==`function`?M(i,o,n,a,s,void 0,t):j(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof D==`function`?D(e):D;return typeof O==`function`?M(void 0,t,!1,!1,void 0,!0):j({title:t},t,!1)},suffix:h.createElement(Xb,ix({ref:t,disabled:c,readOnly:!T},e,{value:w||``,syncWidth:!0})),itemKey:Jse,maxCount:y})}),Xse=h.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=Yb(),a=zb(),{showSearch:o}=a,s={...qt(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?h.createElement(Yse,{ref:t,inputProps:s}):h.createElement(qse,{ref:t,inputProps:s})});function Zse(e){return e&&![Tt.ESC,Tt.SHIFT,Tt.BACKSPACE,Tt.TAB,Tt.WIN_KEY,Tt.ALT,Tt.META,Tt.WIN_KEY_RIGHT,Tt.CTRL,Tt.SEMICOLON,Tt.EQUALS,Tt.CAPS_LOCK,Tt.CONTEXT_MENU,Tt.UP,Tt.LEFT,Tt.RIGHT,Tt.F1,Tt.F2,Tt.F3,Tt.F4,Tt.F5,Tt.F6,Tt.F7,Tt.F8,Tt.F9,Tt.F10,Tt.F11,Tt.F12].includes(e)}function ox(){return ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ox.apply(this,arguments)}var Qse=[`value`,`onChange`,`removeIcon`,`placeholder`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`,`activeValue`,`onSelectorRemove`,`focused`],$se=h.forwardRef(function(e,t){let{prefixCls:n,className:r,style:i,prefix:a,suffix:o,clearIcon:s,children:c,multiple:l,displayValues:u,placeholder:d,mode:f,searchValue:p,onSearch:g,onSearchSubmit:_,onInputBlur:v,maxLength:y,autoFocus:b,onMouseDown:x,onClearMouseDown:S,onInputKeyDown:C,onSelectorRemove:w,tokenWithEnter:T,components:E,...D}=e,{triggerOpen:O,toggleOpen:k,showSearch:A,disabled:j,loading:M,classNames:N,styles:P}=zb(),F=h.useRef(null),I=h.useRef(null),L=fe(e=>{let{which:t}=e,n=I.current instanceof HTMLTextAreaElement;!n&&O&&(t===Tt.UP||t===Tt.DOWN)&&e.preventDefault(),C&&C(e),!(n&&!O&&~[Tt.UP,Tt.DOWN,Tt.LEFT,Tt.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&Zse(t)&&k(!0)});h.useImperativeHandle(t,()=>({focus:e=>{(I.current||F.current).focus?.(e)},blur:()=>{(I.current||F.current).blur?.()},nativeElement:nt(F.current)}));let R=fe(e=>{if(!j){let t=nt(I.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=O&&!l&&(f===`combobox`||A)||O&&l&&n;e.nativeEvent._select_lazy?O&&!l&&k(!1):(I.current?.focus(),r||k())}x?.(e)}),{root:z}=E,B=Ht(D,Qse),V=qt(B,{aria:!0}),H=Object.keys(V),U={...e,onInputKeyDown:L};if(z){let e=z.props||{},t={...e,...B};return Object.keys(e).forEach(n=>{let r=e[n],i=B[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),h.isValidElement(z)?h.cloneElement(z,{...t,ref:Fe(z.ref,F)}):h.createElement(z,ox({},t,{ref:F}))}return h.createElement(Jb.Provider,{value:U},h.createElement(`div`,ox({},Ht(B,H),{ref:F,className:r,style:i,onMouseDown:R}),h.createElement(qb,{className:m(`${n}-prefix`,N?.prefix),style:P?.prefix},a),h.createElement(Xse,{ref:I}),h.createElement(qb,{className:m(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&h.createElement(qb,{className:m(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},s),c))});function ece(e,t,n){return h.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sx.apply(this,arguments)}var cx=e=>e===`tags`||e===`multiple`,tce=h.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:g,notFoundContent:_=`Not Found`,onClear:v,maxCount:y,placeholder:b,mode:x,disabled:S,loading:C,getInputElement:w,getRawInputElement:T,open:E,defaultOpen:D,onPopupVisibleChange:O,activeValue:k,onActiveValueChange:A,activeDescendantId:j,searchValue:M,autoClearSearchValue:N,onSearch:P,onSearchSplit:F,tokenSeparators:I,allowClear:L,prefix:R,suffix:z,suffixIcon:B,clearIcon:V,OptionList:H,animation:U,transitionName:W,popupStyle:G,popupClassName:K,popupMatchSelectWidth:q,popupRender:ee,popupAlign:te,placement:ne,builtinPlacements:re,getPopupContainer:ie,showAction:ae=[],onFocus:oe,onBlur:se,onKeyUp:ce,onKeyDown:le,onMouseDown:ue,components:de,...pe}=e,me=cx(x),he=h.useRef(null),ge=h.useRef(null),_e=h.useRef(null),[ve,ye]=h.useState(!1);h.useImperativeHandle(t,()=>({focus:he.current?.focus,blur:he.current?.blur,scrollTo:e=>_e.current?.scrollTo(e),nativeElement:nt(he.current)}));let be=ece(de,w,T),xe=h.useMemo(()=>{if(x!==`combobox`)return M;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[M,x,f]),Se=x===`combobox`&&typeof w==`function`&&w()||null,Ce=!_&&g,[we,Te,Ee,De]=Wse(D||!1,E,O,e=>S||Ce?!1:e),Oe=h.useMemo(()=>typeof I==`function`||(I||[]).some(e=>[`
`,`\r
`].includes(e)),[I]),ke=h.useMemo(()=>typeof I==`function`?(e,t)=>{let n=I(e),r=Array.isArray(n)&&n.length===1&&n[0]===e;return!Array.isArray(n)||!n.length||r?null:t===void 0?n:n.slice(0,t)}:(e,t)=>Vse(e,I,t),[I]),Ae=(e,t,n)=>{if(me&&Ub(y)&&f.length>=y)return;let r=!0,i=e;A?.(null);let a=Ub(y)?y-f.length:void 0,o=n?null:ke(e,a);return x!==`combobox`&&o&&(i=``,F?.(o),Ee(!1),r=!1),P&&xe!==i&&P(i,{source:t?`typing`:`effect`}),e&&t&&r&&Ee(!0),r},je=e=>{!e||!e.trim()||P(e,{source:`submit`})};h.useEffect(()=>{!we&&!me&&x!==`combobox`&&Ae(``,!1,!1)},[we]),h.useEffect(()=>{S&&(Ee(!1),ye(!1))},[S,Te]);let[Me,Ne]=Ise(),Pe=h.useRef(!1),Fe=e=>{let t=Me(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=x===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),Te||Ee(!0)}if(Ne(!!xe),n===`Backspace`&&!t&&me&&!xe&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}Te&&(!r||!Pe.current)&&!i&&(r&&(Pe.current=!0),_e.current?.onKeyDown(e)),le?.(e)},Ie=(e,...t)=>{Te&&_e.current?.onKeyUp(e,...t),e.key===`Enter`&&(Pe.current=!1),ce?.(e,...t)},Le=fe(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),Re=()=>{Pe.current=!1},ze=()=>[nt(he.current),ge.current?.getPopupElement()];Lse(ze,Te,Ee,!!be.root);let Be=h.useRef(!1),Ve=e=>{ye(!0),S||(ae.includes(`focus`)&&Ee(!0),oe?.(e))},He=()=>{Te&&!Be.current&&Ee(!1,{cancelFun:()=>Bb(ze(),document.activeElement)})},Ue=e=>{ye(!1),xe&&(x===`tags`?P(xe,{source:`submit`}):x===`multiple`&&P(``,{source:`blur`})),He(),S||se?.(e)},We=(e,...t)=>{let{target:n}=e;(ge.current?.getPopupElement())?.contains(n)&&Ee&&Ee(!0),ue?.(e,...t),Be.current=!0,Kb(()=>{Be.current=!1})},[,Ge]=h.useState({});function Ke(){Ge({})}let qe;be.root&&(qe=e=>{Ee(e)});let Je=h.useMemo(()=>({...e,notFoundContent:_,open:Te,triggerOpen:Te,rawOpen:we,id:n,showSearch:s,multiple:me,toggleOpen:Ee,showScrollBar:l,styles:a,classNames:o,lockOptions:De}),[e,_,Ee,n,s,me,Te,we,l,a,o,De]),Ye=h.useMemo(()=>{let e=z??B;return typeof e==`function`?e({searchValue:xe,open:Te,focused:ve,showSearch:s,loading:C}):e},[z,B,xe,Te,ve,s,C]),Xe=()=>{v?.(),he.current?.focus(),p([],{type:`clear`,values:f}),Ae(``,!1,!1)},{allowClear:Ze,clearIcon:Qe}=Fse(r,f,L,V,S,xe,x),$e=h.createElement(H,{ref:_e}),et=m(r,i,{[`${r}-focused`]:ve,[`${r}-multiple`]:me,[`${r}-single`]:!me,[`${r}-allow-clear`]:Ze,[`${r}-show-arrow`]:Ye!=null,[`${r}-disabled`]:S,[`${r}-loading`]:C,[`${r}-open`]:Te,[`${r}-customize-input`]:Se,[`${r}-show-search`]:s}),tt=h.createElement($se,sx({},pe,{ref:he,prefixCls:r,className:et,focused:ve,prefix:R,suffix:Ye,clearIcon:Qe,multiple:me,mode:x,displayValues:f,placeholder:b,searchValue:xe,activeValue:k,onSearch:Ae,onSearchSubmit:je,onInputBlur:Re,onFocus:Ve,onBlur:Ue,onClearMouseDown:Xe,onKeyDown:Fe,onKeyUp:Ie,onSelectorRemove:Le,tokenWithEnter:Oe,onMouseDown:We,components:be}));return tt=h.createElement(zse,{ref:ge,disabled:S,prefixCls:r,visible:Te,popupElement:$e,animation:U,transitionName:W,popupStyle:G,popupClassName:K,direction:u,popupMatchSelectWidth:q,popupRender:ee,popupAlign:te,placement:ne,builtinPlacements:re,getPopupContainer:ie,empty:g,onPopupVisibleChange:qe,onPopupMouseEnter:Ke,onPopupMouseDown:We,onPopupBlur:He},tt),h.createElement(Rb.Provider,{value:Je},h.createElement(Hse,{visible:ve&&!Te,values:f}),tt)}),lx=()=>null;lx.isSelectOptGroup=!0;var ux=()=>null;ux.isSelectOption=!0;var dx=h.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),h.createElement(`div`,{style:u},h.createElement(El,{onResize:({offsetHeight:e})=>{e&&a&&a()}},h.createElement(`div`,jf({style:d,className:m({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});dx.displayName=`Filler`;function nce({children:e,setRef:t}){let n=h.useCallback(e=>{t(e)},[]);return h.cloneElement(e,{ref:n})}function rce(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return h.createElement(nce,{key:l,setRef:t=>a(e,t)},c)})}function ice(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);let s={__EMPTY_ITEM__:!0};function c(e){return e===void 0?s:n(e)}let l=null,u=Math.abs(r-i)!==1;for(let e=0;e<o.length;e+=1){let t=c(a[e]);if(t!==c(o[e])){l=e,u||=t!==c(o[e+1]);break}}return l===null?null:{index:l,multiple:u}}function ace(e,t,n){let[r,i]=h.useState(e),[a,o]=h.useState(null);return h.useEffect(()=>{let a=ice(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var fx=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),px=((e,t,n,r)=>{let i=(0,h.useRef)(!1),a=(0,h.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,h.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function oce(e,t,n,r,i,a,o){let s=(0,h.useRef)(0),c=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useRef)(!1),d=px(t,n,r,i);function f(e,t){if(en.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,fx||n.preventDefault(),c.current=en(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),fx||e.preventDefault()}let m=(0,h.useRef)(null),g=(0,h.useRef)(null);function _(t){if(!e)return;en.cancel(g.current),g.current=en(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function v(t){e&&(u.current=t.detail===l.current)}return[_,v]}function sce(e,t,n,r){let[i,a]=h.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d<u;d+=1){let u=e[d],f=t(u);i.set(f,d);let p=n.get(f)??r;if(a[d]=(a[d-1]||0)+p,f===o&&(c=d),f===s&&(l=d),c!==void 0&&l!==void 0)break}}return{top:a[c-1]||0,bottom:a[l]}}}var cce=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function mx(e){let t=parseFloat(e);return isNaN(t)?0:t}function lce(e,t,n){let[r,i]=h.useState(0),a=(0,h.useRef)(new Map),o=(0,h.useRef)(new cce),s=(0,h.useRef)(0);function c(){s.current+=1}function l(e=!1){c();let t=()=>{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=mx(i),c=mx(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,h.useEffect)(()=>c,[]),[u,l,o.current,r]}var hx=14/15;function uce(e,t,n){let r=(0,h.useRef)(!1),i=(0,h.useRef)(0),a=(0,h.useRef)(0),o=(0,h.useRef)(null),s=(0,h.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=hx:c*=hx;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},he(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function gx(e){return Math.floor(e**.5)}function _x(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function dce(e,t,n){h.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{en.cancel(t)},o=()=>{a(),t=en(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=_x(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-gx(n-e),o()):e>=s?(i=gx(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var fce=10;function pce(e,t){let n=typeof e==`function`?e(t):e;return Number.isFinite(n)?n:0}function mce(e,t,n,r,i,a,o,s,c){let l=h.useRef(),[u,d]=h.useState(null);return he(()=>{if(u&&u.times<fce){if(!e.current){d(e=>({...e}));return}o();let{targetAlign:c,originAlign:l,index:f,offset:p}=u,m=pce(p,{getSize:a}),h=e.current.clientHeight,g=!1,_=c,v=null;if(h){let a=c||l,o=0,d=0,p=0,y=Math.min(t.length-1,f);for(let e=0;e<=y;e+=1){let a=i(t[e]);d=o;let s=n.get(a);p=d+(s===void 0?r:s),o=p}let b=a===`top`?m:h-m;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){g=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:v=d-m;break;case`bottom`:v=p-h+m;break;default:{let{scrollTop:t}=e.current,n=t+h;d<t?_=`top`:p>n&&(_=`bottom`)}}v!==null&&s(v),v!==u.lastTop&&(g=!0)}g&&d({...u,times:u.times+1,targetAlign:_,lastTop:v})}},[u,e.current]),e=>{if(e==null){c();return}if(en.cancel(l.current),typeof e==`number`)s(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;d({times:0,index:n,offset:a,originAlign:r})}}}var vx=h.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:g}=e,[_,v]=h.useState(!1),[y,b]=h.useState(null),[x,S]=h.useState(null),C=!r,w=h.useRef(),T=h.useRef(),[E,D]=h.useState(g),O=h.useRef(),k=()=>{g===!0||g===!1||(clearTimeout(O.current),D(!0),O.current=setTimeout(()=>{D(!1)},3e3))},A=a-d||0,j=d-u||0,M=h.useMemo(()=>i===0||A===0?0:i/A*j,[i,A,j]),N=e=>{e.stopPropagation(),e.preventDefault()},P=h.useRef({top:M,dragging:_,pageY:y,startTop:x});P.current={top:M,dragging:_,pageY:y,startTop:x};let F=e=>{v(!0),b(_x(e,l)),S(P.current.top),o(),e.stopPropagation(),e.preventDefault()};h.useEffect(()=>{let e=e=>{e.preventDefault()},t=w.current,n=T.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,F,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,F)}},[]);let I=h.useRef();I.current=A;let L=h.useRef();L.current=j,h.useEffect(()=>{if(_){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=P.current;en.cancel(e);let a=w.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(_x(t,l)-r)*o,a=i;!C&&l?a-=n:a+=n;let s=I.current,u=L.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=en(()=>{c(f,l)})}},n=()=>{v(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),en.cancel(e)}}},[_]),h.useEffect(()=>(k(),()=>{clearTimeout(O.current)}),[i]),h.useImperativeHandle(t,()=>({delayHidden:k}));let R=`${n}-scrollbar`,z={position:`absolute`,visibility:E?null:`hidden`},B={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(z,{height:8,left:0,right:0,bottom:0}),Object.assign(B,{height:`100%`,width:u,[C?`left`:`right`]:M})):(Object.assign(z,{width:8,top:0,bottom:0,[C?`right`:`left`]:0}),Object.assign(B,{width:`100%`,height:u,top:M})),h.createElement(`div`,{ref:w,className:m(R,{[`${R}-horizontal`]:l,[`${R}-vertical`]:!l,[`${R}-visible`]:E}),style:{...z,...f},onMouseDown:N,onMouseMove:k},h.createElement(`div`,{ref:T,className:m(`${R}-thumb`,{[`${R}-thumb-moving`]:_}),style:{...B,...p},onMouseDown:F}))}),hce=20;function yx(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,hce),Math.floor(n)}var gce=[],_ce={overflowY:`auto`,overflowAnchor:`none`};function bx(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:g=`div`,onScroll:_,onVirtualScroll:v,onVisibleChange:y,innerProps:b,extraRender:x,styles:S,showScrollBar:C=`optional`,...w}=e,T=h.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[E,D,O,k]=lce(T,null,null),A=!!(d!==!1&&i&&a),j=h.useMemo(()=>Object.values(O.maps).reduce((e,t)=>e+t,0),[O.id,O.maps]),M=A&&c&&(Math.max(a*c.length,j)>i||!!p),N=f===`rtl`,P=m(n,{[`${n}-rtl`]:N},r),F=c||gce,I=(0,h.useRef)(),L=(0,h.useRef)(),R=(0,h.useRef)(),[z,B]=(0,h.useState)(0),[V,H]=(0,h.useState)(0),[U,W]=(0,h.useState)(!1),G=()=>{W(!0)},K=()=>{W(!1)},q={getKey:T};function ee(e){B(t=>{let n;n=typeof e==`function`?e(t):e;let r=ye(n);return I.current.scrollTop=r,r})}let te=(0,h.useRef)({start:0,end:F.length}),ne=(0,h.useRef)(),[re]=ace(F,T);ne.current=re;let{scrollHeight:ie,start:ae,end:oe,offset:se}=h.useMemo(()=>{if(!A)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};if(!M)return{scrollHeight:L.current?.offsetHeight||0,start:0,end:F.length-1,offset:void 0};let e=0,t,n,r,o=F.length;for(let s=0;s<o;s+=1){let o=F[s],c=T(o),l=O.get(c),u=e+(l===void 0?a:l);u>=z&&t===void 0&&(t=s,n=e),u>z+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=F.length-1),r=Math.min(r+1,F.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[M,A,z,F,k,i]);te.current.start=ae,te.current.end=oe,h.useLayoutEffect(()=>{let e=O.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=F[ae];if(r&&n===void 0&&T(r)===t){let e=O.get(t)-a;ee(t=>t+e)}}O.resetRecord()},[ie]);let[ce,le]=h.useState({width:0,height:i}),ue=e=>{le({width:e.offsetWidth,height:e.offsetHeight})},de=(0,h.useRef)(),pe=(0,h.useRef)(),me=h.useMemo(()=>yx(ce.width,p),[ce.width,p]),ge=h.useMemo(()=>yx(ce.height,ie),[ce.height,ie]),_e=ie-i,ve=(0,h.useRef)(_e);ve.current=_e;function ye(e){let t=e;return Number.isNaN(ve.current)||(t=Math.min(t,ve.current)),t=Math.max(t,0),t}let be=z<=0,xe=z>=_e,Se=V<=0,Ce=V>=p,we=px(be,xe,Se,Ce),Te=()=>({x:N?-V:V,y:z}),Ee=(0,h.useRef)(Te()),De=fe(e=>{if(v){let t={...Te(),...e};(Ee.current.x!==t.x||Ee.current.y!==t.y)&&(v(t),Ee.current=t)}});function Oe(e,t){let n=e;t?((0,yn.flushSync)(()=>{H(n)}),De()):ee(n)}function ke(e){let{scrollTop:t}=e.currentTarget;t!==z&&ee(t),_?.(e),De()}let Ae=e=>{let t=e,n=p?p-ce.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},je=fe((e,t)=>{t?((0,yn.flushSync)(()=>{H(t=>Ae(t+(N?-e:e)))}),De()):ee(t=>t+e)}),[Me,Ne]=oce(A,be,xe,Se,Ce,!!p,je);uce(A,I,(e,t,n,r)=>{let i=r;return we(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Me({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),dce(M,I,e=>{ee(t=>t+e)}),he(()=>{function e(e){let t=be&&e.detail<0,n=xe&&e.detail>0;A&&!t&&!n&&e.preventDefault()}let t=I.current;return t.addEventListener(`wheel`,Me,{passive:!1}),t.addEventListener(`DOMMouseScroll`,Ne,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Me),t.removeEventListener(`DOMMouseScroll`,Ne),t.removeEventListener(`MozMousePixelScroll`,e)}},[A,be,xe]),he(()=>{if(p){let e=Ae(V);H(e),De({x:e})}},[ce.width,p]);let Pe=()=>{de.current?.delayHidden(),pe.current?.delayHidden()},Fe=sce(F,T,O,a),Ie=mce(I,F,O,a,T,Fe,()=>D(!0),ee,Pe);h.useImperativeHandle(t,()=>({nativeElement:R.current,getScrollInfo:Te,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&H(Ae(e.left)),Ie(e.top)):Ie(e)}})),he(()=>{y&&y(F.slice(ae,oe+1),F)},[ae,oe,F]);let Le=x?.({start:ae,end:oe,virtual:M,offsetX:V,scrollTop:z,offsetY:se,rtl:N,getSize:Fe}),Re=rce(F,ae,oe,p,V,E,l,q),ze=null;i&&(ze={[o?`height`:`maxHeight`]:i,..._ce},A&&(ze.overflowY=`hidden`,p&&(ze.overflowX=`hidden`),U&&(ze.pointerEvents=`none`)));let Be={};return N&&(Be.dir=`rtl`),h.createElement(`div`,jf({ref:R,style:{...s,position:`relative`},className:P},Be,w),h.createElement(El,{onResize:ue},h.createElement(g,{className:`${n}-holder`,style:ze,ref:I,onScroll:ke,onMouseEnter:Pe},h.createElement(dx,{prefixCls:n,height:ie,offsetX:V,offsetY:se,scrollWidth:p,onInnerResize:D,ref:L,innerProps:b,rtl:N,extra:Le},Re))),M&&ie>i&&h.createElement(vx,{ref:de,prefixCls:n,scrollOffset:z,scrollRange:ie,rtl:N,onScroll:Oe,onStartMove:G,onStopMove:K,spinSize:ge,containerSize:ce.height,style:S?.verticalScrollBar,thumbStyle:S?.verticalScrollBarThumb,showScrollBar:C}),M&&p>ce.width&&h.createElement(vx,{ref:pe,prefixCls:n,scrollOffset:V,scrollRange:p,rtl:N,onScroll:Oe,onStartMove:G,onStopMove:K,spinSize:me,containerSize:ce.width,horizontal:!0,style:S?.horizontalScrollBar,thumbStyle:S?.horizontalScrollBarThumb,showScrollBar:C}))}var xx=h.forwardRef(bx);xx.displayName=`List`;var vce=h.forwardRef((e,t)=>bx({...e,virtual:!1},t));vce.displayName=`List`;var Sx=xx;function yce(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function Cx(){return Cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cx.apply(this,arguments)}function Tx(e){return typeof e==`string`||typeof e==`number`}var bce=h.forwardRef((e,t)=>{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:u,showScrollBar:d,lockOptions:f}=zb(),{maxCount:p,flattenOptions:g,onActiveValue:_,defaultActiveFirstOption:v,onSelect:y,menuItemSelectedIcon:b,rawValues:x,fieldNames:S,virtual:C,direction:w,listHeight:T,listItemHeight:E,optionRender:D,classNames:O,styles:k}=h.useContext(Qb),A=`${n}-item`,j=we(()=>g,[i,f],(e,t)=>t[0]&&!t[1]),M=h.useRef(null),N=h.useMemo(()=>a&&Ub(p)&&x?.size>=p,[a,p,x?.size]),P=e=>{e.preventDefault()},F=e=>{M.current?.scrollTo(typeof e==`number`?{index:e}:e)},I=h.useCallback(e=>o===`combobox`?!1:x.has(e),[o,[...x].toString(),x.size]),L=(e,t=1)=>{let n=j.length;for(let r=0;r<n;r+=1){let i=(e+r*t+n)%n,{group:a,data:o}=j[i]||{};if(!a&&!o?.disabled&&(I(o.value)||!N))return i}return-1},[R,z]=h.useState(()=>L(0)),B=(e,t=!1)=>{z(e);let n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){_(null,-1,n);return}_(r.value,e,n)};(0,h.useEffect)(()=>{B(v===!1?-1:L(0))},[j.length,s]);let V=h.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():x.has(e),[o,s,[...x].toString(),x.size]);(0,h.useEffect)(()=>{let e;if(!a&&i&&x.size===1){let t=Array.from(x)[0],n=j.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(B(n),e=setTimeout(()=>{F(n)}))}return i&&M.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let H=e=>{e!==void 0&&y(e,{selected:!x.has(e)}),a||c(!1)};if(h.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case Tt.N:case Tt.P:case Tt.UP:case Tt.DOWN:{let e=0;if(t===Tt.UP?e=-1:t===Tt.DOWN?e=1:yce()&&n&&(t===Tt.N?e=1:t===Tt.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case Tt.TAB:case Tt.ENTER:{let t=j[R];if(!t||t.data.disabled)return H(void 0);!N||x.has(t.value)?H(t.value):H(void 0),i&&e.preventDefault();break}case Tt.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{F(e)}})),j.length===0)return h.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${A}-empty`,onMouseDown:P},l);let U=Object.keys(S).map(e=>S[e]),W=e=>e.label;function G(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let K=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=qt(n,!0),s=W(t);return t?h.createElement(`div`,Cx({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},G(t,e),{"aria-selected":V(r),"aria-disabled":i}),r):null},q={role:`listbox`,id:`${r}_list`};return h.createElement(h.Fragment,null,C&&h.createElement(`div`,Cx({},q,{style:{height:0,width:0,overflow:`hidden`}}),K(R-1),K(R),K(R+1)),h.createElement(Sx,{itemKey:`key`,ref:M,data:j,height:T,itemHeight:E,fullHeight:!1,onMouseDown:P,onScroll:u,virtual:C,direction:w,innerProps:C?null:q,showScrollBar:d,className:O?.popup?.list,style:k?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(Tx(a)?a.toString():void 0);return h.createElement(`div`,{className:m(A,`${A}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,g=Ht(p,U),_=I(o),v=c||!_&&N,y=`${A}-option`,x=m(A,y,f,O?.popup?.listItem,{[`${y}-grouped`]:r,[`${y}-active`]:R===t&&!v,[`${y}-disabled`]:v,[`${y}-selected`]:_}),S=W(e),w=!b||typeof b==`function`||_,T=typeof S==`number`?S:S||o,E=Tx(T)?T.toString():void 0;return l!==void 0&&(E=l),h.createElement(`div`,Cx({},qt(g),C?{}:G(e,t),{"aria-selected":C?void 0:V(o),"aria-disabled":v,className:x,title:E,onMouseMove:()=>{R===t||v||B(t)},onClick:()=>{v||H(o)},style:{...k?.popup?.listItem,...d}}),h.createElement(`div`,{className:`${y}-content`},typeof D==`function`?D(e,{index:t}):T),h.isValidElement(b)||_,w&&h.createElement(rx,{className:`${A}-option-state`,customizeIcon:b,customizeIconProps:{value:o,disabled:v,isSelected:_}},_?`✓`:null))}))}),xce=((e,t)=>{let n=h.useRef({values:new Map,options:new Map});return[h.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),h.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function Ex(e,t){return $b(e).join(``).toUpperCase().includes(t)}var Sce=((e,t,n,r,i)=>h.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>Ex(t[e],u)):t[a]?Ex(t[o===`children`?`label`:o],u):Ex(t[s],u),f=l?e=>Gb(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function Cce(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function Dx(e,t=!1){return tn(e).map((e,n)=>{if(!h.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?Cce(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:Dx(a)}}).filter(e=>e)}var wce=(e,t,n,r,i)=>h.useMemo(()=>{let a=e;e||(a=Dx(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a<e.length;a+=1){let u=e[a];!u[n.options]||t?(o.set(u[n.value],u),c(s,u,n.label),r.forEach(e=>{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function Ox(e){let t=h.useRef();return t.current=e,h.useCallback((...e)=>t.current(...e),[])}function Tce(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return h.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function kx(){return kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kx.apply(this,arguments)}var Ece=[`inputValue`];function Dce(e){return!e||typeof e!=`object`}var Ax=h.forwardRef((e,t)=>{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:g,onActive:_,popupMatchSelectWidth:v=!0,optionLabelProp:y,options:b,optionRender:x,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:T,direction:E,listHeight:D=200,listItemHeight:O=20,labelRender:k,value:A,defaultValue:j,labelInValue:M,onChange:N,maxCount:P,classNames:F,styles:I,...L}=e,[R,z]=Tce(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:B,searchValue:V,optionFilterProp:H,filterSort:U,onSearch:W,autoClearSearchValue:G=!0}=z,K=h.useMemo(()=>H?Array.isArray(H)?H:[H]:[],[H]),q=Ce(n),ee=cx(r),te=!!(!b&&S),ne=h.useMemo(()=>B===void 0&&r===`combobox`?!1:B,[B,r]),re=h.useMemo(()=>Wb(o,te),[JSON.stringify(o),te]),[ie,ae]=ve(``,V),oe=ie||``,se=wce(b,S,re,K,y),{valueOptions:ce,labelOptions:le,options:ue}=se,de=h.useCallback(e=>$b(e).map(e=>{let t,n,r,i;Dce(e)?t=e:(n=e.label,t=e.value);let a=ce.get(t);return a&&(n===void 0&&(n=a?.[y||re.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[re,y,ce]),[fe,pe]=ve(j,A),[me,he]=xce(h.useMemo(()=>{let e=de(ee&&fe===null?[]:fe);return r===`combobox`&&Kse(e[0]?.value)?[]:e},[fe,de,r,ee]),ce),ge=h.useMemo(()=>{if(!r&&me.length===1){let e=me[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return me.map(e=>({...e,label:(typeof k==`function`?k(e):e.label)??e.value}))},[r,me,k]),_e=h.useMemo(()=>new Set(me.map(e=>e.value)),[me]);h.useEffect(()=>{if(r===`combobox`){let e=me[0]?.value;ae(Gse(e)?String(e):``)}},[me]);let ye=Ox((e,t)=>{let n=t??e;return{[re.value]:e,[re.label]:n}}),be=Sce(h.useMemo(()=>{if(r!==`tags`)return ue;let e=[...ue],t=e=>ce.has(e);return[...me].sort((e,t)=>e.value<t.value?-1:1).forEach(n=>{let r=n.value;t(r)||e.push(ye(r,n.label))}),e},[ye,ue,ce,me,r]),re,oe,ne,K),xe=h.useMemo(()=>{let e=e=>K.length?K.some(t=>e?.[t]===oe):e?.value===oe;return r!==`tags`||!oe||be.some(t=>e(t))||be.some(e=>e[re.value]===oe)||ce.get(oe)?.disabled?be:[ye(oe),...be]},[ye,K,r,be,oe,re,ce]),Se=e=>[...e].sort((e,t)=>U(e,t,{searchValue:oe})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?Se(e.options):e.options}:e),we=h.useMemo(()=>U?Se(xe):xe,[xe,U,oe]),Te=h.useMemo(()=>Bse(we,{fieldNames:re,childrenAsData:te}),[we,re,te]),Ee=e=>{let t=de(e);if(pe(t),N&&(t.length!==me.length||t.some((e,t)=>me[t]?.value!==e?.value))){let e=M?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>Gb(he(e.value)));N(ee?e:e[0],ee?n:n[0])}},[De,Oe]=h.useState(null),[ke,Ae]=h.useState(0),je=C===void 0?r!==`combobox`:C,Me=h.useRef(),Ne=h.useCallback((e,t,{source:n=`keyboard`}={})=>{Ae(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&Oe(String(e));let i=Promise.resolve().then(()=>{Me.current===i&&_?.(e)});Me.current=i},[a,r,_]),Pe=(e,t,n)=>{let r=()=>{let t=he(e);return[M?{label:t?.[re.label],value:e}:e,Gb(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&g&&n!==`clear`){let[e,t]=r();g(e,t)}},Fe=Ox((e,t)=>{let n,i=ee?t.selected:!0;n=i?ee?[...me,e]:[e]:me.filter(t=>t.value!==e),Ee(n),Pe(e,i),r===`combobox`?Oe(``):(!cx||G)&&(ae(``),Oe(``))}),Ie=(e,t)=>{Ee(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Pe(e.value,!1,n)})},Le=(e,t)=>{if(ae(e),Oe(null),t.source===`submit`){let t=(e||``).trim();if(t){if(ce.get(t)?.disabled){ae(``);return}Ee(Array.from(new Set([..._e,t]))),Pe(t,!0),ae(``)}return}t.source!==`blur`&&(r===`combobox`&&Ee(e),W?.(e))},Re=e=>{let t=e;r!==`tags`&&(t=e.map(e=>le.get(e)?.value).filter(e=>e!==void 0)),r===`tags`&&(t=t.filter(e=>!ce.get(e)?.disabled));let n=Array.from(new Set([..._e,...t]));Ee(n),n.forEach(e=>{Pe(e,!0)})},ze=h.useMemo(()=>{let e=T!==!1&&v!==!1;return{...se,flattenOptions:Te,onActiveValue:Ne,defaultActiveFirstOption:je,onSelect:Fe,menuItemSelectedIcon:w,rawValues:_e,fieldNames:re,virtual:e,direction:E,listHeight:D,listItemHeight:O,childrenAsData:te,maxCount:P,optionRender:x,classNames:F,styles:I}},[P,se,Te,Ne,je,Fe,w,_e,re,T,v,E,D,O,te,x,F,I]);return h.createElement(Qb.Provider,{value:ze},h.createElement(tce,kx({},L,{id:q,prefixCls:i,ref:t,omitDomProps:Ece,mode:r,classNames:F,styles:I,displayValues:ge,onDisplayValuesChange:Ie,maxCount:P,direction:E,showSearch:R,searchValue:oe,onSearch:Le,autoClearSearchValue:G,onSearchSplit:Re,popupMatchSelectWidth:v,OptionList:bce,emptyOptions:!Te.length,activeValue:De,activeDescendantId:`${q}_list_${ke}`})))});Ax.Option=ux,Ax.OptGroup=lx;var Oce=Ax;function jx(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}var kce=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function Ace(e,t){return e||kce(t)}var Mx=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},jce=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...$a(e),position:`absolute`,top:-9999,zIndex:e.zIndexPopup,boxSizing:`border-box`,padding:e.paddingXXS,overflow:`hidden`,fontSize:e.fontSize,fontVariant:`initial`,backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,[`
${i}${s}bottomLeft,
${a}${s}bottomLeft
`]:{animationName:Jd},[`
${i}${s}topLeft,
${a}${s}topLeft,
${i}${s}topRight,
${a}${s}topRight
`]:{animationName:Xd},[`${o}${s}bottomLeft`]:{animationName:Yd},[`
${o}${s}topLeft,
${o}${s}topRight
`]:{animationName:Zd},"&-hidden":{display:`none`},[r]:{...Mx(e),cursor:`pointer`,transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...Qa},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected${r}-option-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgActiveHover},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...Mx(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},rf(e,`slide-up`),rf(e,`slide-down`),qd(e,`move-up`),qd(e,`move-down`)]},Mce=e=>{let{antCls:t,componentCls:n}=e,r={background:`transparent`},i=[`> input[disabled]`,`> textarea[disabled]`,`> ${n}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(`, `);return{[`&${n}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${n}-placeholder`]:{display:`none`},[`${n}-content`]:{margin:0,padding:0,"&-value":{display:`none`}},[`&${n}-disabled ${n}-content`]:{[i]:r,"input[disabled], textarea[disabled]":r}}}},Nx=4,Nce=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=vc(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${Nx}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...Qa,marginInlineEnd:a},"&-remove":{...eo(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:Nx,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},Px=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=vc(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`affix-color`)]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${J(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},Fx=(e,t,n,r,i,a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[Px(e,n),{[`&${o}-status-error`]:Px(e,{...n,...r}),[`&${o}-status-warning`]:Px(e,{...n,...i})},a]}},Ix=(e,t)=>({outline:`${J(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:J(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),Pce=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:a,iconCls:o,antCls:s,max:c,calc:l}=e,[u,d]=vc(s,`select`),f=c(l(a).sub(i).equal(),0);return{[t]:[{[u(`border-radius`)]:e.borderRadius,[u(`border-color`)]:`#000`,[u(`border-size`)]:e.lineWidth,[u(`background-color`)]:e.colorBgContainer,[u(`font-size`)]:e.fontSize,[u(`line-height`)]:e.lineHeight,[u(`font-height`)]:n,[u(`color`)]:e.colorText,[u(`affix-color`)]:e.colorText,[u(`height`)]:r,[u(`padding-horizontal`)]:l(e.paddingSM).sub(e.lineWidth).equal(),[u(`padding-vertical`)]:`calc((${d(`height`)} - ${d(`font-height`)}) / 2 - ${d(`border-size`)})`,...$a(e),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:d(`border-radius`),borderWidth:d(`border-size`),borderStyle:e.lineType,borderColor:d(`border-color`),background:d(`background-color`),fontSize:d(`font-size`),lineHeight:d(`line-height`),color:d(`color`),paddingInline:d(`padding-horizontal`),paddingBlock:d(`padding-vertical`),[`${t}-prefix`]:{color:d(`affix-color`),flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...Qa,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:f,"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[o]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[u(`height`)]:e.controlHeightSM,[u(`padding-horizontal`)]:l(e.paddingXS).sub(e.lineWidth).equal(),[u(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:d(`padding-horizontal`)}},"&-lg":{[u(`height`)]:e.controlHeightLG,[u(`font-size`)]:e.fontSizeLG,[u(`line-height`)]:e.lineHeightLG,[u(`font-height`)]:e.fontHeightLG,[u(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:d(`color`),fontFamily:`inherit`,fontSize:`inherit`,"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`inherit`},[`${t}-content`]:{...Qa,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1,opacity:1}},[`&${t}-open ${t}-content`]:{"&-has-value":{opacity:.25},"&-has-search-value":{opacity:1,transition:`opacity ${e.motionDurationMid} ${e.motionEaseInOut}`,color:`transparent`,[`> *:not(${t}-input)`]:{opacity:0}}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},Nce(e),Fx(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline,affixColor:e.colorErrorAffix},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline,affixColor:e.colorWarningAffix}),Fx(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{color:e.colorErrorText,background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Fx(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`},{},{},{[`&:not(${t}-disabled):has(input:focus-visible), &:not(${t}-disabled):has(textarea:focus-visible)`]:Ix(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:Ix(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:Ix(e,e.colorWarning)}),Fx(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorBorderHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),Mce(e)]}},Fce=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},Ice=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...$a(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...Qa,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Lce=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},Ice(e),jce(e),{[`${t}-rtl`]:{direction:`rtl`}},$f(e,{focusElCls:`${t}-focused`})]},Rce=hc(`Select`,(e,{rootPrefixCls:t})=>{let n=Bo(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Lce(n),Pce(n)]},Fce,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function zce(e){return h.useMemo(()=>{if(e)return(...t)=>h.createElement(G_,{space:!0},e.apply(void 0,t))},[e])}function Bce(e,t){return t===void 0?e!==null:t}var Lx=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,Rx=h.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:g,status:_,builtinPlacements:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,direction:x,style:S,allowClear:C,variant:w,popupStyle:T,dropdownStyle:E,transitionName:D,tagRender:O,maxCount:k,prefix:A,dropdownRender:j,popupRender:M,onDropdownVisibleChange:N,onOpenChange:P,styles:F,classNames:I,clearIcon:L,showSearch:R,...z}=e,{getPopupContainer:B,getPrefixCls:V,renderEmpty:H,direction:U,virtual:W,popupMatchSelectWidth:G,popupOverflow:K}=h.useContext(Fr),{showSearch:q,allowClear:ee,style:te,styles:ne,className:re,classNames:ie,clearIcon:ae,loadingIcon:oe,menuItemSelectedIcon:se,removeIcon:ce,suffixIcon:le}=Rr(`select`),[,ue]=mc(),de=d??ue?.controlHeight,fe=V(`select`,n),pe=V(),me=x??U,{compactSize:he,compactItemClassnames:ge}=_d(fe,me),[_e,ve]=pm(`select`,w,r),ye=ng(fe),[be,xe]=Rce(fe,ye),Se=h.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===Lx?`combobox`:t},[e.mode]),Ce=Se===`multiple`||Se===`tags`,we=Bce(e.suffixIcon,e.showArrow),Te=b??y??G,Ee=zce(M||j),De=P||N,{status:Oe,hasFeedback:ke,isFormItemInput:Ae,feedbackIcon:je}=h.useContext(fm),Me=q_(Oe,_),Ne;Ne=g===void 0?Se===`combobox`?null:H?.(`Select`)||h.createElement(Eb,{componentName:`Select`}):g;let{suffixIcon:Pe,itemIcon:Fe,removeIcon:Ie,clearIcon:Le}=Av({...z,multiple:Ce,hasFeedback:ke,feedbackIcon:je,showSuffixIcon:we,prefixCls:fe,componentName:`Select`,clearIcon:L,searchIcon:jx(R,`searchIcon`),contextClearIcon:ae,contextLoadingIcon:oe,contextMenuItemSelectedIcon:se,contextRemoveIcon:ce,contextSearchIcon:jx(q,`searchIcon`),contextSuffixIcon:le}),Re=C??ee,ze=Re===!0?{clearIcon:Le}:Re,Be=R??q,Ve=Ht(z,[`suffixIcon`,`itemIcon`]),He=Wu(e=>f??he??e),Ue=h.useContext(mu),We=p??Ue,Ge={...e,variant:_e,status:Me,disabled:We,size:He},Ke=Er(te),qe=Er(S),[Je,Ye]=Or([ie,I],[ne,Ke,F,qe],{props:Ge},{popup:{_default:`root`}}),Xe=m(Je.popup.root,s,c,{[`${fe}-dropdown-${me}`]:me===`rtl`},a,xe,ye,be),Ze={...Ye.popup?.root,...T??E},Qe=m({[`${fe}-lg`]:He===`large`,[`${fe}-sm`]:He===`small`,[`${fe}-rtl`]:me===`rtl`,[`${fe}-${_e}`]:ve,[`${fe}-in-form-item`]:Ae},K_(fe,Me,ke),ge,re,i,Je.root,a,xe,ye,be),$e=h.useMemo(()=>u===void 0?me===`rtl`?`bottomRight`:`bottomLeft`:u,[u,me]),[et]=md(`SelectLike`,Ye.popup.root?.zIndex??Ze.zIndex);return h.createElement(Oce,{ref:t,virtual:W,classNames:Je,styles:Ye,showSearch:Be,...Ve,style:Ye.root,popupMatchSelectWidth:Te,transitionName:Lf(pe,`slide-up`,D),builtinPlacements:Ace(v,K),listHeight:l,listItemHeight:de,mode:Se,prefixCls:fe,placement:$e,direction:me,prefix:A,suffixIcon:Pe,menuItemSelectedIcon:Fe,removeIcon:Ie,allowClear:ze,notFoundContent:Ne,className:Qe,getPopupContainer:o||B,popupClassName:Xe,disabled:We,popupStyle:{...Ye.popup.root,...Ze,zIndex:et},maxCount:Ce?k:void 0,tagRender:Ce?O:void 0,popupRender:Ee,onPopupVisibleChange:De})}),Vce=kg(Rx,`popupAlign`);Rx.SECRET_COMBOBOX_MODE_DO_NOT_USE=Lx,Rx.Option=ux,Rx.OptGroup=lx,Rx._InternalPanelDoNotUseOrYouWillBeFired=Vce;var Hce=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Uce=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...hv(e),width:e.paginationMiniQuickJumperInputWidth}}}}},Wce=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...mv(e)}}}}},Gce=e=>{let{componentCls:t,antCls:n}=e,[,r]=vc(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${J(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${J(e.inputOutlineOffset)} 0 ${J(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Kce=e=>{let{componentCls:t}=e,n=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[n]:{background:e.colorFillTertiary,borderColor:`transparent`,"&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...Z_(e)}}},[`&${t}-borderless`]:{[n]:{background:`transparent`,border:`none`,"&:focus":{outline:`none`,boxShadow:`none`},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-underlined`]:{[n]:{background:e.colorBgContainer,borderWidth:`${J(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`}}}}},qce=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=vc(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:a(`item-spacing-actual`)},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:`inline-block`,minWidth:a(`item-size-actual`),height:a(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:a(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${J(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:a(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:a(`item-size-actual`),verticalAlign:`baseline`,input:{...gv(e),...Q_(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Z_(e)},width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)}}}}},Jce=e=>{let{componentCls:t,antCls:n}=e,[,r]=vc(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:J(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${J(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${J(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},Yce=e=>{let{componentCls:t,antCls:n}=e,[r,i]=vc(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:J(e.itemSize),[r(`item-spacing-actual`)]:J(e.marginXS),"&-small":{[r(`item-size-actual`)]:J(e.itemSizeSM),[r(`item-spacing-actual`)]:J(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:J(e.itemSizeLG),[r(`item-spacing-actual`)]:J(e.marginSM)},...$a(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:J(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...Jce(e),...qce(e),...Gce(e),...Kce(e),...Uce(e),...Wce(e),...Hce(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},Xce=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...io(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...ro(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ro(e)}}}},zx=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...X_(e)}),Bx=e=>Bo(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},Y_(e)),Zce=hc(`Pagination`,e=>{let t=Bx(e);return[Yce(t),Xce(t)]},zx),Qce=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},$ce=_c([`Pagination`,`bordered`],e=>Qce(Bx(e)),zx);function Vx(e){return(0,h.useMemo)(()=>typeof e==`boolean`?[e,{}]:gr(e)?[!0,e]:[void 0,void 0],[e])}var Hx=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:g,..._}=e,{xs:v}=xg(l),[,y]=mc(),{getPrefixCls:b,direction:x,showSizeChanger:S,className:C,style:w,classNames:T,styles:E,totalBoundaryShowSizeChanger:D}=Rr(`pagination`),O=b(`pagination`,n),[k,A]=Zce(O),j=Wu(s),M=j===`small`||!!(v&&!j&&l),[N,P]=pm(`input`),F={...e,size:j},I=Er(w),L=Er(o),[R,z]=Or([T,g],[E,I,p,L],{props:F}),[B]=Wc(`Pagination`,jc),V={...B,...c},[H,U]=Vx(u),[W,G]=Vx(S),K=H??W,q=U??G,ee=d||Rx,te=h.useMemo(()=>f?f.map(Number):void 0,[f]),ne=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=q||{},l=o.find(e=>String(e.value)===String(n))?.value;return h.createElement(ee,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...q,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:j,className:m(a,s)})},re=h.useMemo(()=>{let e=h.createElement(`span`,{className:`${O}-item-ellipsis`},h.createElement(wm,null));return{prevIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(Af,null):h.createElement(Mb,null)),nextIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(Mb,null):h.createElement(Af,null)),jumpPrevIcon:h.createElement(`a`,{className:`${O}-item-link`},h.createElement(`div`,{className:`${O}-item-container`},x===`rtl`?h.createElement(Ab,{className:`${O}-item-link-icon`}):h.createElement(Ob,{className:`${O}-item-link-icon`}),e)),jumpNextIcon:h.createElement(`a`,{className:`${O}-item-link`},h.createElement(`div`,{className:`${O}-item-container`},x===`rtl`?h.createElement(Ob,{className:`${O}-item-link-icon`}):h.createElement(Ab,{className:`${O}-item-link-icon`}),e))}},[x,O]),ie=b(`select`,r),ae=m({[`${O}-${t}`]:!!t,[`${O}-${j}`]:j,[`${O}-${N}`]:P&&N!==`outlined`,[`${O}-mini`]:M,[`${O}-rtl`]:x===`rtl`,[`${O}-bordered`]:y.wireframe},C,i,a,R.root,k,A),oe={...z.root};return h.createElement(h.Fragment,null,y.wireframe&&h.createElement($ce,{prefixCls:O}),h.createElement(Pse,{...re,..._,styles:z,classNames:R,style:oe,prefixCls:O,selectPrefixCls:ie,className:ae,locale:V,pageSizeOptions:te,showSizeChanger:K,totalBoundaryShowSizeChanger:_.totalBoundaryShowSizeChanger??D,sizeChangerRender:ne}))};function ele(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function tle(e,t,n){var r=(n||{}).atBegin;return ele(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var Ux=100,Wx=Ux/5,Gx=Ux/2-Wx/2,Kx=Gx*2*Math.PI,qx=50,Jx=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return h.createElement(`circle`,{className:m(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Gx,cx:qx,cy:qx,strokeWidth:Wx,style:n})},nle=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=h.useState(!1);he(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${Kx/4}`,strokeDasharray:`${Kx*s/100} ${Kx*(100-s)/100}`};return h.createElement(`span`,{className:m(r,`${n}-progress`,{[i]:s<=0})},h.createElement(`svg`,{viewBox:`0 0 ${Ux} ${Ux}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},h.createElement(Jx,{dotClassName:n,hasCircleCls:!0}),h.createElement(Jx,{dotClassName:n,style:c})))};function rle(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return h.createElement(h.Fragment,null,h.createElement(`span`,{className:m(o,r,n>0&&s),style:i},h.createElement(`span`,{className:m(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>h.createElement(`i`,{className:`${t}-dot-item`,key:e})))),h.createElement(nle,{prefixCls:t,percent:n}))}function ile(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&h.isValidElement(n)?lu(n,e=>({className:m(e.className,o,i),style:{...e.style,...a},percent:r})):h.createElement(rle,{prefixCls:t,percent:r,className:i,style:a})}var ale=new Xa(`antSpinMove`,{to:{opacity:1}}),ole=new Xa(`antRotate`,{to:{transform:`rotate(405deg)`}}),sle=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...$a(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},cle=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=vc(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:ole,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:ale,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},lle=e=>{let{componentCls:t}=e,[n]=vc(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},ule=hc(`Spin`,e=>{let t=Bo(e,{spinDotDefault:e.colorTextDescription});return[sle(t),cle(t),lle(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),dle=200,Yx=[[30,.05],[70,.03],[96,.01]];function fle(e,t){let[n,r]=h.useState(0),i=h.useRef(null),a=t===`auto`;return h.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<Yx.length;n+=1){let[r,i]=Yx[n];if(e<=r)return e+t*i}return e})},dle)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var Xx;function ple(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var Zx=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:g,classNames:_,styles:v,...y}=e,{getPrefixCls:b,direction:x,indicator:S,className:C,style:w,classNames:T,styles:E}=Rr(`spin`),D=b(`spin`,t),[O,k]=ule(D),[A,j]=h.useState(()=>n&&!ple(n,r)),M=fle(A,g);h.useEffect(()=>{if(n){let e=tle(r,()=>{j(!0)});return e(),()=>{e?.cancel?.()}}j(!1)},[r,n]);let N=Wu(e=>o??e),P=c??s,F={...e,size:N,spinning:A,tip:P,description:P,fullscreen:f,children:d,percent:M},[I,L]=Or([T,_],[E,v],{props:F}),R=p??S??Xx,z=d!==void 0,B=z||f,V=h.createElement(h.Fragment,null,h.createElement(ile,{className:m(I.indicator),style:L.indicator,prefixCls:D,indicator:R,percent:M}),P&&h.createElement(`div`,{className:m(`${D}-description`,I.tip,I.description),style:{...L.tip,...L.description}},P));return h.createElement(`div`,{className:m(D,{[`${D}-sm`]:N===`small`,[`${D}-lg`]:N===`large`,[`${D}-spinning`]:A,[`${D}-rtl`]:x===`rtl`,[`${D}-fullscreen`]:f},a,I.root,f&&I.mask,B?l:[`${D}-section`,I.section],C,i,O,k),style:{...L.root,...B?{}:L.section,...f?L.mask:{},...w,...u},"aria-live":`polite`,"aria-busy":A,...y},A&&(B?h.createElement(`div`,{className:m(`${D}-section`,I.section),style:L.section},V):V),z&&h.createElement(`div`,{className:m(`${D}-container`,I.container),style:L.container},d))};Zx.setDefaultIndicator=e=>{Xx=e};var Qx=h.createContext({});Qx.Consumer;var mle=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,h.useContext)(Fr),s=o(`list`,e),c=m(`${s}-item-meta`,t),l=h.createElement(`div`,{className:`${s}-item-meta-content`},r&&h.createElement(`h4`,{className:`${s}-item-meta-title`},r),i&&h.createElement(`div`,{className:`${s}-item-meta-description`},i));return h.createElement(`div`,{...a,className:c},n&&h.createElement(`div`,{className:`${s}-item-meta-avatar`},n),(r||i)&&l)},$x=h.forwardRef((e,t)=>{let{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:c,colStyle:l,...u}=e,{grid:d,itemLayout:f}=(0,h.useContext)(Qx),{getPrefixCls:p,list:g}=(0,h.useContext)(Fr),_=e=>m(g?.item?.classNames?.[e],c?.[e]),v=e=>({...g?.item?.styles?.[e],...o?.[e]}),y=()=>{let e=tn(r);return e.some(hr)&&e.length>1},b=()=>f===`vertical`?!!a:!y(),x=p(`list`,n),S=i&&i.length>0&&h.createElement(`ul`,{className:m(`${x}-item-action`,_(`actions`)),key:`actions`,style:v(`actions`)},i.map((e,t)=>h.createElement(`li`,{key:`${x}-item-action-${t}`},e,t!==i.length-1&&h.createElement(`em`,{className:`${x}-item-action-split`})))),C=d?`div`:`li`,w=h.createElement(C,{...u,...d?{}:{ref:t},className:m(`${x}-item`,{[`${x}-item-no-flex`]:!b()},s)},f===`vertical`&&a?[h.createElement(`div`,{className:`${x}-item-main`,key:`content`},r,S),h.createElement(`div`,{className:m(`${x}-item-extra`,_(`extra`)),key:`extra`,style:v(`extra`)},a)]:[r,S,lu(a,{key:`extra`})]);return d?h.createElement(bg,{ref:t,flex:1,style:l},w):w});$x.Meta=mle;var hle=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=J(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${l} ${l} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${l} ${l}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${J(i)} ${J(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},gle=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${J(o)}`}}}}}},_le=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:c,colorPrimary:l,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_,headerBg:v,footerBg:y,emptyTextPadding:b,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:{...$a(e),position:`relative`,"--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:`none`},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,textAlign:`center`},[`${t}-items`]:{margin:0,padding:0,listStyle:`none`},[`${t}-item`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:c,color:m,[`${t}-item-meta`]:{display:`flex`,flex:1,alignItems:`flex-start`,maxWidth:`100%`,[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${J(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:`0 0 auto`,marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:`none`,"& > li":{position:`relative`,display:`inline-block`,padding:`0 ${J(f)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${J(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:b,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:`center`},[`${t}-item-no-flex`]:{display:`block`}},[`${t}-grid ${n}-col > ${t}-item`]:{display:`block`,maxWidth:`100%`,marginBlockEnd:p,paddingBlock:0,borderBlockEnd:`none`},[`${t}-vertical ${t}-item`]:{alignItems:`initial`,[`${t}-item-main`]:{display:`block`,flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${J(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:`right`}}}}},vle=hc(`List`,e=>{let t=Bo(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[_le(t),hle(t),gle(t)]},e=>({contentWidth:220,itemPadding:`${J(e.paddingContentVertical)} 0`,itemPaddingSM:`${J(e.paddingContentVerticalSM)} ${J(e.paddingContentHorizontal)}`,itemPaddingLG:`${J(e.paddingContentVerticalLG)} ${J(e.paddingContentHorizontalLG)}`,headerBg:`transparent`,footerBg:`transparent`,emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),eS=h.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:o,rootClassName:s,style:c,children:l,itemLayout:u,loadMore:d,grid:f,dataSource:p=[],size:g,header:_,footer:v,loading:y=!1,rowKey:b,renderItem:x,locale:S,...C}=e,w=gr(n)?n:{},[T,E]=h.useState(w.defaultCurrent||1),[D,O]=h.useState(w.defaultPageSize||10),{getPrefixCls:k,direction:A,className:j,style:M}=Rr(`list`),{renderEmpty:N}=h.useContext(Fr),P={current:1,total:0,position:`bottom`},F=e=>(t,r)=>{E(t),O(r),n&&n?.[e]?.(t,r)},I=F(`onChange`),L=F(`onShowSizeChange`),R=(e,t)=>{if(!x)return null;let n;return n=_r(b)?b(e):b?e[b]:e.key,n||=`list-item-${t}`,h.createElement(h.Fragment,{key:n},x(e,t))},z=!!(d||n||v),B=k(`list`,r),[V,H]=vle(B),U=y;typeof U==`boolean`&&(U={spinning:U});let W=!!U?.spinning,G=Wu(g),K=``;switch(G){case`large`:K=`lg`;break;case`small`:K=`sm`;break;default:break}let q=m(B,{[`${B}-vertical`]:u===`vertical`,[`${B}-${K}`]:K,[`${B}-split`]:a,[`${B}-bordered`]:i,[`${B}-loading`]:W,[`${B}-grid`]:!!f,[`${B}-something-after-last-item`]:z,[`${B}-rtl`]:A===`rtl`},j,o,s,V,H),ee=`${B}-container`,te=nn(P,{total:p.length,current:T,pageSize:D},n||{}),ne=Math.ceil(te.total/te.pageSize);te.current=Math.min(te.current,ne);let re=n&&h.createElement(`div`,{className:m(`${B}-pagination`)},h.createElement(Hx,{align:`end`,...te,onChange:I,onShowSizeChange:L})),ie=dr(p);n&&p.length>(te.current-1)*te.pageSize&&(ie=dr(p).splice((te.current-1)*te.pageSize,te.pageSize));let ae=xg(Object.keys(f||{}).some(e=>mg.includes(e))),oe=h.useMemo(()=>{for(let e=0;e<mg.length;e+=1){let t=mg[e];if(ae[t])return t}},[ae]),se=h.useMemo(()=>{if(!f)return;let e=oe&&f[oe]?f[oe]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),oe]),ce=W&&h.createElement(`div`,{style:{minHeight:53}});if(ie.length>0){let e=ie.map(R);ce=f?h.createElement(Cg,{className:m(ee,H),gutter:f.gutter},h.Children.map(e,e=>h.createElement(`div`,{key:e?.key,style:se},e))):h.createElement(`ul`,{className:m(`${B}-items`,ee,H)},e)}else!l&&!W&&(ce=h.createElement(`div`,{className:`${B}-empty-text`},S?.emptyText||N?.(`List`)||h.createElement(Eb,{componentName:`List`})));let le=te.position,ue=h.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return h.createElement(Qx.Provider,{value:ue},h.createElement(`div`,{ref:t,style:{...M,...c},className:q,...C},(le===`top`||le===`both`)&&re,_&&h.createElement(`div`,{className:`${B}-header`},_),h.createElement(Zx,{...U},ce,l),v&&h.createElement(`div`,{className:`${B}-footer`},v),d||(le===`bottom`||le===`both`)&&re))});eS.Item=$x;var yle=h.createContext({});function ble(){let[e,t]=h.useState({});return[e,h.useCallback((e,n)=>{if(!n){t(t=>{if(!(e in t))return t;let n={...t};return delete n[e],n});return}let r={width:n.offsetWidth,height:n.offsetHeight};t(t=>{let n=t[e];return n&&n.width===r.width&&n.height===r.height?t:{...t,[e]:r}})},[])]}function xle(e,t,n=0){let[r,i]=ble(),[a,o,s,c]=h.useMemo(()=>{let i=0,a=0,o=t?.threshold??0,s=new Map,c,l;return e.slice().reverse().forEach((e,u)=>{let d=String(e.key),f=r[d]?.height??0,p=t&&u>0?i+(t.offset??0)-f:i;s.set(d,p),u===0&&(c=f,l=r[d]?.width??0),(!t||u<o)&&(a=Math.max(a,p+f)),t?i=p+f:i+=f+n}),[s,a,c,l]},[e,n,r,t]);return[a,i,o,s,c]}var tS=8,nS=3,Sle=e=>{let t={offset:tS,threshold:nS};return e&&typeof e==`object`&&(t.offset=e.offset??tS,t.threshold=e.threshold??nS),[!!e,t]};function Cle(e,t,n){let r=Math.max(typeof e==`number`?e:0,0)*1e3,i=fe(t),a=fe(n),[o,s]=h.useState(r>0),c=h.useRef(0),l=h.useRef(null);function u(){let e=Date.now(),t=l.current;t!==null&&(c.current+=e-t),l.current=e}let d=h.useCallback(()=>{u(),s(!1)},[]),f=h.useCallback(()=>{r>0?(l.current=Date.now(),s(!0)):a(0)},[r]);return h.useEffect(()=>{c.current=0,s(r>0)},[r]),h.useEffect(()=>{if(!o)return;let e=null;function t(){u(),c.current>=r?(a(1),i()):(a(Math.min(c.current/r,1)),e=en(t))}return t(),()=>{en.cancel(e)}},[r,o]),[f,d]}function wle(e){let t=h.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e==`object`&&e?e:{},[e]),n=h.useMemo(()=>({...t,closeIcon:`closeIcon`in t?t.closeIcon:`×`,disabled:t.disabled??!1}),[t]),r=h.useMemo(()=>qt(n,!0),[n]);return[!!e,n,r]}var Tle=({className:e,style:t,percent:n})=>h.createElement(`progress`,{className:e,max:`100`,value:n,style:t});function rS(){return rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rS.apply(this,arguments)}var iS=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,components:s,title:c,description:l,icon:u,actions:d,role:f,closable:p,offset:g,notificationIndex:_,stackInThreshold:v,props:y,duration:b=4.5,showProgress:x,hovering:S,pauseOnHover:C=!0,onClick:w,onMouseEnter:T,onMouseLeave:E,onClose:D}=e,[O,k]=h.useState(0),A=`${n}-notice`,[j,M,N]=wle(p),P=fe(()=>{M.onClose?.(),D?.()}),[F,I]=h.useState(!1),[L,R]=Cle(b,P,k),z=100-Math.min(Math.max(O*100,0),100),B=s?.progress||Tle;h.useEffect(()=>{C&&(S?R():F||L())},[S,F,R,L,C]);function V(e){I(!0),C&&R(),T?.(e)}function H(e){I(!1),C&&!S&&L(),E?.(e)}function U(e){e.preventDefault(),e.stopPropagation(),P()}let W=h.useRef(g);g!==void 0&&(W.current=g);let G=h.useRef(_);_!==void 0&&(G.current=_);let K=g??W.current,q=_??G.current??0,ee=c==null?null:h.createElement(`div`,{className:m(`${A}-title`,a?.title),style:o?.title},c),te=l==null?null:h.createElement(`div`,{className:m(`${A}-description`,a?.description),style:o?.description},l),ne=ee!==null,re=te!==null,ie=null;ie=ne&&re?h.createElement(`div`,{className:m(`${A}-section`,a?.section),style:o?.section},ee,te):ee||te,u!=null&&(ie=h.createElement(`div`,{className:m(`${A}-wrapper`,a?.wrapper),style:o?.wrapper},h.createElement(`div`,{className:m(`${A}-icon`,a?.icon),style:o?.icon},u),ie));let ae=d?h.createElement(`div`,{className:m(`${A}-actions`,a?.actions),style:o?.actions},d):null,oe={"--notification-index":q,...o?.root,...i};K!==void 0&&(oe[`--notification-y`]=`${K}px`);let se=f??y?.role??`alert`;return h.createElement(`div`,rS({},y,{ref:t,role:se,"data-notification-index":q,className:m(A,r,a?.root,{[`${A}-closable`]:j,[`${A}-stack-in-threshold`]:v}),style:oe,onClick:w,onMouseEnter:V,onMouseLeave:H}),ie,ae,j&&h.createElement(`button`,rS({className:m(`${A}-close`,a?.close),"aria-label":`Close`},N,{style:o?.close,onClick:U}),M.closeIcon),x&&typeof b==`number`&&b>0&&h.createElement(B,{className:m(`${A}-progress`,a?.progress),percent:z,style:o?.progress}))}),aS=h.createContext({}),Ele=({children:e,classNames:t})=>{let n=h.useMemo(()=>({classNames:t}),[t]);return h.createElement(aS.Provider,{value:n},e)};function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}var Dle=h.forwardRef((e,t)=>{let{listPrefixCls:n,height:r,topNoticeHeight:i=0,topNoticeWidth:a=0,className:o,style:s,...c}=e,l=`${n}-content`,u=h.useRef(r),d=r<u.current?`decrease`:`increase`;u.current=r;let f={...s,height:r,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${a}px`};return h.createElement(`div`,oS({},c,{className:m(l,`${l}-${d}`,o),style:f,ref:t}))});function sS(){return sS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sS.apply(this,arguments)}var cS=[`wrapper`,`root`,`icon`,`section`,`title`,`description`,`actions`,`close`,`progress`];function Ole(e){return cS.reduce((t,n)=>(t[n]=m(...e.map(e=>e?.[n])),t),{})}function kle(e){return cS.reduce((t,n)=>(t[n]=Object.assign({},...e.map(e=>e?.[n])),t),{})}function Ale(e,t){let n=String(t),r=e.findIndex(e=>e.key===n);if(r!==-1)return e.length-r-1}var jle=e=>{let{config:t,components:n,contextClassNames:r,classNames:i,styles:a,className:o,style:s,nodeRef:c,listHovering:l,stackEnabled:u,pauseOnHover:d,setNodeSize:f,onNoticeClose:p,...g}=e,{key:_,placement:v,...y}=t,b=String(_),x=Ie(c,h.useCallback(e=>{f(b,e)},[f,b]));return h.createElement(iS,sS({},y,g,{ref:x,className:m(r?.notice,t.className,o),style:{...s,...t.style},classNames:Ole([i,t.classNames]),styles:kle([a,t.styles]),components:{...n,...t.components},hovering:u&&l,pauseOnHover:t.pauseOnHover??d,onClose:()=>{t.onClose?.(),p?.(_)}}))},lS=e=>{let{configList:t=[],prefixCls:n=`rc-notification`,pauseOnHover:r,classNames:i,styles:a,components:o,stack:s,motion:c,placement:l,className:u,style:d,onNoticeClose:f,onAllRemoved:p}=e,{classNames:g}=h.useContext(aS),_=h.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),v=typeof c==`function`?c(l):c,[y,{offset:b,threshold:x}]=Sle(s),[S,C]=h.useState(!1),w=y&&(S||_.length<=x),T=h.useMemo(()=>{if(!(!y||w))return{offset:b,threshold:x}},[w,b,y,x]),[E,D]=h.useState(0),O=h.useRef(null),[k,A,j,M,N]=xle(t,T,E),P=!!t.length;h.useEffect(()=>{let e=O.current;if(!e)return;let{gap:t,rowGap:n}=window.getComputedStyle(e),r=parseFloat(n||t)||0;D(e=>e===r?e:r)},[P]);let F=`${n}-list`;return h.createElement(`div`,{className:m(n,F,`${n}-${l}`,g?.list,u,i?.list,{[`${n}-stack`]:y,[`${n}-stack-expanded`]:w,[`${F}-hovered`]:S}),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},style:{...a?.list,...d}},h.createElement(Dle,{listPrefixCls:F,height:j,topNoticeHeight:M,topNoticeWidth:N,className:i?.listContent,style:a?.listContent,ref:O},h.createElement(ir,sS({component:!1,keys:_,motionAppear:!0},v,{onAllRemoved:()=>{l&&p?.(l)}}),({config:e,className:t,style:s},c)=>{let{key:l}=e,u=String(l),d=Ale(_,l),p=y&&d!==void 0&&d<x;return h.createElement(jle,{key:l,config:e,components:o,contextClassNames:g,classNames:i,styles:a,className:t,style:s,nodeRef:c,prefixCls:n,offset:k.get(u),notificationIndex:d,stackInThreshold:p,listHovering:S,stackEnabled:y,pauseOnHover:r,setNodeSize:A,onNoticeClose:f})})))},Mle=h.forwardRef((e,t)=>{let{prefixCls:n=`rc-notification`,container:r,motion:i,maxCount:a,pauseOnHover:o,classNames:s,styles:c,components:l,className:u,style:d,onAllRemoved:f,stack:p,renderNotifications:m}=e,[g,_]=h.useState([]),[v,y]=h.useState({}),b=h.useRef(!1);h.useImperativeHandle(t,()=>({open:e=>{_(t=>{let n=[...t],r=n.findIndex(t=>t.key===e.key),i={...e};return r>=0?(i.times=(t[r]?.times??0)+1,n[r]=i):(i.times=0,n.push(i)),a&&a>0&&n.length>a&&(n=n.slice(-a)),n})},close:e=>{_(t=>t.filter(t=>t.key!==e))},destroy:()=>{_([])}})),h.useEffect(()=>{let e={};g.forEach(t=>{let n=t.placement??`topRight`;e[n]=e[n]||[],e[n].push(t)}),Object.keys(v).forEach(t=>{e[t]=e[t]||[]}),y(e)},[g]);let x=fe(e=>{y(t=>{let n={...t};return(n[e]||[]).length||delete n[e],n})});if(h.useEffect(()=>{Object.keys(v).length>0?b.current=!0:b.current&&=(f?.(),!1)},[v,f]),!r)return null;let S=Object.keys(v);return(0,yn.createPortal)(h.createElement(h.Fragment,null,S.map(e=>{let t=h.createElement(lS,{key:e,configList:v[e],placement:e,prefixCls:n,pauseOnHover:o,classNames:s,styles:c,components:l,className:u?.(e),style:d?.(e),motion:i,stack:p,onNoticeClose:e=>{_(t=>t.filter(t=>t.key!==e))},onAllRemoved:x});return m?h.cloneElement(m(t,{prefixCls:n,key:e}),{key:e}):t})),r)}),Nle=()=>document.body,uS=0;function Ple(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{let r=e[n];r!==void 0&&(t[n]=r)})}),t}function Fle(e={}){let{getContainer:t=Nle,motion:n,prefixCls:r,placement:i,closable:a,duration:o,showProgress:s,pauseOnHover:c,classNames:l,styles:u,components:d,maxCount:f,className:p,style:m,onAllRemoved:g,stack:_,renderNotifications:v}=e,y={placement:i,closable:a,duration:o,showProgress:s},[b,x]=h.useState(),S=h.useRef(null),[C,w]=h.useState([]),T=h.createElement(Mle,{container:b,ref:S,prefixCls:r,motion:n,maxCount:f,pauseOnHover:c,classNames:l,styles:u,components:d,className:p,style:m,onAllRemoved:g,stack:_,renderNotifications:v}),E=fe(e=>{let t=Ple(y,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${uS}`,uS+=1),w(e=>[...e,{type:`open`,config:t}])}),D=h.useMemo(()=>({open:E,close:e=>{w(t=>[...t,{type:`close`,key:e}])},destroy:()=>{w(e=>[...e,{type:`destroy`}])}}),[]);return h.useEffect(()=>{x(t())}),h.useEffect(()=>{S.current&&C.length&&(C.forEach(e=>{switch(e.type){case`open`:S.current?.open(e.config);break;case`close`:S.current?.close(e.key);break;case`destroy`:S.current?.destroy();break}}),w(e=>{let t=e.filter(e=>!C.includes(e));return t.length===e.length?e:t}))},[C]),[D,T]}var Ile=e=>{let{motionDurationMid:t,motionEaseInOut:n}=e,r=`${t} ${n}`;return{transform:`scale(var(--notification-scale, 1))`,transition:[`transform`,`inset`,`clip-path`,`opacity`].map(e=>`${e} ${r}`).join(`, `)}},dS=(e,t)=>{let{componentCls:n,antCls:r,colorSuccess:i,colorInfo:a,colorWarning:o,colorError:s,colorTextHeading:c,colorText:l,boxShadow:u,borderRadiusLG:d,fontSize:f,lineHeight:p,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,margin:_,calc:v}=e,y=`${n}-notice`,[b,x]=vc(r,`notification`);return{[y]:{position:`absolute`,width:t.width,maxWidth:`calc(100vw - ${J(v(g).mul(2).equal())})`,padding:h,pointerEvents:`auto`,[b(`icon-font-size`)]:t.iconFontSize,[b(`title-font-size`)]:t.titleFontSize,[b(`title-line-height`)]:t.titleLineHeight,boxSizing:`border-box`,color:l,background:m,borderRadius:d,boxShadow:u,fontSize:f,lineHeight:p,wordWrap:`break-word`,overflow:`visible`,...Ile(e),...t.noticeStyle,"&::after":{position:`absolute`,insetInline:0,top:v(_).mul(-1).equal(),height:_,content:`""`},...t.typeStyle&&{"&-success":{background:x(`color-success-bg`,m)},"&-error":{background:x(`color-error-bg`,m)},"&-info":{background:x(`color-info-bg`,m)},"&-warning":{background:x(`color-warning-bg`,m)}}},[`${y}-wrapper`]:{display:`flex`,...t.contentStyle},[`${y}-title`]:{color:c,fontSize:x(`title-font-size`),lineHeight:x(`title-line-height`)},[`${y}-icon`]:{flex:`none`,fontSize:x(`icon-font-size`),lineHeight:1,[`&${y}-icon-success`]:{color:i},[`&${y}-icon-info, &${y}-icon-loading`]:{color:a},[`&${y}-icon-warning`]:{color:o},[`&${y}-icon-error`]:{color:s}}}},fS=e=>{let{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:i,borderRadiusLG:a,width:o,notificationIconSize:s,colorText:c,motionDurationMid:l,fontSizeLG:u,lineHeightLG:d,marginSM:f,marginXS:p,paddingLG:m,notificationPaddingVertical:h,notificationPaddingHorizontal:g,notificationCloseButtonSize:_,colorIcon:v,borderRadiusSM:y,colorIconHover:b,colorBgTextHover:x,colorBgTextActive:S}=e,C=`${t}-notice`;return{...dS(e,{width:o,iconFontSize:s,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:`flex-start`,gap:f},typeStyle:!0}),[`${C}-section`]:{display:`flex`,flexDirection:`column`,flex:`auto`,gap:p,minWidth:0},[`${C}-description`]:{color:c,fontSize:i},[`${C}-closable`]:{[`${C}-title, ${C}-description`]:{paddingInlineEnd:m},[`${C}-title + ${C}-description`]:{paddingInlineEnd:0}},[`${C}-close`]:{position:`absolute`,top:h,insetInlineEnd:g,display:`flex`,alignItems:`center`,justifyContent:`center`,width:_,height:_,color:v,background:`none`,border:`none`,borderRadius:y,outline:`none`,transition:[`color`,`background-color`].map(e=>`${e} ${l}`).join(`, `),"&:hover":{color:b,backgroundColor:x},"&:active":{backgroundColor:S},...io(e)},[`${C}-progress`]:{position:`absolute`,bottom:0,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${J(a)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:a,background:n}},[`${C}-actions`]:{float:`right`,marginTop:f}}},Lle=e=>{let{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,a=fS(e);return{[`${r}-pure-panel`]:{width:n,maxWidth:`100%`,...a,[r]:{...a[r],position:`relative`,width:`100%`,maxWidth:`100%`},[i]:{...a[i],float:`none`,textAlign:`end`}}}},Rle=e=>{let{componentCls:t}=e;return{[t]:fS(e)}},zle=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],Ble=`--notification-margin-edge`,Vle=(e,t)=>({blockEnd:e===`top`?`bottom`:`top`,inlineEnd:t===`left`?`right`:`left`}),pS=e=>`translate3d(${e?.x??`0`}, ${e?.y??`0`}, 0) scale(var(--notification-scale, 1))`,Hle=(e,t)=>{let n=e.startsWith(`bottom`)?`bottom`:`top`,r=e.endsWith(`Right`)?`right`:`left`,{blockEnd:i,inlineEnd:a}=Vle(n,r),o=e===`top`||e===`bottom`,s=e===`top`||e.endsWith(`Left`)?`-${t}`:t;return{placement:e,vertical:n,blockEnd:i,horizontal:r,inlineEnd:a,motionOffset:o?{x:`-50%`,y:s}:{x:s},baseMotionOffset:o?{x:`-50%`}:void 0,isCenterPlacement:o}},Ule=e=>e===`bottom`?`column-reverse`:`column`,Wle=e=>{let t=`var(${Ble}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},Gle=e=>e===`bottom`?`center top`:`center bottom`,mS=e=>J(e.calc(e.marginXXL).mul(-1).equal()),Kle=e=>{let t=mS(e);return`inset(${t} ${t} ${t} ${t})`},qle=(e,t)=>{let n=mS(e);return t===`bottom`?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},Jle=(e,t)=>{let{componentCls:n}=e,{placement:r,vertical:i,blockEnd:a,horizontal:o,inlineEnd:s,isCenterPlacement:c}=t,l=`${n}-notice`,u=`${l}${n}-fade`,d=pS(t.motionOffset),f=pS(t.baseMotionOffset),p=Gle(i);return{[`&${n}-${r}`]:{[i]:Wle(i),[a]:`auto`,display:`flex`,flexDirection:Ule(i),...c?{marginInline:0,left:`50%`,right:`auto`,transform:`translateX(-50%)`}:{[o]:0,[s]:`auto`},[l]:{[i]:`var(--notification-y, 0)`,...c?{left:`50%`,transform:f}:{[o]:`var(--notification-x, 0)`},transformOrigin:p},[`${u}-appear-prepare, ${u}-enter-prepare`]:{opacity:0,transform:d,transition:`none`},[`${u}-appear-start, ${u}-enter-start`]:{opacity:0,transform:d},[`${u}-appear-active, ${u}-enter-active`]:{opacity:1,transform:f},[`${u}-leave-start`]:{opacity:1,transform:f},[`${u}-leave-active`]:{opacity:0,transform:d},[`&${n}-stack:not(${n}-stack-expanded)`]:{[l]:{clipPath:qle(e,i)},[`${l}[data-notification-index='0']`]:{clipPath:Kle(e)}}}}},Yle=(e,t=zle)=>{let{notificationMotionOffset:n}=e,r=J(n);return{...t.reduce((t,n)=>({...t,...Jle(e,Hle(n,r))}),{})}},Xle=e=>{let{componentCls:t}=e;return{[t]:Yle(e)}},Zle=3,hS=e=>({zIndexPopup:e.zIndexPopupBase+ud+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),gS=e=>{let t=e.paddingMD,n=e.paddingLG;return Bo(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${J(e.paddingMD)} ${J(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},Qle=e=>`inset(${e} ${e} ${e} ${e})`,$le=e=>{let{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:i}=e,a=`${`${t}-list`}-content`;return{[a]:{position:`relative`,display:`flex`,flexShrink:0,flexDirection:`column`,gap:e.notificationMarginBottom,width:`100%`,willChange:`height, transform`,transition:`none`,[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${n}`}},[`${t}-fade`]:{backfaceVisibility:`hidden`,willChange:`transform, opacity`}}},eue=(e,t)=>{let{componentCls:n,notificationMarginEdge:r}=e,i=`--notification-margin-edge`,a=`${n}-notice`,o=`${n}-list`,s=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():`100%`,c=`${a}:nth-last-child(n + ${(t.stackVisibleCount??Zle)+1})`,l=Qle(J(e.calc(e.marginXXL).mul(-1).equal()));return{[n]:{...$a(e),[i]:J(r),position:`fixed`,zIndex:e.zIndexPopup,width:s,maxWidth:`100vw`,height:`100vh`,overflow:`hidden`,overscrollBehavior:`contain`,[`${n}-hook-holder`]:{position:`relative`},[`&${o}`]:{maxHeight:`100vh`,padding:`var(${i})`,overflowX:`hidden`,overflowY:`auto`,overscrollBehavior:`contain`,scrollbarWidth:`none`,msOverflowStyle:`none`,pointerEvents:`none`,"&::-webkit-scrollbar":{display:`none`,width:0,height:0}},...$le(e),[`&${n}-stack`]:{[a]:{clipPath:l},[`&:not(${n}-stack-expanded)`]:{[a]:{"--notification-scale":`calc(1 - min(var(--notification-index, 0), 2) * 0.06)`},[`${a}:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:`none`},[c]:{opacity:0,pointerEvents:`none`}}},"&-rtl":{direction:`rtl`,[`${a}-actions`]:{float:`left`}}}}};_c([`Notification`,`PurePanel`],e=>Lle(gS(e)),hS);var _S=(e,t)=>{let n=t.itemStyle??Rle;return[eue(e,t),n(e),Xle(e)]};hc(`Notification`,e=>_S(gS(e),{listWidthKey:`width`}),hS);var vS=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return Bo(gS(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},yS=e=>({zIndexPopup:e.zIndexPopupBase+ud+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),bS=e=>{let{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return dS(e,{width:`max-content`,iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:`center`,gap:e.marginXS},noticeStyle:{zIndex:1}})},tue=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,{"&::after":i,...a}=bS(e)[n],o={...a,position:`absolute`,zIndex:-1,left:`50%`,height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:`none`,transform:`translateX(-50%) translateY(100%)`,transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(`, `),content:`""`};return{[t]:{[`&${t}-stack`]:{[r]:{isolation:`isolate`,"&::before":{...o,top:`calc(var(--top-notificiation-height) - ${J(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${J(e.margin)})`},"&::after":{...o,zIndex:-2,top:`var(--top-notificiation-height)`,width:`calc(var(--top-notificiation-width) - ${J(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:`translateX(-50%) translateY(0)`}}}}}}},nue=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=bS(e);return{[`${n}-pure-panel`]:{width:`max-content`,maxWidth:`100%`,...r,[n]:{...r[n],position:`relative`,width:`max-content`,maxWidth:`100%`}}}},rue=_c([`Message`,`PurePanel`],e=>nue(vS(e)),yS),iue=e=>({[e.componentCls]:bS(e)}),xS=hc(`Message`,e=>{let t=vS(e);return[_S(t,{stackVisibleCount:1,itemStyle:iue}),tue(t)]},yS),aue={info:h.createElement(de,null),success:h.createElement(q,null),error:h.createElement(ne,null),warning:h.createElement(ce,null),loading:h.createElement(jd,null)},SS=(e,t)=>t||e&&aue[e]||null,oue=e=>{let{prefixCls:t,className:n,style:r,type:i,icon:a,content:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:g}=Rr(`message`),_=t||u(`message`),v=`${_}-notice`,y=ng(_),[b,x]=xS(_,y),[S,C]=Or([p,s],[g,c],{props:e}),w=SS(i,a),T=i?`${v}-icon-${i}`:void 0,E={wrapper:m(i&&`${_}-${i}`,S.wrapper),icon:m(T,S.icon),title:S.title},D={wrapper:C.wrapper,icon:C.icon,title:C.title};return h.createElement(`div`,{className:m(`${v}-pure-panel`,b,n,x,y,S.root),style:C.root},h.createElement(rue,{prefixCls:_}),h.createElement(iS,{...l,prefixCls:_,className:d,style:{...f,...r},duration:null,icon:w,title:o,classNames:E,styles:D}))},sue=e=>{let{items:t,classNames:n,style:r}=e,{getPrefixCls:i}=Rr(`message`),a=i(`message`),o=ng(a),[s,c]=xS(a,o),l=`${a}-notice`,u=t.map(e=>{let{content:t,duration:n,key:r,type:i}=e,o=i?`${l}-icon-${i}`:void 0;return{key:r,duration:n,icon:SS(i),title:t,className:`${l}-${i}`,classNames:{wrapper:`${a}-${i}`,icon:o}}});return h.createElement(lS,{prefixCls:a,placement:`top`,configList:u,className:m(s,c,o),classNames:{...n,wrapper:n?.wrapper,title:n?.title},style:r,stack:!1})},cue=(e,t)=>h.useMemo(()=>{let n=e??t;return n?{...gr(t)?t:{},...gr(n)?n:{}}:!1},[e,t]);function lue(e,t){return{...fr(e)&&{"--notification-top":J(e)},...fr(t)&&{"--notification-bottom":J(t)}}}function uue(e,t){return{motionName:t??`${e}-fade`}}function CS(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var due=8,fue=3,pue=!1,mue=({children:e,prefixCls:t})=>{let n=ng(t),[r,i]=xS(t,n);return h.createElement(Ele,{classNames:{list:m(r,i,n)}},e)},hue=(e,{prefixCls:t,key:n})=>h.createElement(mue,{prefixCls:t,key:n},e),gue=h.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=fue,rtl:s,classNames:c,styles:l,transitionName:u,pauseOnHover:d=!0,stack:f,onAllRemoved:p}=e,{getPrefixCls:g,direction:_,getPopupContainer:v}=Rr(`message`),{message:y}=h.useContext(Fr),b=r||g(`message`),[x,S]=Or([y?.classNames,c],[y?.styles,l],{props:e}),[C,w]=Fle({prefixCls:b,style:()=>lue(n??due),className:()=>m({[`${b}-rtl`]:s??_===`rtl`}),motion:()=>uue(b,u),closable:!1,duration:o,getContainer:()=>i?.()||v?.()||document.body,maxCount:a,onAllRemoved:p,classNames:x,styles:S,renderNotifications:hue,pauseOnHover:d,stack:cue(f,pue)});return h.useImperativeHandle(t,()=>({...C,prefixCls:b,message:y})),w}),wS=0;function TS(e){let t=h.useRef(null);return Mr(`Message`),[h.useMemo(()=>{let n=e=>{t.current?.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:o}=t.current,s=o?.className||{},c=o?.style||{},l=`${a}-notice`,{content:u,icon:d,type:f,key:p,className:h,style:g,onClose:_,classNames:v={},styles:y={},...b}=r,x=p;fr(x)||(wS+=1,x=`antd-message-${wS}`);let S={...e,...r},C=Dr(v,{props:S}),w=Dr(y,{props:S}),T=SS(f,d),E=f?`${l}-icon-${f}`:void 0;return CS(e=>(i({...b,key:x,icon:T,title:u,classNames:{...C,wrapper:m(f&&`${a}-${f}`,C.wrapper),icon:m(E,C.icon)},styles:w,placement:`top`,className:m({[`${l}-${f}`]:f},h,s),style:{...c,...g},onClose:()=>{_?.(),e()}}),()=>{n(x)}))},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():n(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{i[e]=(t,n,i)=>{let a;a=gr(t)&&`content`in t?t:{content:t};let o,s;return _r(n)?s=n:(o=n,s=i),r({onClose:s,duration:o,...a,type:e})}}),i},[]),h.createElement(gue,{key:`message-holder`,...e,ref:t})]}function _ue(e){return TS(e)}var ES=null,DS=e=>e(),OS=[],kS={};function AS(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i,stack:a}=kS,o=e?.()||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i,stack:a}}var vue=h.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,h.useContext)(Fr),a=kS.prefixCls||i(`message`),o=(0,h.useContext)(yle),[s,c]=TS({...n,prefixCls:a,...o.message});return h.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),yue=h.forwardRef((e,t)=>{let[n,r]=h.useState(AS),i=()=>{r(AS)};h.useEffect(i,[]);let a=Mu(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=h.createElement(vue,{ref:t,sync:i,messageConfig:n});return h.createElement(Pu,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),jS=()=>{if(!ES){let e=document.createDocumentFragment(),t={fragment:e};ES=t,DS(()=>{_n(h.createElement(yue,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,jS())})}}),e)});return}ES.instance&&(OS.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:DS(()=>{let t=ES.instance.open({...kS,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:DS(()=>{ES?.instance.destroy(e.key)});break;default:DS(()=>{var n;let r=(n=ES.instance)[t].apply(n,dr(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),OS=[])};function bue(e){kS={...kS,...e},DS(()=>{ES?.sync?.()})}function xue(e){let t=CS(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return OS.push(r),()=>{n?DS(()=>{n()}):r.skipped=!0}});return jS(),t}function Sue(e,t){let n=CS(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return OS.push(i),()=>{r?DS(()=>{r()}):i.skipped=!0}});return jS(),n}var Cue=e=>{OS.push({type:`destroy`,key:e}),jS()},wue=[`success`,`info`,`warning`,`error`,`loading`],MS={open:xue,destroy:Cue,config:bue,useMessage:_ue,_InternalPanelDoNotUseOrYouWillBeFired:oue,_InternalListDoNotUseOrYouWillBeFired:sue};wue.forEach(e=>{MS[e]=(...t)=>Sue(e,t)});var NS=e=>{let{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=h.useRef(!1),f=h.useRef(null),[p,m]=_e(!1),g=(...e)=>{a?.(...e)};h.useEffect(()=>{let e=null;return o&&(e=setTimeout(()=>{f.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[o]);let _=e=>{vr(e)&&(m(!0),e.then((...e)=>{m(!1,!0),g.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,!c?.())return Promise.reject(e)}))},v=e=>{if(d.current)return;if(d.current=!0,!u){g();return}let t;if(s){if(t=u(e),l&&!vr(t)){d.current=!1,g(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!vr(t)){g();return}_(t)};return h.createElement(sp,{...Td(t),onClick:v,loading:p,prefixCls:r,...i,ref:f},n)},PS=h.createContext({}),{Provider:FS}=PS,IS=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,h.useContext)(PS);return i?h.createElement(NS,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},LS=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,h.useContext)(PS);return h.createElement(NS,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},RS=h.createContext({});function zS(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function BS(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function Tue(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=BS(i),n.top+=BS(i,!0),n}var Eue=h.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function VS(){return VS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VS.apply(this,arguments)}var HS=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:g,onMouseDown:_,onMouseUp:v,holderRef:y,visible:b,forceRender:x,width:S,height:C,classNames:w,styles:T,isFixedPos:E,focusTrap:D}=e,{panel:O}=h.useContext(RS),k=(0,h.useRef)(null),A=Ie(y,O,k),[j]=vt(b&&E&&D!==!1,()=>k.current);h.useImperativeHandle(t,()=>({focus:()=>{k.current?.focus({preventScroll:!0})}}));let M={};S!==void 0&&(M.width=S),C!==void 0&&(M.height=C);let N=s?h.createElement(`div`,{className:m(`${n}-footer`,w?.footer),style:{...T?.footer}},s):null,P=a?h.createElement(`div`,{className:m(`${n}-header`,w?.header),style:{...T?.header}},h.createElement(`div`,{className:m(`${n}-title`,w?.title),id:o,style:{...T?.title}},a)):null,F=(0,h.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l??h.createElement(`span`,{className:`${n}-close-x`})}:{},[c,l,n]),I=qt(F,!0),L=typeof c==`object`&&c.disabled,R=c?h.createElement(`button`,VS({type:`button`,onClick:u,"aria-label":`Close`},I,{className:m(`${n}-close`,w?.close),disabled:L,style:T?.close}),F.closeIcon):null,z=h.createElement(`div`,{className:m(`${n}-container`,w?.container),style:T?.container},R,P,h.createElement(`div`,VS({className:m(`${n}-body`,w?.body),style:{...f,...T?.body}},p),d),N);return h.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:A,style:{...i,...M},className:m(n,r),onMouseDown:_,onMouseUp:v,tabIndex:-1,onFocus:e=>{j(e.target)}},h.createElement(Eue,{shouldUpdate:b||x},g?g(z):z))});function US(){return US=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},US.apply(this,arguments)}var Due=h.forwardRef((e,t)=>{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,h.useRef)(null),g=(0,h.useRef)(null);h.useImperativeHandle(t,()=>({...g.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[_,v]=h.useState(),y={};_&&(y.transformOrigin=_);function b(){if(!p.current?.nativeElement)return;let e=Tue(p.current.nativeElement);v(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return h.createElement(ar,{visible:o,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>h.createElement(HS,US({},e,{ref:g,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,...y},className:m(a,t)})))});function WS(){return WS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WS.apply(this,arguments)}var Oue=e=>{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return h.createElement(ar,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>h.createElement(`div`,WS({ref:a,style:{...r,...n},className:m(`${t}-mask`,e,o)},i)))};function GS(){return GS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GS.apply(this,arguments)}var kue=e=>{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:g=!0,maskTransitionName:_,maskAnimation:v,maskClosable:y=!0,maskStyle:b,maskProps:x,rootClassName:S,rootStyle:C,classNames:w,styles:T}=e,E=(0,h.useRef)(null),D=(0,h.useRef)(null),O=(0,h.useRef)(null),[k,A]=h.useState(r),[j,M]=h.useState(!1),N=Ce();function P(){Ve(D.current,document.activeElement)||(E.current=document.activeElement)}function F(){Ve(D.current,document.activeElement)||O.current?.focus()}function I(){if(A(!1),g&&E.current&&i){try{E.current.focus({preventScroll:!0})}catch{}E.current=null}k&&u?.()}function L(e){e?F():I(),l?.(e)}function R(e){c?.(e)}let z=(0,h.useRef)(!1),B=null;y&&(B=e=>{D.current===e.target&&z.current&&R(e)});function V(e){z.current=e.target===D.current}(0,h.useEffect)(()=>{r?(z.current=!1,A(!0),P(),D.current&&M(getComputedStyle(D.current).position===`fixed`)):k&&O.current.enableMotion()&&!O.current.inMotion()&&I()},[r]);let H={zIndex:n,...a,...T?.wrapper,display:k?null:`none`};return h.createElement(`div`,GS({className:m(`${t}-root`,S),style:C},qt(e,{data:!0})),h.createElement(Oue,{prefixCls:t,visible:g&&r,motionName:zS(t,_,v),style:{zIndex:n,...b,...T?.mask},maskProps:x,className:w?.mask}),h.createElement(`div`,GS({className:m(`${t}-wrap`,o,w?.wrapper),ref:D,onClick:B,onMouseDown:V,style:H},s),h.createElement(Due,GS({},e,{isFixedPos:j,ref:O,closable:p,ariaId:N,prefixCls:t,visible:r&&k,onClose:R,onVisibleChanged:L,motionName:zS(t,d,f)}))))};function KS(){return KS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KS.apply(this,arguments)}var Aue=e=>{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,scrollLock:l=!0,onClose:u}=e,{scrollLock:d,...f}=e,[p,m]=h.useState(t),g=h.useMemo(()=>({panel:s}),[s]);return h.useEffect(()=>{t&&m(!0)},[t]),!r&&i&&!p?null:h.createElement(RS.Provider,{value:g},h.createElement(dl,{open:t||r||p,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),u?.(t);return}},autoDestroy:!1,getContainer:n,autoLock:l&&(t||p)},h.createElement(kue,KS({},f,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),m(!1)}}))))},jue=()=>pe()&&window.document.documentElement;function Mue(e,t,n){return(0,h.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}function qS(){}var Nue=h.createContext({add:qS,remove:qS});function Pue(e){let t=h.useContext(Nue),n=h.useRef(null);return fe(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}var JS=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,h.useContext)(PS);return h.createElement(sp,{onClick:n,...e},t)},YS=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,h.useContext)(PS);return h.createElement(sp,{...Td(n),loading:e,onClick:i,...t},r)};function XS(e,t){return h.createElement(`span`,{className:`${e}-close-x`},t||h.createElement(ae,{className:`${e}-close-icon`}))}var ZS=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=Wc(`Modal`,Hc()),d=t||u?.okText,f=r||u?.cancelText,p=h.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return _r(l)||l===void 0?(m=h.createElement(h.Fragment,null,h.createElement(JS,null),h.createElement(YS,null)),_r(l)&&(m=l(m,{OkBtn:YS,CancelBtn:JS})),m=h.createElement(FS,{value:p},m)):m=l,h.createElement(hu,{disabled:!1},m)};function QS(e){return{position:e,inset:0}}var Fue=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:`none`,opacity:0,animationDuration:e.motionDurationSlow,userSelect:`none`},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:`none`},[`${t}-mask`]:{...QS(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...QS(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:Vd(e)}]},Iue=e=>{let{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`},[`${t}-centered`]:{textAlign:`center`,"&::before":{display:`inline-block`,width:0,height:`100%`,verticalAlign:`middle`,content:`""`},[t]:{top:0,display:`inline-block`,paddingBottom:0,textAlign:`start`,verticalAlign:`middle`}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:`calc(100vw - 16px)`,margin:`${J(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...$a(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${J(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...ro(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:`break-word`},[`${t}-container`]:{position:`relative`,backgroundColor:e.contentBg,backgroundClip:`padding-box`,border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:`auto`,padding:e.contentPadding},[`${t}-close`]:{position:`absolute`,top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:`none`,background:`transparent`,borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:`pointer`,transition:[`color`,`background-color`].map(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:J(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...io(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:`break-word`,padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`,margin:`${J(e.margin)} auto`}},[`${t}-footer`]:{textAlign:`end`,background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:`hidden`}}},{[`${t}-pure-panel`]:{top:`auto`,padding:0,display:`flex`,flexDirection:`column`,[`${t}-container,
${t}-body,
${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},Lue=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},Rue=e=>{let{componentCls:t}=e,n=vg(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${J(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(dr(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],dr(a))}}},$S=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Bo(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},eC=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${J(e.paddingMD)} ${J(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${J(e.padding)} ${J(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${J(e.paddingXS)} ${J(e.padding)}`:0,footerBorderTop:e.wireframe?`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${J(e.borderRadiusLG)} ${J(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${J(e.padding*2)} ${J(e.padding*2)} ${J(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),tC=hc(`Modal`,e=>{let t=$S(e);return[Iue(t),Lue(t),Fue(t),yf(t,`zoom`),Rue(t)]},eC,{unitless:{titleLineHeight:!0}}),nC;jue()&&document.documentElement.addEventListener(`click`,e=>{nC={x:e.pageX,y:e.pageY},setTimeout(()=>{nC=null},100)},!0);var rC=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:g,confirmLoading:_,zIndex:v,mousePosition:y,onOk:b,onCancel:x,okButtonProps:S,cancelButtonProps:C,destroyOnHidden:w,destroyOnClose:T,panelRef:E=null,closable:D,mask:O,modalRender:k,maskClosable:A,scrollLock:j,focusTriggerAfterClose:M,focusable:N,...P}=e,{getPopupContainer:F,getPrefixCls:I,direction:L,className:R,style:z,classNames:B,styles:V,centered:H,cancelButtonProps:U,okButtonProps:W,mask:G,focusable:K}=Rr(`modal`),{modal:q}=h.useContext(Fr),[ee,te]=h.useMemo(()=>typeof D==`boolean`?[void 0,void 0]:[D?.afterClose,D?.onClose],[D]),ne=I(`modal`,t),re=I(),[ie,oe,se]=nd(O,G,ne,A),ce=Mue({...K,...N},ie,M),le=e=>{_||(x?.(e),te?.())},ue=e=>{b?.(e),te?.()},de=ng(ne),[fe,pe]=tC(ne,de),me=m(a,{[`${ne}-centered`]:o??H,[`${ne}-wrap-rtl`]:L===`rtl`}),he=u!==null&&!g?h.createElement(ZS,{...e,okButtonProps:{...W,...S},onOk:ue,cancelButtonProps:{...U,...C},onCancel:le}):null,[ge,_e,ve,ye]=$u(qu(e),qu(q),{closable:!0,closeIcon:h.createElement(ae,{className:`${ne}-close-icon`}),closeIconRender:e=>XS(ne,e)}),be=ge?{disabled:ve,closeIcon:_e,afterClose:ee,...ye}:!1,xe=k?e=>h.createElement(`div`,{className:`${ne}-render`},k(e)):void 0,Se=Fe(E,Pue(`.${ne}-${k?`render`:`container`}`)),[Ce,we]=md(`Modal`,v),Te={...e,width:l,panelRef:E,focusTriggerAfterClose:ce.focusTriggerAfterClose,focusable:ce,mask:ie,maskClosable:se,zIndex:Ce},[Ee,De]=Or([B,d,oe],[V,f],{props:Te}),[Oe,ke]=h.useMemo(()=>gr(l)?[void 0,l]:[l,void 0],[l]),Ae=h.useMemo(()=>{let e={};return ke&&Object.keys(ke).forEach(t=>{let n=ke[t];fr(n)&&(e[`--${ne}-${t}-width`]=mr(n)?`${n}px`:n)}),e},[ne,ke]);return h.createElement(G_,{form:!0,space:!0},h.createElement(cd.Provider,{value:we},h.createElement(Aue,{width:Oe,...P,zIndex:Ce,getContainer:s===void 0?F:s,prefixCls:ne,rootClassName:m(fe,r,pe,de,Ee.root),rootStyle:De.root,footer:he,visible:i,mousePosition:y??nC,onClose:le,closable:be,closeIcon:_e,transitionName:Lf(re,`zoom`,e.transitionName),maskTransitionName:Lf(re,`fade`,e.maskTransitionName),mask:ie,maskClosable:se,scrollLock:j,className:m(fe,n,R),style:{...z,...c,...Ae},classNames:{...Ee,wrapper:m(Ee.wrapper,me)},styles:De,panelRef:Se,destroyOnHidden:w??T,modalRender:xe,focusTriggerAfterClose:ce.focusTriggerAfterClose,focusTrap:ce.trap},g?h.createElement(wte,{active:!0,title:!1,paragraph:{rows:4},className:`${ne}-body-skeleton`}):p)))},zue=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:{...no()},[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:`flex`,flexDirection:`column`,flex:`auto`,rowGap:e.marginXS,maxWidth:`calc(100% - ${J(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${J(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:`end`,marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Bue=_c([`Modal`,`confirm`],e=>zue($S(e)),eC,{order:-1e3}),iC=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,...f}=e,{infoIcon:p,successIcon:g,errorIcon:_,warningIcon:v}=Rr(`modal`),y=n;if(n===void 0)switch(o){case`info`:y=Gu(p,h.createElement(de,null));break;case`success`:y=Gu(g,h.createElement(q,null));break;case`error`:y=Gu(_,h.createElement(ne,null));break;default:y=Gu(v,h.createElement(ce,null))}let b=s??o===`confirm`,x=h.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[S]=Wc(`Modal`),C=l||S,w=r||(b?C?.okText:C?.justOkText),T=i||C?.cancelText,{closable:E}=f,{onClose:D}=gr(E)?E:{},O=h.useMemo(()=>({autoFocusButton:x,cancelTextLocale:T,okTextLocale:w,mergedOkCancel:b,onClose:D,...f}),[x,T,w,b,D,f]),k=h.createElement(h.Fragment,null,h.createElement(IS,null),h.createElement(LS,null)),A=pr(e.title),j=pr(y),M=`${a}-body`;return h.createElement(`div`,{className:`${a}-body-wrapper`},h.createElement(`div`,{className:m(M,{[`${M}-has-title`]:A,[`${M}-no-icon`]:!j})},y,h.createElement(`div`,{className:`${a}-paragraph`},A&&h.createElement(`span`,{className:`${a}-title`},e.title),h.createElement(`div`,{className:`${a}-content`},e.content))),c===void 0||_r(c)?h.createElement(FS,{value:O},h.createElement(`div`,{className:`${a}-btns`},_r(c)?c(k,{OkBtn:LS,CancelBtn:IS}):k)):c,h.createElement(Bue,{prefixCls:t}))},Vue=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:g,okButtonProps:_,cancelButtonProps:v}=e,{cancelButtonProps:y,okButtonProps:b}=Rr(`modal`),x=`${a}-confirm`,S=e.width||416,C=e.style||{},w=m(x,`${x}-${e.type}`,{[`${x}-rtl`]:i===`rtl`},e.className),T=h.useMemo(()=>{let e=td(p,g);return e.closable??=!1,e},[p,g]),[,E]=mc(),D=h.useMemo(()=>n===void 0?E.zIndexPopupBase+ud:n,[n,E]);return h.createElement(rC,{...e,className:w,wrapClassName:m({[`${x}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:Lf(s||``,`zoom`,e.transitionName),maskTransitionName:Lf(s||``,`fade`,e.maskTransitionName),mask:T,style:C,styles:{body:c,mask:r,...d},width:S,zIndex:D,closable:l},h.createElement(iC,{...e,confirmPrefixCls:x,okButtonProps:{...b,..._},cancelButtonProps:{...y,...v}}))},aC=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return h.createElement(Pu,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},h.createElement(Vue,{...e}))},oC=[],sC=``;function cC(){return sC}var Hue=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=Hc(),a=(0,h.useContext)(Fr),o=cC()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),h.createElement(aC,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function lC(e){let t=Mu(),n=document.createDocumentFragment(),r={...e,close:s,open:!0},i;function a(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e<oC.length;e++)if(oC[e]===s){oC.splice(e,1);break}vn(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,cC()),i=t.getIconPrefixCls(),a=t.getTheme(),o=h.createElement(Hue,{...e});_n(h.createElement(Pu,{prefixCls:r,iconPrefixCls:i,theme:a},_r(t.holderRender)?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{_r(e.afterClose)&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=_r(e)?e(r):{...r,...e},o(r)}return o(r),oC.push(s),{destroy:s,update:c}}function uC(e){return{...e,type:`warning`}}function dC(e){return{...e,type:`info`}}function fC(e){return{...e,type:`success`}}function pC(e){return{...e,type:`error`}}function mC(e){return{...e,type:`confirm`}}function Uue({rootPrefixCls:e}){sC=e}var Wue=Og(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=h.useContext(Fr),{className:p,style:g,classNames:_,styles:v}=Rr(`modal`),y=f(),b=t||f(`modal`),x=ng(y),[S,C]=tC(b,x),[w,T]=Or([_,l],[v,u],{props:e}),E=`${b}-confirm`,D={};return D=a?{closable:i??!1,title:``,footer:``,children:h.createElement(iC,{...e,prefixCls:b,confirmPrefixCls:E,rootPrefixCls:y,content:s})}:{closable:i??!0,title:o,footer:c!==null&&h.createElement(ZS,{...e}),children:s},h.createElement(HS,{prefixCls:b,className:m(S,`${b}-pure-panel`,a&&E,a&&`${E}-${a}`,n,p,C,x,w.root),style:{...g,...T.root},...d,closeIcon:XS(b,r),closable:i,classNames:w,styles:T,...D})}),Gue=h.forwardRef((e,t)=>{let{afterClose:n,config:r,...i}=e,[a,o]=h.useState(!0),[s,c]=h.useState(r),{direction:l,getPrefixCls:u}=h.useContext(Fr),d=u(`modal`),f=u(),p=()=>{n(),s.afterClose?.()},m=(...e)=>{o(!1),e.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...e.slice(1))};h.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{let n=_r(e)?e(t):e;return{...t,...n}})}}));let g=s.okCancel??s.type===`confirm`,[_]=Wc(`Modal`,Lc.Modal);return h.createElement(aC,{prefixCls:d,rootPrefixCls:f,...s,close:m,open:a,afterClose:p,okText:s.okText||(g?_?.okText:_?.justOkText),direction:s.direction||l,cancelText:s.cancelText||_?.cancelText,...i})}),hC=0,Kue=h.memo(h.forwardRef((e,t)=>{let[n,r]=ad();return h.useImperativeHandle(t,()=>({patchElement:r}),[r]),h.createElement(h.Fragment,null,n)}));function que(){let e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(dr(t).forEach(e=>{e()}),n([]))},[t]);let r=h.useCallback(t=>function(r){hC+=1;let i=h.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=h.createElement(Gue,{key:`modal-${hC}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&oC.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(dr(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(dr(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[h.useMemo(()=>({info:r(dC),success:r(fC),error:r(pC),warning:r(uC),confirm:r(mC)}),[r]),h.createElement(Kue,{key:`modal-holder`,ref:e})]}function gC(e){return lC(uC(e))}var _C=rC;_C.useModal=que,_C.info=function(e){return lC(dC(e))},_C.success=function(e){return lC(fC(e))},_C.error=function(e){return lC(pC(e))},_C.warning=gC,_C.warn=gC,_C.confirm=function(e){return lC(mC(e))},_C.destroyAll=function(){for(;oC.length;){let e=oC.pop();e&&e()}},_C.config=Uue,_C._InternalPanelDoNotUseOrYouWillBeFired=Wue;var vC=e=>pr(e)?_r(e)?e():e:null,yC=`50%`,Jue=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,dropShadowPopover:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=vc(g,`tooltip`);return[{[t]:{...$a(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,filter:o,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,yC),`var(--arrow-y, ${yC})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},fy(e,v(`arrow-background-color`),{arrowShadow:!1}),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},Yue=e=>{let{componentCls:t,antCls:n}=e,[r]=vc(n,`tooltip`);return{[t]:Zo.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},bC=hc(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=Bo(e,{popoverBg:t,popoverColor:n});return[Jue(r),Yue(r),yf(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...yv(e),...dy({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),xC=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!pr(t)&&!pr(n)?null:h.createElement(h.Fragment,null,pr(t)&&h.createElement(`div`,{className:m(`${r}-title`,i?.title),style:a?.title},t),pr(n)&&h.createElement(`div`,{className:m(`${r}-content`,i?.content),style:a?.content},n))},Xue=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=vC(o),f=vC(s),p={...e,placement:a},[g,_]=Or([l],[u],{props:p}),v=m(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return h.createElement(`div`,{className:v,style:i},h.createElement(`div`,{className:`${n}-arrow`}),h.createElement(oy,{...e,className:t,prefixCls:n,classNames:g,styles:_},c||h.createElement(xC,{prefixCls:n,title:d,content:f,classNames:g,styles:_})))},SC=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=h.useContext(Fr),a=i(`popover`,t),[o,s]=bC(a);return h.createElement(Xue,{...r,prefixCls:a,hashId:o,className:m(n,s)})},CC=h.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:g,motion:_,arrow:v,...y}=e,{getPrefixCls:b,className:x,style:S,classNames:C,styles:w,arrow:T,trigger:E}=Rr(`popover`),D=b(`popover`,n),[O,k]=bC(D),A=b(),j=gy(v,T),M=s||E||`hover`,N={...e,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:g},[P,F]=Or([C,g],[w,p],{props:N}),I=m(a,O,k,x,P.root),[L,R]=ve(e.defaultOpen??!1,e.open),z=e=>{R(e),d?.(e)},B=vC(r),V=vC(i);return h.createElement(xy,{unique:!1,arrow:j,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,...y,prefixCls:D,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{...F.root,...S,...f},container:F.container,arrow:F.arrow},ref:t,open:L,onOpenChange:z,overlay:pr(B)||pr(V)?h.createElement(xC,{prefixCls:D,title:B,content:V,classNames:P,styles:F}):null,motion:{motionName:Lf(A,`zoom-big`,typeof _?.motionName==`string`?_?.motionName:void 0)},"data-popover-inject":!0},c)});CC._InternalPanelDoNotUseOrYouWillBeFired=SC;var wC=hc(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon`]:{color:o},[`> ${t}-message-icon ${n}`]:{fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),TC=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=h.createElement(ce,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:g,classNames:_,styles:v}=e,{getPrefixCls:y}=h.useContext(Fr),[b]=Wc(`Popconfirm`,Lc.Popconfirm),x=vC(i),S=vC(a);return h.createElement(`div`,{className:`${t}-inner-content`,onClick:g},h.createElement(`div`,{className:`${t}-message`},l&&h.createElement(`span`,{className:m(`${t}-message-icon`,_?.icon),style:v?.icon},l),h.createElement(`div`,{className:`${t}-message-text`},pr(x)&&h.createElement(`div`,{className:m(`${t}-title`,_?.title),style:v?.title},x),pr(S)&&h.createElement(`div`,{className:m(`${t}-description`,_?.content),style:v?.content},S))),h.createElement(`div`,{className:`${t}-buttons`},u&&h.createElement(sp,{onClick:p,size:`small`,...r},o||b?.cancelText),h.createElement(NS,{buttonProps:{size:`small`,...Td(c),...n},actionFn:f,close:d,prefixCls:y(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||b?.okText)))},Zue=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=h.useContext(Fr),s=o(`popconfirm`,t);return wC(s),h.createElement(SC,{placement:n,className:m(s,r),style:i,content:h.createElement(TC,{prefixCls:s,...a})})},EC=h.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=h.createElement(ce,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...g}=e,{getPrefixCls:_,className:v,style:y,classNames:b,styles:x,arrow:S,trigger:C}=Rr(`popconfirm`),[w,T]=ve(e.defaultOpen??!1,e.open),E=gy(f,S),D=i||C||`click`,O=e=>{T(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=_(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:u,styles:d,classNames:p},[F,I]=Or([b,p],[x,d],{props:P}),L=m(N,v,c,F.root);return wC(N),h.createElement(CC,{arrow:E,...Ht(g,[`title`]),trigger:D,placement:r,onOpenChange:M,open:w,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{...y,...I.root,...u},container:I.container,arrow:I.arrow},content:h.createElement(TC,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});EC._InternalPanelDoNotUseOrYouWillBeFired=Zue;var DC=h.createContext(void 0),Que=DC.Provider,OC=h.createContext(void 0),$ue=OC.Provider,ede=e=>{let{componentCls:t,antCls:n,lineWidth:r,borderRadius:i,borderRadiusLG:a,borderRadiusSM:o,calc:s}=e,c=`${t}-group`,l=`${t}-button-wrapper`,u=`${n}-badge`,d=e=>({[`> ${u}`]:{width:`auto`},[`> ${u} > ${l}`]:{width:`100%`},[`> ${u}:not(:last-child)`]:{marginBlockEnd:s(r).mul(-1).equal()},[`> ${u} > ${l}:not(:last-child)`]:{marginBlockEnd:0},[`> ${u}:first-child > ${l}`]:{borderStartStartRadius:e,borderStartEndRadius:e,borderEndStartRadius:0,borderEndEndRadius:0},[`> ${u}:last-child > ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:e,borderEndEndRadius:e},[`> ${u}:not(:first-child):not(:last-child) > ${l}`]:{borderRadius:0},[`> ${u}:first-child:last-child > ${l}`]:{borderRadius:e}});return{[c]:{...$a(e),display:`inline-block`,fontSize:0,[`&${c}-rtl`]:{direction:`rtl`},[`&${c}-block`]:{display:`flex`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`},"&-vertical":{display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`&:has(> ${l}, > ${u} > ${l})`]:{rowGap:0},[`${t}-wrapper`]:{marginInlineEnd:0},...d(i),[`&${c}-large`]:{...d(a)},[`&${c}-small`]:{...d(o)}}}}},tde=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...$a(e),display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,"&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:`rtl`},"&-disabled":{cursor:`not-allowed`,color:e.colorTextDisabled},"&::after":{display:`inline-block`,width:0,overflow:`hidden`,content:`"\\a0"`},"&-block":{flex:1,justifyContent:`center`},[t]:{...$a(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:l,border:`${J(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,flex:`none`,"&:after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(0)`,width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:ro(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},nde=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:J(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${J(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${J(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:J(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:J(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},[`${r}-group-vertical > &`]:{marginInlineEnd:0,borderRadius:0,"&:not(:last-child)":{marginBlockEnd:A(i).mul(-1).equal()},"&:first-child":{borderStartStartRadius:h,borderStartEndRadius:h,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h}},[`${r}-group-vertical${r}-group-large > &`]:{"&:first-child":{borderStartStartRadius:_,borderStartEndRadius:_},"&:last-child":{borderEndStartRadius:_,borderEndEndRadius:_},"&:first-child:last-child":{borderRadius:_}},[`${r}-group-vertical${r}-group-small > &`]:{"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g},"&:last-child":{borderEndStartRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":ro(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},kC=hc(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${J(n)} ${t}`,i=Bo(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[ede(i),tde(i),nde(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),AC=h.forwardRef((e,t)=>{let n=h.useContext(DC),r=h.useContext(OC),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=Rr(`radio`),u=Fe(t,h.useRef(null)),{isFormItemInput:d}=h.useContext(fm),f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:p,className:g,rootClassName:_,children:v,style:y,title:b,classNames:x,styles:S,checked:C,...w}=e,T=i(`radio`,p),E=(n?.optionType||r)===`button`,D=E?`${T}-button`:T,O=ng(T),[k,A]=kC(T,O),j={...w},M=h.useContext(mu),N=`checked`in e,P=C;n&&(j.name=n.name,j.onChange=f,P=e.value===n.value,j.disabled=j.disabled??n.disabled),(N||n)&&(j.checked=P),j.disabled=j.disabled??M;let F={...e,...j,checked:P},I=Er(s),L=Er(y),[R,z]=Or([c,x],[l,I,S,L],{props:F}),B=m(`${D}-wrapper`,{[`${D}-wrapper-checked`]:P,[`${D}-wrapper-disabled`]:j.disabled,[`${D}-wrapper-rtl`]:a===`rtl`,[`${D}-wrapper-in-form-item`]:d,[`${D}-wrapper-block`]:!!n?.block},o,g,_,R.root,k,A,O),[V,H]=dg(j.onClick);return h.createElement(Uu,{component:`Radio`,disabled:j.disabled},h.createElement(`label`,{className:B,style:z.root,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:V},h.createElement(sg,{...j,className:m(R.icon,{[Iu]:!E}),style:z.icon,type:`radio`,prefixCls:D,ref:u,onClick:H}),pr(v)?h.createElement(`span`,{className:m(`${D}-label`,R.label),style:z.label},v):null))}),rde=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Fr),{name:i}=h.useContext(fm),a=Ce(ty(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:g,id:_,optionType:v,name:y=a,defaultValue:b,value:x,block:S=!1,onChange:C,onMouseEnter:w,onMouseLeave:T,onFocus:E,onBlur:D,orientation:O,vertical:k,role:A=`radiogroup`}=e,[j,M]=ve(b,x),N=h.useCallback(t=>{let n=j,r=t.target.value;`value`in e||M(r),r!==n&&C?.(t)},[j,M,C]),P=n(`radio`,o),F=`${P}-group`,I=ng(P),[L,R]=kC(P,I),z=f;l&&l.length>0&&(z=l.map(e=>typeof e==`string`||mr(e)?h.createElement(AC,{key:e.toString(),prefixCls:P,disabled:d,value:e,checked:j===e},e):h.createElement(AC,{key:`radio-group-value-options-${e.value}`,prefixCls:P,disabled:e.disabled||d,value:e.value,checked:j===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let B=Wu(p),[,V]=id(O,k),H=m(F,`${F}-${u}`,{[`${F}-large`]:B===`large`,[`${F}-small`]:B===`small`,[`${F}-rtl`]:r===`rtl`,[`${F}-block`]:S},s,c,L,R,I),U=h.useMemo(()=>({onChange:N,value:j,disabled:d,name:y,optionType:v,block:S}),[N,j,d,y,v,S]);return h.createElement(`div`,{...qt(e,{aria:!0,data:!0}),role:A,className:m(H,{[`${P}-group-vertical`]:V}),style:g,onMouseEnter:w,onMouseLeave:T,onFocus:E,onBlur:D,id:_,ref:t},h.createElement(Que,{value:U},z))}),ide=h.memo(rde),ade=h.forwardRef((e,t)=>{let{getPrefixCls:n}=h.useContext(Fr),{prefixCls:r,...i}=e,a=n(`radio`,r);return h.createElement($ue,{value:`button`},h.createElement(AC,{prefixCls:a,...i,type:`radio`,ref:t}))}),jC=AC;jC.Button=ade,jC.Group=ide,jC.__ANT_RADIO=!0;var MC=Cg,NC=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},PC=e=>e===void 0?void 0:`${e}px`;function ode(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=h.useRef(null),[d,f]=h.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[g,_]=h.useState(null),[v,y]=h.useState(null);he(()=>{if(d!==r){let e=p(d),t=p(r),n=NC(e,l),i=NC(t,l);f(r),_(n),y(i),e&&t?o():s()}},[r]);let b=h.useMemo(()=>PC(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]),x=h.useMemo(()=>PC(l?v?.top??0:c===`rtl`?-v?.right:v?.left),[l,c,v]);return!g||!v?null:h.createElement(ar,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{_(null),y(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":b,"--thumb-start-width":PC(g?.width),"--thumb-active-left":x,"--thumb-active-width":PC(v?.width),"--thumb-start-top":b,"--thumb-start-height":PC(g?.height),"--thumb-active-top":x,"--thumb-active-height":PC(v?.height)},a={ref:Fe(u,r),style:i,className:m(`${t}-thumb`,e)};return h.createElement(`div`,a)})}function sde(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function cde(e){return e.map(e=>{if(typeof e==`object`&&e){let t=sde(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var lde=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:g,onKeyDown:_,onKeyUp:v,onMouseDown:y,itemRender:b=e=>e})=>{let x=e=>{o||f(e,u)};return b(h.createElement(`label`,{className:m(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:y},h.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:x,onFocus:p,onBlur:g,onKeyDown:_,onKeyUp:v}),h.createElement(`div`,{className:m(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},ude=h.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:g,motionName:_=`thumb-motion`,itemRender:v,...y}=e,b=h.useRef(null),x=h.useMemo(()=>Fe(b,t),[b,t]),S=h.useMemo(()=>cde(a),[a]),[C,w]=ve(s??S[0]?.value,c),[T,E]=h.useState(!1),D=(e,t)=>{w(t),u?.(t)},O=Ht(y,[`children`]),[k,A]=h.useState(!1),[j,M]=h.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},I=e=>{e.key===`Tab`&&A(!0)},L=e=>{let t=S.findIndex(e=>e.value===C),n=S.length,r=S[(t+e+n)%n];r&&(w(r.value),u?.(r.value))},R=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:L(-1);break;case`ArrowRight`:case`ArrowDown`:L(1);break}},z=e=>{let{value:t,disabled:r}=e;return h.createElement(lde,jf({},e,{name:l,data:e,itemRender:v,key:t,prefixCls:n,className:m(e.className,`${n}-item`,g?.item,{[`${n}-item-selected`]:t===C&&!T,[`${n}-item-focused`]:j&&k&&t===C}),style:p?.item,classNames:g,styles:p,checked:t===C,onChange:D,onFocus:N,onBlur:P,onKeyDown:R,onKeyUp:I,onMouseDown:F,disabled:!!o||!!r}))};return h.createElement(`div`,jf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:m(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:x}),h.createElement(`div`,{className:`${n}-group`},h.createElement(ode,{vertical:i,prefixCls:n,value:C,containerRef:b,motionName:`${n}-${_}`,direction:r,getValueIndex:e=>S.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),S.map(z)))});function FC(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var IC=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),dde={overflow:`hidden`,...Qa},fde=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...$a(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...io(e),[`${t}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,flexDirection:`row`,width:`100%`},[`&${t}-rtl`]:{direction:`rtl`},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:`column`},[`${t}-thumb`]:{width:`100%`,height:0,padding:`0 ${J(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...IC(e),color:e.itemSelectedColor},"&-focused":ro(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:J(a),padding:`0 ${J(e.segmentedPaddingHorizontal)}`,...dde},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${t}-thumb`]:{...IC(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${J(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:J(o),padding:`0 ${J(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:J(s),padding:`0 ${J(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...FC(`&-disabled ${t}-item`,e),...FC(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},pde=hc(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return fde(Bo(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function mde(e){return gr(e)&&!!e?.icon}var hde=h.forwardRef((e,t)=>{let n=Ce(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:g,classNames:_,...v}=e,{getPrefixCls:y,direction:b,className:x,style:S,classNames:C,styles:w}=Rr(`segmented`),T={...e,options:s,size:c,shape:f},E=Er(S),D=Er(l),[O,k]=Or([C,_],[w,E,g,D],{props:T}),A=y(`segmented`,r),[j,M]=pde(A),N=Wu(c),P=h.useMemo(()=>s.map(e=>{if(mde(e)){let{icon:t,label:n,...r}=e;return{...r,label:h.createElement(h.Fragment,null,h.createElement(`span`,{className:m(`${A}-item-icon`,O.icon),style:k.icon},t),n&&h.createElement(`span`,null,n))}}return e}),[s,A,O.icon,k.icon]),[,F]=id(d,u),I=m(i,a,x,O.root,{[`${A}-block`]:o,[`${A}-sm`]:N===`small`,[`${A}-lg`]:N===`large`,[`${A}-vertical`]:F,[`${A}-shape-${f}`]:f===`round`},j,M),L=(e,{item:t})=>{if(!t.tooltip)return e;let n=gr(t.tooltip)?t.tooltip:{title:t.tooltip};return h.createElement(xy,{...n},e)};return h.createElement(ude,{...v,name:p,className:I,style:k.root,classNames:O,styles:k,itemRender:L,options:P,ref:t,prefixCls:A,direction:b,vertical:F})});function LC(e,t,n){return(e-t)/(n-t)}function RC(e,t,n,r){let i=LC(t,n,r),a={};switch(e){case`rtl`:a.right=`${i*100}%`,a.transform=`translateX(50%)`;break;case`btt`:a.bottom=`${i*100}%`,a.transform=`translateY(50%)`;break;case`ttb`:a.top=`${i*100}%`,a.transform=`translateY(-50%)`;break;default:a.left=`${i*100}%`,a.transform=`translateX(-50%)`;break}return a}function zC(e,t){return Array.isArray(e)?e[t]:e}var BC=h.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{},isHandleDisabled:()=>!1}),gde=h.createContext({});function VC(){return VC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VC.apply(this,arguments)}var HC=h.forwardRef((e,t)=>{let{prefixCls:n,value:r,valueIndex:i,onStartMove:a,onDelete:o,style:s,render:c,dragging:l,draggingDelete:u,onOffsetChange:d,onChangeComplete:f,onFocus:p,onMouseEnter:g,..._}=e,{min:v,max:y,direction:b,keyboard:x,range:S,tabIndex:C,ariaLabelForHandle:w,ariaLabelledByForHandle:T,ariaRequired:E,ariaValueTextFormatterForHandle:D,styles:O,classNames:k,isHandleDisabled:A}=h.useContext(BC),j=A(i),M=`${n}-handle`,N=e=>{if(j){e.stopPropagation();return}a(e,i)},P=e=>{p?.(e,i)},F=e=>{g(e,i)},I=e=>{if(!j&&x){let t;switch(e.which||e.keyCode){case Tt.LEFT:t=b===`ltr`||b===`btt`?-1:1;break;case Tt.RIGHT:t=b===`ltr`||b===`btt`?1:-1;break;case Tt.UP:t=b===`ttb`?-1:1;break;case Tt.DOWN:t=b===`ttb`?1:-1;break;case Tt.HOME:t=`min`;break;case Tt.END:t=`max`;break;case Tt.PAGE_UP:t=2;break;case Tt.PAGE_DOWN:t=-2;break;case Tt.BACKSPACE:case Tt.DELETE:o?.(i);break}t!==void 0&&(e.preventDefault(),d(t,i))}},L=e=>{switch(e.which||e.keyCode){case Tt.LEFT:case Tt.RIGHT:case Tt.UP:case Tt.DOWN:case Tt.HOME:case Tt.END:case Tt.PAGE_UP:case Tt.PAGE_DOWN:f?.();break}},R=RC(b,r,v,y),z={};i!==null&&(z={tabIndex:j?void 0:zC(C,i)??void 0,role:`slider`,"aria-valuemin":v,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":j,"aria-label":zC(w,i),"aria-labelledby":zC(T,i),"aria-required":zC(E,i),"aria-valuetext":zC(D,i)?.(r),"aria-orientation":b===`ltr`||b===`rtl`?`horizontal`:`vertical`,onMouseDown:N,onTouchStart:N,onFocus:P,onMouseEnter:F,onKeyDown:I,onKeyUp:L});let B=h.createElement(`div`,VC({ref:t,className:m(M,{[`${M}-${i+1}`]:i!==null&&S,[`${M}-dragging`]:l,[`${M}-dragging-delete`]:u,[`${M}-disabled`]:j},k.handle),style:{...R,...s,...O.handle}},z,_));return c&&(B=c(B,{index:i,prefixCls:n,value:r,dragging:l,draggingDelete:u})),B});function UC(){return UC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UC.apply(this,arguments)}var _de=h.forwardRef((e,t)=>{let{prefixCls:n,style:r,onStartMove:i,onOffsetChange:a,values:o,handleRender:s,activeHandleRender:c,draggingIndex:l,draggingDelete:u,onFocus:d,...f}=e,p=h.useRef({}),[m,g]=h.useState(!1),[_,v]=h.useState(-1),y=e=>{v(e),g(!0)},b=(e,t)=>{y(t),d?.(e)},x=(e,t)=>{y(t)};h.useImperativeHandle(t,()=>({focus:e=>{p.current[e]?.focus()},hideHelp:()=>{(0,yn.flushSync)(()=>{g(!1)})}}));let S={prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:b,onMouseEnter:x,...f};return h.createElement(h.Fragment,null,o.map((e,t)=>{let n=l===t;return h.createElement(HC,UC({ref:e=>{e?p.current[t]=e:delete p.current[t]},dragging:n,draggingDelete:n&&u,style:zC(r,t),key:t,value:e,valueIndex:t},S))}),c&&m&&h.createElement(HC,UC({key:`a11y`},S,{value:o[_],valueIndex:null,dragging:l!==-1,draggingDelete:u,render:c,style:{pointerEvents:`none`},tabIndex:void 0,"aria-hidden":!0})))}),vde=e=>{let{prefixCls:t,style:n,children:r,value:i,onClick:a}=e,{min:o,max:s,direction:c,includedStart:l,includedEnd:u,included:d}=h.useContext(BC),f=`${t}-text`,p=RC(c,i,o,s);return h.createElement(`span`,{className:m(f,{[`${f}-active`]:d&&l<=i&&i<=u}),style:{...p,...n},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{a(i)}},r)},yde=e=>{let{prefixCls:t,marks:n=[],onClick:r}=e,i=`${t}-mark`;return n.length?h.createElement(`div`,{className:i},n.map(({value:e,style:t,label:n})=>h.createElement(vde,{key:e,prefixCls:i,style:t,value:e,onClick:r},n))):null},bde=e=>{let{prefixCls:t,value:n,style:r,activeStyle:i}=e,{min:a,max:o,direction:s,included:c,includedStart:l,includedEnd:u}=h.useContext(BC),d=`${t}-dot`,f=c&&l<=n&&n<=u,p={...RC(s,n,a,o),...typeof r==`function`?r(n):r};return f&&(p={...p,...typeof i==`function`?i(n):i}),h.createElement(`span`,{className:m(d,{[`${d}-active`]:f}),style:p})},xde=e=>{let{prefixCls:t,marks:n,dots:r,style:i,activeStyle:a}=e,{min:o,max:s,step:c}=h.useContext(BC),l=h.useMemo(()=>{let e=new Set;if(n.forEach(t=>{e.add(t.value)}),r&&c!==null){let t=o;for(;t<=s;)e.add(t),t+=c}return Array.from(e)},[o,s,c,r,n]);return h.createElement(`div`,{className:`${t}-step`},l.map(e=>h.createElement(bde,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})))},WC=e=>{let{prefixCls:t,style:n,start:r,end:i,index:a,onStartMove:o,replaceCls:s}=e,{direction:c,min:l,max:u,disabled:d,range:f,classNames:p}=h.useContext(BC),g=`${t}-track`,_=LC(r,l,u),v=LC(i,l,u),y=e=>{!d&&o&&o(e,-1)},b={};switch(c){case`rtl`:b.right=`${_*100}%`,b.width=`${v*100-_*100}%`;break;case`btt`:b.bottom=`${_*100}%`,b.height=`${v*100-_*100}%`;break;case`ttb`:b.top=`${_*100}%`,b.height=`${v*100-_*100}%`;break;default:b.left=`${_*100}%`,b.width=`${v*100-_*100}%`}let x=s||m(g,{[`${g}-${a+1}`]:a!==null&&f,[`${t}-track-draggable`]:o},p.track);return h.createElement(`div`,{className:x,style:{...b,...n},onMouseDown:y,onTouchStart:y})},Sde=e=>{let{prefixCls:t,style:n,values:r,startPoint:i,onStartMove:a}=e,{included:o,range:s,min:c,styles:l,classNames:u,isHandleDisabled:d}=h.useContext(BC),f=h.useMemo(()=>r.some((e,t)=>d(t)),[d,r])?void 0:a,p=h.useMemo(()=>{if(!s){if(r.length===0)return[];let e=i??c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}let e=[];for(let t=0;t<r.length-1;t+=1)e.push({start:r[t],end:r[t+1]});return e},[r,s,i,c]);if(!o)return null;let g=p?.length&&(u.tracks||l.tracks)?h.createElement(WC,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:m(u.tracks,`${t}-tracks`),style:l.tracks}):null;return h.createElement(h.Fragment,null,g,p.map(({start:e,end:r},i)=>h.createElement(WC,{index:i,prefixCls:t,style:{...zC(n,i),...l.track},start:e,end:r,key:i,onStartMove:f})))},Cde=e=>{let t=h.useCallback(t=>typeof e==`boolean`?e:e[t]??!1,[e]),n=h.useCallback(n=>typeof e==`boolean`?[e,e&&n.length>0]:[n.length>0&&n.every((e,n)=>t(n)),n.some((e,n)=>t(n))],[e,t]);return h.useMemo(()=>[t,n],[t,n])},wde=130;function GC(e){let t=`targetTouches`in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Tde(e,t,n,r,i,a,o,s,c,l,u,d){let[f,p]=h.useState(null),[m,g]=h.useState(-1),[_,v]=h.useState(!1),[y,b]=h.useState(n),[x,S]=h.useState(n),C=h.useRef(null),w=h.useRef(null),T=h.useRef(null),{onDragStart:E,onDragChange:D}=h.useContext(gde);he(()=>{m===-1&&b(n)},[n,m]),h.useEffect(()=>()=>{C.current&&document.removeEventListener(`mousemove`,C.current),w.current&&document.removeEventListener(`mouseup`,w.current),T.current&&(C.current&&T.current.removeEventListener(`touchmove`,C.current),w.current&&T.current.removeEventListener(`touchend`,w.current))},[]);let O=(e,t,n)=>{t!==void 0&&p(t),b(e);let r=e;n&&(r=e.filter((e,t)=>t!==m)),o(r),D&&D({rawValues:e,deleteIndex:n?m:-1,draggingIndex:m,draggingValue:t})},k=fe((e,t,n)=>{if(e===-1){if(x.some((e,t)=>d(t)))return;let e=x[0],n=x[x.length-1],o=r-e,s=i-n,c=t*(i-r);c=Math.max(c,o),c=Math.min(c,s),c=a(e+c)-e,O(x.map(e=>e+c))}else{let a=(i-r)*t,o=[...y];o[e]=x[e];let s=c(o,a,e,`dist`);O(s.values,s.value,n)}});return[m,f,_,h.useMemo(()=>{let e=[...n].sort((e,t)=>e-t),t=[...y].sort((e,t)=>e-t),r={};t.forEach(e=>{r[e]=(r[e]||0)+1}),e.forEach(e=>{r[e]=(r[e]||0)-1});let i=+!!l;return Object.values(r).reduce((e,t)=>e+Math.abs(t),0)<=i?y:n},[n,y,l]),(r,i,a)=>{r.stopPropagation();let o=a||n;if(d(i))return;let c=o[i];g(i),p(c),S(o),b(o),v(!1);let{pageX:f,pageY:m}=GC(r),h=!1;E&&E({rawValues:o,draggingIndex:i,draggingValue:c});let _=n=>{n.preventDefault();let{pageX:r,pageY:a}=GC(n),o=r-f,s=a-m,{width:c,height:d}=e.current.getBoundingClientRect(),p,g;switch(t){case`btt`:p=-s/d,g=o;break;case`ttb`:p=s/d,g=o;break;case`rtl`:p=-o/c,g=s;break;default:p=o/c,g=s}h=l?Math.abs(g)>wde&&u<y.length:!1,v(h),k(i,p,h)},x=e=>{e.preventDefault(),document.removeEventListener(`mouseup`,x),document.removeEventListener(`mousemove`,_),T.current&&(C.current&&T.current.removeEventListener(`touchmove`,C.current),w.current&&T.current.removeEventListener(`touchend`,w.current)),C.current=null,w.current=null,T.current=null,s(h),g(-1),v(!1)};document.addEventListener(`mouseup`,x),document.addEventListener(`mousemove`,_),r.currentTarget.addEventListener(`touchend`,x),r.currentTarget.addEventListener(`touchmove`,_),C.current=_,w.current=x,T.current=r.currentTarget}]}var KC=(e,t,n,r,i,a)=>{let o=typeof i==`number`?i:0,s=n,c=r;for(let n=t-1;n>=0;--n)if(a(n)){s=e[n]+o;break}for(let n=t+1;n<e.length;n+=1)if(a(n)){c=e[n]-o;break}return[s,c]},Ede=(e,t,n,r,i,a)=>{let o=-1,s=r-n;return e.forEach((c,l)=>{if(a(l))return;let[u,d]=KC(e,l,n,r,i,a);if(u<=t&&t<=d){let e=Math.abs(t-c);e<=s&&(s=e,o=l)}}),o};function Dde(e,t,n,r,i,a,o){let s=h.useCallback(n=>Math.max(e,Math.min(t,n)),[e,t]),c=h.useCallback(r=>{if(n!==null){let i=e+Math.round((s(r)-e)/n)*n,a=e=>(String(e).split(`.`)[1]||``).length,o=Math.max(a(n),a(t),a(e)),c=Number(i.toFixed(o));return e<=c&&c<=t?c:null}return null},[n,e,t,s]),l=h.useCallback(i=>{let a=s(i),o=r.map(e=>e.value);n!==null&&o.push(c(i)),o.push(e,t);let l=o[0],u=t-e;return o.forEach(e=>{let t=Math.abs(a-e);t<=u&&(l=e,u=t)}),l},[e,t,r,n,s,c]),u=(i,a,o,s=`unit`)=>{if(typeof a==`number`){let l,d=i[o],f=d+a,p=[];r.forEach(e=>{p.push(e.value)}),p.push(e,t),p.push(c(d));let m=a>0?1:-1;s===`unit`?p.push(c(d+m*n)):p.push(c(f)),p=p.filter(e=>e!==null).filter(e=>a<0?e<=d:e>=d),s===`unit`&&(p=p.filter(e=>e!==d));let h=s===`unit`?d:f;l=p[0];let g=Math.abs(l-h);if(p.forEach(e=>{let t=Math.abs(e-h);t<g&&(l=e,g=t)}),l===void 0)return a<0?e:t;if(s===`dist`)return l;if(Math.abs(a)>1){let e=[...i];return e[o]=l,u(e,a-m,o,s)}return l}else if(a===`min`)return e;else if(a===`max`)return t;return t},d=(e,t,n,r=`unit`)=>{let i=e[n],a=u(e,t,n,r);return{value:a,changed:a!==i}},f=e=>a===null&&e===0||typeof a==`number`&&e<a;return[l,(n,r,s,c=`unit`)=>{let p=n.map(l),m=p[s],[h,g]=KC(p,s,e,t,a,o);if(p[s]=u(p,r,s,c),h<=g?p[s]=Math.max(h,Math.min(g,p[s])):p[s]=m,i===!1){let e=a||0;s>0&&p[s-1]!==m&&(p[s]=Math.max(p[s],p[s-1]+e)),s<p.length-1&&p[s+1]!==m&&(p[s]=Math.min(p[s],p[s+1]-e))}else if(typeof a==`number`||a===null){for(let n=s+1;n<p.length&&!o(n);n+=1){let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n],changed:r}=d(p,1,n));let[,i]=KC(p,n,e,t,a,o);p[n]=Math.min(p[n],i)}for(let n=s;n>0&&!o(n-1);--n){let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n-1],changed:r}=d(p,-1,n-1));let[i]=KC(p,n-1,e,t,a,o);p[n-1]=Math.max(p[n-1],i)}for(let n=p.length-1;n>0;--n){if(o(n)||o(n-1))continue;let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n-1],changed:r}=d(p,-1,n-1));let[i]=KC(p,n-1,e,t,a,o);p[n-1]=Math.max(p[n-1],i)}for(let n=0;n<p.length-1;n+=1){if(o(n)||o(n+1))continue;let r=!0;for(;f(p[n+1]-p[n])&&r;)({value:p[n+1],changed:r}=d(p,1,n+1));let[,i]=KC(p,n+1,e,t,a,o);p[n+1]=Math.min(p[n+1],i)}}return{value:p[s],values:p}}]}function Ode(e){return(0,h.useMemo)(()=>{if(e===!0||!e)return[!!e,!1,!1,0];let{editable:t,draggableTrack:n,minCount:r,maxCount:i}=e;return[!0,!!t,!t&&!!n,r||0,i]},[e])}var kde=h.forwardRef((e,t)=>{let{prefixCls:n=`rc-slider`,className:r,style:i,classNames:a,styles:o,id:s,disabled:c=!1,keyboard:l=!0,autoFocus:u,onFocus:d,onBlur:f,min:p=0,max:g=100,step:_=1,value:v,defaultValue:y,range:b,count:x,onChange:S,onBeforeChange:C,onAfterChange:w,onChangeComplete:T,allowCross:E=!0,pushable:D=!1,reverse:O,vertical:k,included:A=!0,startPoint:j,trackStyle:M,handleStyle:N,railStyle:P,dotStyle:F,activeDotStyle:I,marks:L,dots:R,handleRender:z,activeHandleRender:B,track:V,tabIndex:H=0,ariaLabelForHandle:U,ariaLabelledByForHandle:W,ariaRequired:G,ariaValueTextFormatterForHandle:K}=e,q=h.useRef(null),ee=h.useRef(null),[te,ne]=ve(y,v),re=h.useMemo(()=>k?O?`ttb`:`btt`:O?`rtl`:`ltr`,[O,k]),[ie,ae,oe,se,ce]=Ode(b),le=h.useMemo(()=>isFinite(p)?p:0,[p]),ue=h.useMemo(()=>isFinite(g)?g:100,[g]),de=h.useMemo(()=>_!==null&&_<=0?1:_,[_]),pe=h.useMemo(()=>typeof D==`boolean`?D?de:!1:D>=0?D:!1,[D,de]),me=h.useMemo(()=>{let e=L||{};return Object.keys(e).map(t=>{let n=e[t],r={value:Number(t)};return n&&typeof n==`object`&&!h.isValidElement(n)&&(`label`in n||`style`in n)?(r.style=n.style,r.label=n.label):r.label=n,r}).filter(({label:e})=>e||typeof e==`number`).sort((e,t)=>e.value-t.value)},[L]),[he,ge]=Cde(c),[_e,ye]=Dde(le,ue,de,me,E,pe,he),be=h.useMemo(()=>{let e=te==null?[]:Array.isArray(te)?te:[te],[t=le]=e,n=te===null?[]:[t];if(ie){if(n=[...e],x||te===void 0){let e=x!==void 0&&x>=0?x+1:2;for(n=n.slice(0,e);n.length<e;)n.push(n[n.length-1]??le)}n.sort((e,t)=>e-t)}return n.forEach((e,t)=>{n[t]=_e(e)}),n},[te,ie,le,x,_e]),[xe,Se]=h.useMemo(()=>ge(be),[ge,be]),Ce=ae&&!Se,we=e=>ie?e:e[0],Te=fe(e=>{let t=[...e].sort((e,t)=>e-t);S&&!zt(t,be,!0)&&S(we(t)),ne(t)}),Ee=fe(e=>{e&&q.current.hideHelp();let t=we(be);w?.(t),Lt(!w,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),T?.(t)}),De=e=>{if(xe||!Ce||be.length<=se)return;let t=[...be];t.splice(e,1),C?.(we(t)),Te(t);let n=Math.max(0,e-1);q.current.hideHelp(),q.current.focus(n)},[Oe,ke,Ae,je,Me]=Tde(ee,re,be,le,ue,_e,Te,Ee,ye,Ce,se,he),Ne=(e,t)=>{if(!xe){let n=be.length?Ede(be,e,le,ue,pe,he):0;if(n===-1)return;let r=[...be],i=0,a=be.length?Math.abs(e-be[n]):ue-le;be.forEach((t,n)=>{t<e&&(i=n)});let o=n;Ce&&a!==0&&(!ce||be.length<ce)?(r.splice(i+1,0,e),o=i+1):(r[n]=e,o=n),ie&&!be.length&&x===void 0&&r.push(e);let s=we(r);C?.(s),Te(r),t?(document.activeElement?.blur?.(),q.current.focus(o),Me(t,o,r)):(w?.(s),Lt(!w,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),T?.(s))}},Pe=e=>{e.preventDefault();let{width:t,height:n,left:r,top:i,bottom:a,right:o}=ee.current.getBoundingClientRect(),{clientX:s,clientY:c}=e,l;switch(re){case`btt`:l=(a-c)/n;break;case`ttb`:l=(c-i)/n;break;case`rtl`:l=(o-s)/t;break;default:l=(s-r)/t}Ne(_e(le+l*(ue-le)),e)},[Fe,Ie]=h.useState(null),Le=(e,t)=>{if(!xe&&!he(t)){let n=ye(be,e,t);C?.(we(be)),Te(n.values),Ie({value:n.value,index:t})}};h.useEffect(()=>{if(Fe!==null){let{value:e,index:t}=Fe,n=be[t]===e?t:be.indexOf(e);n>=0&&q.current.focus(n)}Ie(null)},[Fe]);let Re=h.useMemo(()=>oe&&de===null?!1:oe,[oe,de]),ze=fe((e,t)=>{Me(e,t),C?.(we(be))}),Be=Oe!==-1;h.useEffect(()=>{if(!Be){let e=be.lastIndexOf(ke);q.current.focus(e)}},[Be]);let Ve=h.useMemo(()=>[...je].sort((e,t)=>e-t),[je]),[He,Ue]=h.useMemo(()=>ie?[Ve[0],Ve[Ve.length-1]]:[le,Ve[0]],[Ve,ie,le]);h.useImperativeHandle(t,()=>({focus:()=>{q.current.focus(0)},blur:()=>{let{activeElement:e}=document;ee.current?.contains(e)&&e?.blur()}}));let We=h.useRef(u);h.useEffect(()=>{We.current&&q.current.focus(0)},[]);let Ge=h.useMemo(()=>({min:le,max:ue,direction:re,disabled:xe,keyboard:l,step:de,included:A,includedStart:He,includedEnd:Ue,range:ie,tabIndex:H,ariaLabelForHandle:U,ariaLabelledByForHandle:W,ariaRequired:G,ariaValueTextFormatterForHandle:K,styles:o||{},classNames:a||{},isHandleDisabled:he}),[le,ue,re,xe,l,de,A,He,Ue,ie,H,U,W,G,K,o,a,he]);return h.createElement(BC.Provider,{value:Ge},h.createElement(`div`,{ref:ee,className:m(n,r,{[`${n}-disabled`]:xe,[`${n}-vertical`]:k,[`${n}-horizontal`]:!k,[`${n}-with-marks`]:me.length}),style:i,onMouseDown:Pe,id:s},h.createElement(`div`,{className:m(`${n}-rail`,a?.rail),style:{...P,...o?.rail}}),V!==!1&&h.createElement(Sde,{prefixCls:n,style:M,values:be,startPoint:j,onStartMove:Re?ze:void 0}),h.createElement(xde,{prefixCls:n,marks:me,dots:R,style:F,activeStyle:I}),h.createElement(_de,{ref:q,prefixCls:n,style:N,values:je,draggingIndex:Oe,draggingDelete:Ae,onStartMove:ze,onOffsetChange:Le,onFocus:d,onBlur:f,handleRender:z,activeHandleRender:B,onChangeComplete:Ee,onDelete:Ce?De:void 0}),h.createElement(yde,{prefixCls:n,marks:me,onClick:Ne})))}),Ade=(0,h.createContext)({}),qC=h.forwardRef((e,t)=>{let{open:n,draggingDelete:r,value:i}=e,a=(0,h.useRef)(null),o=n&&!r,s=(0,h.useRef)(null);function c(){en.cancel(s.current),s.current=null}function l(){s.current=en(()=>{a.current?.forceAlign(),s.current=null})}return h.useEffect(()=>(o?l():c(),c),[o,e.title,i]),h.createElement(xy,{ref:Fe(a,t),...e,open:o})}),jde=e=>{let{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:c,calc:l,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:h,motionDurationMid:g}=e,_={backgroundColor:e.colorBgElevated,cursor:`not-allowed`,width:u,height:u,boxShadow:`0 0 0 ${J(m)} ${c}`,insetInlineStart:0,insetBlockStart:0};return{[t]:{...$a(e),position:`relative`,height:r,margin:`${J(o)} ${J(a)}`,padding:0,cursor:`pointer`,touchAction:`none`,userSelect:`none`,"&-vertical":{margin:`${J(a)} ${J(o)}`},[`${t}-rail`]:{position:`absolute`,backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:`absolute`,transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:`content-box`,backgroundClip:`content-box`,border:`solid rgba(0,0,0,0)`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${J(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:`absolute`,width:u,height:u,outline:`none`,userSelect:`none`,"&-dragging-delete":{opacity:0},"&::before":{content:`""`,position:`absolute`,insetInlineStart:l(m).mul(-1).equal(),insetBlockStart:l(m).mul(-1).equal(),width:l(u).add(l(m).mul(2)).equal(),height:l(u).add(l(m).mul(2)).equal(),backgroundColor:`transparent`},"&::after":{content:`""`,position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${J(m)} ${e.handleColor}`,outline:`0px solid transparent`,borderRadius:`50%`,cursor:`pointer`,transition:[`inset-inline-start`,`inset-block-start`,`width`,`height`,`box-shadow`,`outline`].map(e=>`${e} ${g}`).join(`, `)},"&:hover, &:active, &:focus":{[`&:not(${t}-handle-disabled)::before`]:{insetInlineStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),insetBlockStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),width:l(d).add(l(h).mul(2)).equal(),height:l(d).add(l(h).mul(2)).equal()},[`&:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${J(h)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:`none`}},[`${t}-mark`]:{position:`absolute`,fontSize:e.fontSize},[`${t}-mark-text`]:{position:`absolute`,display:`inline-block`,color:e.colorTextDescription,textAlign:`center`,wordBreak:`keep-all`,cursor:`pointer`,userSelect:`none`,"&-active":{color:e.colorText}},[`${t}-step`]:{position:`absolute`,background:`transparent`,pointerEvents:`none`},[`${t}-dot`]:{position:`absolute`,width:i,height:i,backgroundColor:e.colorBgElevated,border:`${J(m)} solid ${e.dotBorderColor}`,borderRadius:`50%`,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,pointerEvents:`auto`,"&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
${t}-dot
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:`none`,cursor:`not-allowed`},[`${t}-handle::after`]:{..._},[`
${t}-mark-text,
${t}-dot
`]:{cursor:`not-allowed !important`}},[`${t}-handle-disabled::after`]:{..._},[`&-tooltip ${n}-tooltip-container`]:{minWidth:`unset`}}}},JC=(e,t)=>{let{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,c=t?`paddingBlock`:`paddingInline`,l=t?`width`:`height`,u=t?`height`:`width`,d=t?`insetBlockStart`:`insetInlineStart`,f=t?`top`:`insetInlineStart`,p=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),h=t?{borderWidth:`${J(m)} 0`,transform:`translateY(${J(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${J(m)}`,transform:`translateX(${J(e.calc(m).mul(-1).equal())})`};return{[c]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[l]:`100%`,[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:{...h},[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:o).equal(),[l]:`100%`},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[l]:`100%`,[u]:r},[`${n}-dot`]:{position:`absolute`,[d]:s(r).sub(a).div(2).equal()}}},Mde=e=>{let{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:{...JC(e,!0),[`&${t}-with-marks`]:{marginBottom:n}}}},Nde=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:{...JC(e,!1),height:`100%`}}},Pde=hc(`Slider`,e=>{let t=Bo(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[jde(t),Mde(t),Nde(t)]},e=>{let t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,o=new cs(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:o,handleColorDisabled:new cs(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function YC(){let[e,t]=h.useState(!1),n=h.useRef(null),r=()=>{en.cancel(n.current)};return h.useEffect(()=>r,[]),[e,e=>{r(),e?t(e):n.current=en(()=>{t(e)})}]}function Fde(e){return e||e===null?e:e=>mr(e)?e.toString():``}var Ide=h.forwardRef((e,t)=>{let{prefixCls:n,range:r,className:i,rootClassName:a,style:o,disabled:s,tooltip:c={},onChangeComplete:l,classNames:u,styles:d,vertical:f,orientation:p,...g}=e,[,_]=id(p,f),{getPrefixCls:v,direction:y,className:b,style:x,classNames:S,styles:C,getPopupContainer:w}=Rr(`slider`),T=h.useContext(mu),E=s??T,D={...e,disabled:E,vertical:_},O=Er(x),k=Er(o),[A,j]=Or([S,u],[C,O,d,k],{props:D}),{handleRender:M,direction:N}=h.useContext(Ade),P=(N||y)===`rtl`,[F,I]=YC(),[L,R]=YC(),z={...c},{open:B,placement:V,getPopupContainer:H,prefixCls:U,formatter:W}=z,G=B,K=(F||L)&&G!==!1,q=Fde(W),[ee,te]=YC(),ne=e=>{l?.(e),te(!1)},re=(e,t)=>e||(t?P?`left`:`right`:`top`),ie=v(`slider`,n),[ae,oe]=Pde(ie),se=m(i,b,A.root,a,{[`${ie}-rtl`]:P,[`${ie}-lock`]:ee},ae,oe);P&&!_&&(g.reverse=!g.reverse),h.useEffect(()=>{let e=()=>{en(()=>{R(!1)},1)};return document.addEventListener(`mouseup`,e),()=>{document.removeEventListener(`mouseup`,e)}},[]);let ce=r&&!G,le=M||((e,t)=>{let{index:n}=t,r=e.props;function i(e,t,n){n&&g[e]?.(t),r[e]?.(t)}let a={...r,onMouseEnter:e=>{I(!0),i(`onMouseEnter`,e)},onMouseLeave:e=>{I(!1),i(`onMouseLeave`,e)},onMouseDown:e=>{R(!0),te(!0),i(`onMouseDown`,e)},onFocus:e=>{R(!0),g.onFocus?.(e),i(`onFocus`,e,!0)},onBlur:e=>{R(!1),g.onBlur?.(e),i(`onBlur`,e,!0)}},o=h.cloneElement(e,a),s=(!!G||K)&&q!==null;return ce?o:h.createElement(qC,{...z,prefixCls:v(`tooltip`,U),title:q?q(t.value):void 0,value:t.value,open:s,placement:re(V,_),key:n,classNames:{root:`${ie}-tooltip`},getPopupContainer:H||w},o)}),ue=ce?(e,t)=>{let n=h.cloneElement(e,{style:{...e.props.style,visibility:`hidden`}});return h.createElement(qC,{...z,prefixCls:v(`tooltip`,U),title:q?q(t.value):void 0,open:q!==null&&K,placement:re(V,_),key:`tooltip`,classNames:{root:`${ie}-tooltip`},getPopupContainer:H||w,draggingDelete:t.draggingDelete},n)}:void 0,de={...j.root};return h.createElement(kde,{...g,classNames:A,styles:j,step:g.step,range:r,className:se,style:de,disabled:E,vertical:_,ref:t,prefixCls:ie,handleRender:le,activeHandleRender:ue,onChangeComplete:ne})});function XC(){return XC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XC.apply(this,arguments)}var ZC=h.forwardRef(({prefixCls:e=`rc-switch`,className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:a,checkedChildren:o,unCheckedChildren:s,onClick:c,onChange:l,onKeyDown:u,styles:d,classNames:f,...p},g)=>{let[_,v]=ve(r??!1,n);function y(e,t){let n=_;return i||(n=e,v(n),l?.(n,t)),n}function b(e){e.which===Tt.LEFT?y(!1,e):e.which===Tt.RIGHT&&y(!0,e),u?.(e)}function x(e){let t=y(!_,e);c?.(t,e)}let S=m(e,t,{[`${e}-checked`]:_,[`${e}-disabled`]:i});return h.createElement(`button`,XC({},p,{type:`button`,role:`switch`,"aria-checked":_,disabled:i,className:S,ref:g,onKeyDown:b,onClick:x}),a,h.createElement(`span`,{className:`${e}-inner`},h.createElement(`span`,{className:m(`${e}-inner-checked`,f?.content),style:d?.content},o),h.createElement(`span`,{className:m(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});ZC.displayName=`Switch`;var Lde=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=J(c(s).add(c(r).mul(2)).equal()),d=J(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:J(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${J(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},Rde=e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},zde=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...af(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...af()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${J(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Bde=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=J(c(o).add(c(r).mul(2)).equal()),d=J(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...af(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...af()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},Vde=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...$a(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:J(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...af(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...io(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}}}},Hde=hc(`Switch`,e=>{let t=Bo(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[Vde(t),Bde(t),zde(t),Rde(t),Lde(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new cs(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),QC=h.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:g,classNames:_,...v}=e,[y,b]=ve(d??f??!1,l??u),{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E}=Rr(`switch`),D=h.useContext(mu),O=(i??D)||a,k=x(`switch`,n),[A,j]=Hde(k),M=Wu(r),N={...e,size:M,disabled:O},P=Er(w),F=Er(c),[I,L]=Or([T,_],[E,P,g,F],{props:N}),R=h.createElement(`div`,{className:m(`${k}-handle`,I.indicator),style:L.indicator},a&&h.createElement(jd,{className:`${k}-loading-icon`})),z=m(C,{[`${k}-small`]:M===`small`,[`${k}-loading`]:a,[`${k}-rtl`]:S===`rtl`},o,s,I.root,A,j),B=(...e)=>{b(e[0]),p?.(...e)};return h.createElement(Uu,{component:`Switch`,disabled:O},h.createElement(ZC,{...v,classNames:I,styles:L,checked:y,onChange:B,prefixCls:k,className:z,style:L.root,disabled:O,ref:t,loadingIcon:R}))});QC.__ANT_SWITCH=!0;var $C={},ew=`rc-table-internal-hook`;function tw(e){let t=h.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=h.useRef(e);r.current=e;let[i]=h.useState(()=>({getValue:()=>r.current,listeners:new Set}));return he(()=>{(0,yn.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),h.createElement(t.Provider,{value:i},n)},defaultValue:e}}function nw(e,t){let n=fe(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=h.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=h.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=h.useState({});return he(()=>{if(!r)return;function e(e){let t=n(e);zt(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function rw(){return rw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rw.apply(this,arguments)}function iw(){let e=h.createContext(null);function t(){return h.useContext(e)}function n(n,r){let i=Le(n),a=(a,o)=>{let s=i?{ref:o}:{},c=h.useRef(0),l=h.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,h.createElement(e.Provider,{value:c.current},h.createElement(n,rw({},a,s)))):h.createElement(n,rw({},a,s))};return i?h.forwardRef(a):a}function r(e,n){let r=Le(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),h.createElement(e,rw({},n,a))};return h.memo(r?h.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:Ude,responseImmutable:Wde,useImmutableMark:Gde}=iw(),{makeImmutable:aw,responseImmutable:ow,useImmutableMark:Kde}=iw(),sw=tw(),cw=h.createContext({renderWithProps:!1}),qde=`RC_TABLE_KEY`;function Jde(e){return e==null?[]:Array.isArray(e)?e:[e]}function lw(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||Jde(i).join(`-`)||qde;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function uw(e){return e!=null}function Yde(e){return typeof e==`number`&&!Number.isNaN(e)}function Xde(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!h.isValidElement(e)}function Zde(e,t,n,r,i,a){let o=h.useContext(cw);return we(()=>{if(uw(r))return[r];let a=rn(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);Xde(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[Kde(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!zt(e,t,!0)})}function Qde(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function $de(e,t){return nw(sw,n=>[Qde(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function dw(){return dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dw.apply(this,arguments)}var efe=({ellipsis:e,rowType:t,children:n})=>{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():h.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},fw=h.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:g,rowType:_,colSpan:v,rowSpan:y,fixStart:b,fixEnd:x,fixedStartShadow:S,fixedEndShadow:C,offsetFixedStartShadow:w,offsetFixedEndShadow:T,zIndex:E,zIndexReverse:D,appendNode:O,additionalProps:k={},isSticky:A}=e,j=`${a}-cell`,{allColumnsFixedLeft:M,rowHoverable:N}=nw(sw,[`allColumnsFixedLeft`,`rowHoverable`]),[P,F]=Zde(l,d,f,n,u,p),I={},L=typeof b==`number`&&!M,R=typeof x==`number`&&!M,[z,B]=nw(sw,({scrollInfo:e})=>{if(!L&&!R)return[!1,!1];let[t,n]=e;return[(L&&S&&t)-w>=1,(R&&C&&n-t)-T>1]});L&&(I.insetInlineStart=b,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D),R&&(I.insetInlineEnd=x,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D);let V=F?.colSpan??k.colSpan??v??1,H=F?.rowSpan??k.rowSpan??y??1,[U,W]=$de(g,H),G=fe(e=>{l&&W(g,g+H-1),k?.onMouseEnter?.(e)}),K=fe(e=>{l&&W(-1,-1),k?.onMouseLeave?.(e)});if(V===0||H===0)return null;let q=k.title??efe({rowType:_,ellipsis:r,children:P}),ee=m(j,o,{[`${j}-fix`]:L||R,[`${j}-fix-start`]:L,[`${j}-fix-end`]:R,[`${j}-fix-start-shadow`]:S,[`${j}-fix-start-shadow-show`]:S&&z,[`${j}-fix-end-shadow`]:C,[`${j}-fix-end-shadow-show`]:C&&B,[`${j}-ellipsis`]:r,[`${j}-with-append`]:O,[`${j}-fix-sticky`]:(L||R)&&A,[`${j}-row-hover`]:!F&&U},k.className,F?.className),te={};c&&(te.textAlign=c);let ne={...F?.style,...I,...te,...k.style,...s},re=P;return typeof re==`object`&&!Array.isArray(re)&&!h.isValidElement(re)&&(re=null),r&&(S||C)&&(re=h.createElement(`span`,{className:`${j}-content`},re)),h.createElement(t,dw({},F,k,{className:ee,style:ne,title:q,scope:i,onMouseEnter:N?G:void 0,onMouseLeave:N?K:void 0,colSpan:V===1?null:V,rowSpan:H===1?null:H}),O,re)});function pw(e){return e.fixed===`start`}function mw(e){return e.fixed===`end`}function hw(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;pw(i)&&pw(a)?o=r.start[e]:mw(a)&&mw(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!pw(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!mw(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;t<e;t+=1)pw(n[t])||(f+=r.widths[t]||0);if(l)for(let e=n.length-1;e>t;--e)mw(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var gw=h.createContext({});function _w(){return _w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_w.apply(this,arguments)}var tfe=e=>{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=nw(sw,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=h.useContext(gw),d=n+i-1+1===c?i+1:i,f=h.useMemo(()=>hw(n,n+d-1,u,l),[n,d,u,l]);return h.createElement(fw,_w({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},nfe=e=>{let{children:t,...n}=e;return h.createElement(`tr`,n,t)},vw=e=>{let{children:t}=e;return t};vw.Row=nfe,vw.Cell=tfe;var yw=ow(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=nw(sw,`prefixCls`),a=r.length-1,o=r[a],s=h.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return h.createElement(gw.Provider,{value:s},h.createElement(`tfoot`,{className:`${i}-summary`},t))}),bw=vw;function rfe(e){return null}function ife(e){return null}function xw(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o<t[r].length;o+=1)xw(e,t[r][o],n+1,r,i,a,o)}function Sw(e,t,n,r){return h.useMemo(()=>{if(n?.size){let i=[];for(let a=0;a<e?.length;a+=1){let o=e[a];xw(i,o,0,t,n,r,a)}return i}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function Cw(e,t,n,r){let i=nw(sw,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,h=o===`nest`,g=o===`row`&&(!u||u(e)),_=g||h,v=s&&s.has(t),y=c&&e&&e[c],b=fe(l),x=d?.(e,n),S=x?.onClick,C=(t,...n)=>{f&&_&&l(e,t),S?.(t,...n)},w;typeof p==`string`?w=p:typeof p==`function`&&(w=p(e,n,r));let T=lw(a);return{...i,columnsKey:T,nestExpandable:h,expanded:v,hasNestChildren:y,record:e,onTriggerExpand:b,rowSupportExpand:g,expandable:_,rowProps:{...x,className:m(w,x?.className),onClick:C}}}var ww=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=nw(sw,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),g=n;return(c?m&&p:f)&&(g=h.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},g)),h.createElement(r,{className:a,style:{display:o?null:`none`}},h.createElement(fw,{component:i,prefixCls:t,colSpan:s},g))};function afe({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return h.createElement(`span`,{className:m(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return h.createElement(`span`,{className:m(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function ofe(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function Tw(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function Ew(){return Ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ew.apply(this,arguments)}function Dw(e,t,n,r,i,a=[],o=0){let{record:s,prefixCls:c,columnsKey:l,fixedInfoList:u,expandIconColumnIndex:d,nestExpandable:f,indentSize:p,expandIcon:m,expanded:g,hasNestChildren:_,onTriggerExpand:v,expandable:y,expandedKeys:b}=e,x=l[n],S=u[n],C;n===(d||0)&&f&&(C=h.createElement(h.Fragment,null,h.createElement(`span`,{style:{paddingLeft:`${p*r}px`},className:`${c}-row-indent indent-level-${r}`}),m({prefixCls:c,expanded:g,expandable:_,record:s,onExpand:v})));let w=t.onCell?.(s,i)||{};if(o){let{rowSpan:e=1}=w;if(y&&e&&n<o){let t=e;for(let n=i;n<i+e;n+=1){let e=a[n];b.has(e)&&(t+=1)}w.rowSpan=t}}return{key:x,fixedInfo:S,appendCellNode:C,additionalCellProps:w}}var sfe=ow(e=>{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:g}=e,_=Cw(a,c,o,u),{prefixCls:v,flattenColumns:y,expandedRowClassName:b,expandedRowRender:x,rowProps:S,expanded:C,rowSupportExpand:w}=_,T=h.useRef(!1);T.current||=C;let E=Tw(b,a,o,u),D=h.createElement(d,Ew({},S,{"data-row-key":c,className:m(t,`${v}-row`,`${v}-row-level-${u}`,S?.className,r.row,{[E]:u>=1}),style:{...n,...S?.style,...i.row}}),y.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:y,fixedInfo:b,appendCellNode:x,additionalCellProps:S}=Dw(_,e,t,u,o,l,g?.offset);return h.createElement(fw,Ew({className:m(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:v,key:y,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},b,{appendNode:x,additionalProps:S}))})),O;if(w&&(T.current||C)){let e=x(a,o,u+1,C);O=h.createElement(ww,{expanded:C,className:m(`${v}-expanded-row`,`${v}-expanded-row-level-${u+1}`,E),prefixCls:v,component:d,cellComponent:f,colSpan:g?g.colSpan:y.length,isEmpty:!1,stickyOffset:g?.sticky},e)}return h.createElement(h.Fragment,null,D,O)}),cfe=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=h.useRef(null);return he(()=>{i.current&&n(t,i.current.offsetWidth)},[]),h.createElement(El,{data:t},h.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},h.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},lfe=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=h.useRef(null),{measureRowRender:a}=nw(sw,[`measureRowRender`]),o=h.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},h.createElement(El.Collection,{onBatchResize:e=>{rt(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=h.isValidElement(t)?h.cloneElement(t,{ref:null}):t;return h.createElement(cfe,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},ufe=ow(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:g}=nw(sw,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:_={}}=d||{},{body:v={}}=f||{},y=Sw(t,l,c,s),b=h.useMemo(()=>y.map(e=>e.rowKey),[y]),x=h.useRef({renderWithProps:!1}),S=h.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e<p;e+=1)t+=g[e]||0;return{offset:p,colSpan:e,sticky:t}},[o.length,p,g]),C=i([`body`,`wrapper`],`tbody`),w=i([`body`,`row`],`tr`),T=i([`body`,`cell`],`td`),E=i([`body`,`cell`],`th`),D;D=t.length?y.map((e,t)=>{let{record:n,indent:r,index:i,rowKey:a}=e;return h.createElement(sfe,{classNames:_,styles:v,key:a,rowKey:a,rowKeys:b,record:n,index:t,renderIndex:i,rowComponent:w,cellComponent:T,scopeCellComponent:E,indent:r,expandedRowInfo:S})}):h.createElement(ww,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:w,cellComponent:T,colSpan:o.length,isEmpty:!0},u);let O=lw(o);return h.createElement(cw.Provider,{value:x.current},h.createElement(C,{style:v.wrapper,className:m(`${r}-tbody`,_.wrapper)},n&&h.createElement(lfe,{prefixCls:r,columnsKey:O,onColumnResize:a,columns:o}),D))}),Ow=`RC_TABLE_INTERNAL_COL_DEFINE`;function dfe(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kw.apply(this,arguments)}var Aw=e=>{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=nw(sw,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[Ow],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(h.createElement(`col`,kw({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?h.createElement(`colgroup`,null,a):null};function ffe(e,t){return(0,h.useMemo)(()=>{let n=[];for(let r=0;r<t;r+=1){let t=e[r];if(t!==void 0)n[r]=t;else return null}return n},[e.join(`_`),t])}var pfe=h.forwardRef((e,t)=>{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:g,stickyClassName:_,scrollX:v,tableLayout:y=`fixed`,onScroll:b,maxContentScroll:x,children:S,...C}=e,{prefixCls:w,scrollbarSize:T,isSticky:E,getComponent:D}=nw(sw,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),O=D([`header`,`table`],`table`),k=E&&!f?0:T,A=h.useRef(null),j=h.useCallback(e=>{Pe(t,e),Pe(A,e)},[]);h.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),b({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=A.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let M=o[o.length-1],N={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${w}-cell-scrollbar`})},P=(0,h.useMemo)(()=>k?[...a,N]:a,[k,a]),F=(0,h.useMemo)(()=>k?[...o,N]:o,[k,o]),I=(0,h.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+k),0],isSticky:E}},[k,u,E]),L=ffe(s,l),R=(0,h.useMemo)(()=>{let e=!L||!L.length||L.every(e=>!e);return i||e},[i,L]);return h.createElement(`div`,{style:{overflow:`hidden`,...E?{top:p,bottom:g}:{},...r},ref:j,className:m(n,{[_]:!!_})},h.createElement(O,{style:{tableLayout:y,minWidth:`100%`,width:v}},R?c:h.createElement(Aw,{colWidths:[...L,k],columCount:l+1,columns:F}),S({...C,stickyOffsets:I,columns:P,flattenColumns:F})))}),jw=h.memo(pfe);function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mw.apply(this,arguments)}var mfe=e=>{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=nw(sw,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=lw(t.map(e=>e.column));return h.createElement(i,Mw({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=hw(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return h.createElement(fw,Mw({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function hfe(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:m(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e<a;e+=1)r[e].forEach(t=>{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var Nw=ow(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=nw(sw,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=h.useMemo(()=>hfe(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),g=o([`header`,`cell`],`th`);return h.createElement(f,{className:m(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>h.createElement(mfe,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:g,onHeaderRow:i,index:n})))});function Pw(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function gfe(e,t,n){return h.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=Pw(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=Pw(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l<a){let e=a/l;o=a,u.forEach((t,n)=>{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function Fw(e){return tn(e).filter(e=>h.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=Fw(r)),a})}function Iw(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:Iw(t)}:e})}function Lw(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...Lw(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function _fe({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:g,scrollWidth:_,clientWidth:v},y){let b=h.useMemo(()=>Iw((t||Fw(n)||[]).slice()),[t,n]),x=h.useMemo(()=>{if(r){let t=b.slice();if(!t.includes($C)){let e=u||0,n=e===0&&(g===`right`||g===`end`)?b.length:e;n>=0&&t.splice(n,0,$C)}let n=t.indexOf($C);t=t.filter((e,t)=>e!==$C||t===n);let r=b[n],f;f=g||(r?r.fixed:null);let _={[Ow]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:l?l(n):!0,record:n,onExpand:s});return p?h.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===$C?_:e;return t<d?{...n,fixed:n.fixed||`start`}:n})}return b.filter(e=>e!==$C)},[r,b,o,i,c,f,d]),S=h.useMemo(()=>{let e=x;return y&&(e=y(e)),e.length||(e=[{render:()=>null}]),e},[y,x,f]),[C,w]=gfe(h.useMemo(()=>Lw(S),[S,f,_]),_,v);return[S,C,w]}function vfe(e,t,n){let r=dfe(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||afe,p=d||`children`,m=h.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[g,_]=h.useState(()=>o||(s?ofe(t,n,p):[])),v=h.useMemo(()=>new Set(a||g||[]),[a,g]);return[r,m,v,f,p,h.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=v.has(r);a?(v.delete(r),i=[...v]):i=[...v,r],_(i),l&&l(!a,e),u&&u(i)},[n,v,t,l,u])]}function yfe(e,t){let n=h.useMemo(()=>e.map((n,r)=>hw(r,r,e,t)),[e,t]);return we(()=>n,[n],(e,t)=>!zt(e,t))}function bfe(e){let t=(0,h.useRef)(e),[,n]=(0,h.useState)({}),r=(0,h.useRef)(null),i=(0,h.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,h.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function xfe(e){let t=(0,h.useRef)(e||null),n=(0,h.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,h.useEffect)(()=>r,[]),[i,a]}function Sfe(){let[e,t]=h.useState(-1),[n,r]=h.useState(-1);return[e,n,h.useCallback((e,n)=>{t(e),r(n)},[])]}var Rw=pe()?window:null;function Cfe(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>Rw}=typeof e==`object`?e:{},o=a()||Rw,s=!!e;return h.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function wfe(e,t){return(0,h.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var zw=e=>{let{children:t,className:n,style:r}=e;return h.createElement(`div`,{className:n,style:r},t)};function Bw(e){let t=nt(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var Vw=`mouseup`,Hw=`mousemove`,Uw=`scroll`,Ww=`resize`,Tfe=h.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=nw(sw,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=h.useRef(null),[f,p]=bfe({scrollLeft:0,isHiddenScrollBar:!0}),g=h.useRef({delta:0,x:0}),[_,v]=h.useState(!1),y=h.useRef(null);h.useEffect(()=>()=>{en.cancel(y.current)},[]);let b=()=>{v(!1)},x=e=>{e.persist(),g.current.delta=e.pageX-f.scrollLeft,g.current.x=0,v(!0),e.preventDefault()},S=e=>{let{buttons:t}=e||window?.event;if(!_||t===0){_&&v(!1);return}let n=g.current.x+e.pageX-g.current.x-g.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u)<l)&&(r({scrollLeft:n/l*(c+2)}),g.current.x=e.pageX)},C=()=>{en.cancel(y.current),y.current=en(()=>{if(!n.current)return;let e=Bw(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:Bw(a).top+a.clientHeight;t-Ot()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},w=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return h.useImperativeHandle(t,()=>({setScrollLeft:w,checkScrollBarVisible:C})),h.useEffect(()=>(document.body.addEventListener(Vw,b,!1),document.body.addEventListener(Hw,S,!1),C(),()=>{document.body.removeEventListener(Vw,b),document.body.removeEventListener(Hw,S)}),[u,_]),h.useEffect(()=>{if(n.current){let e=[],t=nt(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(Uw,C,!1)}),window.addEventListener(Ww,C,!1),window.addEventListener(Uw,C,!1),a.addEventListener(Uw,C,!1),()=>{e.forEach(e=>{e.removeEventListener(Uw,C)}),window.removeEventListener(Ww,C),window.removeEventListener(Uw,C),a.removeEventListener(Uw,C)}}},[a]),h.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:h.createElement(`div`,{style:{height:Ot(),width:l,bottom:i},className:`${s}-sticky-scroll`},h.createElement(`div`,{onMouseDown:x,ref:d,className:m(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:_}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gw.apply(this,arguments)}var Kw=`rc-table`,Efe=[],Dfe={};function Ofe(){return`No Data`}var kfe=h.forwardRef((e,t)=>{let n={rowKey:`key`,prefixCls:Kw,emptyText:Ofe,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:g,footer:_,summary:v,caption:y,id:b,showHeader:x,components:S,emptyText:C,onRow:w,onHeaderRow:T,measureRowRender:E,onScroll:D,internalHooks:O,transformColumns:k,internalRefs:A,tailor:j,getContainerWidth:M,sticky:N,rowHoverable:P=!0}=n,F=l||Efe,I=!!F.length,L=O===ew,R=h.useCallback((e,t)=>rn(S,e)||t,[S]),z=h.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),B=R([`body`]),[V,H,U]=Sfe(),[W,G,K,q,ee,te]=vfe(n,F,z),ne=d?.x,[re,ie]=h.useState(0),[ae,oe,se]=_fe({...n,...W,expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:K,getRowKey:z,onTriggerExpand:te,expandIcon:q,expandIconColumnIndex:W.expandIconColumnIndex,direction:p,scrollWidth:L&&j&&typeof ne==`number`?ne:null,clientWidth:re},L?k:null),ce=se??ne,le=h.useMemo(()=>({columns:ae,flattenColumns:oe}),[ae,oe]),ue=h.useRef(null),de=h.useRef(null),pe=h.useRef(null),me=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:ue.current,scrollTo:e=>{if(pe.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i,align:a=`nearest`}=e;if(Yde(n))pe.current?.scrollTo({top:n});else{let e=r??z(F[t]),n=pe.current.querySelector(`[data-row-key="${e}"]`);if(n&&(n.scrollIntoView({block:a}),i)){let e=pe.current;e.scrollTo({top:e.scrollTop+i})}}}else pe.current?.scrollTo&&pe.current.scrollTo(e)}}));let ge=h.useRef(null),[_e,ve]=h.useState(!1),[ye,be]=h.useState(!1),[xe,Se]=h.useState(new Map),Ce=lw(oe).map(e=>xe.get(e)),we=h.useMemo(()=>Ce,[Ce.join(`_`)]),Te=wfe(we,oe),Ee=d&&uw(d.y),De=d&&uw(ce)||!!W.fixed,Oe=De&&oe.some(({fixed:e})=>e),ke=h.useRef(null),{isSticky:Ae,offsetHeader:je,offsetSummary:Me,offsetScroll:Ne,stickyClassName:Pe,container:Fe}=Cfe(N,r),Ie=h.useMemo(()=>v?.(F),[v,F]),Le=(Ee||Ae)&&h.isValidElement(Ie)&&Ie.type===vw&&Ie.props.fixed,Re,ze,Be;Ee&&(ze={overflowY:I?`scroll`:`auto`,maxHeight:d.y}),De&&(Re={overflowX:`auto`},Ee||(ze={overflowY:`hidden`}),Be={width:ce===!0?`auto`:ce,minWidth:`100%`});let Ve=h.useCallback((e,t)=>{Se(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[He,Ue]=xfe(null);function We(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[Ge,Ke]=h.useState([0,0]),qe=fe(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||Dfe;(!Ue()||Ue()===r)&&(He(r),We(n,de.current),We(n,pe.current),We(n,ge.current),We(n,ke.current?.setScrollLeft));let i=e||de.current;if(i){let e=L&&j&&typeof ce==`number`?ce:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(Ke(n=>{let i=[r,e-t];return zt(n,i)?n:i}),e===t){ve(!1),be(!1);return}ve(r>0),be(r<e-t-1)}}),Je=fe(e=>{qe(e),D?.(e)}),Ye=()=>{De&&pe.current?qe({currentTarget:nt(pe.current),scrollLeft:pe.current?.scrollLeft}):(ve(!1),be(!1))},Xe=e=>{ke.current?.checkScrollBarVisible();let t=e??ue.current?.offsetWidth??0;L&&M&&ue.current&&(t=M(ue.current,t)||t),t!==re&&(Ye(),ie(t))};he(()=>{De&&Xe()},[De]);let Ze=h.useRef(!1);h.useEffect(()=>{Ze.current&&Ye()},[De,l,ae.length]),h.useEffect(()=>{Ze.current=!0},[]);let[Qe,$e]=h.useState(0);he(()=>{(!j||!L)&&(pe.current instanceof Element?$e(kt(pe.current).width):$e(kt(me.current).width))},[]),h.useEffect(()=>{L&&A&&(A.body.current=pe.current)});let et=h.useCallback(e=>h.createElement(h.Fragment,null,h.createElement(Nw,e),Le===`top`&&h.createElement(yw,e,Ie)),[Le,Ie]),tt=h.useCallback(e=>h.createElement(yw,e,Ie),[Ie]),rt=R([`table`],`table`),it=h.useMemo(()=>f||(Oe?ce===`max-content`?`auto`:`fixed`:Ee||Ae||oe.some(({ellipsis:e})=>e)?`fixed`:`auto`),[Ee,Oe,oe,f,Ae]),at,ot={colWidths:we,columCount:oe.length,stickyOffsets:Te,onHeaderRow:T,fixHeader:Ee,scroll:d},st=h.useMemo(()=>I?null:typeof C==`function`?C():C,[I,C]),ct=h.createElement(ufe,{data:F,measureColumnWidth:Ee||De||Ae}),lt=h.createElement(Aw,{colWidths:oe.map(({width:e})=>e),columns:oe}),ut=y==null?void 0:h.createElement(`caption`,{className:`${r}-caption`},y),dt=qt(n,{data:!0}),ft=qt(n,{aria:!0});if(Ee||Ae){let e;typeof B==`function`?(e=B(F,{scrollbarSize:Qe,ref:pe,onScroll:qe}),ot.colWidths=oe.map(({width:e},t)=>{let n=t===oe.length-1?e-Qe:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=h.createElement(`div`,{style:{...Re,...ze},onScroll:Je,ref:pe,className:`${r}-body`},h.createElement(rt,Gw({style:{...Be,tableLayout:it}},ft),ut,lt,ct,!Le&&Ie&&h.createElement(yw,{stickyOffsets:Te,flattenColumns:oe},Ie)));let t={noData:!F.length,maxContentScroll:De&&ce===`max-content`,...ot,...le,direction:p,stickyClassName:Pe,scrollX:ce,tableLayout:it,onScroll:qe};at=h.createElement(h.Fragment,null,x!==!1&&h.createElement(jw,Gw({},t,{stickyTopOffset:je,className:`${r}-header`,ref:de,colGroup:lt}),et),e,Le&&Le!==`top`&&h.createElement(jw,Gw({},t,{stickyBottomOffset:Me,className:`${r}-summary`,ref:ge,colGroup:lt}),tt),Ae&&pe.current&&pe.current instanceof Element&&h.createElement(Tfe,{ref:ke,offsetScroll:Ne,scrollBodyRef:pe,onScroll:qe,container:Fe,direction:p}))}else at=h.createElement(`div`,{style:{...Re,...ze,...c?.content},className:m(`${r}-content`,s?.content),onScroll:qe,ref:pe},h.createElement(rt,Gw({style:{...Be,tableLayout:it}},ft),ut,lt,x!==!1&&h.createElement(Nw,Gw({},ot,le)),ct,Ie&&h.createElement(yw,{stickyOffsets:Te,flattenColumns:oe},Ie)));let pt={...o};Ae&&(pt[`--columns-count`]=oe.length);let mt=h.createElement(`div`,Gw({className:m(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:De,[`${r}-fix-end-shadow`]:De,[`${r}-fix-start-shadow-show`]:De&&_e,[`${r}-fix-end-shadow-show`]:De&&ye,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:Ee,[`${r}-fixed-column`]:Oe,[`${r}-scroll-horizontal`]:De,[`${r}-has-fix-start`]:oe[0]?.fixed,[`${r}-has-fix-end`]:oe[oe.length-1]?.fixed===`end`}),style:pt,id:b,ref:ue},dt),g&&h.createElement(zw,{className:m(`${r}-title`,s?.title),style:c?.title},g(F)),h.createElement(`div`,{ref:me,className:m(`${r}-container`,s?.section),style:c?.section},at),_&&h.createElement(zw,{className:m(`${r}-footer`,s?.footer),style:c?.footer},_(F)));De&&(mt=h.createElement(El,{onResize:({offsetWidth:e})=>Xe(e)},mt));let ht=yfe(oe,Te),gt=h.useMemo(()=>({scrollX:ce,scrollInfo:Ge,classNames:s,styles:c,prefixCls:r,getComponent:R,scrollbarSize:Qe,direction:p,fixedInfoList:ht,isSticky:Ae,componentWidth:re,fixHeader:Ee,fixColumn:Oe,horizonScroll:De,tableLayout:it,rowClassName:a,expandedRowClassName:W.expandedRowClassName,expandIcon:q,expandableType:G,expandRowByClick:W.expandRowByClick,expandedRowRender:W.expandedRowRender,expandedRowOffset:W.expandedRowOffset,onTriggerExpand:te,expandIconColumnIndex:W.expandIconColumnIndex,indentSize:W.indentSize,allColumnsFixedLeft:oe.every(e=>e.fixed===`start`),emptyNode:st,columns:ae,flattenColumns:oe,onColumnResize:Ve,colWidths:we,hoverStartRow:V,hoverEndRow:H,onHover:U,rowExpandable:W.rowExpandable,onRow:w,getRowKey:z,expandedKeys:K,childrenColumnName:ee,rowHoverable:P,measureRowRender:E}),[ce,Ge,s,c,r,R,Qe,p,ht,Ae,re,Ee,Oe,De,it,a,W.expandedRowClassName,q,G,W.expandRowByClick,W.expandedRowRender,W.expandedRowOffset,te,W.expandIconColumnIndex,W.indentSize,st,ae,oe,Ve,we,V,H,U,W.rowExpandable,w,z,K,ee,P,E]);return h.createElement(sw.Provider,{value:gt},mt)}),qw=e=>aw(kfe,e),Jw=qw();Jw.EXPAND_COLUMN=$C,Jw.INTERNAL_HOOKS=ew,Jw.Column=rfe,Jw.ColumnGroup=ife,Jw.Summary=bw;var Yw=tw(null),Xw=tw(null);function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zw.apply(this,arguments)}function Afe(e,t,n){return n[e+(t||1)]-(n[e]||0)}var jfe=e=>{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:g,className:_,width:v}=n,{columnsOffset:y}=nw(Xw,[`columnsOffset`]),{key:b,fixedInfo:x,appendCellNode:S,additionalCellProps:C}=Dw(t,n,r,i,a),{style:w,colSpan:T=1,rowSpan:E=1}=C,D=Afe(r-1,T,y),O=T>1?v-D:0,k={...w,...l,flex:`0 0 ${D}px`,width:`${D}px`,marginRight:O,pointerEvents:`auto`},A=h.useMemo(()=>d?E<=1:T===0||E===0||E>1,[E,T,d]);A?k.visibility=`hidden`:d&&(k.height=f?.(E));let j=A?()=>null:p,M={};return(E===0||T===0)&&(M.rowSpan=1,M.colSpan=1),h.createElement(fw,Zw({className:m(_,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:b,record:c,index:a,renderIndex:s,dataIndex:g,render:j,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:S,additionalProps:{...C,style:k,...M}}))};function Qw(){return Qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(this,arguments)}var $w=ow(h.forwardRef((e,t)=>{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:g,prefixCls:_,fixColumn:v,componentWidth:y,classNames:b,styles:x}=nw(sw,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`,`classNames`,`styles`]),{getComponent:S}=nw(Yw,[`getComponent`]),C=Cw(u,a,r,d),w=S([`body`,`row`],`div`),T=S([`body`,`cell`],`div`),{rowSupportExpand:E,expanded:D,rowProps:O,expandedRowRender:k,expandedRowClassName:A}=C,j=Tw(A,u,r,d),M;if(E&&D){let e=k(u,r,d+1,D),t={};v&&(t={style:{"--virtual-width":`${y}px`}});let n=`${_}-expanded-row-cell`;M=h.createElement(w,{className:m(`${_}-expanded-row`,`${_}-expanded-row-level-${d+1}`,j)},h.createElement(fw,{component:T,prefixCls:_,className:m(n,{[`${n}-fixed`]:v}),additionalProps:t},e))}let N={...o,width:p};s&&(N.position=`absolute`,N.pointerEvents=`none`);let P=h.createElement(w,Qw({},O,l,{"data-row-key":a,ref:E?null:t,className:m(i,`${_}-row`,O?.className,b?.body?.row,{[j]:d>=1,[`${_}-row-extra`]:s}),style:{...N,...O?.style,...x?.body?.row}}),g.map((e,t)=>h.createElement(jfe,{key:t,className:b?.body?.cell,style:x?.body?.cell,component:T,rowInfo:C,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return E?h.createElement(`div`,{ref:t},P,M):P})),Mfe={start:`top`,end:`bottom`,nearest:`auto`},Nfe=ow(h.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=nw(sw,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:g,onScroll:_}=nw(Yw),v=h.useRef(null),y=Sw(n,l,s,o),b=h.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),x=h.useMemo(()=>b.map(e=>e[2]),[b]);h.useEffect(()=>{b.forEach(([e,t])=>{a(e,t)})},[b]),h.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{align:t,offset:n,...r}=e,i=Mfe[t]??(n?`top`:`auto`);v.current?.scrollTo({...r,offset:n,align:i})},nativeElement:v.current?.nativeElement};return Object.defineProperty(e,"scrollLeft",{get:()=>v.current?.getScrollInfo().x||0,set:e=>{v.current?.scrollTo({left:e})}}),Object.defineProperty(e,"scrollTop",{get:()=>v.current?.getScrollInfo().y||0,set:e=>{v.current?.scrollTo({top:e})}}),e});let S=(e,t)=>{let n=y[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},C=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>S(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>S(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>S(e,n)!==1),u=n;for(let e=n;e<y.length;e+=1)if(l=l.filter(t=>S(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)y[e]&&i.some(t=>S(t,e)>1)&&d.push(e);return d.map(e=>{let t=y[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=y[i];if(!a||!a.record){let e=Math.min(i,y.length-1),t=y[e],a=r(n,o(t.record,e));return a.bottom-a.top}let s=r(n,o(a.record,i));return s.bottom-s.top},s=r(n);return h.createElement($w,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},w=h.useMemo(()=>({columnsOffset:x}),[x]),T=`${c}-tbody`,E=g([`body`,`wrapper`]),D={};return f&&(D.position=`sticky`,D.bottom=0,typeof f==`object`&&f.offsetScroll&&(D.bottom=f.offsetScroll)),h.createElement(Xw.Provider,{value:w},h.createElement(Sx,{fullHeight:!1,ref:v,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:D},className:T,height:p,itemHeight:m||24,data:y,itemKey:e=>o(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:v.current?.nativeElement,scrollLeft:e})},onScroll:_,extraRender:C},(e,t,n)=>{let r=o(e.record,t);return h.createElement($w,{data:e,rowKey:r,index:t,style:n.style})}))}));function eT(){return eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eT.apply(this,arguments)}var Pfe=(e,t)=>{let{ref:n,onScroll:r}=t;return h.createElement(Nfe,{ref:n,data:e,onScroll:r})},Ffe=h.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=Kw,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=fe((e,t)=>rn(l,e)||t),g=fe(u),_=h.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:g}),[a,f,c,p,g]);return h.createElement(Yw.Provider,{value:_},h.createElement(Jw,eT({},e,{className:m(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?Pfe:void 0},columns:r,internalHooks:ew,tailor:!0,ref:t})))}),tT=e=>aw(Ffe,e);tT();var Ife=e=>null,Lfe=e=>null,nT=h.createContext(null),Rfe=h.createContext({}),zfe=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return h.createElement(`div`,{style:i})},Bfe=h.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e<t;e+=1)a.push(h.createElement(`span`,{key:e,className:m(i,{[`${i}-start`]:n[e],[`${i}-end`]:r[e]})}));return h.createElement(`span`,{"aria-hidden":`true`,className:`${e}-indent`},a)});function rT(e,t){return e[t]}function iT(e,t){return`${e}-${t}`}function Vfe(e){return e&&e.type&&e.type.isTreeNode}function aT(e,t){return e??t}function oT(e){let{title:t,_title:n,key:r,children:i}=e||{},a=t||`title`;return{title:a,_title:n||[a],key:r||`key`,children:i||`children`}}function sT(e){function t(e){return tn(e).map(e=>{if(!Vfe(e))return Lt(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function cT(e,t,n){let{_title:r,key:i,children:a}=oT(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=iT(n?n.pos:`0`,u),f=aT(l[i],d),p;for(let e=0;e<r.length;e+=1){let t=r[e];if(l[t]!==void 0){p=l[t];break}}let m=Object.assign(Ht(l,[...r,i,a]),{title:p,key:f,parent:n,pos:d,children:null,data:l,isStart:[...n?n.isStart:[],u===0],isEnd:[...n?n.isEnd:[],u===e.length-1]});return s.push(m),t===!0||o.has(f)?m.children=c(l[a]||[],m):m.children=[],m})}return c(e),s}function Hfe(e,t,n){let r={};r=typeof n==`object`?n:{externalGetKey:n},r||={};let{childrenPropName:i,externalGetKey:a,fieldNames:o}=r,{key:s,children:c}=oT(o),l=i||c,u;a?typeof a==`string`?u=e=>e[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>aT(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?iT(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function lT(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),Hfe(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=aT(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function uT(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function dT(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=rT(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function fT(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,"props",{get(){return Lt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function pT(){return pT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pT.apply(this,arguments)}var mT=`open`,hT=`close`,Ufe=`---`,gT=e=>{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:g,domRef:_,active:v,data:y,onMouseMove:b,selectable:x,treeId:S,...C}=e,w=xe(S,t),T=h.useContext(nT),{classNames:E,styles:D}=T||{},O=h.useContext(Rfe),k=h.useRef(null),[A,j]=h.useState(!1),M=!!(T.disabled||e.disabled||O.nodeDisabled?.(y)),N=h.useMemo(()=>!T.checkable||e.checkable===!1?!1:T.checkable,[T.checkable,e.checkable]),P=t=>{M||T.onNodeSelect(t,fT(e))},F=t=>{M||!N||e.disableCheckbox||T.onNodeCheck(t,fT(e),!f)},I=h.useMemo(()=>typeof x==`boolean`?x:T.selectable,[x,T.selectable]),L=t=>{T.onNodeClick(t,fT(e)),I?P(t):F(t)},R=t=>{T.onNodeDoubleClick(t,fT(e))},z=t=>{T.onNodeMouseEnter(t,fT(e))},B=t=>{T.onNodeMouseLeave(t,fT(e))},V=t=>{T.onNodeContextMenu(t,fT(e))},H=h.useMemo(()=>!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(y))),[T.draggable,y]),U=t=>{t.stopPropagation(),j(!0),T.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},W=t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragEnter(t,e)},G=t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragOver(t,e)},K=t=>{t.stopPropagation(),T.onNodeDragLeave(t,e)},q=t=>{t.stopPropagation(),j(!1),T.onNodeDragEnd(t,e)},ee=t=>{t.preventDefault(),t.stopPropagation(),j(!1),T.onNodeDrop(t,e)},te=t=>{g||T.onNodeExpand(t,fT(e))},ne=h.useMemo(()=>{let{children:e}=rT(T.keyEntities,t)||{};return!!(e||[]).length},[T.keyEntities,t]),re=h.useMemo(()=>uT(s,T.loadData,ne,e.loaded),[s,T.loadData,ne,e.loaded]);h.useEffect(()=>{g||typeof T.loadData==`function`&&u&&!re&&!e.loaded&&T.onNodeLoad(fT(e))},[g,T.loadData,T.onNodeLoad,u,re,e]);let ie=h.useMemo(()=>T.draggable?.icon?h.createElement(`span`,{className:`${T.prefixCls}-draggable-icon`},T.draggable.icon):null,[T.draggable]),ae=t=>{let n=e.switcherIcon||T.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},oe=()=>{if(re){let e=ae(!0);return e===!1?null:h.createElement(`span`,{className:m(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher-noop`,E?.itemSwitcher),style:D?.itemSwitcher},e)}let e=ae(!1);return e===!1?null:h.createElement(`span`,{onClick:te,className:m(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher_${u?mT:hT}`,E?.itemSwitcher),style:D?.itemSwitcher},e)},se=h.useMemo(()=>{if(!N)return null;let t=typeof N==`boolean`?null:N;return h.createElement(`span`,{className:m(`${T.prefixCls}-checkbox`,{[`${T.prefixCls}-checkbox-checked`]:f,[`${T.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${T.prefixCls}-checkbox-disabled`]:M||e.disableCheckbox}),onClick:F,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":M||e.disableCheckbox,"aria-labelledby":w},t)},[N,f,p,M,e.disableCheckbox,w]),ce=h.useMemo(()=>re?null:u?mT:hT,[re,u]),le=h.useMemo(()=>h.createElement(`span`,{className:m(E?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__${ce||`docu`}`,{[`${T.prefixCls}-icon_loading`]:g}),style:D?.itemIcon}),[T.prefixCls,ce,g]),ue=h.useMemo(()=>{let n=!!T.draggable;return!e.disabled&&n&&T.dragOverNodeKey===t?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),de=h.useMemo(()=>{let{title:t=Ufe}=e,n=`${T.prefixCls}-node-content-wrapper`,r;if(T.showIcon){let t=e.icon||T.icon;r=t?h.createElement(`span`,{className:m(E?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__customize`),style:D?.itemIcon},typeof t==`function`?t(e):t):le}else T.loadData&&g&&(r=le);let i;return i=typeof t==`function`?t(y):T.titleRender?T.titleRender(y):t,h.createElement(`span`,{ref:k,title:typeof t==`string`?t:``,className:m(n,`${n}-${ce||`normal`}`,{[`${T.prefixCls}-node-selected`]:!M&&(d||A)}),onMouseEnter:z,onMouseLeave:B,onContextMenu:V,onClick:L,onDoubleClick:R},r,h.createElement(`span`,{className:m(`${T.prefixCls}-title`,E?.itemTitle),style:D?.itemTitle},i),ue)},[T.prefixCls,T.showIcon,e,T.icon,le,T.titleRender,y,ce,z,B,V,L,R]),fe=qt(C,{aria:!0,data:!0}),{level:pe}=rT(T.keyEntities,t)||{},me=l[l.length-1],he=!M&&H,ge=T.draggingNodeKey===t;return h.createElement(`div`,pT({ref:_,role:`treeitem`,id:w,"aria-expanded":re?void 0:u,"aria-selected":I&&!M?d:void 0,"aria-checked":N&&!M?p?`mixed`:f:void 0,"aria-disabled":M,className:m(n,`${T.prefixCls}-treenode`,E?.item,{[`${T.prefixCls}-treenode-disabled`]:M,[`${T.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${T.prefixCls}-treenode-checkbox-checked`]:f,[`${T.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${T.prefixCls}-treenode-selected`]:d,[`${T.prefixCls}-treenode-loading`]:g,[`${T.prefixCls}-treenode-active`]:v,[`${T.prefixCls}-treenode-leaf-last`]:me,[`${T.prefixCls}-treenode-draggable`]:H,dragging:ge,"drop-target":T.dropTargetKey===t,"drop-container":T.dropContainerKey===t,"drag-over":!M&&i,"drag-over-gap-top":!M&&a,"drag-over-gap-bottom":!M&&o,"filter-node":T.filterTreeNode?.(fT(e)),[`${T.prefixCls}-treenode-leaf`]:re}),style:{...r,...D?.item},draggable:he,onDragStart:he?U:void 0,onDragEnter:H?W:void 0,onDragOver:H?G:void 0,onDragLeave:H?K:void 0,onDrop:H?ee:void 0,onDragEnd:H?q:void 0,onMouseMove:b},fe),h.createElement(Bfe,{prefixCls:T.prefixCls,level:pe,isStart:c,isEnd:l}),ie,oe(),se,de)};gT.isTreeNode=1;function Wfe(e,t){let[n,r]=h.useState(!1);he(()=>{if(n)return e(),()=>{t()}},[n]),he(()=>(r(!0),()=>{r(!1)}),[])}function _T(){return _T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_T.apply(this,arguments)}var Gfe=h.forwardRef((e,t)=>{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=h.useState(!0),{prefixCls:g}=h.useContext(nT),_=a&&o!==`hide`;he(()=>{a&&_!==f&&p(_)},[a]);let v=()=>{a&&s()},y=h.useRef(!1),b=()=>{a&&!y.current&&(y.current=!0,c())};return Wfe(v,b),a?h.createElement(ar,_T({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{_===e&&b()}}),({className:e,style:t},n)=>h.createElement(`div`,{ref:n,className:m(`${g}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=dT(r,u);return h.createElement(gT,_T({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):h.createElement(gT,_T({domRef:t,className:n,style:r},d,{active:l}))});function Kfe(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function vT(e,t,n){let r=e[e.findIndex(e=>e.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function yT(){return yT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yT.apply(this,arguments)}var bT=`RC_TREE_MOTION_${Math.random()}`,xT={key:bT},ST={key:bT,level:0,index:0,pos:`0`,node:xT,nodes:[xT]},CT={parent:null,children:[],pos:ST.pos,data:xT,title:null,key:bT,isStart:[],isEnd:[]};function wT(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function TT(e){let{key:t,pos:n}=e;return aT(t,n)}var qfe=h.forwardRef((e,t)=>{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:g,dropPosition:_,motion:v,height:y,itemHeight:b,virtual:x,scrollWidth:S,focusable:C,activeItem:w,tabIndex:T,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onActiveChange:A,onListChangeStart:j,onListChangeEnd:M,...N}=e,P=Ce(),F=h.useRef(null),I=h.useRef(null);h.useImperativeHandle(t,()=>({scrollTo:e=>{F.current.scrollTo(e)},getIndentWidth:()=>I.current.offsetWidth}));let[L,R]=h.useState(o),[z,B]=h.useState(r),[V,H]=h.useState(r),[U,W]=h.useState([]),[G,K]=h.useState(null),q=h.useRef(r);q.current=r;function ee(){let e=q.current;B(e),H(e),W([]),K(null),M()}he(()=>{R(o);let e=Kfe(L,o);if(e.key!==null)if(e.add){let t=z.findIndex(({key:t})=>t===e.key),n=wT(vT(z,r,e.key),x,y,b),i=z.slice();i.splice(t+1,0,CT),H(i),W(n),K(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=wT(vT(r,z,e.key),x,y,b),i=r.slice();i.splice(t+1,0,CT),H(i),W(n),K(`hide`)}else z!==r&&(B(r),H(r))},[o,r]),h.useEffect(()=>{m||ee()},[m]);let te=v?V:r,ne={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:g,dropPosition:_,keyEntities:f};return h.createElement(h.Fragment,null,h.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},h.createElement(`div`,{className:`${n}-indent`},h.createElement(`div`,{ref:I,className:`${n}-indent-unit`}))),h.createElement(Sx,yT({},N,{data:te,itemKey:TT,height:y,fullHeight:!1,virtual:x,itemHeight:b,scrollWidth:S,prefixCls:`${n}-list`,ref:F,role:`tree`,tabIndex:C!==!1&&!p?T:void 0,"aria-activedescendant":w?xe(P,w.key):void 0,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onVisibleChange:e=>{e.every(e=>TT(e)!==bT)&&ee()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=aT(i,t);delete n.key,delete n.children;let c=dT(s,ne);return h.createElement(Gfe,yT({},n,c,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:v,motionNodes:i===bT?U:null,motionType:G,onMotionStart:j,onMotionEnd:ee,treeNodeRequiredProps:ne,treeId:P,onMouseMove:()=>{A(null)}}))}))});function ET(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function DT(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function OT(e){return e.split(`-`)}function Jfe(e,t){let n=[],r=rT(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function Yfe(e){if(e.parent){let t=OT(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Xfe(e){let t=OT(e.pos);return Number(t[t.length-1])===0}function kT(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=rT(s,n.eventKey);if(d<f+p/2){let e=o.findIndex(e=>e.key===g.key),t=o[e<=0?0:e-1].key;g=rT(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e<m&&Yfe(g);e+=1)g=g.parent,x+=1;let S=t.data,C=g.node,w=!0;return Xfe(g)&&g.level===0&&d<f+p/2&&a({dragNode:S,dropNode:C,dropPosition:-1})&&g.key===n.eventKey?b=-1:(v.children||[]).length&&h.includes(y)?a({dragNode:S,dropNode:C,dropPosition:0})?b=0:w=!1:x===0?m>-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function AT(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function jT(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Lt(!1,"`checkedKeys` is not an array or an object"),null;return t}function MT(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=rT(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}function NT(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Zfe(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Qfe(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(NT(a,i))}}function $fe(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(NT(o,a))}}function PT(e,t,n,r){let i=[],a;a=r||Zfe;let o=new Set(e.filter(e=>{let t=!!rT(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),Lt(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?Qfe(o,s,c,a):$fe(o,t.halfCheckedKeys,s,c,a),l}function FT(){return FT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FT.apply(this,arguments)}var epe=10,tpe=class extends h.Component{static defaultProps={prefixCls:`rc-tree`,showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:zfe,allowDrop:()=>!0,expandAction:!1};static TreeNode=gT;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:oT()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=h.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener(`mouseup`,this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),window.removeEventListener(`mouseup`,this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=oT(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(Lt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=sT(e.children)),a){r.treeData=a;let e=lT(a,{fieldNames:o});r.keyEntities={[bT]:ST,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?MT(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[bT];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else!n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?MT(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=cT(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=AT(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=AT(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=jT(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=jT(e.defaultCheckedKeys)||{}:a&&(o=jT(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=PT(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=ET(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:Jfe(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:fT(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=kT(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={},Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=rT(r,t.eventKey);a&&(a.children||[]).length&&(i=DT(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:fT(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:fT(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=kT(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:fT(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:fT(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:fT(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...dT(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:rT(this.state.keyEntities,a).node};Lt(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=OT(o),d={event:e,node:fT(l),dragNode:this.dragNodeProps?fT(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=fT({...dT(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?ET(n,a):DT(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?DT(n,c):[c]:ET(n,c);let u=n.map(e=>{let t=rT(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?DT(i,c):ET(i,c);l={checked:e,halfChecked:ET(a,c)},u.checkedNodes=e.map(e=>rT(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=PT([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=PT(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=rT(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(rT(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=DT(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:ET(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:ET(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=epe){let{loadedKeys:e}=this.state;Lt(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:DT(e,t)}),n()}r(e)}),{loadingKeys:DT(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onGlobalMouseUp=()=>{this.focusedByMouse=!1};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,r=cT(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(Lt(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?DT(n,c):ET(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=cT(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=ET(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault();break}let d=this.getActiveItem();if(d&&d.data){let i=fT({...dT(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!rT(a,t)?.children?.length,l=!uT(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:g,focusable:_,tabIndex:v=0,selectable:y,showIcon:b,icon:x,switcherIcon:S,draggable:C,checkable:w,checkStrictly:T,disabled:E,motion:D,loadData:O,filterTreeNode:k,height:A,itemHeight:j,scrollWidth:M,virtual:N,titleRender:P,dropIndicatorRender:F,onContextMenu:I,onScroll:L,direction:R,rootClassName:z,rootStyle:B}=this.props,V=qt(this.props,{aria:!0,data:!0}),H;C&&(H=typeof C==`object`?C:typeof C==`function`?{nodeDraggable:C}:{});let U={styles:f,classNames:p,prefixCls:l,selectable:y,showIcon:b,icon:x,switcherIcon:S,draggable:H,draggingNodeKey:n,checkable:w,checkStrictly:T,disabled:E,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:R,dropIndicatorRender:F,loadData:O,filterTreeNode:k,titleRender:P,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return h.createElement(nT.Provider,{value:U},h.createElement(`div`,{className:m(l,u,z,{[`${l}-show-line`]:g}),style:B},h.createElement(qfe,FT({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:E,selectable:y,checkable:!!w,motion:D,dragging:n!==null,height:A,itemHeight:j,virtual:N,focusable:_,tabIndex:v,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:I,onScroll:L,scrollWidth:M},this.getTreeNodeRequiredProps(),V))))}},IT=h.createContext({});(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})();var LT=(0,h.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),RT=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=h.useContext(Fr),o=m({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return h.createElement(zh,{className:o,...i})},zT=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:g}=h.useContext(LT),_=e=>{let t=n?.[0],i=h.createElement(`span`,{className:m(`${s}-title-content`,c?g?.itemContent:g?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||h.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?h.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:v}=h.useContext(IT),y=i;i===void 0?y=c?n:``:i===!1&&(y=``);let b=d===!1?void 0:d,x=b&&b.title!==void 0?b.title:y,S={...b??null,title:x};!v&&!f&&(S.title=null,S.open=!1);let C=tn(n).length,w=h.createElement(Ah,{...Ht(e,[`title`,`icon`,`danger`]),className:m(c?g?.item:g?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?C+1:C)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},lu(r,e=>({className:m(`${s}-item-icon`,c?g?.itemIcon:g?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),_(f));if(!u&&d!==!1){let e=b&&b.placement?b.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:m(t,e?.root)}),r=_r(b?.classNames)?e=>n(b.classNames(e)):n(b?.classNames);w=h.createElement(xy,{...S,placement:e,classNames:r},w)}return w},BT=h.createContext(null),VT=h.forwardRef((e,t)=>{let{children:n,...r}=e,i=h.useContext(BT),a=h.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=ze(n),s=Ie(t,o?Be(n):null);return h.createElement(BT.Provider,{value:a},h.createElement(G_,{space:!0},o?h.cloneElement(n,{ref:s}):n))}),npe=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${J(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},rpe=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${J(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${J(t)})`}}}}),HT=e=>ro(e),UT=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...HT(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...HT(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${J(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${J(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${J(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},WT=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:J(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:J(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:u}}},ipe=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,padding:c,paddingXL:l,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:p,paddingXS:m,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:_}=e,v={height:r,lineHeight:J(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...WT(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...WT(e),boxShadow:h}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${J(e.calc(o).mul(2.5).equal())})`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${t}-inline`]:{width:`100%`,[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${p}`,`background-color ${p}`,`padding ${f} ${s}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:`center`,width:`100%`}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,insetInlineStart:0,paddingInline:`calc(50% - ${J(e.calc(_).div(2).equal())} - ${J(u)})`,textOverflow:`clip`,[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:_,lineHeight:J(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},[`${t}-item-extra`]:{paddingInlineStart:c},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...Qa,paddingInline:m}}}]},GT=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...eo()},[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},KT=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${J(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${J(o)})`}}}}},ape=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v,iconSize:y,iconMarginInlineEnd:b}=e,x=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(`,`);return[{"":{[n]:{...no(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...$a(e),...no(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:`none`},"&-overflow":{display:`flex`,[`${n}-item`]:{flex:`none`}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${J(s)} ${J(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`,minWidth:0},[`${n}-item-label`]:{flex:`auto`,minWidth:0,...Qa},[x]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{flex:`none`,marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item-icon + ${n}-title-content-with-extra`]:{width:`calc(100% - ${J(e.calc(y).add(b??0).equal())})`},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...GT(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${J(e.calc(r).mul(2).equal())} ${J(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:{borderRadius:f,...GT(e),...KT(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...KT(e),[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${J(h)})`},"&::after":{transform:`rotate(45deg) translateX(${J(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${J(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${J(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${J(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},ope=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new cs(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new cs(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},spe=(e,t=e,n=!0)=>hc(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=Bo(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=Bo(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[ape(x),npe(x),ipe(x),UT(x,`light`),UT(S,`dark`),rpe(x),Id(x),rf(x,`slide-up`),rf(x,`slide-down`),yf(x,`zoom-big`)]},ope,{deprecatedTokens:[[`colorGroupTitle`,`groupTitleColor`],[`radiusItem`,`itemBorderRadius`],[`radiusSubMenuItem`,`subMenuItemBorderRadius`],[`colorItemText`,`itemColor`],[`colorItemTextHover`,`itemHoverColor`],[`colorItemTextHoverHorizontal`,`horizontalItemHoverColor`],[`colorItemTextSelected`,`itemSelectedColor`],[`colorItemTextSelectedHorizontal`,`horizontalItemSelectedColor`],[`colorItemTextDisabled`,`itemDisabledColor`],[`colorDangerItemText`,`dangerItemColor`],[`colorDangerItemTextHover`,`dangerItemHoverColor`],[`colorDangerItemTextSelected`,`dangerItemSelectedColor`],[`colorDangerItemBgActive`,`dangerItemActiveBg`],[`colorDangerItemBgSelected`,`dangerItemSelectedBg`],[`colorItemBg`,`itemBg`],[`colorItemBgHover`,`itemHoverBg`],[`colorSubItemBg`,`subMenuItemBg`],[`colorItemBgActive`,`itemActiveBg`],[`colorItemBgSelectedHorizontal`,`horizontalItemSelectedBg`],[`colorActiveBarWidth`,`activeBarWidth`],[`colorActiveBarHeight`,`activeBarHeight`],[`colorActiveBarBorderSize`,`activeBarBorderWidth`],[`colorItemBgSelected`,`itemSelectedBg`]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),qT=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=h.useContext(LT),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=oh(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?h.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):h.createElement(`span`,{className:`${o}-title-content`},r);else{let e=h.isValidElement(r)&&r.type===`span`;f=h.createElement(h.Fragment,null,lu(n,e=>({className:m(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:h.createElement(`span`,{className:`${o}-title-content`},r))}let p=h.useMemo(()=>({...a,firstLevel:!1}),[a]),[g]=md(`Menu`);return h.createElement(LT.Provider,{value:p},h.createElement(Rh,{...Ht(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:m(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:g,...e.popupStyle,...u?.popup?.root}}))};function JT(e){return e===null||e===!1}var cpe={item:zT,submenu:qT,divider:RT},lpe=(0,h.forwardRef)((e,t)=>{let n=h.useContext(BT),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:g,selectable:_,onClick:v,overflowedIndicatorPopupClassName:y,classNames:b,styles:x,...S}=e,{menu:C}=h.useContext(Fr),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=Rr(`menu`),j=w(),M=Ht(S,[`collapsedWidth`]);r.validator?.({mode:g});let N=fe((...e)=>{v?.(...e),r.onClick?.()}),P=r.mode||g,F=_??r.selectable,I=d??f,L={...e,mode:P,inlineCollapsed:I,selectable:F,theme:s},R=Er(O),z=Er(o),[B,V]=Or([k,b],[A,R,x,z],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),H={horizontal:{motionName:`${j}-slide-up`},inline:If(j),other:{motionName:`${j}-zoom-big`}},U=w(`menu`,i||r.prefixCls),W=ng(U),[G,K]=spe(U,W,!n),q=m(`${U}-${s}`,D,a),ee=h.useMemo(()=>{if(_r(c)||JT(c))return c||null;if(_r(r.expandIcon)||JT(r.expandIcon))return r.expandIcon||null;if(_r(C?.expandIcon)||JT(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return lu(e,{className:m(`${U}-submenu-expand-icon`,h.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,U]),te=h.useMemo(()=>({prefixCls:U,inlineCollapsed:I||!1,direction:E,firstLevel:!0,theme:s,mode:P,disableMenuItemTitleTooltip:l,tooltip:u,classNames:B,styles:V}),[U,I,E,l,s,P,B,V,u]);return h.createElement(BT.Provider,{value:null},h.createElement(LT.Provider,{value:te},h.createElement(qh,{getPopupContainer:T,overflowedIndicator:h.createElement(wm,null),overflowedIndicatorPopupClassName:m(U,`${U}-${s}`,y),classNames:{list:B.list,listTitle:B.itemTitle},styles:{list:V.list,listTitle:V.itemTitle},mode:P,selectable:F,onClick:N,...M,inlineCollapsed:I,style:V.root,className:q,prefixCls:U,direction:E,defaultMotions:H,expandIcon:ee,ref:t,rootClassName:m(p,G,r.rootClassName,K,W,B.root),_internalComponents:cpe})))}),YT=(0,h.forwardRef)((e,t)=>{let n=(0,h.useRef)(null),r=h.useContext(IT);return(0,h.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),h.createElement(lpe,{ref:n,...e,...r})});YT.Item=zT,YT.SubMenu=qT,YT.Divider=RT,YT.ItemGroup=Vh;var upe=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},dpe=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h,controlHeightLG:g}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`calc(100vh - ${J(e.calc(g).mul(2.5).equal())})`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight,
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Jd},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft,
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top,
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top,
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight,
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Xd},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Yd},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Zd},[`&${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-right,
&${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-right,
&${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-rightTop,
&${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-rightTop,
&${o}-slide-right-enter${o}-slide-right-enter-active${t}-placement-rightBottom,
&${o}-slide-right-appear${o}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:Qd},[`&${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-left,
&${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-left,
&${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-leftTop,
&${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-leftTop,
&${o}-slide-left-enter${o}-slide-left-enter-active${t}-placement-leftBottom,
&${o}-slide-left-appear${o}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:ef},[`&${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-right,
&${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightTop,
&${o}-slide-right-leave${o}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:$d},[`&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-left,
&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftTop,
&${o}-slide-left-leave${o}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:tf}}},fy(e,h),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...$a(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...io(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${J(l)} ${J(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> a, > ${n}-item-label > a`]:{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${J(l)} ${J(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...io(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${J(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${J(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[rf(e,`slide-up`),rf(e,`slide-down`),rf(e,`slide-left`),rf(e,`slide-right`),qd(e,`move-up`),qd(e,`move-down`),yf(e,`zoom-big`)]]},fpe=hc(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Bo(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[dpe(a),upe(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...dy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...yv(e)}),{resetStyle:!1}),XT=h.forwardRef((e,t)=>{let{menu:n,arrow:r,prefixCls:i,children:a,trigger:o,disabled:s,dropdownRender:c,popupRender:l,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:g,onOpenChange:_,mouseEnterDelay:v=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:x=``,transitionName:S,classNames:C,styles:w,destroyPopupOnHide:T,destroyOnHidden:E}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=Rr(`dropdown`),P={...e,mouseEnterDelay:v,mouseLeaveDelay:y,autoAdjustOverflow:b},[F,I]=Or([M,C],[N,w],{props:P}),L={...j,...p,...I.root},R=l||c;Mr(`Dropdown`);let z=h.useMemo(()=>{let e=D();return S===void 0?x.startsWith(`top`)?`${e}-slide-down`:x.startsWith(`left`)?`${e}-slide-right`:x.startsWith(`right`)?`${e}-slide-left`:`${e}-slide-up`:S},[D,x,S]),B=h.useMemo(()=>x?x.includes(`Center`)?x.slice(0,x.indexOf(`Center`)):x:O===`rtl`?`bottomRight`:`bottomLeft`,[x,O]),V=D(`dropdown`,i),H=ng(V),[U,W]=fpe(V,H),[,G]=mc(),K=h.Children.only(yr(a)?h.createElement(`span`,null,a):a),q=Ie(t,Be(K)),ee=lu(K,{className:m(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},K.props.className),disabled:K.props.disabled??s,ref:q}),te=s?[]:o,ne=!!te?.includes(`contextMenu`),[re,ie]=ve(!1,g),ae=fe(e=>{_?.(e,{source:`trigger`}),ie(e)}),oe=m(d,f,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),se=my({arrowPointAtCenter:gr(r)&&r.pointAtCenter,autoAdjustOverflow:b,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),ce=fe(()=>{n?.selectable&&n?.multiple||(_?.(!1,{source:`menu`}),ie(!1))}),le=()=>{let e=Ht(F,[`root`]),t=Ht(I,[`root`]),r;return n?.items&&(r=h.createElement(YT,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),R&&(r=R(r)),r=h.Children.only(typeof r==`string`?h.createElement(`span`,null,r):r),h.createElement(VT,{prefixCls:`${V}-menu`,rootClassName:m(W,H),expandIcon:h.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?h.createElement(Mb,{className:`${V}-menu-submenu-arrow-icon`}):h.createElement(Af,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:ce,validator:({mode:e})=>{}},r)},[ue,de]=md(`Dropdown`,L.zIndex),pe=h.createElement(Um,{alignPoint:ne,...Ht(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:v,mouseLeaveDelay:y,visible:re,builtinPlacements:se,arrow:!!r,overlayClassName:oe,prefixCls:V,getPopupContainer:u||k,transitionName:z,trigger:te,overlay:le,placement:B,onVisibleChange:ae,overlayStyle:{...L,zIndex:ue},autoDestroy:E??T},ee);return ue&&(pe=h.createElement(cd.Provider,{value:de},pe)),pe}),ppe=kg(XT,`align`,void 0,`dropdown`,e=>e);XT._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(ppe,{...e},h.createElement(`span`,null));var ZT=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(Fr),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:g,autoFocus:_,trigger:v,align:y,open:b,onOpenChange:x,placement:S,getPopupContainer:C,href:w,icon:T=h.createElement(wm,null),title:E,buttonsRender:D=e=>e,mouseEnterDelay:O,mouseLeaveDelay:k,overlayClassName:A,overlayStyle:j,destroyOnHidden:M,destroyPopupOnHide:N,dropdownRender:P,popupRender:F,...I}=e,L=n(`dropdown`,i),R=`${L}-button`,z={menu:p,arrow:g,autoFocus:_,align:y,disabled:s,trigger:s?[]:v,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:O,mouseLeaveDelay:k,classNames:{root:A},styles:{root:j},destroyOnHidden:M,popupRender:F||P},{compactSize:B,compactItemClassnames:V}=_d(L,r),H=m(R,V,f);`destroyPopupOnHide`in e&&(z.destroyPopupOnHide=N),`open`in e&&(z.open=b),`placement`in e?z.placement=S:z.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[U,W]=D([h.createElement(cp,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:w,title:E},d),h.createElement(cp,{type:a,danger:o,icon:T})]);return h.createElement(Ay.Compact,{className:H,size:B,block:!0,...I},U,h.createElement(XT,{...z},W))};ZT.__ANT_BUTTON=!0;var QT=XT;QT.Button=ZT;var $T={},eE=`SELECT_ALL`,tE=`SELECT_INVERT`,nE=`SELECT_NONE`,rE=[],iE=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),gr(t)&&e in t&&iE(e,t[e],n)}),n),mpe=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:g,selections:_,fixed:v,renderCell:y,hideSelectAll:b,checkStrictly:x=!0}=t||{},{prefixCls:S,data:C,pageData:w,getRecordByKey:T,getRowKey:E,expandType:D,childrenColumnName:O,locale:k,getPopupContainer:A}=e,j=Mr(`Table`),[M,N]=mee(e=>e),[P,F]=ve(i||rE,r),I=P??rE,L=h.useRef(new Map),R=(0,h.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=T(e);!n&&L.current.has(e)&&(n=L.current.get(e)),t.set(e,n)}),L.current=t}},[T,n]);h.useEffect(()=>{R(I)},[I,R]);let z=(0,h.useMemo)(()=>iE(O,w),[O,w]),{keyEntities:B}=(0,h.useMemo)(()=>{if(x)return{keyEntities:null};let e=C;if(n){let t=new Set(z.map(E)),n=Array.from(L.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(dr(e),dr(n))}return lT(e,{externalGetKey:E,childrenPropName:O})},[C,E,x,O,n,z]),V=(0,h.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=E(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[z,E,a]),H=(0,h.useCallback)(e=>{let t=E(e),n;return n=V.has(t)?V.get(E(e)):a?a(e):void 0,!!n?.disabled},[V,E]),[U,W]=(0,h.useMemo)(()=>{if(x)return[I,[]];let{checkedKeys:e,halfCheckedKeys:t}=PT(I,!0,B,H);return[e||[],t]},[I,x,B,H]),G=(0,h.useMemo)(()=>{let e=g===`radio`?U.slice(0,1):U;return new Set(e)},[U,g]),K=(0,h.useMemo)(()=>g===`radio`?new Set:new Set(W),[W,g]);h.useEffect(()=>{t||F(rE)},[!!t]);let q=(0,h.useCallback)((e,t)=>{let r,i;R(e),n?(r=e,i=e.map(e=>L.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=T(e);t!==void 0&&(r.push(e),i.push(t))})),F(r),s?.(r,i,{type:t})},[F,T,s,n]),ee=(0,h.useCallback)((e,t,n,r)=>{if(c){let i=n.map(T);c(T(e),t,i,r)}q(n,`single`)},[c,T,q]),te=(0,h.useMemo)(()=>!_||b?null:(_===!0?[eE,tE,nE]:_).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:k.selectionAll,onSelect(){q(C.reduce((e,t,n)=>{let r=E(t,n);return(!V.get(r)?.disabled||G.has(r))&&e.push(r),e},[]),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:k.selectInvert,onSelect(){let e=new Set(G);w.forEach((t,n)=>{let r=E(t,n);V.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(j.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),q(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:k.selectNone,onSelect(){d?.(),q(Array.from(G).filter(e=>V.get(e)?.disabled),`none`)}}:e,{...t,onSelect:e=>{t.onSelect?.(e),N(null)}}}),[_,b,k.selectionAll,k.selectInvert,k.selectNone,V,G,C,w,E,u,q]);return[(0,h.useCallback)(e=>{if(!t)return e.filter(e=>e!==$T);let n=dr(e),r=new Set(G),i=z.reduce((e,t,n)=>{let r=E(t,n);return V.get(r).disabled||e.push(r),e},[]),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(T),e.map(T)),q(t,`all`),N(null)},u,d;if(g!==`radio`){let e;if(te){let t={getPopupContainer:A,items:te.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=h.createElement(`div`,{className:`${S}-selection-extra`},h.createElement(QT,{menu:t,getPopupContainer:A},h.createElement(`span`,null,h.createElement(Dv,null))))}let t=z.reduce((e,t,n)=>{let i=E(t,n),a=V.get(i)||{},o={checked:r.has(i),...a};return o.disabled&&e.push(o),e},[]),n=!!t.length&&t.length===z.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:g}=p;d=h.createElement(pg,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!z.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:g??(z.length===0||n),skipGroup:!0}),u=!b&&h.createElement(`div`,{className:`${S}-selection`},d,e)}let C;C=g===`radio`?(e,t,n)=>{let i=E(t,n),a=r.has(i),o=V.get(i),s=`Select row ${n+1}`;return{node:h.createElement(jC,{"aria-label":s,...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||ee(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=E(t,n),o=r.has(a),s=K.has(a),c=V.get(a),l;l=D===`nest`?s:c?.indeterminate??s;let u=o?`Row ${n+1} selected`:`Select row ${n+1}`;return{node:h.createElement(pg,{"aria-label":u,...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=G.size>0&&i.some(e=>G.has(e));if(n&&x&&l){let e=M(s,i,r),t=Array.from(r);f?.(!o,t.map(T),e.map(T)),q(t,`multiple`)}else{let e=U;if(x){let n=o?ET(e,a):DT(e,a);ee(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=PT([].concat(dr(e),[a]),!0,B,H),i=n;if(o){let e=new Set(n);e.delete(a),i=PT(Array.from(e),{checked:!1,halfCheckedKeys:r},B,H).checkedKeys}ee(a,!o,i,t)}}N(o?null:s),c?.onChange?.(e)}}),checked:o}};let w=(e,t,n)=>{let{node:r,checked:i}=C(e,t,n);return y?y(i,t,n,r):r};if(!n.includes($T))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,$T].concat(dr(t))}else n=[$T].concat(dr(n));let O=n.indexOf($T);n=n.filter((e,t)=>e!==$T||t===O);let k=n[O-1],j=n[O+1],P=v;P===void 0&&(j?.fixed===void 0?k?.fixed!==void 0&&(P=k.fixed):P=j.fixed),P&&k&&k.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&k.fixed===void 0&&(k.fixed=P);let F=m(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:_&&g===`checkbox`}),I={fixed:P,width:p,className:`${S}-selection-column`,title:t?.columnTitle?_r(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:w,onCell:t.onCell,align:t.align,[Ow]:{className:F}};return n.map(e=>e===$T?I:e)},[E,z,t,U,G,K,p,te,D,V,f,ee,H]),G]};function hpe(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}var aE=e=>fr(e)&&e===e.window,gpe=e=>{if(typeof window>`u`)return 0;let t=0;return aE(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!aE(e)&&!mr(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function _pe(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=gpe(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=hpe(t>i?i:t,o,e,i);aE(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t<i?c=en(l):_r(r)&&r()};return c=en(l),()=>{en.cancel(c)}}function vpe(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return h.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:m(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function ype(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var bpe=(e,t)=>h.useMemo(()=>{if(!t)return e;let n=e=>e.map(e=>e===$T||e===$C?e:`children`in e&&Array.isArray(e.children)?{...nn(t,e),children:n(e.children)}:nn(Ht(t,[`children`]),e));return n(e)},[e,t]),oE=(e,t)=>`key`in e&&fr(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function sE(e,t){return t?`${t}-${e}`:`${e}`}var cE=(e,t)=>_r(e)?e(t):e,xpe=(e,t)=>{let n=cE(e,t);return gr(n)||Array.isArray(n)?``:n},Spe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z`}}]},name:`filter`,theme:`filled`}}))());function lE(){return lE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lE.apply(this,arguments)}var Cpe=h.forwardRef((e,t)=>h.createElement(W,lE({},e,{ref:t,icon:Spe.default}))),wpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z`}}]},name:`file`,theme:`outlined`}}))());function uE(){return uE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uE.apply(this,arguments)}var dE=h.forwardRef((e,t)=>h.createElement(W,uE({},e,{ref:t,icon:wpe.default}))),Tpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`}}))());function fE(){return fE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fE.apply(this,arguments)}var Epe=h.forwardRef((e,t)=>h.createElement(W,fE({},e,{ref:t,icon:Tpe.default}))),Dpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z`}}]},name:`folder`,theme:`outlined`}}))());function pE(){return pE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pE.apply(this,arguments)}var Ope=h.forwardRef((e,t)=>h.createElement(W,pE({},e,{ref:t,icon:Dpe.default}))),kpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z`}}]},name:`holder`,theme:`outlined`}}))());function mE(){return mE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mE.apply(this,arguments)}var Ape=h.forwardRef((e,t)=>h.createElement(W,mE({},e,{ref:t,icon:kpe.default}))),jpe=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),Mpe=new Xa(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),Npe=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),Ppe=(e,t)=>({[`.${e}-drop-indicator`]:{position:`absolute`,zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:`none`,"&:after":{position:`absolute`,top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:`transparent`,border:`${J(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),Fpe=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...$a(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...ro(t)}}},[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging:after`]:{position:`absolute`,inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Mpe,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:J(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...Npe(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,position:`absolute`,left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:`rotate(-90deg)`},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:`relative`,zIndex:1,display:`inline-block`,width:`100%`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...Ppe(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&-end:before":{display:`none`}},[`${n}-switcher`]:{background:`transparent`,"&-line-icon":{verticalAlign:`-0.15em`}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:`auto !important`,bottom:`auto !important`,height:`${J(t.calc(a).div(2).equal())} !important`}}}},Ipe=(e,t,n=!0)=>{let r=`.${e}`,i=Bo(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[Fpe(e,i),n&&jpe(i)].filter(Boolean)},Lpe=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Rpe=hc(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:lg(`${t}-checkbox`,e)},Ipe(t,e),Id(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...Lpe(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),zpe=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return h.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},Bpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`filled`}}))());function hE(){return hE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hE.apply(this,arguments)}var Vpe=h.forwardRef((e,t)=>h.createElement(W,hE({},e,{ref:t,icon:Bpe.default}))),Hpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`minus-square`,theme:`outlined`}}))());function gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gE.apply(this,arguments)}var Upe=h.forwardRef((e,t)=>h.createElement(W,gE({},e,{ref:t,icon:Hpe.default}))),Wpe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`plus-square`,theme:`outlined`}}))());function _E(){return _E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_E.apply(this,arguments)}var Gpe=h.forwardRef((e,t)=>h.createElement(W,_E({},e,{ref:t,icon:Wpe.default}))),Kpe=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return h.isValidElement(a)?a:h.createElement(jd,{className:`${t}-switcher-loading-icon`});let l;if(gr(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=_r(l)?l(r):l,n=`${t}-switcher-line-custom-icon`;return h.isValidElement(e)?lu(e,{className:m(e.props?.className,n)}):e}return l?h.createElement(dE,{className:`${t}-switcher-line-icon`}):h.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=_r(n)?n(r):n;return h.isValidElement(d)?lu(d,{className:m(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?h.createElement(Upe,{className:`${t}-switcher-line-icon`}):h.createElement(Gpe,{className:`${t}-switcher-line-icon`}):h.createElement(Vpe,{className:u}):d},qpe=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=Rr(`tree`),{virtual:c}=h.useContext(Fr),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:g,blockNode:_=!1,children:v,checkable:y=!1,selectable:b=!0,draggable:x,disabled:S,motion:C,style:w,rootClassName:T,classNames:E,styles:D,icon:O}=e,k=h.useContext(mu),A=S??k,j=n(`tree`,l),M=n(),N=C??{...If(M),motionAppear:!1},P={...e,showIcon:d,blockNode:_,checkable:y,selectable:b,disabled:A,motion:N},[F,I]=Or([o,E],[s,D],{props:P}),L={...P,showLine:!!f,icon:O,dropIndicatorRender:zpe},[R,z]=Rpe(j),[,B]=mc(),V=B.paddingXS/2+(B.Tree?.titleHeight||B.controlHeightSM),H=h.useMemo(()=>{if(!x)return!1;let e={};switch(typeof x){case`function`:e.nodeDraggable=x;break;case`object`:e={...x};break;default:break}return e.icon!==!1&&(e.icon=e.icon||h.createElement(Ape,null)),e},[x]),U=e=>h.createElement(Kpe,{prefixCls:j,switcherIcon:p,switcherLoadingIcon:g,treeNodeProps:e,showLine:f});return h.createElement(tpe,{itemHeight:V,ref:t,virtual:c,...L,prefixCls:j,className:m({[`${j}-icon-hide`]:!d,[`${j}-block-node`]:_,[`${j}-unselectable`]:!b,[`${j}-rtl`]:r===`rtl`,[`${j}-disabled`]:A},i,u,R,z),style:{...a,...w},rootClassName:m(F.root,T),rootStyle:I.root,classNames:F,styles:I,direction:r,checkable:y&&h.createElement(`span`,{className:`${j}-checkbox-inner`}),selectable:b,switcherIcon:U,draggable:H},v)}),Jpe=0,vE=1,Ype=2;function yE(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&yE(o||[],t,n)}e.forEach(a)}function Xpe({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=Jpe;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return yE(e,e=>{if(o===Ype)return!1;if(s(e)){if(a.push(e),o===Jpe)o=vE;else if(o===vE)return o=Ype,!1}else o===vE&&a.push(e);return t.includes(e)},oT(i)),a}function bE(e,t,n){let r=dr(t),i=[];return yE(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},oT(n)),i}function Zpe(e){let{isLeaf:t,expanded:n}=e;return t?h.createElement(dE,null):n?h.createElement(Epe,null):h.createElement(Ope,null)}function Qpe({treeData:e,children:t}){return e||sT(t)}var $pe=h.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r=!0,defaultExpandedKeys:i,...a}=e,o=h.useRef(null),s=h.useRef(null),c=()=>{let{keyEntities:e}=lT(Qpe(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?MT(o,e):o,t},[l,u]=h.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=h.useState(()=>c());h.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),h.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),g=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=Qpe(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=bE(f,g,r)):n&&h?(g=Array.from(new Set([].concat(dr(s.current||[]),dr(Xpe({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=bE(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=bE(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:_,direction:v}=h.useContext(Fr),{prefixCls:y,className:b,showIcon:x=!0,expandAction:S=`click`,...C}=a,w=_(`tree`,y),T=m(`${w}-directory`,{[`${w}-directory-rtl`]:v===`rtl`},b);return h.createElement(qpe,{icon:Zpe,ref:t,blockNode:!0,...C,showIcon:x,expandAction:S,prefixCls:w,className:T,defaultExpandParent:r,expandedKeys:d,selectedKeys:l,onSelect:g,onExpand:p})}),xE=qpe;xE.DirectoryTree=$pe,xE.TreeNode=gT;var eme=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?h.createElement(`div`,{className:`${r}-filter-dropdown-search`},h.createElement(Jy,{prefix:h.createElement(kv,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},tme=e=>{let{keyCode:t}=e;t===Tt.ENTER&&e.stopPropagation()},nme=h.forwardRef((e,t)=>h.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:tme,ref:t,role:`presentation`},e.children));function SE(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(dr(t),dr(SE(n))))}),t}function rme(e){return e.some(({children:e})=>e)}var ime=(e,t)=>typeof t==`string`||mr(t)?t.toString().toLowerCase().includes(e):!1,ame=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:ame({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?pg:jC,u={key:e.value===void 0?t:c,label:h.createElement(h.Fragment,null,h.createElement(l,{checked:r.includes(c)}),h.createElement(`span`,null,e.text))};return o?_r(s)?s(o,e)?u:null:ime(o,e.text)?u:null:u})};function CE(e){return e||[]}var ome=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:g,rootClassName:_}=e,{filterResetToDefaultFilteredValue:v,defaultFilteredValue:y,filterDropdownProps:b={},filterDropdownOpen:x,onFilterDropdownOpenChange:S}=r,[C,w]=h.useState(!1),T=h.useContext(hy),E=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),D=e=>{w(e),b.onOpenChange?.(e),S?.(e)},O=b.open??x??C,k=u?.filteredKeys,[A,j]=sd(CE(k)),M=({selectedKeys:e})=>{j(e)},N=(e,{node:t,checked:n})=>{M(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};h.useEffect(()=>{C&&M({selectedKeys:CE(k)})},[k]);let[P,F]=h.useState([]),I=e=>{F(e)},[L,R]=h.useState(``),z=h.useMemo(()=>L.trim().toLowerCase(),[L]),B=e=>{let{value:t}=e.target;R(t)};h.useEffect(()=>{C||R(``)},[C]);let V=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||zt(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},H=()=>{D(!1),V(A())},U=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&V([]),t&&D(!1),R(``),j(v?(y||[]).map(String):[])},W=({closeDropdown:e}={closeDropdown:!0})=>{e&&D(!1),V(A())},G=(e,t)=>{t.source===`trigger`&&(e&&k!==void 0&&j(CE(k)),D(e),!e&&!r.filterDropdown&&o&&H())},K=m({[`${i}-menu-without-submenu`]:!rme(r.filters||[])}),q=e=>{e.target.checked?j(SE(r?.filters).map(String)):j([])},ee=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=ee({filters:e.children})),r}),te=e=>({...e,text:e.title,value:e.key,children:e.children?.map(te)||[]}),ne,{direction:re,renderEmpty:ie}=h.useContext(Fr);if(_r(r.filterDropdown))ne=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>M({selectedKeys:e}),selectedKeys:A(),confirm:W,clearFilters:U,filters:r.filters,visible:O,close:()=>{D(!1)}});else if(r.filterDropdown)ne=r.filterDropdown;else{let e=A()||[];ne=h.createElement(h.Fragment,null,(()=>{let a=ie?.(`Table.filter`)??h.createElement(Tb,{image:Tb.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return h.createElement(h.Fragment,null,h.createElement(eme,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),h.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?h.createElement(pg,{checked:e.length===SE(r.filters).length,indeterminate:e.length>0&&e.length<SE(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:q},f?.filterCheckall??f?.filterCheckAll):null,h.createElement(xE,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${i}-menu`,onCheck:N,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:ee({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:z?e=>_r(l)?l(L,te(e)):ime(z,e.title):void 0})));let o=ame({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:A(),filterMultiple:s,searchValue:L,normalizedSearchValue:z}),u=o.every(e=>e===null);return h.createElement(h.Fragment,null,h.createElement(eme,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),u?a:h.createElement(YT,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:K,onSelect:M,onDeselect:M,selectedKeys:e,getPopupContainer:g,openKeys:P,onOpenChange:I,items:o}))})(),h.createElement(`div`,{className:`${n}-dropdown-btns`},h.createElement(sp,{type:`link`,size:`small`,disabled:v?zt((y||[]).map(String),e,!0):e.length===0,onClick:()=>U()},f.filterReset),h.createElement(sp,{type:`primary`,size:`small`,onClick:H},f.filterConfirm)))}r.filterDropdown&&(ne=h.createElement(VT,{selectable:void 0},ne)),ne=h.createElement(nme,{className:`${n}-dropdown`},ne);let ae=(()=>{let e;return e=_r(r.filterIcon)?r.filterIcon(E):r.filterIcon?r.filterIcon:h.createElement(Cpe,null),h.createElement(`span`,{role:`button`,tabIndex:-1,className:m(`${n}-trigger`,{active:E}),onClick:e=>{e.stopPropagation()}},e)})();if(T)return h.createElement(`div`,{className:`${n}-column`},h.createElement(`span`,{className:`${t}-column-title`},p),ae);let oe=nn({trigger:[`click`],placement:re===`rtl`?`bottomLeft`:`bottomRight`,children:ae,getPopupContainer:g},{...b,rootClassName:m(_,b.rootClassName),open:O,onOpenChange:G,popupRender:()=>_r(b?.dropdownRender)?b.dropdownRender(ne):ne});return h.createElement(`div`,{className:`${n}-column`},h.createElement(`span`,{className:`${t}-column-title`},p),h.createElement(QT,{...oe}))},wE=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=sE(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:oE(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:oE(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(dr(r),dr(wE(e.children,t,a))))}),r};function sme(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=sE(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,g=n;if(g.filters||g.filterDropdown){let s=oE(g,u),l=r.find(({key:e})=>s===e);g={...g,title:r=>h.createElement(ome,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},cE(n.title,r))}}return`children`in g&&(g={...g,children:sme(e,t,g.children,r,i,a,o,u,c)}),g})}var cme=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;o?t[i]=n||null:Array.isArray(n)?t[i]=SE(a).filter(e=>n.includes(String(e))):t[i]=null}),t},TE=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=SE(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=TE(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),lme=e=>e.flatMap(e=>`children`in e?[e].concat(dr(lme(e.children||[]))):[e]),ume=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Mr(`Table`);let c=h.useMemo(()=>lme(r||[]),[r]),[l,u]=h.useState(()=>wE(c,!0)),d=h.useMemo(()=>{let e=wE(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>oE(e,sE(t)));return l.reduce((t,n)=>{let r=e.indexOf(n.key);if(r!==-1){let e=c[r];t.push({...n,column:{...n.column,...e},forceFiltered:e.filtered})}return t},[])}return e},[c,l]),f=h.useMemo(()=>cme(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(cme(t),t)};return[e=>sme(t,n,e,d,o,p,a,void 0,s),d,f]},dme=(e,t,n)=>{let r=h.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),gr(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function fme(e,t){let n={current:e.current,pageSize:e.pageSize},r=gr(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];_r(r)||(n[t]=r)}),n}function pme(e,t,n){let{total:r=0,...i}=gr(n)?n:{},[a,o]=(0,h.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=nn(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var mme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`outlined`}}))());function EE(){return EE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EE.apply(this,arguments)}var hme=h.forwardRef((e,t)=>h.createElement(W,EE({},e,{ref:t,icon:mme.default}))),gme=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z`}}]},name:`caret-up`,theme:`outlined`}}))());function DE(){return DE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DE.apply(this,arguments)}var _me=h.forwardRef((e,t)=>h.createElement(W,DE({},e,{ref:t,icon:gme.default}))),OE=`ascend`,kE=`descend`,AE=e=>gr(e.sorter)&&mr(e.sorter.multiple)?e.sorter.multiple:!1,vme=e=>_r(e)?e:gr(e)&&e.compare?e.compare:!1,yme=(e,t)=>t?e[e.indexOf(t)+1]:e[0],jE=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:oE(e,t),multiplePriority:AE(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=sE(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(dr(r),dr(jE(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:oE(e,o),multiplePriority:AE(e),sortOrder:e.defaultSortOrder}))}),r},bme=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=sE(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=oE(d,u),p=n.find(({key:e})=>e===f),g=p?p.sortOrder:null,_=yme(s,g),v;if(t.sortIcon)v=t.sortIcon({sortOrder:g});else{let t=s.includes(OE)&&h.createElement(_me,{className:m(`${e}-column-sorter-up`,{active:g===OE})}),n=s.includes(kE)&&h.createElement(hme,{className:m(`${e}-column-sorter-down`,{active:g===kE})});v=h.createElement(`span`,{className:m(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},h.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:y,triggerAsc:b,triggerDesc:x}=a||{},S=y;_===kE?S=x:_===OE&&(S=b);let C=gr(l)?{title:S,...l}:{title:S};d={...d,className:m(d.className,{[`${e}-column-sort`]:g}),title:n=>{let r=`${e}-column-sorters`,i=h.createElement(`span`,{className:`${e}-column-title`},cE(t.title,n)),a=h.createElement(`div`,{className:r},i,v);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?h.createElement(`div`,{className:m(r,`${r}-tooltip-target-sorter`)},i,h.createElement(xy,{...C},v)):h.createElement(xy,{...C},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:_,multiplePriority:AE(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===Tt.ENTER&&(r({column:t,key:f,sortOrder:_,multiplePriority:AE(t)}),o?.(e))};let s=xpe(t.title,{}),l=s?.toString();return g&&(i[`aria-sort`]=g===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=m(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:bme(e,d.children,n,r,i,a,o,u,c)}),d}),xme=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Sme=e=>{let t=e.reduce((e,t)=>(t.sortOrder&&e.push(xme(t)),e),[]);return t.length===0&&e.length?{...xme(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},ME=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>vme(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n<a.length;n+=1){let{column:{sorter:r},sortOrder:i}=a[n],o=vme(r);if(o&&i){let n=o(e,t,i);if(n!==0)return i===OE?n:-n}}return 0}).map(e=>{let r=e[n];return r?{...e,[n]:ME(r,t,n)}:e}):i},Cme=e=>{let{prefixCls:t,mergedColumns:n,baseColumns:r,sortDirections:i,tableLocale:a,showSorterTooltip:o,onSorterChange:s,globalLocale:c}=e,l=r??n,[u,d]=h.useState(()=>jE(l,!0)),f=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=sE(r,t);if(n.push(oE(e,i)),Array.isArray(e.children)){let t=f(e.children,i);n.push.apply(n,dr(t))}}),n},p=h.useMemo(()=>{let e=!0,t=jE(l,!1);if(!t.length){let e=f(l);return u.filter(({key:t})=>e.includes(t))}let n=[];function r(t){e?n.push(t):n.push({...t,sortOrder:null})}let i=null;return t.forEach(t=>{i===null?(r(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:i=!0)):(i&&t.multiplePriority!==!1||(e=!1),r(t))}),n},[l,u]),m=h.useMemo(()=>{let e=p.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[p]),g=e=>{let t;t=e.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?[e]:[].concat(dr(p.filter(({key:t})=>t!==e.key)),[e]),d(t),s(Sme(t),t)};return[e=>bme(t,e,p,g,i,a,o,void 0,c),p,m,()=>Sme(p)]},wme=(e,t)=>e.map(e=>{let n={...e};return n.title=cE(e.title,t),`children`in n&&(n.children=wme(n.children,t)),n}),Tme=e=>[h.useCallback(t=>wme(t,e),[e])],Eme=qw((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Dme=tT((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Ome=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${J(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${J(c(r).mul(-1).equal())}
${J(c(c(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:l,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:l,borderTop:l,[`> ${t}-header${t}-sticky-holder`]:{marginTop:c(n).mul(-1).equal(),borderTop:l},[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:l},"> thead":{"> tr:not(:last-child) > th":{borderBottom:l},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first:not(${t}-cell-fix-right-last)::after`]:{borderInlineEnd:l}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${J(c(o).mul(-1).equal())} ${J(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:l,content:`""`}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}},...u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:l,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${J(n)} 0 ${J(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},kme=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Qa,wordBreak:`keep-all`,[`
&${t}-cell-fix-start-shadow,
&${t}-cell-fix-end-shadow
`]:{overflow:`visible`,[`${t}-cell-content`]:{...Qa,display:`block`}},[`${t}-column-title`]:{...Qa,wordBreak:`keep-all`}}}}},Ame=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},jme=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${J(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${t}-row-expand-icon-cell`]:{textAlign:`center`,[`${t}-row-expand-icon`]:{display:`inline-flex`,float:`none`,verticalAlign:`sub`}},[`${t}-row-indent`]:{height:1,float:`left`},[`${t}-row-expand-icon`]:{...co(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:J(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,transform:`rotate(90deg)`},"&-collapsed::before":{transform:`rotate(-180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`},"&-spaced":{"&::before, &::after":{display:`none`,content:`none`},background:`transparent`,border:0,visibility:`hidden`}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${J(y(d).mul(-1).equal())} ${J(y(f).mul(-1).equal())}`,padding:`${J(d)} ${J(f)}`}}}},Mme=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${J(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${J(o)} ${J(D(m).div(2).mul(-1).equal())}`,padding:`0 ${J(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...$a(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${J(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${J(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${J(D(s).sub(l).equal())} ${J(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function Nme({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var Pme=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=Nme(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},Fme=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${J(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},Ime=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${J(n)} ${J(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${J(n)} ${J(n)}`}}}}},Lme=e=>{let{componentCls:t}=e,[n,r]=Nme(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},Rme=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:`transparent !important`},[`${t}-selection`]:{position:`relative`,display:`inline-flex`,flexDirection:`column`},[`${t}-selection-extra`]:{position:`absolute`,top:0,zIndex:1,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,marginInlineStart:`100%`,paddingInlineStart:J(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},zme=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[`
${t}-title,
${t}-footer,
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${J(i)} ${J(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:J(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${J(r(i).mul(-1).equal())} ${J(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:J(r(i).mul(-1).equal()),marginInline:`${J(r(n).sub(a).equal())} ${J(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:J(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},Bme=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:`transparent !important`}},"&:focus-visible":{color:e.colorPrimary},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:`transparent !important`}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:`relative`,zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:`none`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:`inline-flex`,flexDirection:`column`,alignItems:`center`},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:`-0.3em`}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},Vme=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${J(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${J(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},Hme=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${J(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${J(i(n).mul(-1).equal())} 0 ${r}`}}}},Ume=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${J(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
& > ${t}-row,
& > div:not(${t}-row) > ${t}-row
`]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${J(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},Wme=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${J(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...no(),[t]:{...$a(e),fontSize:l,background:u,borderRadius:`${J(d)} ${J(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${J(d)} ${J(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[`
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:`relative`,padding:`${J(r)} ${J(i)}`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${J(r)} ${J(i)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:`center`},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:h,transform:`translateY(-50%)`,transition:`background-color ${p}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:y,transition:[`background-color`,`border-color`].map(e=>`${e} ${p}`).join(`, `),[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:J(v(r).mul(-1).equal()),marginInline:`${J(v(a).sub(i).equal())}
${J(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${J(r)} ${J(i)}`,color:g,background:_}}}},Gme=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new cs(i).onBackground(n).toHexString(),w=new cs(a).onBackground(n).toHexString(),T=new cs(t).onBackground(n).toHexString(),E=new cs(y),D=new cs(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},Kme=2,qme=hc(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=Bo(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:Kme,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[Wme(F),Fme(F),Hme(F),Bme(F),Mme(F),Ome(F),Ime(F),jme(F),Hme(F),Ame(F),Rme(F),Pme(F),Vme(F),kme(F),zme(F),Lme(F),Ume(F)]},Gme,{resetFont:!1,unitless:{expandIconScale:!0}}),Jme=[],Yme=h.createContext({}),Xme=e=>{let{ariaProps:t,component:n=`table`}=h.useContext(Yme);return h.createElement(n,{...t,...e})},Zme=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:g,rowClassName:_,column:v,columns:y,children:b,childrenColumnName:x,onChange:S,getPopupContainer:C,loading:w,expandIcon:T,expandable:E,expandedRowRender:D,expandIconColumnIndex:O,indentSize:k,scroll:A,sortDirections:j,locale:M,showSorterTooltip:N={target:`full-header`},virtual:P}=e;Mr(`Table`);let F=bpe(h.useMemo(()=>y||Fw(b),[y,b]),v),I=xg(h.useMemo(()=>F.some(e=>e.responsive),[F])),L=h.useMemo(()=>{let e=new Set(Object.keys(I).filter(e=>I[e]));return F.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[F,I]),R=Ht(e,[`className`,`style`,`column`,`columns`]),z=R.components,B=qt(R,{aria:!0}),V=Object.keys(B).length>0,H=h.useMemo(()=>({ariaProps:B,component:z?.header?.table}),[B,z?.header?.table]),U=h.useMemo(()=>V?{...z,header:{...z?.header,table:Xme}}:z,[z,V]),{locale:W=Lc,table:G}=h.useContext(Fr),{getPrefixCls:K,direction:q,renderEmpty:ee,getPopupContainer:te,className:ne,style:re,classNames:ie,styles:ae}=Rr(`table`),oe=Wu(e=>c===`middle`?`medium`:c??e),se={...e,size:oe,bordered:l},ce=Er(re),le=Er(a),[ue,de]=Or([ie,o],[ae,ce,s,le],{props:se},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),fe={...W.Table,...M},[pe]=Wc(`global`,Lc.global),me=d||Jme,he=K(`table`,n),ge=K(`dropdown`,u),[,_e]=mc(),ve=h.useMemo(()=>gr(p)?{columnWidth:_e.Table?.selectionColumnWidth,...p}:p,[p,_e.Table?.selectionColumnWidth]),ye=ng(he),[be,xe]=qme(he,ye),Se={childrenColumnName:x,expandIconColumnIndex:O,...E,expandIcon:E?.expandIcon??G?.expandable?.expandIcon},{childrenColumnName:Ce=`children`}=Se,we=h.useMemo(()=>me.some(e=>e?.[Ce])?`nest`:D||E?.expandedRowRender?`row`:null,[Ce,me]),Te={body:h.useRef(null)},Ee=ype(he),De=h.useRef(null),Oe=h.useRef(null);od(t,()=>({...Oe.current,nativeElement:De.current}));let ke=g||G?.rowKey||`key`,Ae=A??G?.scroll,je=h.useMemo(()=>_r(ke)?ke:e=>e?.[ke],[ke]),[Me]=dme(me,Ce,je),Ne={},Pe=(e,t,n=!1)=>{let r={...Ne,...e};n&&(Ne.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),A&&A.scrollToFirstRowOnChange!==!1&&Te.body.current&&_pe(0,{getContainer:()=>Te.body.current}),S?.(r.pagination,r.filters,r.sorter,{currentDataSource:TE(ME(me,r.sorterStates,Ce),r.filterStates,Ce),action:t})},[Fe,Ie,Le,Re]=Cme({prefixCls:he,mergedColumns:L,baseColumns:F,onSorterChange:(e,t)=>{Pe({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:j||[`ascend`,`descend`],tableLocale:fe,showSorterTooltip:N,globalLocale:pe}),ze=h.useMemo(()=>ME(me,Ie,Ce),[Ce,me,Ie]);Ne.sorter=Re(),Ne.sorterStates=Ie;let[Be,Ve,He]=ume({prefixCls:he,locale:fe,dropdownPrefixCls:ge,mergedColumns:L,onFilterChange:(e,t)=>{Pe({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:C||te,rootClassName:m(i,ye)}),Ue=TE(ze,Ve,Ce);Ne.filters=He,Ne.filterStates=Ve;let[We]=Tme(h.useMemo(()=>{let e={};return Object.keys(He).forEach(t=>{He[t]!==null&&(e[t]=He[t])}),{...Le,filters:e}},[Le,He])),[Ge,Ke]=pme(Ue.length,(e,t)=>{Pe({pagination:{...Ne.pagination,current:e,pageSize:t}},`paginate`)},f);Ne.pagination=f===!1?{}:fme(Ge,f),Ne.resetPagination=Ke;let qe=h.useMemo(()=>{if(f===!1||!Ge.pageSize)return Ue;let{current:e=1,total:t,pageSize:n=10}=Ge;return Ue.length<t?Ue.length>n?Ue.slice((e-1)*n,e*n):Ue:Ue.slice((e-1)*n,e*n)},[!!f,Ue,Ge?.current,Ge?.pageSize,Ge?.total]),[Je,Ye]=mpe({prefixCls:he,data:Ue,pageData:qe,getRowKey:je,getRecordByKey:Me,expandType:we,childrenColumnName:Ce,locale:fe,getPopupContainer:C||te},ve),Xe=(e,t,n)=>m({[`${he}-row-selected`]:Ye.has(je(e,t))},_r(_)?_(e,t,n):_);Se.__PARENT_RENDER_ICON__=Se.expandIcon,Se.expandIcon=Se.expandIcon||T||vpe(fe),we===`nest`&&Se.expandIconColumnIndex===void 0?Se.expandIconColumnIndex=+!!ve:Se.expandIconColumnIndex>0&&ve&&--Se.expandIconColumnIndex,mr(Se.indentSize)||(Se.indentSize=mr(k)?k:15);let Ze=h.useCallback(e=>We(Je(Be(Fe(e)))),[Fe,Be,Je]),Qe,$e;if(f!==!1&&Ge?.total){let e;e=Ge.size?Ge.size:oe===`small`||oe===`medium`?`small`:void 0;let t=(t=`end`)=>h.createElement(Hx,{...Ge,classNames:ue.pagination,styles:de.pagination,className:m(`${he}-pagination ${he}-pagination-${t}`,Ge.className),size:e}),{placement:n,position:r}=Ge,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&($e=t()),e&&(Qe=t(a(e))),n&&($e=t(a(n)))}else $e=t()}let et=h.useMemo(()=>{if(typeof w==`boolean`)return{spinning:w};if(gr(w))return{spinning:!0,...w}},[w]),tt=m(xe,ye,`${he}-wrapper`,ne,{[`${he}-wrapper-rtl`]:q===`rtl`},r,i,ue.root,be),nt=h.useMemo(()=>et?.spinning&&me===Jme?null:M?.emptyText===void 0?ee?.(`Table`)||h.createElement(Eb,{componentName:`Table`}):M.emptyText,[et?.spinning,me,M?.emptyText,ee]),rt=P?Dme:Eme,it={},at=h.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=_e,o=Math.floor(e*t);switch(oe){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[_e,oe]);return P&&(it.listItemHeight=at),h.createElement(`div`,{ref:De,className:tt,style:de.root},h.createElement(Zx,{spinning:!1,...et},Qe,h.createElement(Yme.Provider,{value:H},h.createElement(rt,{...it,...R,components:U,scroll:Ae,classNames:ue,styles:de,ref:Oe,columns:L,direction:q,expandable:Se,prefixCls:he,className:m({[`${he}-medium`]:oe===`medium`,[`${he}-small`]:oe===`small`,[`${he}-bordered`]:l,[`${he}-empty`]:me.length===0},xe,ye,be),data:qe,rowKey:je,rowClassName:Xe,emptyText:nt,internalHooks:ew,internalRefs:Te,transformColumns:Ze,getContainerWidth:Ee,measureRowRender:e=>h.createElement(hy.Provider,{value:!0},h.createElement(Pu,{getPopupContainer:e=>e},e))})),$e))}),NE=h.forwardRef((e,t)=>{let n=h.useRef(0);return n.current+=1,h.createElement(Zme,{...e,ref:t,_renderTimes:n.current})});NE.SELECTION_COLUMN=$T,NE.EXPAND_COLUMN=$C,NE.SELECTION_ALL=eE,NE.SELECTION_INVERT=tE,NE.SELECTION_NONE=nE,NE.Column=Ife,NE.ColumnGroup=Lfe,NE.Summary=bw;var PE=NE,Qme=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...$a(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},FE=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Bo(e,{tagFontSize:i,tagLineHeight:J(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},IE=e=>{let t=zf(new Df(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new cs(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},LE=hc(`Tag`,e=>Qme(FE(e)),IE),$me=h.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,onKeyDown:u,disabled:d,...f}=e,{getPrefixCls:p,tag:g}=h.useContext(Fr),_=h.useContext(mu),v=d??_,y=e=>{v||(c?.(!a),l?.(e))},b=e=>{u?.(e),!(e.defaultPrevented||v)&&e.key===` `&&(e.preventDefault(),c?.(!a))},x=p(`tag`,n),[S,C]=LE(x),w=m(x,`${x}-checkable`,{[`${x}-checkable-checked`]:a,[`${x}-checkable-disabled`]:v},g?.className,i,S,C);return h.createElement(`span`,{...f,ref:t,role:`checkbox`,"aria-checked":a,"aria-disabled":v||void 0,tabIndex:v?-1:0,style:{...r,...g?.style},className:w,onClick:y,onKeyDown:b},s,h.createElement(`span`,null,o))}),ehe=h.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:g,..._}=e,{getPrefixCls:v,direction:y,className:b,style:x,classNames:S,styles:C}=Rr(`tag`),w=v(`tag`,r),T=`${w}-checkable-group`,[E,D]=LE(w,ng(w)),O=Er(x),k=Er(o),[A,j]=Or([S,s],[C,O,c,k],{props:e}),M=(0,h.useMemo)(()=>Array.isArray(u)?u.map(e=>gr(e)?e:{value:e,label:e}):[],[u]),[N,P]=ve(f,d),F=(e,t)=>{let n=null;if(g){let r=N||[];n=e?[].concat(dr(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;P(n),p?.(n)},I=h.useRef(null);(0,h.useImperativeHandle)(t,()=>({nativeElement:I.current}));let L=qt(_,{aria:!0,data:!0});return h.createElement(`div`,{...L,className:m(T,b,i,{[`${T}-disabled`]:l,[`${T}-rtl`]:y===`rtl`},E,D,a,A.root),style:j.root,id:n,ref:I},M.map(e=>h.createElement($me,{key:e.value,className:m(`${T}-item`,A.item,e.className),style:{...j.item,...e.style},checked:g?(N||[]).includes(e.value):N===e.value,onChange:t=>F(t,e),disabled:l},e.label)))});function the(e,t){let{color:n,variant:r,bordered:i}=e;return h.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n;o===void 0&&a===`solid`&&(o=`default`);let s=yy(o),c=moe(o),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new cs(o).toHsl();e.l=.95,l.backgroundColor=new cs(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var nhe=e=>yc(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),rhe=_c([`Tag`,`preset`],e=>nhe(FE(e)),IE);function ihe(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var RE=(e,t,n)=>{let r=ihe(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},ahe=_c([`Tag`,`status`],e=>{let t=FE(e);return[RE(t,`success`,`Success`),RE(t,`processing`,`Info`),RE(t,`error`,`Error`),RE(t,`warning`,`Warning`)]},IE),zE=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:g,styles:_,classNames:v,...y}=e,{getPrefixCls:b,direction:x,className:S,variant:C,style:w,classNames:T,styles:E}=Rr(`tag`),[D,O,k,A,j]=the(e,C),M=k||A,N=h.useContext(mu),P=f??N,{tag:F}=h.useContext(Fr),[I,L]=h.useState(!0),R=Ht(y,[`closeIcon`,`closable`]),z={...e,color:O,variant:D,disabled:P},[B,V]=Or([T,v],[E,_],{props:z}),H=h.useMemo(()=>{let e={...V.root,...w,...a};return P||(e={...j,...e}),e},[V.root,w,a,j,P]),U=b(`tag`,n),[W,G]=LE(U),K=m(U,S,B.root,`${U}-${D}`,{[`${U}-${O}`]:M,[`${U}-hidden`]:!I,[`${U}-rtl`]:x===`rtl`,[`${U}-disabled`]:P},r,i,W,G),q=e=>{P||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&L(!1))},ee=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())},[,te]=$u(qu(e),qu(F),{closable:!1,closeIconRender:e=>cu(e,h.createElement(`span`,{role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(`${U}-close-icon`,B.close),onClick:q,onKeyDown:ee,style:V.close},e),e=>({onClick:t=>{e?.onClick?.(t),q(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||ee(t)},role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(e?.className,`${U}-close-icon`,B.close),style:{...V.close,...e?.style}}))}),ne=_r(y.onClick)||o&&o.type===`a`,re=lu(s,{className:m(h.isValidElement(s)?s.props?.className:void 0,B.icon),style:V.icon}),ie=re?h.createElement(h.Fragment,null,re,o&&h.createElement(`span`,{className:B.content,style:V.content},o)):o,ae=p?`a`:`span`,oe=h.createElement(ae,{...R,ref:t,className:K,style:H,href:P?void 0:p,target:g,onClick:P?void 0:R.onClick,...p&&P?{"aria-disabled":!0}:{}},ie,te,k&&h.createElement(rhe,{key:`preset`,prefixCls:U}),A&&h.createElement(ahe,{key:`status`,prefixCls:U}));return ne?h.createElement(Uu,{component:`Tag`},oe):oe});zE.CheckableTag=$me,zE.CheckableTagGroup=ehe;var ohe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`}}))());function BE(){return BE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BE.apply(this,arguments)}var she=h.forwardRef((e,t)=>h.createElement(W,BE({},e,{ref:t,icon:ohe.default}))),che=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`}}))());function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VE.apply(this,arguments)}var lhe=h.forwardRef((e,t)=>h.createElement(W,VE({},e,{ref:t,icon:che.default}))),uhe=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},dhe=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
h${t}&,
div&-h${t},
div&-h${t} > textarea,
h${t}
`]=uhe(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},fhe=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...co(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},phe=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ws[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85},table:{width:`100%`,textAlign:`start`,borderCollapse:`separate`,borderSpacing:0,marginBlock:`1em`,"th, td":{padding:J(e.padding),overflowWrap:`break-word`,borderBottom:`${J(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:`start`,position:`relative`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:e.colorSplit,transform:`translateY(-50%)`,content:`""`}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),mhe=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},hhe=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),ghe=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{...Qa,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),_he=hc(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...dhe(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...phe(e),...fhe(e),[`${t}-actions`]:{display:`inline`},[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:{...co(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy:not(${t}-copy-icon-only)
`]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...mhe(e),...hhe(e),...ghe(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),vhe=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,classNames:a,styles:o,direction:s,maxLength:c,autoSize:l=!0,value:u,onSave:d,onCancel:f,onEnd:p,component:g,enterIcon:_=h.createElement(lhe,null)}=e,v=h.useRef(null),y=h.useRef(!1),b=h.useRef(null),[x,S]=h.useState(u);h.useEffect(()=>{S(u)},[u]),h.useEffect(()=>{if(v.current?.resizableTextArea){let{textArea:e}=v.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let C=({target:e})=>{S(e.value.replace(/[\n\r]/g,``))},w=()=>{y.current=!0},T=()=>{y.current=!1},E=({keyCode:e})=>{y.current||(b.current=e)},D=()=>{d(x.trim())},O=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{b.current!==e||y.current||t||n||r||i||(e===Tt.ENTER?(D(),p?.()):e===Tt.ESC&&f())},k=()=>{D()},[A,j]=_he(t),M=m(t,`${t}-edit-content`,{[`${t}-rtl`]:s===`rtl`,[`${t}-${g}`]:!!g},r,a.root,A,j);return h.createElement(`div`,{className:M,style:{...o.root,...i}},h.createElement($y,{ref:v,maxLength:c,value:x,onChange:C,onKeyDown:E,onKeyUp:O,onCompositionStart:w,onCompositionEnd:T,onBlur:k,"aria-label":n,rows:1,autoSize:l,className:a.textarea,style:o.textarea}),_===null?null:lu(_,{className:`${t}-edit-content-confirm`}))},yhe=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},bhe=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function xhe(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await bhe(e,n)||yhe(e,n))}var She=(e,t={})=>!fr(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],Che=({copyConfig:e,children:t})=>{let[n,r]=h.useState(!1),[i,a]=h.useState(!1),o=h.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),h.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:fe(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await xhe((_r(e.text)?await e.text():e.text)||She(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}},HE=(e,t)=>{let n=!!e;return h.useMemo(()=>[n,{...t,...n&&gr(e)?e:null}],[n,e,t])},whe=e=>{let t=(0,h.useRef)(void 0);return(0,h.useEffect)(()=>{t.current=e}),t.current},The=(e,t,n)=>(0,h.useMemo)(()=>e===!0?{title:t??n}:(0,h.isValidElement)(e)?{title:e}:gr(e)?{title:t??n,...e}:{title:e},[e,t,n]),Ehe=(e,t,n,r,i)=>{let{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=Rr(`typography`),d=r??o,f=a(`typography`,e),p={...i,prefixCls:f,direction:d},m=(0,h.useMemo)(()=>({root:s}),[s]),g=(0,h.useMemo)(()=>({root:c}),[c]),[_,v]=Or([m,l,t],[g,u,n],{props:p});return[_,v,f,d]},Dhe=h.forwardRef((e,t)=>{let{component:n=`article`,className:r,rootClassName:i,children:a,direction:o,style:s,classNames:c,styles:l,prefixCls:u,...d}=e,[f,p]=_he(u),g=m(u,{[`${u}-rtl`]:o===`rtl`},r,i,f,p,c?.root),_={...l?.root,...s};return h.createElement(n,{...d,className:g,style:_,ref:t},a)}),Ohe=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s,...c}=e,[l,u,d,f]=Ehe(n,o,s,a,e);return h.createElement(Dhe,{ref:t,className:m(r,i),direction:f,classNames:l,styles:u,prefixCls:d,...c})}),khe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`}}))());function UE(){return UE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UE.apply(this,arguments)}var Ahe=h.forwardRef((e,t)=>h.createElement(W,UE({},e,{ref:t,icon:khe.default}))),jhe=e=>e===!1?[!1,!1]:She(e);function WE(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Mhe(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var GE=e=>[`string`,`number`].includes(typeof e),Nhe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l,className:u,style:d}=e,f=jhe(a),p=jhe(o),{copied:g,copy:_}=r??{},v=n?g:_,y=WE(f[+!!n],v),b=typeof y==`string`?y:v;return h.createElement(xy,{title:y},h.createElement(`button`,{type:`button`,className:m(`${t}-copy`,u,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),style:d,onClick:c,"aria-label":b,tabIndex:s},n?WE(p[1],h.createElement(Tv,null),!0):WE(p[0],l?h.createElement(jd,null):h.createElement(Ahe,null),!0)))},KE=h.forwardRef(({style:e,children:t},n)=>{let r=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),h.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),Phe=e=>e.reduce((e,t)=>e+(GE(t)?String(t).length:1),0);function Fhe(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=GE(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var qE=0,JE=1,YE=2,XE=3,Ihe=4,ZE={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Lhe(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,measureDeps:s,miscDeps:c,onEllipsis:l}=e,u=h.useMemo(()=>tn(r),[r]),d=h.useMemo(()=>Phe(u),[r]),f=h.useMemo(()=>i(u,!1),[r].concat(dr(s))),[p,m]=h.useState(null),g=h.useRef(null),_=h.useRef(null),v=h.useRef(null),y=h.useRef(null),b=h.useRef(null),[x,S]=h.useState(!1),[C,w]=h.useState(qE),[T,E]=h.useState(0),[D,O]=h.useState(null);he(()=>{w(t&&n&&d?JE:qE)},[n,r,a,t,u].concat(dr(s))),he(()=>{if(C===JE)w(YE),O(_.current&&getComputedStyle(_.current).whiteSpace);else if(C===YE){let e=!!v.current?.isExceed();w(e?XE:Ihe),m(e?[0,d]:null),S(e);let t=v.current?.getHeight()||0,n=a===1?0:y.current?.getHeight()||0,r=b.current?.getHeight()||0;E(Math.max(t,n+r)+1),l(e)}},[C]);let k=p?Math.ceil((p[0]+p[1])/2):0;he(()=>{let[e,t]=p||[0,0];if(e!==t){let n=(g.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),m(n?[e,r]:[r,t])}},[p,k]);let A=h.useMemo(()=>{if(!t)return i(u,!1);if(C!==XE||!p||p[0]!==p[1]){let e=i(u,!1);return[Ihe,qE].includes(C)?e:h.createElement(`span`,{style:{...ZE,WebkitLineClamp:a}},e)}return i(o?u:Fhe(u,p[0]),x)},[o,C,p,u].concat(dr(c))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return h.createElement(h.Fragment,null,A,C===YE&&h.createElement(h.Fragment,null,h.createElement(KE,{style:{...j,...ZE,WebkitLineClamp:a},ref:v},f),h.createElement(KE,{style:{...j,...ZE,WebkitLineClamp:a-1},ref:y},f),h.createElement(KE,{style:{...j,...ZE,WebkitLineClamp:1},ref:b},i([],!0))),C===XE&&p&&p[0]!==p[1]&&h.createElement(KE,{style:{...j,top:400},ref:g},i(Fhe(u,k),!0)),C===JE&&h.createElement(`span`,{style:{whiteSpace:`inherit`},ref:_}))}var Rhe=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return h.createElement(xy,{open:a,...i},r)};function zhe({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=h.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var Bhe=`...`,Vhe=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],QE=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,classNames:a,styles:o,direction:s,type:c,disabled:l,children:u,ellipsis:d,editable:f,copyable:p,actions:g,component:_,title:v,onMouseEnter:y,onMouseLeave:b,...x}=e,[S]=Wc(`Text`),C=h.useRef(null),w=h.useRef(null),[T,E,D,O]=Ehe(n,a,o,s,e),k=Ht(x,Vhe),[A,j]=HE(f),[M,N]=ve(!1,j.editing),{triggerType:P=[`icon`]}=j,F=e=>{e&&j.onStart?.(),N(e)},I=whe(M);he(()=>{!M&&I&&w.current?.focus()},[M]);let L=e=>{e?.preventDefault(),F(!0)},R=e=>{j.onChange?.(e),F(!1)},z=()=>{j.onCancel?.(),F(!1)},[B,V]=HE(p),{placement:H=`end`}=g??{},{copied:U,copyLoading:W,onClick:G}=Che({copyConfig:V,children:u}),[K,q]=h.useState(!1),[ee,te]=h.useState(!1),[ne,re]=h.useState(!1),[ie,ae]=h.useState(!1),[oe,se]=h.useState(!0),[ce,le]=HE(d,{expandable:!1,symbol:e=>e?S?.collapse:S?.expand}),[ue,de]=ve(le.defaultExpanded||!1,le.expanded),fe=ce&&(!ue||le.expandable===`collapsible`),{rows:pe=1}=le,me=h.useMemo(()=>fe&&(le.suffix!==void 0||le.onEllipsis||le.expandable||A||B),[fe,le,A,B]);he(()=>{ce&&!me&&(q(wt(`webkitLineClamp`)),te(wt(`textOverflow`)))},[me,ce]);let[ge,_e]=h.useState(fe),ye=h.useMemo(()=>me?!1:pe===1?ee:K,[me,ee,K]);he(()=>{_e(ye&&fe)},[ye,fe]);let be=The(le.tooltip,j.text,u),xe=ge&&!!be.title,Se=fe&&(ge?xe&&ie:ne),Ce=fe&&pe===1&&ge,we=fe&&pe>1&&ge,Te=(e,t)=>{de(t.expanded),le.onExpand?.(e,t)},[Ee,De]=h.useState(0),[Oe,ke]=h.useState(!1),[Ae,je]=h.useState(!1),Me=({offsetWidth:e})=>{De(e)},Ne=e=>{re(e),ne!==e&&le.onEllipsis?.(e)};h.useEffect(()=>{let e=C.current;if(ce&&xe&&e){let t=Mhe(e);ie!==t&&ae(t)}},[ce,xe,u,we,oe,Ee]),h.useEffect(()=>{let e=C.current;if(typeof IntersectionObserver>`u`||!e||!xe||!fe)return;let t=new IntersectionObserver(()=>{se(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[xe,fe]);let Pe=h.useMemo(()=>{if(!(!ce||ge))return[j.text,u,v,be.title].find(GE)},[ce,ge,v,be.title,Se]);if(M)return h.createElement(vhe,{value:j.text??(typeof u==`string`?u:``),onSave:R,onCancel:z,onEnd:j.onEnd,prefixCls:D,className:r,style:i,direction:O,component:_,maxLength:j.maxLength,autoSize:j.autoSize,enterIcon:j.enterIcon,classNames:T,styles:E});let Ie=()=>{let{expandable:e,symbol:t}=le;return e?h.createElement(`button`,{type:`button`,key:`expand`,className:m(`${D}-${ue?`collapse`:`expand`}`,T.action),style:E.action,onClick:e=>Te(e,{expanded:!ue}),"aria-label":ue?S.collapse:S?.expand},_r(t)?t(ue):t):null},Le=()=>{if(!A)return;let{icon:e,tooltip:t,tabIndex:n}=j,r=tn(t)[0]||S?.edit,i=typeof r==`string`?r:``;return P.includes(`icon`)?h.createElement(xy,{key:`edit`,title:t===!1?``:r},h.createElement(`button`,{type:`button`,ref:w,className:m(`${D}-edit`,T.action),style:E.action,onClick:L,"aria-label":i,tabIndex:n},e||h.createElement(she,{role:`button`}))):null},Re=()=>B?h.createElement(Nhe,{key:`copy`,...V,prefixCls:D,copied:U,locale:S,onCopy:G,loading:W,iconOnly:!pr(u),className:T.action,style:E.action}):null,ze=e=>{let t=e&&Ie(),n=Le(),r=Re();return!t&&!n&&!r?null:h.createElement(`span`,{key:`operations`,className:m(`${D}-actions`,T.actions,{[`${D}-actions-start`]:H===`start`}),style:E.actions,onMouseEnter:()=>ke(!0),onMouseLeave:()=>ke(!1)},t,n,r)},Be=e=>[e&&!ue&&h.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},Bhe),le.suffix];return h.createElement(El,{onResize:Me,disabled:!fe},n=>h.createElement(Rhe,{tooltipProps:be,enableEllipsis:fe,isEllipsis:Se,open:Ae&&!Oe},h.createElement(Dhe,{onMouseEnter:e=>{je(!0),y?.(e)},onMouseLeave:e=>{je(!1),b?.(e)},className:m({[`${D}-${c}`]:c,[`${D}-disabled`]:l,[`${D}-ellipsis`]:ce,[`${D}-ellipsis-single-line`]:Ce,[`${D}-ellipsis-multiple-line`]:we,[`${D}-link`]:_===`a`},r),classNames:T,styles:E,prefixCls:D,style:{...i,WebkitLineClamp:we?pe:void 0},component:_,ref:Fe(n,C,t),direction:O,onClick:P.includes(`text`)?L:void 0,"aria-label":Pe?.toString(),title:v,...k},h.createElement(Lhe,{enableMeasure:fe&&!ge,text:u,rows:pe,width:Ee,onEllipsis:Ne,expanded:ue,measureDeps:[H],miscDeps:[U,ue,W,A,B,H,S].concat(dr(Vhe.map(t=>e[t])))},(t,n)=>zhe(e,h.createElement(h.Fragment,null,H===`start`?ze(n):null,t.length>0&&n&&!ue&&Pe?h.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Be(n),H===`start`?null:ze(n)))))))}),Hhe=h.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return h.createElement(QE,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),Uhe=h.forwardRef((e,t)=>{let{children:n,...r}=e;return h.createElement(QE,{ref:t,...r,component:`div`},n)}),Whe=h.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=h.useMemo(()=>gr(n)?Ht(n,[`expandable`,`rows`]):n,[n]);return h.createElement(QE,{ref:t,...i,ellipsis:a,component:`span`},r)}),Ghe=[1,2,3,4,5],Khe=h.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=Ghe.includes(n)?`h${n}`:`h1`;return h.createElement(QE,{ref:t,...i,component:a},r)}),$E=Ohe;$E.Text=Whe,$E.Link=Hhe,$E.Title=Khe,$E.Paragraph=Uhe;var qhe=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(Lt(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function Jhe(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function Yhe(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Xhe(e){let t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Jhe(e,t),Yhe(t)):e.onSuccess(Yhe(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}var Zhe=async(e,t)=>{let n=[],r=[];e.forEach(e=>r.push(e.webkitGetAsEntry()));async function i(e){let t=e.createReader(),n=[];for(;;){let e=await new Promise(e=>{t.readEntries(e,()=>e([]))}),r=e.length;if(!r)break;for(let t=0;t<r;t++)n.push(e[t])}return n}async function a(e){return new Promise(n=>{e.file(r=>{t(r)?(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),n(r)):n(null)})})}let o=async(e,t)=>{if(e){if(e.path=t||``,e.isFile){let t=await a(e);t&&n.push(t)}else if(e.isDirectory){let t=await i(e);r.push(...t)}}},s=0;for(;s<r.length;)await o(r[s]),s++;return n},Qhe=+new Date,$he=0;function eD(){return`rc-upload-${Qhe}-${++$he}`}function tD(){return tD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tD.apply(this,arguments)}var ege=class extends h.Component{state={uid:eD()};reqs={};fileInput;_isMounted;filterFile=(e,t=!1)=>{let{accept:n,directory:r}=this.props,i,a;if(typeof n==`string`)a=n;else{let{filter:e,format:t}=n||{};a=t,i=e===`native`?()=>!0:e}return(i||(r||t?e=>qhe(e,a):()=>!0))(e)};onChange=e=>{let{files:t}=e.target,n=[...t].filter(e=>this.filterFile(e));this.uploadFiles(n),this.reset()};onClick=e=>{let t=this.fileInput;if(!t)return;let n=e.target,{onClick:r}=this.props;n&&n.tagName===`BUTTON`&&(t.parentNode.focus(),n.blur()),t.click(),r&&r(e)};onKeyDown=e=>{e.key===`Enter`&&this.onClick(e)};onDataTransferFiles=async(e,t)=>{let{multiple:n,directory:r}=this.props,i=[...e.items||[]],a=[...e.files||[]];if((a.length>0||i.some(e=>e.kind===`file`))&&t?.(),r)a=await Zhe(Array.prototype.slice.call(i),this.filterFile),this.uploadFiles(a);else{let e=[...a].filter(e=>this.filterFile(e,!0));n===!1&&(e=a.slice(0,1)),this.uploadFiles(e)}};onFilePaste=async e=>{let{pastable:t}=this.props;if(t&&e.type===`paste`){let t=e.clipboardData;return this.onDataTransferFiles(t,()=>{e.preventDefault()})}};onFileDragOver=e=>{e.preventDefault()};onFileDrop=async e=>{if(e.preventDefault(),e.type===`drop`){let t=e.dataTransfer;return this.onDataTransferFiles(t)}};componentDidMount(){this._isMounted=!0;let{pastable:e}=this.props;e&&document.addEventListener(`paste`,this.onFilePaste)}componentWillUnmount(){this._isMounted=!1,this.abort(),document.removeEventListener(`paste`,this.onFilePaste)}componentDidUpdate(e){let{pastable:t}=this.props;t&&!e.pastable?document.addEventListener(`paste`,this.onFilePaste):!t&&e.pastable&&document.removeEventListener(`paste`,this.onFilePaste)}uploadFiles=e=>{let t=[...e],n=t.map(e=>(e.uid=eD(),this.processFile(e,t)));Promise.all(n).then(e=>{let{onBatchStart:t}=this.props;t?.(e.map(({origin:e,parsedFile:t})=>({file:e,parsedFile:t}))),e.filter(e=>e.parsedFile!==null).forEach(e=>{this.post(e)})})};processFile=async(e,t)=>{let{beforeUpload:n}=this.props,r=e;if(n){try{r=await n(e,t)}catch{r=!1}if(r===!1)return{origin:e,parsedFile:null,action:null,data:null}}let{action:i}=this.props,a;a=typeof i==`function`?await i(e):i;let{data:o}=this.props,s;s=typeof o==`function`?await o(e):o;let c=(typeof r==`object`||typeof r==`string`)&&r?r:e,l;l=c instanceof File?c:new File([c],e.name,{type:e.type});let u=l;return u.uid=e.uid,{origin:e,data:s,parsedFile:u,action:a}};post({data:e,origin:t,action:n,parsedFile:r}){if(!this._isMounted)return;let{onStart:i,customRequest:a,name:o,headers:s,withCredentials:c,method:l}=this.props,{uid:u}=t,d=a||Xhe,f={action:n,filename:o,data:e,file:r,headers:s,withCredentials:c,method:l||`post`,onProgress:e=>{let{onProgress:t}=this.props;t?.(e,r)},onSuccess:(e,t)=>{let{onSuccess:n}=this.props;n?.(e,r,t),delete this.reqs[u]},onError:(e,t)=>{let{onError:n}=this.props;n?.(e,t,r),delete this.reqs[u]}};i(t),this.reqs[u]=d(f,{defaultRequest:Xhe})}reset(){this.setState({uid:eD()})}abort(e){let{reqs:t}=this;if(e){let n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(e=>{t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}saveFileInput=e=>{this.fileInput=e};render(){let{component:e,prefixCls:t,className:n,classNames:r={},disabled:i,id:a,name:o,style:s,styles:c={},multiple:l,accept:u,capture:d,children:f,directory:p,openFileDialogOnClick:g,onMouseEnter:_,onMouseLeave:v,hasControlInside:y,...b}=this.props,x=typeof u==`string`?u:u?.format,S=m(t,{[`${t}-disabled`]:i,[n]:n}),C=p?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{},w=i?{}:{onClick:g?this.onClick:()=>{},onKeyDown:g?this.onKeyDown:()=>{},onMouseEnter:_,onMouseLeave:v,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:y?void 0:`0`};return h.createElement(e,tD({},w,{className:S,role:y?void 0:`button`,style:s}),h.createElement(`input`,tD({},qt(b,{aria:!0,data:!0}),{id:a,name:o,disabled:i,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:`none`,...c.input},className:r.input,accept:x},C,{multiple:l,onChange:this.onChange},d==null?{}:{capture:d})),f)}};function nD(){return nD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nD.apply(this,arguments)}function rD(){}var tge=class extends h.Component{static defaultProps={component:`span`,prefixCls:`rc-upload`,data:{},headers:{},name:`file`,multipart:!1,onStart:rD,onError:rD,onSuccess:rD,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1};uploader;abort(e){this.uploader.abort(e)}saveUploader=e=>{this.uploader=e};render(){return h.createElement(ege,nD({},this.props,{ref:this.saveUploader}))}},nge=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${J(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:`table`,width:`100%`,height:`100%`,outline:`none`,borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${J(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[`
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${J(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},rge=e=>{let{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,motionDurationSlow:a,calc:o}=e,s=`${t}-list-item`,c=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:{...no(),lineHeight:e.lineHeight,[s]:{position:`relative`,height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:`flex`,alignItems:`center`,transition:`background-color ${a}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:{...Qa,padding:`0 ${J(e.paddingXS)}`,lineHeight:i,flex:`auto`,transition:`all ${a}`},[c]:{whiteSpace:`nowrap`,[l]:{opacity:0},"@media (hover: none), (pointer: coarse)":{[l]:{opacity:1}},[n]:{color:e.actionsColor,transition:`all ${a}`},[`
${l}:focus-visible,
&.picture ${l}
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${s}-progress`]:{position:`absolute`,bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:`100%`,paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:[`opacity`,`height`].map(e=>`${e} ${a}`).join(`, `),"&::before":{display:`table`,width:0,height:0,content:`""`}}}}}},ige=e=>{let{componentCls:t}=e,n=new Xa(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Xa(`uploadAnimateInlineOut`,{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Vd(e)},n,r]},age=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[`
${o}${o}-picture,
${o}${o}-picture-card,
${o}${o}-picture-circle
`]:{[s]:{position:`relative`,height:a(r).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${J(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:{...Qa,width:r,height:r,lineHeight:J(a(r).add(e.paddingSM).equal()),textAlign:`center`,flex:`none`,[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:`block`,width:`100%`,height:`100%`,overflow:`hidden`}},[`${s}-progress`]:{bottom:a(e.fontSize).mul(e.lineHeight).div(2).add(i).equal(),width:`calc(100% - ${J(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail${s}-file ${n}`]:{color:e.colorError}},[`${s}-uploading`]:{borderStyle:`dashed`,[`${s}-name`]:{marginBottom:i}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:`50%`}}}}},oge=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:a}=e,o=`${t}-list`,s=`${o}-item`,c=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:{...no(),display:`block`,[`${t}${t}-select`]:{width:c,height:c,textAlign:`center`,verticalAlign:`top`,backgroundColor:e.colorFillAlter,border:`${J(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,textAlign:`center`},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:`flex`,flexWrap:`wrap`,"&:not(:empty)":{minHeight:c},"@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:`inline-block`,width:c,height:c,verticalAlign:`top`},"&::after":{display:`none`},"&::before":{display:`none`},[s]:{height:`100%`,margin:0,"&::before":{position:`absolute`,zIndex:1,width:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`" "`}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:`absolute`,insetInlineStart:0,zIndex:10,width:`100%`,whiteSpace:`nowrap`,textAlign:`center`,opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${n}-eye,
${n}-download,
${n}-delete
`]:{zIndex:10,width:r,margin:`0 ${J(e.marginXXS)}`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:`baseline`}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${s}-name`]:{display:`none`,textAlign:`center`},[`${s}-file + ${s}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${J(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},sge=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},cge=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...$a(e),[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-hidden`]:{display:`none`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}}}},lge=hc(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=Bo(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[cge(o),nge(o),age(o),oge(o),rge(o),ige(o),sge(o),Id(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),uge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z`}}]},name:`paper-clip`,theme:`outlined`}}))());function iD(){return iD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iD.apply(this,arguments)}var dge=h.forwardRef((e,t)=>h.createElement(W,iD({},e,{ref:t,icon:uge.default}))),fge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z`}}]},name:`picture`,theme:`outlined`}}))());function aD(){return aD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aD.apply(this,arguments)}var pge=h.forwardRef((e,t)=>h.createElement(W,aD({},e,{ref:t,icon:fge.default})));function oD(e){return{...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function sD(e,t){let n=dr(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function cD(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function mge(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var hge=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},gge=e=>e.indexOf(`image/`)===0,_ge=[`.avif`,`.bmp`,`.dpg`,`.gif`,`.heic`,`.heif`,`.ico`,`.jfif`,`.jpg`,`.jpeg`,`.png`,`.svg`,`.tif`,`.tiff`,`.webp`],vge=e=>{if(e.type&&!e.thumbUrl)return gge(e.type);let t=e.thumbUrl||e.url||``,n=hge(t||e.name);return/^data:image\//.test(t)||_ge.includes(n?.toLowerCase()||``)?!0:!(/^data:/.test(t)||n)},lD=200;function yge(e){return new Promise(t=>{if(!e.type||!gge(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=lD,n.height=lD,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${lD}px; height: ${lD}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=lD,s=lD,c=0,l=0;e>a?(s=lD/e*a,l=-(s-o)/2):(o=lD/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.onload=()=>{t.result&&typeof t.result==`string`&&(i.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith(`image/gif`)){let n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var bge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`}}))());function uD(){return uD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uD.apply(this,arguments)}var dD=h.forwardRef((e,t)=>h.createElement(W,uD({},e,{ref:t,icon:bge.default}))),xge=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`download`,theme:`outlined`}}))());function fD(){return fD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fD.apply(this,arguments)}var pD=h.forwardRef((e,t)=>h.createElement(W,fD({},e,{ref:t,icon:xge.default}))),Sge={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},Cge=()=>{let e=(0,h.useRef)([]),t=(0,h.useRef)(null);return(0,h.useEffect)(()=>{let n=Date.now(),r=!1;e.current.forEach(e=>{if(!e)return;r=!0;let i=e.style;i.transitionDuration=`.3s, .3s, .3s, .06s`,t.current&&n-t.current<100&&(i.transitionDuration=`0s, 0s`)}),r&&(t.current=Date.now())}),e.current},wge=({bg:e,children:t})=>h.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function Tge(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var Ege=h.forwardRef((e,t)=>{let{prefixCls:n,color:r,gradientId:i,radius:a,className:o,style:s,ptg:c,strokeLinecap:l,strokeWidth:u,size:d,gapDegree:f}=e,p=r&&typeof r==`object`,g=p?`#FFF`:void 0,_=d/2,v=h.createElement(`circle`,{className:m(`${n}-circle-path`,o),r:a,cx:_,cy:_,stroke:g,strokeLinecap:l,strokeWidth:u,opacity:c===0?0:1,style:s,ref:t});if(!p)return v;let y=`${i}-conic`,b=f?`${180+f/2}deg`:`0deg`,x=Tge(r,(360-f)/360),S=Tge(r,1),C=`conic-gradient(from ${b}, ${x.join(`, `)})`,w=`linear-gradient(to ${f?`bottom`:`top`}, ${S.join(`, `)})`;return h.createElement(h.Fragment,null,h.createElement(`mask`,{id:y},v),h.createElement(`foreignObject`,{x:0,y:0,width:d,height:d,mask:`url(#${y})`},h.createElement(wge,{bg:w},h.createElement(wge,{bg:C}))))}),mD=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},Dge=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:h.createElement(`style`,null,`@keyframes ${n} {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}`)}});function hD(){return hD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hD.apply(this,arguments)}function Oge(e){let t=e??[];return Array.isArray(t)?t:[t]}var kge=e=>{let{id:t,prefixCls:n,classNames:r={},styles:i={},steps:a,strokeWidth:o,railWidth:s,gapDegree:c=0,gapPosition:l,railColor:u,strokeLinecap:d,style:f,className:p,strokeColor:g,percent:_,loading:v,...y}={...Sge,...e},b=Ce(t),x=`${b}-gradient`,S=50-o/2,C=Math.PI*2*S,w=c>0?90+c/2:-90,T=C*((360-c)/360),{count:E,gap:D}=typeof a==`object`?a:{count:a,gap:2},O=Oge(_),k=Oge(g),A=k.find(e=>e&&typeof e==`object`),j=A&&typeof A==`object`?`butt`:d,{indeterminateStyleProps:M,indeterminateStyleAnimation:N}=Dge({id:b,loading:v}),P=mD(C,T,0,100,w,c,l,u,j,o),F=Cge(),I=()=>{let e=0;return O.map((t,a)=>{let s=k[a]||k[k.length-1],u=mD(C,T,e,t,w,c,l,s,j,o);return e+=t,h.createElement(Ege,{key:a,color:s,ptg:t,radius:S,prefixCls:n,gradientId:x,className:r.track,style:{...u,...M,...i.track},strokeLinecap:j,strokeWidth:o,gapDegree:c,ref:e=>{F[a]=e},size:100})}).reverse()},L=()=>{let e=Math.round(E*(O[0]/100)),t=100/E,a=0;return Array(E).fill(null).map((s,d)=>{let f=d<=e-1?k[0]:u,p=f&&typeof f==`object`?`url(#${x})`:void 0,g=mD(C,T,a,t,w,c,l,f,`butt`,o,D);return a+=(T-g.strokeDashoffset+D)*100/T,h.createElement(`circle`,{key:d,className:m(`${n}-circle-path`,r.track),r:S,cx:50,cy:50,stroke:p,strokeWidth:o,opacity:1,style:{...g,...i.track},ref:e=>{F[d]=e}})})};return h.createElement(`svg`,hD({className:m(`${n}-circle`,r.root,p),viewBox:`0 0 100 100`,style:{...i.root,...f},id:t,role:`presentation`},y),!E&&h.createElement(`circle`,{className:m(`${n}-circle-rail`,r.rail),r:S,cx:50,cy:50,stroke:u,strokeLinecap:j,strokeWidth:s||o,style:{...P,...i.rail}}),E?L():I(),N)};function gD(e){return!e||e<0?0:e>100?100:e}function _D({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var Age=({percent:e,success:t})=>{let n=gD(_D({success:t}));return[n,gD(gD(e)-n)]},jge=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||bs.green,t||null]},vD=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):mr(e)?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):mr(e)?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:mr(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},Mge=3,Nge=e=>Mge/e*100,Pge=[`root`,`body`,`indicator`],Fge=e=>{let{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:a,strokeLinecap:o=`round`,gapPosition:s,gapPlacement:c,gapDegree:l,width:u=120,type:d,children:f,success:p,size:g=u,steps:_}=e,{direction:v}=Rr(`progress`),y=i??a,[b,x]=vD(g,`circle`),{strokeWidth:S}=e;S===void 0&&(S=Math.max(Nge(b),6));let C={width:b,height:x,fontSize:b*.15+6},w=h.useMemo(()=>{if(l||l===0)return l;if(d===`dashboard`)return 75},[l,d]),T=Age(e),E=h.useMemo(()=>{let e=(c??s)||d===`dashboard`&&`bottom`||void 0,t=v===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[v,c,s,d]),D=gr(e.strokeColor),O=jge({success:p,strokeColor:e.strokeColor}),k=m(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),A=h.createElement(kge,{steps:_,percent:_?T[1]:T,strokeWidth:S,railWidth:S,strokeColor:_?O[1]:O,strokeLinecap:o,railColor:y,prefixCls:t,gapDegree:w,gapPosition:E,classNames:Ht(n,Pge),styles:Ht(r,Pge)}),j=b<=20,M=h.createElement(`div`,{className:k,style:{...C,...r.body}},A,!j&&f);return j?h.createElement(xy,{title:f},M):M},yD=`--progress-line-stroke-color`,Ige=e=>{let t=e?`100%`:`-100%`;return new Xa(`antProgress${e?`RTL`:`LTR`}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}})},Lge=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...$a(e),display:`inline-flex`,"&-rtl":{direction:`rtl`},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:`nowrap`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},Rge=e=>{let{componentCls:t}=e;return{[`${t}-line`]:{position:`relative`,width:`100%`,fontSize:e.fontSize,[`${t}-body`]:{display:`inline-flex`,alignItems:`center`,width:`100%`,gap:e.marginXS},[`${t}-rail`]:{flex:`auto`,background:e.remainingColor,borderRadius:e.lineBorderRadius,position:`relative`,width:`100%`,overflow:`hidden`},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:`""`,position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:`inherit`,opacity:0,animationName:Ige(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`}},[`${t}-track`]:{position:`absolute`,insetInlineStart:0,insetBlock:0,borderRadius:`inherit`,background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:`max-content`,display:`flex`,alignItems:`center`,"&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:`column`,alignItems:`center`,gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:`100%`,display:`flex`,justifyContent:`center`,[`&${t}-indicator-end`]:{justifyContent:`end`},[`&${t}-indicator-start`]:{justifyContent:`start`},[`&${t}-indicator-bright`]:{color:`rgba(0, 0, 0, 0.45)`}}}}},zge=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`${t}-indicator`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},Bge=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-body":{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Vge=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},Hge=hc(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=Bo(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[Lge(n),Rge(n),zge(n),Bge(n),Vge(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),Uge=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=Number.parseFloat(n.replace(/%/g,``));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(`, `)},Wge=(e,t)=>{let{from:n=bs.blue,to:r=bs.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${Uge(a)})`;return{background:e,[yD]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[yD]:o}},Gge=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:g}=e,{align:_,type:v}=p,y=d??f,b=l===`square`||l===`butt`?0:void 0,[x,S]=vD(o??[-1,s||(o===`small`?6:8)],`line`,{strokeWidth:s}),C={backgroundColor:y||void 0,borderRadius:b,height:S},w=`${t}-track`,T=c&&typeof c!=`string`?Wge(c,i):{[yD]:c,background:c},E={width:`${gD(a)}%`,height:S,borderRadius:b,...T},D=_D(e),O={width:`${gD(D)}%`,height:S,borderRadius:b,backgroundColor:g?.strokeColor};return h.createElement(`div`,{className:m(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:_===`center`&&v===`outer`}),style:{width:x>0?x:`100%`,...r.body}},h.createElement(`div`,{className:m(`${t}-rail`,n.rail),style:{...C,...r.rail}},h.createElement(`div`,{className:m(w,n.track),style:{...E,...r.track}},v===`inner`&&u),D!==void 0&&h.createElement(`div`,{className:m(w,`${w}-success`,n.track),style:{...O,...r.track}})),v===`outer`&&u)},Kge=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[g,_]=vD(r??[r===`small`?2:14,s],`step`,{steps:i,strokeWidth:s}),v=g/i,y=Array.from({length:i}),b=l??u;for(let e=0;e<i;e++){let r=Array.isArray(c)?c[e]:c;y[e]=h.createElement(`div`,{key:e,className:m(`${d}-steps-item`,{[`${d}-steps-item-active`]:e<=p-1},t.track),style:{backgroundColor:e<=p-1?r:b,width:v,height:_,...n.track}})}return h.createElement(`div`,{className:m(`${d}-steps-body`,t.body),style:n.body},y,f)},qge=[`normal`,`exception`,`active`,`success`],Jge=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:u=`medium`,showInfo:d=!0,type:f=`line`,status:p,format:g,style:_,percentPosition:v={},...y}=e,{align:b=`end`,type:x=`outer`}=v,S=Array.isArray(c)?c[0]:c,C=typeof c==`string`||Array.isArray(c)?c:void 0,w=h.useMemo(()=>S?new cs(typeof S==`string`?S:Object.values(S)[0]).isLight():!1,[c]),T=h.useMemo(()=>{let t=_D(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),E=h.useMemo(()=>!qge.includes(p)&&T>=100?`success`:p||`normal`,[p,T]),{getPrefixCls:D,direction:O,className:k,style:A,classNames:j,styles:M}=Rr(`progress`),N=D(`progress`,n),[P,F]=Hge(N),I={...e,percent:l,type:f,size:u,showInfo:d,percentPosition:v},L=Er(A),R=Er(_),[z,B]=Or([j,a],[M,L,o,R],{props:I}),V=f===`line`,H=V&&!s,U=h.useMemo(()=>{if(!d)return null;let t=_D(e),n,r=g||(e=>`${e}%`),i=V&&w&&x===`inner`;return x===`inner`||g||E!==`exception`&&E!==`success`?n=r(gD(l),gD(t)):E===`exception`?n=V?h.createElement(ne,null):h.createElement(ae,null):E===`success`&&(n=V?h.createElement(q,null):h.createElement(Tv,null)),h.createElement(`span`,{className:m(`${N}-indicator`,{[`${N}-indicator-bright`]:i,[`${N}-indicator-${b}`]:H,[`${N}-indicator-${x}`]:H},z.indicator),style:B.indicator,title:typeof n==`string`?n:void 0},n)},[d,l,T,E,f,N,g,V,w,x,b,H,z.indicator,B.indicator]),W={...e,classNames:z,styles:B},G;f===`line`?G=s?h.createElement(Kge,{...W,strokeColor:C,prefixCls:N,steps:gr(s)?s.count:s},U):h.createElement(Gge,{...W,strokeColor:S,prefixCls:N,direction:O,percentPosition:{align:b,type:x}},U):(f===`circle`||f===`dashboard`)&&(G=h.createElement(Fge,{...W,strokeColor:S,prefixCls:N,progressStatus:E},U));let K=m(N,`${N}-status-${E}`,{[`${N}-${f===`dashboard`&&`circle`||f}`]:f!==`line`,[`${N}-inline-circle`]:f===`circle`&&vD(u,`circle`)[0]<=20,[`${N}-line`]:H,[`${N}-line-align-${b}`]:H,[`${N}-line-position-${x}`]:H,[`${N}-steps`]:s,[`${N}-show-info`]:d,[`${N}-small`]:u===`small`,[`${N}-rtl`]:O===`rtl`},k,r,i,z.root,P,F);return h.createElement(`div`,{ref:t,style:B.root,className:K,role:`progressbar`,"aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100,...Ht(y,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},G)}),Yge=h.forwardRef(({prefixCls:e,className:t,style:n,classNames:r,styles:i,locale:a,listType:o,file:s,items:c,progress:l,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:_,showDownloadIcon:v,previewIcon:y,removeIcon:b,downloadIcon:x,extra:S,onPreview:C,onDownload:w,onClose:T},E)=>{let{status:D}=s,[O,k]=h.useState(D);h.useEffect(()=>{D!==`removed`&&k(D)},[D]);let[A,j]=h.useState(!1);h.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let M=u(s),N=h.createElement(`div`,{className:`${e}-icon`},M);if(o===`picture`||o===`picture-card`||o===`picture-circle`)if(O===`uploading`||!s.thumbUrl&&!s.url){let t=m(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:O!==`uploading`});N=h.createElement(`div`,{className:t},M)}else{let t=p?.(s)?h.createElement(`img`,{src:s.thumbUrl||s.url,alt:s.name,className:`${e}-list-item-image`,crossOrigin:s.crossOrigin}):M,n=m(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:p&&!p(s)});N=h.createElement(`a`,{className:n,onClick:e=>C(s,e),href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},t)}let P=m(`${e}-list-item`,`${e}-list-item-${O}`,r?.item),F=typeof s.linkProps==`string`?JSON.parse(s.linkProps):s.linkProps,I=(_r(_)?_(s):_)?d((_r(b)?b(s):b)||h.createElement(dD,null),()=>T(s),e,a.removeFile,!0):null,L=(_r(v)?v(s):v)&&O===`done`?d((_r(x)?x(s):x)||h.createElement(pD,null),()=>w(s),e,a.downloadFile):null,R=o!==`picture-card`&&o!==`picture-circle`&&h.createElement(`span`,{key:`download-delete`,className:m(`${e}-list-item-actions`,{picture:o===`picture`})},L,I),z=_r(S)?S(s):S,B=z&&h.createElement(`span`,{className:`${e}-list-item-extra`},z),V=m(`${e}-list-item-name`),H=s.url?h.createElement(`a`,{key:`view`,target:`_blank`,rel:`noopener noreferrer`,className:V,title:s.name,...F,href:s.url,onClick:e=>C(s,e)},s.name,B):h.createElement(`span`,{key:`view`,role:`button`,tabIndex:0,className:V,onClick:e=>C(s,e),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),C(s,e))},title:s.name},s.name,B),U=(_r(g)?g(s):g)&&(s.url||s.thumbUrl)?h.createElement(`a`,{href:s.url||s.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>C(s,e),title:a.previewFile},_r(y)?y(s):y||h.createElement(Qy,null)):null,W=(o===`picture-card`||o===`picture-circle`)&&O!==`uploading`&&h.createElement(`span`,{className:`${e}-list-item-actions`},U,O===`done`&&L,I),{getPrefixCls:G}=h.useContext(Fr),K=G(),q=h.createElement(`div`,{className:P,style:i?.item},N,H,R,W,A&&h.createElement(ar,{motionName:`${K}-fade`,visible:O===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?h.createElement(Jge,{type:`line`,percent:s.percent,"aria-label":s[`aria-label`],"aria-labelledby":s[`aria-labelledby`],...l}):null;return h.createElement(`div`,{className:m(`${e}-list-item-progress`,t)},n)})),ee=s.response&&typeof s.response==`string`?s.response:s.error?.statusText||s.error?.message||a.uploadError,te=O===`error`?h.createElement(xy,{title:ee,getPopupContainer:e=>e.parentNode},q):q;return h.createElement(`div`,{className:m(`${e}-list-item-container`,t),style:n,ref:E},f?f(te,s,c,{download:w.bind(null,s),preview:C.bind(null,s),remove:T.bind(null,s)}):te)}),Xge=h.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=yge,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=vge,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:g=!1,removeIcon:_,previewIcon:v,downloadIcon:y,extra:b,progress:x={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:C=!0,itemRender:w,disabled:T,classNames:E,styles:D}=e,[,O]=ed(),[k,A]=h.useState(!1),j=[`picture-card`,`picture-circle`].includes(n);h.useEffect(()=>{n.startsWith(`picture`)&&(d||[]).forEach(e=>{!(e.originFileObj instanceof File||e.originFileObj instanceof Blob)||e.thumbUrl!==void 0||(e.thumbUrl=``,r?.(e.originFileObj).then(t=>{e.thumbUrl=t||``,O()}))})},[n,d,r]),h.useEffect(()=>{A(!0)},[]);let M=(e,t)=>{if(i)return t?.preventDefault(),i(e)},N=e=>{_r(a)?a(e):e.url&&window.open(e.url)},P=e=>{o?.(e)},F=e=>{if(c)return c(e,n);let t=e.status===`uploading`;if(n.startsWith(`picture`)){let r=n===`picture`?h.createElement(jd,null):s.uploading,i=l?.(e)?h.createElement(pge,null):h.createElement(dE,null);return t?r:i}return t?h.createElement(jd,null):h.createElement(dge,null)},I=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,onClick:n=>{t(),h.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:i?T:!1};return h.isValidElement(e)?h.createElement(sp,{...a,icon:lu(e,{...e.props,onClick:()=>{}})}):h.createElement(sp,{...a},h.createElement(`span`,null,e))};h.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:N}));let{getPrefixCls:L}=h.useContext(Fr),R=L(`upload`,u),z=L(),B=m(`${R}-list`,`${R}-list-${n}`,E?.list),V=h.useMemo(()=>Ht(If(z),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[z]),H={...j?{}:V,motionDeadline:2e3,motionName:`${R}-${j?`animate-inline`:`animate`}`,keys:dr(d.map(e=>({key:e.uid,file:e}))),motionAppear:k};return h.createElement(`div`,{className:B,style:D?.list},h.createElement(ir,{...H,component:!1},({key:e,file:t,className:r,style:i})=>h.createElement(Yge,{key:e,locale:s,prefixCls:R,className:r,style:i,classNames:E,styles:D,file:t,items:d,progress:x,listType:n,isImgUrl:l,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:g,removeIcon:_,previewIcon:v,downloadIcon:y,extra:b,iconRender:F,actionIconRender:I,itemRender:w,onPreview:M,onDownload:N,onClose:P})),S&&h.createElement(ar,{...H,visible:C,forceRender:!0},({className:e,style:t})=>lu(S,n=>({className:m(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),bD=`__LIST_IGNORE_${Date.now()}__`,Zge=h.forwardRef((e,t)=>{let n=Rr(`upload`),{fileList:r,defaultFileList:i,onRemove:a,showUploadList:o=!0,listType:s=`text`,onPreview:c,onDownload:l,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:g,iconRender:_,isImageUrl:v,progress:y,prefixCls:b,className:x,type:S=`select`,children:C,style:w,itemRender:T,maxCount:E,data:D={},multiple:O=!1,hasControlInside:k=!0,action:A=``,accept:j,supportServerRender:M=!0,rootClassName:N,styles:P,classNames:F}=e,I=h.useContext(mu),L=p??I,R=e.customRequest||n.customRequest,z=n.progress||y?{...n.progress,...y}:void 0,B=Gu(j,n.accept,``),[V,H]=ve(i,r),U=V||[],[W,G]=h.useState(`drop`),K=h.useRef(null),q=h.useRef(null);h.useMemo(()=>{let e=Date.now();(r||[]).forEach((t,n)=>{!t.uid&&!Object.isFrozen(t)&&(t.uid=`__AUTO__${e}_${n}__`)})},[r]);let ee=(e,t,n)=>{let r=dr(t),i=!1;E===1?r=r.slice(-1):E&&(i=r.length>E,r=r.slice(0,E)),(0,yn.flushSync)(()=>{H(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,yn.flushSync)(()=>{u?.(a)})},te=async(t,n)=>{let{beforeUpload:r}=e,i=t;if(r){let e=await r(t,n);if(e===!1)return!1;if(delete t[bD],e===bD)return Object.defineProperty(t,bD,{value:!0,configurable:!0}),!1;gr(e)&&(i=e)}return i},ne=e=>{let t=e.filter(e=>!e.file[bD]);if(!t.length)return;let n=t.map(e=>oD(e.file)),r=dr(U);n.forEach(e=>{r=sD(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}ee(i,r)})},re=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!cD(t,U))return;let r=oD(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n,ee(r,sD(r,U))},ie=(e,t)=>{if(!cD(t,U))return;let n=oD(t);n.status=`uploading`,n.percent=e.percent,ee(n,sD(n,U),e)},ae=(e,t,n)=>{if(!cD(n,U))return;let r=oD(n);r.error=e,r.response=t,r.status=`error`,ee(r,sD(r,U))},oe=e=>{let t;Promise.resolve(_r(a)?a(e):a).then(n=>{if(n===!1)return;let r=mge(e,U);r&&(t={...e,status:`removed`},U?.forEach(e=>{let n=t.uid===void 0?`name`:`uid`;e[n]===t[n]&&!Object.isFrozen(e)&&(e.status=`removed`)}),K.current?.abort(t),ee(t,r))})},se=e=>{G(e.type),e.type===`drop`&&d?.(e)};h.useImperativeHandle(t,()=>({onBatchStart:ne,onSuccess:re,onProgress:ie,onError:ae,fileList:U,upload:K.current,nativeElement:q.current}));let{getPrefixCls:ce,direction:le,className:ue,style:de,classNames:fe,styles:pe}=Rr(`upload`),me=ce(`upload`,b),he={...e,listType:s,showUploadList:o,type:S,multiple:O,hasControlInside:k,supportServerRender:M,disabled:L},[ge,_e]=Or([fe,F],[pe,P],{props:he}),ye={onBatchStart:ne,onError:ae,onProgress:ie,onSuccess:re,...e,customRequest:R,data:D,multiple:O,action:A,accept:B,supportServerRender:M,prefixCls:me,disabled:L,beforeUpload:te,onChange:void 0,hasControlInside:k};delete ye.className,delete ye.style,(!C||L)&&delete ye.id;let be=`${me}-wrapper`,[xe,Se]=lge(me,be),[Ce]=Wc(`Upload`,Lc.Upload),{showRemoveIcon:we,showPreviewIcon:Te,showDownloadIcon:Ee,removeIcon:De,previewIcon:Oe,downloadIcon:ke,extra:Ae}=typeof o==`boolean`?{}:o,je=we===void 0?!L:we,Me=(e,t)=>o?h.createElement(Xge,{classNames:ge,styles:_e,prefixCls:me,listType:s,items:U,previewFile:f,onPreview:c,onDownload:l,onRemove:oe,showRemoveIcon:je,showPreviewIcon:Te,showDownloadIcon:Ee,removeIcon:De,previewIcon:Oe,downloadIcon:ke,iconRender:_,extra:Ae,locale:{...Ce,...g},isImageUrl:v,progress:z,appendAction:e,appendActionVisible:t,itemRender:T,disabled:L}):e,Ne=m(be,x,N,xe,Se,ue,ge.root,{[`${me}-rtl`]:le===`rtl`,[`${me}-picture-card-wrapper`]:s===`picture-card`,[`${me}-picture-circle-wrapper`]:s===`picture-circle`}),Pe={..._e.root},Fe={...de,...w};if(S===`drag`){let e=m(xe,me,`${me}-drag`,{[`${me}-drag-uploading`]:U.some(e=>e.status===`uploading`),[`${me}-drag-hover`]:W===`dragover`,[`${me}-disabled`]:L,[`${me}-rtl`]:le===`rtl`},ge.trigger);return h.createElement(`span`,{className:Ne,ref:q,style:Pe},h.createElement(`div`,{className:e,style:{...Fe,..._e.trigger},onDrop:se,onDragOver:se,onDragLeave:se},h.createElement(tge,{...ye,ref:K,className:`${me}-btn`},h.createElement(`div`,{className:`${me}-drag-container`},C))),Me())}let Ie=m(me,`${me}-select`,{[`${me}-disabled`]:L,[`${me}-hidden`]:!C},ge.trigger),Le=h.createElement(`div`,{className:Ie,style:{...Fe,..._e.trigger}},h.createElement(tge,{...ye,ref:K}));return s===`picture-card`||s===`picture-circle`?h.createElement(`span`,{className:Ne,ref:q,style:Pe},Me(Le,!!C)):h.createElement(`span`,{className:Ne,ref:q,style:Pe},Le,Me())}),Qge=h.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return h.createElement(Zge,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),xD=Zge;xD.Dragger=Qge,xD.LIST_IGNORE=bD;var SD=o(((e,t)=>{function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),$ge=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`}})),e_e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.commonLocale=void 0,e.commonLocale={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0}})),t_e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={...e_e().commonLocale,locale:`zh_CN`,today:`今天`,now:`此刻`,backToToday:`返回今天`,ok:`确定`,timeSelect:`选择时间`,dateSelect:`选择日期`,weekSelect:`选择周`,clear:`清除`,week:`周`,month:`月`,year:`年`,previousMonth:`上个月 (翻页上键)`,nextMonth:`下个月 (翻页下键)`,monthSelect:`选择月份`,yearSelect:`选择年份`,decadeSelect:`选择年代`,previousYear:`上一年 (Control键加左方向键)`,nextYear:`下一年 (Control键加右方向键)`,previousDecade:`上一年代`,nextDecade:`下一年代`,previousCentury:`上一世纪`,nextCentury:`下一世纪`,yearFormat:`YYYY年`,cellDateFormat:`D`,monthBeforeYear:!1}})),n_e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]}})),r_e=o((e=>{var t=SD().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(t_e()),r=t(n_e()),i={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...n.default},timePickerLocale:{...r.default}};i.lang.ok=`确定`,e.default=i})),i_e=o((e=>{var t=SD().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=t(r_e()).default})),a_e=o((e=>{var t=SD().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t($ge()),r=t(i_e()),i=t(r_e()),a=t(n_e()),o="${label}不是一个有效的${type}";e.default={locale:`zh-cn`,Pagination:n.default,DatePicker:i.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:`请选择`,close:`关闭`,sortable:`可排序`,show:`显示`,hide:`隐藏`},Table:{filterTitle:`筛选`,filterConfirm:`确定`,filterReset:`重置`,filterEmptyText:`无筛选项`,filterCheckAll:`全选`,filterSearchPlaceholder:`在筛选项中搜索`,emptyText:`暂无数据`,selectAll:`全选当页`,selectInvert:`反选当页`,selectNone:`清空所有`,selectionAll:`全选所有`,sortTitle:`排序`,expand:`展开行`,collapse:`关闭行`,triggerDesc:`点击降序`,triggerAsc:`点击升序`,cancelSort:`取消排序`},Modal:{okText:`确定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`结束导览`},Popconfirm:{cancelText:`取消`,okText:`确定`},Transfer:{titles:[``,``],searchPlaceholder:`请输入搜索内容`,itemUnit:`项`,itemsUnit:`项`,remove:`删除`,selectCurrent:`全选当页`,removeCurrent:`删除当页`,selectAll:`全选所有`,deselectAll:`取消全选`,removeAll:`删除全部`,selectInvert:`反选当页`},Upload:{uploading:`文件上传中`,removeFile:`删除文件`,uploadError:`上传错误`,previewFile:`预览文件`,downloadFile:`下载文件`},Empty:{description:`暂无数据`},Icon:{icon:`图标`},Text:{edit:`编辑`,copy:`复制`,copied:`复制成功`,expand:`展开`,collapse:`收起`},Form:{optional:`(可选)`,defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:`二维码过期`,refresh:`点击刷新`,scanned:`已扫描`},ColorPicker:{presetEmpty:`暂无`,transparent:`无色`,singleColor:`单色`,gradientColor:`渐变色`}}})),o_e=o(((e,t)=>{t.exports=a_e()})),s_e=`modulepreload`,c_e=function(e){return`/`+e},l_e={},u_e=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=c_e(t,n),t=s(t),t in l_e)return;l_e[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:s_e,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},CD=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,d_e=/^[\\/]{2}/;function f_e(e,t){return t+e.replace(/\\/g,`/`)}var p_e=`popstate`;function m_e(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function h_e(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return ED(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:DD(t)}return v_e(t,n,null,e)}function wD(e,t){if(e===!1||e==null)throw Error(t)}function TD(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function g_e(){return Math.random().toString(36).substring(2,10)}function __e(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ED(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?OD(t):t,state:n,key:t&&t.key||r||g_e(),mask:i}}function DD({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function OD(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v_e(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=m_e(e)?e:ED(h.location,e,t);n&&n(r,e),l=u()+1;let d=__e(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=m_e(e)?e:ED(h.location,e,t);n&&n(r,e),l=u();let i=__e(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return y_e(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(p_e,d),c=e,()=>{i.removeEventListener(p_e,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function y_e(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),wD(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:DD(t);return i=i.replace(/ $/,`%20`),!n&&d_e.test(i)&&(i=r+i),new URL(i,r)}function b_e(e,t,n=`/`){return x_e(e,t,n,!1)}function x_e(e,t,n,r,i){let a=AD((typeof t==`string`?OD(t):t).pathname||`/`,n);if(a==null)return null;let o=i??C_e(e),s=null,c=z_e(a);for(let e=0;s==null&&e<o.length;++e)s=I_e(o[e],c,r);return s}function S_e(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function C_e(e){let t=w_e(e);return E_e(t),t}function w_e(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;wD(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=PD([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(wD(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),w_e(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:P_e(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=R_e(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of T_e(e.path))a(e,t,!0,n)}),t}function T_e(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=T_e(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function E_e(e){e.sort((e,t)=>e.score===t.score?F_e(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var D_e=/^:[\w-]+$/,O_e=3,k_e=2,A_e=1,j_e=10,M_e=-2,N_e=e=>e===`*`;function P_e(e,t){let n=e.split(`/`),r=n.length;return n.some(N_e)&&(r+=M_e),t&&(r+=k_e),n.filter(e=>!N_e(e)).reduce((e,t)=>e+(D_e.test(t)?O_e:t===``?A_e:j_e),r)}function F_e(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function I_e(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?L_e(u,l,s.matcher,s.compiledParams):kD(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=kD({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:PD([a,d.pathname]),pathnameBase:W_e(PD([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=PD([a,d.pathnameBase]))}return o}function kD(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=R_e(e.path,e.caseSensitive,e.end);return L_e(e,t,n,r)}function L_e(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function R_e(e,t=!1,n=!0){TD(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function z_e(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return TD(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function AD(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function B_e(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?OD(e):e,a;return n?(n=U_e(n),a=n.startsWith(`/`)?V_e(n.substring(1),`/`):V_e(n,t)):a=t,{pathname:a,search:G_e(r),hash:K_e(i)}}function V_e(e,t){let n=FD(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function jD(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function H_e(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function MD(e){let t=H_e(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ND(e,t,n,r=!1){let i;typeof e==`string`?i=OD(e):(i={...e},wD(!i.pathname||!i.pathname.includes(`?`),jD(`?`,`pathname`,`search`,i)),wD(!i.pathname||!i.pathname.includes(`#`),jD(`#`,`pathname`,`hash`,i)),wD(!i.search||!i.search.includes(`#`),jD(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=B_e(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var U_e=e=>e.replace(/[\\/]{2,}/g,`/`),PD=e=>U_e(e.join(`/`)),FD=e=>e.replace(/\/+$/,``),W_e=e=>FD(e).replace(/^\/*/,`/`),G_e=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,K_e=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,q_e=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function J_e(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Y_e(e){return PD(e.map(e=>e.route.path).filter(Boolean))||`/`}var X_e=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Z_e(e,t){let n=e;if(typeof n!=`string`||!CD.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(X_e)try{let e=new URL(window.location.href),r=d_e.test(n)?new URL(f_e(n,e.protocol)):new URL(n),a=AD(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{TD(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Q_e=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Q_e);var $_e=[`GET`,...Q_e];new Set($_e);var eve=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function tve(e){try{return eve.includes(new URL(e).protocol)}catch{return!1}}var ID=h.createContext(null);ID.displayName=`DataRouter`;var LD=h.createContext(null);LD.displayName=`DataRouterState`;var nve=h.createContext(!1);function rve(){return h.useContext(nve)}var ive=h.createContext({isTransitioning:!1});ive.displayName=`ViewTransition`;var ave=h.createContext(new Map);ave.displayName=`Fetchers`;var ove=h.createContext(null);ove.displayName=`Await`;var RD=h.createContext(null);RD.displayName=`Navigation`;var zD=h.createContext(null);zD.displayName=`Location`;var BD=h.createContext({outlet:null,matches:[],isDataRoute:!1});BD.displayName=`Route`;var VD=h.createContext(null);VD.displayName=`RouteError`;var sve=`REACT_ROUTER_ERROR`,cve=`REDIRECT`,lve=`ROUTE_ERROR_RESPONSE`;function uve(e){if(e.startsWith(`${sve}:${cve}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function dve(e){if(e.startsWith(`${sve}:${lve}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new q_e(t.status,t.statusText,t.data)}catch{}}function fve(e,{relative:t}={}){wD(HD(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=h.useContext(RD),{hash:i,pathname:a,search:o}=GD(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:PD([n,a])),r.createHref({pathname:s,search:o,hash:i})}function HD(){return h.useContext(zD)!=null}function UD(){return wD(HD(),`useLocation() may be used only in the context of a <Router> component.`),h.useContext(zD).location}var pve=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function mve(e){h.useContext(RD).static||h.useLayoutEffect(e)}function WD(){let{isDataRoute:e}=h.useContext(BD);return e?jve():hve()}function hve(){wD(HD(),`useNavigate() may be used only in the context of a <Router> component.`);let e=h.useContext(ID),{basename:t,navigator:n}=h.useContext(RD),{matches:r}=h.useContext(BD),{pathname:i}=UD(),a=JSON.stringify(MD(r)),o=h.useRef(!1);return mve(()=>{o.current=!0}),h.useCallback((r,s={})=>{if(TD(o.current,pve),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=ND(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:PD([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}h.createContext(null);function gve(){let{matches:e}=h.useContext(BD);return e[e.length-1]?.params??{}}function GD(e,{relative:t}={}){let{matches:n}=h.useContext(BD),{pathname:r}=UD(),i=JSON.stringify(MD(n));return h.useMemo(()=>ND(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function _ve(e,t){return vve(e,t)}function vve(e,t,n){wD(HD(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=h.useContext(RD),{matches:i}=h.useContext(BD),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Nve(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=UD(),d;if(t){let e=typeof t==`string`?OD(t):t;wD(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):b_e(e,{pathname:p});TD(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),TD(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=wve(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:PD([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:PD([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?h.createElement(zD.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},g):g}function yve(){let e=Ave(),t=J_e(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=h.createElement(h.Fragment,null,h.createElement(`p`,null,`💿 Hey developer 👋`),h.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,h.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,h.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),h.createElement(h.Fragment,null,h.createElement(`h2`,null,`Unexpected Application Error!`),h.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?h.createElement(`pre`,{style:i},n):null,o)}var bve=h.createElement(yve,null),xve=class extends h.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=dve(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:h.createElement(BD.Provider,{value:this.props.routeContext},h.createElement(VD.Provider,{value:e,children:this.props.component}));return this.context?h.createElement(Sve,{error:e},t):t}};xve.contextType=nve;var KD=new WeakMap;function Sve({children:e,error:t}){let{basename:n}=h.useContext(RD);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=uve(t.digest);if(e){let r=KD.get(t);if(r)throw r;let i=Z_e(e.location,n),a=i.absoluteURL||i.to;if(tve(a))throw Error(`Invalid redirect location`);if(X_e&&!KD.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw KD.set(t,n),n}return h.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Cve({routeContext:e,match:t,children:n}){let r=h.useContext(ID);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),h.createElement(BD.Provider,{value:e},n)}function wve(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);wD(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Y_e(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||bve,o&&(s<0&&c===0?(Nve(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=u?f:d?p:n.route.Component?h.createElement(n.route.Component,null):n.route.element?n.route.element:e,h.createElement(Cve,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?h.createElement(xve,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):g()},null)}function qD(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tve(e){let t=h.useContext(ID);return wD(t,qD(e)),t}function JD(e){let t=h.useContext(LD);return wD(t,qD(e)),t}function Eve(e){let t=h.useContext(BD);return wD(t,qD(e)),t}function YD(e){let t=Eve(e),n=t.matches[t.matches.length-1];return wD(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Dve(){return YD(`useRouteId`)}function Ove(){let e=JD(`useNavigation`);return h.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function kve(){let{matches:e,loaderData:t}=JD(`useMatches`);return h.useMemo(()=>e.map(e=>S_e(e,t)),[e,t])}function Ave(){let e=h.useContext(VD),t=JD(`useRouteError`),n=YD(`useRouteError`);return e===void 0?t.errors?.[n]:e}function jve(){let{router:e}=Tve(`useNavigate`),t=YD(`useNavigate`),n=h.useRef(!1);return mve(()=>{n.current=!0}),h.useCallback(async(r,i={})=>{TD(n.current,pve),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Mve={};function Nve(e,t,n){!t&&!Mve[e]&&(Mve[e]=!0,TD(!1,n))}h.memo(Pve);function Pve({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return vve(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function XD({to:e,replace:t,state:n,relative:r}){wD(HD(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=h.useContext(RD);TD(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=h.useContext(BD),{pathname:o}=UD(),s=WD(),c=ND(e,MD(a),o,r===`path`),l=JSON.stringify(c);return h.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function ZD(e){wD(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Fve({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){wD(!HD(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=h.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=OD(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,g=h.useMemo(()=>{let e=AD(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return TD(g!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:h.createElement(RD.Provider,{value:c},h.createElement(zD.Provider,{children:t,value:g}))}function Ive({children:e,location:t}){return _ve(QD(e),t)}h.Component;function QD(e,t=[]){let n=[];return h.Children.forEach(e,(e,r)=>{if(!h.isValidElement(e))return;let i=[...t,r];if(e.type===h.Fragment){n.push.apply(n,QD(e.props.children,i));return}wD(e.type===ZD,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),wD(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=QD(e.props.children,i)),n.push(a)}),n}var $D=`get`,eO=`application/x-www-form-urlencoded`;function tO(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Lve(e){return tO(e)&&e.tagName.toLowerCase()===`button`}function Rve(e){return tO(e)&&e.tagName.toLowerCase()===`form`}function zve(e){return tO(e)&&e.tagName.toLowerCase()===`input`}function Bve(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vve(e,t){return e.button===0&&(!t||t===`_self`)&&!Bve(e)}function nO(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Hve(e,t){let n=nO(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var rO=null;function Uve(){if(rO===null)try{new FormData(document.createElement(`form`),0),rO=!1}catch{rO=!0}return rO}var Wve=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function iO(e){return e!=null&&!Wve.has(e)?(TD(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${eO}"`),null):e}function Gve(e,t){let n,r,i,a,o;if(Rve(e)){let o=e.getAttribute(`action`);r=o?AD(o,t):null,n=e.getAttribute(`method`)||$D,i=iO(e.getAttribute(`enctype`))||eO,a=new FormData(e)}else if(Lve(e)||zve(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?AD(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||$D,i=iO(e.getAttribute(`formenctype`))||iO(o.getAttribute(`enctype`))||eO,a=new FormData(o,e),!Uve()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(tO(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=$D,r=null,i=eO,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Kve={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},qve=/[&><\u2028\u2029]/g;function Jve(e){return e.replace(qve,e=>Kve[e])}function aO(e,t){if(e===!1||e==null)throw Error(t)}function Yve(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&AD(i.pathname,t)===`/`?i.pathname=`${FD(t)}/_root.${r}`:i.pathname=`${FD(i.pathname)}.${r}`,i}async function Xve(e,t){if(e.id in t)return t[e.id];try{let n=await u_e(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zve(e){return e!=null&&typeof e.page==`string`}function Qve(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function $ve(e,t,n){return iye((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Xve(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Qve).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function eye(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function tye(e,t,{includeHydrateFallback:n}={}){return nye(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function nye(e){return[...new Set(e)]}function rye(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function iye(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Zve(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(rye(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function oO(){let e=h.useContext(ID);return aO(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function aye(){let e=h.useContext(LD);return aO(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var sO=h.createContext(void 0);sO.displayName=`FrameworkContext`;function cO(){let e=h.useContext(sO);return aO(e,`You must render this element inside a <HydratedRouter> element`),e}function oye(e,t){let n=h.useContext(sO),[r,i]=h.useState(!1),[a,o]=h.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=h.useRef(null);h.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),h.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:lO(s,p),onBlur:lO(c,m),onMouseEnter:lO(l,p),onMouseLeave:lO(u,m),onTouchStart:lO(d,p)}]:[a,f,{}]:[!1,f,{}]}function lO(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function sye({page:e,...t}){let n=rve(),{nonce:r}=cO(),{router:i}=oO(),a=h.useMemo(()=>b_e(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?h.createElement(lye,{page:e,matches:a,...t}):h.createElement(uye,{page:e,matches:a,...t})):null}function cye(e){let{manifest:t,routeModules:n}=cO(),[r,i]=h.useState([]);return h.useEffect(()=>{let r=!1;return $ve(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function lye({page:e,matches:t,...n}){let r=UD(),{future:i}=cO(),{basename:a}=oO(),o=h.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Yve(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return h.createElement(h.Fragment,null,o.map(e=>h.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function uye({page:e,matches:t,...n}){let r=UD(),{future:i,manifest:a,routeModules:o}=cO(),{basename:s}=oO(),{loaderData:c,matches:l}=aye(),u=h.useMemo(()=>eye(e,t,l,a,r,`data`),[e,t,l,a,r]),d=h.useMemo(()=>eye(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=h.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Yve(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=h.useMemo(()=>tye(d,a),[d,a]),m=cye(d);return h.createElement(h.Fragment,null,f.map(e=>h.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>h.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>h.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function dye(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}h.Component;var fye=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{fye&&(window.__reactRouterVersion=`7.18.0`)}catch{}function pye({basename:e,children:t,useTransitions:n,window:r}){let i=h.useRef();i.current??=h_e({window:r,v5Compat:!0});let a=i.current,[o,s]=h.useState({action:a.action,location:a.location}),c=h.useCallback(e=>{n===!1?s(e):h.startTransition(()=>s(e))},[n]);return h.useLayoutEffect(()=>a.listen(c),[a,c]),h.createElement(Fve,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function mye({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=h.useState({action:n.action,location:n.location}),o=h.useCallback(e=>{r===!1?a(e):h.startTransition(()=>a(e))},[r]);return h.useLayoutEffect(()=>n.listen(o),[n,o]),h.createElement(Fve,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}mye.displayName=`unstable_HistoryRouter`;var uO=h.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:g,navigator:_,useTransitions:v}=h.useContext(RD),y=typeof l==`string`&&CD.test(l),b=Z_e(l,g);l=b.to;let x=fve(l,{relative:r}),S=UD(),C=null;if(o){let e=ND(o,[],S.mask?S.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:PD([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=oye(n,p),D=bye(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=h.createElement(`a`,{...p,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:dye(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?h.createElement(h.Fragment,null,A,h.createElement(sye,{page:x})):A});uO.displayName=`Link`;var hye=h.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=GD(a,{relative:c.relative}),d=UD(),f=h.useContext(LD),{navigator:p,basename:m}=h.useContext(RD),g=f!=null&&Oye(u)&&o===!0,_=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&m&&(y=AD(y,m)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return h.createElement(uO,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});hye.displayName=`NavLink`;var gye=h.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=$D,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:g}=h.useContext(RD),_=wye(),v=Tye(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&CD.test(s);return h.createElement(`form`,{ref:m,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});g&&n!==!1?h.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});gye.displayName=`Form`;function _ye({getKey:e,storageKey:t,...n}){let r=h.useContext(sO),{basename:i}=h.useContext(RD),a=UD(),o=kve();Eye({getKey:e,storageKey:t});let s=h.useMemo(()=>{if(!r||!e)return null;let t=mO(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),h.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Jve(JSON.stringify(t||fO))}, ${Jve(JSON.stringify(s))})`}})}_ye.displayName=`ScrollRestoration`;function vye(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dO(e){let t=h.useContext(ID);return wD(t,vye(e)),t}function yye(e){let t=h.useContext(LD);return wD(t,vye(e)),t}function bye(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=WD(),d=UD(),f=GD(e,{relative:o});return h.useCallback(p=>{if(Vve(p,t)){p.preventDefault();let t=n===void 0?DD(d)===DD(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?h.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function xye(e){TD(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=h.useRef(nO(e)),n=h.useRef(!1),r=UD(),i=h.useMemo(()=>Hve(r.search,n.current?null:t.current),[r.search]),a=WD();return[i,h.useCallback((e,t)=>{let r=nO(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Sye=0,Cye=()=>`__${String(++Sye)}__`;function wye(){let{router:e}=dO(`useSubmit`),{basename:t}=h.useContext(RD),n=Dve(),r=e.fetch,i=e.navigate;return h.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Gve(e,t);a.navigate===!1?await r(a.fetcherKey||Cye(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Tye(e,{relative:t}={}){let{basename:n}=h.useContext(RD),r=h.useContext(BD);wD(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...GD(e||`.`,{relative:t})},o=UD();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:PD([n,a.pathname])),DD(a)}var fO=`react-router-scroll-positions`,pO={};function mO(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:AD(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Eye({getKey:e,storageKey:t}={}){let{router:n}=dO(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=yye(`useScrollRestoration`),{basename:a}=h.useContext(RD),o=UD(),s=kve(),c=Ove();h.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Dye(h.useCallback(()=>{if(c.state===`idle`){let t=mO(o,s,a,e);pO[t]=window.scrollY}try{sessionStorage.setItem(t||fO,JSON.stringify(pO))}catch(e){TD(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(h.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||fO);e&&(pO=JSON.parse(e))}catch{}},[t]),h.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(pO,()=>window.scrollY,e?(t,n)=>mO(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),h.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{TD(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Dye(e,t){let{capture:n}=t||{};h.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Oye(e,{relative:t}={}){let n=h.useContext(ive);wD(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dO(`useViewTransitionState`),i=GD(e,{relative:t});if(!n.isTransitioning)return!1;let a=AD(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=AD(n.nextLocation.pathname,r)||n.nextLocation.pathname;return kD(i.pathname,o)!=null||kD(i.pathname,a)!=null}function hO(e,t){return function(){return e.apply(t,arguments)}}var{toString:kye}=Object.prototype,{getPrototypeOf:gO}=Object,{iterator:_O,toStringTag:vO}=Symbol,yO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bO=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),yO(n,t))return!0;n=gO(n)}return!1},Aye=(e,t)=>e!=null&&bO(e,t)?e[t]:void 0,xO=(e=>t=>{let n=kye.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),SO=e=>(e=e.toLowerCase(),t=>xO(t)===e),CO=e=>t=>typeof t===e,{isArray:wO}=Array,TO=CO(`undefined`);function EO(e){return e!==null&&!TO(e)&&e.constructor!==null&&!TO(e.constructor)&&OO(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var DO=SO(`ArrayBuffer`);function jye(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&DO(e.buffer),t}var Mye=CO(`string`),OO=CO(`function`),kO=CO(`number`),AO=e=>typeof e==`object`&&!!e,Nye=e=>e===!0||e===!1,jO=e=>{if(!AO(e))return!1;let t=gO(e);return(t===null||t===Object.prototype||gO(t)===null)&&!bO(e,vO)&&!bO(e,_O)},Pye=e=>{if(!AO(e)||EO(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Fye=SO(`Date`),Iye=SO(`File`),Lye=e=>!!(e&&e.uri!==void 0),Rye=e=>e&&e.getParts!==void 0,zye=SO(`Blob`),Bye=SO(`FileList`),Vye=e=>AO(e)&&OO(e.pipe);function Hye(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var MO=Hye(),NO=MO.FormData===void 0?void 0:MO.FormData,Uye=e=>{if(!e)return!1;if(NO&&e instanceof NO)return!0;let t=gO(e);if(!t||t===Object.prototype||!OO(e.append))return!1;let n=xO(e);return n===`formdata`||n===`object`&&OO(e.toString)&&e.toString()===`[object FormData]`},Wye=SO(`URLSearchParams`),[Gye,Kye,qye,Jye]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(SO),Yye=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function PO(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),wO(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(EO(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function FO(e,t){if(EO(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var IO=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,LO=e=>!TO(e)&&e!==IO;function RO(...e){let{caseless:t,skipUndefined:n}=LO(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&FO(r,i)||i,o=yO(r,a)?r[a]:void 0;jO(o)&&jO(e)?r[a]=RO(o,e):jO(e)?r[a]=RO({},e):wO(e)?r[a]=e.slice():(!n||!TO(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||EO(n)||(PO(n,i),typeof n!=`object`||wO(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];sbe.call(n,t)&&i(n[t],t)}}return r}var Xye=(e,t,n,{allOwnKeys:r}={})=>(PO(t,(t,r)=>{n&&OO(t)?Object.defineProperty(e,r,{__proto__:null,value:hO(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Zye=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Qye=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},$ye=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&gO(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ebe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},tbe=e=>{if(!e)return null;if(wO(e))return e;let t=e.length;if(!kO(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},nbe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&gO(Uint8Array)),rbe=(e,t)=>{let n=(e&&e[_O]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},ibe=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},abe=SO(`HTMLFormElement`),obe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:sbe}=Object.prototype,cbe=SO(`RegExp`),zO=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};PO(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},lbe=e=>{zO(e,(t,n)=>{if(OO(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(OO(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},ube=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return wO(e)?r(e):r(String(e).split(t)),n},dbe=()=>{},fbe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pbe(e){return!!(e&&OO(e.append)&&e[vO]===`FormData`&&e[_O])}var mbe=e=>{let t=new WeakSet,n=e=>{if(AO(e)){if(t.has(e))return;if(EO(e))return e;if(!(`toJSON`in e)){t.add(e);let r=wO(e)?[]:{};return PO(e,(e,t)=>{let i=n(e);!TO(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},hbe=SO(`AsyncFunction`),gbe=e=>e&&(AO(e)||OO(e))&&OO(e.then)&&OO(e.catch),BO=((e,t)=>e?setImmediate:t?((e,t)=>(IO.addEventListener(`message`,({source:n,data:r})=>{n===IO&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),IO.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,OO(IO.postMessage)),_be=typeof queueMicrotask<`u`?queueMicrotask.bind(IO):typeof process<`u`&&process.nextTick||BO,VO=e=>e!=null&&OO(e[_O]),Y={isArray:wO,isArrayBuffer:DO,isBuffer:EO,isFormData:Uye,isArrayBufferView:jye,isString:Mye,isNumber:kO,isBoolean:Nye,isObject:AO,isPlainObject:jO,isEmptyObject:Pye,isReadableStream:Gye,isRequest:Kye,isResponse:qye,isHeaders:Jye,isUndefined:TO,isDate:Fye,isFile:Iye,isReactNativeBlob:Lye,isReactNative:Rye,isBlob:zye,isRegExp:cbe,isFunction:OO,isStream:Vye,isURLSearchParams:Wye,isTypedArray:nbe,isFileList:Bye,forEach:PO,merge:RO,extend:Xye,trim:Yye,stripBOM:Zye,inherits:Qye,toFlatObject:$ye,kindOf:xO,kindOfTest:SO,endsWith:ebe,toArray:tbe,forEachEntry:rbe,matchAll:ibe,isHTMLForm:abe,hasOwnProperty:yO,hasOwnProp:yO,hasOwnInPrototypeChain:bO,getSafeProp:Aye,reduceDescriptors:zO,freezeMethods:lbe,toObjectSet:ube,toCamelCase:obe,noop:dbe,toFiniteNumber:fbe,findKey:FO,global:IO,isContextDefined:LO,isSpecCompliantForm:pbe,toJSONObject:mbe,isAsyncFn:hbe,isThenable:gbe,setImmediate:BO,asap:_be,isIterable:VO,isSafeIterable:e=>e!=null&&bO(e,_O)&&VO(e)},vbe=Y.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),ybe=e=>{let t={},n,r,i;return e&&e.split(`
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&vbe[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function bbe(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var xbe=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Sbe=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function HO(e,t){return Y.isArray(e)?e.map(e=>HO(e,t)):bbe(String(e).replace(t,``))}var Cbe=e=>HO(e,xbe),wbe=e=>HO(e,Sbe);function UO(e){let t=Object.create(null);return Y.forEach(e.toJSON(),(e,n)=>{t[n]=wbe(e)}),t}var WO=Symbol(`internals`);function GO(e){return e&&String(e).trim().toLowerCase()}function KO(e){return e===!1||e==null?e:Y.isArray(e)?e.map(KO):Cbe(String(e))}function Tbe(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Ebe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qO(e,t,n,r,i){if(Y.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function Dbe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Obe(e,t){let n=Y.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var JO=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=GO(t);if(!i)return;let a=Y.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=KO(e))}let a=(e,t)=>Y.forEach(e,(e,n)=>i(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Y.isString(e)&&(e=e.trim())&&!Ebe(e))a(ybe(e),t);else if(Y.isObject(e)&&Y.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!Y.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],Y.hasOwnProp(n,i)?(r=n[i],n[i]=Y.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=GO(e),e){let n=Y.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Tbe(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=GO(e),e){let n=Y.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||qO(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=GO(e),e){let i=Y.findKey(n,e);i&&(!t||qO(n,n[i],i,t))&&(delete n[i],r=!0)}}return Y.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||qO(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Y.forEach(this,(r,i)=>{let a=Y.findKey(n,i);if(a){t[a]=KO(r),delete t[i];return}let o=e?Dbe(i):String(i).trim();o!==i&&delete t[i],t[o]=KO(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&Y.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[WO]=this[WO]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=GO(e);t[r]||(Obe(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}};JO.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),Y.reduceDescriptors(JO.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(JO);var kbe=`[REDACTED ****]`;function Abe(e){if(Y.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Y.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function jbe(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||Y.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof JO&&(e=e.toJSON()),r.push(e);let t;if(Y.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);Y.isUndefined(r)||(t[n]=r)});else{if(!Y.isPlainObject(e)&&Abe(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?kbe:i(a);Y.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var YO=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&Y.hasOwnProp(e,`redact`)?e.redact:void 0,n=Y.isArray(t)&&t.length>0?jbe(e,t):Y.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};YO.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,YO.ERR_BAD_OPTION=`ERR_BAD_OPTION`,YO.ECONNABORTED=`ECONNABORTED`,YO.ETIMEDOUT=`ETIMEDOUT`,YO.ECONNREFUSED=`ECONNREFUSED`,YO.ERR_NETWORK=`ERR_NETWORK`,YO.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,YO.ERR_DEPRECATED=`ERR_DEPRECATED`,YO.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,YO.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,YO.ERR_CANCELED=`ERR_CANCELED`,YO.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,YO.ERR_INVALID_URL=`ERR_INVALID_URL`,YO.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function XO(e){return Y.isPlainObject(e)||Y.isArray(e)}function ZO(e){return Y.endsWith(e,`[]`)?e.slice(0,-2):e}function QO(e,t,n){return e?e.concat(t).map(function(e,t){return e=ZO(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Mbe(e){return Y.isArray(e)&&!e.some(XO)}var Nbe=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function $O(e,t,n){if(!Y.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&Y.isSpecCompliantForm(t),u=[];if(!Y.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!l&&Y.isBlob(e))throw new YO(`Blob is not supported. Use a Buffer instead.`);if(Y.isArrayBuffer(e)||Y.isTypedArray(e)){if(l&&typeof s==`function`)return new s([e]);if(typeof Buffer<`u`)return Buffer.from(e);throw new YO(`Blob is not supported. Use a Buffer instead.`,YO.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new YO(`Object is too deeply nested (`+e+` levels). Max depth: `+c,YO.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!Y.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(Y.isReactNative(t)&&Y.isReactNativeBlob(e))return t.append(QO(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(Y.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(Y.isArray(e)&&Mbe(e)||(Y.isFileList(e)||Y.endsWith(n,`[]`))&&(s=Y.toArray(e)))return n=ZO(n),s.forEach(function(e,r){!(Y.isUndefined(e)||e===null)&&t.append(o===!0?QO([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return XO(e)?!0:(t.append(QO(i,n,a),d(e)),!1)}let h=Object.assign(Nbe,{defaultVisitor:m,convertValue:d,isVisitable:XO});function g(e,n,r=0){if(!Y.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),Y.forEach(e,function(e,a){(!(Y.isUndefined(e)||e===null)&&i.call(t,e,Y.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!Y.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function ek(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function tk(e,t){this._pairs=[],e&&$O(e,this,t)}var nk=tk.prototype;nk.append=function(e,t){this._pairs.push([e,t])},nk.toString=function(e){let t=e?t=>e.call(this,t,ek):ek;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Pbe(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function rk(e,t,n){if(!t)return e;e||=``;let r=Y.isFunction(n)?{serialize:n}:n,i=Y.getSafeProp(r,`encode`)||Pbe,a=Y.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):Y.isURLSearchParams(t)?t.toString():new tk(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var ik=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){Y.forEach(this.handlers,function(t){t!==null&&e(t)})}},ak={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Fbe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:tk,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Ibe=s({hasBrowserEnv:()=>ok,hasStandardBrowserEnv:()=>Lbe,hasStandardBrowserWebWorkerEnv:()=>Rbe,navigator:()=>sk,origin:()=>zbe}),ok=typeof window<`u`&&typeof document<`u`,sk=typeof navigator==`object`&&navigator||void 0,Lbe=ok&&(!sk||[`ReactNative`,`NativeScript`,`NS`].indexOf(sk.product)<0),Rbe=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,zbe=ok&&window.location.href||`http://localhost`,ck={...Ibe,...Fbe};function Bbe(e,t){return $O(e,new ck.classes.URLSearchParams,{visitor:function(e,t,n,r){return ck.isNode&&Y.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var lk=100;function uk(e){if(e>lk)throw new YO(`FormData field is too deeply nested (`+e+` levels). Max depth: `+lk,YO.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Vbe(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)uk(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Hbe(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function dk(e){function t(e,n,r,i){uk(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&Y.isArray(r)?r.length:a,s?(Y.hasOwnProp(r,a)?r[a]=Y.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!Y.hasOwnProp(r,a)||!Y.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&Y.isArray(r[a])&&(r[a]=Hbe(r[a])),!o)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){let n={};return Y.forEachEntry(e,(e,r)=>{t(Vbe(e),r,n,0)}),n}return null}var fk=(e,t)=>e!=null&&Y.hasOwnProp(e,t)?e[t]:void 0;function Ube(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var pk={transitional:ak,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=Y.isObject(e);if(i&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return r?JSON.stringify(dk(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=fk(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Bbe(e,t).toString();if((a=Y.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=fk(this,`env`),r=n&&n.FormData;return $O(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Ube(e)):e}],transformResponse:[function(e){let t=fk(this,`transitional`)||pk.transitional,n=t&&t.forcedJSONParsing,r=fk(this,`responseType`),i=r===`json`;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,fk(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?YO.from(e,YO.ERR_BAD_RESPONSE,this,null,fk(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:ck.classes.FormData,Blob:ck.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};Y.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{pk.headers[e]={}});function mk(e,t){let n=this||pk,r=t||n,i=JO.from(r.headers),a=r.data;return Y.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function hk(e){return!!(e&&e.__CANCEL__)}var gk=class extends YO{constructor(e,t,n){super(e??`canceled`,YO.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function _k(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new YO(`Request failed with status code `+n.status,n.status>=400&&n.status<500?YO.ERR_BAD_REQUEST:YO.ERR_BAD_RESPONSE,n.config,n.request,n))}function Wbe(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Gbe(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Kbe(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var vk=(e,t,n=3)=>{let r=0,i=Gbe(50,250);return Kbe(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},yk=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},bk=e=>(...t)=>Y.asap(()=>e(...t)),qbe=ck.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ck.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ck.origin),ck.navigator&&/(msie|trident)/i.test(ck.navigator.userAgent)):()=>!0,Jbe=ck.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];Y.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Y.isString(r)&&s.push(`path=${r}`),Y.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),Y.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Ybe(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Xbe(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var Zbe=/^https?:(?!\/\/)/i,Qbe=/[\t\n\r]/g;function $be(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function exe(e){return $be(e).replace(Qbe,``)}function xk(e,t){if(typeof e==`string`&&Zbe.test(exe(e)))throw new YO(`Invalid URL: missing "//" after protocol`,YO.ERR_INVALID_URL,t)}function Sk(e,t,n,r){xk(t,r);let i=!Ybe(t);return e&&(i||n===!1)?(xk(e,r),Xbe(e,t)):t}var Ck=e=>e instanceof JO?{...e}:e;function wk(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:r},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function i(e,t,n,i){if(!Y.isUndefined(t))return r(e,t,n,i);if(!Y.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function o(e,t){if(!Y.isUndefined(t))return r(void 0,t);if(!Y.isUndefined(e))return r(void 0,e)}function s(n){let r=Y.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!Y.isUndefined(r))if(Y.isPlainObject(r)){if(Y.hasOwnProp(r,n))return r[n]}else return;let i=Y.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(Y.isPlainObject(i)&&Y.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(Y.hasOwnProp(t,a))return r(n,i);if(Y.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(Ck(e),Ck(t),n,!0)};return Y.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=Y.hasOwnProp(l,r)?l[r]:i,o=a(Y.hasOwnProp(e,r)?e[r]:void 0,Y.hasOwnProp(t,r)?t[r]:void 0,r);Y.isUndefined(o)&&a!==c||(n[r]=o)}),Y.hasOwnProp(t,`validateStatus`)&&Y.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(Y.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var txe=[`content-type`,`content-length`];function nxe(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{txe.includes(t.toLowerCase())&&e.set(t,n)})}var rxe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Tk(e){let t=wk({},e),n=e=>Y.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=JO.from(s),t.url=rk(Sk(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=Y.getSafeProp(c,`username`)||``,n=Y.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?rxe(n):``)))}catch(t){throw YO.from(t,YO.ERR_BAD_OPTION_VALUE,e)}}if(Y.isFormData(r)&&(ck.hasStandardBrowserEnv||ck.hasStandardBrowserWebWorkerEnv||Y.isReactNative(r)?s.setContentType(void 0):Y.isFunction(r.getHeaders)&&nxe(s,r.getHeaders(),n(`formDataHeaderPolicy`))),ck.hasStandardBrowserEnv&&(Y.isFunction(i)&&(i=i(t)),i===!0||i==null&&qbe(t.url))){let e=a&&o&&Jbe.read(o);e&&s.set(a,e)}return t}var ixe=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Tk(e),i=r.data,a=JO.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=JO.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());_k(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new YO(`Request aborted`,YO.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new YO(t&&t.message?t.message:`Network Error`,YO.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||ak;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new YO(t,i.clarifyTimeoutError?YO.ETIMEDOUT:YO.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&Y.forEach(UO(a),function(e,t){h.setRequestHeader(t,e)}),Y.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=vk(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=vk(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new gk(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Wbe(r.url);if(_&&!ck.protocols.includes(_)){n(new YO(`Unsupported protocol `+_+`:`,YO.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},axe=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof YO?t:new gk(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new YO(`timeout of ${t}ms exceeded`,YO.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>Y.asap(o),s},oxe=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},sxe=async function*(e,t){for await(let n of cxe(e))yield*oxe(n,t)},cxe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ek=(e,t,n,r)=>{let i=sxe(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Dk=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,lxe=(e,t,n)=>t+2<n&&Dk(e.charCodeAt(t+1))&&Dk(e.charCodeAt(t+2));function uxe(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);Dk(t)&&Dk(i)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n===37&&lxe(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var Ok=`1.18.1`,kk=64*1024,{isFunction:Ak}=Y,dxe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),jk=e=>{if(!Y.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Mk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fxe=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},pxe=e=>{let t=Y.global!==void 0&&Y.global!==null?Y.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Y.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?Ak(i):typeof fetch==`function`,c=Ak(a),l=Ak(o);if(!s)return!1;let u=s&&Ak(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Mk(()=>{let e=!1,t=new a(ck.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Mk(()=>Y.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new YO(`Response type '${e}' is not supported`,YO.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e))return(await new a(ck.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(e)||Y.isArrayBuffer(e))return e.byteLength;if(Y.isURLSearchParams(e)&&(e+=``),Y.isString(e))return(await d(e)).byteLength},g=async(e,t)=>Y.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T}=Tk(e),E=Y.isNumber(w)&&w>-1,D=Y.isNumber(T)&&T>-1,O=t=>Y.hasOwnProp(e,t)?e[t]:void 0,k=i||fetch;b=b?(b+``).toLowerCase():`text`;let A=axe([l,d&&d.toAbortSignal()],_),j=null,M=A&&A.unsubscribe&&(()=>{A.unsubscribe()}),N,P=null,F=()=>new YO(`Request body larger than maxBodyLength limit`,YO.ERR_BAD_REQUEST,e,j);try{let i,l=O(`auth`);if(l&&(i={username:Y.getSafeProp(l,`username`)||``,password:Y.getSafeProp(l,`password`)||``}),fxe(t)){let e=new URL(t,ck.origin);!i&&(e.username||e.password)&&(i={username:jk(e.username),password:jk(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(dxe((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&uxe(t)>w)throw new YO(`maxContentLength size of `+w+` exceeded`,YO.ERR_BAD_RESPONSE,e,j);if(D&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(N=e,e>T))throw F()}let d=D&&(Y.isReadableStream(s)||Y.isStream(s)),_=(e,t,n)=>Ek(e,kk,e=>{if(D&&e>T)throw P=F();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(N??=await g(x,s),N!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(Y.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&yk(N,vk(bk(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new YO(`Stream request bodies are not supported by the current fetch implementation`,YO.ERR_NOT_SUPPORT,e,j);Y.isString(S)||(S=S?`include`:`omit`);let I=c&&`credentials`in a.prototype;if(Y.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+Ok,!1);let L={...C,signal:A,method:n.toUpperCase(),headers:UO(x.normalize()),body:s,duplex:`half`,credentials:I?S:void 0};j=c&&new a(t,L);let R=await(c?k(j,C):k(t,L)),z=JO.from(R.headers);if(E){let t=Y.toFiniteNumber(z.getContentLength());if(t!=null&&t>w)throw new YO(`maxContentLength size of `+w+` exceeded`,YO.ERR_BAD_RESPONSE,e,j)}let B=p&&(b===`stream`||b===`response`);if(p&&R.body&&(v||E||B&&M)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=R[e]});let n=Y.toFiniteNumber(z.getContentLength()),[r,i]=v&&yk(n,vk(bk(v),!0))||[],a=0;R=new o(Ek(R.body,kk,t=>{if(E&&(a=t,a>w))throw new YO(`maxContentLength size of `+w+` exceeded`,YO.ERR_BAD_RESPONSE,e,j);r&&r(t)},()=>{i&&i(),M&&M()}),t)}b||=`text`;let V=await m[Y.findKey(m,b)||`text`](R,e);if(E&&!p&&!B){let t;if(V!=null&&(typeof V.byteLength==`number`?t=V.byteLength:typeof V.size==`number`?t=V.size:typeof V==`string`&&(t=typeof r==`function`?new r().encode(V).byteLength:V.length)),typeof t==`number`&&t>w)throw new YO(`maxContentLength size of `+w+` exceeded`,YO.ERR_BAD_RESPONSE,e,j)}return!B&&M&&M(),await new Promise((t,n)=>{_k(t,n,{data:V,headers:JO.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:j})})}catch(t){if(M&&M(),A&&A.aborted&&A.reason instanceof YO){let n=A.reason;throw n.config=e,j&&(n.request=j),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(P)throw j&&!P.request&&(P.request=j),P;if(t instanceof YO)throw j&&!t.request&&(t.request=j),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new YO(`Network Error`,YO.ERR_NETWORK,e,j,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw YO.from(t,t&&t.code,e,j,t&&t.response)}}},mxe=new Map,Nk=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=mxe;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:pxe(t)),l=c;return c};Nk();var Pk={http:null,xhr:ixe,fetch:{get:Nk}};Y.forEach(Pk,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Fk=e=>`- ${e}`,hxe=e=>Y.isFunction(e)||e===null||e===!1;function gxe(e,t){e=Y.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!hxe(r)&&(i=Pk[(n=String(r)).toLowerCase()],i===void 0))throw new YO(`Unknown adapter '${n}'`);if(i&&(Y.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new YO(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
`+e.map(Fk).join(`
`):` `+Fk(e[0]):`as no adapter specified`),YO.ERR_NOT_SUPPORT)}return i}var Ik={getAdapter:gxe,adapters:Pk};function Lk(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gk(null,e)}function Rk(e){return Lk(e),e.headers=JO.from(e.headers),e.data=mk.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Ik.getAdapter(e.adapter||pk.adapter,e)(e).then(function(t){Lk(e),e.response=t;try{t.data=mk.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=JO.from(t.headers),t},function(t){if(!hk(t)&&(Lk(e),t&&t.response)){e.response=t.response;try{t.response.data=mk.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=JO.from(t.response.headers)}return Promise.reject(t)})}var zk={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{zk[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Bk={};zk.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Ok+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new YO(r(i,` has been removed`+(t?` in `+t:``)),YO.ERR_DEPRECATED);return t&&!Bk[i]&&(Bk[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},zk.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function _xe(e,t,n){if(typeof e!=`object`||!e)throw new YO(`options must be an object`,YO.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new YO(`option `+a+` must be `+n,YO.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new YO(`Unknown option `+a,YO.ERR_BAD_OPTION)}}var Vk={assertOptions:_xe,validators:zk},Hk=Vk.validators,Uk=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ik,response:new ik}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
`),r=t===-1?-1:n.indexOf(`
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=wk(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Vk.assertOptions(n,{silentJSONParsing:Hk.transitional(Hk.boolean),forcedJSONParsing:Hk.transitional(Hk.boolean),clarifyTimeoutError:Hk.transitional(Hk.boolean),legacyInterceptorReqResOrdering:Hk.transitional(Hk.boolean),advertiseZstdAcceptEncoding:Hk.transitional(Hk.boolean),validateStatusUndefinedResolves:Hk.transitional(Hk.boolean)},!1),r!=null&&(Y.isFunction(r)?t.paramsSerializer={serialize:r}:Vk.assertOptions(r,{encode:Hk.function,serialize:Hk.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Vk.assertOptions(t,{baseUrl:Hk.spelling(`baseURL`),withXsrfToken:Hk.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&Y.merge(i.common,i[t.method]);i&&Y.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=JO.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||ak;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Rk.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Rk.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=wk(this.defaults,e),rk(Sk(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};Y.forEach([`delete`,`get`,`head`,`options`],function(e){Uk.prototype[e]=function(t,n){return this.request(wk(n||{},{method:e,url:t,data:n&&Y.hasOwnProp(n,`data`)?n.data:void 0}))}}),Y.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(wk(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Uk.prototype[e]=t(),e!==`query`&&(Uk.prototype[e+`Form`]=t(!0))});var vxe=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new gk(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function yxe(e){return function(t){return e.apply(null,t)}}function bxe(e){return Y.isObject(e)&&e.isAxiosError===!0}var Wk={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Wk).forEach(([e,t])=>{Wk[t]=e});function Gk(e){let t=new Uk(e),n=hO(Uk.prototype.request,t);return Y.extend(n,Uk.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Gk(wk(e,t))},n}var Kk=Gk(pk);Kk.Axios=Uk,Kk.CanceledError=gk,Kk.CancelToken=vxe,Kk.isCancel=hk,Kk.VERSION=Ok,Kk.toFormData=$O,Kk.AxiosError=YO,Kk.Cancel=Kk.CanceledError,Kk.all=function(e){return Promise.all(e)},Kk.spread=yxe,Kk.isAxiosError=bxe,Kk.mergeConfig=wk,Kk.AxiosHeaders=JO,Kk.formToJSON=e=>dk(Y.isHTMLForm(e)?new FormData(e):e),Kk.getAdapter=Ik.getAdapter,Kk.HttpStatusCode=Wk,Kk.default=Kk;var xxe=l(o_e(),1),qk=Kk.create({baseURL:`/api`});qk.interceptors.request.use(e=>{let t=localStorage.getItem(`access_token`);return t&&(e.headers.Authorization=`Bearer ${t}`),e}),qk.interceptors.response.use(e=>e,async e=>{let t=e.config;if(e.response?.status===401&&!t._retry){t._retry=!0;let e=localStorage.getItem(`refresh_token`);if(e)try{let{data:n}=await Kk.post(`/api/auth/refresh`,{refresh_token:e});return localStorage.setItem(`access_token`,n.access_token),localStorage.setItem(`refresh_token`,n.refresh_token),t.headers.Authorization=`Bearer ${n.access_token}`,qk(t)}catch{localStorage.removeItem(`access_token`),localStorage.removeItem(`refresh_token`),window.location.href=`/login`}}return Promise.reject(e)});var Jk={register:(e,t)=>qk.post(`/auth/register`,{username:e,password:t}),login:(e,t)=>qk.post(`/auth/login`,{username:e,password:t}),me:()=>qk.get(`/auth/me`)},Yk={public:()=>qk.get(`/settings/public`),appFeatures:()=>qk.get(`/settings/app-features`)},Xk={getSettings:()=>qk.get(`/admin/settings`),updateSettings:e=>qk.patch(`/admin/settings`,e),updateProfile:e=>qk.patch(`/admin/profile`,e),listUsers:()=>qk.get(`/admin/users`),createUser:e=>qk.post(`/admin/users`,e),resetUserPassword:(e,t)=>qk.patch(`/admin/users/${e}`,{password:t}),deleteUser:e=>qk.delete(`/admin/users/${e}`)},Zk={list:()=>qk.get(`/students`),create:e=>qk.post(`/students`,e),get:e=>qk.get(`/students/${e}`),update:(e,t)=>qk.patch(`/students/${e}`,t),remove:e=>qk.delete(`/students/${e}`)},Sxe={list:()=>qk.get(`/subjects`)},Qk={list:e=>qk.get(`/students/${e}/exams`),create:(e,t)=>qk.post(`/students/${e}/exams`,t),update:(e,t)=>qk.patch(`/exams/${e}`,t),updateReview:(e,t)=>qk.patch(`/exams/${e}/review`,{reviews:t}),remove:e=>qk.delete(`/exams/${e}`),trend:(e,t)=>qk.get(`/students/${e}/scores/trend`,{params:{subject_id:t}}),exportCsv:e=>qk.get(`/students/${e}/scores/export`,{responseType:`blob`,validateStatus:e=>e>=200&&e<300}),reviewInsight:(e,t)=>qk.post(`/students/${e}/review-insight`,{subject_name:t})},$k={list:e=>qk.get(`/students/${e}/compositions`),create:(e,t)=>qk.post(`/students/${e}/compositions`,t),get:e=>qk.get(`/compositions/${e}`),remove:e=>qk.delete(`/compositions/${e}`),regenerate:e=>qk.post(`/compositions/${e}/regenerate`),ocr:(e,t)=>{let n=new FormData;return n.append(`file`,t),qk.post(`/students/${e}/compositions/ocr`,n)},download:e=>qk.get(`/compositions/${e}/download`,{responseType:`blob`})},eA={list:(e,t)=>qk.get(`/students/${e}/wrong-questions`,{params:t}),upload:(e,t,n,r=`regular`)=>{let i=new FormData;return i.append(`subject_id`,String(t)),i.append(`category`,r),i.append(`file`,n),qk.post(`/students/${e}/wrong-questions`,i)},get:e=>qk.get(`/wrong-questions/${e}`),update:(e,t)=>qk.patch(`/wrong-questions/${e}`,t),remove:e=>qk.delete(`/wrong-questions/${e}`),retryOcr:e=>qk.post(`/wrong-questions/${e}/retry-ocr`),regenerate:e=>qk.post(`/wrong-questions/${e}/regenerate-solution`),imageUrl:e=>`/api/wrong-questions/${e}/image`},Cxe=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),X=o(((e,t)=>{t.exports=Cxe()}))(),tA=(0,h.createContext)(null);function wxe({children:e}){let[t,n]=(0,h.useState)(null),[r,i]=(0,h.useState)(!0);(0,h.useEffect)(()=>{if(!localStorage.getItem(`access_token`)){i(!1);return}Jk.me().then(e=>n(e.data)).catch(()=>{localStorage.removeItem(`access_token`),localStorage.removeItem(`refresh_token`)}).finally(()=>i(!1))},[]);let a=async(e,t)=>{let{data:r}=await Jk.login(e,t);localStorage.setItem(`access_token`,r.access_token),localStorage.setItem(`refresh_token`,r.refresh_token),n((await Jk.me()).data)};return(0,X.jsx)(tA.Provider,{value:{user:t,loading:r,login:a,register:async(e,t)=>{await Jk.register(e,t),await a(e,t)},logout:()=>{localStorage.removeItem(`access_token`),localStorage.removeItem(`refresh_token`),n(null)}},children:e})}function nA(){let e=(0,h.useContext)(tA);if(!e)throw Error(`useAuth must be used within AuthProvider`);return e}var Txe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`arrow-left`,theme:`outlined`}}))());function rA(){return rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rA.apply(this,arguments)}var Exe=h.forwardRef((e,t)=>h.createElement(W,rA({},e,{ref:t,icon:Txe.default}))),Dxe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z`}}]},name:`camera`,theme:`outlined`}}))());function iA(){return iA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iA.apply(this,arguments)}var Oxe=h.forwardRef((e,t)=>h.createElement(W,iA({},e,{ref:t,icon:Dxe.default}))),kxe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z`}}]},name:`lock`,theme:`outlined`}}))());function aA(){return aA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aA.apply(this,arguments)}var oA=h.forwardRef((e,t)=>h.createElement(W,aA({},e,{ref:t,icon:kxe.default}))),Axe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z`}}]},name:`logout`,theme:`outlined`}}))());function sA(){return sA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sA.apply(this,arguments)}var jxe=h.forwardRef((e,t)=>h.createElement(W,sA({},e,{ref:t,icon:Axe.default}))),Mxe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`}}))());function cA(){return cA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cA.apply(this,arguments)}var lA=h.forwardRef((e,t)=>h.createElement(W,cA({},e,{ref:t,icon:Mxe.default}))),Nxe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z`}}]},name:`setting`,theme:`outlined`}}))());function uA(){return uA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uA.apply(this,arguments)}var dA=h.forwardRef((e,t)=>h.createElement(W,uA({},e,{ref:t,icon:Nxe.default}))),Pxe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`upload`,theme:`outlined`}}))());function fA(){return fA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fA.apply(this,arguments)}var pA=h.forwardRef((e,t)=>h.createElement(W,fA({},e,{ref:t,icon:Pxe.default}))),Fxe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z`}}]},name:`user`,theme:`outlined`}}))());function mA(){return mA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mA.apply(this,arguments)}var hA=h.forwardRef((e,t)=>h.createElement(W,mA({},e,{ref:t,icon:Fxe.default})));function gA(e,t){if(Kk.isAxiosError(e)){let t=e.response?.data?.detail;if(typeof t==`string`)return t;if(Array.isArray(t)&&t[0]?.msg)return t[0].msg}return t}function Ixe(){let{user:e,login:t,register:n,loading:r}=nA(),i=WD(),[a]=Ty.useForm(),[o]=Ty.useForm(),[s,c]=(0,h.useState)(!0),[l,u]=(0,h.useState)(!0);if((0,h.useEffect)(()=>{Yk.public().then(e=>c(e.data.registration_enabled)).catch(()=>c(!0)).finally(()=>u(!1))},[]),!r&&e)return(0,X.jsx)(XD,{to:`/`,replace:!0});let d=async e=>{try{await t(e.username,e.password),MS.success(`登录成功`),i(`/`)}catch(e){MS.error(gA(e,`用户名或密码错误`))}},f=async e=>{if(e.password!==e.confirm){MS.error(`两次密码不一致`);return}try{await n(e.username,e.password),MS.success(`注册成功`),i(`/`)}catch(e){MS.error(gA(e,`注册失败,请稍后重试`))}},p=[{key:`login`,label:`登录`,children:(0,X.jsxs)(Ty,{form:a,onFinish:d,layout:`vertical`,children:[(0,X.jsx)(Ty.Item,{name:`username`,rules:[{required:!0,message:`请输入用户名`}],children:(0,X.jsx)(eb,{prefix:(0,X.jsx)(hA,{}),placeholder:`用户名`})}),(0,X.jsx)(Ty.Item,{name:`password`,rules:[{required:!0,message:`请输入密码`}],children:(0,X.jsx)(eb.Password,{prefix:(0,X.jsx)(oA,{}),placeholder:`密码`})}),(0,X.jsx)(cp,{type:`primary`,htmlType:`submit`,block:!0,children:`登录`})]})}];return s&&p.push({key:`register`,label:`注册`,children:(0,X.jsxs)(Ty,{form:o,onFinish:f,layout:`vertical`,children:[(0,X.jsx)(Ty.Item,{name:`username`,rules:[{required:!0,message:`请输入用户名`},{min:3,message:`至少3个字符`}],children:(0,X.jsx)(eb,{prefix:(0,X.jsx)(hA,{}),placeholder:`用户名`})}),(0,X.jsx)(Ty.Item,{name:`password`,rules:[{required:!0,message:`请输入密码`},{min:6,message:`至少6个字符`}],children:(0,X.jsx)(eb.Password,{prefix:(0,X.jsx)(oA,{}),placeholder:`密码`})}),(0,X.jsx)(Ty.Item,{name:`confirm`,rules:[{required:!0,message:`请确认密码`}],children:(0,X.jsx)(eb.Password,{prefix:(0,X.jsx)(oA,{}),placeholder:`确认密码`})}),(0,X.jsx)(cp,{type:`primary`,htmlType:`submit`,block:!0,children:`注册`})]})}),(0,X.jsx)(`div`,{style:{minHeight:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(135deg, #667eea 0%, #764ba2 100%)`,padding:16},children:(0,X.jsxs)(ag,{style:{width:`100%`,maxWidth:420},title:`中学生成绩档案`,children:[(0,X.jsx)($E.Paragraph,{type:`secondary`,style:{textAlign:`center`},children:`成绩录入 · 趋势分析 · 错题管理`}),(0,X.jsxs)(Zx,{spinning:l,children:[!l&&!s&&(0,X.jsx)($E.Paragraph,{type:`secondary`,style:{textAlign:`center`,marginBottom:16},children:`注册已关闭,请联系管理员获取账号`}),(0,X.jsx)(rg,{items:p})]}),(0,X.jsx)($E.Paragraph,{type:`secondary`,style:{textAlign:`center`,fontSize:12,marginTop:16,marginBottom:0},children:`© 马建军 · 微信 dekun03 · 18364911125`})]})})}function Lxe(){let{user:e}=nA(),[t,n]=(0,h.useState)(null),[r,i]=(0,h.useState)([]),[a,o]=(0,h.useState)(!0),[s]=Ty.useForm(),[c]=Ty.useForm(),[l,u]=(0,h.useState)(!1),[d,f]=(0,h.useState)(null),[p]=Ty.useForm(),[m]=Ty.useForm(),g=Ty.useWatch(`ai_provider`,m);if(!e?.is_superuser)return(0,X.jsx)(XD,{to:`/`,replace:!0});let _=async()=>{o(!0);try{let[t,r]=await Promise.all([Xk.getSettings(),Xk.listUsers()]);n(t.data),i(r.data),s.setFieldsValue({username:e.username}),m.setFieldsValue({ai_provider:t.data.ai_provider,ollama_base_url:t.data.ollama_base_url||``,ollama_model:t.data.ollama_model||``,openai_base_url:t.data.openai_base_url||``,openai_model:t.data.openai_model||``,openai_api_key:``,ocr_service_url:t.data.ocr_service_url||``})}finally{o(!1)}};(0,h.useEffect)(()=>{_()},[]);let v=async e=>{let{data:t}=await Xk.updateSettings({registration_enabled:e});n(t),MS.success(e?`已开放注册`:`已关闭注册`)},y=async e=>{let{data:t}=await Xk.updateSettings({ai_review_enabled:e});n(t),MS.success(e?`已开启 AI 复盘解读`:`已关闭 AI 复盘解读`)},b=async t=>{if(t.password&&t.password!==t.confirm){MS.error(`两次密码不一致`);return}await Xk.updateProfile({username:t.username===e?.username?void 0:t.username,current_password:t.password?t.current_password:void 0,password:t.password||void 0}),MS.success(`账号信息已更新,若修改了用户名或密码请重新登录`)},x=async e=>{await Xk.createUser(e),MS.success(`用户已创建`),u(!1),c.resetFields(),_()},S=async e=>{d&&(await Xk.resetUserPassword(d.id,e.password),MS.success(`密码已重置`),f(null),p.resetFields())},C=async e=>{await Xk.deleteUser(e),MS.success(`用户已删除`),_()};return(0,X.jsxs)(`div`,{className:`page-container`,children:[(0,X.jsxs)(Ay,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)($E.Title,{level:3,style:{margin:0},children:`系统设置`}),(0,X.jsxs)($E.Text,{type:`secondary`,children:[`超级管理员 · `,(0,X.jsx)(uO,{to:`/`,children:`返回首页`})]})]}),(0,X.jsx)(rg,{items:[{key:`general`,label:`基本设置`,children:(0,X.jsxs)(Ay,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,X.jsx)(ag,{title:`注册开关`,loading:a,children:(0,X.jsxs)(Ay,{children:[(0,X.jsx)(QC,{checked:t?.registration_enabled??!0,onChange:v}),(0,X.jsx)($E.Text,{children:t?.registration_enabled?`开放注册:用户可在登录页自行注册`:`关闭注册:仅超级管理员可添加用户`})]})}),(0,X.jsx)(ag,{title:`管理员账号`,children:(0,X.jsxs)(Ty,{form:s,layout:`vertical`,onFinish:b,children:[(0,X.jsx)(Ty.Item,{name:`username`,label:`用户名`,rules:[{required:!0,min:3}],children:(0,X.jsx)(eb,{prefix:(0,X.jsx)(hA,{})})}),(0,X.jsx)(Ty.Item,{name:`current_password`,label:`当前密码(修改密码时必填)`,children:(0,X.jsx)(eb.Password,{prefix:(0,X.jsx)(oA,{})})}),(0,X.jsx)(Ty.Item,{name:`password`,label:`新密码(留空则不修改)`,children:(0,X.jsx)(eb.Password,{prefix:(0,X.jsx)(oA,{})})}),(0,X.jsx)(Ty.Item,{name:`confirm`,label:`确认新密码`,children:(0,X.jsx)(eb.Password,{prefix:(0,X.jsx)(oA,{})})}),(0,X.jsx)(cp,{type:`primary`,htmlType:`submit`,icon:(0,X.jsx)(dA,{}),children:`保存`})]})})]})},{key:`ai`,label:`AI 模型`,children:(0,X.jsx)(ag,{title:`解题 AI 配置`,loading:a,children:(0,X.jsxs)(Ty,{form:m,layout:`vertical`,onFinish:async e=>{let t={ai_provider:e.ai_provider,ollama_base_url:e.ollama_base_url||null,ollama_model:e.ollama_model||null,openai_base_url:e.openai_base_url||null,openai_model:e.openai_model||null,ocr_service_url:e.ocr_service_url?.trim()||null};e.openai_api_key?.trim()&&(t.openai_api_key=e.openai_api_key.trim());let{data:r}=await Xk.updateSettings(t);n(r),m.setFieldValue(`openai_api_key`,``),MS.success(`AI 模型配置已保存`)},children:[(0,X.jsx)(Ty.Item,{name:`ai_provider`,label:`AI 提供商`,rules:[{required:!0}],children:(0,X.jsxs)(jC.Group,{children:[(0,X.jsx)(jC.Button,{value:`ollama`,children:`本地 Ollama`}),(0,X.jsx)(jC.Button,{value:`openai`,children:`OpenAI 兼容 API`})]})}),(g||t?.ai_provider)===`ollama`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ty.Item,{name:`ollama_base_url`,label:`Ollama 地址`,children:(0,X.jsx)(eb,{placeholder:`http://127.0.0.1:11434`})}),(0,X.jsx)(Ty.Item,{name:`ollama_model`,label:`Ollama 模型`,children:(0,X.jsx)(eb,{placeholder:`qwen2.5:7b`})})]}),(g||t?.ai_provider)===`openai`&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ty.Item,{name:`openai_base_url`,label:`API Base URL`,children:(0,X.jsx)(eb,{placeholder:`https://api.openai.com/v1`})}),(0,X.jsx)(Ty.Item,{name:`openai_model`,label:`模型名称`,children:(0,X.jsx)(eb,{placeholder:`gpt-4o-mini`})}),(0,X.jsx)(Ty.Item,{name:`openai_api_key`,label:`API Key`,extra:t?.openai_api_key_set?`已配置 Key,留空则不修改`:`请输入 API Key`,children:(0,X.jsx)(eb.Password,{placeholder:`sk-...`})})]}),(0,X.jsx)(Ty.Item,{name:`ocr_service_url`,label:`OCR 服务地址(局域网 GPU 机器)`,extra:`留空则在应用服务器本机 CPU 识别。同机部署时填 http://127.0.0.1:23567install.sh 已自动配置)`,children:(0,X.jsx)(eb,{placeholder:`http://192.168.8.100:23567`})}),(0,X.jsx)($E.Paragraph,{type:`secondary`,children:`错题/奥数解法将按学生学段(初中/高中)生成,并严格禁止超纲解题。`}),(0,X.jsx)(Ty.Item,{label:`AI 复盘解读`,children:(0,X.jsxs)(Ay,{children:[(0,X.jsx)(QC,{checked:t?.ai_review_enabled??!0,onChange:y}),(0,X.jsx)($E.Text,{children:t?.ai_review_enabled===!1?`已关闭:成绩复盘页不调用 AI`:`已开启:成绩复盘页可生成 AI 解读`})]})}),(0,X.jsx)(cp,{type:`primary`,htmlType:`submit`,children:`保存 AI 配置`})]})})},{key:`users`,label:`用户管理`,children:(0,X.jsx)(ag,{title:`用户列表`,extra:(0,X.jsx)(cp,{type:`primary`,onClick:()=>u(!0),children:`添加用户`}),children:(0,X.jsx)(PE,{rowKey:`id`,loading:a,dataSource:r,pagination:!1,columns:[{title:`用户名`,dataIndex:`username`},{title:`角色`,dataIndex:`is_superuser`,render:e=>e?`超级管理员`:`普通用户`},{title:`创建时间`,dataIndex:`created_at`,render:e=>new Date(e).toLocaleString()},{title:`操作`,render:(e,t)=>t.is_superuser?(0,X.jsx)($E.Text,{type:`secondary`,children:`—`}):(0,X.jsxs)(Ay,{children:[(0,X.jsx)(cp,{size:`small`,onClick:()=>f(t),children:`重置密码`}),(0,X.jsx)(EC,{title:`确定删除该用户?`,onConfirm:()=>C(t.id),children:(0,X.jsx)(cp,{size:`small`,danger:!0,children:`删除`})})]})}]})})}]})]}),(0,X.jsx)(_C,{title:`添加用户`,open:l,onCancel:()=>u(!1),onOk:()=>c.submit(),destroyOnHidden:!0,children:(0,X.jsxs)(Ty,{form:c,layout:`vertical`,onFinish:x,children:[(0,X.jsx)(Ty.Item,{name:`username`,label:`用户名`,rules:[{required:!0,min:3}],children:(0,X.jsx)(eb,{})}),(0,X.jsx)(Ty.Item,{name:`password`,label:`密码`,rules:[{required:!0,min:6}],children:(0,X.jsx)(eb.Password,{})})]})}),(0,X.jsx)(_C,{title:`重置密码 — ${d?.username}`,open:!!d,onCancel:()=>f(null),onOk:()=>p.submit(),destroyOnHidden:!0,children:(0,X.jsx)(Ty,{form:p,layout:`vertical`,onFinish:S,children:(0,X.jsx)(Ty.Item,{name:`password`,label:`新密码`,rules:[{required:!0,min:6}],children:(0,X.jsx)(eb.Password,{})})})})]})}var _A={careless:`粗心`,unknown:`不会`,nervous:`紧张`,normal:`正常发挥`},vA=Object.entries(_A).map(([e,t])=>({value:e,label:t})),Rxe=[`careless`,`unknown`,`nervous`];function zxe(e){return(e||[]).some(e=>Rxe.includes(e))}var yA={weekly:`周考`,monthly:`月考`,final:`期末`},bA={pending:`处理中`,ocr_done:`已识别`,solved:`已生成解法`,failed:`失败`},xA={pending:`等待生成`,generating:`生成中`,done:`已完成`,failed:`失败`};function Bxe({studentId:e,subjects:t,exams:n,onRefresh:r}){let[i,a]=(0,h.useState)(!1),[o,s]=(0,h.useState)(null),[c]=Ty.useForm(),[l,u]=(0,h.useState)(!1);(0,h.useEffect)(()=>{i&&o?c.setFieldsValue({exam_type:o.exam_type,exam_date:(0,Tg.default)(o.exam_date),title:o.title,scores:t.map(e=>{let t=o.scores.find(t=>t.subject_id===e.id);return t?{subject_id:e.id,total_score:t.total_score,obtained_score:t.obtained_score,review_statuses:t.review_statuses||[]}:{subject_id:e.id,total_score:void 0,obtained_score:void 0,review_statuses:[]}})}):i&&c.setFieldsValue({exam_type:`weekly`,exam_date:(0,Tg.default)(),scores:t.map(e=>({subject_id:e.id,review_statuses:[]}))})},[i,o,t,c]);let d=()=>{s(null),a(!0)},f=e=>{s(e),a(!0)},p=async()=>{try{let n=await c.validateFields(),i=(n.scores||[]).map((e,n)=>({subject_id:t[n]?.id??e.subject_id,total_score:e.total_score,obtained_score:e.obtained_score,review_statuses:e.review_statuses||[]})).filter(e=>e.subject_id!=null&&e.total_score!=null&&e.obtained_score!=null&&e.total_score>0).map(e=>({subject_id:e.subject_id,total_score:Number(e.total_score),obtained_score:Number(e.obtained_score),review_statuses:e.review_statuses||[]}));if(i.length===0){MS.warning(`请至少录入一科成绩`);return}u(!0);let s={exam_type:n.exam_type,exam_date:n.exam_date.format(`YYYY-MM-DD`),title:n.title||void 0,scores:i};o?(await Qk.update(o.id,s),MS.success(`已更新`)):(await Qk.create(e,s),MS.success(`已添加`)),a(!1),r()}catch{}finally{u(!1)}},m=async e=>{_C.confirm({title:`确认删除该考试记录?`,onOk:async()=>{await Qk.remove(e.id),MS.success(`已删除`),r()}})};return(0,X.jsxs)(`div`,{children:[(0,X.jsx)(cp,{type:`primary`,onClick:d,style:{marginBottom:16},children:`录入成绩`}),(0,X.jsx)(PE,{rowKey:`id`,columns:[{title:`日期`,dataIndex:`exam_date`,key:`exam_date`,width:110},{title:`类型`,dataIndex:`exam_type`,key:`exam_type`,width:80,render:e=>yA[e]},{title:`标题`,dataIndex:`title`,key:`title`,ellipsis:!0},{title:`科目数`,key:`count`,width:80,render:(e,t)=>t.scores.length},{title:`平均占比`,key:`avg`,width:100,render:(e,t)=>t.scores.length?`${(t.scores.reduce((e,t)=>e+t.ratio,0)/t.scores.length*100).toFixed(1)}%`:`-`},{title:`操作`,key:`action`,width:120,render:(e,t)=>(0,X.jsxs)(Ay,{children:[(0,X.jsx)(cp,{type:`link`,icon:(0,X.jsx)(she,{}),onClick:()=>f(t)}),(0,X.jsx)(cp,{type:`link`,danger:!0,icon:(0,X.jsx)(dD,{}),onClick:()=>m(t)})]})}],dataSource:n,pagination:{pageSize:10},scroll:{x:600}}),(0,X.jsx)(_C,{title:o?`编辑考试`:`录入成绩`,open:i,onCancel:()=>a(!1),onOk:p,confirmLoading:l,width:900,destroyOnHidden:!0,children:(0,X.jsxs)(Ty,{form:c,layout:`vertical`,children:[(0,X.jsxs)(Ay,{style:{width:`100%`},size:`large`,wrap:!0,children:[(0,X.jsx)(Ty.Item,{name:`exam_type`,label:`考试类型`,rules:[{required:!0}],children:(0,X.jsx)(Rx,{style:{width:120},options:Object.entries(yA).map(([e,t])=>({value:e,label:t}))})}),(0,X.jsx)(Ty.Item,{name:`exam_date`,label:`考试日期`,rules:[{required:!0}],children:(0,X.jsx)(Rv,{})}),(0,X.jsx)(Ty.Item,{name:`title`,label:`备注标题`,children:(0,X.jsx)(eb,{placeholder:`可选`,style:{width:200}})})]}),(0,X.jsx)(Ty.List,{name:`scores`,children:e=>(0,X.jsx)(PE,{size:`small`,pagination:!1,dataSource:e.map((e,n)=>({...e,subject:t[n]})),rowKey:`key`,scroll:{x:720},columns:[{title:`科目`,width:70,render:(e,t)=>(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ty.Item,{name:[t.name,`subject_id`],hidden:!0,initialValue:t.subject?.id,children:(0,X.jsx)(xb,{})}),t.subject?.name]})},{title:`总分`,width:100,render:(e,t)=>(0,X.jsx)(Ty.Item,{name:[t.name,`total_score`],noStyle:!0,children:(0,X.jsx)(xb,{min:0,placeholder:`总分`,style:{width:90}})})},{title:`得分`,width:100,render:(e,t)=>(0,X.jsx)(Ty.Item,{name:[t.name,`obtained_score`],noStyle:!0,children:(0,X.jsx)(xb,{min:0,placeholder:`得分`,style:{width:90}})})},{title:`占比`,width:70,render:(e,t)=>{let n=c.getFieldValue([`scores`,t.name,`total_score`]),r=c.getFieldValue([`scores`,t.name,`obtained_score`]);return n>0&&r!=null?`${(r/n*100).toFixed(1)}%`:`-`}},{title:`考试状态`,render:(e,t)=>(0,X.jsx)(Ty.Item,{name:[t.name,`review_statuses`],noStyle:!0,initialValue:[],children:(0,X.jsx)(pg.Group,{options:vA})})}]})})]})})]})}function Vxe({exams:e,subjectNames:t}){let n=new Set;e.forEach(e=>e.scores.forEach(e=>n.add(e.subject_id)));let r=[{title:`日期`,dataIndex:`exam_date`,key:`date`,width:110,fixed:`left`},{title:`类型`,dataIndex:`exam_type`,key:`type`,width:80,render:e=>(0,X.jsx)(zE,{children:yA[e]})},...[...n].sort((e,t)=>e-t).map(e=>({title:t[e]||`科目${e}`,key:`s${e}`,width:100,render:(t,n)=>{let r=n.scores.find(t=>t.subject_id===e);return r?`${r.obtained_score}/${r.total_score} (${(r.ratio*100).toFixed(1)}%)`:`-`}}))],i=e.filter(t=>t.scores.some(n=>{let r=e.filter(e=>e.exam_date<=t.exam_date).flatMap(e=>e.scores.filter(e=>e.subject_id===n.subject_id)).sort((t,n)=>{let r=e.find(e=>e.scores.includes(t)),i=e.find(e=>e.scores.includes(n));return(r?.exam_date||``).localeCompare(i?.exam_date||``)}),i=r.findIndex(e=>e.id===n.id);return i<=0?!1:Math.abs(r[i].ratio-r[i-1].ratio)>=.08}));return(0,X.jsxs)(`div`,{children:[i.length>0&&(0,X.jsxs)(`div`,{style:{marginBottom:16,padding:12,background:`#fff7e6`,borderRadius:8},children:[(0,X.jsx)(`strong`,{children:`波动预警:`}),i.slice(0,5).map(e=>(0,X.jsxs)(zE,{color:`orange`,style:{marginTop:4},children:[e.exam_date,` `,yA[e.exam_type]]},e.id))]}),(0,X.jsx)(PE,{rowKey:`id`,columns:r,dataSource:[...e].sort((e,t)=>t.exam_date.localeCompare(e.exam_date)),pagination:{pageSize:15},scroll:{x:`max-content`},size:`small`})]})}var SA=function(e,t){return SA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},SA(e,t)};function CA(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);SA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var wA=function(){return wA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},wA.apply(this,arguments)};function Hxe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function TA(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function EA(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var DA=function(e,t){return DA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},DA(e,t)};function Z(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);DA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Uxe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),OA=new(function(){function e(){this.browser=new Uxe,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(OA.wxa=!0,OA.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?OA.worker=!0:!OA.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(OA.node=!0,OA.svgSupported=!0):Wxe(navigator.userAgent,OA);function Wxe(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Gxe=`12px sans-serif`,Kxe=20,qxe=100,Jxe=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function Yxe(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-Kxe)/qxe}return t}var Xxe=Yxe(Jxe),kA={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=kA.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=Xxe[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}};function AA(e){for(var t in kA)kA.hasOwnProperty(t)&&e[t]&&(kA[t]=e[t])}var Zxe=s({EPSILON:()=>oSe,HashMap:()=>kj,RADIAN_TO_DEGREE:()=>Ij,assert:()=>Cj,assignProps:()=>KA,bind:()=>rj,clone:()=>HA,concatArray:()=>jj,createCanvas:()=>nSe,createHashMap:()=>Aj,createObject:()=>Mj,curry:()=>ij,defaults:()=>qA,disableUserSelect:()=>Nj,each:()=>Q,eqNaN:()=>_j,extend:()=>GA,filter:()=>ej,find:()=>tj,guid:()=>BA,hasOwn:()=>Pj,indexOf:()=>JA,inherits:()=>YA,isArray:()=>aj,isArrayLike:()=>ZA,isBuiltInObject:()=>dj,isDom:()=>pj,isFunction:()=>oj,isGradientObject:()=>mj,isImagePatternObject:()=>hj,isNumber:()=>lj,isObject:()=>uj,isPrimitive:()=>Dj,isRegExp:()=>gj,isString:()=>sj,isStringSafe:()=>cj,isTypedArray:()=>fj,keys:()=>nj,logError:()=>VA,map:()=>QA,merge:()=>UA,mergeAll:()=>WA,mixin:()=>XA,noop:()=>Fj,normalizeCssArray:()=>Sj,reduce:()=>$A,retrieve:()=>vj,retrieve2:()=>yj,retrieve3:()=>bj,setAsPrimitive:()=>Ej,slice:()=>xj,trim:()=>wj}),jA=$A([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),MA=$A([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),NA=Object.prototype.toString,PA=Array.prototype,Qxe=PA.forEach,$xe=PA.filter,FA=PA.slice,eSe=PA.map,IA=function(){}.constructor,LA=IA?IA.prototype:null,RA=`__proto__`,zA=2311,tSe=2**53-1;function BA(){return zA>=tSe&&(zA=0),zA++}function VA(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function HA(e){if(typeof e!=`object`||!e)return e;var t=e,n=NA.call(e);if(n===`[object Array]`){if(!Dj(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=HA(e[r])}}else if(MA[n]){if(!Dj(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!jA[n]&&!Dj(e)&&!pj(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==RA&&(t[o]=HA(e[o]));return t}function UA(e,t,n){if(!uj(t)||!uj(e))return n?HA(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==RA){var i=e[r],a=t[r];uj(a)&&uj(i)&&!aj(a)&&!aj(i)&&!pj(a)&&!pj(i)&&!dj(a)&&!dj(i)&&!Dj(a)&&!Dj(i)?UA(i,a,n):(n||!(r in e))&&(e[r]=HA(t[r]))}return e}function WA(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=UA(n,e[r],t);return n}function GA(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==RA&&(e[n]=t[n]);return e}function KA(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function qA(e,t,n){for(var r=nj(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var nSe=kA.createCanvas;function JA(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function YA(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function XA(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else qA(e,t,n)}function ZA(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function Q(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Qxe)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function QA(e,t,n){if(!e)return[];if(!t)return xj(e);if(e.map&&e.map===eSe)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function $A(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function ej(e,t,n){if(!e)return[];if(!t)return xj(e);if(e.filter&&e.filter===$xe)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function tj(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function nj(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function rSe(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(FA.call(arguments)))}}var rj=LA&&oj(LA.bind)?LA.call.bind(LA.bind):rSe;function ij(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(FA.call(arguments)))}}function aj(e){return Array.isArray?Array.isArray(e):NA.call(e)===`[object Array]`}function oj(e){return typeof e==`function`}function sj(e){return typeof e==`string`}function cj(e){return NA.call(e)===`[object String]`}function lj(e){return typeof e==`number`}function uj(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function dj(e){return!!jA[NA.call(e)]}function fj(e){return!!MA[NA.call(e)]}function pj(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function mj(e){return e.colorStops!=null}function hj(e){return e.image!=null}function gj(e){return NA.call(e)===`[object RegExp]`}function _j(e){return e!==e}function vj(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function yj(e,t){return e??t}function bj(e,t,n){return e??t??n}function xj(e){var t=[...arguments].slice(1);return FA.apply(e,t)}function Sj(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Cj(e,t){if(!e)throw Error(t)}function wj(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Tj=`__ec_primitive__`;function Ej(e){e[Tj]=!0}function Dj(e){return e[Tj]}var iSe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return nj(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Oj=typeof Map==`function`;function aSe(){return Oj?new Map:new iSe}var kj=function(){function e(t){var n=aj(t);this.data=aSe();var r=this;t instanceof e?t.each(i):t&&Q(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Oj?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Aj(e){return new kj(e)}function jj(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Mj(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&GA(n,t),n}function Nj(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function Pj(e,t){return e.hasOwnProperty(t)}function Fj(){}var Ij=180/Math.PI,oSe=2**-52||2**-52,Lj=function(e,t){return Lj=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Lj(e,t)};function Rj(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Lj(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var sSe=s({add:()=>Uj,applyTransform:()=>tM,clone:()=>Vj,copy:()=>Bj,create:()=>zj,dist:()=>Zj,distSquare:()=>$j,distance:()=>Xj,distanceSquare:()=>Qj,div:()=>dSe,dot:()=>fSe,len:()=>Kj,lenSquare:()=>qj,length:()=>cSe,lengthSquare:()=>lSe,lerp:()=>eM,max:()=>rM,min:()=>nM,mul:()=>uSe,negate:()=>pSe,normalize:()=>Yj,scale:()=>Jj,scaleAndAdd:()=>Wj,set:()=>Hj,sub:()=>Gj});function zj(e,t){return e??=0,t??=0,[e,t]}function Bj(e,t){return e[0]=t[0],e[1]=t[1],e}function Vj(e){return[e[0],e[1]]}function Hj(e,t,n){return e[0]=t,e[1]=n,e}function Uj(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Wj(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Gj(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Kj(e){return Math.sqrt(qj(e))}var cSe=Kj;function qj(e){return e[0]*e[0]+e[1]*e[1]}var lSe=qj;function uSe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function dSe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function fSe(e,t){return e[0]*t[0]+e[1]*t[1]}function Jj(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Yj(e,t){var n=Kj(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Xj(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Zj=Xj;function Qj(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var $j=Qj;function pSe(e,t){return e[0]=-t[0],e[1]=-t[1],e}function eM(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function tM(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function nM(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function rM(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var iM=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),mSe=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new iM(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new iM(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new iM(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new iM(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new iM(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new iM(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),aM=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),hSe=Math.log(2);function oM(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/hSe);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*oM(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function sM(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=oM(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*oM(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var cM=`___zrEVENTSAVED`,lM=[];function gSe(e,t,n,r,i){return uM(lM,t,r,i,!0)&&uM(e,n,lM[0],lM[1])}function _Se(e,t){e&&n(e),t&&n(t);function n(e){var t=e[cM];t&&(t.clearMarkers&&t.clearMarkers(),delete e[cM])}}function uM(e,t,n,r,i){if(t.getBoundingClientRect&&OA.domSupported&&!dM(t)){var a=t[cM]||(t[cM]={}),o=ySe(vSe(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function vSe(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){Q(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function ySe(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?sM(s,o):sM(o,s))}function dM(e){return e.nodeName.toUpperCase()===`CANVAS`}var bSe=/([&<>"'])/g,xSe={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function fM(e){return e==null?``:(e+``).replace(bSe,function(e,t){return xSe[t]})}var SSe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,pM=[],CSe=OA.browser.firefox&&+OA.browser.version.split(`.`)[0]<39;function mM(e,t,n,r){return n||={},r?hM(e,t,n):CSe&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?hM(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function hM(e,t,n){if(OA.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(dM(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(uM(pM,e,r,i)){n.zrX=pM[0],n.zrY=pM[1];return}}n.zrX=n.zrY=0}function gM(e){return e||window.event}function _M(e,t,n){if(t=gM(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&mM(e,i,t,n)}else{mM(e,t,t,n);var a=wSe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&SSe.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function wSe(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function vM(e,t,n,r){e.addEventListener(t,n,r)}function TSe(e,t,n,r){e.removeEventListener(t,n,r)}var yM=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function bM(e){return e.which===2||e.which===3}var ESe=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=mM(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in SM)if(SM.hasOwnProperty(t)){var n=SM[t](this._track,e);if(n)return n}},e}();function xM(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function DSe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var SM={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=xM(r)/xM(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=DSe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},OSe=s({clone:()=>jM,copy:()=>TM,create:()=>CM,identity:()=>wM,invert:()=>AM,mul:()=>EM,rotate:()=>OM,scale:()=>kM,translate:()=>DM});function CM(){return[1,0,0,1,0,0]}function wM(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function TM(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function EM(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function DM(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function OM(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function kM(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function AM(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function jM(e){var t=CM();return TM(t,e),t}var MM=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),NM=Math.min,PM=Math.max,FM=Math.abs,IM=[`x`,`y`],kSe=[`width`,`height`],LM=new MM,RM=new MM,zM=new MM,BM=new MM,VM=$M(),HM=VM.minTv,UM=VM.maxTv,WM=[0,0],GM=function(){function e(e,t,n,r){qM(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=NM(e.x,this.x),n=NM(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=PM(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=PM(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return YM(CM(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&MM.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=qM(jSe,t.x,t.y,t.width,t.height)),n instanceof e||(n=qM(MSe,n.x,n.y,n.width,n.height));var s=!!r;VM.reset(i,s);var c=VM.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(WM[0]=1/0,WM[1]=0,QM(l,u,p,m,0,s,a,o),QM(d,f,h,g,1,s,a,o),s&&MM.copy(r,_?VM.useDir?VM.dirMinTv:HM:UM)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){JM(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&JM(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}LM.x=zM.x=t.x,LM.y=BM.y=t.y,RM.x=BM.x=t.x+t.width,RM.y=zM.y=t.y+t.height,LM.transform(n),BM.transform(n),RM.transform(n),zM.transform(n),e.x=NM(LM.x,RM.x,zM.x,BM.x),e.y=NM(LM.y,RM.y,zM.y,BM.y);var s=PM(LM.x,RM.x,zM.x,BM.x),c=PM(LM.y,RM.y,zM.y,BM.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=wM(e||[]),DM(e,e,Hj(ZM,-t.x,-t.y)),kM(e,e,Hj(ZM,r,i)),DM(e,e,Hj(ZM,n.x,n.y)),e},e}(),KM=GM.create,qM=GM.set,JM=GM.copy,YM=GM.calculateTransform,XM=GM.applyTransform,ASe=GM.contain,jSe=new GM(0,0,0,0),MSe=new GM(0,0,0,0),ZM=[];function QM(e,t,n,r,i,a,o,s){var c=FM(t-n),l=FM(r-e),u=NM(c,l),d=IM[i],f=IM[1-i],p=kSe[i];t<n||r<e?c<l?(a&&(UM[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(UM[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=PM(e,n),o[p]=NM(t,r)-o[d]),a&&(u<WM[0]||VM.useDir)&&(WM[0]=NM(u,WM[0]),(c<l||!VM.bidirectional)&&(HM[d]=c,HM[f]=0,VM.useDir&&VM.calcDirMTV()),(c>=l||!VM.bidirectional)&&(HM[d]=-l,HM[f]=0,VM.useDir&&VM.calcDirMTV())))}function $M(){var e=0,t=new MM,n=new MM,r={minTv:new MM,maxTv:new MM,useDir:!1,dirMinTv:new MM,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=PM(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return FM(e)<1e-10}return r}var eN=`silent`;function NSe(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:PSe}}function PSe(){yM(this.event)}var FSe=function(e){Rj(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(aM),tN=function(){function e(e,t){this.x=e,this.y=t}return e}(),ISe=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],nN=new GM(0,0,0,0),rN=function(e){Rj(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new tN(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new FSe,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new mSe(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Q(ISe,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=aN(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new tN(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new tN(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=NSe(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new tN(e,t);if(iN(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new GM(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(nN.copy(u.getBoundingRect()),u.transform&&nN.applyTransform(u.transform),nN.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(iN(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new ESe;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new tN;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(aM);Q([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){rN.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=aN(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Zj(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function LSe(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?eN:!0}return!1}function iN(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=LSe(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==eN)){t.target=o;break}}}function aN(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var oN=32,sN=7;function RSe(e){for(var t=0;e>=oN;)t|=e&1,e>>=1;return e+t}function cN(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;zSe(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function zSe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function lN(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function uN(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function dN(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function BSe(e,t){var n=sN,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=dN(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=uN(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=dN(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=uN(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=sN||m>=sN);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-dN(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-uN(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=sN||g>=sN);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function fN(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<oN){a=cN(e,n,r,t),lN(e,n,r,n+a,t);return}var o=BSe(e,t),s=RSe(i);do{if(a=cN(e,n,r,t),a<s){var c=i;c>s&&(c=s),lN(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var pN=!1;function mN(){pN||(pN=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function hN(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var VSe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hN}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,fN(n,hN)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(mN(),p.z=0),isNaN(p.z2)&&(mN(),p.z2=0),isNaN(p.zlevel)&&(mN(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=JA(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),gN=OA.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},_N={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-_N.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?_N.bounceIn(e*2)*.5:_N.bounceOut(e*2-1)*.5+.5}},vN=Math.pow,yN=Math.sqrt,bN=1e-8,xN=1e-4,SN=yN(3),CN=1/3,wN=zj(),TN=zj(),EN=zj();function DN(e){return e>-bN&&e<bN}function ON(e){return e>bN||e<-bN}function kN(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function AN(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function jN(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(DN(u)&&DN(d))if(DN(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(DN(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=yN(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-vN(-y,CN):vN(y,CN),b=b<0?-vN(-b,CN):vN(b,CN);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*yN(u*u*u)),S=Math.acos(x)/3,C=yN(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+SN*Math.sin(S)))/(3*o),T=(-s+C*(w-SN*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function MN(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(DN(o)){if(ON(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(DN(u))i[0]=-a/(2*o);else if(u>0){var d=yN(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function NN(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function PN(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;wN[0]=c,wN[1]=l;for(var v=0;v<1;v+=.05)TN[0]=kN(e,n,i,o,v),TN[1]=kN(t,r,a,s,v),g=$j(wN,TN),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<xN);y++)m=d-f,h=d+f,TN[0]=kN(e,n,i,o,m),TN[1]=kN(t,r,a,s,m),g=$j(TN,wN),m>=0&&g<p?(d=m,p=g):(EN[0]=kN(e,n,i,o,h),EN[1]=kN(t,r,a,s,h),_=$j(EN,wN),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=kN(e,n,i,o,d),u[1]=kN(t,r,a,s,d)),yN(p)}function HSe(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=kN(e,n,i,o,m),g=kN(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function FN(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function IN(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function USe(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(DN(a)){if(ON(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(DN(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=yN(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function LN(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function RN(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function zN(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;wN[0]=o,wN[1]=s;for(var f=0;f<1;f+=.05){TN[0]=FN(e,n,i,f),TN[1]=FN(t,r,a,f);var p=$j(wN,TN);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<xN);m++){var h=l-u,g=l+u;TN[0]=FN(e,n,i,h),TN[1]=FN(t,r,a,h);var p=$j(TN,wN);if(h>=0&&p<d)l=h,d=p;else{EN[0]=FN(e,n,i,g),EN[1]=FN(t,r,a,g);var _=$j(EN,wN);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=FN(e,n,i,l),c[1]=FN(t,r,a,l)),yN(d)}function WSe(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=FN(e,n,i,f),m=FN(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var GSe=/cubic-bezier\(([0-9,\.e ]+)\)/;function BN(e){var t=e&&GSe.exec(e);if(t){var n=t[1].split(`,`),r=+wj(n[0]),i=+wj(n[1]),a=+wj(n[2]),o=+wj(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:jN(0,r,a,1,e,s)&&kN(0,i,o,1,s[0])}}}var KSe=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Fj,this.ondestroy=e.ondestroy||Fj,this.onrestart=e.onrestart||Fj,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=oj(e)?e:_N[e]||BN(e)},e}(),VN=function(){function e(e){this.value=e}return e}(),qSe=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new VN(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),HN=function(){function e(e){this._list=new qSe,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new VN(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),JSe=s({fastLerp:()=>iP,fastMapToColor:()=>QSe,lerp:()=>aP,lift:()=>rP,liftColor:()=>dP,lum:()=>lP,mapToColor:()=>$Se,modifyAlpha:()=>sP,modifyHSL:()=>oP,parse:()=>tP,parseCssFloat:()=>qN,parseCssInt:()=>KN,random:()=>eCe,stringify:()=>cP,toHex:()=>ZSe}),UN={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 WN(e){return e=Math.round(e),e<0?0:e>255?255:e}function YSe(e){return e=Math.round(e),e<0?0:e>360?360:e}function GN(e){return e<0?0:e>1?1:e}function KN(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?WN(parseFloat(t)/100*255):WN(parseInt(t,10))}function qN(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?GN(parseFloat(t)/100):GN(parseFloat(t))}function JN(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function YN(e,t,n){return e+(t-e)*n}function XN(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function ZN(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var QN=new HN(20),$N=null;function eP(e,t){$N&&ZN($N,t),$N=QN.put(e,$N||t.slice())}function tP(e,t){if(e){t||=[];var n=QN.get(e);if(n)return ZN(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in UN)return ZN(t,UN[r]),eP(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){XN(t,0,0,0,1);return}return XN(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),eP(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){XN(t,0,0,0,1);return}return XN(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),eP(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?XN(t,+l[0],+l[1],+l[2],1):XN(t,0,0,0,1);u=qN(l.pop());case`rgb`:if(l.length>=3)return XN(t,KN(l[0]),KN(l[1]),KN(l[2]),l.length===3?u:qN(l[3])),eP(e,t),t;XN(t,0,0,0,1);return;case`hsla`:if(l.length!==4){XN(t,0,0,0,1);return}return l[3]=qN(l[3]),nP(l,t),eP(e,t),t;case`hsl`:if(l.length!==3){XN(t,0,0,0,1);return}return nP(l,t),eP(e,t),t;default:return}}XN(t,0,0,0,1)}}function nP(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=qN(e[1]),i=qN(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],XN(t,WN(JN(o,a,n+1/3)*255),WN(JN(o,a,n)*255),WN(JN(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function XSe(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function rP(e,t){var n=tP(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return cP(n,n.length===4?`rgba`:`rgb`)}}function ZSe(e){var t=tP(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function iP(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=WN(YN(o[0],s[0],c)),n[1]=WN(YN(o[1],s[1],c)),n[2]=WN(YN(o[2],s[2],c)),n[3]=GN(YN(o[3],s[3],c)),n}}var QSe=iP;function aP(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=tP(t[i]),s=tP(t[a]),c=r-i,l=cP([WN(YN(o[0],s[0],c)),WN(YN(o[1],s[1],c)),WN(YN(o[2],s[2],c)),GN(YN(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var $Se=aP;function oP(e,t,n,r){var i=tP(e);if(e)return i=XSe(i),t!=null&&(i[0]=YSe(oj(t)?t(i[0]):t)),n!=null&&(i[1]=qN(oj(n)?n(i[1]):n)),r!=null&&(i[2]=qN(oj(r)?r(i[2]):r)),cP(nP(i),`rgba`)}function sP(e,t){var n=tP(e);if(n&&t!=null)return n[3]=GN(t),cP(n,`rgba`)}function cP(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function lP(e,t){var n=tP(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function eCe(){return cP([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var uP=new HN(100);function dP(e){if(sj(e)){var t=uP.get(e);return t||(t=rP(e,-.1),uP.put(e,t)),t}else if(mj(e)){var n=GA({},e);return n.colorStops=QA(e.colorStops,function(e){return{offset:e.offset,color:rP(e.color,-.1)}}),n}return e}var fP=Math.round;function pP(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=tP(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var mP=1e-4;function hP(e){return e<mP&&e>-mP}function gP(e){return fP(e*1e3)/1e3}function _P(e){return fP(e*1e4)/1e4}function tCe(e){return`matrix(`+gP(e[0])+`,`+gP(e[1])+`,`+gP(e[2])+`,`+gP(e[3])+`,`+_P(e[4])+`,`+_P(e[5])+`)`}var nCe={left:`start`,right:`end`,center:`middle`,middle:`middle`};function rCe(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function iCe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function aCe(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function vP(e){return e&&!!e.image}function oCe(e){return e&&!!e.svgElement}function yP(e){return vP(e)||oCe(e)}function bP(e){return e.type===`linear`}function xP(e){return e.type===`radial`}function SP(e){return e&&(e.type===`linear`||e.type===`radial`)}function CP(e){return`url(#`+e+`)`}function wP(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function TP(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ij,i=yj(e.scaleX,1),a=yj(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+fP(o*Ij)+`deg, `+fP(s*Ij)+`deg)`),c.join(` `)}var sCe=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),EP=Array.prototype.slice;function DP(e,t,n){return(t-e)*n+e}function OP(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=DP(t[a],n[a],r);return e}function cCe(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=DP(t[o][s],n[o][s],r)}return e}function kP(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function AP(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function lCe(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function uCe(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:EP.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function jP(e){if(ZA(e)){var t=e.length;if(ZA(e[0])){for(var n=[],r=0;r<t;r++)n.push(EP.call(e[r]));return n}return EP.call(e)}return e}function MP(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function dCe(e){return ZA(e&&e[0])?2:1}var NP=0,PP=1,FP=2,IP=3,LP=4,RP=5,zP=6;function BP(e){return e===LP||e===RP}function VP(e){return e===PP||e===FP}var HP=[0,0,0,0],fCe=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=zP,s=t;if(ZA(t)){var c=dCe(t);o=c,(c===1&&!lj(t[0])||c===2&&!lj(t[0][0]))&&(a=!0)}else if(lj(t)&&!_j(t))o=NP;else if(sj(t))if(!isNaN(+t))o=NP;else{var l=tP(t);l&&(s=l,o=IP)}else if(mj(t)){var u=GA({},s);u.colorStops=QA(t.colorStops,function(e){return{offset:e.offset,color:tP(e.color)}}),bP(t)?o=LP:xP(t)&&(o=RP),s=u}i===0?this.valType=o:(o!==this.valType||o===zP)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=oj(n)?n:_N[n]||BN(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=VP(r),c=BP(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?uCe(d,f,r):c&&lCe(d.colorStops,f.colorStops))}if(!o&&r!==RP&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===NP?n[l].additiveValue=n[l].value-p:r===IP?n[l].additiveValue=kP([],n[l].value,p,-1):VP(r)&&(n[l].additiveValue=r===PP?kP([],n[l].value,p,-1):AP([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===IP,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?HP:e[s];if((VP(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(VP(i))i===PP?OP(g,f[r],p[r],h):cCe(g,f[r],p[r],h);else if(BP(i)){var _=f[r],v=p[r],y=i===LP;e[s]={type:y?`linear`:`radial`,x:DP(_.x,v.x,h),y:DP(_.y,v.y,h),colorStops:QA(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:DP(e.offset,n.offset,h),color:MP(OP([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=DP(_.x2,v.x2,h),e[s].y2=DP(_.y2,v.y2,h)):e[s].r=DP(_.r,v.r,h)}else if(c)OP(g,f[r],p[r],h),n||(e[s]=MP(g));else{var b=DP(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===NP?e[n]=e[n]+r:t===IP?(tP(e[n],HP),kP(HP,HP,r,1),e[n]=MP(HP)):t===PP?kP(e[n],e[n],r,1):t===FP&&AP(e[n],e[n],r,1)},e}(),UP=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){VA(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,nj(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new fCe(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===IP&&c&&(c=MP(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,jP(c),r),this._trackKeys.push(o)}s.addKeyframe(e,jP(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new KSe({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return QA(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=jP(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=nj(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function WP(){return new Date().getTime()}var pCe=function(e){Rj(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=WP()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(gN(t),!e._paused&&e.update())}gN(t)},t.prototype.start=function(){this._running||(this._time=WP(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=WP(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=WP()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new UP(e,t.loop);return this.addAnimator(n),n},t}(aM),mCe=300,GP=OA.domSupported,KP=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:QA(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),qP={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},JP=!1;function YP(e){var t=e.pointerType;return t===`pen`||t===`touch`}function hCe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function XP(e){e&&(e.zrByTouch=!0)}function gCe(e,t){return _M(e.dom,new _Ce(e,t),!0)}function ZP(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var _Ce=function(){function e(e,t){this.stopPropagation=Fj,this.stopImmediatePropagation=Fj,this.preventDefault=Fj,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),QP={mousedown:function(e){e=_M(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=_M(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=_M(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=_M(this.dom,e);var t=e.toElement||e.relatedTarget;ZP(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){JP=!0,e=_M(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){JP||(e=_M(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=_M(this.dom,e),XP(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),QP.mousemove.call(this,e),QP.mousedown.call(this,e)},touchmove:function(e){e=_M(this.dom,e),XP(e),this.handler.processGesture(e,`change`),QP.mousemove.call(this,e)},touchend:function(e){e=_M(this.dom,e),XP(e),this.handler.processGesture(e,`end`),QP.mouseup.call(this,e),new Date-+this.__lastTouchMoment<mCe&&QP.click.call(this,e)},pointerdown:function(e){QP.mousedown.call(this,e)},pointermove:function(e){YP(e)||QP.mousemove.call(this,e)},pointerup:function(e){QP.mouseup.call(this,e)},pointerout:function(e){YP(e)||QP.mouseout.call(this,e)}};Q([`click`,`dblclick`,`contextmenu`],function(e){QP[e]=function(t){t=_M(this.dom,t),this.trigger(e,t)}});var $P={pointermove:function(e){YP(e)||$P.mousemove.call(this,e)},pointerup:function(e){$P.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function vCe(e,t){var n=t.domHandlers;OA.pointerEventsSupported?Q(KP.pointer,function(r){eF(t,r,function(t){n[r].call(e,t)})}):(OA.touchEventsSupported&&Q(KP.touch,function(r){eF(t,r,function(i){n[r].call(e,i),hCe(t)})}),Q(KP.mouse,function(r){eF(t,r,function(i){i=gM(i),t.touching||n[r].call(e,i)})}))}function yCe(e,t){OA.pointerEventsSupported?Q(qP.pointer,n):OA.touchEventsSupported||Q(qP.mouse,n);function n(n){function r(r){r=gM(r),ZP(e,r.target)||(r=gCe(e,r),t.domHandlers[n].call(e,r))}eF(t,n,r,{capture:!0})}}function eF(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,vM(e.domTarget,t,n,r)}function tF(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&TSe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var nF=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),bCe=function(e){Rj(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new nF(t,QP),GP&&(r._globalHandlerScope=new nF(document,$P)),vCe(r,r._localHandlerScope),r}return t.prototype.dispose=function(){tF(this._localHandlerScope),GP&&tF(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,GP&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?yCe(this,t):tF(t)}},t}(aM),rF=1;OA.hasGlobalWindow&&(rF=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var iF=rF,aF=.4,oF=`#333`,sF=`#ccc`,xCe=`#eee`,cF=wM,lF=5e-5;function uF(e){return e>lF||e<-lF}var dF=[],fF=[],pF=CM(),mF=Math.abs,hF=function(){function e(){}return e.prototype.getLocalTransform=function(e){return gF(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return uF(this.rotation)||uF(this.x)||uF(this.y)||uF(this.scaleX-1)||uF(this.scaleY-1)||uF(this.skewX)||uF(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(cF(n),this.invTransform=null);return}n||=CM(),t?this.getLocalTransform(n):cF(n),e&&(t?EM(n,e,n):TM(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||CM(),AM(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(dF);var n=dF[0]<0?-1:1,r=dF[1]<0?-1:1,i=((dF[0]-n)*t+n)/dF[0]||0,a=((dF[1]-r)*t+r)/dF[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||CM(),EM(fF,e.invTransform,t),t=fF);var n=this.originX,r=this.originY;(n||r)&&(pF[4]=n,pF[5]=r,EM(fF,t,pF),fF[4]-=n,fF[5]-=r,t=fF),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&tM(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&tM(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&mF(e[0]-1)>1e-10&&mF(e[3]-1)>1e-10?Math.sqrt(mF(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){yF(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&OM(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),gF=hF.getLocalTransform;function _F(){return new hF}var vF=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function yF(e,t){return KA(e,t,vF)}function bF(e){xF||=new HN(100),e||=`12px sans-serif`;var t=xF.get(e);return t||(t={font:e,strWidthCache:new HN(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:kA.measureText(`国`,e).width,asciiCharWidth:kA.measureText(`a`,e).width},xF.put(e,t)),t}var xF;function SCe(e){if(!(SF>=CF)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=kA.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?SF=CF:i>2&&SF++,t}}var SF=0,CF=5;function wF(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=SCe(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function TF(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=kA.measureText(t,e.font).width,n.put(t,r)),r}function EF(e,t,n,r){var i=TF(bF(t),e),a=AF(t);return new GM(OF(0,i,n),kF(0,a,r),i,a)}function DF(e,t,n,r){var i=((e||``)+``).split(`
`);if(i.length===1)return EF(i[0],t,n,r);for(var a=new GM(0,0,0,0),o=0;o<i.length;o++){var s=EF(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function OF(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function kF(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function AF(e){return bF(e).stWideCharWidth}function jF(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function MF(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=jF(r[0],n.width),l+=jF(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var NF=`__zr_normal__`,PF=vF.concat([`ignore`]),CCe=$A(vF,function(e,t){return e[t]=!0,e},{ignore:!1}),FF={},wCe=new GM(0,0,0,0),IF=[],LF=function(){function e(e){this.id=BA(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=wCe,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(FF,n,d):MF(FF,n,d),i.x=FF.x,i.y=FF.y,a=FF.align,o=FF.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=jF(f[0],d.width),m=jF(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new GM(0,0,0,0);i.getLocalTransform(IF),AM(IF,IF),GM.copy(_,d),_.applyTransform(IF)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?sF:oF},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&tP(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,cP(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},GA(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(uj(e))for(var n=nj(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,PF)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(NF,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===NF;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(JA(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){VA(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=VF(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,UF(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=VF(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,UF(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=JA(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=JA(r,e),a=JA(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];GA(t,i),i.textConfig&&(n||={},GA(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=GA({},r?this.textConfig:n.textConfig),GA(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<PF.length;l++){var u=PF[l],d=i&&CCe[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new hF,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},GA(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new UP(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=JA(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){RF(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){RF(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=RF(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();XA(LF,aM),XA(LF,hF);function RF(e,t,n,r,i){n||={};var a=[];BF(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function zF(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function TCe(e){return ZA(e[0])}function ECe(e,t,n){if(ZA(t[n]))if(ZA(e[n])||(e[n]=[]),fj(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),zF(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(TCe(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?zF(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else zF(a,i,o);a.length=i.length}else e[n]=t[n]}function DCe(e,t){return e===t||ZA(e)&&ZA(t)&&OCe(e,t)}function OCe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function BF(e,t,n,r,i,a,o,s){for(var c=nj(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!uj(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(uj(v)&&!ZA(v)&&!mj(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}BF(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=JA(m,x);m.splice(S,1)}}if(i.force||(h=ej(h,function(e){return!DCe(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=jP(n[_]),ECe(n,r,_)}}var x=new UP(n,!1,!1,d?ej(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function VF(e,t,n,r){return!(n&&n.hoverLayer||r)||HF(e)||t&&HF(t)?0:1}function HF(e){return e.type===`text`||e.type===`tspan`}function UF(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var WF=function(e){Rj(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=JA(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=JA(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new GM(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(GM.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(LF);WF.prototype.type=`group`;var kCe=s({dispose:()=>NCe,disposeAll:()=>PCe,getElementSSRData:()=>XF,getInstance:()=>FCe,init:()=>qF,registerPainter:()=>JF,registerSSRDataGetter:()=>ZF,version:()=>ICe}),GF={},KF={};function ACe(e){delete KF[e]}function jCe(e){if(!e)return!1;if(typeof e==`string`)return lP(e,1)<aF;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=lP(t[i].color,1);return n/=r,n<aF}return!1}var MCe=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new VSe,a=n.renderer||`canvas`;GF[a]||(a=nj(GF)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new GF[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!OA.node&&!OA.worker&&!s?new bCe(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?OA.touchEventsSupported:!!l,d=44,f;u&&(f=yj(n.pointerSize,d)),this.handler=new rN(i,o,c,o.root,f),this.animation=new pCe({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=jCe(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=WP(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=WP();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof WF&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,ACe(this.id))},e}();function qF(e,t){var n=new MCe(BA(),e,t);return KF[n.id]=n,n}function NCe(e){e.dispose()}function PCe(){for(var e in KF)KF.hasOwnProperty(e)&&KF[e].dispose();KF={}}function FCe(e){return KF[e]}function JF(e,t){GF[e]=t}var YF;function XF(e){if(typeof YF==`function`)return YF(e)}function ZF(e){YF=e}var ICe=`6.1.0`,QF=1e-4,$F=20;function LCe(e){return e.replace(/^\s+|\s+$/g,``)}var eI=Math.min,tI=Math.max,nI=Math.abs,rI=Math.round,iI=Math.floor,aI=Math.ceil,oI=Math.pow,sI=Math.log,cI=Math.LN10,lI=Math.PI,RCe=Math.random;function uI(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var dI=zCe;function zCe(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return fI(e,t,n)}function fI(e,t,n){return sj(e)?pI(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function BCe(e){return sj(e)&&pI(e)}function pI(e){return!!LCe(e).match(/%$/)}function mI(e,t,n){return isNaN(t)?n?``+e:+e:(t=eI(tI(0,t),$F),e=(+e).toFixed(t),n?e:+e)}function VCe(e,t,n){return t??=10,mI(e,t,n)}function hI(e){return e.sort(function(e,t){return e-t}),e}function gI(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(rI(e*t)/t===e)return n}return _I(e)}function _I(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return tI(0,(a<0?0:i-1-a)-r)}function HCe(e,t){var n=iI(sI(e[1]-e[0])/cI),r=rI(sI(nI(t[1]-t[0]))/cI),i=eI(tI(-n+r,0),$F);return isFinite(i)?i:$F}function vI(e,t,n){var r=nI(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=sI(2*nI(n||1)*nI(r))/cI,a=sI(nI(t))/cI,o=tI(0,aI(-i+a));return isFinite(o)||(o=NaN),o}function UCe(e,t,n){return e[t]&&yI(e,n)[t]||0}function yI(e,t){var n=$A(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=oI(10,t),i=QA(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=QA(i,function(e){return iI(e)}),s=$A(o,function(e,t){return e+t},0),c=QA(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return QA(o,function(e){return e/r})}function bI(e,t){var n=tI(gI(e),gI(t)),r=e+t;return n>$F?r:mI(r,n)}var xI=oI(2,53)-1;function SI(e){var t=lI*2;return(e%t+t)%t}function CI(e){return e>-QF&&e<QF}var WCe=/^(?:(\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 wI(e){if(e instanceof Date)return e;if(sj(e)){var t=WCe.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(rI(e))}function TI(e){return oI(10,EI(e))}function EI(e){if(e===0)return 0;var t=iI(sI(e)/cI);return e/oI(10,t)>=10&&t++,t}function DI(e,t){var n=EI(e),r=oI(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,mI(e,-n)}function OI(e,t){var n=(e.length-1)*t+1,r=iI(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function kI(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function AI(e){var t=parseFloat(e);return t==e&&(t!==0||!sj(e)||e.indexOf(`x`)<=0)?t:NaN}function jI(e){return!isNaN(AI(e))}function MI(){return rI(RCe()*9)}function NI(e,t){return t===0?e:NI(t,e%t)}function PI(e,t){return e==null?t:t==null?e:e*t/NI(e,t)}function FI(e){return e!=null&&isFinite(e)}var GCe=`[ECharts] `,II={},KCe=typeof console<`u`&&console.warn&&console.log;function qCe(e,t,n){if(KCe){if(n){if(II[t])return;II[t]=!0}console[e](GCe+t)}}function LI(e,t){qCe(`error`,e,t)}function RI(e){throw Error(e)}function zI(e,t,n){return(t-e)*n+e}var BI=`series\0`,VI=`\0_ec_\0`;function HI(e){return e instanceof Array?e:e==null?[]:[e]}function UI(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var WI=`fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding`.split(`.`);function GI(e){return uj(e)&&!aj(e)&&!(e instanceof Date)?e.value:e}function JCe(e){return uj(e)&&!(e instanceof Array)}function KI(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=Aj();Q(t,function(e,n){if(!uj(e)){t[n]=null;return}});var s=YCe(e,o,n);return(r||i)&&XCe(s,e,o,t),r&&ZCe(s,t),r||i?QCe(s,t,i):a&&$Ce(s,t),ewe(s),s}function YCe(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||ZI(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function XCe(e,t,n,r){Q(r,function(i,a){if(!(!i||i.id==null)){var o=JI(i.id),s=n.get(o);if(s!=null){var c=e[s];Cj(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function ZCe(e,t){Q(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!ZI(n)&&!ZI(a)&&qI(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function QCe(e,t,n){Q(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||ZI(r.existing)||r.existing&&t.id!=null&&!qI(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function $Ce(e,t){Q(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function ewe(e){var t=Aj();Q(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),Q(e,function(e){var n=e.newOption;Cj(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),Q(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(uj(i)){if(a.name=i.name==null?r?r.name:BI+n:JI(i.name),r)a.id=JI(r.id);else if(i.id!=null)a.id=JI(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function qI(e,t,n){var r=YI(t[e],null),i=YI(n[e],null);return r!=null&&i!=null&&r===i}function JI(e){return YI(e,``)}function YI(e,t){return e==null?t:sj(e)?e:lj(e)||cj(e)?e+``:t}function XI(e){var t=e.name;return!!(t&&t.indexOf(BI))}function ZI(e){return e&&e.id!=null&&JI(e.id).indexOf(VI)===0}function twe(e){return VI+e}function nwe(e,t,n){Q(e,function(e){var r=e.newOption;uj(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=rwe(t,r,e.existing,n))})}function rwe(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function iwe(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=YI(e[r].seriesId,null);if(a==null)return;for(var o=HI(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function QI(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return aj(t.dataIndex)?QA(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return aj(t.name)?QA(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function $I(){var e=`__ec_inner_`+awe++;return function(t){return t[e]||(t[e]={})}}var awe=MI();function eL(e,t,n){var r=tL(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=rL(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function tL(e,t){var n;if(sj(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=Aj(),a={},o=!1;return Q(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&JA(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var nL={useDefault:!0,enableAll:!1,enableNone:!1},owe={useDefault:!1,enableAll:!0,enableNone:!0};function rL(e,t,n,r){r||=nL;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function iL(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function aL(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function swe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function cwe(e){return e===`auto`?OA.domSupported?`html`:`richText`:e||`html`}function oL(e,t){var n=Aj(),r=[];return Q(e,function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)}),{keys:r,buckets:n}}function sL(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(lj(r)){var o=zI(n||0,r,i);return mI(o,a?Math.max(gI(n||0),gI(r)):t)}else if(sj(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=zI(p,m,i);s[d]=mI(o,a?Math.max(gI(p),gI(m)):t)}}return s}}var cL=function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e}();function lL(e){e.option=e.parentModel=e.ecModel=null}function uL(){return[1/0,-1/0]}function dL(e,t){mL(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function fL(e,t){mL(t)&&t<e[0]&&(e[0]=t)}function pL(e,t){mL(t)&&t>e[1]&&(e[1]=t)}function lwe(e,t){hL(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function mL(e){return e!=null&&isFinite(e)}function hL(e,t){return mL(e)&&mL(t)&&e<=t}function uwe(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function gL(e){hL(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function _L(){var e=`__ec_once_`+dwe++;return function(t,n){Pj(t,e)||(t[e]=1,n())}}var dwe=MI();function vL(e,t,n){var r=Aj(),i=0;Q(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function fwe(e){return e.value+``}function pwe(e){return e+``}function yL(e,t){return yj(t,!0)?e.seriesIndex+2:0}function bL(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function xL(e,t){return{seriesType:e,overallReset:t}}function SL(e){return{overallReset:e}}var mwe=`.`,CL=`___EC__COMPONENT__CONTAINER___`,wL=`___EC__EXTENDED_CLASS___`;function TL(e){var t={main:``,sub:``};if(e){var n=e.split(mwe);t.main=n[0]||``,t.sub=n[1]||``}return t}function hwe(e){Cj(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function gwe(e){return!!(e&&e[wL])}function EL(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return _we(t)?n=function(e){Z(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},YA(n,this)),GA(n.prototype,e),n[wL]=!0,n.extend=this.extend,n.superCall=bwe,n.superApply=xwe,n.superClass=t,n}}function _we(e){return oj(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function DL(e,t){e.extend=t.extend}var vwe=Math.round(Math.random()*10);function ywe(e){var t=[`__\0is_clz`,vwe++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function bwe(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function xwe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function OL(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){hwe(r),e.prototype.type=r;var i=TL(r);if(!i.sub)t[i.main]=e;else if(i.sub!==CL){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[CL]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=TL(e),r=[],i=t[n.main];return i&&i[CL]?Q(i,function(e,t){t!==CL&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[TL(e).main]},e.getAllClassMainTypes=function(){var e=[];return Q(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[TL(e).main];return n&&n[CL]};function n(e){var n=t[e.main];return(!n||!n[CL])&&(n=t[e.main]={},n[CL]=!0),n}}function kL(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&JA(r,s)>=0||i&&JA(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Swe=kL([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Cwe=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Swe(this,e,t)},e}(),AL=new HN(50);function wwe(e){if(typeof e==`string`){var t=AL.get(e);return t&&t.image}else return e}function jL(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=AL.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!NL(t)&&a.pending.push(o)):(t=kA.loadImage(e,ML,ML),t.__zrImageSrc=e,AL.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function ML(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function NL(e){return e&&e.width&&e.height}var PL=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Twe(e,t,n,r,i){var a={};return FL(a,e,t,n,r,i),a.text}function FL(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
`);a=IL(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)LL(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
`),e.isTruncated=s}function IL(e,t,n,r){r||={};var i=GA({},r);n=yj(n,`...`),i.maxIterations=yj(r.maxIterations,2);var a=i.minChar=yj(r.minChar,0),o=i.fontMeasureInfo=bF(t),s=o.asciiCharWidth;i.placeholder=yj(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=TF(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function LL(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=TF(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Ewe(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=TF(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Ewe(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=wF(n,e.charCodeAt(i));return i}function Dwe(e,t,n,r){var i=WL(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=AF(l),f=yj(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?BL(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=IL(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)LL(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=bF(l),S=0;S<_.length;S++)w=Math.max(TF(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var Owe=function(){function e(){}return e}(),RL=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),kwe=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Awe(e,t,n,r,i){var a=new kwe,o=WL(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=PL.lastIndex=0,h;(h=PL.exec(o))!=null;){var g=h.index;g>m&&zL(a,o.substring(m,g),t,p),zL(a,h[2],t,p,h[1]),m=PL.lastIndex}m<o.length&&zL(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,M=j?j[1]+j[3]:0,N=k.font=A.font||t.font;k.contentHeight=AF(N);var P=yj(A.height,k.contentHeight);if(k.innerHeight=P,j&&(P+=j[0]+j[2]),k.height=P,k.lineHeight=bj(A.lineHeight,t.lineHeight,P),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var F=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<F;break outer}var I=A.width,L=I==null||I===`auto`;if(typeof I==`string`&&I.charAt(I.length-1)===`%`)k.percentWidth=I,_.push(k),k.contentWidth=TF(bF(N),k.text);else{if(L){var R=A.backgroundColor,z=R&&R.image;z&&(z=wwe(z),NL(z)&&(k.width=Math.max(k.width,z.width*P/z.height)))}var B=b&&u!=null?u-D:null;B!=null&&B<k.width?!L||B<M?(k.text=``,k.width=k.contentWidth=0):(FL(S,k.text,B-M,N,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=TF(bF(N),k.text)):k.contentWidth=TF(bF(N),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=yj(u,y),a.outerHeight=a.height=yj(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],V=k.percentWidth;k.width=parseInt(V,10)/100*a.width}return a}function zL(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=jF(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
`),l=!0),r.accumWidth=m}else{var h=BL(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
`);for(var g=bF(c),_=0;_<u.length;_++){var v=u[_],y=new Owe;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:TF(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new RL)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new RL([y]))}}function jwe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Mwe=$A(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Nwe(e){return jwe(e)?!!Mwe[e]:!0}function BL(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=bF(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=wF(d,p.charCodeAt(0)),h=r?!1:!Nwe(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function VL(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;GM.set(HL,OF(n,o,i),kF(r,s,a),o,s),GM.intersect(t,HL,null,UL);var c=UL.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=OF(c.x,c.width,i,!0),e.baseY=kF(c.y,c.height,a,!0)}}var HL=new GM(0,0,0,0),UL={outIntersectRect:{},clamp:!0};function WL(e){return e==null?e=``:e+=``}function Pwe(e){var t=WL(e.text),n=e.font;return GL(e,TF(bF(n),t),AF(n),null)}function GL(e,t,n,r){var i=new GM(OF(e.x||0,t,e.textAlign),kF(e.y||0,n,e.textBaseline),t,n),a=r??(KL(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function KL(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var qL=`__zr_style_`+Math.round(Math.random()*10),JL={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},YL={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};JL[qL]=!0;var XL=[`z`,`z2`,`invisible`],Fwe=[`invisible`],ZL=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=nj(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Iwe(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new GM(0,0,0,0),t?GM.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new GM(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:GA(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Mj(JL,e)},t.prototype.useStyle=function(e){e[qL]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[qL]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,XL)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l)if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=nj(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=nj(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l);if(!c)for(var h=this.__inHover?Fwe:XL,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return GA(e,t),e},t.prototype.getAnimationStyleProps=function(){return YL},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(LF),QL=new GM(0,0,0,0),$L=new GM(0,0,0,0);function Iwe(e,t,n){return QL.copy(e.getBoundingRect()),e.transform&&QL.applyTransform(e.transform),$L.width=t,$L.height=n,!QL.intersect($L)}var eR=Math.min,tR=Math.max,nR=Math.sin,rR=Math.cos,iR=Math.PI*2,aR=zj(),oR=zj(),sR=zj();function cR(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],c=1;c<e.length;c++)r=e[c],i=eR(i,r[0]),a=tR(a,r[0]),o=eR(o,r[1]),s=tR(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function lR(e,t,n,r,i,a){i[0]=eR(e,n),i[1]=eR(t,r),a[0]=tR(e,n),a[1]=tR(t,r)}var uR=[],dR=[];function Lwe(e,t,n,r,i,a,o,s,c,l){var u=MN,d=kN,f=u(e,n,i,o,uR);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,uR[p]);c[0]=eR(m,c[0]),l[0]=tR(m,l[0])}f=u(t,r,a,s,dR);for(var p=0;p<f;p++){var h=d(t,r,a,s,dR[p]);c[1]=eR(h,c[1]),l[1]=tR(h,l[1])}c[0]=eR(e,c[0]),l[0]=tR(e,l[0]),c[0]=eR(o,c[0]),l[0]=tR(o,l[0]),c[1]=eR(t,c[1]),l[1]=tR(t,l[1]),c[1]=eR(s,c[1]),l[1]=tR(s,l[1])}function Rwe(e,t,n,r,i,a,o,s){var c=LN,l=FN,u=tR(eR(c(e,n,i),1),0),d=tR(eR(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=eR(e,i,f),o[1]=eR(t,a,p),s[0]=tR(e,i,f),s[1]=tR(t,a,p)}function zwe(e,t,n,r,i,a,o,s,c){var l=nM,u=rM,d=Math.abs(i-a);if(d%iR<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(aR[0]=rR(i)*n+e,aR[1]=nR(i)*r+t,oR[0]=rR(a)*n+e,oR[1]=nR(a)*r+t,l(s,aR,oR),u(c,aR,oR),i%=iR,i<0&&(i+=iR),a%=iR,a<0&&(a+=iR),i>a&&!o?a+=iR:i<a&&o&&(i+=iR),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(sR[0]=rR(p)*n+e,sR[1]=nR(p)*r+t,l(s,sR,s),u(c,sR,c))}var fR={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},pR=[],mR=[],hR=[],gR=[],_R=[],vR=[],yR=Math.min,bR=Math.max,xR=Math.cos,SR=Math.sin,CR=Math.abs,wR=Math.PI,TR=wR*2,ER=typeof Float32Array<`u`,DR=[];function OR(e){return Math.round(e/wR*1e8)/1e8%2*wR}function kR(e,t){var n=OR(e[0]);n<0&&(n+=TR);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=TR?i=n+TR:t&&n-i>=TR?i=n-TR:!t&&n>i?i=n+(TR-OR(n-i)):t&&n<i&&(i=n-(TR-OR(i-n))),e[0]=n,e[1]=i}var AR=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=CR(n/iF/e)||0,this._uy=CR(n/iF/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(fR.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=CR(e-this._xi),r=CR(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(fR.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(fR.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(fR.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),DR[0]=r,DR[1]=i,kR(DR,a),r=DR[0],i=DR[1];var o=i-r;return this.addData(fR.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=xR(i)*n+e,this._yi=SR(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(fR.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(fR.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&ER&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(ER&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ER&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){hR[0]=hR[1]=_R[0]=_R[1]=Number.MAX_VALUE,gR[0]=gR[1]=vR[0]=vR[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case fR.M:t=r=e[a++],n=i=e[a++],_R[0]=r,_R[1]=i,vR[0]=r,vR[1]=i;break;case fR.L:lR(t,n,e[a],e[a+1],_R,vR),t=e[a++],n=e[a++];break;case fR.C:Lwe(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],_R,vR),t=e[a++],n=e[a++];break;case fR.Q:Rwe(t,n,e[a++],e[a++],e[a],e[a+1],_R,vR),t=e[a++],n=e[a++];break;case fR.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=xR(f)*u+c,i=SR(f)*d+l),zwe(c,l,u,d,f,p,m,_R,vR),t=xR(p)*u+c,n=SR(p)*d+l;break;case fR.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];lR(r,i,r+h,i+g,_R,vR);break;case fR.Z:t=r,n=i;break}nM(hR,hR,_R),rM(gR,gR,vR)}return a===0&&(hR[0]=hR[1]=gR[0]=gR[1]=0),new GM(hR[0],hR[1],gR[0]-hR[0],gR[1]-hR[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case fR.M:i=o=e[d++],a=s=e[d++];break;case fR.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(CR(_)>n||CR(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case fR.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=HSe(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case fR.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=WSe(i,a,y,b,h,g,10),i=h,a=g;break;case fR.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=xR(D)*T+C,s=SR(D)*E+w),m=bR(T,E)*yR(TR,Math.abs(O)),i=xR(k)*T+C,a=SR(k)*E+w;break;case fR.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case fR.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==fR.L&&v>0&&(e.lineTo(y,b),v=0),S){case fR.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case fR.L:u=n[x++],d=n[x++];var w=CR(u-c),T=CR(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case fR.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],N=n[x++],P=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;NN(c,k,j,N,D,pR),NN(l,A,M,P,D,mR),e.bezierCurveTo(pR[1],mR[1],pR[2],mR[2],pR[3],mR[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case fR.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;RN(c,k,j,D,pR),RN(l,A,M,D,mR),e.quadraticCurveTo(pR[1],mR[1],pR[2],mR[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case fR.A:var F=n[x++],I=n[x++],L=n[x++],R=n[x++],z=n[x++],B=n[x++],V=n[x++],H=!n[x++],U=L>R?L:R,W=CR(L-R)>.001,G=z+B,K=!1;if(f){var E=p[g++];h+E>_&&(G=z+B*(_-h)/E,K=!0),h+=E}if(W&&e.ellipse?e.ellipse(F,I,L,R,V,z,G,H):e.arc(F,I,U,z,G,H),K)break lo;C&&(o=xR(z)*L+F,s=SR(z)*R+I),c=xR(G)*L+F,l=SR(G)*R+I;break;case fR.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var q=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var te=_-h;e.moveTo(u,d),e.lineTo(u+yR(te,q),d),te-=q,te>0&&e.lineTo(u+q,d+yR(te,ee)),te-=ee,te>0&&e.lineTo(u+bR(q-te,0),d+ee),te-=q,te>0&&e.lineTo(u,d+bR(ee-te,0));break lo}h+=E}e.rect(u,d,q,ee);break;case fR.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=fR,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function jR(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function Bwe(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:PN(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function MR(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:zN(e,t,n,r,i,a,s,c,null)<=l/2}var NR=Math.PI*2;function PR(e){return e%=NR,e<0&&(e+=NR),e}var FR=Math.PI*2;function Vwe(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%FR<1e-4)return!0;if(a){var d=r;r=PR(i),i=PR(d)}else r=PR(r),i=PR(i);r>i&&(i+=FR);var f=Math.atan2(c,s);return f<0&&(f+=FR),f>=r&&f<=i||f+FR>=r&&f+FR<=i}function IR(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var LR=AR.CMD,RR=Math.PI*2,Hwe=1e-4;function Uwe(e,t){return Math.abs(e-t)<Hwe}var zR=[-1,-1,-1],BR=[-1,-1];function Wwe(){var e=BR[0];BR[0]=BR[1],BR[1]=e}function Gwe(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=jN(t,r,a,s,l,zR);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=zR[h],_=g===0||g===1?.5:1;kN(e,n,i,o,g)<c||(f<0&&(f=MN(t,r,a,s,BR),BR[1]<BR[0]&&f>1&&Wwe(),p=kN(t,r,a,s,BR[0]),f>1&&(m=kN(t,r,a,s,BR[1]))),f===2?g<BR[0]?d+=p<t?_:-_:g<BR[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<BR[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Kwe(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=USe(t,r,a,s,zR);if(c===0)return 0;var l=LN(t,r,a);if(l>=0&&l<=1){for(var u=0,d=FN(t,r,a,l),f=0;f<c;f++){var p=zR[f]===0||zR[f]===1?.5:1,m=FN(e,n,i,zR[f]);m<o||(zR[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=zR[0]===0||zR[0]===1?.5:1,m=FN(e,n,i,zR[0]);return m<o?0:a<t?p:-p}}function qwe(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);zR[0]=-c,zR[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=RR-1e-4){r=0,i=RR;var u=a?1:-1;return o>=zR[0]+e&&o<=zR[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=RR,i+=RR);for(var f=0,p=0;p<2;p++){var m=zR[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=RR+h),(h>=r&&h<=i||h+RR>=r&&h+RR<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function VR(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===LR.M&&m>1&&(n||(s+=IR(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case LR.M:u=a[m++],d=a[m++],c=u,l=d;break;case LR.L:if(n){if(jR(c,l,a[m],a[m+1],t,r,i))return!0}else s+=IR(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case LR.C:if(n){if(Bwe(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Gwe(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case LR.Q:if(n){if(MR(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Kwe(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case LR.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=IR(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Vwe(_,v,b,x,x+S,C,t,w,i))return!0}else s+=qwe(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case LR.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(jR(u,d,f,d,t,r,i)||jR(f,d,f,p,t,r,i)||jR(f,p,u,p,t,r,i)||jR(u,p,u,d,t,r,i))return!0}else s+=IR(f,d,f,p,r,i),s+=IR(u,p,u,d,r,i);break;case LR.Z:if(n){if(jR(c,l,u,d,t,r,i))return!0}else s+=IR(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Uwe(l,d)&&(s+=IR(c,l,u,d,r,i)||0),s!==0}function Jwe(e,t,n){return VR(e,0,!1,t,n)}function Ywe(e,t,n,r){return VR(e,t,!0,n,r)}var HR=qA({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},JL),Xwe={style:qA({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},YL.style)},UR=vF.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),WR=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<UR.length;++s)i[UR[s]]=this[UR[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=nj(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?GA(this.style,o):this.useStyle(o):a===`shape`?GA(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(sj(e)){var t=lP(e,0);return t>.5?oF:t>.2?xCe:sF}else if(e)return sF}return oF},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(sj(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==lP(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new AR(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Ywe(a,o/s,e,t)))return!0}if(this.hasFill())return Jwe(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:GA(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Mj(HR,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=GA({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=GA({},r.shape),GA(c,n.shape)):(c=GA({},i?this.shape:r.shape),GA(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=GA({},this.shape);for(var l={},u=nj(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Xwe},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){Rj(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return HA(e.style)},n.prototype.getDefaultShape=function(){return HA(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(ZL),Zwe=qA({strokeFirst:!0,font:Gxe,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},HR),GR=function(e){Rj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return KL(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Mj(Zwe,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Pwe(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(ZL);GR.prototype.type=`tspan`;var Qwe=qA({x:0,y:0},JL),$we={style:qA({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},YL.style)};function eTe(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var KR=function(e){Rj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Mj(Qwe,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=eTe(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return $we},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new GM(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(ZL);KR.prototype.type=`image`;function tTe(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var qR=Math.round;function JR(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(qR(r*2)===qR(i*2)&&(e.x1=e.x2=XR(r,s,!0)),qR(a*2)===qR(o*2)&&(e.y1=e.y2=XR(a,s,!0)),e):e}}function YR(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=XR(r,s,!0),e.y=XR(i,s,!0),e.width=Math.max(XR(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(XR(i+o,s,!1)-e.y,o===0?0:1),e):e}}function XR(e,t,n){if(!t)return e;var r=qR(e*2);return(r+qR(t))%2==0?r/2:(r+(n?1:-1))/2}var nTe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),rTe={},ZR=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new nTe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=YR(rTe,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?tTe(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(WR);ZR.prototype.type=`rect`;var QR={fill:`#000`},$R=2,ez={},iTe={style:qA({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},YL.style)},tz=function(e){Rj(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=QR,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,sTe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new GM(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||QR},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return GA(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=nj(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},GA(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return iTe},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;VL(ez,r.overflowRect,i,a,o,s),i=ez.baseX,a=ez.baseY;var c=Dwe(uz(e),e,ez.outerWidth,ez.outerHeight),l=dz(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=kF(a,c.contentHeight,s);if(l||n){var _=OF(i,f,o),v=kF(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=lz(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=cz(`fill`in e?e.fill:(x=!0,r.fill)),C=sz(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=$R,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(GR),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,iz(D,e),g+=m,E.setBoundingRect(GL(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;VL(ez,t.overflowRect,i,a,n,r),i=ez.baseX,a=ez.baseY;var o=Awe(uz(e),e,ez.outerWidth,ez.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=OF(i,c,n),f=kF(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;dz(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&dz(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=lz(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(GR),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=cz(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=sz(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=$R,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=bj(s.opacity,t.opacity,1),iz(p,s),y&&(p.lineWidth=bj(s.lineWidth,t.lineWidth,g),p.lineDash=yj(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(GL(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(ZR),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=yj(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(KR),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=yj(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=bj(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return az(e)&&(t=[e.fontStyle,e.fontWeight,rz(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&wj(t)||e.textFont||e.font},t}(ZL),aTe={left:!0,right:1,center:1},oTe={top:1,bottom:1,middle:1},nz=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function rz(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function iz(e,t){for(var n=0;n<nz.length;n++){var r=nz[n],i=t[r];i!=null&&(e[r]=i)}}function az(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function sTe(e){return oz(e),Q(e.rich,oz),e}function oz(e){if(e){e.font=tz.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||aTe[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||oTe[n]?n:`top`,e.padding&&=Sj(e.padding)}}function sz(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function cz(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function lz(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function uz(e){var t=e.text;return t!=null&&(t+=``),t}function dz(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var fz=$I(),pz=function(e,t,n,r){if(r){var i=fz(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=fz(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},mz=`series`,hz=Aj([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),gz=`original`,_z=`arrayRows`,vz=`objectRows`,yz=`keyedColumns`,bz=`typedArray`,cTe=`unknown`,xz=`column`,Sz=`Roam`,lTe=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Cz=function(){function e(e){Q(lTe,function(t){this[t]=rj(e[t],e)},this)}return e}();function wz(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Tz=1,Ez={},Dz=$I(),Oz=$I(),kz=[`emphasis`,`blur`,`select`],Az=[`normal`,`emphasis`,`blur`,`select`],jz=`highlight`,Mz=`downplay`,Nz=`select`,Pz=`unselect`,Fz=`toggleSelect`,Iz=`selectchanged`;function Lz(e){return e!=null&&e!==`none`}function Rz(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function zz(e){Rz(e,`emphasis`,2)}function Bz(e){e.hoverState===2&&Rz(e,`normal`,0)}function Vz(e){Rz(e,`blur`,1)}function Hz(e){e.hoverState===1&&Rz(e,`normal`,0)}function uTe(e){e.selected=!0}function dTe(e){e.selected=!1}function Uz(e,t,n){t(e,n)}function Wz(e,t,n){Uz(e,t,n),e.isGroup&&e.traverse(function(e){Uz(e,t,n)})}function Gz(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function fTe(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function pTe(e,t,n,r){var i=n&&JA(n,`select`)>=0,a=!1;if(e instanceof WR){var o=Dz(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Lz(s)||Lz(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=GA({},r),l=GA({},l),l.fill=s):!Lz(l.fill)&&Lz(s)?(a=!0,r=GA({},r),l=GA({},l),l.fill=dP(s)):!Lz(l.stroke)&&Lz(c)&&(a||(r=GA({},r),l=GA({},l)),l.stroke=dP(c)),r.style=l}}if(r&&r.z2==null){a||(r=GA({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function mTe(e,t,n){if(n&&n.z2==null){n=GA({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function hTe(e,t,n){var r=JA(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:fTe(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=GA({},n),o=GA({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Kz(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return pTe(this,e,t,n);if(e===`blur`)return hTe(this,e,n);if(e===`select`)return mTe(this,e,n)}return n}function qz(e){e.stateProxy=Kz;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Kz),n&&(n.stateProxy=Kz)}function Jz(e,t){!nB(e,t)&&!e.__highByOuter&&Wz(e,zz)}function Yz(e,t){!nB(e,t)&&!e.__highByOuter&&Wz(e,Bz)}function Xz(e,t){e.__highByOuter|=1<<(t||0),Wz(e,zz)}function Zz(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Wz(e,Bz)}function Qz(e){Wz(e,Vz)}function $z(e){Wz(e,Hz)}function eB(e){Wz(e,uTe)}function tB(e){Wz(e,dTe)}function nB(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function rB(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Oz(i),o=wz(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Hz(e)}),s&&n.push(i)),a.isBlured=!1}),Q(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function iB(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&$z(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Vz(e)}),ZA(t))a(e.getData(),t);else if(uj(t))for(var u=nj(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Oz(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function aB(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){Oz(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Vz(e)})}}}function gTe(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=QI(i,t);a=(aj(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=fz(o);iB(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&iB(r,u,d,n)}}}function oB(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(fz(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function _Te(e,t,n){var r=fz(e),i=oB(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&aB(r.componentMainType,r.componentIndex,n),Q(a,function(e){return Jz(e,t)})):(iB(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&aB(r.componentMainType,r.componentIndex,n),Jz(e,t))}function vTe(e,t,n){rB(n);var r=fz(e),i=oB(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Q(i,function(e){return Yz(e,t)}):Yz(e,t)}function yTe(e,t,n){if(hB(t)){var r=t.dataType,i=QI(e.getData(r),t);aj(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function sB(e){Q(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?eB(t):tB(t)})})}function bTe(e){var t=[];return e.eachSeries(function(e){Q(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function cB(e,t,n){pB(e,!0),Wz(e,qz),uB(e,t,n)}function xTe(e){pB(e,!1)}function lB(e,t,n,r){r?xTe(e):cB(e,t,n)}function uB(e,t,n){var r=fz(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var dB=[`emphasis`,`blur`,`select`],STe={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function fB(e,t,n,r){n||=`itemStyle`;for(var i=0;i<dB.length;i++){var a=dB[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[STe[n]]()}}function pB(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function mB(e){return!!(e&&e.__highDownDispatcher)}function CTe(e,t,n){var r=fz(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function wTe(e){var t=Ez[e];return t==null&&Tz<=32&&(t=Ez[e]=Tz++),t}function hB(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function gB(e){var t=e.type;return t===`highlight`||t===`downplay`}function TTe(e){var t=Dz(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var _B=AR.CMD,ETe=[[],[],[]],vB=Math.sqrt,DTe=Math.atan2;function yB(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=_B.M,d=_B.C,f=_B.L,p=_B.R,m=_B.A,h=_B.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=vB(t[0]*t[0]+t[1]*t[1]),y=vB(t[2]*t[2]+t[3]*t[3]),b=DTe(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],tM(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],tM(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=ETe[c];x[0]=n[o++],x[1]=n[o++],tM(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var bB=Math.sqrt,xB=Math.sin,SB=Math.cos,CB=Math.PI;function wB(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function TB(e,t){return(e[0]*t[0]+e[1]*t[1])/(wB(e)*wB(t))}function EB(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(TB(e,t))}function DB(e,t,n,r,i,a,o,s,c,l,u){var d=CB/180*c,f=SB(d)*(e-n)/2+xB(d)*(t-r)/2,p=-1*xB(d)*(e-n)/2+SB(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=bB(m),s*=bB(m));var h=(i===a?-1:1)*bB((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+SB(d)*g-xB(d)*_,y=(t+r)/2+xB(d)*g+SB(d)*_,b=EB([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=EB(x,S);if(TB(x,S)<=-1&&(C=CB),TB(x,S)>=1&&(C=0),C<0){var w=Math.round(C/CB*1e6)/1e6;C=CB*2+w%2*CB}u.addData(l,v,y,o,s,b,C,d,a)}var OTe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,kTe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ATe(e){var t=new AR;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=AR.CMD,c=e.match(OTe);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(kTe)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,DB(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,DB(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var OB=function(e){Rj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(WR);function kB(e){return e.setData!=null}function AB(e,t){var n=ATe(e),r=GA({},t);return r.buildPath=function(e){var t=kB(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){yB(n,e),this.dirtyShape()},r}function jB(e,t){return new OB(AB(e,t))}function jTe(e,t){var n=AB(e,t);return function(e){Rj(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(OB)}function MTe(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new WR(t);return o.createPathProxy(),o.buildPath=function(e){if(kB(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function MB(e,t){t||={};var n=new WR;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?yB(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var NTe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),NB=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new NTe},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(WR);NB.prototype.type=`circle`;var PTe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),PB=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new PTe},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(WR);PB.prototype.type=`ellipse`;var FB=Math.PI,IB=FB*2,LB=Math.sin,RB=Math.cos,FTe=Math.acos,zB=Math.atan2,BB=Math.abs,VB=Math.sqrt,HB=Math.max,UB=Math.min,WB=1e-4;function ITe(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<WB))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function GB(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/VB(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*VB(HB(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function LTe(e){var t;if(aj(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function RTe(e,t){var n,r=HB(t.r,0),i=HB(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=BB(c-s),p=f>IB&&f%IB;if(p>WB&&(f=p),!(r>WB))e.moveTo(l,u);else if(f>IB-WB)e.moveTo(l+r*RB(s),u+r*LB(s)),e.arc(l,u,r,s,c,!d),i>WB&&(e.moveTo(l+i*RB(c),u+i*LB(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*RB(s),j=r*LB(s),M=i*RB(c),N=i*LB(c),P=f>WB;if(P){var F=t.cornerRadius;F&&(n=LTe(F),m=n[0],h=n[1],g=n[2],_=n[3]);var I=BB(r-i)/2;if(v=UB(I,g),y=UB(I,_),b=UB(I,m),x=UB(I,h),w=S=HB(v,y),T=C=HB(b,x),(S>WB||C>WB)&&(E=r*RB(c),D=r*LB(c),O=i*RB(s),k=i*LB(s),f<FB)){var L=ITe(A,j,O,k,E,D,M,N);if(L){var R=A-L[0],z=j-L[1],B=E-L[0],V=D-L[1],H=1/LB(FTe((R*B+z*V)/(VB(R*R+z*z)*VB(B*B+V*V)))/2),U=VB(L[0]*L[0]+L[1]*L[1]);w=UB(S,(r-U)/(H+1)),T=UB(C,(i-U)/(H-1))}}}if(!P)e.moveTo(l+A,u+j);else if(w>WB){var W=UB(g,w),G=UB(_,w),K=GB(O,k,A,j,r,W,d),q=GB(E,D,M,N,r,G,d);e.moveTo(l+K.cx+K.x0,u+K.cy+K.y0),w<S&&W===G?e.arc(l+K.cx,u+K.cy,w,zB(K.y0,K.x0),zB(q.y0,q.x0),!d):(W>0&&e.arc(l+K.cx,u+K.cy,W,zB(K.y0,K.x0),zB(K.y1,K.x1),!d),e.arc(l,u,r,zB(K.cy+K.y1,K.cx+K.x1),zB(q.cy+q.y1,q.cx+q.x1),!d),G>0&&e.arc(l+q.cx,u+q.cy,G,zB(q.y1,q.x1),zB(q.y0,q.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>WB)||!P)e.lineTo(l+M,u+N);else if(T>WB){var W=UB(m,T),G=UB(h,T),K=GB(M,N,E,D,i,-G,d),q=GB(A,j,O,k,i,-W,d);e.lineTo(l+K.cx+K.x0,u+K.cy+K.y0),T<C&&W===G?e.arc(l+K.cx,u+K.cy,T,zB(K.y0,K.x0),zB(q.y0,q.x0),!d):(G>0&&e.arc(l+K.cx,u+K.cy,G,zB(K.y0,K.x0),zB(K.y1,K.x1),!d),e.arc(l,u,i,zB(K.cy+K.y1,K.cx+K.x1),zB(q.cy+q.y1,q.cx+q.x1),d),W>0&&e.arc(l+q.cx,u+q.cy,W,zB(q.y1,q.x1),zB(q.y0,q.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var zTe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),KB=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new zTe},t.prototype.buildPath=function(e,t){RTe(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(WR);KB.prototype.type=`sector`;var BTe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),qB=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new BTe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(WR);qB.prototype.type=`ring`;function VTe(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)nM(u,u,e[f]),rM(d,d,e[f]);nM(u,u,r[0]),rM(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Vj(e[f]));continue}else c=e[f-1],l=e[f+1];Gj(a,l,c),Jj(a,a,t);var h=Xj(m,c),g=Xj(m,l),_=h+g;_!==0&&(h/=_,g/=_),Jj(o,a,-h),Jj(s,a,g);var v=Uj([],m,o),y=Uj([],m,s);r&&(rM(v,v,u),nM(v,v,d),rM(y,y,u),nM(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function JB(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=VTe(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var HTe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),YB=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new HTe},t.prototype.buildPath=function(e,t){JB(e,t,!0)},t}(WR);YB.prototype.type=`polygon`;var UTe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),XB=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new UTe},t.prototype.buildPath=function(e,t){JB(e,t,!1)},t}(WR);XB.prototype.type=`polyline`;var WTe={},GTe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),ZB=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new GTe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=JR(WTe,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(WR);ZB.prototype.type=`line`;var QB=[],KTe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function $B(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?AN:kN)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?AN:kN)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?IN:FN)(e.x1,e.cpx1,e.x2,t),(n?IN:FN)(e.y1,e.cpy1,e.y2,t)]}var eV=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new KTe},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(RN(n,o,i,u,QB),o=QB[1],i=QB[2],RN(r,s,a,u,QB),s=QB[1],a=QB[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(NN(n,o,c,i,u,QB),o=QB[1],c=QB[2],i=QB[3],NN(r,s,l,a,u,QB),s=QB[1],l=QB[2],a=QB[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return $B(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=$B(this.shape,e,!0);return Yj(t,t)},t}(WR);eV.prototype.type=`bezier-curve`;var qTe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),tV=function(e){Rj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new qTe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(WR);tV.prototype.type=`arc`;var nV=function(e){Rj(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),WR.prototype.getBoundingRect.call(this)},t}(WR),rV=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),iV=function(e){Rj(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(rV),aV=function(e){Rj(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(rV),oV=Math.min,JTe=Math.max,sV=Math.abs,cV=[0,0],lV=[0,0],uV=$M(),dV=uV.minTv,fV=uV.maxTv,pV=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new MM;for(var n=0;n<2;n++)this._axes[n]=new MM;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);MM.sub(r[0],n[1],n[0]),MM.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&MM.set(t,0,0),uV.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!uV.negativeSize&&MM.copy(t,r?uV.useDir?uV.dirMinTv:dV:fV),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,cV),e._getProjMinMaxOnAxis(a,t._corners,lV),uV.negativeSize||cV[1]<lV[0]||cV[0]>lV[1]){if(i=!1,uV.negativeSize||n)return i;var s=sV(lV[0]-cV[1]),c=sV(cV[0]-lV[1]);oV(s,c)>fV.len()&&(s<c?MM.scale(fV,o,-s*r):MM.scale(fV,o,c*r))}else if(!n){var s=sV(lV[0]-cV[1]),c=sV(cV[0]-lV[1]);(uV.useDir||oV(s,c)<dV.len())&&((s<c||!uV.bidirectional)&&(MM.scale(dV,o,s*r),uV.useDir&&uV.calcDirMTV()),(s>=c||!uV.bidirectional)&&(MM.scale(dV,o,-c*r),uV.useDir&&uV.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=oV(l,o),s=JTe(l,s)}n[0]=o+uV.touchThreshold,n[1]=s-uV.touchThreshold,uV.negativeSize=n[1]<n[0]},e}(),YTe=[],mV=function(e){Rj(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new GM(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(YTe)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(ZL),hV=$I();function gV(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=yj(r.duration,200),u=yj(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),oj(d)&&(d=d(n,i)),oj(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function _V(e,t,n,r,i,a,o){var s=!1,c;oj(i)?(o=a,a=i,i=null):uj(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=gV(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function vV(e,t,n,r,i,a){_V(`update`,e,t,n,r,i,a)}function yV(e,t,n,r,i,a){_V(`enter`,e,t,n,r,i,a)}function bV(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function xV(e,t,n,r,i,a){bV(e)||_V(`leave`,e,t,n,r,i,a)}function SV(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),xV(e,{style:{opacity:0}},t,n,r)}function CV(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||SV(e,t,n,r)}):SV(e,t,n,r)}function wV(e){hV(e).oldStyle=e.style}function XTe(e){return hV(e).oldStyle}var TV=s({Arc:()=>tV,BezierCurve:()=>eV,BoundingRect:()=>GM,Circle:()=>NB,CompoundPath:()=>nV,Ellipse:()=>PB,Group:()=>WF,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>KR,IncrementalDisplayable:()=>mV,Line:()=>ZB,LinearGradient:()=>iV,OrientedBoundingRect:()=>pV,Path:()=>WR,Point:()=>MM,Polygon:()=>YB,Polyline:()=>XB,RadialGradient:()=>aV,Rect:()=>ZR,Ring:()=>qB,Sector:()=>KB,Text:()=>tz,WH:()=>OV,XY:()=>DV,applyTransform:()=>VV,calcZ2Range:()=>cH,clipPointsByRect:()=>GV,clipRectByRect:()=>KV,createIcon:()=>qV,decomposeTransform:()=>fH,ensureCopyRect:()=>aH,ensureCopyTransform:()=>oH,expandOrShrinkRect:()=>ZV,extendPath:()=>AV,extendShape:()=>kV,getCurrentCanvasPainter:()=>mH,getShapeClass:()=>MV,getTransform:()=>BV,groupTransition:()=>WV,initProps:()=>yV,isBoundingRectAxisAligned:()=>rH,isElementRemoved:()=>bV,lineLineIntersect:()=>YV,linePolygonIntersect:()=>JV,makeImage:()=>PV,makePath:()=>NV,mergePath:()=>IV,payloadDisableAnimation:()=>dH,registerShape:()=>jV,removeElement:()=>xV,removeElementWithFadeOut:()=>CV,resizePath:()=>LV,retrieveZInfo:()=>sH,setTooltipConfig:()=>eH,subPixelOptimize:()=>zV,subPixelOptimizeLine:()=>RV,subPixelOptimizeRect:()=>QTe,transformDirection:()=>HV,traverseElements:()=>nH,traverseUpdateZ:()=>lH,updateProps:()=>vV}),EV={},DV=[`x`,`y`],OV=[`width`,`height`];function kV(e){return WR.extend(e)}var ZTe=jTe;function AV(e,t){return ZTe(e,t)}function jV(e,t){EV[e]=t}function MV(e){if(EV.hasOwnProperty(e))return EV[e]}function NV(e,t,n,r){var i=jB(e,t);return n&&(r===`center`&&(n=FV(n,i.getBoundingRect())),LV(i,n)),i}function PV(e,t,n){var r=new KR({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(FV(t,i))}}});return r}function FV(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var IV=MTe;function LV(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function RV(e,t){return JR(e,e,{lineWidth:t}),e}function QTe(e,t){return YR(e,e,t),e}var zV=XR;function BV(e,t){for(var n=wM([]);e&&e!==t;)EM(n,e.getLocalTransform(),n),e=e.parent;return n}function VV(e,t,n){return t&&!ZA(t)&&(t=hF.getLocalTransform(t)),n&&(t=AM([],t)),tM([],e,t)}function HV(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:nI(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:nI(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=VV(a,t,n),nI(a[0])>nI(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function UV(e){return!e.isGroup}function $Te(e){return e.shape!=null}function WV(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){UV(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return $Te(e)&&(t.shape=HA(e.shape)),t}var a=r(e);t.traverse(function(e){if(UV(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),vV(e,r,n,fz(e).dataIndex)}}})}function GV(e,t){return QA(e,function(e){var n=e[0];n=tI(n,t.x),n=eI(n,t.x+t.width);var r=e[1];return r=tI(r,t.y),r=eI(r,t.y+t.height),[n,r]})}function KV(e,t){var n=tI(e.x,t.x),r=eI(e.x+e.width,t.x+t.width),i=tI(e.y,t.y),a=eI(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function qV(e,t,n){var r=GA({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),qA(i,n),new KR(r)):NV(e.replace(`path://`,``),r,n,`center`)}function JV(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(YV(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function YV(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=XV(u,d,c,l);if(eEe(f))return!1;var p=e-i,m=t-a,h=XV(p,m,c,l)/f;if(h<0||h>1)return!1;var g=XV(p,m,u,d)/f;return!(g<0||g>1)}function XV(e,t,n,r){return e*r-n*t}function eEe(e){return e<=1e-6&&e>=-1e-6}function ZV(e,t,n,r,i){return t==null?e:(lj(t)?QV[0]=QV[1]=QV[2]=QV[3]=t:(QV[0]=t[0],QV[1]=t[1],QV[2]=t[2],QV[3]=t[3]),r&&(QV[0]=tI(0,QV[0]),QV[1]=tI(0,QV[1]),QV[2]=tI(0,QV[2]),QV[3]=tI(0,QV[3])),n&&(QV[0]=-QV[0],QV[1]=-QV[1],QV[2]=-QV[2],QV[3]=-QV[3]),$V(e,QV,`x`,`width`,3,1,i&&i[0]||0),$V(e,QV,`y`,`height`,0,2,i&&i[1]||0),e)}var QV=[0,0,0,0];function $V(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=tI(0,eI(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:nI(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function eH(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=sj(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&Q(nj(c),function(e){Pj(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=fz(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:qA({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function tH(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function nH(e,t){if(e)if(aj(e))for(var n=0;n<e.length;n++)tH(e[n],t);else tH(e,t)}function rH(e){return!e||nI(e[1])<iH&&nI(e[2])<iH||nI(e[0])<iH&&nI(e[3])<iH}var iH=1e-5;function aH(e,t){return e?GM.copy(e,t):t.clone()}function oH(e,t){return t?TM(e||CM(),t):void 0}function sH(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function cH(e){var t=-1/0,n=1/0;tH(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function lH(e,t,n){uH(e,t,n,-1/0)}function uH(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=tI(uH(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=tI(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function dH(e){return e.animation={duration:0},e}function fH(e,t){return t?TM(pH.transform,t):wM(pH.transform),pH.decomposeTransform(),yF(e,pH),e}var pH=new hF;pH.transform=CM();function mH(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}jV(`circle`,NB),jV(`ellipse`,PB),jV(`sector`,KB),jV(`ring`,qB),jV(`polygon`,YB),jV(`polyline`,XB),jV(`rect`,ZR),jV(`line`,ZB),jV(`bezierCurve`,eV),jV(`arc`,tV);var hH={};function gH(e,t){for(var n=0;n<kz.length;n++){var r=kz[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function _H(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=oj(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<kz.length;l++){var u=kz[l],d=t[u];c[u]=yj(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function vH(e,t,n,r){n||=hH;for(var i=e instanceof tz,a=!1,o=0;o<Az.length;o++){var s=t[Az[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new tz,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=_H(n,t),u=t.normal,d=!!u.getShallow(`show`),f=bH(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(xH(u,n,!1));for(var o=0;o<kz.length;o++){var p=kz[o],s=t[p];if(s){var m=c.ensureState(p),h=!!yj(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=bH(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=xH(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(DH(c).setLabelText=function(e){var r=_H(n,t,e);gH(c,r)})}else c&&(c.ignore=!0);e.dirty()}function yH(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<kz.length;r++){var i=kz[r];n[i]=e.getModel([i,t])}return n}function bH(e,t,n,r,i){var a={};return tEe(a,e,n,r,i),t&&GA(a,t),a}function xH(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=yj(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function tEe(e,t,n,r,i){n||=hH;var a=t.ecModel,o=a&&a.option.textStyle,s=nEe(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=yj(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);TH(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=lj(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=AH.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=Sj(_),h.__marginType=AH.textMargin)}TH(e,t,o,null,null,n,r,i,!0,!1)}function nEe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||hH).rich;if(n){t||={};for(var r=nj(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var SH=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],CH=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],wH=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function TH(e,t,n,r,i,a,o,s,c,l){n=!o&&n||hH;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=yj(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=yj(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=yj(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=yj(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<SH.length;_++){var v=SH[_],y=i!==!1&&r?bj(t.getShallow(v),r.getShallow(v),n[v]):yj(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<CH.length;_++){var v=CH[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<wH.length;_++){var v=wH[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function EH(e,t){var n=t&&t.getModel(`textStyle`);return wj([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var DH=$I();function OH(e,t,n,r){if(e){var i=DH(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function kH(e,t,n,r,i){var a=DH(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=yj(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=sL(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,gH(e,_H({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?yV:vV)(e,{percent:1},r,t,null,l)}var AH={minMargin:1,textMargin:2},rEe=[`textStyle`,`color`],jH=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],MH=new tz,iEe=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(rEe):null)},e.prototype.getFont=function(){return EH({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<jH.length;n++)t[jH[n]]=this.getShallow(jH[n]);return MH.useStyle(t),MH.update(),MH.getBoundingRect()},e}(),NH=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],aEe=kL(NH),oEe=function(){function e(){}return e.prototype.getLineStyle=function(e){return aEe(this,e)},e}(),PH=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],sEe=kL(PH),cEe=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return sEe(this,e,t)},e}(),FH=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){UA(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(HA(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!OA.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();EL(FH),ywe(FH),XA(FH,oEe),XA(FH,cEe),XA(FH,Cwe),XA(FH,iEe);var lEe=Math.round(Math.random()*10);function IH(e){return[e||``,lEe++].join(`_`)}function uEe(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=TL(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=TL(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function dEe(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(Q(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),Q(u.successor,d?p:f)}Q(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return Q(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),Q(c,function(e){JA(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);JA(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return Q(e,function(e){JA(t,e)>=0&&n.push(e)}),n}}function LH(e,t){return UA(UA({},e,!0),t,!0)}var fEe={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:`. `}}}},pEe={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:``}}}},RH=`ZH`,zH=`EN`,BH=zH,VH={},HH={},UH=OA.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||BH).toUpperCase().indexOf(RH)>-1?RH:BH}():BH;function WH(e,t){e=e.toUpperCase(),HH[e]=new FH(t),VH[e]=t}function mEe(e){if(sj(e)){var t=VH[e.toUpperCase()]||{};return e===RH||e===zH?HA(t):UA(HA(t),HA(VH[BH]),!1)}else return UA(HA(e),HA(VH[BH]),!1)}function GH(e){return HH[e]}function hEe(){return HH[BH]}WH(zH,fEe),WH(RH,pEe);var KH=null;function gEe(e){KH||=e}function qH(){return KH}function JH(e,t){var n=qH(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function YH(e){var t=e.brk;return t?t.breaks:[]}function XH(e){var t=e.brk;return t?t.hasBreaks():!1}var ZH=1e3,QH=ZH*60,$H=QH*60,eU=$H*24,tU=eU*365,_Ee={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})/},nU={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},vEe=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,rU=`{yyyy}-{MM}-{dd}`,iU={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:rU,hour:rU+` `+nU.hour,minute:rU+` `+nU.minute,second:rU+` `+nU.second,millisecond:vEe},aU=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],yEe=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function bEe(e){return!sj(e)&&!oj(e)?xEe(e):e}function xEe(e){e||={};var t={},n=!0;return Q(aU,function(t){n&&=e[t]==null}),Q(aU,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=aU[s],l=uj(a)&&!aj(a)?a[c]:a,u=void 0;aj(l)?(u=l.slice(),o=u[0]||``):sj(l)?(o=l,u=[o]):(o==null?o=nU[r]:_Ee[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function oU(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function sU(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function SEe(e){return e===sU(e)}function CEe(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function cU(e,t,n,r){var i=wI(e),a=i[dU(n)](),o=i[fU(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[pU(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[mU(n)](),d=(u-1)%12+1,f=i[hU(n)](),p=i[gU(n)](),m=i[_U(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof FH?r:GH(r||UH)||hEe()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,oU(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,oU(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,oU(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,oU(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,oU(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,oU(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,oU(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,oU(m,3)).replace(/{S}/g,m+``)}function wEe(e,t,n,r,i){var a=null;if(sj(n))a=n;else if(oj(n)){var o={time:e.time,level:e.time?e.time.level:0},s=qH();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=lU(e.value,i);a=n[u][u][0]}}return cU(new Date(e.value),a,i,r)}function lU(e,t){var n=wI(e),r=n[fU(t)]()+1,i=n[pU(t)](),a=n[mU(t)](),o=n[hU(t)](),s=n[gU(t)](),c=n[_U(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function uU(e,t,n){switch(t){case`year`:e[vU(n)](0);case`month`:e[yU(n)](1);case`day`:e[bU(n)](0);case`hour`:e[xU(n)](0);case`minute`:e[SU(n)](0);case`second`:e[CU(n)](0)}return e}function dU(e){return e?`getUTCFullYear`:`getFullYear`}function fU(e){return e?`getUTCMonth`:`getMonth`}function pU(e){return e?`getUTCDate`:`getDate`}function mU(e){return e?`getUTCHours`:`getHours`}function hU(e){return e?`getUTCMinutes`:`getMinutes`}function gU(e){return e?`getUTCSeconds`:`getSeconds`}function _U(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function TEe(e){return e?`setUTCFullYear`:`setFullYear`}function vU(e){return e?`setUTCMonth`:`setMonth`}function yU(e){return e?`setUTCDate`:`setDate`}function bU(e){return e?`setUTCHours`:`setHours`}function xU(e){return e?`setUTCMinutes`:`setMinutes`}function SU(e){return e?`setUTCSeconds`:`setSeconds`}function CU(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function EEe(e,t,n,r,i,a,o,s){return new tz({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}function wU(e){if(!jI(e))return sj(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function TU(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var EU=Sj;function DU(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&wj(e)?e:`-`}function a(e){return FI(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?wI(e):e;if(!isNaN(+c))return cU(c,r,n);if(s)return`-`}if(t===`ordinal`)return cj(e)?i(e):lj(e)&&a(e)?e+``:`-`;var l=AI(e);return a(l)?wU(l):cj(e)?i(e):typeof e==`boolean`?e+``:`-`}var OU=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],kU=function(e,t){return`{`+e+(t??``)+`}`};function AU(e,t,n){aj(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=OU[a];e=e.replace(kU(o),kU(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(kU(OU[c],s),n?fM(l):l)}return e}function jU(e,t,n){return Q(t,function(t,r){e=e.replace(`{`+r+`}`,n?fM(t):t)}),e}function MU(e,t){var n=sj(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+fM(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+fM(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function DEe(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
yyyy`);var r=wI(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,oU(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,oU(a%100+``,2)).replace(`dd`,oU(s,2)).replace(`d`,s).replace(`hh`,oU(c,2)).replace(`h`,c).replace(`mm`,oU(l,2)).replace(`m`,l).replace(`ss`,oU(u,2)).replace(`s`,u).replace(`SSS`,oU(d,3)),e}function OEe(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function NU(e,t){return t||=`transparent`,sj(e)?e:uj(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function PU(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var FU={},IU={},LU=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(FU,!0),this._normalMasterList=n(IU,!1);function n(n,r){var i=[];return Q(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){Q(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){FU[e]=t;return}IU[e]=t},e.get=function(e){return IU[e]||FU[e]},e}();function kEe(e){return!!FU[e]}function AEe(e){RU.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var RU=Aj();function zU(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=RU.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function BU(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!kEe(n)&&(i=0))}return{coordSysType:n,kind:i}}function VU(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=BU(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var HU=function(e,t){var n=t.getReferringComponents(e,nL).models[0];return n&&n.coordinateSystem},UU=Q,WU=[`left`,`right`,`top`,`bottom`,`width`,`height`],GU=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function KU(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var qU=KU;ij(KU,`vertical`),ij(KU,`horizontal`);function JU(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function jEe(e,t){var n=$U(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===QU.point)a=n.refPoint,i=XU(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=aj(o)?o:[o,o];i=XU(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[dI(s[0],i.width)+i.x,dI(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function YU(e,t){var n=jEe(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);aj(a)||(a=[0,a]);var o=dI(r.width,t.getWidth()),s=dI(r.height,t.getHeight()),c=Math.min(o,s),l=dI(a[0],c/2),u=dI(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function XU(e,t,n){n=EU(n||0);var r=t.width,i=t.height,a=dI(e.left,r),o=dI(e.top,i),s=dI(e.right,r),c=dI(e.bottom,i),l=dI(e.width,r),u=dI(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new GM((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function ZU(e,t,n){var r=e.getShallow(`preserveAspect`,!0);if(!r)return t;var i=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return t;var a=e.getShallow(`preserveAspectAlign`,!0),o=e.getShallow(`preserveAspectVerticalAlign`,!0),s={width:t.width,height:t.height},c=r===`cover`;return i>n&&!c||i<n&&c?(s.width=t.height*n,a===`left`?s.left=0:a===`right`?s.right=0:s.left=`center`):(s.height=t.width/n,o===`top`?s.top=0:o===`bottom`?s.bottom=0:s.top=`middle`),XU(s,t)}var QU={rect:1,point:2};function $U(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=zU(e),l=c.coord,u=c.from;if(o.dataToLayout){a=QU.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=QU.point,s=u,i=o.dataToPoint(l))}return a??=QU.rect,a===QU.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function eW(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new GM(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=XU(qA({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function MEe(e,t){return e[GU[t][0]]!=null||e[GU[t][1]]!=null&&e[GU[t][2]]!=null}function tW(e){var t=e.layoutMode||e.constructor.layoutMode;return uj(t)?t:t?{type:t}:null}function nW(e,t,n){var r=n&&n.ignoreSize;!aj(r)&&(r=[r,r]);var i=o(GU[0],0),a=o(GU[1],1);c(GU[0],e,i),c(GU[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(UU(n,function(t){c[t]=e[t]}),UU(n,function(e){Pj(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!Pj(a,f)&&Pj(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){UU(e,function(e){t[e]=n[e]})}}function rW(e){return iW({},e)}function iW(e,t){return t&&e&&UU(WU,function(n){Pj(t,n)&&(e[n]=t[n])}),e}var NEe=$I(),aW=function(e){Z(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=IH(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=tW(this),r=n?rW(e):{};UA(e,t.getTheme().get(this.mainType)),UA(e,this.getDefaultOption()),n&&nW(e,r,n)},t.prototype.mergeOption=function(e,t){UA(this.option,e,!0);var n=tW(this);n&&nW(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!gwe(e))return e.defaultOption;var t=NEe(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=UA(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return rL(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return JU(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(FH);DL(aW,FH),OL(aW),uEe(aW),dEe(aW,PEe);function PEe(e){var t=[];return Q(aW.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=QA(t,function(e){return TL(e).main}),e!==`dataset`&&JA(t,`dataset`)<=0&&t.unshift(`dataset`),t}var $={color:{},darkColor:{},size:{}},oW=$.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var sW in GA(oW,{primary:oW.neutral80,secondary:oW.neutral70,tertiary:oW.neutral60,quaternary:oW.neutral50,disabled:oW.neutral20,border:oW.neutral30,borderTint:oW.neutral20,borderShade:oW.neutral40,background:oW.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:oW.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:oW.neutral70,axisLineTint:oW.neutral40,axisTick:oW.neutral70,axisTickMinor:oW.neutral60,axisLabel:oW.neutral70,axisSplitLine:oW.neutral15,axisMinorSplitLine:oW.neutral05}),oW)if(oW.hasOwnProperty(sW)){var cW=oW[sW];sW===`theme`?$.darkColor.theme=oW.theme.slice():sW===`highlight`?$.darkColor.highlight=`rgba(255,231,130,0.4)`:sW.indexOf(`accent`)===0?$.darkColor[sW]=oP(cW,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):$.darkColor[sW]=oP(cW,null,function(e){return e*.9},function(e){return 1-e**1.5})}$.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var lW=``;typeof navigator<`u`&&(lW=navigator.platform||``);var uW=`rgba(0, 0, 0, 0.2)`,dW=$.color.theme[0],FEe=oP(dW,null,null,.9),fW={darkMode:`auto`,colorBy:`series`,color:$.color.theme,gradientColor:[FEe,dW],aria:{decal:{decals:[{color:uW,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uW,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uW,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uW,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uW,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uW,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lW.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},pW={Must:1,Might:2,Not:3},mW=$I();function IEe(e){mW(e).datasetMap=Aj()}function hW(e,t,n){var r={},i=_W(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=mW(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),Q(e,function(t,n){var i=uj(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});Q(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function gW(e,t,n){var r={};if(!_W(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&Q(a,function(e,t){(uj(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=yW(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===pW.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===pW.Not)&&(e.n=c),f(e)&&s[e.n]!==pW.Not)return e;d||(u===pW.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function _W(e){if(!e.get(`data`,!0))return rL(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},nL).models[0]}function LEe(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:rL(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},nL).models}function vW(e,t){return yW(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function yW(e,t,n,r,i,a){var o,s=5;if(fj(e))return pW.Not;var c,l;if(r){var u=r[a];uj(u)?(c=u.name,l=u.type):sj(u)&&(c=u)}if(l!=null)return l===`ordinal`?pW.Must:pW.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return pW.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return pW.Not;var f=_[c];if(!f||fj(f))return pW.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=GI(g);if(!aj(y))return pW.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=sj(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?pW.Might:pW.Not;if(t&&e!==`-`)return pW.Must}return pW.Not}var bW=Aj();function REe(e,t){Cj(bW.get(e)==null&&t),bW.set(e,t)}function zEe(e,t,n){var r=bW.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var xW=$I(),BEe=$I(),SW=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=HI(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return wW(this,xW,r,i,e,t,n)},e.prototype.clearColorPalette=function(){HEe(this,xW)},e}();function CW(e,t,n,r){return wW(e,BEe,HI(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function VEe(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function wW(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:VEe(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function HEe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var TW,EW,DW,OW=`\0_ec_inner`,UEe=1,kW=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new FH(r),this._locale=new FH(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=MW(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,MW(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?DW(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&Q(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=Aj(),s=t&&t.replaceMergeMainTypeMap;IEe(this),Q(e,function(e,t){e!=null&&(aW.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?HA(e):UA(n[t],e,!0))}),s&&s.each(function(e,t){aW.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),aW.topologicalTravel(a,aW.getAllClassMainTypes(),c,this);function c(t){var a=zEe(this,t,HI(e[t])),o=r.get(t),c=KI(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);nwe(c,t,aW),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;Q(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=aW.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=GA({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),GA(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&TW(this)}this._seriesIndices||TW(this)},t.prototype.getOption=function(){var e=HA(this.option);return Q(e,function(t,n){if(aW.hasClass(n)){for(var r=HI(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!ZI(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[OW],e},t.prototype.setTheme=function(e){this._theme=new FH(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?ej(a,function(e){return!!e}):AW(`name`,i,a):AW(`id`,r,a):(o=[],Q(HI(n),function(e){a[e]&&o.push(a[e])})),jW(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(jW(r?this.queryComponents(r):ej(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?ej(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(oj(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=sj(e)?r.get(e):uj(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=YI(e,null);return ej(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return ej(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return ej(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){EW(this),Q(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){Q(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){EW(this),Q(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Q(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return EW(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){EW(this);var n=[];Q(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Aj(n)},t.prototype.restoreData=function(e){TW(this);var t=this._componentsMap,n=[];t.each(function(e,t){aW.hasClass(t)&&n.push(t)}),aW.topologicalTravel(n,aW.getAllClassMainTypes(),function(n){Q(t.get(n),function(t){t&&(n!==`series`||!WEe(t,e))&&t.restoreData()})})},t.internalField=function(){TW=function(e){var t=e._seriesIndices=[];Q(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Aj(t)},EW=function(e){},DW=function(e,t){e.option={},e.option[OW]=UEe,e._componentsMap=Aj({series:[]}),e._componentsCount=Aj();var n=t.aria;uj(n)&&n.enabled==null&&(n.enabled=!0),GEe(t,e._theme.option),UA(t,fW,!1),e._mergeOption(t,null)}}(),t}(FH);function WEe(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function GEe(e,t){var n=e.color&&!e.colorLayer;Q(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||aW.hasClass(r)||(typeof t==`object`?e[r]=e[r]?UA(e[r],t,!1):HA(t):e[r]??(e[r]=t))})}function AW(e,t,n){if(aj(t)){var r=Aj();return Q(t,function(e){e!=null&&YI(e,null)!=null&&r.set(e,!0)}),ej(n,function(t){return t&&r.get(t[e])})}else{var i=YI(t,null);return ej(n,function(t){return t&&i!=null&&t[e]===i})}}function jW(e,t){return t.hasOwnProperty(`subType`)?ej(e,function(e){return e&&e.subType===t.subType}):e}function MW(e){var t=Aj();return e&&Q(HI(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}XA(kW,SW);var KEe=/^(min|max)?(.+)$/,qEe=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Q(HI(e.series),function(e){e&&e.data&&fj(e.data)&&Ej(e.data)}),Q(HI(e.dataset),function(e){e&&e.source&&fj(e.source)&&Ej(e.source)})),e=HA(e);var r=this._optionBackup,i=JEe(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],HA(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=HA(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)YEe(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!ZEe(a,this._currentMediaIndices)&&(o=QA(a,function(e){return HA(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function JEe(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&aj(l)&&Q(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),Q(c,function(e){return f(e)}),Q(r,function(e){return f(e.option)});function f(e){Q(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function YEe(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Q(e,function(e,t){var n=t.match(KEe);if(!(!n||!n[1]||!n[2])){var a=n[1];XEe(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function XEe(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function ZEe(e,t){return e.join(`,`)===t.join(`,`)}var NW=Q,PW=uj,FW=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function IW(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=FW.length;n<r;n++){var i=FW[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?UA(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?UA(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function LW(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,qA(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function RW(e){LW(e,`itemStyle`),LW(e,`lineStyle`),LW(e,`areaStyle`),LW(e,`label`),LW(e,`labelLine`),LW(e,`upperLabel`),LW(e,`edgeLabel`)}function zW(e,t){var n=PW(e)&&e[t],r=PW(n)&&n.textStyle;if(r)for(var i=0,a=WI.length;i<a;i++){var o=WI[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function BW(e){e&&(RW(e),zW(e,`label`),e.emphasis&&zW(e.emphasis,`label`))}function QEe(e){if(PW(e)){IW(e),RW(e),zW(e,`label`),zW(e,`upperLabel`),zW(e,`edgeLabel`),e.emphasis&&(zW(e.emphasis,`label`),zW(e.emphasis,`upperLabel`),zW(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(IW(t),BW(t));var n=e.markLine;n&&(IW(n),BW(n));var r=e.markArea;r&&BW(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!fj(a))for(var o=0;o<a.length;o++)BW(a[o]);Q(e.categories,function(e){RW(e)})}if(i&&!fj(i))for(var o=0;o<i.length;o++)BW(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)BW(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)aj(c[o])?(BW(c[o][0]),BW(c[o][1])):BW(c[o]);e.type===`gauge`?(zW(e,`axisLabel`),zW(e,`title`),zW(e,`detail`)):e.type===`treemap`?(LW(e.breadcrumb,`itemStyle`),Q(e.levels,function(e){RW(e)})):e.type===`tree`&&RW(e.leaves)}}function VW(e){return aj(e)?e:e?[e]:[]}function HW(e){return(aj(e)?e[0]:e)||{}}function $Ee(e,t){NW(VW(e.series),function(e){PW(e)&&QEe(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),NW(n,function(t){NW(VW(e[t]),function(e){e&&(zW(e,`axisLabel`),zW(e.axisPointer,`label`))})}),NW(VW(e.parallel),function(e){var t=e&&e.parallelAxisDefault;zW(t,`axisLabel`),zW(t&&t.axisPointer,`label`)}),NW(VW(e.calendar),function(e){LW(e,`itemStyle`),zW(e,`dayLabel`),zW(e,`monthLabel`),zW(e,`yearLabel`)}),NW(VW(e.radar),function(e){zW(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),NW(VW(e.geo),function(e){PW(e)&&(BW(e),NW(VW(e.regions),function(e){BW(e)}))}),NW(VW(e.timeline),function(e){BW(e),LW(e,`label`),LW(e,`itemStyle`),LW(e,`controlStyle`,!0);var t=e.data;aj(t)&&Q(t,function(e){uj(e)&&(LW(e,`label`),LW(e,`itemStyle`))})}),NW(VW(e.toolbox),function(e){LW(e,`iconStyle`),NW(e.feature,function(e){LW(e,`iconStyle`)})}),zW(HW(e.axisPointer),`label`),zW(HW(e.tooltip).axisPointer,`label`)}function eDe(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function tDe(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function UW(e){e&&Q(nDe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var nDe=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],rDe=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],WW=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function GW(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<WW.length;n++){var r=WW[n][1],i=WW[n][0];t[r]!=null&&(t[i]=t[r])}}function KW(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function qW(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function iDe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function JW(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&JW(e[n].children,t)}function YW(e,t){$Ee(e,t),e.series=HI(e.series),Q(e.series,function(e){if(uj(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),KW(e.label);var n=e.data;if(n&&!fj(n))for(var r=0;r<n.length;r++)KW(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=eDe(e,`pointer.color`);i!=null&&tDe(e,`itemStyle.color`,i)}else if(t===`bar`){GW(e),GW(e.backgroundStyle),GW(e.emphasis);var n=e.data;if(n&&!fj(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(GW(n[r]),GW(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),qW(e),JW(e.data,qW)}else t===`graph`||t===`sankey`?iDe(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&qA(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),UW(e)}}),e.dataRange&&(e.visualMap=e.dataRange),Q(rDe,function(t){var n=e[t];n&&(aj(n)||(n=[n]),Q(n,function(e){UW(e)}))})}var aDe=SL(oDe);function oDe(e){var t=Aj();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),Q(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),sDe(e))})}function sDe(e){Q(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=bI(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var XW=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&vW(this,n)===pW.Must&&(r.type=`ordinal`)}}return e}();function ZW(e){return e instanceof XW}function QW(e,t,n){n||=eG(e);var r=t.seriesLayoutBy,i=lDe(e,n,r,t.sourceHeader,t.dimensions);return new XW({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:HA(t)})}function $W(e){return new XW({data:e,sourceFormat:fj(e)?bz:gz})}function cDe(e){return new XW({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:HA(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function eG(e){var t=cTe;if(fj(e))t=bz;else if(aj(e)){e.length===0&&(t=_z);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(aj(i)||fj(i)){t=_z;break}else if(uj(i)){t=vz;break}}}}else if(uj(e)){for(var a in e)if(Pj(e,a)&&ZA(e[a])){t=yz;break}}return t}function lDe(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:tG(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?nG(function(e){e!=null&&e!==`-`&&(sj(e)?o??=1:o=0)},n,s,10):o=lj(r)?r:+!!r,!i&&o===1&&(i=[],nG(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=uDe(e);else if(t===`keyedColumns`)i||(i=[],Q(e,function(e,t){i.push(t)}));else if(t===`original`){var c=GI(e[0]);a=aj(c)&&c.length||1}return{startIndex:o,dimensionsDefine:tG(i),dimensionsDetectedCount:a}}function uDe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return nj(n)}function tG(e){if(e){var t=Aj();return QA(e,function(e,n){e=uj(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function nG(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function rG(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var iG,aG,oG,sG,cG,lG,uG=function(){function e(e,t){var n=ZW(e)?e:$W(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),lG(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;lG=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=cG[vG(o,s)];GA(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=rj(pG(o,s),null,i,c,l),e.count=rj(hG(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};cG=(e={},e[_z+`_`+xz]={pure:!0,appendData:i},e[_z+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[vz]={pure:!0,appendData:i},e[yz]={pure:!0,appendData:function(e){var t=this._data;Q(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[gz]={appendData:i},e[bz]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),dG=function(e){aj(e)||LI(`series.data or dataset.source must be an array.`)};iG={},iG[_z+`_`+xz]=dG,iG[_z+`_row`]=dG,iG[vz]=dG,iG[yz]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??LI(`dimension name must not be null/undefined.`)},iG[gz]=dG;var fG=function(e,t,n,r){return e[r]},dDe=(aG={},aG[_z+`_`+xz]=function(e,t,n,r){return e[r+t]},aG[_z+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},aG[vz]=fG,aG[yz]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},aG[gz]=fG,aG);function pG(e,t){return dDe[vG(e,t)]}var mG=function(e,t,n){return e.length},fDe=(oG={},oG[_z+`_`+xz]=function(e,t,n){return Math.max(0,e.length-t)},oG[_z+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},oG[vz]=mG,oG[yz]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},oG[gz]=mG,oG);function hG(e,t){return fDe[vG(e,t)]}var gG=function(e,t,n){return e[t]},pDe=(sG={},sG[_z]=gG,sG[vz]=function(e,t,n){return e[n]},sG[yz]=gG,sG[gz]=function(e,t,n){var r=GI(e);return r instanceof Array?r[t]:r},sG[bz]=gG,sG);function _G(e){return pDe[e]}function vG(e,t){return e===`arrayRows`?e+`_`+t:e}function yG(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return _G(a)(r,o,s)}else{var c=r;return a===`original`&&(c=GI(r)),c}}}}var mDe=/\{@(.+?)\}/g,bG=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&aj(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),oj(i))return s.status=t,s.dimensionIndex=r,i(s);if(sj(i))return AU(i,s).replace(mDe,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=yG(o,e,i);if(a&&aj(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return yG(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function xG(e){var t,n;return uj(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function SG(e){return new hDe(e)}var hDe=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(aj(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){CG.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:CG.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),aj(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),CG=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function wG(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!lj(e)&&e!=null&&e!==`-`&&(e=+wI(e)),e==null||e===``?NaN:Number(e))}var gDe=Aj({number:function(e){return parseFloat(e)},time:function(e){return+wI(e)},trim:function(e){return sj(e)?wj(e):e}});function TG(e){return gDe.get(e)}var EG={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},_De=function(){function e(e,t){lj(t)||RI(``),this._opFn=EG[e],this._rvalFloat=AI(t)}return e.prototype.evaluate=function(e){return lj(e)?this._opFn(e,this._rvalFloat):this._opFn(AI(e),this._rvalFloat)},e}(),DG=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=lj(e)?e:AI(e),r=lj(t)?t:AI(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=sj(e),s=sj(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),vDe=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=AI(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=AI(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function yDe(e,t){return e===`eq`||e===`ne`?new vDe(e===`eq`,t):Pj(EG,e)?new _De(e,t):null}function OG(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function kG(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var bDe=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return wG(e,t)},e}();function xDe(e,t){var n=new bDe,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&RI(``);var o=[],s={},c=e.dimensionsDefine;if(c)Q(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(Pj(s,n)&&RI(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=pG(i,xz);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=rj(SDe,null,e)),n.cloneRawData=rj(CDe,null,e),n.count=rj(hG(i,xz),null,r,a,o);var d=_G(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=rj(wDe,null,o,s),n.cloneAllDimensionInfo=rj(TDe,null,o),n}function SDe(e){var t=e.sourceFormat;return jG(t)||RI(``),e.data}function CDe(e){var t=e.sourceFormat,n=e.data;if(jG(t)||RI(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(GA({},n[i]));return r}}function wDe(e,t,n){if(n!=null){if(lj(n)||!isNaN(n)&&!Pj(t,n))return e[n];if(Pj(t,n))return t[n]}}function TDe(e){return HA(e)}var AG=Aj();function EDe(e){e=HA(e);var t=e.type,n=``;t||RI(n);var r=t.split(`:`);r.length!==2&&RI(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,AG.set(t,e)}function DDe(e,t,n){var r=HI(e),i=r.length;i||RI(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=ODe(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function ODe(e,t,n,r){var i=``;t.length||RI(i),uj(e)||RI(i);var a=e.type,o=AG.get(a);o||RI(i);var s=QA(t,function(e){return xDe(e,o)});return QA(HI(o.transform({upstream:s[0],upstreamList:s,config:HA(e.config)})),function(e,n){var r=``;uj(e)||RI(r),e.data||RI(r),jG(eG(e.data))||RI(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:xz,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:xz,sourceHeader:0,dimensions:e.dimensions};return QW(e.data,i,null)})}function jG(e){return e===`arrayRows`||e===`objectRows`}var kDe=typeof Uint32Array>`u`?Array:Uint32Array,ADe=typeof Uint16Array>`u`?Array:Uint16Array,MG=typeof Int32Array>`u`?Array:Int32Array,NG=typeof Float64Array>`u`?Array:Float64Array,PG={float:NG,int:MG,ordinal:Array,number:Array,time:NG},FG;function IG(e){return e>65535?kDe:ADe}function jDe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function LG(e,t,n,r,i){var a=PG[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var RG=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Aj()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=FG[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],rG(r),this._dimensions=QA(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new PG[t||`float`](this._rawCount),this._rawExtent[i]=uL(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=uL());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];LG(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=FG.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=QA(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=uL()),LG(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),hI(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=IG(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(IG(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=nj(e),i=r.length;if(!i)return this;var a=t.count(),o=new(IG(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=uL();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(IG(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(IG(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=uL(),d=new(IG(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=uL();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=OG(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||kG(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&$A(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?jDe(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=HA(this._extent),e._rawExtent=HA(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return wG(e[r],this._dimensions[r])}FG={arrayRows:e,objectRows:function(e,t,n,r){return wG(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return wG(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),zG=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(VG(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=fj(o)?bz:gz,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=yj(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=yj(u.sourceHeader,d.sourceHeader),m=yj(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[QW(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[QW(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&HG(``);var i,a=[],o=[];return Q(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&HG(``),a.push(t),o.push(e._getVersionSign())}),n?i=DDe(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[cDe(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];VG(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new RG,o.initData(new uG(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(VG(e)){var t=_W(e);return t?[t.getSourceManager()]:[]}else return QA(LEe(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(VG(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function BG(e){e.option.transform&&Ej(e.option.transform)}function VG(e){return e.mainType===`series`}function HG(e){throw Error(e)}var MDe=`line-height:1`;function UG(e){var t=e.lineHeight;return t==null?MDe:`line-height:`+fM(t+``)+`px`}function WG(e,t){var n=e.color||$.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||$.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+fM(r+``)+`px;color:`+fM(n)+`;font-weight:`+fM(i+``),valueStyle:`font-size:`+fM(o+``)+`px;color:`+fM(a)+`;font-weight:`+fM(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var NDe=[0,10,20,30],PDe=[``,`
`,`
`,`
`];function GG(e,t){return t.type=e,t}function KG(e){return e.type===`section`}function qG(e){return KG(e)?FDe:IDe}function JG(e){if(KG(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Q(e.blocks,function(e){var n=JG(e);n>=t&&(t=n+ +(r&&(!n||KG(e)&&!e.noHeader)))}),t}return 0}function FDe(e,t,n,r){var i=t.noHeader,a=LDe(JG(t)),o=[],s=t.blocks||[];Cj(!s||aj(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Pj(l,c)){var u=new DG(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}Q(s,function(n,i){var s=t.valueFormatter,c=qG(n)(s?GA(GA({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):XG(r,o.join(``),i?n:a.html);if(i)return d;var f=DU(t.header,`ordinal`,e.useUTC),p=WG(r,e.renderMode).nameStyle,m=UG(r);return e.renderMode===`richText`?ZG(e,f,p)+a.richText+d:XG(r,`<div style="`+p+`;`+m+`;">`+fM(f)+`</div>`+d,n)}function IDe(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=aj(e)?e:[e],QA(e,function(e,t){return DU(e,aj(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||$.color.secondary,i),f=a?``:DU(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=WG(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:ZG(e,f,v))+(o?``:BDe(e,m,h,g,y)):XG(r,(s?``:d)+(a?``:RDe(f,!s,v))+(o?``:zDe(m,h,g,y)),n)}}function YG(e,t,n,r,i,a){if(e)return qG(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function LDe(e){return{html:NDe[e],richText:PDe[e]}}function XG(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=UG(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function RDe(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+fM(e)+`</span>`}function zDe(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=aj(e)?e:[e],`<span style="`+i+`;`+r+`">`+QA(e,function(e){return fM(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function ZG(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function BDe(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(aj(t)?t.join(` `):t,a)}function QG(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return NU(n)}function $G(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var eK=function(){function e(){this.richTextStyles={},this._nextStyleNameId=MI()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=MU({color:t,type:e,renderMode:n,markerId:r});return sj(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};aj(t)?Q(t,function(e){return GA(n,e)}):GA(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function tK(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=aj(s),l=QG(t,n),u,d,f,p;if(o>1||c&&!o){var m=VDe(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=yG(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=XI(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return GG(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[GG(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!wj(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function VDe(e,t,n,r,i){var a=t.getData(),o=$A(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?Q(r,function(e){u(yG(a,n,e),e)}):Q(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(GG(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var nK=$I();function rK(e,t){return e.getName(t)||e.getId(t)}var iK=`__universalTransitionEnabled`,aK=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=SG({count:UDe,reset:WDe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(nK(this).sourceManager=new zG(this)).prepareSource();var r=this.getInitialData(e,n);sK(r,this),this.dataTask.context.data=r,nK(this).dataBeforeProcessed=r,oK(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=tW(this),r=n?rW(e):{},i=this.subType;aW.hasClass(i)&&(i+=`Series`),UA(e,t.getTheme().get(this.subType)),UA(e,this.getDefaultOption()),UI(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&nW(e,r,n)},t.prototype.mergeOption=function(e,t){e=UA(this.option,e,!0),this.fillDataTextStyle(e.data);var n=tW(this);n&&nW(this.option,e,n);var r=nK(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);sK(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,nK(this).dataBeforeProcessed=i,oK(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!fj(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&UI(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=cK(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return nK(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=cK(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}nK(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return Aj(e)},t.prototype.getSourceManager=function(){return nK(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return nK(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return tK({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(OA.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=SW.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=rK(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=nj(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[rK(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){uj(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=rK(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=rK(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return aW.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(aW);XA(aK,bG),XA(aK,SW),DL(aK,aW);function oK(e){var t=e.name;XI(e)||(e.name=HDe(e)||t)}function HDe(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return Q(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function UDe(e){return e.model.getRawData().count()}function WDe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),GDe}function GDe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sK(e,t){Q(jj(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ij(KDe,t))})}function KDe(e,t){var n=cK(e);return n&&n.setOutputEnd((t||this).count()),t}function cK(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var lK=function(){function e(){this.group=new WF,this.uid=IH(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();EL(lK),OL(lK);function uK(){var e=$I();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var dK=$I(),qDe=uK(),fK=function(){function e(){this.group=new WF,this.uid=IH(`viewChart`),this.renderTask=SG({plan:JDe,reset:YDe}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&mK(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&mK(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){nH(this.group,e)},e.markUpdateMethod=function(e,t){dK(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function pK(e,t,n){e&&mB(e)&&(t===`emphasis`?Xz:Zz)(e,n)}function mK(e,t,n){var r=QI(e,t),i=t&&t.highlightKey!=null?wTe(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){pK(e,n,i)}):Q(HI(r),function(t){pK(e.getItemGraphicEl(t),n,i)})}EL(fK,[`dispose`]),OL(fK);function JDe(e){return qDe(e.model)}function YDe(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&dK(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),XDe[c]}var XDe={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},hK=`\0__throttleOriginMethod`,gK=`\0__throttleRate`,_K=`\0__throttleType`;function vK(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function yK(e,t,n,r){var i=e[t];if(i){var a=i[hK]||i,o=i[_K];if(i[gK]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=vK(a,n,r===`debounce`),i[hK]=a,i[_K]=r,i[gK]=n}return i}}function bK(e,t){var n=e[t];n&&n[hK]&&(n.clear&&n.clear(),e[t]=n[hK])}var xK=$I(),SK={itemStyle:kL(PH,!0),lineStyle:kL(NH,!0)},ZDe={lineStyle:`stroke`,itemStyle:`fill`};function CK(e,t){return e.visualStyleMapper||SK[t]||(console.warn(`Unknown style type '`+t+`'.`),SK.itemStyle)}function wK(e,t){return e.visualDrawType||ZDe[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var QDe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=CK(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=wK(e,r),c=a[s],l=oj(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||oj(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||oj(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=GA({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},TK=new FH,$De={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=CK(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){TK.option=n[r];var o=i(TK);GA(e.ensureUniqueItemVisual(t,`style`),o),TK.option.decal&&(e.setItemVisual(t,`decal`,TK.option.decal),TK.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},eOe={performRawSeries:!0,overallReset:function(e){var t=Aj();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();xK(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=xK(e).scope,a=wK(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},EK=Math.PI;function tOe(e,t){t||={},qA(t,{text:`loading`,textColor:$.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new WF,r=new ZR({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new tz({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new ZR({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new tV({shape:{startAngle:-EK/2,endAngle:-EK/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:EK*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:EK*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var DK=function(){function e(e,t,n,r){this._stageTaskMap=Aj(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):bL(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Aj();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Q(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Cj(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;Q(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Aj(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||SG({plan:oOe,reset:sOe,count:lOe}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||SG({reset:nOe});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Aj(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;Cj(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):Q(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,SG({reset:rOe,onDirty:aOe})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return oj(e)&&(e={overallReset:e,seriesType:uOe(e)}),e.uid=IH(`stageHandler`),t&&(e.visualType=t),e},e}();function nOe(e){e.overallReset(e.ecModel,e.api,e.payload)}function rOe(e){return e.dirtyOnOverallProgress&&iOe}function iOe(){this.agent.dirty(),this.getDownstream().dirty()}function aOe(){this.agent&&this.agent.dirty()}function oOe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function sOe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=HI(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?QA(t,function(e,t){return OK(t)}):cOe}var cOe=OK(0);function OK(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function lOe(e){return e.data.count()}function uOe(e){jK=null;try{e(kK,AK)}catch{}return jK}var kK={},AK={},jK;MK(kK,kW),MK(AK,Cz),kK.eachSeriesByType=kK.eachRawSeriesByType=function(e){jK=e},kK.eachComponent=function(e){e.mainType===`series`&&e.subType&&(jK=e.subType)};function MK(e,t){for(var n in t.prototype)e[n]=Fj}var NK=$.darkColor,PK=NK.background,FK=function(){return{axisLine:{lineStyle:{color:NK.axisLine}},splitLine:{lineStyle:{color:NK.axisSplitLine}},splitArea:{areaStyle:{color:[NK.backgroundTint,NK.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:NK.axisMinorSplitLine}},axisLabel:{color:NK.axisLabel},axisName:{}}},IK={label:{color:NK.secondary},itemStyle:{borderColor:NK.borderTint},dividerLineStyle:{color:NK.border}},LK={darkMode:!0,color:NK.theme,backgroundColor:PK,axisPointer:{lineStyle:{color:NK.border},crossStyle:{color:NK.borderShade},label:{color:NK.tertiary}},legend:{textStyle:{color:NK.secondary},pageTextStyle:{color:NK.tertiary}},textStyle:{color:NK.secondary},title:{textStyle:{color:NK.primary},subtextStyle:{color:NK.quaternary}},toolbox:{iconStyle:{borderColor:NK.accent50},feature:{dataView:{backgroundColor:PK,textColor:NK.primary,textareaColor:NK.background,textareaBorderColor:NK.border,buttonColor:NK.accent50,buttonTextColor:NK.neutral00}}},tooltip:{backgroundColor:NK.neutral20,defaultBorderColor:NK.border,textStyle:{color:NK.tertiary}},dataZoom:{borderColor:NK.accent10,textStyle:{color:NK.tertiary},brushStyle:{color:NK.backgroundTint},handleStyle:{color:NK.neutral00,borderColor:NK.accent20},moveHandleStyle:{color:NK.accent40},emphasis:{handleStyle:{borderColor:NK.accent50}},dataBackground:{lineStyle:{color:NK.accent30},areaStyle:{color:NK.accent20}},selectedDataBackground:{lineStyle:{color:NK.accent50},areaStyle:{color:NK.accent30}}},visualMap:{textStyle:{color:NK.secondary},handleStyle:{borderColor:NK.neutral30}},timeline:{lineStyle:{color:NK.accent10},label:{color:NK.tertiary},controlStyle:{color:NK.accent30,borderColor:NK.accent30}},calendar:{itemStyle:{color:NK.neutral00,borderColor:NK.neutral20},dayLabel:{color:NK.tertiary},monthLabel:{color:NK.secondary},yearLabel:{color:NK.secondary}},matrix:{x:IK,y:IK,backgroundColor:{borderColor:NK.axisLine},body:{itemStyle:{borderColor:NK.borderTint}}},timeAxis:FK(),logAxis:FK(),valueAxis:FK(),categoryAxis:FK(),line:{symbol:`circle`},graph:{color:NK.theme},gauge:{title:{color:NK.secondary},axisLine:{lineStyle:{color:[[1,NK.neutral05]]}},axisLabel:{color:NK.axisLabel},detail:{color:NK.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:NK.background}},radar:function(){var e=FK();return e.axisName={color:NK.axisLabel},e.axisLine.lineStyle.color=NK.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:NK.neutral20,textStyle:{color:NK.secondary}},emphasis:{itemStyle:{color:NK.neutral30}}}},sunburst:{itemStyle:{borderColor:NK.background}},map:{itemStyle:{borderColor:NK.border,areaColor:NK.neutral10},label:{color:NK.tertiary},emphasis:{label:{color:NK.primary},itemStyle:{areaColor:NK.highlight}},select:{label:{color:NK.primary},itemStyle:{areaColor:NK.highlight}}},geo:{itemStyle:{borderColor:NK.border,areaColor:NK.neutral10},emphasis:{label:{color:NK.primary},itemStyle:{areaColor:NK.highlight}},select:{label:{color:NK.primary},itemStyle:{color:NK.highlight}}}};LK.categoryAxis.splitLine.show=!1;var dOe=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(sj(e)){var i=TL(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};Q(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),RK=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],zK=RK.concat([`symbolKeepAspect`]),fOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<RK.length;o++){var s=RK[o],c=e.get(s);oj(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(GA({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=nj(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},pOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<zK.length;r++){var i=zK[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function BK(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function VK(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function HK(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:}}function UK(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}Q([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=GA({},t),i.dispatchAction(GA(t,{type:e[1],seriesIndex:n(r,t)}))})})}function WK(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=QI(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:aj(l)?c.getName(l[0]):c.getName(l),selected:sj(r)?r:GA({},r)})}})}function mOe(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(WK(`map`,`selectchanged`,t,r,e),WK(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(WK(`map`,`selected`,t,r,e),WK(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(WK(`map`,`unselected`,t,r,e),WK(`pie`,`unselected`,t,r,e))})}function GK(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var KK=new aM,qK={};function hOe(e,t){qK[e]=t}function JK(e){return qK[e]}var YK={};function XK(e,t){YK[e]=t}function gOe(e){return YK[e]}var ZK=$I();function _Oe(e){ZK(e).prepare={}}function vOe(e){ZK(e).fullUpdate={}}function QK(e){return ZK(e).prepare}function $K(e){return ZK(e).fullUpdate}var yOe=Math.round(Math.random()*9),bOe=typeof Object.defineProperty==`function`,xOe=function(){function e(){this._id=`__ec_inner_`+yOe++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return bOe?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),SOe=WR.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),COe={line:ZB,rect:ZR,roundRect:ZR,square:ZR,circle:NB,diamond:WR.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:WR.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:WR.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:SOe},wOe={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},eq={};Q(COe,function(e,t){eq[t]=new e});var TOe=WR.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=MF(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=eq[r];i||=(r=`rect`,eq[r]),wOe[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function EOe(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||$.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function tq(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?PV(e.slice(8),new GM(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?NV(e.slice(7),{},new GM(t,n,r,i),o?`center`:`cover`):new TOe({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=EOe,a&&c.setColor(a),c}function nq(e){return aj(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function rq(e,t){if(e!=null)return aj(e)||(e=[e,e]),[dI(e[0],t[0])||0,dI(yj(e[1],e[0]),t[1])||0]}function iq(e){return isFinite(e)}function DOe(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=iq(r)?r:0,i=iq(i)?i:1,a=iq(a)?a:0,o=iq(o)?o:0,e.createLinearGradient(r,a,i,o)}function OOe(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=iq(o)?o:.5,s=iq(s)?s:.5,c=c>=0&&iq(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function aq(e,t,n){for(var r=t.type===`radial`?OOe(e,t,n):DOe(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function kOe(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function oq(e){return parseInt(e,10)}function sq(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||oq(s[r])||oq(e.style[r]))-(oq(s[a])||0)-(oq(s[o])||0)||0}function AOe(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:lj(e)?[e]:aj(e)?e:null}function cq(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&AOe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=QA(n,function(e){return e/i}),r/=i)}return[n,r]}var jOe=new AR(!0);function lq(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function uq(e){return typeof e==`string`&&e!==`none`}function dq(e){var t=e.fill;return t!=null&&t!==`none`}function fq(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function pq(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function mq(e,t,n){var r=jL(t.image,t.__image,n);if(NL(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ij),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function MOe(e,t,n,r,i){var a,o=lq(n),s=dq(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||jOe,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?aq(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?aq(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?mq(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?mq(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=cq(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&pq(e,n),s&&fq(e,n)):(s&&fq(e,n),o&&pq(e,n)),T&&e.setLineDash([])}function NOe(e,t,n){var r=t.__image=jL(n.image,t.__image,t,t.onload);if(!(!r||!NL(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function POe(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=cq(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(lq(n)&&e.strokeText(i,n.x,n.y),dq(n)&&e.fillText(i,n.x,n.y)):(dq(n)&&e.fillText(i,n.x,n.y),lq(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var hq=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],gq=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function _q(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){wq(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?JL.opacity:o}(r||t.blend!==n.blend)&&(a||=(wq(e,i),!0),e.globalCompositeOperation=t.blend||JL.blend);for(var s=0;s<hq.length;s++){var c=hq[s];(r||t[c]!==n[c])&&(a||=(wq(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(wq(e,i),!0),e.shadowColor=t.shadowColor||JL.shadowColor),a}function vq(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=_q(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(wq(e,i),!0),uq(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(wq(e,i),!0),uq(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(wq(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(wq(e,i),!0),e.lineWidth=c)}for(var l=0;l<gq.length;l++){var u=gq[l],d=u[0];(r||a[d]!==o[d])&&(s||=(wq(e,i),!0),e[d]=a[d]||u[1])}return s}function FOe(e,t,n,r,i){return _q(e,t.style,n&&n.style,r,i)}function yq(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function IOe(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),yq(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function LOe(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var bq=1,xq=2,Sq=3,Cq=4;function ROe(e){var t=dq(e),n=lq(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function wq(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Tq(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Eq(e,t,n),Dq(e,n)}function Eq(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||kOe(i,a))&&(a&&(wq(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(wq(e,n),e.save(),IOe(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof WR&&t.autoBatch&&ROe(o);s||LOe(r,l.transform)?(wq(e,n),yq(e,t)):u||wq(e,n),t instanceof WR?(n.lastDrawType!==bq&&(c=!0,n.lastDrawType=bq),vq(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),MOe(e,t,o,u,n)):t instanceof GR?(n.lastDrawType!==Sq&&(c=!0,n.lastDrawType=Sq),vq(e,t,l,c,n),POe(e,t,o)):t instanceof KR?(n.lastDrawType!==xq&&(c=!0,n.lastDrawType=xq),FOe(e,t,l,c,n),NOe(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Cq&&(c=!0,n.lastDrawType=Cq),zOe(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&wq(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Dq(e,t){wq(e,t),t.prevElClipPaths&&e.restore()}function zOe(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Eq(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Dq(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Eq(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Dq(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Oq=new xOe,kq=new HN(100),Aq=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function jq(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Oq.delete(e);var a=Oq.get(e);if(a)return a;var o=qA(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Oq.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Aq.length;++s){var c=o[Aq[s]];if(c!=null&&!aj(c)&&!sj(c)&&!lj(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=kq.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Nq(o.dashArrayX),f=BOe(o.dashArrayY),p=Mq(o.symbol),m=VOe(d),h=Pq(f),g=!i&&kA.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&kq.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=PI(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=PI(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=tq(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else Tq(y,u)}}}}function Mq(e){if(!e||e.length===0)return[[`rect`]];if(sj(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!sj(e[n])){t=!1;break}if(t)return Mq([e]);for(var r=[],n=0;n<e.length;++n)sj(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Nq(e){if(!e||e.length===0)return[[0,0]];if(lj(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!lj(e[r])){n=!1;break}if(n)return Nq([e]);for(var i=[],r=0;r<e.length;++r)if(lj(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=QA(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function BOe(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(lj(e)){var t=Math.ceil(e);return[t,t]}var n=QA(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function VOe(e){return QA(e,function(e){return Pq(e)})}function Pq(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var HOe=SL(UOe);function UOe(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=jq(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=jq(i,t)}}})}var WOe=`6.1.0`,GOe={zrender:`6.1.0`},KOe=1,qOe=800,JOe=900,YOe=920,XOe=1e3,ZOe=2e3,Fq=5e3,Iq=1e3,QOe=1100,Lq=2e3,Rq=3e3,$Oe=4e3,zq=4500,eke=4600,tke=5e3,nke=6e3,Bq=7e3,Vq={PROCESSOR:{SERIES_FILTER:qOe,AXIS_STATISTICS:YOe,FILTER:XOe,STATISTIC:Fq,STATISTICS:Fq},VISUAL:{LAYOUT:Iq,PROGRESSIVE_LAYOUT:QOe,GLOBAL:Lq,CHART:Rq,POST_CHART_LAYOUT:eke,COMPONENT:$Oe,BRUSH:tke,CHART_ITEM:zq,ARIA:nke,DECAL:Bq}},Hq=`__flagInMainProcess`,Uq=`__mainProcessVersion`,Wq=`__pendingUpdate`,Gq=`__needsUpdateStatus`,Kq=/^[a-zA-Z0-9_]+$/,qq=`__connectUpdateStatus`,Jq=0,rke=1,ike=2;function Yq(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return Zq(this,e,t)}}function Xq(e){return function(){var t=[...arguments];return Zq(this,e,t)}}function Zq(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),aM.prototype[t].apply(e,n)}var Qq=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(aM),$q=Qq.prototype;$q.on=Xq(`on`),$q.off=Xq(`off`);var eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ=function(e){Z(t,e);function t(t,n,r){var i=e.call(this,new dOe)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[Uq]=1,r.ssr&&ZF(function(e){var t=fz(e),n=t.dataIndex;if(n!=null){var r=Aj();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=qF(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:yj(r.useDirtyRect,s),useCoarsePointer:yj(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=vK(rj(c.flush,c),17),i._updateTheme(n),i._locale=mEe(r.locale||UH),i._coordSysMgr=new LU;var l=i._api=mJ(i);function u(e,t){return e.__prio-t.__prio}return fN(EJ,u),fN(wJ,u),i._scheduler=new DK(i,l,wJ,EJ),i._messageCenter=new Qq,i._initEvents(),i.resize=rj(i.resize,i),c.animation.on(`frame`,i._onframe,i),lJ(c,i),uJ(c,i),Ej(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(_J(this),this[Wq]){var r=this[Wq].silent;this[Hq]=!0,vJ(this);try{eJ(this),rJ.update.call(this,null,this[Wq].updateParams)}catch(e){throw this[Hq]=!1,this[Wq]=null,e}this._zr.flush(),this[Hq]=!1,this[Wq]=null,sJ.call(this,r),cJ.call(this,r)}else if(e.unfinished){var i=KOe;do{e.unfinished=!1;var a=kA.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),aJ(this,t),e.performVisualTasks(t),pJ(this,this._model,n,`remain`,{}),i-=kA.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Hq]){if(this._disposed){this.id;return}var r,i,a;if(uj(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Hq]=!0,vJ(this),!this._model||t){var o=new qEe(this._api),s=this._theme,c=this._model=new kW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},TJ);var l={seriesTransition:a,optionChanged:!0};if(n)this[Wq]={silent:r,updateParams:l},this[Hq]=!1,this.getZr().wakeUp();else{try{eJ(this),rJ.update.call(this,null,l)}catch(e){throw this[Wq]=null,this[Hq]=!1,e}this._ssr||this._zr.flush(),this[Wq]=null,this[Hq]=!1,sJ.call(this,r),cJ.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[Hq]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[Wq]&&(r??=this[Wq].silent,i=this[Wq].updateParams,this[Wq]=null),this[Hq]=!0,vJ(this);try{this._updateTheme(e),n.setTheme(this._theme),eJ(this),rJ.update.call(this,{type:`setTheme`},i)}catch(e){throw this[Hq]=!1,e}this[Hq]=!1,sJ.call(this,r),cJ.call(this,r)}}},t.prototype._updateTheme=function(e){sj(e)&&(e=DJ[e]),e&&(e=HA(e),e&&YW(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||OA.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return Q(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;Q(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return Q(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(AJ[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Q(kJ,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(HA(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=kA.createCanvas(),h=qF(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return Q(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new ZR({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),Q(u,function(e){var t=new KR({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return iJ(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return iJ(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return iJ(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return Q(eL(n,e),function(e,n){n.indexOf(`Models`)>=0&&Q(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=eL(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?VK(i,t):BK(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Q(ake,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&GK(i,function(e){var t=fz(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=GA({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;Q(CJ,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),mOe(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&aL(this.getDom(),jJ,``);var e=this,t=e._api,n=e._model;Q(e._componentsViews,function(e){e.dispose(n,t)}),Q(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete kJ[e.id]},t.prototype.resize=function(e){if(!this[Hq]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[Wq]&&(r??=this[Wq].silent,n=!0,this[Wq]=null),this[Hq]=!0,vJ(this);try{n&&eJ(this),rJ.update.call(this,{type:`resize`,animation:GA({duration:0},e&&e.animation)})}catch(e){throw this[Hq]=!1,e}this[Hq]=!1,sJ.call(this,r),cJ.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(uj(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),OJ[e]){var n=OJ[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=GA({},e);return t.type=SJ[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(uj(t)||(t={silent:!!t}),xJ[e.type]&&this._model){if(this[Hq]){this._pendingActions.push(e);return}var n=t.silent;oJ.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&OA.browser.weChat&&this._throttledZrFlush(),sJ.call(this,n),cJ.call(this,n)}},t.prototype.updateLabelLayout=function(){KK.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){eJ=function(e){_Oe(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),tJ(e,!0),tJ(e,!1),t.plan()},tJ=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=TL(e.type);u=new(t?lK.getClass(d.main,d.sub):fK.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},nJ=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){Q([].concat(e._componentsViews,e._chartsViews),l);return}var o=iL(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=Aj(),Q(HI(s),function(e){var t=YI(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null))if(gB(n))if(t instanceof aK)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&gTe(t,n,e._api);else{var r=oB(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&aB(t.mainType,t.componentIndex,e._api),a&&Q(a,function(e){n.type===`highlight`?Xz(e):Zz(e)})}else hB(n)&&t instanceof aK&&(yTe(t,n,e._api),sB(t),gJ(e))},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},rJ={prepareAndUpdate:function(e){eJ(this),rJ.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){vOe(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),KK.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),aJ(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),dJ(this,r,i,e,n),KK.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}});var a=Aj();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),pJ(t,n,r,e,{},a),KK.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),fK.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),dJ(this,n,this._api,e,{}),KK.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),fK.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),KK.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){rJ.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=eL(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}iJ=e,aJ=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},oJ=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=xJ[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&TL(s[0]);this[Hq]=!0,vJ(this);var u=[e],d=!1;e.batch&&(d=!0,u=QA(e.batch,function(t){return t=qA(GA({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=hB(e),_=gB(e);if(_&&rB(this._api),Q(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=GA({},t),p.type=h,f.push(p),_){var a=tL(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;nJ(n,c,t,u),gJ(n)}else g?(nJ(n,c,t,`series`),gJ(n)):l&&nJ(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[Wq]?(eJ(this),rJ.update.call(this,e),this[Wq]=null):rJ[c].call(this,e)}catch(e){throw this[Hq]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[Hq]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;Cj(uj(y)),v=qA({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},sJ=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();oJ.call(this,n,e)}},cJ=function(e){!e&&this.trigger(`updated`)},lJ=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[Wq]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},uJ=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=GK(n,mB);r&&(_Te(r,e,t._api),gJ(t))}).on(`mouseout`,function(e){var n=e.target,r=GK(n,mB);r&&(vTe(r,e,t._api),gJ(t))}).on(`click`,function(e){var n=e.target,r=GK(n,function(e){return fz(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=fz(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;fN(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),Q(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}dJ=function(e,t,r,i,a){n(t),fJ(e,t,r,i,a),Q(e._chartsViews,function(e){e.__alive=!1}),pJ(e,t,r,i,a),Q(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},fJ=function(e,t,n,r,i,a){Q(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},pJ=function(e,t,n,r,l,u){var d=e._scheduler;l=GA(l||{},{updatedSeries:t.getSeries()}),KK.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),sB(t)}),d.unfinished=f||d.unfinished,KK.trigger(`series:layoutlabels`,t,n,l),KK.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),KK.trigger(`series:afterupdate`,t,n,l)},gJ=function(e){e[Gq]=!0,e.getZr().wakeUp()},vJ=function(e){e[Uq]=(e[Uq]+1)%1e6},_J=function(e){e[Gq]&&(e.getZr().storage.traverse(function(e){bV(e)||r(e)}),e[Gq]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>yj(t.get(`hoverLayerThreshold`),fW.hoverLayerThreshold)&&!OA.node&&!OA.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=sH(e);t.eachRendered(function(e){return lH(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!bV(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(bV(e))return;if(e instanceof WR&&TTe(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}mJ=function(e){return new(function(t){Z(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Xz(t,n),gJ(e)},n.prototype.leaveEmphasis=function(t,n){Zz(t,n),gJ(e)},n.prototype.enterBlur=function(t){Qz(t),gJ(e)},n.prototype.leaveBlur=function(t){$z(t),gJ(e)},n.prototype.enterSelect=function(t){eB(t),gJ(e)},n.prototype.leaveSelect=function(t){tB(t),gJ(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[Uq]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Cz))(e)},hJ=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[qq]=t}}Q(SJ,function(n,r){e._messageCenter.on(r,function(n){if(AJ[e.group]&&e[qq]!==Jq){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Q(kJ,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,Jq),Q(i,function(e){e[qq]!==rke&&e.dispatchAction(r)}),t(i,ike)}})})}}(),t}(aM),bJ=yJ.prototype;bJ.on=Yq(`on`),bJ.off=Yq(`off`),bJ.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var ake=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],xJ={},SJ={},CJ={},wJ=[],TJ=[],EJ=[],DJ={},OJ={},kJ={},AJ={},oke=new Date-0,ske=new Date-0,jJ=`_echarts_instance_`;function cke(e,t,n){var r=!(n&&n.ssr);if(r){var i=NJ(e);if(i)return i}var a=new yJ(e,t,n);return a.id=`ec_`+oke++,kJ[a.id]=a,r&&aL(e,jJ,a.id),hJ(a),KK.trigger(`afterinit`,a),a}function lke(e){if(aj(e)){var t=e;e=null,Q(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+ske++,Q(t,function(t){t.group=e})}return AJ[e]=!0,e}function MJ(e){AJ[e]=!1}var uke=MJ;function dke(e){sj(e)?e=kJ[e]:e instanceof yJ||(e=NJ(e)),e instanceof yJ&&!e.isDisposed()&&e.dispose()}function NJ(e){return kJ[swe(e,jJ)]}function fke(e){return kJ[e]}function PJ(e,t){DJ[e]=t}function FJ(e){JA(TJ,e)<0&&TJ.push(e)}function IJ(e,t){GJ(wJ,e,t,ZOe)}function LJ(e){zJ(`afterinit`,e)}function RJ(e){zJ(`afterupdate`,e)}function zJ(e,t){KK.on(e,t)}function BJ(e,t,n){var r,i,a,o,s;oj(t)&&(n=t,t=``),uj(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;xJ[r]||(Cj(Kq.test(r)&&Kq.test(i)),a&&Cj(i!==r),xJ[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},CJ[i]=1,a&&s&&(CJ[l]=1),SJ[l]=r)}function VJ(e,t){LU.register(e,t)}function pke(e){var t=LU.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function mke(e,t){XK(e,t)}function HJ(e,t){GJ(EJ,e,t,Iq,`layout`,!0)}function UJ(e,t){GJ(EJ,e,t,Rq,`visual`,!0)}var WJ=[];function GJ(e,t,n,r,i,a){if((oj(t)||uj(t))&&(n=t,t=r),!(JA(WJ,n)>=0)){WJ.push(n);var o=DK.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function KJ(e,t){OJ[e]=t}function hke(e){AA({createCanvas:e})}function qJ(e,t,n){var r=JK(`registerMap`);r&&r(e,t,n)}function gke(e){var t=JK(`getMap`);return t&&t(e)}var JJ=EDe;UJ(Lq,QDe),UJ(zq,$De),UJ(zq,eOe),UJ(Lq,fOe),UJ(zq,pOe),UJ(Bq,HOe),FJ(YW),IJ(JOe,aDe),KJ(`default`,tOe),BJ({type:jz,event:jz,update:jz},Fj),BJ({type:Mz,event:Mz,update:Mz},Fj),BJ({type:Nz,event:Iz,update:Nz,action:Fj,refineEvent:YJ,publishNonRefinedEvent:!0}),BJ({type:Pz,event:Iz,update:Pz,action:Fj,refineEvent:YJ,publishNonRefinedEvent:!0}),BJ({type:Fz,event:Iz,update:Fz,action:Fj,refineEvent:YJ,publishNonRefinedEvent:!0});function YJ(e,t,n,r){return{eventContent:{selected:bTe(n),isFromClick:t.isFromClick||!1}}}PJ(`default`,{}),PJ(`dark`,LK);var _ke={},XJ=[],vke={registerPreprocessor:FJ,registerProcessor:IJ,registerPostInit:LJ,registerPostUpdate:RJ,registerUpdateLifecycle:zJ,registerAction:BJ,registerCoordinateSystem:VJ,registerLayout:HJ,registerVisual:UJ,registerTransform:JJ,registerLoading:KJ,registerMap:qJ,registerImpl:hOe,PRIORITY:Vq,ComponentModel:aW,ComponentView:lK,SeriesModel:aK,ChartView:fK,registerComponentModel:function(e){aW.registerClass(e)},registerComponentView:function(e){lK.registerClass(e)},registerSeriesModel:function(e){aK.registerClass(e)},registerChartView:function(e){fK.registerClass(e)},registerCustomSeries:function(e,t){XK(e,t)},registerSubTypeDefaulter:function(e,t){aW.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){JF(e,t)}};function ZJ(e){if(aj(e)){Q(e,function(e){ZJ(e)});return}JA(XJ,e)>=0||(XJ.push(e),oj(e)&&(e={install:e}),e.install(vke))}function QJ(e){return e==null?0:e.length||1}function $J(e){return e}var eY=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||$J,this._newKeyGetter=r||$J,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=QJ(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=QJ(c),d=QJ(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=QJ(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=QJ(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),yke=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function bke(e,t){var n={},r=n.encode={},i=Aj(),a=[],o=[],s={};Q(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;tY(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),xke(n.type)&&(a[0]=t),tY(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}hz.each(function(e,t){var i=tY(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=QA(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new yke(s,t),n}function tY(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function nY(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function xke(e){return!(e===`ordinal`||e===`time`)}var rY=function(){function e(e){this.otherDims={},e!=null&&GA(this,e)}return e}(),Ske=$I(),Cke={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},iY=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=sY(this.source))},e.prototype.getSourceDimensionIndex=function(e){return yj(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=rG(this.source),n=!cY(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=Cke[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function aY(e){return e instanceof iY}function oY(e){for(var t=Aj(),n=0;n<(e||[]).length;n++){var r=e[n],i=uj(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function sY(e){var t=Ske(e);return t.dimNameMap||=oY(e.dimensionsDefine)}function cY(e){return e>30}var lY=uj,uY=QA,wke=typeof Int32Array>`u`?Array:Int32Array,Tke=`e\0\0`,dY=-1,Eke=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Dke=[`_approximateExtent`],fY,pY,mY,hY,gY,_Y,vY,yY=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;aY(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=sj(u)?new rY({name:u}):u instanceof rY?u:new rY(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=Aj();Q(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(lj(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof RG&&(i=e),!i){var a=this.dimensions,o=ZW(e)||ZA(e)?new uG(e,a.length):e;i=new RG;var s=uY(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=bke(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&vY(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&JCe(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=YI(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=YI(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)vY(this,o);fY(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){lY(e)?GA(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=mY(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return pY(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return aj(e)?r.getValues(uY(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?dY:r},e.prototype.each=function(e,t,n){oj(e)&&(n=t,t=e,e=[]);var r=n||this,i=uY(hY(e),this._getStoreDimIndex,this);this._store.each(i,r?rj(t,r):t)},e.prototype.filterSelf=function(e,t,n){oj(e)&&(n=t,t=e,e=[]);var r=n||this,i=uY(hY(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?rj(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=nj(e),i=[];return Q(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){oj(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=uY(hY(e),this._getStoreDimIndex,this),o=_Y(this);return o._store=this._store.map(a,i?rj(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=uY(hY(e),this._getStoreDimIndex,this);this._store.modify(a,i?rj(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=_Y(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=_Y(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=_Y(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new FH(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new eY(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return pY(e,t)},function(e){return pY(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},lY(e)?GA(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),aj(i)?i=i.slice():lY(i)&&(i=GA({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,lY(t)?GA(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){lY(e)?GA(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?GA(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){pz(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){Q(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:uY(this.dimensions,this._getDimInfo,this),this.hostModel),gY(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];oj(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(xj(arguments)))})},e.internalField=function(){fY=function(e){var t=e._invertedIndicesMap;Q(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new wke(a.categories.length);for(var s=0;s<n.length;s++)n[s]=dY;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},mY=function(e,t,n){return YI(e._getCategory(t,n),null)},pY=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=mY(e,e._idDimIdx,t)),n??=Tke+t,n},hY=function(e){return aj(e)||(e=e==null?[]:[e]),e},_Y=function(t){var n=new e(t._schema?t._schema:uY(t.dimensions,t._getDimInfo,t),t.hostModel);return gY(n,t),n},gY=function(e,t){Q(Eke.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,Q(Dke,function(n){e[n]=HA(t[n])}),e._calculationInfo=GA({},t._calculationInfo)},vY=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=mY(e,i,t)),s==null&&a!=null&&(r[t]=s=mY(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Oke(e,t){return bY(e,t).dimensions}function bY(e,t){ZW(e)||(e=$W(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Aj(),a=[],o=kke(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&cY(o),c=r===e.dimensionsDefine,l=c?sY(e):oY(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Aj(u),f=new MG(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=uj(n)?n:{name:n},o=new rY,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=HI(e).slice();if(n.length===1&&!sj(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);Q(n,function(e,n){var i=sj(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;Q(n,function(e){var t,n,r,i;if(sj(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=GA({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=HI(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}Q(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(qA(o,i),t,a),o.name==null&&n){var s=n[a];!uj(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&qA(o.otherDims,r)})}});function g(e,t,n){hz.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)Q(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=Ake(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(vW(e,S)===pW.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return vL(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new iY({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function kke(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Q(t,function(e){var t;uj(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Ake(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var jke=function(){function e(e){this.coordSysDims=[],this.axisMap=Aj(),this.categoryAxisMap=Aj(),this.coordSysName=e}return e}();function Mke(e){var t=e.get(`coordinateSystem`),n=new jke(t),r=Nke[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Nke={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,nL).models[0],a=e.getReferringComponents(`yAxis`,nL).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),xY(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),xY(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,nL).models[0];t.coordSysDims=[`single`],n.set(`single`,i),xY(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,nL).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),xY(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),xY(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();Q(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),xY(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,nL).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function xY(e){return e.get(`type`)===`category`}function SY(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Pke(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(Q(a,function(e,t){sj(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),Q(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;Q(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function Pke(e){return!aY(e.schema)}function CY(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function wY(e,t){return CY(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function Fke(e,t){var n=e.get(`coordinateSystem`),r=LU.get(n),i;return t&&t.coordSysDims&&(i=QA(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=nY(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function Ike(e,t,n){var r,i;return n&&Q(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function TY(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=$W(e)):(i=r.getSource(),a=i.sourceFormat===gz);var o=Mke(t),s=Fke(t,o),c=n.useEncodeDefaulter,l=oj(c)?c:c?ij(hW,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=bY(i,u),f=Ike(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=SY(t,{schema:d,store:p}),h=new yY(d,t);h.setCalculationInfo(m);var g=f!=null&&Lke(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function Lke(e){if(e.sourceFormat===`original`)return!aj(GI(Rke(e.data||[])))}function Rke(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var EY=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();OL(EY);var zke=0,DY=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++zke,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&QA(r,Bke);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!sj(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=Aj(this.categories)},e}();function Bke(e){return uj(e)&&e.value!=null?e.value:e+``}var OY=nj({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function kY(e,t,n){var r;e||={};var i=qH();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(Q(OY,function(t){a[t]&&(e[t]=rj(a[t],a))}),r=a)}return r??FY(e,n),{brk:r,mapper:e}}function AY(e,t){Q(OY,function(n){e[n]=t[n]})}function jY(e,t){e.freeze=Fj}function MY(e){return e.getExtentUnsafe(0,2)}function NY(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Vke(e){var t=NY(e,3);return t[1]-t[0]}function PY(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function FY(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():uL(),GA(n,Hke),n}var Hke={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=NY(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){IY(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),IY(r,e,t,n)},freeze:function(){}};function IY(e,t,n,r){hL(n,r)&&(e[t][0]=n,e[t][1]=r)}function LY(e){return RY(e)||BY(e)}function RY(e){return e.type===`interval`}function zY(e){return e.type===`time`}function BY(e){return e.type===`log`}function VY(e){return e.type===`ordinal`}function Uke(e){var t=EI(e),n=oI(10,t),r=rI(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,mI(r*n,-t)}function HY(e){return gI(e)+2}function UY(e,t){return sI(e)/sI(t)}function WY(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return oI(t,e)}function GY(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=nI(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!mL(r[0])||!mL(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Wke(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function KY(e,t){return e||=t,rI(tI(e,1))}function qY(e,t,n){var r=MY(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var JY=function(e){Z(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,AY(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new DY({}),aj(i)&&(i=new DY({categories:QA(i,function(e){return uj(e)?e.value:e})})),r._ordinalMeta=i;var a=kY(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,jY(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:sj(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=rI(e),e},t.prototype.getTicks=function(){var e=[];return qY(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=eI(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=MY(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(rI(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(EY);EY.registerClass(JY);function YY(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=HY(f);u<t-1;){var m=mI(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=qH();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var XY=function(e){Z(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=kY(r,JH(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return HA(this._cfg)},t.prototype.setConfig=function(e){var t=MY(this);this._cfg=e=HA(e),e.niceExtent??=t.slice(),e.intervalPrecision??=HY(e.interval)},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=MY(this),i=t.niceExtent,a=t.intervalPrecision,o=qH(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?mI(i[0]-n,a):r[0]});for(var d=function(e,t){return rI((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=eI(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=mI(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=mI(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?mI(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return YY(this,e,YH(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=gI(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),wU(mI(e.value,n,!0))},t.type=`interval`,t}(EY);EY.registerClass(XY);var Gke=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},ZY=function(e){Z(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=kY(r,JH(r,n),null).brk,r}return t.prototype.getLabel=function(e){return cU(e.value,iU[CEe(sU(this._minLevelUnit))]||iU.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return wEe(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=MY(this),r=qH(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return qH().addBreaksToTicks(o,i.breaks,n),o;o=Qke(this._minLevelUnit,this._approxInterval,s,n,PY(this),i);var c=aU.length-1,l=0;return Q(o,function(e){e.time&&(c=Math.min(c,JA(aU,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&qH().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&qH().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(JA(aU,lU(e.vmin,s)),JA(aU,lU(e.vmax,s))),n=0,r=0;r<aU.length;r++)if(!$Y(aU[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:aU[Math.max(i,t)],upperTimeUnit:aU[i]}}),o},t.prototype.getMinorTicks=function(e){return YY(this,e,YH(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return lj(e)?Math.round(e):+wI(e)},t.type=`time`,t}(EY),QY=[[`second`,ZH],[`minute`,QH],[`hour`,$H],[`quarter-day`,$H*6],[`half-day`,$H*12],[`day`,eU*1.2],[`half-week`,eU*3.5],[`week`,eU*7],[`month`,eU*31],[`quarter`,eU*95],[`half-year`,tU/2],[`year`,tU]];function $Y(e,t,n,r){return uU(new Date(t),e,r).getTime()===uU(new Date(n),e,r).getTime()}function Kke(e,t){return e/=eU,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function qke(e){var t=30*eU;return e/=t,e>6?6:e>3?3:e>2?2:1}function Jke(e){return e/=$H,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function eX(e,t){return e/=t?QH:ZH,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Yke(e){return tI(DI(e,!0),1)}function Xke(e,t,n){var r=Math.max(0,JA(aU,t)-1);return uU(new Date(e),aU[r],n).getTime()}function Zke(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Qke(e,t,n,r,i,a){var o=yEe,s=0;function c(e,t,n,i,o,c,l){for(var u=Zke(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!$Y(sU(e),r[0],r[1],n)){s&&(i=[{value:Xke(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/eU/365)),p=dU(n),m=TEe(n);break;case`half-year`:case`quarter`:case`month`:f=qke(t),p=fU(n),m=vU(n);break;case`week`:case`half-week`:case`day`:f=Kke(t,31),p=pU(n),m=yU(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Jke(t),p=mU(n),m=bU(n);break;case`minute`:f=eX(t,!0),p=hU(n),m=xU(n);break;case`second`:f=eX(t,!1),p=gU(n),m=SU(n);break;case`millisecond`:f=Yke(t),p=_U(n),m=CU(n);break}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=sU(o[m]);if(SEe(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?sU(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ej(QA(u,function(e){return ej(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=lU(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}vL(S,fwe,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=lU(r[0],n),k=lU(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var $ke=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=eU,n[1]+=eU),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-eU}e.setExtent(n[0],n[1]);var i=KY(t.splitNumber,10),a=PY(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=QY.length,l=Math.min(Gke(QY,a,0,c),c-1),u=QY[l][1],d=QY[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};EY.registerClass(ZY);var tX=0,nX=1,eAe=2,rX=function(e){Z(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=XY.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[tX]=i[nX]=a[tX]=a[nX]=NaN,AY(r,t.mapperMethods);var s=qH(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},eAe,l),r.powStub=new XY({breakParsed:l.original}),r.intervalStub=new XY({breakParsed:l.transformed}),jY(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=qH(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return QA(i.getTicks(e||{}),function(e){var i=e.value,o=WY(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,YH(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return YY(this,e,YH(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(UY(e,this.base))},scale:function(e){return WY(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=UY(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return iX.depth=n,aX.lookup=this._lookup,WY(n===2?e:this.intervalStub.transformOut(e,iX),this.base,aX)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!hL(t,n)||t<=0||n<=0)){var r=oX,i=oX;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[tX]=t,r[nX]=n);var o=this.base;this.intervalStub.setExtent2(e,i[tX]=UY(t,o),i[nX]=UY(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return hL(t[0],t[1])&&FI(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(EY);EY.registerClass(rX);var iX={},aX={},oX=[],sX={value:1,category:1,time:1,log:1},cX=$I();function lX(e){var t=e.get(`type`);return(t==null||!Pj(sX,t)&&!EY.getClass(t))&&(t=`value`),t}function uX(e,t,n){var r=qH(),i;switch(r&&(i=gX(e,t,n)),t){case`category`:return new JY({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:uL()});case`time`:return new ZY({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new rX({logBase:e.get(`logBase`),breakOption:i});case`value`:return new XY({breakOption:i});default:return new((EY.getClass(t))||XY)({})}}function tAe(e,t,n){var r=n?NY(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return hL(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function nAe(e){cX(e).noOnMyZero=!0}function rAe(e){return cX(e).noOnMyZero}function dX(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=bEe(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(sj(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(oj(t)){if(e.type===`category`)return function(n,r){return t(fX(e,n),n.value-e.scale.getExtent()[0],null)};var r=qH();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(fX(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function fX(e,t){var n=e.scale;return VY(n)?n.getLabel(t):t.value}function pX(e){return e.get(`interval`)??`auto`}function iAe(e){return e.type===`category`&&pX(e.getLabelModel())===0}function aAe(e,t){var n={};return Q(e.mapDimensionsAll(t),function(t){n[wY(e,t)]=!0}),nj(n)}function mX(e){return e===`middle`||e===`center`}function hX(e){return e.getShallow(`show`)}function gX(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!qH()||!n||!oAe(t)?void 0:r}function oAe(e){return e!==`category`}function _X(e,t,n,r,i,a){var o=BY(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=Wke(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function vX(e,t){return VY(e)?e.getRawOrdinalNumber(t.value):t.value}function yX(e,t){return VY(e)&&!!t.get(`boundaryGap`)}var bX=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),sAe=_L(),xX=$I(),cAe=$I();function SX(e,t){var n=e.model,r=xX($K(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function lAe(e,t){return wX(SX(e,t))}function uAe(e,t){var n=[];return CX(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(wX(e))}),n}function CX(e,t){var n=xX($K(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function wX(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function dAe(e,t){var n=e.model.ecModel,r=xX($K(n)).axSer;r&&EX(n,r.get(e.model.uid),t)}function TX(e,t,n){var r=SX(e,t);r&&EX(e.model.ecModel,r.sers,n)}function EX(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function fAe(e,t){var n=SX(e,t);if(!n||!n.sers.length)return 0;var r=0;return EX(e.model.ecModel,n.sers,function(){r++}),r}function DX(e,t,n){var r=xX($K(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function OX(e,t){var n=e.model,r=xX($K(n.ecModel)).keys;r&&Q(r.get(n.uid),function(e){t(e)})}function pAe(e){var t=cAe(QK(e)),n=t.keyed||=Aj();CX(e,function(t,r,i){var a=n.get(r)||n.set(r,Aj()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&kX.liPosMinGap(e,t,o)})}function mAe(e,t){kX[e]=t}var kX={};function AX(e,t,n){if(e){var r=t.ecModel,i=xX($K(r)),a=e.model.uid,o=i.axSer||=Aj();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=NX.get(jX(s,c,n))||NX.get(jX(s,c,null));if(l){var u=i.keyed||=Aj(),d=i.keys||=Aj(),f=l.key,p=u.get(f)||u.set(f,Aj()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function jX(e,t,n){return e+`|&`+yj(t,!0)+`|&`+(n||``)}function MX(e,t){var n=jX(t.seriesType,t.baseAxis,t.coordSysType);NX.set(n,t),sAe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:pAe})})}var NX=Aj(),hAe=$I(),gAe=3,PX=function(){function e(e,t,n,r,i){var a=VY(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(RY(e)||BY(e)||zY(e))&&(fL(l,IX(e,t.get(`dataMin`,!0))),pL(l,IX(e,t.get(`dataMax`,!0)))),uwe(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=IX(e,oj(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=IX(e,oj(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=_Ae(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!mL(u[0])&&(u[0]=NaN),!mL(u[1])&&(u[1]=NaN);var g=s||_j(u[0])||_j(u[1])||a&&!o,_=RY(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=IX(e,t.get(`startValue`,!0)),x=b!=null;!FI(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),FI(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),FX(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),FX(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function FX(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),gL(t))}function IX(e,t){return t==null?null:_j(t)?NaN:e.parse(t)}function _Ae(e,t){var n;if(VY(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=aj(r)?r:[r,r]}return[LX(n[0]),LX(n[1])]}function LX(e){return jF(typeof e==`boolean`?0:e,1)||0}function RX(e){var t=hAe(e.scale);return t.extent||=uL(),t}function vAe(e,t){RX(e).dimIdxInCoord=t.get(e.dim)}function zX(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||yAe(n,e,i,r,t)}function yAe(e,t,n,r,i){var a=RX(t),o=a.extent,s=!1;dAe(t,function(r){if(r.boxCoordinateSystem){var i=zU(r).coord,c=a.dimIdxInCoord;if(c>=0&&aj(i)){var l=i[c];l!=null&&!aj(l)&&dL(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;Q(aAe(u,n),function(e){lwe(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=xAe(e,t,r);BX(e,new PX(e,r,o,s,c),i),a.extent=null}function bAe(e,t){var n=e.scale;BX(n,new PX(n,e.model,t,!1,!1),gAe)}function BX(e,t,n){e.rawExtentInfo=t,t.from=n}function VX(e,t){HX.set(e,t)}var HX=Aj();function UX(e,t,n,r,i){e.rawExtentInfo||bAe({scale:e,model:t},i||uL());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function xAe(e,t,n){var r=yX(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return OX(t,function(e){a=!!HX.get(e)||a}),a}function SAe(e,t,n,r){if(n.ctnShp){var i;if(OX(e,function(t){var n=HX.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],fL(i,a[0]),pL(i,a[1]),nAe(e))}}),i){var a=t.getExtent();if(VY(t))e.onBand||t.setExtent2(1,eI(a[0],a[0]+i[0]),tI(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=eI(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=tI(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function WX(e,t){var n=BY(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=GY(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?wAe(r,t):CAe(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=HY(d)),i[0]||(s[0]=mI(iI(s[0]/u)*u,l)),i[1]||(s[1]=mI(aI(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),_X(e,i,o,s,a,c)}function CAe(e,t){var n=KY(t.splitNumber,5),r=PY(e),i=t.minInterval,a=t.maxInterval,o=DI(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=HY(o),c=e.getExtent(),l=[mI(aI(c[0]/o)*o,s),mI(iI(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function wAe(e,t){var n=KY(t.splitNumber,10),r=e.getExtent(),i=PY(e),a=tI(TI(i),1);n/i*a<=.5&&(a*=10);var o=HY(a),s=[mI(aI(r[0]/a)*a,o),mI(iI(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function GX(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;KX(t,n,r,i,null)}function KX(e,t,n,r,i){var a=UX(e,t,r,n,i),o=RY(e)||zY(e);qX(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&SAe(n,e,a,r)}function qX(e,t){TAe[e.type](e,t)}var TAe={interval:WX,log:WX,time:$ke,ordinal:Fj},EAe=s({createDimensions:()=>Oke,createList:()=>DAe,createScale:()=>kAe,createSymbol:()=>tq,createTextStyle:()=>jAe,dataStack:()=>OAe,enableHoverEmphasis:()=>cB,getECData:()=>fz,getLayoutRect:()=>XU,mixinAxisModelCommonMethods:()=>AAe});function DAe(e){return TY(null,e)}var OAe={isDimensionStacked:CY,enableDataStack:SY,getStackedDimension:wY};function kAe(e,t){var n=t;t instanceof FH||(n=new FH(t));var r=lX(n),i=uX(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),KX(i,n,null,null,e),i}function AAe(e){XA(e,bX)}function jAe(e,t){return t||={},bH(e,null,null,t.state!==`normal`)}var MAe=1e-8;function JX(e,t){return Math.abs(e-t)<MAe}function YX(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=IR(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!JX(i[0],s[0])||!JX(i[1],s[1]))&&(r+=IR(i[0],i[1],s[0],s[1],t,n)),r!==0}var NAe=[];function XX(e,t){for(var n=0;n<e.length;n++)tM(e[n],e[n],t)}function ZX(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(nM(t,t,a),rM(n,n,a))}}function PAe(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var QX=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),$X=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),eZ=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),tZ=function(e){Z(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return PAe(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Q(i,function(t){t.type===`polygon`?ZX(t.exterior,n,r,e):Q(t.points,function(t){ZX(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new GM(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(YX(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(YX(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new GM(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(XX(u.exterior,s),Q(u.interiors,function(e){XX(e,s)})):Q(u.points,function(e){XX(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(QX),FAe=function(e){Z(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=wM(NAe),i=e;i&&!i.isGeoSVGGraphicRoot;)EM(r,i.getLocalTransform(),r),i=i.parent;return AM(r,r),tM(n,n,r),n},t}(QX);function IAe(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return Q(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=rZ(i,r,n);break;case`Polygon`:nZ(i,r,n);break;case`MultiLineString`:nZ(i,r,n);break;case`MultiPolygon`:Q(i,function(e,t){return nZ(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function nZ(e,t,n){for(var r=0;r<e.length;r++)e[r]=rZ(e[r],t[r],n)}function rZ(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function iZ(e,t){return e=IAe(e),QA(ej(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new $X(a[0],a.slice(1)));break;case`MultiPolygon`:Q(r.coordinates,function(e){e[0]&&i.push(new $X(e[0],e.slice(1)))});break;case`LineString`:i.push(new eZ([r.coordinates]));break;case`MultiLineString`:i.push(new eZ(r.coordinates))}var o=new tZ(n[t||`name`],i,n.cp);return o.properties=n,o})}var LAe=s({MAX_SAFE_INTEGER:()=>xI,asc:()=>hI,getPercentWithPrecision:()=>UCe,getPixelPrecision:()=>HCe,getPrecision:()=>gI,getPrecisionSafe:()=>_I,isNumeric:()=>jI,isRadianAroundZero:()=>CI,linearMap:()=>uI,nice:()=>DI,numericToNumber:()=>AI,parseDate:()=>wI,parsePercent:()=>dI,quantile:()=>OI,quantity:()=>TI,quantityExponent:()=>EI,reformIntervals:()=>kI,remRadian:()=>SI,round:()=>VCe}),RAe=s({format:()=>cU,parse:()=>wI,roundTime:()=>uU}),zAe=s({Arc:()=>tV,BezierCurve:()=>eV,BoundingRect:()=>GM,Circle:()=>NB,CompoundPath:()=>nV,Ellipse:()=>PB,Group:()=>WF,Image:()=>KR,IncrementalDisplayable:()=>mV,Line:()=>ZB,LinearGradient:()=>iV,Polygon:()=>YB,Polyline:()=>XB,RadialGradient:()=>aV,Rect:()=>ZR,Ring:()=>qB,Sector:()=>KB,Text:()=>tz,clipPointsByRect:()=>GV,clipRectByRect:()=>KV,createIcon:()=>qV,extendPath:()=>AV,extendShape:()=>kV,getShapeClass:()=>MV,getTransform:()=>BV,initProps:()=>yV,makeImage:()=>PV,makePath:()=>NV,mergePath:()=>IV,registerShape:()=>jV,resizePath:()=>LV,updateProps:()=>vV}),BAe=s({addCommas:()=>wU,capitalFirst:()=>OEe,encodeHTML:()=>fM,formatTime:()=>DEe,formatTpl:()=>AU,getTextRect:()=>EEe,getTooltipMarker:()=>MU,normalizeCssArray:()=>EU,toCamelCase:()=>TU,truncateText:()=>Twe}),VAe=s({bind:()=>rj,clone:()=>HA,curry:()=>ij,defaults:()=>qA,each:()=>Q,extend:()=>GA,filter:()=>ej,indexOf:()=>JA,inherits:()=>YA,isArray:()=>aj,isFunction:()=>oj,isObject:()=>uj,isString:()=>sj,map:()=>QA,merge:()=>UA,reduce:()=>$A}),HAe=$I(),aZ=$I(),oZ={estimate:1,determine:2};function sZ(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function UAe(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:QA(cZ(n,r),function(t,n){return{formattedLabel:dX(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?GAe(e,t):qAe(e)}function WAe(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:cZ(i,r)}:e.type===`category`?KAe(e,t):{ticks:r.getTicks(n)}}function cZ(e,t){var n=t.getExtent(),r=[];return Q(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),vL(r,pwe,null),hI(r),QA(r,function(e){return{value:e}})}function GAe(e,t){var n=e.getLabelModel(),r=lZ(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function lZ(e,t,n){var r=YAe(e),i=pX(t),a=n.kind===oZ.estimate;if(!a){var o=dZ(r,i);if(o)return o}var s,c;oj(i)?s=mZ(e,i,!1):(c=i===`auto`?XAe(e,n):i,s=mZ(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return fZ(r,i,l),!0}):fZ(r,i,l),l}function KAe(e,t){var n=JAe(e),r=pX(t),i=dZ(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),oj(r))a=mZ(e,r,!0);else if(r===`auto`){var s=lZ(e,e.getLabelModel(),sZ(oZ.determine));o=s.labelCategoryInterval,a=QA(s.labels,function(e){return e.tick})}else o=r,a=mZ(e,o,!0);return fZ(n,r,{ticks:a,tickCategoryInterval:o})}function qAe(e){var t=e.scale.getTicks(),n=dX(e);return{labels:QA(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var JAe=uZ(`axisTick`),YAe=uZ(`axisLabel`);function uZ(e){return function(t){return aZ(t)[e]||(aZ(t)[e]={list:[]})}}function dZ(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function fZ(e,t,n){return e.list.push({key:t,value:n}),n}function XAe(e,t){if(t.kind===oZ.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return aZ(e).autoInterval=n,!0}),n}return aZ(e).autoInterval??(aZ(e).autoInterval=e.calculateCategoryInterval(t))}function ZAe(e,t){var n=t.kind,r=$Ae(e),i=dX(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=DF(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===oZ.estimate?(t.out.noPxChangeTryDetermine.push(rj(QAe,null,e,S,c)),S):pZ(e,S,c)??S}function QAe(e,t,n){return pZ(e,t,n)==null}function pZ(e,t,n){var r=HAe(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function $Ae(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function mZ(e,t,n){var r=dX(e),i=e.scale,a=[],o=oj(t);return qY(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var eje=.8;function hZ(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Vke(r);FI(o)||(o=NaN);var s=e.getExtent(),c=nI(s[1]-s[0]);return VY(r)?tje(n,e,o,c):i&&nje(n,e,o,c,i),a!=null&&(n.w=FI(n.w)?tI(a,n.w):a),n}function tje(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function nje(e,t,n,r,i){var a=!1,o=-1/0;Q(i.key?[lAe(t,i.key)]:uAe(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),FI(n)&&n>0&&FI(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*eje,e.w2=e.w*n/r)}var gZ=[0,1],_Z=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),uI(e,gZ,vZ(this),t)},e.prototype.coordToData=function(e,t){var n=uI(e,vZ(this),gZ,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=QA(WAe(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(vX(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=rje(this,n,r);return QA(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(VY(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),QA(this.scale.getMinorTicks(e),function(e){return QA(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=sZ(oZ.determine),UAe(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return hZ(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=sZ(oZ.determine),ZAe(this,e)},e}();function vZ(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function rje(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=hZ(e).w;if(!i)return!1;Q(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}function ije(e){var t=aW.extend(e);return aW.registerClass(t),t}function aje(e){var t=lK.extend(e);return lK.registerClass(t),t}function oje(e){var t=aK.extend(e);return aK.registerClass(t),t}function sje(e){var t=fK.extend(e);return fK.registerClass(t),t}var yZ=Math.PI*2,bZ=AR.CMD,cje=[`top`,`right`,`bottom`,`left`];function lje(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function uje(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%yZ<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=PR(i),i=PR(f)}else r=PR(r),i=PR(i);r>i&&(i+=yZ);var p=Math.atan2(s,o);if(p<0&&(p+=yZ),p>=r&&p<=i||p+yZ>=r&&p+yZ<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function xZ(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function SZ(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var CZ=[];function dje(e,t,n){var r=SZ(t.x,t.y,t.width,t.height,e.x,e.y,CZ);return n.set(CZ[0],CZ[1]),r}function fje(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case bZ.M:a=u[p++],o=u[p++],r=a,i=o;break;case bZ.L:h=xZ(r,i,u[p],u[p+1],d,f,CZ,!0),r=u[p++],i=u[p++];break;case bZ.C:h=PN(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,CZ),r=u[p++],i=u[p++];break;case bZ.Q:h=zN(r,i,u[p++],u[p++],u[p],u[p+1],d,f,CZ),r=u[p++],i=u[p++];break;case bZ.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=uje(g,_,y,b,b+x,S,C,f,CZ),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case bZ.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=SZ(a,o,w,T,d,f,CZ);break;case bZ.Z:h=xZ(r,i,a,o,d,f,CZ,!0),r=a,i=o;break}h<l&&(l=h,n.set(CZ[0],CZ[1]))}return l}var wZ=new MM,TZ=new MM,EZ=new MM,DZ=new MM,OZ=new MM;function kZ(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||cje,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&AM([],u),f=t.get(`length2`)||0;l&&EZ.copy(l);for(var p=0;p<o.length;p++){var m=o[p];lje(m,0,s,wZ,DZ),MM.scaleAndAdd(TZ,wZ,DZ,f),TZ.transform(d);var h=e.getBoundingRect(),g=l?l.distance(TZ):e instanceof WR?fje(TZ,e.path,EZ):dje(TZ,h,EZ);g<c&&(c=g,TZ.transform(u),EZ.transform(u),EZ.toArray(a[0]),TZ.toArray(a[1]),wZ.toArray(a[2]))}MZ(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var AZ=[],jZ=new MM;function MZ(e,t){if(t<=180&&t>0){t=t/180*Math.PI,wZ.fromArray(e[0]),TZ.fromArray(e[1]),EZ.fromArray(e[2]),MM.sub(DZ,wZ,TZ),MM.sub(OZ,EZ,TZ);var n=DZ.len(),r=OZ.len();if(!(n<.001||r<.001)){DZ.scale(1/n),OZ.scale(1/r);var i=DZ.dot(OZ);if(Math.cos(t)<i){var a=xZ(TZ.x,TZ.y,EZ.x,EZ.y,wZ.x,wZ.y,AZ,!1);jZ.fromArray(AZ),jZ.scaleAndAdd(OZ,a/Math.tan(Math.PI-t));var o=EZ.x===TZ.x?(jZ.y-TZ.y)/(EZ.y-TZ.y):(jZ.x-TZ.x)/(EZ.x-TZ.x);if(isNaN(o))return;o<0?MM.copy(jZ,TZ):o>1&&MM.copy(jZ,EZ),jZ.toArray(e[1])}}}}function pje(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,wZ.fromArray(e[0]),TZ.fromArray(e[1]),EZ.fromArray(e[2]),MM.sub(DZ,TZ,wZ),MM.sub(OZ,EZ,TZ);var r=DZ.len(),i=OZ.len();if(!(r<.001||i<.001)&&(DZ.scale(1/r),OZ.scale(1/i),DZ.dot(t)<Math.cos(n))){var a=xZ(TZ.x,TZ.y,EZ.x,EZ.y,wZ.x,wZ.y,AZ,!1);jZ.fromArray(AZ);var o=Math.PI/2,s=o+Math.acos(OZ.dot(t))-n;if(s>=o)MM.copy(jZ,EZ);else{jZ.scaleAndAdd(OZ,a/Math.tan(Math.PI/2-s));var c=EZ.x===TZ.x?(jZ.y-TZ.y)/(EZ.y-TZ.y):(jZ.x-TZ.x)/(EZ.x-TZ.x);if(isNaN(c))return;c<0?MM.copy(jZ,TZ):c>1&&MM.copy(jZ,EZ)}jZ.toArray(e[1])}}}function NZ(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function mje(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Zj(r[0],r[1]),a=Zj(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=eM([],r[1],r[0],o/i),c=eM([],r[1],r[2],o/a),l=eM([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function PZ(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Az.length;c++){var l=Az[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:yj(i.states[l]&&i.states[l].ignore,s))||!yj(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&NZ(r,!0,l,u);continue}r||(r=new XB,e.setTextGuideLine(r),!d&&(s||!o)&&NZ(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),NZ(r,!1,l,u)}}if(r){qA(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=mje}}function FZ(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<kz.length;r++){var i=kz[r];n[i]=e.getModel([i,t])}return n}var IZ=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],hje=1,LZ=2,RZ=hje|LZ;function zZ(e,t,n){n||=RZ,t?e.dirty|=n:e.dirty&=~n}function BZ(e,t){return t||=RZ,e.dirty==null||!!(e.dirty&t)}function VZ(e){if(e)return BZ(e)&&HZ(e,e.label,e),e}function HZ(e,t,n){var r=t.getComputedTransform();e.transform=oH(e.transform,r);var i=e.localRect=aH(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=AH.textMargin);for(var d=0;d<4;d++)UZ[d]=u===AH.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===AH.textMargin&&ZV(i,UZ,!1,!1);var f=e.rect=aH(e.rect,i);return r&&f.applyTransform(r),u===AH.minMargin&&ZV(f,UZ,!1,!1),e.axisAligned=rH(r),(e.label=e.label||{}).ignore=t.ignore,zZ(e,!1),zZ(e,!0,LZ),e}var UZ=[0,0,0,0];function gje(e,t,n){return e.transform=oH(e.transform,n),e.localRect=aH(e.localRect,t),e.rect=aH(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=rH(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function WZ(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function GZ(e,t){for(var n=0;n<IZ.length;n++){var r=IZ[n];e[r]??(e[r]=t[r])}return VZ(e)}function KZ(e){var t=e.obb;return(!t||BZ(e,LZ))&&(e.obb=t||=new pV,t.fromBoundingRect(e.localRect,e.transform),zZ(e,!1,LZ)),t}function qZ(e,t,n,r,i){var a=e.length,o=DV[t],s=OV[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function _je(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function JZ(e){var t=[];e.sort(function(e,t){return!!t.suggestIgnore-+!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=VZ(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(YZ(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function YZ(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:KZ(e).intersect(KZ(t),n,r)}function vje(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function yje(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:vje(r&&r.shape.points)}}var XZ=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],ZZ=new hF,QZ=$I(),bje=$I();function $Z(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var eQ=[`x`,`y`,`rotation`],xje=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();GM.applyTransform(c,c,s),s?ZZ.setLocalTransform(s):(ZZ.x=ZZ.y=ZZ.rotation=ZZ.originX=ZZ.originY=0,ZZ.scaleX=ZZ.scaleY=1),ZZ.rotation=PR(ZZ.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();GM.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:ZZ.x,y:ZZ.y,scaleX:ZZ.scaleX,scaleY:ZZ.scaleY,rotation:ZZ.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(oj(r)||nj(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=fz(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){kZ(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=oj(a.layoutOptionOrCb)?a.layoutOptionOrCb(yje(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=dI(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=dI(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=QZ(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<XZ.length;m++){var h=XZ[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];Q(this._labelList,function(e){e.defaultAttr.ignore||r.push(GZ({},e))});var i=ej(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=ej(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});qZ(i,0,0,t),qZ(a,1,0,n);var o=ej(r,function(e){return e.layoutOption.hideOverlap});_je(o),JZ(o)},e.prototype.processLabelsOverall=function(){var e=this;Q(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=QZ(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=fz(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);PZ(e,FZ(o),s),kZ(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!bV(e))){var i=QZ(n),a=i.oldLayout,o=fz(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(JA(u,`select`)>=0&&n.attr(i.oldLayoutSelect),JA(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),vV(n,c,t,s)}else if(n.attr(c),!DH(n).valueAnimation){var d=yj(n.style.opacity,1);n.style.opacity=0,yV(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};$Z(f,c,eQ),$Z(f,n.states.select,eQ)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};$Z(p,c,eQ),$Z(p,n.states.emphasis,eQ)}kH(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=bje(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),vV(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,yV(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),tQ=$I();function Sje(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=tQ(t).labelManager;r||=tQ(t).labelManager=new xje,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=tQ(t).labelManager;Q(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var nQ=Math.sin,rQ=Math.cos,iQ=Math.PI,aQ=Math.PI*2,Cje=180/iQ,oQ=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=hP(u-aQ)||(l?c>=aQ:-c>=aQ),f=c>0?c%aQ:c%aQ+aQ,p=!1;p=d?!0:hP(u)?!1:f>=iQ==!!l;var m=e+n*rQ(a),h=t+r*nQ(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*Cje);if(d){var _=1/this._p,v=(l?1:-1)*(aQ-_);this._add(`A`,n,r,g,1,+l,e+n*rQ(a+v),t+r*nQ(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*rQ(o),b=t+r*nQ(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),sQ=`none`,wje=Math.round;function Tje(e){var t=e.fill;return t!=null&&t!==sQ}function Eje(e){var t=e.stroke;return t!=null&&t!==sQ}var cQ=[`lineCap`,`miterLimit`,`lineJoin`],Dje=QA(cQ,function(e){return`stroke-`+e.toLowerCase()});function Oje(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof KR){e(`opacity`,i);return}if(Tje(t)){var a=pP(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,sQ);if(Eje(t)){var s=pP(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=cq(n),p=f[0],m=f[1];p&&(m=wje(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,sQ);for(var h=0;h<cQ.length;h++){var g=cQ[h];if(r||t[g]!==HR[g]){var _=t[g]||HR[g];_&&e(Dje[h],_)}}}else r&&e(`stroke`,sQ)}var lQ=`http://www.w3.org/2000/svg`,uQ=`http://www.w3.org/1999/xlink`,kje=`http://www.w3.org/2000/xmlns/`,Aje=`http://www.w3.org/XML/1998/namespace`,jje=`ecmeta_`;function dQ(e){return document.createElementNS(lQ,e)}function fQ(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function Mje(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function Nje(e){return`</`+e+`>`}function pQ(e,t){t||={};var n=t.newline?`
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return Mje(i,a)+(i===`style`?o||``:fM(o))+(t?``+n+QA(t,function(e){return r(e)}).join(n)+n:``)+Nje(i)}return r(e)}function Pje(e,t,n){n||={};var r=n.newline?`
`:``,i=` {`+r,a=r+`}`,o=QA(nj(e),function(t){return t+i+QA(nj(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=QA(nj(t),function(e){return`@keyframes `+e+i+QA(nj(t[e]),function(n){return n+i+QA(nj(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function mQ(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function hQ(e,t,n,r){return fQ(`svg`,`root`,{width:e,height:t,xmlns:lQ,"xmlns:xlink":uQ,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var Fje=0;function gQ(){return Fje++}var _Q={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`},vQ=`transform-origin`;function Ije(e,t,n){var r=GA({},e.shape);GA(r,t),e.buildPath(n,r);var i=new oQ;return i.reset(wP(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function Lje(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[vQ]=n+`px `+r+`px`)}var Rje={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function yQ(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function zje(e,t,n){var r=e.shape.paths,i={},a,o;if(Q(r,function(e){var t=mQ(n.zrId);t.animation=!0,xQ(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=nj(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=yQ(i,n);return a.replace(o,s)}}function bQ(e){return sj(e)?_Q[e]?`cubic-bezier(`+_Q[e]+`)`:BN(e)?e:``:``}function xQ(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof nV){var s=zje(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=bQ(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=bQ(d.easing),m=d.rawValue;(sj(m)||lj(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};yF(g,e),GA(g,s[h]);var _=TP(g),v=s[h][u];l[h]=_?{transform:_}:{},Lje(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new AR);var S=y.len();y.reset(),l[h].d=Ije(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return Rje[e]})}for(var w=nj(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][vQ]!==l[O][vQ]){T=!1;break}E=l[D][vQ]}if(T&&E){for(var h in l)l[h][vQ]&&delete l[h][vQ];t[vQ]=E}if(ej(w,function(e){return nj(l[e]).length>0}).length)return yQ(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+gQ();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function Bje(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};SQ(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=dP(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),SQ(r,t,n,!0)}}function SQ(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+gQ(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var CQ=Math.round;function wQ(e){return e&&sj(e.src)}function TQ(e){return e&&oj(e.toDataURL)}function EQ(e,t,n,r){Oje(function(i,a){var o=i===`fill`||i===`stroke`;o&&SP(a)?PQ(t,e,i,r):o&&yP(a)?FQ(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),qje(n,e,r)}function DQ(e,t){var n=XF(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[jje+`silent`]=`true`))}function OQ(e){return hP(e[0]-1)&&hP(e[1])&&hP(e[2])&&hP(e[3]-1)}function Vje(e){return hP(e[4])&&hP(e[5])}function kQ(e,t,n){if(t&&!(Vje(t)&&OQ(t))){var r=n?10:1e4;e.transform=OQ(t)?`translate(`+CQ(t[4]*r)/r+` `+CQ(t[5]*r)/r+`)`:tCe(t)}}function AQ(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(CQ(r[a][0]*n)/n),i.push(CQ(r[a][1]*n)/n);t.points=i.join(` `)}function jQ(e){return!e.smooth}function Hje(e){var t=QA(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=CQ(o*r)/r)}}}var Uje={circle:[Hje([`cx`,`cy`,`r`])],polyline:[AQ,jQ],polygon:[AQ,jQ]};function Wje(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function MQ(e,t){var n=e.style,r=e.shape,i=Uje[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&wP(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&Wje(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new oQ,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return kQ(a,e.transform),EQ(a,n,e,t),DQ(a,e),t.animation&&xQ(e,a,t),t.emphasis&&Bje(e,a,t),fQ(s,e.id+``,a)}function Gje(e,t){var n=e.style,r=n.image;if(r&&!sj(r)&&(wQ(r)?r=r.src:TQ(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),kQ(c,e.transform),EQ(c,n,e,t),DQ(c,e),t.animation&&xQ(e,c,t),fQ(`image`,e.id+``,c)}}function Kje(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=rCe(n.y||0,AF(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":nCe[n.textAlign]||n.textAlign};if(az(n)){var c=``,l=n.fontStyle,u=rz(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),kQ(s,e.transform),EQ(s,n,e,t),DQ(s,e),t.animation&&xQ(e,s,t),fQ(`text`,e.id+``,s,void 0,r)}}function NQ(e,t){if(e instanceof WR)return MQ(e,t);if(e instanceof KR)return Gje(e,t);if(e instanceof GR)return Kje(e,t)}function qje(e,t,n){var r=e.style;if(iCe(r)){var i=aCe(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=pP(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=fQ(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[fQ(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=CP(o)}}function PQ(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(bP(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(xP(i))a=`radialGradient`,o.cx=yj(i.x,.5),o.cy=yj(i.y,.5),o.r=yj(i.r,.5);else return;for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=_P(s[l].offset)*100+`%`,f=s[l].color,p=pP(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(fQ(`stop`,l+``,g))}var _=pQ(fQ(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=fQ(a,y,o,c)),t[n]=CP(y)}function FQ(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(vP(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(sj(h)?m=h:wQ(h)?m=h.src:TQ(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Cj(f,g),Cj(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=jL(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=fQ(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=HA(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=TP(i);x&&(o.patternTransform=x);var S=fQ(`pattern`,``,o,[d]),C=pQ(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=fQ(`pattern`,T,o,[d])),t[n]=CP(T)}}function Jje(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=fQ(`clipPath`,a,o,[MQ(e,n)])}t[`clip-path`]=CP(a)}function IQ(e){return document.createTextNode(e)}function LQ(e,t,n){e.insertBefore(t,n)}function RQ(e,t){e.removeChild(t)}function zQ(e,t){e.appendChild(t)}function BQ(e){return e.parentNode}function VQ(e){return e.nextSibling}function HQ(e,t){e.textContent=t}var UQ=58,Yje=120,Xje=fQ(``,``);function WQ(e){return e===void 0}function GQ(e){return e!==void 0}function Zje(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function KQ(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function qQ(e){var t,n=e.children,r=e.tag;if(GQ(r)){var i=e.elm=dQ(r);if(XQ(Xje,e),aj(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&zQ(i,qQ(a))}else GQ(e.text)&&!uj(e.text)&&zQ(i,IQ(e.text))}else e.elm=IQ(e.text);return e.elm}function JQ(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&LQ(e,qQ(a),t)}}function YQ(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(GQ(i.tag)?RQ(BQ(i.elm),i.elm):RQ(e,i.elm))}}function XQ(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===Yje?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(kje,n,o):n.charCodeAt(3)===UQ?r.setAttributeNS(Aje,n,o):n.charCodeAt(5)===UQ?r.setAttributeNS(uQ,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function Qje(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:KQ(o,l)?(ZQ(o,l),o=t[++r],l=n[++i]):KQ(s,u)?(ZQ(s,u),s=t[--a],u=n[--c]):KQ(o,u)?(ZQ(o,u),LQ(e,o.elm,VQ(s.elm)),o=t[++r],u=n[--c]):KQ(s,l)?(ZQ(s,l),LQ(e,s.elm,o.elm),s=t[--a],l=n[++i]):(WQ(d)&&(d=Zje(t,r,a)),f=d[l.key],WQ(f)?LQ(e,qQ(l),o.elm):(p=t[f],p.tag===l.tag?(ZQ(p,l),t[f]=void 0,LQ(e,p.elm,o.elm)):LQ(e,qQ(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,JQ(e,m,n,i,c)):YQ(e,t,r,a))}function ZQ(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(XQ(e,t),WQ(t.text)?GQ(r)&&GQ(i)?r!==i&&Qje(n,r,i):GQ(i)?(GQ(e.text)&&HQ(n,``),JQ(n,null,i,0,i.length-1)):GQ(r)?YQ(n,r,0,r.length-1):GQ(e.text)&&HQ(n,``):e.text!==t.text&&(GQ(r)&&YQ(n,r,0,r.length-1),HQ(n,t.text)))}function $je(e,t){if(KQ(e,t))ZQ(e,t);else{var n=e.elm,r=BQ(n);qQ(t),r!==null&&(LQ(r,t.elm,VQ(n)),YQ(r,[e],0,0))}return t}var eMe=0,tMe=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=nMe(`configLayer`),this.storage=t,this._opts=n=GA({},n),this.root=e,this._id=`zr`+eMe++,this._oldVNode=hQ(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=dQ(`svg`);XQ(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,$je(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return NQ(e,mQ(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=mQ(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=rMe(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=fQ(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=QA(nj(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(fQ(`defs`,`defs`,{},c)),e.animation){var l=Pje(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=fQ(`style`,`stl`,{},[],l);a.push(u)}}return hQ(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},pQ(this.renderToVNode({animation:yj(e.cssAnimation,!0),emphasis:yj(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:yj(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};Jje(d[g],_,t);var v=fQ(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=NQ(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=sq(r,0,n),t=sq(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(yP(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=sCe(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function nMe(e){return function(){}}function rMe(e,t,n,r){var i;if(n&&n!==`none`)if(i=fQ(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),SP(n))PQ({fill:n},i.attrs,`fill`,r);else if(yP(n))FQ({style:{fill:n},dirty:Fj,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=pP(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}return i}function iMe(e){e.registerPainter(`svg`,tMe)}function QQ(e,t,n){var r=kA.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function $Q(e){return!e.__cursors.get(0)}function e$(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var t$=function(e){Rj(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=iF,typeof t==`string`?a=QQ(t,n,r):uj(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Nj(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=e$(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=QQ(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new GM(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new GM(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new GM(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new GM(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=e$(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;mj(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||aq(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):hj(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=mq(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&Q(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(aM),n$=1e5,r$=314159,i$=void 0,aMe=1,a$=2;function oMe(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function sMe(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function o$(e,t,n,r){var i=new t$(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,s$(i),i}function s$(e){e.__cursorStack=[],e.__cursors=Aj()}function cMe(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function lMe(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,cMe({key:r})))}function c$(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function l$(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function u$(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&d$)||s.__builtin__)&&(!(n&f$)||!s.__builtin__)&&(!(n&p$)||s!==e.hoverlayer))&&t(s,a,o,i)}}var d$=1,f$=2,p$=4,m$=d$|p$,uMe=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=GA({},n||{}),this.dpr=n.devicePixelRatio||iF,this._singleCanvas=i,this.root=e,e.style&&(Nj(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=o$(a,this,r$,0);c.initContext(),this._insertLayer(c,r$,0,!0),this._domRoot=e}else{this._width=sq(e,0,n),this._height=sq(e,1,n);var l=this._domRoot=sMe(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!uj(e)?{paintAll:!!e}:e||{},n=yj(t.refresh,!0),r=yj(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=a$),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return u$(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},f$),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=i$,n!==i$&&(!t&&n===a$&&(t=this._i.hoverlayer=this._ensureLayer(n$)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),Eq(i,s,r),c&&(s.style=l)}}i&&(Dq(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(n$)},e.prototype.paintOne=function(e,t){Tq(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)u$(this._i,function(e){e.afterBrush&&e.afterBrush()},m$),this._paintHoverList(e);else{var i=this;gN(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(r$).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),u$(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},d$)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return u$(this._i,function(i){var a=!1;if(c$(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!$Q(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}c$(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},m$),OA.wxa&&u$(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=$Q(e),c=s&&kA.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=a$),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(Eq(o,f,a),f.setPrevPaintRect(p))}else Eq(o,f,a);if(s&&kA.getTime()-c>15){d++;break}}}Dq(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=r$,t=0);var i=l$(this._i,e)[t];return i||(i=o$(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&UA(i,this._layerConfig[e],!0),(n||r&&e!==r$)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&oMe(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=l$(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),l$(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this}},e.prototype.eachLayer=function(e,t){return u$(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return u$(this._i,function(n,r){e.call(t,n,r)},d$)},e.prototype.eachOtherLayer=function(e,t){return u$(this._i,function(n,r){e.call(t,n,r)},f$)},e.prototype.getLayers=function(){var e={};return u$(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}u$(n._i,function(e){e.__dirty=!1,c$(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},m$);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){VA(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=lMe(o,f),!s.used))if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1;s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}u$(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;($Q(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(c$(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===i$&&(n._hoverLayerDirty=aMe))},m$)},e.prototype.clear=function(){return u$(this._i,function(e){e.clear(),s$(e)},d$),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,u$(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?UA(n[e],t,!0):n[e]=t,u$(this._i,function(e,t){UA(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=sq(i,0,r),t=sq(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,u$(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(r$).resize(e,t)}return this},e.prototype.clearLayer=function(e){Q(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[r$][0].dom;var t=new t$(`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 r=t.dom.width,i=t.dom.height;u$(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];Eq(n,l,a)}Dq(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function dMe(e){e.registerPainter(`canvas`,uMe)}var fMe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return TY(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new WF,n=tq(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=tq(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=$.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(aK);function h$(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=yG(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(yG(e,t,n[o]));return a.join(` `)}}function g$(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!aj(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var _$=function(e){Z(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=tq(e,-1,-1,2,2,null,a);o.attr({z2:yj(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=pMe,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Xz(this.childAt(0))},t.prototype.downplay=function(){Zz(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):vV(f,p,o,n),wV(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,yV(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=yH(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=rq(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof KR){var S=a.style;a.useStyle(GA({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(GA({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;vH(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):h$(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),lB(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=fz(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&xV(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();xV(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return nq(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(WF);function pMe(e,t){this.parent.drift(e,t)}function v$(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function y$(e){return e!=null&&!uj(e)&&(e={isIgnore:e}),e||{}}function b$(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:yH(t),cursorStyle:t.get(`cursor`)}}function x$(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var S$=function(){function e(e){this.group=new WF,this._SymbolCtor=e||_$}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=y$(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=b$(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);v$(e,i,r,t)&&x$(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!v$(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):vV(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);v$(t,s,i,e)?(o||=x$(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=b$(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=y$(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(v$(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){nH(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function C$(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=mMe(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=QA(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return CY(t,d[0])&&(f=!0,d[0]=p),CY(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function mMe(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:lj(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function w$(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function T$(e,t){return!isFinite(e)||!isFinite(t)}var hMe=typeof Float32Array<`u`?Float32Array:void 0,gMe=typeof Float64Array<`u`?Float64Array:void 0;function E$(e){return D$({ctor:hMe},e).arr}function D$(e,t){var n=e.arr,r=e.ctor;if(t>xI&&(t=xI),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function _Me(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function vMe(e,t,n,r,i,a,o,s){for(var c=_Me(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=C$(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=w$(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,N=E$(M),P=E$(M),F=E$(M),I=E$(M),L=[],y=0;y<m.length;y++){var R=m[y],z=y*2,B=R*2;N[z]=l[B],N[z+1]=l[B+1],P[z]=u[B],P[z+1]=u[B+1],F[z]=d[B],F[z+1]=d[B+1],I[z]=f[B],I[z+1]=f[B+1],L[y]=p[R]}return{current:N,next:P,stackedOnCurrent:F,stackedOnNext:I,status:L}}var O$=Math.min,k$=Math.max;function A$(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(T$(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;T$(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||T$(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var I=E>0?1:-1;p=_-I*P*o,m=v,O=_+I*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var L=D>0?1:-1;p=_,m=v-L*P*o,O=_,k=v+L*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=O$(O,k$(S,_)),k=O$(k,k$(C,v)),O=k$(O,O$(S,_)),k=k$(k,O$(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=O$(p,k$(l,_)),m=O$(m,k$(u,v)),p=k$(p,O$(l,_)),m=k$(m,O$(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var j$=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),yMe=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new j$},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&T$(n[i*2-2],n[i*2-1]);i--);for(;r<i&&T$(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=A$(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=AR.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?jN(i,u,f,m,e,s):jN(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?kN(a,d,p,h,b):kN(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(WR),bMe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(j$),M$=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new bMe},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&T$(n[a*2-2],n[a*2-1]);a--);for(;i<a&&T$(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=A$(e,n,i,a,a,1,t.smooth,o,t.connectNulls);A$(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(WR);function N$(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new ZR({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=oj(i)?function(e){i(e,d)}:null;yV(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function P$(e,t,n){var r=e.getArea(),i=mI(r.r0,1),a=mI(r.r,1),o=new KB({shape:{cx:mI(e.cx,1),cy:mI(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,yV(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function F$(e,t,n,r,i){return e?e.type===`polar`?P$(e,t,n):e.type===`cartesian2d`?N$(e,t,n,r,i):null:null}function I$(e,t,n){e?t.setClipPath(n):t.removeClipPath()}function L$(e){var t=e.coordinateSystem;if(e.get(`clip`,!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function R$(e,t){return e.type===t}function z$(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`&&!!e.getViewRect}function B$(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||Pj(e,`text`)))}function V$(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},Pj(r,`text`)&&(o.text=r.text),Pj(r,`rich`)&&(o.rich=r.rich),Pj(r,`textFill`)&&(o.fill=r.textFill),Pj(r,`textStroke`)&&(o.stroke=r.textStroke),Pj(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),Pj(r,`fontSize`)&&(o.fontSize=r.fontSize),Pj(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),Pj(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=Pj(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),Pj(r,`textPosition`)&&(i.position=r.textPosition),Pj(r,`textOffset`)&&(i.offset=r.textOffset),Pj(r,`textRotation`)&&(i.rotation=r.textRotation),Pj(r,`textDistance`)&&(i.distance=r.textDistance)}return H$(o,e),Q(o.rich,function(e){H$(e,e)}),{textConfig:i,textContent:a}}function H$(e,t){t&&(t.font=t.textFont||t.font,Pj(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),Pj(t,`textAlign`)&&(e.align=t.textAlign),Pj(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),Pj(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),Pj(t,`textWidth`)&&(e.width=t.textWidth),Pj(t,`textHeight`)&&(e.height=t.textHeight),Pj(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),Pj(t,`textPadding`)&&(e.padding=t.textPadding),Pj(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),Pj(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),Pj(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),Pj(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),Pj(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),Pj(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Pj(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function U$(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||$.color.neutral99;W$(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||$.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||$.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Q(t.rich,function(e){W$(e,e)}),r}function W$(e,t){t&&(Pj(t,`fill`)&&(e.textFill=t.fill),Pj(t,`stroke`)&&(e.textStroke=t.fill),Pj(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),Pj(t,`font`)&&(e.font=t.font),Pj(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),Pj(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),Pj(t,`fontSize`)&&(e.fontSize=t.fontSize),Pj(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),Pj(t,`align`)&&(e.textAlign=t.align),Pj(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),Pj(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),Pj(t,`width`)&&(e.textWidth=t.width),Pj(t,`height`)&&(e.textHeight=t.height),Pj(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),Pj(t,`padding`)&&(e.textPadding=t.padding),Pj(t,`borderColor`)&&(e.textBorderColor=t.borderColor),Pj(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),Pj(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),Pj(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),Pj(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),Pj(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Pj(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Pj(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),Pj(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),Pj(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),Pj(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function G$(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function K$(e){for(var t=uL(),n=uL(),r=0;r<e.length;){var i=e[r++],a=e[r++];T$(i,a)||(dL(t,i),dL(n,a))}return[t,n]}function q$(e,t){var n=K$(e),r=n[0],i=n[1],a=K$(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function J$(e){return lj(e)?e:e?.5:0}function xMe(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=E$(r*2),a=0;a<r;a++){var o=w$(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Y$(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;T$(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function SMe(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:aP((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function CMe(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=QA(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=SMe(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;Q(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new iV(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function wMe(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&TMe(a,t))){var o=t.mapDimension(a.dim),s={};return Q(a.getViewLabels(),function(e){e.tick.offInterval||(s[vX(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function TMe(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(_$.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function EMe(e){for(var t=e.length/2;t>0&&T$(e[t*2-2],e[t*2-1]);t--);return t-1}function X$(e,t){return[e[t*2],e[t*2+1]]}function DMe(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!T$(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function Z$(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<kz.length;t++)if(e.get([kz[t],`endLabel`,`show`]))return!0;return!1}function Q$(e,t,n,r){if(R$(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=Z$(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=N$(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return P$(t,n,r)}function OMe(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var kMe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new WF,t=new S$;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=rj(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=C$(r,a,_),y=g&&xMe(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&wMe(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=l?!1:e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=CMe(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=Y$(y,c,r,w,x),c=Y$(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,NU(E)),m.setClipPath(Q$(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,NU(E));var D=m.getClipPath();D?yV(D,{shape:Q$(this,r,!1,e).shape},e):m.setClipPath(Q$(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!G$(this._stackedOnPoints,y)||!G$(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=Y$(y,c,r,w,x),c=Y$(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(qA(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),fB(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}fz(f).seriesIndex=e.seriesIndex,lB(f,k,A,j);var N=J$(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),I=0;p.useStyle(qA(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(I=J$(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:P,connectNulls:x}),fB(p,e,`areaStyle`),fz(p).seriesIndex=e.seriesIndex,lB(p,k,A,j)}var L=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=L)}),this._polyline.onHoverStateChange=L,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var R=e.get(`triggerEvent`),z=e.get(`triggerLineEvent`),B=z===!0||R===!0||R===`line`,V=z===!0||R===!0||R===`area`;this.packEventData(e,f,B),p&&this.packEventData(e,p,V)},t.prototype.packEventData=function(e,t,n){fz(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=QI(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(T$(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new _$(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else fK.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=QI(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else fK.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Gz(this._polyline,e),t&&Gz(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new yMe({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new M$({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);oj(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=oj(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=oj(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(Z$(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new tz({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=EMe(o);c>=0&&(vH(a,yH(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?h$(i,e):g$(i,n)},enableTextSetter:!0},OMe(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=DMe(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=X$(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=sL(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=X$(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=DH(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=vMe(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=Y$(u.stackedOnCurrent,u.current,n,i,o),d=Y$(u.current,null,n,i,o),m=Y$(u.stackedOnNext,u.next,n,i,o),p=Y$(u.next,null,n,i,o)),q$(d,p)>3e3||c&&q$(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),vV(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),vV(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(fK);function $$(e,t){return{seriesType:e,plan:uK(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=QA(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);CY(n,o[0])&&(o[0]=c),CY(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&E$(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var AMe={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},jMe=function(e){return Math.round(e.length/2)};function e1(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;sj(i)?p=AMe[i]:oj(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,jMe))}}}}}function MMe(e){e.registerChartView(kMe),e.registerSeriesModel(fMe),e.registerLayout($$(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,e1(`line`))}var t1=function(e){Z(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(_Z),n1=null;function NMe(e){n1||=e}function r1(){return n1}var i1=`expandAxisBreak`,PMe=`collapseAxisBreak`,FMe=`toggleAxisBreak`,a1=`axisbreakchanged`,IMe={type:i1,event:a1,update:`update`,refineEvent:o1},LMe={type:PMe,event:a1,update:`update`,refineEvent:o1},RMe={type:FMe,event:a1,update:`update`,refineEvent:o1};function o1(e,t,n,r){var i=[];return Q(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function zMe(e){e.registerAction(IMe,t),e.registerAction(LMe,t),e.registerAction(RMe,t);function t(e,t){var n=[],r=eL(t,e);function i(t,i){Q(r[t],function(t){Q(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(qA((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var s1=Math.PI,BMe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],VMe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],c1=$I(),l1=$I(),u1=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function HMe(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=C1(e.axisName)&&mX(e.nameLocation);Q(r,function(e){var t=VZ(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?AM(d1,n.transform):wM(d1),t.transform&&EM(d1,d1,t.transform),GM.copy(f1,t.localRect),f1.applyTransform(d1),s?s.union(f1):GM.copy(s=new GM(0,0,0,0),f1))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new GM(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var d1=CM(),f1=new GM(0,0,0,0),UMe=function(e,t,n,r,i,a){if(mX(e.nameLocation)){var o=a.stOccupiedRect;o&&p1(gje({},o,a.transGroup.transform),r,i)}else m1(a.labelInfoList,a.dirVec,r,i)};function p1(e,t,n){var r=new MM;YZ(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&WZ(t,r)}function m1(e,t,n,r){for(var i=MM.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||p1(s,n,r)}}var h1=function(){function e(e,t,n,r){this.group=new WF,this._axisModel=e,this._api=t,this._local={},this._shared=r||new u1(UMe),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=yj(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=yj(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:yj(e.nameDirection,1),tickDirection:yj(e.tickDirection,1),labelDirection:yj(e.labelDirection,1),labelOffset:yj(e.labelOffset,0),silent:yj(e.silent,!0),axisName:r,nameLocation:bj(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:C1(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new WF({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new MM(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},Q(WMe,function(r){e[r]&&GMe[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=SI(t-e),i,a;return CI(r)?(a=n>0?`top`:`bottom`,i=`center`):CI(r-s1)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<s1?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),WMe=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],GMe={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(tM(u,u,l),tM(d,d,l));var p=GA({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&XH(r.axis.scale))r1().buildAxisBreakLine(r,i,a,m);else{var h=new ZB(GA({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));RV(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);sj(g)&&(g=[g,g]),(sj(_)||lj(_))&&(_=[_,_]);var v=rq(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];Q([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=tq(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){y1(t,i,s)&&g1(e,t,n,r,i,a,o,oZ.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){y1(t,i,s)&&g1(e,t,n,r,i,a,o,oZ.determine);var c=YMe(e,i,a,r);JMe(e,t.labelLayoutList,c),XMe(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(C1(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new MM(0,0),_=new MM(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=CM();_.transform(OM(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*s1/180);var b,x;mX(u)?b=h1.innerTextLayout(e.rotation,y??e.rotation,d):(b=KMe(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=vj(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new tz({x:g.x,y:g.y,rotation:b.rotation,silent:h1.isLabelSilent(r),style:bH(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(eH({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=h1.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,fz(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=VZ({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:mX(u)?BMe[E]:VMe[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function g1(e,t,n,r,i,a,o,s){b1(t)||ZMe(e,t,i,s,r,o);var c=t.labelLayoutList;QMe(e,r,c,a),tNe(r,e.rotation,c);var l=e.optionHideOverlap;qMe(r,c,l),l&&JZ(ej(c,function(e){return e&&!e.label.ignore})),HMe(e,n,r,c)}function KMe(e,t,n,r){var i=SI(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return CI(i-s1/2)?(o=c?`bottom`:`top`,a=`center`):CI(i-s1*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<s1*1.5&&i>s1/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function qMe(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(iAe(r))return;function a(e,a,o){var s=VZ(t[a]),c=VZ(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=c1(s.label).labelInfo.tick;if(zY(l)&&u.notNice||VY(l)&&u.offInterval){_1(s.label);return}}if(e===!1||s.suggestIgnore){_1(s.label);return}if(c.suggestIgnore){_1(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=GZ({marginForce:f},s),c=GZ({marginForce:f},c)}YZ(s,c,null,{touchThreshold:d})&&_1(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function JMe(e,t,n){e.showMinorTicks||Q(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=l1(r),a=c1(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){_1(r);return}}})}function _1(e){e&&(e.ignore=!0)}function v1(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(tM(o,o,t),tM(s,s,t));var u=new ZB({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});RV(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=l1(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function YMe(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=v1(i.getTicksCoords(),n.transform,c,qA(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function XMe(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=qA(c.getLineStyle(),qA(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=v1(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function y1(e,t,n){if(b1(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),x1(e,null,null,null))}return!0}function ZMe(e,t,n,r,i,a){var o=i.axis,s=vj(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new WF;n.add(c);var l=sZ(r);if(!s||o.scale.isBlank()){x1(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(vj(e.raw.labelRotate,u.get(`rotate`))||0)*s1/180,p=h1.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;Q(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=vX(o.scale,n);if(m&&m[f]){var y=m[f];uj(y)&&y.textStyle&&(l=new FH(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=yj(l.getShallow(`alignMinLabel`,!0),x),C=yj(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=yj(l.getShallow(`verticalAlignMinLabel`,!0),w),E=yj(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new tz({x:0,y:0,rotation:0,silent:h1.isLabelSilent(i),z2:D,style:bH(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:oj(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=c1(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,eH({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=h1.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var M=j.parsedBreak;A.break={start:M.vmin,end:M.vmax}}o.type===`category`&&(A.dataIndex=f),fz(O).eventData=A,j&&eNe(i,a,O,j)}h.push(O),c.add(O)}),x1(t,QA(h,function(e){return{label:e,priority:c1(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function b1(e){return!!e.labelLayoutList}function x1(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function QMe(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);Q(n,function(n,a){var o=VZ(n);if(o){var s=o.label,c=c1(s);o.suggestIgnore=s.ignore,s.ignore=!1,yF(S1,$Me);var l=t.axis;S1.x=l.dataToCoord(vX(l.scale,c.labelInfo.tick)),S1.y=e.labelOffset+e.labelDirection*i,S1.rotation=c.layoutRotation,r.add(S1),S1.updateTransform(),r.remove(S1),S1.decomposeTransform(),yF(s,S1),s.markRedraw(),zZ(o,!0),VZ(o)}})}var S1=new ZR,$Me=new ZR;function C1(e){return!!e}function eNe(e,t,n,r){n.on(`click`,function(n){var i={type:i1,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function tNe(e,t,n){var r=qH();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&c1(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&Q(i,function(r){r1().adjustBreakLabelPair(e.axis.inverse,t,[VZ(n[r[0]]),VZ(n[r[1]])])})}}function w1(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),vj(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function nNe(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function rNe(e){var t={xAxisModel:null,yAxisModel:null};return Q(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,nL).models[0]}),t}function iNe(e,t,n,r,i,a){for(var o=w1(e,n),s=!1,c=!1,l=0;l<t.length;l++)LY(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new h1(n,r,o,i)}function aNe(e,t,n){var r=w1(t,n);e.updateCfg(r)}function oNe(e){return e.dim+`_`+e.index}function sNe(){mAe(`liPosMinGap`,cNe)}function cNe(e,t,n){var r=Aj(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=OG(u);function f(n){EX(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}D$(T1,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||kG(d,a))&&(l&&(a=c.transformIn(a,null)),T1.arr[m++]=a)}});var h=T1.typed?T1.arr.subarray(0,m):(T1.arr.length=m,T1.arr);T1.typed?h.sort():hI(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=FI(g)?g:m>0?-2:-1,n.serUids=r}var T1=D$({ctor:gMe},50);function E1(e){return function(t,n){var r=hZ(t,{fromStat:{key:e}});if(FI(r.w2))return[-r.w2/2,r.w2/2]}}function D1(e){return e+`|&`}function O1(e,t){return e+`|&`+t}function k1(e){return sNe(),{liPosMinGap:!VY(e.scale)}}var A1=`pictorialBar`;function j1(e,t,n,r){MX(e,{key:t,seriesType:n,coordSysType:r,getMetrics:k1})}function M1(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var N1={left:0,right:0,top:0,bottom:0},P1=[`25%`,`25%`],F1=`cartesian2d`,lNe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=rW(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&nW(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&nW(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:N1,outerBoundsContain:`all`,outerBoundsClampWidth:P1[0],outerBoundsClampHeight:P1[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},t}(aW),uNe=_L(),I1=`__ec_stack_`;function L1(e){return e.get(`stack`)||I1+e.seriesIndex}function dNe(e){if(VY(e.axis.scale)){for(var t=hZ(e.axis),n=[],r=0;r<e.count;r++)n.push(qA({stackId:I1+r},e));for(var i=R1({bandWidthResult:t,seriesInfo:n}),a=[],r=0;r<e.count;r++){var o=i[I1+r];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function fNe(e,t){var n=pNe(e,t);return n.columnMap=R1(n),n}function pNe(e,t){var n=O1(t,F1),r=[],i=hZ(e,{fromStat:{key:n},min:1});return TX(e,n,function(e){r.push({barWidth:dI(e.get(`barWidth`),i.w),barMaxWidth:dI(e.get(`barMaxWidth`),i.w),barMinWidth:dI(e.get(`barMinWidth`)||(V1(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:L1(e)})}),{bandWidthResult:i,seriesInfo:r}}function R1(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};Q(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;Pj(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=eI(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=tI(35-o.length*4,15)+`%`;var c=dI(i,t),l=dI(a,1),u=(n-c)/(r+(r-1)*l);u=tI(u,0),Q(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=eI(o,i)),a&&(o=tI(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=eI(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=tI(u,0);var d=0,f;Q(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return Q(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function z1(e){return{seriesType:e,overallReset:function(t){var n=O1(e,F1);DX(t,n,function(t){var r=fNe(t,e);TX(t,n,function(e){var t=r.columnMap[L1(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function B1(e){return{seriesType:e,plan:uK(),reset:function(e){if(nNe(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=CY(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(M1(i))),p=V1(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&E$(r*3),c=p&&s&&E$(r*3),l=p&&E$(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,nI(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,nI(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function V1(e){return e.pipelineContext&&e.pipelineContext.large}function mNe(e){return E1(O1(e,F1))}function H1(e){uNe(e,function(){function t(t){var n=O1(t,F1);j1(e,n,t,F1),VX(n,mNe(t))}t(`bar`),t(`pictorialBar`)})}var U1=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return TY(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)Q(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(aK);aK.registerClass(U1);var hNe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return TY(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=bL(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=LH(U1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:$.color.primary,borderWidth:2}},realtimeSort:!1}),t}(U1),gNe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),W1=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new gNe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(WR);function _Ne(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return MF(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+G1(m,s+_,!1),x=u+p*y(m)+K1(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+G1(m,-s+_,!1),x=u+p*y(m)+K1(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+G1(h,s+_,!0),x=u+p*y(h)+K1(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+G1(h,-s+_,!0),x=u+p*y(h)+K1(h,-s+_,!0),S=`right`,C=`middle`;break;default:return MF(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function vNe(e,t,n,r){if(lj(r)){e.setTextConfig({rotation:r});return}else if(aj(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function G1(e,t,n){return t*Math.sin(e)*(n?-1:1)}function K1(e,t,n){return t*Math.cos(e)*(n?1:-1)}function q1(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;aj(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:QA(r,function(e){return jF(e,i)})}}var J1=Math.max,Y1=Math.min,yNe=function(e){Z(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){nH(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=bNe(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=t0[s.type](a,e);if(!t)return null;var n=DNe(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=t0[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!e0[s.type](r)))){var o=!1;f&&(o=X1[s.type](p,r));var g=Z1[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),r0(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?Q1(d,u,g,r,t,l,!1,!1):yV(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=t0[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=t0[s.type](a,t),E=s0(l,T,s);vV(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!e0[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=X1[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&CV(D,e,n),D=null),D?wV(D):D=Z1[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=DH(k);A.prevValue!=null&&(A.prevValue=A.value)}}else r0(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?Q1(d,u,D,C,t,l,!0,x):vV(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&CV(n,e,t)}).execute();var C=this._backgroundGroup||=new WF;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),a0(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),a0(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&F$(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:QA(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){CV(t,e,fz(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(fK),X1={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=J1(t.x,e.x),s=Y1(t.x+t.width,i),c=J1(t.y,e.y),l=Y1(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=Y1(t.r,e.r),a=J1(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},Z1={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new ZR({shape:GA({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?W1:KB,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=_Ne(n0(i),{isRoundCap:l===W1}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?vV:yV)(u,{shape:p},a)}return u}};function bNe(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function Q1(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?vV:yV)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?vV:yV)(n,{shape:l},u,i)}function $1(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var xNe=[`x`,`y`,`width`,`height`],SNe=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],e0={cartesian2d:function(e){return!$1(e,xNe)},polar:function(e){return!$1(e,SNe)}},t0={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?wNe(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function CNe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function n0(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function r0(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;GA(u,q1(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?ONe(i,a.coordinateSystem):kNe(i,a.coordinateSystem),p=yH(r);vH(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:h$(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,vNe(e,h===`outside`?f:h,n0(o),r.get([`label`,`rotate`]))}OH(m,p,a.getRawValue(n),function(e){return g$(t,e)});var g=r.getModel([`emphasis`]);lB(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),fB(e,r),CNe(i)&&(e.style.fill=`none`,e.style.stroke=`none`,Q(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function wNe(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var TNe=function(){function e(){}return e}(),i0=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new TNe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(WR);function a0(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?yL(e):0;if(l){var d=new i0({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new i0({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,fz(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,o0),f.on(`mousemove`,o0)),n&&n.push(f)}var o0=vK(function(e){var t=this,n=ENe(t,e.offsetX,e.offsetY);fz(t).dataIndex=n>=0?n:null},30,!1);function ENe(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function s0(e,t,n){if(R$(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function DNe(e,t,n){return new(e.type===`polar`?KB:ZR)({shape:s0(t,n,e),silent:!0,z2:0})}function ONe(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function kNe(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function ANe(e){e.registerChartView(yNe),e.registerSeriesModel(hNe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,z1(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,B1(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,e1(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),H1(e)}function c0(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}function l0(e,t,n){t=aj(t)&&{coordDimensions:t}||GA({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=bY(r,t).dimensions,a=new yY(i,e);return a.initData(r,n),a}var u0=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),jNe=$I(),d0=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new u0(rj(this.getData,this),rj(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return l0(this,{coordDimensions:[`value`],encodeDefaulter:ij(gW,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=jNe(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=yI(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){UI(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(aK);AEe({fullType:d0.type,getCoord2:function(e){return e.getShallow(`center`)}});var MNe=Math.PI/180;function f0(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;p0(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}qZ(e,1,c,c+o)&&d(e)}function NNe(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;g0(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!g0(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,p0(m,g,!1)}}f0(l,t,n,r,1,i,a,o,s,d),f0(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!g0(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function p0(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}m0(a,r)}}}function m0(e,t){h0.rect=e,HZ(h0,t,PNe)}var PNe={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},h0={};function g0(e){return e.position===`center`}function FNe(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*MNe,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=dI(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=dI(T,l);var E=w.get(`length2`);if(E=dI(E,l),Math.abs(d.endAngle-d.startAngle)<o){Q(h.states,p),h.ignore=!0,g&&(Q(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,M,N;r=d.cx,i=d.cy;var P=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,N=`center`;else{var F=(P?(d.r+d.r0)/2*O:d.r*O)+r,I=(P?(d.r+d.r0)/2*k:d.r*k)+i;if(A=F+O*3,j=I+k*3,!P){var L=F+O*(T+c-d.r),R=I+k*(T+c-d.r),z=L+(O<0?-1:1)*E,B=R;A=x===`edge`?O<0?u+S:u+l-S:z+(O<0?-b:b),j=B,M=[[F,I],[L,R],[z,B]]}N=P?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var V=Math.PI,H=0,U=v.get(`rotate`);if(lj(U))H=V/180*U;else if(y===`center`)H=0;else if(U===`radial`||U===!0)H=O<0?-D+V:-D;else if(U===`tangential`||U===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var W=Math.atan2(O,k);W<0&&(W=V*2+W),k>0&&U!==`tangential-noflip`&&(W=V+W),H=W-V}if(a=!!H,h.x=A,h.y=j,h.rotation=H,h.setStyle({verticalAlign:`middle`}),P){h.setStyle({align:N});var G=h.states.select;G&&(G.x+=h.x,G.y+=h.y)}else{var K=new GM(0,0,0,0);m0(K,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new MM(O,k),linePoints:M,textAlign:N,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:K,unconstrainedWidth:K.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}}),!a&&e.get(`avoidLabelOverlap`)&&NNe(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(Q(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(Q(v.states,p),v.ignore=!0):(MZ(x,g.minTurnAngle),pje(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new MM(x[0][0],x[0][1])})}}}var _0=Math.PI*2,v0=Math.PI/180,INe=xL(`pie`,LNe);function LNe(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=YU(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*v0,d=e.get(`endAngle`),f=e.get(`padAngle`)*v0;d=d===`auto`?u-_0:-d*v0;var p=e.get(`minAngle`)*v0+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;kR(S,!_),u=S[0],d=S[1];var w=y0(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e)){n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?uI(e,b,[c,s]):s}),O=i}),E<_0&&m)if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?(i=u+x*(t+1/2)*k,a=i):(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var y0=$I(),RNe=function(e){Z(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new tz;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=GA(q1(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(yV(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,yV(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,vV(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),yV(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else wV(i),vV(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),fB(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=GA({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},q1(s.getModel(`itemStyle`),c)),GA(i.ensureState(`select`),{x:p,y:m,shape:q1(o.getModel([`select`,`itemStyle`]),c)}),GA(i.ensureState(`blur`),{shape:q1(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&GA(g.ensureState(`select`),{x:p,y:m}),GA(_.ensureState(`select`),{x:p,y:m}),lB(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;vH(r,yH(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new XB,this.setTextGuideLine(d)),PZ(this,FZ(i),{stroke:s,opacity:bj(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(KB),zNe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new KB({shape:HA(y0(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new RNe(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){CV(a.getItemGraphicEl(t),e,t)}).execute(),FNe(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(fK);function BNe(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(lj(r)&&!isNaN(r)&&r<0)})}}}function VNe(e){e.registerChartView(zNe),e.registerSeriesModel(d0),UK(`pie`,e.registerAction),e.registerLayout(INe),e.registerProcessor(c0(`pie`)),e.registerProcessor(BNe(`pie`))}var HNe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return TY(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:`clone`}},t}(aK),b0=4,UNe=function(){function e(){}return e}(),WNe=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new UNe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<b0,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||i&&!i.contain(o,s)||r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new GM(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(WR),GNe=function(){function e(){this.group=new WF}return e.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var t=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;n=new Float32Array(n.buffer,r,t)}e.setShape(`points`,n),e.reset(),e.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n,r){var i=this._newAdded[0],a=t.getLayout(`points`),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,c=new Float32Array(s+a.length);c.set(o),c.set(a,s),i.endIndex=e.end,i.setShape({points:c})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=n,l.setShape({points:a}),this._setCommon(l,t,r)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new WNe({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=tq(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<b0;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=fz(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),KNe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,x0(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),yL(t),x0(t)),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),this._finished){var i=$$(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(x0(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new GNe:new S$,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(fK);function x0(e){return{clipShape:L$(e)}}var S0=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,nL).models[0]},t.type=`cartesian2dAxis`,t}(aW);XA(S0,bX);var C0={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:$.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},qNe=UA({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},C0),w0=UA({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},C0),T0={category:qNe,value:w0,time:UA({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},w0),log:qA({logBase:10},w0)};function E0(e,t,n,r){Q(sX,function(i,a){var o=UA(UA({},T0[a],!0),r,!0),s=function(e){Z(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=tW(this),r=n?rW(e):{};UA(e,t.getTheme().get(a+`Axis`)),UA(e,this.getDefaultOption()),e.type=D0(e),n&&nW(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=DY.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=r1();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,D0)}function D0(e){return e.type||(e.data?`category`:`value`)}var JNe=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return QA(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ej(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),O0=[`x`,`y`];function k0(e){return(e.type===`interval`||e.type===`time`)&&!XH(e)}var YNe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=F1,t.dimensions=O0,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!k0(e)||!k0(t))){var n=NY(e,null),r=NY(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=AM([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new GM(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return tM(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return tM(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new GM(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(JNe);function A0(e,t){var n=e.scale,r=e.model,i=UX(n,r,r.ecModel,e,null),a=BY(n),o=BY(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=nI(l[0].value-l[1].value),g=nI(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=GY(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*tI(c,2):Uke(E),D=HY(E)}function j(){w=mI(k-E*f,D)}function M(){T=mI(O+E*p,D)}function N(){k=f?mI(w+E*f,D):w}function P(){O=p?mI(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var F=e.getExtent(),I=nI(F[1]-F[0]);D=vI([T,w],I,.5/m),N(),P(),FI(D)&&(E=mI(E,D))}else{var L=C[1]-C[0];E=a?tI(TI(L),1):DI(L/m,2),D=HY(E),b[0]?(w=C[0],A(function(){if(N(),O=mI(k+E*m,D),M(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(P(),k=mI(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=mI(aI(C[0]/E)*E,D),O=mI(iI(C[1]/E)*E,D);var e=rI((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=iI(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=mI(k-E*n[0],D),O=mI(O+E*n[1],D),j(),M(),w<=C[0]&&T>=C[1])return!0}})}_X(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var j0=[[3,1],[0,2]],XNe=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=O0,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;Q(this._axesList,function(e){zX(e,1);var t=e.scale;VY(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=nj(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):GX(i)}Q(n,function(e){QNe(e,e.__alignTo)?GX(e):A0(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};Q(n.x,function(e){M0(n,`y`,e,i)}),Q(n.y,function(e){M0(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=$U(e,t),i=this._rect=XU(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(F0(a,i),!n){var c=tPe(i,o,a,s,t),l=void 0;if(s)L0?(L0(this._axesList,i),F0(a,i)):l=R0(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=nPe(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=R0(d,f,p,i,a,c,r))}z0(i,a,oZ.determine,null,l,r),Q(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}uj(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,nL).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,nL).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,JA(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,Q(o.x,function(t,n){Q(o.y,function(i,a){var o=`x`+n+`y`+a,s=new YNe(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),P0(o.x),P0(o.y);function c(t){return function(n,r){if(ZNe(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=lX(n),u=new t1(t,uX(n,l,!0),[0,0],l,c);u.onBand=yX(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Q(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);JA(t,i)<0&&t.push(i),JA(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),Q(o._axesList,function(t){vAe(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;VU({targetModel:e,coordSysType:F1,coordSysProvider:r});function r(){var r=rNe(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(AX(t,e,F1),AX(n,e,F1))},this),r},e.dimensions=O0,e.dimIdxMap=oY(O0),e}();function ZNe(e,t){return e.getCoordSysModel()===t}function M0(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)N0(s,i[c])&&(a=i[c]);else for(var l in i)if(Pj(i,l)&&N0(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function N0(e,t){if(!t)return!1;var n=t.scale,r=tAe(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&rAe(t)&&(i=!1),i}function P0(e){for(var t=nj(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];LY(a.scale)&&gX(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&Q(r,function(e){e.__alignTo=n})}function QNe(e,t){return XH(e.scale)||XH(t.scale)||t.scale.getTicks().length<2}function $Ne(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function F0(e,t){Q(e.x,function(e){return I0(e,t.x,t.width)}),Q(e.y,function(e){return I0(e,t.y,t.height)})}function I0(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),$Ne(e,t)}var L0;function ePe(e){L0=e}function R0(e,t,n,r,i,a,o){z0(r,i,oZ.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=tj(s,function(e){return e>0})==null;return ZV(r,s,!0,!0,n),F0(i,r),c;function l(e){Q(i[DV[e]],function(t){if(hX(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(vX(t.scale,c1(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=mX(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[DV[n]]-t[DV[n]],a=t[OV[n]]+t[DV[n]]-(e[OV[n]]+e[DV[n]]);i=d(i,1-r),a=d(a,r);var o=j0[n][0],c=j0[n][1];s[o]=tI(s[o],i),s[c]=tI(s[c],a)}function d(e,t){return e>0&&!_j(t)&&t>1e-4&&(e/=t),e}}function tPe(e,t,n,r,i){var a=new u1(rPe);return Q(n,function(n){return Q(n,function(n){if(hX(n.model)){var o=!r;n.axisBuilder=iNe(e,t,n.model,i,a,o)}})}),a}function z0(e,t,n,r,i,a){var o=n===oZ.determine;Q(t,function(t){return Q(t,function(t){hX(t.model)&&(aNe(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[DV[1-t]]=e[OV[t]]<=a.refContainer[OV[t]]*.5?0:1-t==1?2:1}Q(t,function(e,t){return Q(e,function(e){hX(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function nPe(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=XU(e.get(`outerBounds`,!0)||N1,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||JA([`all`,`axisLabel`],a)<0?`all`:a,s=[fI(yj(e.get(`outerBoundsClampWidth`,!0),P1[0]),t.width),fI(yj(e.get(`outerBoundsClampHeight`,!0),P1[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var rPe=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;UMe(e,t,n,r,i,a),mX(e.nameLocation)||Q(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&m1(e.labelInfoList,e.dirVec,r,i)})};function iPe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return aPe(n,e,t),n.seriesInvolved&&sPe(n,e),n}function aPe(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];Q(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=U0(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(Q(n.getAxes(),ij(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&Q(f.baseAxes,ij(p,d?`cross`:!0,u)),d&&Q(f.otherAxes,ij(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!H0(d))){s??=d.get(`triggerTooltip`),d=r?oPe(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=U0(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:H0(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=cPe(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function oPe(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};Q(s,function(e){c[e]=HA(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&qA(l,u.textStyle)}return e.model.getModel(`axisPointer`,new FH(c,n,r))}function sPe(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||Q(e.coordSysAxesInfo[U0(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function cPe(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(B0(a[r+`AxisId`],n.id)||B0(a[r+`AxisIndex`],n.componentIndex)||B0(a[r+`AxisName`],n.name))return i}}function B0(e,t){return e===`all`||aj(e)&&JA(e,t)>=0||e===t}function lPe(e){var t=V0(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=H0(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function V0(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[U0(e)]}function uPe(e){var t=V0(e);return t&&t.axisPointerModel}function H0(e){return!!e.get([`handle`,`show`])}function U0(e){return e.type+`||`+e.id}var W0={},G0=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&lPe(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=uPe(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){W0[e]=t},t.getAxisPointerClass=function(e){return e&&W0[e]},t.type=`axis`,t}(lK),K0=$I();function q0(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=K0(e).splitAreaColors,f=Aj(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=aj(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new ZR({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:qA({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}K0(e).splitAreaColors=f}}}function J0(e){K0(e).splitAreaColors=null}var dPe=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],Y0=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new WF,this.group.add(this._axisGroup),hX(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),Q(dPe,function(e){t.get([e,`show`])&&fPe[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||WV(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){J0(this)},t.type=`cartesianAxis`,t}(G0),fPe={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=aj(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new ZB({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:qA({stroke:c[x]},_),silent:!0});RV(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new ZB({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});RV(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){q0(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=r1(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},X0=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(Y0),pPe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=X0.type,t}return t.type=`yAxis`,t}(Y0),mPe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new ZR({shape:e.coordinateSystem.getRect(),style:qA({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(lK),Z0={offset:0};function Q0(e){e.registerComponentView(mPe),e.registerComponentModel(lNe),e.registerCoordinateSystem(`cartesian2d`,XNe),E0(e,`x`,S0,Z0),E0(e,`y`,S0,Z0),e.registerComponentView(X0),e.registerComponentView(pPe),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var $0=`single`,e2=`singleAxis`,t2=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type=e2,t.layoutMode=`box`,t.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},t}(aW);XA(t2,bX.prototype);function hPe(e,t){var n=e.coordinateSystem,r=n&&n.type,i=n&&n.getBaseAxis&&n.getBaseAxis(),a=i&&i.scale&&i.scale.type,o=r===`cartesian2d`&&a===`ordinal`||r===`single`,s=t.model.get(`jitter`)>0;return o&&s}var gPe=$I();function n2(e,t,n,r){if(e instanceof t1&&e.scale.type!==`ordinal`)return n;var i=e.model,a=i.get(`jitter`);if(!(a>0))return n;var o=i.get(`jitterOverlap`),s=i.get(`jitterMargin`)||0,c=VY(e.scale)?hZ(e).w:null;return o?r2(n,a,c,r):_Pe(e,t,n,r,a,s)}function r2(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var i=n-r*2,a=Math.min(Math.max(0,t),i);return e+(Math.random()-.5)*a}function _Pe(e,t,n,r,i,a){var o=gPe(e);o.items||=[];var s=o.items,c=i2(s,t,n,r,i,a,1),l=i2(s,t,n,r,i,a,-1),u=Math.abs(c-n)<Math.abs(l-n)?c:l,d=VY(e.scale)?hZ(e).w:null,f=Math.abs(u-n);return f>i/2||d&&f>d/2-r?r2(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function i2(e,t,n,r,i,a,o){for(var s=n,c=0;c<e.length;c++){var l=e[c],u=t-l.fixedCoord,d=s-l.floatCoord,f=u*u+d*d,p=r+l.r+a;if(f<p*p){var m=l.floatCoord+Math.sqrt(p*p-u*u)*o;if(Math.abs(m-n)>i/2)return Number.MAX_VALUE;if(o===1&&m>s||o===-1&&m<s){s=m,c=-1;continue}}}return s}function vPe(){return{seriesType:`scatter`,plan:uK(),reset:function(e){var t=e.coordinateSystem;if(!(!t||t.type!==`cartesian2d`&&t.type!==`single`)){var n=t.getBaseAxis&&t.getBaseAxis();if(n&&hPe(e,n)){var r=n.dim,i=n.orient,a=i===`horizontal`&&n.type!==`category`||i===`vertical`&&n.type===`category`,o=r===`y`||r===`single`&&a,s=r===`x`||r===`single`&&!a;if(!(!o&&!s))return{progress:function(e,t){for(var r=t.getLayout(`points`),i=!!r,a=e.start;a<e.end;a++){var c=i?(a-e.start)*2:-1,l=i?[r[c],r[c+1]]:t.getItemLayout(a);if(l){var u=t.getItemVisual(a,`symbolSize`),d=u instanceof Array?(u[1]+u[0])/2:u;if(o){var f=n2(n,l[0],l[1],d/2);i?r[c+1]=f:l[1]=f}else if(s){var f=n2(n,l[1],l[0],d/2);i?r[c]=f:l[0]=f}}}}}}}}}}function yPe(e){ZJ(Q0),e.registerSeriesModel(HNe),e.registerChartView(KNe),e.registerLayout($$(`scatter`))}function bPe(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,vPe())}function xPe(e){var t=e.polar;if(t){aj(t)||(t=[t]);var n=[];Q(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],aj(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}Q(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var a2=`radar`,SPe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new u0(rj(this.getData,this),rj(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return l0(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=QG(this,e);return GG(`section`,{header:o,sortBlocks:!0,blocks:QA(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return GG(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(QA(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.`+a2,t.dependencies=[`radar`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`radar`,legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:`solid`,join:`round`},label:{position:`top`},symbolSize:8},t}(aK),CPe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=a2,t}return t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=nq(e.getItemVisual(t,`symbolSize`)),i=tq(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),TV[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return QA(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new YB,i=new XB,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),yV(r,o,e,t),yV(i,o,e,t);var s=new WF,u=new WF;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),wV(s),wV(i),vV(i,u,e),vV(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(qA(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),fB(r,n,`lineStyle`),fB(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,Q([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&d;var a=n.getModel([e,`lineStyle`]).getLineStyle();r.ensureState(e).style=a;var c=t.getAreaStyle();o.ensureState(e).style=c;var l=n.getModel([e,`itemStyle`]).getItemStyle();s.eachChild(function(t){t.ensureState(e).style=HA(l)})}),o.useStyle(qA(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof KR){var r=e.style;e.useStyle(GA({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(i==null||isNaN(i))&&(i=``),vH(e,yH(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),lB(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=a2,t}(fK),o2=T0.value,s2=`radar`,c2=s2,wPe=s2;function l2(e,t){return qA({show:t},e)}var TPe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`clockwise`),r=this.get(`scale`),i=this.get(`axisLine`),a=this.get(`axisTick`),o=this.get(`axisLabel`),s=this.get(`axisName`),c=this.get([`axisName`,`show`]),l=this.get([`axisName`,`formatter`]),u=this.get(`axisNameGap`),d=this.get(`triggerEvent`),f=QA(this.get(`indicator`)||[],function(f){f.max!=null&&f.max>0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var p=s;f.color!=null&&(p=qA({color:f.color},s));var m=UA(HA(f),{boundaryGap:e,splitNumber:t,clockwise:n,scale:r,axisLine:i,axisTick:a,axisLabel:o,name:f.text,showName:c,nameLocation:`end`,nameGap:u,nameTextStyle:p,triggerEvent:d},!1);if(sj(l)){var h=m.name;m.name=l.replace(`{value}`,h??``)}else oj(l)&&(m.name=l(m.name,m));var g=new FH(m,null,this.ecModel);return XA(g,bX.prototype),g.mainType=`radar`,g.componentIndex=this.componentIndex,g.uid=IH(`ec_radar`),g},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=c2,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,clockwise:!1,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:UA({lineStyle:{color:$.color.neutral20}},o2.axisLine),axisLabel:l2(o2.axisLabel,!1),axisTick:l2(o2.axisTick,!1),splitLine:l2(o2.splitLine,!0),splitArea:l2(o2.splitArea,!0),indicator:[]},t}(aW),EPe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;Q(QA(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new h1(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=aj(u)?u:[u],p=aj(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new NB({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new qB({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=QA(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),QA(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]&&T.push(T[0].slice()),c){var x=g(m,f,b);m[x].push(new XB({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new YB({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();Q(h,function(e,t){this.group.add(IV(e,{style:qA({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),Q(m,function(e,t){this.group.add(IV(e,{style:qA({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(lK),DPe=function(e){Z(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}(_Z),OPe=function(){function e(e,t,n){this.type=s2,this.dimensions=[],this._model=e,this._indicatorAxes=QA(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new DPe(n,new XY);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=$U(e,t).refContainer,r=e.get(`center`),i=e.get(`clockwise`)||!1,a=Math.min(n.width,n.height)/2;this.cx=dI(r[0],n.width)+n.x,this.cy=dI(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var o=e.get(`radius`);(sj(o)||lj(o))&&(o=[0,o]),this.r0=dI(o[0],a),this.r=dI(o[1],a);var s=i?-1:1;Q(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+s*t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model,i=KY(r.get(`splitNumber`),5),a=new XY;a.setExtent(0,i),a.setConfig({interval:1}),Q(n,function(e){zX(e,1),A0(e,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(c2,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(wPe,function(e){if(e.get(`coordinateSystem`)===`radar`){var t=e.coordinateSystem=r[e.get(`radarIndex`)||0];t&&Q(t.getIndicatorAxes(),function(t){AX(t,e,s2)})}}),r},e.dimensions=[],e}();function kPe(e){e.registerCoordinateSystem(`radar`,OPe),e.registerComponentModel(TPe),e.registerComponentView(EPe),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}var APe=xL(a2,jPe);function jPe(e){e.eachSeriesByType(a2,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();Q(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=u2(i)?i:MPe(r)})}),t.each(function(e){var i=tj(n[e],function(e){return u2(e)})||MPe(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function u2(e){return!isNaN(e[0])&&!isNaN(e[1])}function MPe(e){return[e.cx,e.cy]}function NPe(e){ZJ(kPe),e.registerChartView(CPe),e.registerSeriesModel(SPe),e.registerLayout(APe),e.registerProcessor(c0(`radar`)),e.registerPreprocessor(xPe)}var d2=$I();function PPe(e,t,n){d2(e)[t]=n}function FPe(e,t,n){var r=d2(e);r[t]===n&&(r[t]=null)}function IPe(e,t){return!!d2(e)[t]}BJ({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},Fj);var LPe={axisPointer:1,tooltip:1,brush:1};function RPe(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||LPe.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=sH(r),o=sH(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var f2=function(e){Z(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=rj(n._mousedownHandler,n),i=rj(n._mousemoveHandler,n),a=rj(n._mouseupHandler,n),o=rj(n._mousewheelHandler,n),s=rj(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=sH(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:yj(c.z2,-1/0)},p=GA({},n.triggerInfo);this._opt=qA(GA({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p,cursorGrab:`grab`,cursorGrabbing:`grabbing`}),e??=!0,(!this._enabled||this._controlType!==e)&&(this.disable(),this._enabled=!0,(e===!0||e===`move`||e===`pan`)&&(h2(t,`mousedown`,r,f),h2(t,`mousemove`,i,f),h2(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(h2(t,`mousewheel`,o,f),h2(t,`pinch`,s,f)))},n.disable=function(){this._enabled&&(this._enabled=!1,g2(t,`mousedown`,r),g2(t,`mousemove`,i),g2(t,`mouseup`,a),g2(t,`mousewheel`,o),g2(t,`pinch`,s))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(RPe(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return this._opt.cursorGrab;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(bM(e)||p2(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||IPe(t,`globalPan`)||p2(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!_2(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(this._opt.cursorGrabbing);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&yM(e.event),e.__ecRoamConsumed=!0,HPe(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!p2(e)){var t=this._zr;if(!bM(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!p2(e)){var t=_2(`zoomOnMouseWheel`,e,this._opt),n=_2(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(IPe(this._zr,`globalPan`)||p2(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(yM(r.event),r.__ecRoamConsumed=!0,HPe(e,t,n,r,i))},t}(aM);function p2(e){return e.__ecRoamConsumed}var zPe=$I();function m2(e){var t=zPe(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function h2(e,t,n,r){for(var i=m2(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),BPe(e,t)}function g2(e,t,n){for(var r=m2(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||VPe(e,t);return}}function BPe(e,t){var n=m2(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function VPe(e,t){var n=m2(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function HPe(e,t,n,r,i){i.isAvailableBehavior=rj(_2,null,n,r),e.trigger(t,i)}function _2(e,t,n){var r=n[e];return!e||r&&(!sj(r)||t.event[r+`Key`])}function UPe(e){sj(e)&&(e=new DOMParser().parseFromString(e,`text/xml`));var t=e;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!==`svg`||t.nodeType!==1;)t=t.nextSibling;return t}var v2,y2={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`},WPe=nj(y2),b2={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},GPe=nj(b2),KPe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t||={};var n=UPe(e);this._defsUsePending=[];var r=new WF;this._root=r;var i=[],a=n.getAttribute(`viewBox`)||``,o=parseFloat(n.getAttribute(`width`)||t.width),s=parseFloat(n.getAttribute(`height`)||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),S2(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;eFe(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=C2(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=sFe(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new WF,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new ZR({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=v2[o];if(l&&Pj(v2,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=qPe[o];if(f&&Pj(qPe,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new GR({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});x2(t,n),S2(e,n,this._defsUsePending,!1,!1),ZPe(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){v2={g:function(e,t){var n=new WF;return x2(t,n),S2(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new ZR;return x2(t,n),S2(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 NB;return x2(t,n),S2(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 ZB;return x2(t,n),S2(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 PB;return x2(t,n),S2(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`),r;n&&(r=XPe(n));var i=new YB({shape:{points:r||[]},silent:!0});return x2(t,i),S2(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=XPe(n));var i=new XB({shape:{points:r||[]},silent:!0});return x2(t,i),S2(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new KR;return x2(t,n),S2(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`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new WF;return x2(t,o),S2(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new WF;return x2(t,o),S2(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=jB(e.getAttribute(`d`)||``);return x2(t,n),S2(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),qPe={lineargradient:function(e){var t=new iV(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return JPe(e,t),YPe(e,t),t},radialgradient:function(e){var t=new aV(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return JPe(e,t),YPe(e,t),t}};function JPe(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function YPe(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};aFe(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=tP(o);c&&c[3]&&(c[3]*=qN(s),o=cP(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function x2(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},qA(t.__inheritedStyle,e.__inheritedStyle))}function XPe(e){for(var t=C2(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function S2(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(rFe(e,t),aFe(e,o,s),r||oFe(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=$Pe(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=$Pe(a,`stroke`,o.stroke,n)),Q([`lineWidth`,`opacity`,`fillOpacity`,`strokeOpacity`,`miterLimit`,`fontSize`],function(e){o[e]!=null&&(a.style[e]=parseFloat(o[e]))}),Q([`lineDashOffset`,`lineCap`,`lineJoin`,`fontWeight`,`fontFamily`,`fontStyle`,`textAlign`],function(e){o[e]!=null&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=QA(C2(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function ZPe(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r===`auto`||r===`baseline`?i=`alphabetic`:r===`before-edge`||r===`text-before-edge`?i=`top`:r===`after-edge`||r===`text-after-edge`?i=`bottom`:(r===`central`||r===`mathematical`)&&(i=`middle`),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o===`middle`&&(s=`center`),e.style.textAlign=s)}}var QPe=/^url\(\s*#(.*?)\)/;function $Pe(e,t,n,r){var i=n&&n.match(QPe);if(i){var a=wj(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function eFe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var tFe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function C2(e){return e.match(tFe)||[]}var nFe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,w2=Math.PI/180;function rFe(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(nFe,function(e,t,n){return r.push(t,n),``});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],c=C2(o);switch(i||=CM(),s){case`translate`:DM(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:kM(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:OM(i,i,-parseFloat(c[0])*w2,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*w2);EM(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*w2);EM(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var iFe=/([^\s:;]+)\s*:\s*([^:;]+)/g;function aFe(e,t,n){var r=e.getAttribute(`style`);if(r){iFe.lastIndex=0;for(var i;(i=iFe.exec(r))!=null;){var a=i[1],o=Pj(y2,a)?y2[a]:null;o&&(t[o]=i[2]);var s=Pj(b2,a)?b2[a]:null;s&&(n[s]=i[2])}}}function oFe(e,t,n){for(var r=0;r<WPe.length;r++){var i=WPe[r],a=e.getAttribute(i);a!=null&&(t[y2[i]]=a)}for(var r=0;r<GPe.length;r++){var i=GPe[r],a=e.getAttribute(i);a!=null&&(n[b2[i]]=a)}}function sFe(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function cFe(e,t){return new KPe().parse(e,t)}var lFe=Aj([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),uFe=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=Aj(),this._freedGraphics=[],this._mapName=e,this._parsedXML=UPe(t)}return e.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=fFe(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&cFe(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Cj(n!=null)}catch(e){throw Error(`Invalid svg format
`+e.message)}var r=new WF;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var c=void 0,l=void 0,u=void 0,d=void 0;if(i==null?o&&(c=o.x,u=o.width):(c=0,u=i),a==null?o&&(l=o.y,d=o.height):(l=0,d=a),c==null||l==null){var f=n.getBoundingRect();c??(c=f.x,u=f.width),l??(l=f.y,d=f.height)}s=this._boundingRect=new GM(c,l,u,d)}if(o){var p=sFe(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new ZR({shape:s.plain()}));var m=[];return Q(t.named,function(e){lFe.get(e.svgNodeTagLower)!=null&&(m.push(e),dFe(e.el))}),{root:r,boundingRect:s,named:m}},e.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)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function dFe(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function fFe(e){var t=[],n=Aj();return Q(e,function(e){if(e.namedFrom==null){var r=new FAe(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}for(var T2=[126,25],pFe=`南海诸岛`,E2=[[[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]]],D2=0;D2<E2.length;D2++)for(var O2=0;O2<E2[D2].length;O2++)E2[D2][O2][0]/=10.5,E2[D2][O2][1]/=-10.5/.75,E2[D2][O2][0]+=T2[0],E2[D2][O2][1]+=T2[1];function mFe(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===pFe)return;t.push(new tZ(pFe,QA(E2,function(e){return{type:`polygon`,exterior:e}}),T2))}}var hFe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function gFe(e,t){if(e===`china`){var n=hFe[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var _Fe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function vFe(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:_Fe[0]})}var yFe=`name`,bFe=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=Aj(),this._mapName=e,this._specialAreas=n,this._geoJSON=SFe(t)}return e.prototype.load=function(e,t){t||=yFe;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:xFe(r)})}var i=Aj(),a=[];return Q(n.regions,function(t){var n=t.name;e&&Pj(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new GM(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?iZ(n,e):[]}catch(e){throw Error(`Invalid geoJson format
`+e.message)}return mFe(t,r),Q(r,function(e){var n=e.name;gFe(t,e),vFe(t,e);var r=this._specialAreas&&this._specialAreas[n];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),r},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function xFe(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function SFe(e){return sj(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var k2=Aj(),A2={registerMap:function(e,t,n){if(t.svg){var r=new uFe(e,t.svg);k2.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new bFe(e,i,n);k2.set(e,r)}},getGeoResource:function(e){return k2.get(e)},getMapForUser:function(e){var t=k2.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=k2.get(e);if(r)return r.load(t,n)}};function j2(e){return e}var CFe=`view`,M2=function(e){Z(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=CFe,i.dimensions=[`x`,`y`];var a=j2(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=_F(),o[1]=_F(),o[2]=_F(),a.mtRaw=CM(),a.mtRawInv=CM(),a.mtOverall=CM(),a.mtOverallInv=CM(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return TFe(null,this)},t.prototype.getViewRect=function(){return F2(null,this)},t.prototype.getRoamTransform=function(){return gF(j2(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?j2(this).mtRaw:j2(this).mtOverall;return n||=[],r?tM(n,e,r):Bj(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=j2(this).mtOverallInv;return r?tM(n,e,r):Bj(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=IFe(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=IFe(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=j2(this);return JM(N2,t.dataRect),XM(N2,N2,t.mtOverall),ASe(N2,e[0],e[1])},t.dimensions=[`x`,`y`],t}(hF),N2=KM();function P2(e,t){return TM(e||[],j2(t).mtOverall)}function wFe(e){return j2(e).zoom}function TFe(e,t){return JM(e||KM(),j2(t).dataRect)}function F2(e,t){return JM(e||KM(),j2(t).viewRect)}function I2(e,t,n){return yF(e||_F(),j2(t).trans[n])}function L2(e){return!!(e.dataRect&&e.viewRect)}function EFe(e,t,n,r){r===1?PFe(e,t.trans[0],n):yF(e,n)}function DFe(e,t,n){gF(n,R2),EM(R2,R2,t.mtRawInv),fH(e,R2)}var R2=CM();function z2(e,t){var n=j2(e);n.centerOption=t.getShallow(`center`);var r=n.zoomLimit=t.getShallow(`scaleLimit`);n.zoom=Z2(t.getShallow(`zoom`)||1,r)||1,L2(n)&&H2(n)}function B2(e,t,n,r,i){var a=j2(e);a.dataRect=new GM(t,n,r,i),L2(a)&&H2(a)}function V2(e,t,n,r,i){var a=j2(e);a.viewRect=new GM(t,n,r,i),L2(a)&&H2(a)}function H2(e){OFe(e),jFe(e),MFe(e)}function OFe(e){var t=e.dataRect,n=e.viewRect,r=e.trans[0],i=e.invertY;i&&(t=JM(AFe,t),t.y=-t.y-t.height),YM(kFe,t,n),fH(r,kFe),i&&(r.scaleY=-r.scaleY);var a=gF(r,e.mtRaw);AM(e.mtRawInv,a)}var kFe=CM(),AFe=KM();function jFe(e){var t=LFe(e),n=WFe(U2,e,e.centerOption)?tM(U2,U2,e.mtRaw):t,r=e.zoom,i=e.trans[1];i.x=t[0]-r*n[0],i.y=t[1]-r*n[1],i.scaleX=i.scaleY=r}var U2=[];function MFe(e){var t=e.trans,n=t[1],r=t[0],i=t[2];PFe(i,r,n);var a=gF(i,e.mtOverall),o=AM(e.mtOverallInv,a);NFe(e,i,a,o),NFe(e.lgGeo,i,a,o)}function NFe(e,t,n,r){e&&(yF(e,t),TM(e.transform||=[],n),TM(e.invTransform||=[],r))}function PFe(e,t,n){gF(t,FFe),gF(n,W2),EM(W2,W2,FFe),fH(e,W2)}var FFe=CM(),W2=CM();function IFe(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function LFe(e){var t=e.viewRect;return G2[0]=t.x+t.width/2,G2[1]=t.y+t.height/2,G2}var G2=[];function RFe(e){return e&&e.type===`view`}function K2(e,t,n,r){var i=j2(n);i.syncBackEl=e,i.syncBackType=t,r?vV(e,I2(null,n,t),r):(I2(e,n,t),e.dirty())}function zFe(e,t,n,r){var i=j2(e),a=i.syncBackEl;a?(a.stopAnimation(),EFe(q2,i,a,i.syncBackType)):yF(q2,i.trans[2]),DFe(J2,i,q2),r?HFe(q2,J2,i,r):yF(q2,J2),DFe(q2,i,q2),JFe(i,t,n,q2)}var q2=_F(),J2=_F();function BFe(e,t,n){var r=Y2(t);r&&(zFe(r,t,n,e),z2(r,t))}function Y2(e){return e.__ownRoamView?e.__ownRoamView():null}function VFe(e,t,n,r){n.setUpdatePayload(dH(e));var i=wz(r,t);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(e,t,r)}function HFe(e,t,n,r){r.dx!=null&&r.dy!=null&&(e.x+=r.dx,e.y+=r.dy);var i=r.zoom;if(i!=null){var a=UFe(t),o=Z2(a*i,n.zoomLimit)/a;e.x-=(r.originX-e.x)*(o-1),e.y-=(r.originY-e.y)*(o-1),e.scaleX*=o,e.scaleY*=o}}function UFe(e){return e.scaleX}function WFe(e,t,n){var r=t.dataRect;if(!n)return!1;var i=t.lgCt;return i?Hj(e,dI(n[0],i.w),dI(n[1],i.h)):r&&Hj(e,dI(n[0],r.width,r.x),dI(n[1],r.height,r.y)),!0}function GFe(e,t){var n=e.centerOption,r=e.dataRect;return!n||e.lgCt?t.slice():[KFe(0,t,n,r),KFe(1,t,n,r)]}function KFe(e,t,n,r){return n&&r&&r[OV[e]]&&BCe(n[e])?(t[e]-r[DV[e]])/r[OV[e]]*100+`%`:t[e]}function qFe(e,t){return t&&e&&e.getShallow(`legacyViewCoordSysCenterBase`)?{w:t.getWidth(),h:t.getHeight()}:null}function JFe(e,t,n,r){var i=LFe(e),a=UFe(r),o=nI(a)>1e-6;X2[0]=o?(i[0]-r.x)/a:i[0],X2[1]=o?(i[1]-r.y)/a:i[1],tM(X2,X2,e.mtRawInv);var s=GFe(e,X2);YFe(t,s,a),Q(n,function(e){e!==t&&YFe(e,s.slice(),a)})}var X2=[];function YFe(e,t,n){var r=e.option;r.center=t,r.zoom=n}function Z2(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function XFe(e,t){var n=t.getShallow(`nodeScaleRatio`,!0)||1,r=j2(e);return((r.zoom-1)*n+1)/(r.trans[2].scaleX||1)}function Q2(e,t,n,r,i,a,o,s){if(!Y2(e)){n.disable();return}n.enable(yj(e.get(`roam`),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:r,isInClip:function(e,t,n){return!i||i.contain(t,n)}}});function c(n){var r=e.mainType,i=dH(qA({type:QFe(r,e.subType,Sz)},n));s&&(i.componentType=r),i[r+`Id`]=e.id,t.dispatchAction(i)}n.off(`pan`).off(`zoom`).on(`pan`,function(e){a&&a(`pan`),c({dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){a&&a(`zoom`),c({zoom:e.scale,originX:e.originX,originY:e.originY})})}function ZFe(e){return function(t,n,r){return $2.copy(e.getBoundingRect()),$2.applyTransform(e.getComputedTransform()),$2.contain(n,r)}}var $2=new GM(0,0,0,0);function e4(e,t,n){var r=QFe(t,n,Sz);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(iL(e,t,n),function(t){BFe(e,t),VFe(e,t,r,i)})})}function QFe(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function $Fe(e){return e.zoom!=null}function t4(e,t,n,r,i,a,o){var s=new M2(null,qFe(e.ecModel,t));return B2(s,n,r,i,a),o?V2(s,o.x,o.y,o.width,o.height):V2(s,n,r,i,a),z2(s,e),s}var n4=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],eIe=Aj(n4),tIe=Aj(n4.concat([`g`])),nIe=Aj(n4.concat([`g`])),rIe=$I();function r4(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function iIe(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var aIe=function(){function e(e){var t=this.group=new WF,n=this._transformGroup=new WF;t.add(n),this.uid=IH(`ec_map_draw`),this._controller=new f2(e.getZr()),n.add(this._regionsGroup=new WF),n.add(this._svgGroup=new WF)}return e.prototype.draw=function(e,t,n,r,i){var a=this,o=e.getData&&e.getData();i4(e)&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=s.view,l=this._regionsGroup,u=this._transformGroup,d=!l.childAt(0)||i,f;s.shouldClip()?(f=F2(null,c),this.group.setClipPath(new ZR({shape:f.clone()}))):this.group.removeClipPath(),K2(u,1,c,d?null:e);var p=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0;s.resourceType===`geoJSON`?this._buildGeoJSON(c,n,s,e,o,p):s.resourceType===`geoSVG`&&this._buildSVG(c,n,s,e,o,p),Q2(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},f,function(){a._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,l,n,r)},e.prototype.__updateOnOwnRoam=function(e){K2(this._transformGroup,1,e.coordinateSystem.view,null)},e.prototype._buildGeoJSON=function(e,t,n,r,i,a){var o=this._regionsGroupByName=Aj(),s=Aj(),c=this._regionsGroup,l=n.projection,u=l&&l.stream,d=gF(I2(null,e,0));function f(e,t){return t&&(e=t(e)),e&&tM([],e,d)}function p(e){for(var t=[],n=!u&&l&&l.project,r=0;r<e.length;++r){var i=f(e[r],n);i&&t.push(i)}return t}function m(e){return{shape:{points:p(e)}}}c.removeAll(),Q(n.regions,function(e){var n=e.name,d=o.get(n),p=s.get(n)||{},h=p.dataIdx,g=p.regionModel;if(!d){d=o.set(n,new WF),c.add(d),h=i?i.indexOfName(n):null,g=i4(r)?r.getRegionModel(n):i?i.getItemModel(h):null;var _=g.get(`silent`,!0);_!=null&&(d.silent=_),s.set(n,{dataIdx:h,regionModel:g})}var v=[],y=[];Q(e.geometries,function(e){if(e.type===`polygon`){var t=[e.exterior].concat(e.interiors||[]);u&&(t=dIe(t,u)),Q(t,function(e){v.push(new YB(m(e)))})}else{var n=e.points;u&&(n=dIe(n,u,!0)),Q(n,function(e){y.push(new XB(m(e)))})}});var b=f(e.getCenter(),l&&l.project);function x(e,o){if(e.length){var s=new nV({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(s),oIe(t,i,a,s,h,g),sIe(r,i,s,n,g,h,b),o&&(iIe(s),Q(s.states,iIe))}}x(v),x(y,!0)}),o.each(function(e,t){var n=s.get(t),a=n.dataIdx,o=n.regionModel;cIe(r,i,e,t,o,a),lIe(r,i,e,t,o),uIe(r,e,t,o)},this)},e.prototype._buildSVG=function(e,t,n,r,i,a){var o=n.map;I2(this._svgGroup,e,0),this._svgResourceChanged(o)&&(this._freeSVG(),this._useSVG(o));var s=this._svgDispatcherMap=Aj(),c=!1;Q(this._svgGraphicRecord.named,function(e){var n=e.name,o=e.svgNodeTagLower,l=e.el,u=i?i.indexOfName(n):null,d=r.getRegionModel(n);eIe.get(o)!=null&&l instanceof ZL&&oIe(t,i,a,l,u,d),l instanceof ZL&&(l.culling=!0);var f=d.get(`silent`,!0);f!=null&&(l.silent=f),l.z2EmphasisLift=0,e.namedFrom||(nIe.get(o)!=null&&sIe(r,i,l,n,d,u,null),cIe(r,i,l,n,d,u),lIe(r,i,l,n,d),tIe.get(o)!=null&&(uIe(r,l,n,d)===`self`&&(c=!0),(s.get(n)||s.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(c,r)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&i4(t)){var n=t.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){qz(e);var t=e.ensureState(`blur`).style||{};t.opacity==null&&n!=null&&(t.opacity=n),e.ensureState(`emphasis`)}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},e.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType===`geoJSON`){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if(n.resourceType===`geoSVG`)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=A2.getGeoResource(e);if(t&&t.type===`geoSVG`){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=A2.getGeoResource(e);t&&t.type===`geoSVG`&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=rIe(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off(`mousedown`),t.off(`click`),e.get(`selectedMode`)&&(t.on(`mousedown`,function(){i._mouseDownFlag=!0}),t.on(`click`,function(e){i._mouseDownFlag&&=!1}))},e}();function oIe(e,t,n,r,i,a){var o=a.getModel(`itemStyle`),s=a.getModel([`emphasis`,`itemStyle`]),c=a.getModel([`blur`,`itemStyle`]),l=a.getModel([`select`,`itemStyle`]),u=r4(o),d=r4(s),f=r4(l),p=r4(c);if(t){var m=t.getItemVisual(i,`style`),h=t.getItemVisual(i,`decal`);n&&m.fill&&(u.fill=m.fill),h&&(u.decal=jq(h,e))}r.setStyle(u),r.style.strokeNoScale=!0,r.ensureState(`emphasis`).style=d,r.ensureState(`select`).style=f,r.ensureState(`blur`).style=p,qz(r)}function sIe(e,t,n,r,i,a,o){var s=t&&isNaN(t.get(t.mapDimension(`value`),a)),c=t&&t.getItemLayout(a);if(i4(e)||s||c&&c.showLabel){var l=i4(e)?r:a,u=void 0;(!t||a>=0)&&(u=e);var d=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;vH(n,yH(i),{labelFetcher:u,labelDataIndex:l,defaultText:r},d);var f=n.getTextContent();if(f&&(rIe(f).ignore=f.ignore,n.textConfig&&o)){var p=n.getBoundingRect().clone();n.textConfig.layoutRect=p,n.textConfig.position=[(o[0]-p.x)/p.width*100+`%`,(o[1]-p.y)/p.height*100+`%`]}n.disableLabelAnimation=!0}else n.removeTextContent(),n.removeTextConfig(),n.disableLabelAnimation=null}function cIe(e,t,n,r,i,a){t?t.setItemGraphicEl(a,n):fz(n).eventData={componentType:`geo`,componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:r,region:i&&i.option||{}}}function lIe(e,t,n,r,i){t||eH({el:n,componentModel:e,itemName:r,itemTooltipOption:i.get(`tooltip`)})}function uIe(e,t,n,r){t.highDownSilentOnTouch=!!e.get(`selectedMode`);var i=r.getModel(`emphasis`),a=i.get(`focus`);return lB(t,a,i.get(`blurScope`),i.get(`disabled`)),i4(e)&&CTe(t,e,n),a}function dIe(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),Q(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}function i4(e){return e.mainType===`geo`}var fIe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.getTooltipPosition=function(e){if(e!=null){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return t.prototype.getInitialData=function(e){for(var t=l0(this,{coordDimensions:[`value`],encodeDefaulter:ij(gW,this)}),n=Aj(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return Q(A2.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var i=e.name,a=n.get(i),o=e.properties&&e.properties.echartsStyle,s;a==null?(s={name:i},r.push(s)):s=t.getRawDataItem(a),o&&UA(s,o)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){if(BU(this).kind!==2)return this.getReferringComponents(`geo`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension(`value`),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=[];return Q(this.seriesGroup.f,function(e){var t=e.originalData.indexOfName(a),n=r.mapDimension(`value`);isNaN(e.originalData.get(n,t))||o.push(e.name)}),GG(`section`,{header:o.join(`, `),noHeader:!o.length,blocks:[GG(`nameValue`,{name:a,value:i})]})},t.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=tq(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke=`none`,t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n},t.prototype.__ownRoamView=function(){return a4(this)?this.coordinateSystem.view:null},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.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:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border,areaColor:$.color.background},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{areaColor:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},nameProperty:`name`},t}(aK);function pIe(e){return e.indexOf(`i`)===0}function a4(e){return o4(e.seriesGroup)===e&&!e.getHostGeoModel()}function o4(e){return e.f[0]}function s4(e,t){var n={};return e.eachRawSeriesByType(`map`,function(r){var i=r.getHostGeoModel(),a=i?`o`+i.id:`i`+r.getMapType(),o=n[a]=n[a]||{f:[],r:[]};!e.isSeriesFiltered(r)&&!t&&o.f.push(r),o.r.push(r)}),n}var mIe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`map`,t}return t.prototype.render=function(e,t,n,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){var a=this._mapDraw;a&&r&&r.type===`geoRoam`&&a.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id?a&&i.add(a.group):a4(e)?(a||=this._mapDraw=new aIe(n),i.add(a.group),a.draw(e,t,n,this,r)):this._clearMapDraw(),e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e)}}},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=this._mapDraw;a4(t)&&r&&r.__updateOnOwnRoam(t)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e){var t=e.originalData,n=this.group;t.each(t.mapDimension(`value`),function(r,i){if(!isNaN(r)){var a=t.getItemLayout(i);if(!(!a||!a.point)){var o=a.point,s=a.offset,c=new NB({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=o4(e.seriesGroup).getData(),u=t.getName(i),d=l.indexOfName(u),f=t.getItemModel(i),p=f.getModel(`label`),m=l.getItemGraphicEl(d);vH(c,yH(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){Gz(c,e)}}n.add(c)}}})},t.type=`map`,t}(fK),hIe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},gIe=[`lng`,`lat`],_Ie=function(e){Z(t,e);function t(t,n,r){var i=e.call(this)||this;i.dimensions=gIe,i.type=`geo`,i._nameCoordMap=Aj(),i.name=t;var a=r.projection,o=A2.load(n,r.nameMap,r.nameProperty),s=A2.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=hIe[s.type];i._clip=r.clip,i.view=new M2(a?!1:l.invertLongitute,qFe(r.ecModel,r.api),i),i.map=n,i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=a;var u;if(a)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(a);u||=f.clone(),u.union(f)}else u=o.boundingRect;return B2(i.view,u.x,u.y,u.width,u.height),i.aspectScale=a?1:yj(r.aspectScale,l.aspectScale),i}return t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if(r.type===`geoJSON`&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(sj(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.view.dataToPoint(e,t,n)}},t.prototype.pointToData=function(e,t,n){var r=this.projection;return r&&(e=r.unproject(e)),e&&this.view.pointToData(e,n)},t.prototype.convertToPixel=function(e,t,n){var r=vIe(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=vIe(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.view.containPoint(e)},t.prototype.getArea=function(e){e||=0;var t=F2(null,this.view);return t.x-=e,t.y-=e,t.width+=2*e,t.height+=2*e,t},t.prototype.shouldClip=function(){return this._clip},t.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},t.prototype.getViewRect=function(){return this.view.getViewRect()},t.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},t}(hF);function vIe(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,nL).models[0]||{}).coordinateSystem:null}function yIe(e,t){var n=this.view,r=e.get(`boundingCoords`);if(r!=null){var i=r[0],a=r[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])){var o=this.projection;if(o){var s=i[0],c=i[1],l=a[0],u=a[1];i=[1/0,1/0],a=[-1/0,-1/0];var d=function(e,t,n,r){for(var s=n-e,c=r-t,l=0;l<=100;l++){var u=l/100,d=o.project([e+s*u,t+c*u]);nM(i,i,d),rM(a,a,d)}};d(s,c,l,c),d(l,c,l,u),d(l,u,s,u),d(s,u,l,c)}B2(n,i[0],i[1],a[0]-i[0],a[1]-i[1])}}var f=n.getBoundingRect(),p=e.get(`layoutCenter`),m=e.get(`layoutSize`),h=$U(e,t).refContainer,g=f.width/f.height*this.aspectScale,_=!1,v,y;p&&m&&(v=[dI(p[0],h.width)+h.x,dI(p[1],h.height)+h.y],y=dI(m,Math.min(h.width,h.height)),!isNaN(v[0])&&!isNaN(v[1])&&!isNaN(y)&&(_=!0));var b;if(_)b={},g>1?(b.width=y,b.height=y/g):(b.height=y,b.width=y*g),b.y=v[1]-b.height/2,b.x=v[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,b=XU(x,h),b=ZU(e,b,g)}V2(n,b.x,b.y,b.width,b.height),z2(n,e)}function bIe(e,t){Q(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var xIe=new(function(){function e(){this.dimensions=gIe}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`),clip:e.getShallow(`clip`,!0)}}return e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new _Ie(o+a,o,GA({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));n.push(s),i.coordinateSystem=s,s.model=i,s.resize=yIe,s.resize(i,t)}),e.eachSeries(function(e){VU({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,nL).models[0];return t&&t.coordinateSystem},allowNotFound:!0})}),Q(s4(e,!0),function(i,a){if(pIe(a)){var o=i.r[0],s=[];Q(i.r,function(e){s.push(e.get(`nameMap`)),e.seriesGroup=null});var c=a.slice(1),l=new _Ie(c,c,GA({nameMap:WA(s),api:t,ecModel:e},r(o))),u;Q(i.r,function(e){u=yj(u,e.get(`scaleLimit`))}),n.push(l),l.resize=yIe,l.resize(o,t),Q(i.r,function(e){e.coordinateSystem=l,bIe(l,e)})}}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=Aj(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return Q(A2.load(t,n,r).regions,function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&UA(n,r)}),i},e}()),SIe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n);var r=A2.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=e.defaultItemStyleColor||$.color.backgroundTint)}UI(e,`label`,[`show`])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=xIe.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=$A(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new FH(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},Aj()),t.selectedMap||=n},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new FH(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r=t===`normal`?n.get([`label`,`formatter`]):n.get([`emphasis`,`label`,`formatter`]),i={name:e};if(oj(r))return i.status=t,r(i);if(sj(r))return r.replace(`{a}`,e??``)},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){n!==`multiple`&&(t.selectedMap=null);var r=t.selectedMap||={};r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?`unSelect`:`select`](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},t.prototype.__ownRoamView=function(){return this.coordinateSystem.view},t.type=`geo`,t.layoutMode=`box`,t.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:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},regions:[]},t}(aW),CIe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get(`show`)){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||=new aIe(n);var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on(`click`,this._handleRegionClick,this),i.group.silent=e.get(`silent`),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=this._mapDraw;r&&r.__updateOnOwnRoam(t)},t.prototype._handleRegionClick=function(e){var t;GK(e.target,function(e){return(t=fz(e).eventData)!=null},!0),t&&this._api.dispatchAction({type:`geoToggleSelect`,geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=fz(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type=`geo`,t}(lK);function wIe(e,t,n){A2.registerMap(e,t,n)}function TIe(e){e.registerCoordinateSystem(`geo`,xIe),e.registerComponentModel(SIe),e.registerComponentView(CIe),e.registerImpl(`registerMap`,wIe),e.registerImpl(`getMap`,function(e){return A2.getMapForUser(e)});function t(t,n){n.update=`geo:updateSelectStatus`,e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:`geo`,query:e},function(n){n[t](e.name);var a=n.coordinateSystem;Q(a.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var o=[];Q(r,function(e,t){r[t]&&o.push(t)}),i.push({geoIndex:n.componentIndex,name:o})}),{selected:r,allSelected:i,name:e.name}})}t(`toggleSelected`,{type:`geoToggleSelect`,event:`geoselectchanged`}),t(`select`,{type:`geoSelect`,event:`geoselected`}),t(`unSelect`,{type:`geoUnSelect`,event:`geounselected`}),e.registerAction({type:`geoRoam`,event:`geoRoam`,update:`updateTransform`},function(e,t,n){var r=e.componentType||(e.geoId!=null||e.geoName!=null||e.geoIndex!=null?`geo`:`series`),i=r===mz;if(!(r!==`geo`&&!i)){var a=i?`map`:null;t.eachComponent(iL(e,r,a),function(r){i&&!a4(r)||(BFe(e,r,i?r.seriesGroup.r:null),VFe(e,r,t,n))})}})}var EIe=xL(`map`,DIe);function DIe(e){Q(s4(e),function(t,n){if(!(!o4(t)||!pIe(n))){var r={};Q(t.f,function(t){var n=t.coordinateSystem,i=t.originalData;t.get(`showLegendSymbol`)&&e.getComponent(`legend`)&&i.each(i.mapDimension(`value`),function(e,t){var a=i.getName(t),o=n.getRegion(a);if(!(!o||isNaN(e))){var s=r[a]||0,c=n.dataToPoint(o.getCenter());r[a]=s+1,i.setItemLayout(t,{point:c,offset:s})}})});var i=o4(t).getData();i.each(function(e){var t=i.getName(e),n=i.getItemLayout(e)||{};n.showLabel=!r[t],i.setItemLayout(e,n)})}})}function OIe(e,t){var n={};return Q(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u<l;u++)s=Math.min(s,n[a][u]),c=Math.max(c,n[a][u]),o+=n[a][u];var d=t===`min`?s:t===`max`?c:t===`average`?o/l:o;return l===0?NaN:d})}var kIe=xL(`map`,AIe);function AIe(e){Q(s4(e),function(e){var t=o4(e);if(t){var n=OIe(QA(e.f,function(e){return e.getData()}),t.get(`mapValueCalculation`));Q(e.f,function(t){t.seriesGroup=e,t.originalData=t.getData(),t.setData(n.cloneShallow())})}})}function jIe(e){ZJ(TIe),e.registerChartView(mIe),e.registerSeriesModel(fIe),e.registerLayout(EIe),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,kIe),UK(`map`,e.registerAction)}function MIe(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function NIe(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){IIe(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=LIe(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function PIe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function FIe(e){return arguments.length?e:BIe}function c4(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function IIe(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function LIe(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=l4(s),a=u4(a),s&&a;){i=l4(i),o=u4(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(zIe(RIe(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!l4(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!u4(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function l4(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function u4(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function RIe(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function zIe(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function BIe(e,t){return e.parentNode===t.parentNode?1:2}var d4=$I();function VIe(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,JIe(t,n,e),Q(n,function(n){Q(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,ij(HIe,e))})}),t.wrapMethod(`cloneShallow`,ij(WIe,e)),Q(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,ij(UIe,e))}),Cj(n[t.dataType]===t)}function HIe(e,t){if(qIe(this)){var n=GA({},d4(this).datas);n[this.dataType]=t,JIe(t,n,e)}else f4(t,this.dataType,d4(this).mainData,e);return t}function UIe(e,t){return e.struct&&e.struct.update(),t}function WIe(e,t){return Q(d4(t).datas,function(n,r){n!==t&&f4(n.cloneShallow(),r,t,e)}),t}function GIe(e){var t=d4(this).mainData;return e==null||t==null?t:d4(t).datas[e]}function KIe(){var e=d4(this).mainData;return e==null?[{data:e}]:QA(nj(d4(e).datas),function(t){return{type:t,data:d4(e).datas[t]}})}function qIe(e){return d4(e).mainData===e}function JIe(e,t,n){d4(e).datas={},Q(t,function(t,r){f4(t,r,e,n)})}function f4(e,t,n,r){d4(n).datas[t]=e,d4(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=GIe,e.getLinkedDataAll=KIe}var YIe=function(){function e(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 e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){oj(e)&&(n=t,t=e,e=null),e||={},sj(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&o<i.length;o++)i[o].eachNode(e,t,n);r===`postorder`&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||`value`),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.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},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),p4=function(){function e(e){this.type=`tree`,this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(var n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;s(t);function s(e,t){var n=e.value;o=Math.max(o,aj(n)?n.length:1),a.push(e);var r=new YIe(YI(e.name,``),i);t?XIe(r,t):i.root=r,i._nodes.push(r);var c=e.children;if(c)for(var l=0;l<c.length;l++)s(c[l],r)}i.root.updateDepthAndHeight(0);var c=bY(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new yY(c,n);return l.initData(a),r&&r(l),VIe({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function XIe(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}function m4(e,t,n){if(e&&JA(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(sj(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function ZIe(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function h4(e,t){return JA(ZIe(e),t)>=0}function g4(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var _4=`tree`,QIe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new FH(e.leaves||{},this,this.ecModel),r=p4.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return GG(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=g4(r,this),n.collapsed=!r.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+_4,t.layoutMode=`box`,t.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:$.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(aK),$Ie=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),eLe=function(e){Z(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new $Ie},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=dI(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;f<r-1;f++){var p=n[f];e.moveTo(p[0],p[1]),d[c]=p[c],e.lineTo(d[0],d[1])}},t}(WR),tLe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=_4,t._mainGroup=new WF,t}return t.prototype.init=function(e,t){this._controller=new f2(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;e.get(`layout`)===`radial`?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),Q2(e,n,this._controller,ZFe(this.group),null);var o=this._data;r.diff(o).add(function(t){nLe(r,t)&&rLe(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);if(!nLe(r,t)){i&&sLe(o,n,i,a,e);return}rLe(r,t,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&sLe(o,t,n,a,e)}).execute(),this._updateNodeAndLinkScale(e),e.get(`expandAndCollapse`)===!0&&r.eachItemGraphicEl(function(t,r){t.off(`click`).on(`click`,function(){n.dispatchAction({type:`treeExpandAndCollapse`,seriesId:e.id,dataIndex:r})})}),this._data=r,this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){K2(this.group,2,t.coordinateSystem,null),$Fe(e)&&this._updateNodeAndLinkScale(t)},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each(function(e){var t=n.getItemLayout(e);t&&!isNaN(t.x)&&!isNaN(t.y)&&r.push([+t.x,+t.y])});var i=[],a=[];cR(r,i,a);var o=this._min,s=this._max;a[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var c=e.coordinateSystem=t4(e,t,i[0],i[1],a[0]-i[0],a[1]-i[1]);K2(this.group,2,c,this._firstRender?null:e),this._min=i,this._max=a},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=XFe(e.coordinateSystem,e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=_4,t}(fK);function nLe(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function rLe(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),c=o.getVisual(`style`).fill,l=o.isExpand===!1&&o.children.length!==0?c:$.color.neutral00,u=e.tree.root,d=o.parentNode===u?o:o.parentNode||o,f=e.getItemGraphicEl(d.dataIndex),p=d.getLayout(),m=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,h=o.getLayout();a?(n=new _$(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.x=m.x,n.y=m.y):n.updateData(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=h.rawX,n.__radialRawY=h.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,vV(n,{x:h.x,y:h.y},i);var g=n.getSymbolPath();if(i.get(`layout`)===`radial`){var _=u.children[0],v=_.getLayout(),y=_.children.length,b=void 0,x=void 0;if(h.x===v.x&&o.isExpand===!0&&_.children.length){var S={x:(_.children[0].getLayout().x+_.children[y-1].getLayout().x)/2,y:(_.children[0].getLayout().y+_.children[y-1].getLayout().y)/2};b=Math.atan2(S.y-v.y,S.x-v.x),b<0&&(b=Math.PI*2+b),x=S.x<v.x,x&&(b-=Math.PI)}else b=Math.atan2(h.y-v.y,h.x-v.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=h.x<v.x,x&&(b-=Math.PI)):(x=h.x>v.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=Math.PI/180*T,D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?jj(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(fz(n).focus=k),iLe(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||Gz(n.__edge,t)}})}function iLe(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new eV({shape:v4(u,d,f,i,i)}),vV(h,{shape:v4(u,d,f,a,o)},e));else if(l===`polyline`&&u===`orthogonal`&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;v<g.length;v++){var y=g[v].getLayout();_.push([y.x,y.y])}h||=r.__edge=new eLe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:p}}),vV(h,{shape:{parentPoint:[o.x,o.y],childPoints:_}},e)}h&&!(l===`polyline`&&!t.isExpand)&&(h.useStyle(qA({strokeNoScale:!0,fill:null},m)),fB(h,c,`lineStyle`),qz(h),s.add(h))}function aLe(e,t,n,r,i){var a=t.tree.root,o=oLe(a,e),s=o.source,c=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(s.dataIndex).__edge,d=l.__edge||(s.isExpand===!1||s.children.length===1?u:void 0),f=r.get(`edgeShape`),p=r.get(`layout`),m=r.get(`orient`),h=r.get([`lineStyle`,`curveness`]);d&&(f===`curve`?xV(d,{shape:v4(p,m,h,c,c),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):f===`polyline`&&r.get(`layout`)===`orthogonal`&&xV(d,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function oLe(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function sLe(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=oLe(o,a).sourceLayout,c={duration:i.get(`animationDurationUpdate`),easing:i.get(`animationEasingUpdate`)};xV(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:c}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:c}),Q(a.children,function(t){aLe(t,e,r,i,c)}),aLe(a,e,r,i,c)}function v4(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e===`radial`){l=r.rawX,d=r.rawY,u=i.rawX,f=i.rawY;var p=c4(l,d),m=c4(l,d+(f-d)*n),h=c4(u,f+(d-f)*n),g=c4(u,f);return{x1:p.x||0,y1:p.y||0,x2:g.x||0,y2:g.y||0,cpx1:m.x||0,cpy1:m.y||0,cpx2:h.x||0,cpy2:h.y||0}}else l=r.x,d=r.y,u=i.x,f=i.y,(t===`LR`||t===`RL`)&&(a=l+(u-l)*n,o=d,s=u+(l-u)*n,c=f),(t===`TB`||t===`BT`)&&(a=l,o=d+(f-d)*n,s=u,c=f+(d-f)*n);return{x1:l,y1:d,x2:u,y2:f,cpx1:a,cpy1:o,cpx2:s,cpy2:c}}function cLe(e,t,n){for(var r=[e],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;a=i.pop();)t(a,n)}function y4(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var a=i.length-1;a>=0;a--)n.push(i[a])}}function lLe(e,t){e.eachSeriesByType(`tree`,function(e){uLe(e,t)})}function uLe(e,t){var n=$U(e,t).refContainer,r=XU(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get(`layout`),a=0,o=0,s=null;i===`radial`?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=FIe(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=FIe());var c=e.getData().tree.root,l=c.children[0];if(l){MIe(c),cLe(l,NIe,s),c.hierNode.modifier=-l.hierNode.prelim,y4(l,PIe);var u=l,d=l,f=l;y4(l,function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>d.getLayout().x&&(d=e),e.depth>f.depth&&(f=e)});var p=u===d?1:s(u,d)/2,m=p-u.getLayout().x,h=0,g=0,_=0,v=0;if(i===`radial`)h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),y4(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=c4(_,v);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:v},!0)});else{var y=e.getOrient();y===`RL`||y===`LR`?(g=o/(d.getLayout().x+p+m),h=a/(f.depth-1||1),y4(l,function(e){v=(e.getLayout().x+m)*g,_=y===`LR`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:_,y:v},!0)})):(y===`TB`||y===`BT`)&&(h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),y4(l,function(e){_=(e.getLayout().x+m)*h,v=y===`TB`?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:_,y:v},!0)}))}}}function dLe(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:mz,subType:_4,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e4(e,mz,_4)}var fLe=xL(_4,pLe);function pLe(e){e.eachSeriesByType(_4,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();GA(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function mLe(e){e.registerChartView(tLe),e.registerSeriesModel(QIe),e.registerLayout(lLe),e.registerVisual(fLe),dLe(e)}var hLe=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function gLe(e){for(var t=0;t<hLe.length;t++)e.registerAction({type:hLe[t],update:`updateView`},Fj);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=m4(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=h4(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function _Le(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=CW(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var vLe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};yLe(n);var r=e.levels||[],i=new FH({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=bLe(r,t);var a=QA(r||[],function(e){return new FH(e,i,t)},this),o=p4.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return GG(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=g4(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},GA(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=Aj(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_Le(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:$.size.l,top:$.size.xxxl,right:$.size.l,bottom:$.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:$.size.m,emptyItemWidth:25,itemStyle:{color:$.color.backgroundShade,textStyle:{color:$.color.secondary}},emphasis:{itemStyle:{color:$.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:$.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:$.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:[]},t}(aK);function yLe(e){var t=0;Q(e.children,function(e){yLe(e);var n=e.value;aj(n)&&(n=n[0]),t+=n});var n=e.value;aj(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),aj(e.value)?e.value[0]=n:e.value=n}function bLe(e,t){var n=HI(t.get(`color`)),r=HI(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;Q(e,function(e){var t=new FH(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var xLe=8,SLe=8,b4=5,CLe=function(){function e(e){this.group=new WF,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=$U(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=XU(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),eW(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=YI(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+xLe*2,t.emptyItemWidth);t.totalWidth+=o+SLe,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new YB({shape:{points:wLe(c,0,_,u,m===f.length-1,m===0)},style:qA(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new tz({style:bH(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:ij(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=bH(o,{text:v}),y.ensureState(`emphasis`).style=p,lB(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),TLe(y,e,g),c+=_+SLe}},e.prototype.remove=function(){this.group.removeAll()},e}();function wLe(e,t,n,r,i,a){var o=[[i?e:e-b4,t],[e+n,t],[e+n,t+r],[i?e:e-b4,t+r]];return!a&&o.splice(2,0,[e+n+b4,t+r/2]),!i&&o.push([e,t+r/2]),o}function TLe(e,t,n){fz(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&g4(n,t)}}var ELe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.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())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function DLe(){return new ELe}var x4=Math.max,S4=Math.min,C4=Q,OLe=[`itemStyle`,`borderWidth`],kLe=[`itemStyle`,`gapWidth`],ALe=[`upperLabel`,`show`],jLe=[`upperLabel`,`height`],MLe={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=$U(e,n).refContainer,o=XU(e.getBoxLayoutParams(),a),s=r&&r.type,c=m4(r,[`treemapZoomToNode`,`treemapRootToNode`],e),l=s===`treemapRender`||s===`treemapMove`?r.rootRect:null,u=e.getViewRoot(),d=ZIe(u);if(s!==`treemapMove`){var f=!1,p=s===`treemapZoomToNode`?(f=!0,BLe(e,c,u,o)):l?(f=!0,GA({},l)):GA({},o);if(f){var m=WLe(o,p);m=GLe(m,e),p.width=o.width*m,p.height=o.height*m}var h=i.sort;h&&h!==`asc`&&h!==`desc`&&(h=`desc`);var g={squareRatio:i.squareRatio,sort:h,leafDepth:i.leafDepth};u.hostTree.clearLayouts();var _={x:0,y:0,width:p.width,height:p.height,area:p.width*p.height};u.setLayout(_),NLe(u,g,!1,0),_=u.getLayout(),C4(d,function(e,t){var n=(d[t+1]||u).getValue();e.setLayout(GA({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))})}var v=e.getData().tree.root;v.setLayout(VLe(o,l,c),!0),e.setLayoutInfo(o),HLe(v,new GM(-o.x,-o.y,n.getWidth(),n.getHeight()),d,u,0)}};function NLe(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get(OLe),l=s.get(kLe)/2,u=ULe(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=x4(i-2*f,0),a=x4(a-f-p,0);var m=i*a,h=PLe(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=S4(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b<x;){var S=h[b];y.push(S),y.area+=S.getLayout().area;var C=RLe(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,zLe(y,_,g,l,!1),_=S4(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&zLe(y,_,g,l,!0),!n){var w=s.get(`childrenVisibleMin`);w!=null&&m<w&&(n=!0)}for(var b=0,x=h.length;b<x;b++)NLe(h[b],t,n,r+1)}}}function PLe(e,t,n,r,i,a){var o=e.children||[],s=r.sort;s!==`asc`&&s!==`desc`&&(s=null);var c=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!c)return e.viewChildren=[];o=ej(o,function(e){return!e.isRemoved()}),ILe(o,s);var l=LLe(t,o,s);if(l.sum===0||(l.sum=FLe(t,n,l.sum,s,o),l.sum===0))return e.viewChildren=[];for(var u=0,d=o.length;u<d;u++){var f=o[u].getValue()/l.sum*n;o[u].setLayout({area:f})}return c&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:l.dataExtent},!0),o}function FLe(e,t,n,r,i){if(!r)return n;for(var a=e.get(`visibleMin`),o=i.length,s=o,c=o-1;c>=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*t<a&&(s=c,n-=l)}return r===`asc`?i.splice(0,o-s):i.splice(s,o-s),n}function ILe(e,t){return t&&e.sort(function(e,n){var r=t===`asc`?e.getValue()-n.getValue():n.getValue()-e.getValue();return r===0?t===`asc`?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}),e}function LLe(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o=e.get(`visualDimension`),s;return!t||!t.length?s=[NaN,NaN]:o===`value`&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n===`asc`&&s.reverse()):(s=uL(),C4(t,function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function RLe(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var c=e.area*e.area,l=t*t*n;return c?x4(l*r/c,c/(l*i)):1/0}function zLe(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d<f;d++){var p=e[d],m={},h=u?p.getLayout().area/u:0,g=m[c[o]]=x4(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=x4(v-2*r,0);m[s[o]]=n[s[o]]+S4(r,g/2),m[s[a]]=l+S4(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function BLe(e,t,n,r){var i=(t||{}).node,a=r.width,o=r.height,s=GA({},r);if(!i||i===n)return s;for(var c,l=a*o,u=l*e.option.zoomToNodeRatio;c=i.parentNode;){for(var d=0,f=c.children,p=0,m=f.length;p<m;p++)d+=f[p].getValue();var h=i.getValue();if(h===0)return s;u*=d/h;var g=c.getModel(),_=g.get(OLe),v=Math.max(_,ULe(g));u+=4*_*_+(3*_+v)*u**.5,u>xI&&(u=xI),i=c}u<l&&(u=l);var y=(u/l)**.5;return{width:a*y,height:o*y}}function VLe(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var c=s.getLayout();o[0]+=c.x,o[1]+=c.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function HLe(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var c=new GM(t.x-a.x,t.y-a.y,t.width,t.height);C4(e.viewChildren||[],function(e){HLe(e,c,n,r,i+1)})}}function ULe(e){return e.get(ALe)?e.get(jLe):0}function WLe(e,t){return t.width/e.width||t.height/e.height||1}function GLe(e,t){return Z2(e,t.get(`scaleLimit`,!0))}var w4=WF,KLe=ZR,qLe=3,JLe=`label`,YLe=`upperLabel`,XLe=100,ZLe=20,QLe=30,T4=kL([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),$Le=function(e){var t=T4(e);return t.stroke=t.fill=t.lineWidth=null,t},E4=$I(),eRe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=D4(),n}return t.prototype.render=function(e,t,n,r){if(!(JA(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=m4(r,[`treemapZoomToNode`,`treemapRootToNode`],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,c=this._storage,l=a===`treemapRootToNode`&&i&&c?{rootNodeGroup:c.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(o),d=e.get(`animation`),f=this._doRender(u,e,l);d&&!s&&(!a||a===`treemapZoomToNode`||a===`treemapRootToNode`)?this._doAnimation(u,f,e,l):f.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new w4,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=D4(),o=D4(),s=this._storage,c=[];function l(e,r,i,l){return tRe(t,o,s,n,a,c,e,r,i,l)}d(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=f(s);return this._oldTree=r,this._storage=o,{lastsForAnimation:a,willDeleteEls:u,renderFinally:p};function d(e,t,n,r,i){r?(t=e,Q(e,function(e,t){!e.isRemoved()&&o(t,t)})):new eY(t,e,a,a).add(o).update(o).remove(ij(o,null)).execute();function a(e){return e.getId()}function o(a,o){var s=a==null?null:e[a],c=o==null?null:t[o],u=l(s,c,n,i);u&&d(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function f(e){var t=D4();return e&&Q(e,function(e,n){var r=t[n];Q(e,function(e){e&&(r.push(e),E4(e).willDelete=!0)})}),t}function p(){Q(u,function(e){Q(e,function(e){e.parent&&e.parent.remove(e)})}),Q(c,function(e){e.invisible=!0,e.dirty()})}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get(`animationDurationUpdate`),a=n.get(`animationEasing`),o=(oj(i)?0:i)||0,s=(oj(a)?null:a)||`cubicOut`,c=DLe();Q(t.willDeleteEls,function(e,t){Q(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=E4(i);if(r&&r.direction===`drillDown`)a=i===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;l.willDelete||(u=l.nodeWidth/2,d=l.nodeHeight/2),a=t===`nodeGroup`?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}a&&c.add(e,a,o,0,s)}})}),Q(this._storage,function(e,n){Q(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof WF?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=GA({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle(`opacity`,0),a.style={opacity:1}):e.style.opacity!==1&&(a.style={opacity:1})),c.add(e,a,o,0,s))})},this),this._state=`animating`,c.finished(rj(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this.seriesModel,r=this._controller;r||(r=this._controller=new f2(e.getZr()),r.on(`pan`,rj(this._onPan,this)),r.on(`zoom`,rj(this._onZoom,this))),r.enable(n.get(`roam`),{api:e,zInfo:{component:n},triggerInfo:{roamTrigger:n.get(`roamTrigger`),isInSelf:function(e,n,r){var i=t._containerGroup;return i?i.getBoundingRect().contain(n-i.x,r-i.y):!1}}})},t.prototype._clearController=function(){var e=this._controller;e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>qLe||Math.abs(e.dy)>qLe)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale,i=this.seriesModel;if(this._state!==`animating`){var a=i.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new GM(o.x,o.y,o.width,o.height),c=i.layoutInfo,l=WLe(c,o),u=l*r;u=GLe(u,i);var d=u/l;t-=c.x,n-=c.y;var f=CM();DM(f,f,[-t,-n]),kM(f,f,[d,d]),DM(f,f,[t,n]),s.applyTransform(f),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&PU(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new CLe(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(h4(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=D4(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(fK);function D4(){return{nodeGroup:[],background:[],content:[]}}function tRe(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=V(`nodeGroup`,w4);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),E4(D).nodeWidth=p,E4(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=V(`background`,KLe,l,ZLe);O&&I(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),M=k.get(`disabled`),N=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)mB(D)&&pB(D,!1),O&&(pB(O,!M),d.setItemGraphicEl(o.dataIndex,O),uB(O,N,j));else{var P=V(`content`,KLe,l,QLe);P&&L(D,P),O.disableMorphing=!0,O&&mB(O)&&pB(O,!1),pB(D,!M),d.setItemGraphicEl(o.dataIndex,D);var F=f.getShallow(`cursor`);F&&P.attr(`cursor`,F),uB(D,N,j)}return D;function I(t,n,r){var i=fz(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)R(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=$Le(S);c.fill=s;var l=T4(C);l.fill=C.get(`borderColor`);var u=T4(w);u.fill=w.get(`borderColor`);var d=T4(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;z(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,qz(n)}t.add(n)}function L(t,n){var r=fz(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:E}),g)R(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=$Le(S);l.fill=c,l.decal=s.decal;var u=T4(C),d=T4(w),f=T4(T);z(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,qz(n)}t.add(n)}function R(e){!e.invisible&&a.push(e)}function z(t,n,r,i){var a=f.getModel(i?YLe:JLe),s=YI(f.get(`name`),null),c=a.getShallow(`show`);vH(t,yH(f,i?YLe:JLe),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=Sj(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,B(d,i,u);var m=l.getState(`emphasis`);B(m?m.style:null,i,u)}}function B(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function V(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,H(c,s)):g||(s=new r,s instanceof ZL&&(s.z2=nRe(a,o)),U(c,s)),t[e][_]=s}function H(e,t){var n=e[_]={};t instanceof w4?(n.oldX=t.x,n.oldY=t.y):n.oldShape=GA({},t.shape)}function U(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof WF;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function nRe(e,t){return e*XLe+t}var O4=Q,rRe=uj,k4=-1,A4=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=HA(t);this.type=r,this.mappingMethod=n,this._normalizeData=cRe[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(j4(i),iRe(i)):n===`category`?i.categories?aRe(i):j4(i,!0):(Cj(n!==`linear`||i.dataExtent),j4(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return rj(this._normalizeData,this)},e.listVisualTypes=function(){return nj(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){uj(e)?Q(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=aj(t)?[]:uj(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&O4(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(aj(e))e=e.slice();else if(rRe(e)){var t=[];O4(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||sj(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(R4(u[1],e,l[1]))return a}else if(l[1]===1/0){if(R4(u[0],l[0],e))return a}else if(R4(u[0],l[0],e)&&R4(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:N4(`color`),getColorMapper:function(){var e=this.option;return rj(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),P4.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=iP(t,e.parsedVisual,r),i?r:cP(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return cP(iP(e,this.option.parsedVisual),`rgba`)},category:P4,piecewise:function(e,t){var n=L4.call(this,t);return n??=cP(iP(e,this.option.parsedVisual),`rgba`),n},fixed:F4}},colorHue:M4(function(e,t){return oP(e,t)}),colorSaturation:M4(function(e,t){return oP(e,null,t)}),colorLightness:M4(function(e,t){return oP(e,null,null,t)}),colorAlpha:M4(function(e,t){return sP(e,t)}),decal:{applyVisual:N4(`decal`),_normalizedToVisual:{linear:null,category:P4,piecewise:null,fixed:null}},opacity:{applyVisual:N4(`opacity`),_normalizedToVisual:I4([0,1])},liftZ:{applyVisual:N4(`liftZ`),_normalizedToVisual:{linear:F4,category:F4,piecewise:F4,fixed:F4}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:oRe,category:P4,piecewise:function(e,t){var n=L4.call(this,t);return n??=oRe.call(this,e),n},fixed:F4}},symbolSize:{applyVisual:N4(`symbolSize`),_normalizedToVisual:I4([0,1])}},e}();function iRe(e){var t=e.pieceList;e.hasSpecialVisual=!1,Q(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function aRe(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(O4(t,function(e,t){n[e]=t}),!aj(r)){var i=[];uj(r)?O4(r,function(e,t){var r=n[t];i[r??k4]=e}):i[k4]=r,r=sRe(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function j4(e,t){var n=e.visual,r=[];uj(n)?O4(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),sRe(e,r)}function M4(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:I4([0,1])}}function oRe(e){var t=this.option.visual;return t[Math.round(uI(e,[0,1],[0,t.length-1],!0))]||{}}function N4(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function P4(e){var t=this.option.visual;return t[this.option.loop&&e!==k4?e%t.length:e]}function F4(){return this.option.visual[0]}function I4(e){return{linear:function(t){return uI(t,e,this.option.visual,!0)},category:P4,piecewise:function(t,n){var r=L4.call(this,n);return r??=uI(t,e,this.option.visual,!0),r},fixed:F4}}function L4(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[A4.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function sRe(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=QA(t,function(e){return tP(e)||[0,0,0,1]})),t}var cRe={linear:function(e){return uI(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=A4.findPieceIndex(e,t,!0);if(n!=null)return uI(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??k4},fixed:Fj};function R4(e,t,n){return e?t<=n:t<n}var lRe=`itemStyle`,uRe=$I(),dRe={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||fRe(t,{},e.getViewRoot().getAncestors(),e)}};function fRe(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(lRe),c=pRe(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=mRe(c),u=hRe(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=mRe(c),l.fill=f;else{var m=gRe(e,i,a,s,c,p);Q(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&fRe(e,_Re(i,c,e,t,m,r),n,r)})}}}function pRe(e,t,n){var r=GA({},t),i=n.designatedVisualItemStyle;return Q([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function mRe(e){var t=z4(e,`color`);if(t){var n=z4(e,`colorAlpha`),r=z4(e,`colorSaturation`);return r&&(t=oP(t,null,null,r)),n&&(t=sP(t,n)),t}}function hRe(e,t){return t==null?null:oP(t,null,null,e)}function z4(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function gRe(e,t,n,r,i,a){if(!(!a||!a.length)){var o=B4(t,`color`)||i.color!=null&&i.color!==`none`&&(B4(t,`colorAlpha`)||B4(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&s<l[0]&&(l[0]=s),c!=null&&c>l[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new A4(d);return uRe(f).drColorMappingBy=u,f}}}function B4(e,t){var n=e.get(t);return aj(n)&&n.length?{name:t,range:n}:null}function _Re(e,t,n,r,i,a){var o=GA({},t);if(i){var s=i.type,c=s===`color`&&uRe(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}function vRe(e){e.registerSeriesModel(vLe),e.registerChartView(eRe),e.registerVisual(dRe),e.registerLayout(MLe),gLe(e)}function V4(e){return`_EC_`+e}var yRe=function(){function e(e){this.type=`graph`,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=e==null?``+t:``+e;var n=this._nodesMap;if(!n[V4(e)]){var r=new H4(e,t);return r.hostGraph=this,this.nodes.push(r),n[V4(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[V4(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(lj(e)&&(e=this.nodes[e]),lj(t)&&(t=this.nodes[t]),e instanceof H4||(e=r[V4(e)]),t instanceof H4||(t=r[V4(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new bRe(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof H4&&(e=e.id),t instanceof H4&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+`-`+t]:n[e+`-`+t]||n[t+`-`+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof H4||(t=this._nodesMap[V4(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;)for(var s=o.shift(),c=s[i],a=0;a<c.length;a++){var l=c[a],u=l.node1===s?l.node2:l.node1;if(!u.__visited){if(e.call(r,u,s))return;o.push(u),u.__visited=!0}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(var i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),H4=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??``,this.dataIndex=t??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.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},e.prototype.getTrajectoryDataIndices=function(){for(var e=Aj(),t=Aj(),n=0,r=this.edges.length;n<r;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var c=a[s];s++,t.set(c.dataIndex,!0);for(var l=c.inEdges,u=0,d=l.length,f=void 0,p=void 0;u<d;u++)f=l[u],p=f.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s<o.length;){var m=o[s];s++,t.set(m.dataIndex,!0);for(var h=m.outEdges,u=0,g=h.length,_=void 0,v=void 0;u<g;u++)_=h[u],v=_.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),bRe=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=Aj(),t=Aj();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=a.inEdges,s=0,c=o.length,l=void 0,u=void 0;s<c;s++)l=a.inEdges[s],u=l.dataIndex,u>=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i<r.length;){var d=r[i];i++,t.set(d.dataIndex,!0);for(var f=d.outEdges,s=0,c=f.length,p=void 0,m=void 0;s<c;s++)p=d.outEdges[s],m=p.dataIndex,m>=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function xRe(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}XA(H4,xRe(`hostGraph`,`data`)),XA(bRe,xRe(`hostGraph`,`edgeData`));function U4(e,t,n,r,i){for(var a=new yRe(r),o=0;o<e.length;o++)a.addNode(vj(e[o].id,e[o].name,o),o);for(var s=[],c=[],l=0,o=0;o<t.length;o++){var u=t[o],d=u.source,f=u.target;a.addEdge(d,f,l)&&(c.push(u),s.push(vj(YI(u.id,null),d+` > `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=TY(e,n);else{var h=LU.get(p),g=h&&h.dimensions||[];JA(g,`value`)<0&&g.concat([`value`]);var _=bY(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new yY(_,n),m.initData(e)}var v=new yY([`value`],n);return v.initData(c,s),i&&i(m,v),VIe({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var W4=`-->`,G4=function(e){return e.get(`autoCurveness`)||null},SRe=function(e,t){var n=G4(e),r=20,i=[];if(lj(n))r=n;else if(aj(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},K4=function(e,t,n){var r=[e.id,e.dataIndex].join(`.`),i=[t.id,t.dataIndex].join(`.`);return[n.uid,r,i].join(W4)},CRe=function(e){var t=e.split(W4);return[t[0],t[2],t[1]].join(W4)},wRe=function(e,t){var n=K4(e.node1,e.node2,t);return t.__edgeMap[n]},TRe=function(e,t){return q4(K4(e.node1,e.node2,t),t)+q4(K4(e.node2,e.node1,t),t)},q4=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function ERe(e){G4(e)&&(e.__curvenessList=[],e.__edgeMap={},SRe(e))}function DRe(e,t,n,r){if(G4(n)){var i=K4(e,t,n),a=n.__edgeMap,o=a[CRe(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function J4(e,t,n,r){var i=G4(t),a=aj(i);if(!i)return null;var o=wRe(e,t);if(!o)return null;for(var s=-1,c=0;c<o.length;c++)if(o[c]===n){s=c;break}var l=TRe(e,t);SRe(t,l),e.lineStyle=e.lineStyle||{};var u=K4(e.node1,e.node2,t),d=t.__curvenessList,f=a||l%2?0:1;if(o.isForward)return d[f+s];var p=q4(CRe(u),t),m=d[s+p+f];return r?a?i&&i[0]===0?(p+f)%2?m:-m:((p%2?0:1)+f)%2?m:-m:(p+f)%2?m:-m:d[s+p+f]}var Y4=`graph`,ORe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new u0(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),UI(t,`edgeLabel`,[`show`])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){ERe(this);var a=U4(r,n,this,!0,o);return Q(a.edges,function(e){DRe(e.node1,e.node2,this,e.dataIndex)},this),a.data}function o(e,t){e.wrapMethod(`getItemModel`,function(e){var t=i._categoriesModels[e.getShallow(`category`)];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=FH.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=a,e.getModel=r,e});function a(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if(n===`edge`){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),GG(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return tK({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=QA(this.option.categories||[],function(e){return e.value==null?GA({value:0},e):e}),t=new yY([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return RFe(e)&&e},t.type=`series.`+Y4,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.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:$.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(aK);function X4(e){return e instanceof Array||(e=[e,e]),e}var kRe=xL(Y4,ARe);function ARe(e){e.eachSeriesByType(Y4,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=X4(e.get(`edgeSymbol`)),i=X4(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=X4(r.getShallow(`symbol`,!0)),o=X4(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(GA(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill;break}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}function jRe(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),Z4(n,e)}}function Z4(e,t){e.eachEdge(function(e,n){var r=bj(e.getModel().get([`lineStyle`,`curveness`]),-J4(e,t,n,!0),0),i=Vj(e.node1.getLayout()),a=Vj(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}var MRe=xL(Y4,NRe);function NRe(e,t){e.eachSeriesByType(Y4,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];Q(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a<r.count();a++){for(var o=[],s=!1,c=0;c<i.length;c++){var l=r.get(i[c],a);isNaN(l)||(s=!0),o.push(l)}s?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}Z4(r.graph,e)}else(!t||t===`none`)&&jRe(e)})}function Q4(e){var t=e.coordinateSystem;return RFe(t)?XFe(t,e):1}function $4(e){var t=e.getVisual(`symbolSize`);return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var PRe=Math.PI,e3=[];function t3(e,t,n,r){var i=e.coordinateSystem;if(!(i&&i.type!==`view`)){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,c=a.width/2+a.x,l=a.height/2+a.y,u=Math.min(a.width,a.height)/2,d=o.count();if(o.setLayout({cx:c,cy:l}),d){if(n){var f=i.pointToData(r),p=f[0],m=f[1],h=[p-c,m-l];Yj(h,h),Jj(h,h,u),n.setLayout([c+h[0],l+h[1]],!0),IRe(n,e.get([`circular`,`rotateLabel`]),c,l)}FRe[t](e,s,o,u,c,l,d),s.eachEdge(function(t,n){var r=bj(t.getModel().get([`lineStyle`,`curveness`]),J4(t,e,n),0),i=Vj(t.node1.getLayout()),a=Vj(t.node2.getLayout()),o,s=(i[0]+a[0])/2,u=(i[1]+a[1])/2;+r&&(r*=3,o=[c*r+s*(1-r),l*r+u*(1-r)]),t.setLayout([i,a,o])})}}}var FRe={value:function(e,t,n,r,i,a,o){var s=0,c=n.getSum(`value`),l=Math.PI*2/(c||o);t.eachNode(function(e){var t=e.getValue(`value`),n=l*(c?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n})},symbolSize:function(e,t,n,r,i,a,o){var s=0;e3.length=o;var c=Q4(e);t.eachNode(function(e){var t=$4(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=c;var n=Math.asin(t/2/r);isNaN(n)&&(n=PRe/2),e3[e.dataIndex]=n,s+=n*2});var l=(2*PRe-s)/o/2,u=0;t.eachNode(function(e){var t=l+e3[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function IRe(e,t,n,r){var i=e.getGraphicEl();if(i){var a=e.getModel().get([`label`,`rotate`])||0,o=i.getSymbolPath();if(t){var s=e.getLayout(),c=Math.atan2(s[1]-r,s[0]-n);c<0&&(c=Math.PI*2+c);var l=s[0]<n;l&&(c-=Math.PI);var u=l?`left`:`right`;o.setTextConfig({rotation:-c,position:u,origin:`center`});var d=o.ensureState(`emphasis`);GA(d.textConfig||={},{position:u})}else o.setTextConfig({rotation:a*=Math.PI/180})}}var LRe=xL(Y4,RRe);function RRe(e){e.eachSeriesByType(`graph`,function(e){e.get(`layout`)===`circular`&&t3(e,`symbolSize`)})}var n3=Wj;function zRe(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,c=[a.x+o/2,a.y+s/2],l=n.gravity==null?.1:n.gravity,u=0;u<r.length;u++){var d=r[u];d.p||=zj(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1]),d.pp=Vj(d.p),d.edges=null}var f=n.friction==null?.6:n.friction,p=f,m,h;return{warmUp:function(){p=f*.8},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){m=e},afterStep:function(e){h=e},step:function(e){m&&m(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,u=o.n2;Gj(t,u.p,s.p);var d=Kj(t)-o.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),Yj(t,t),!s.fixed&&n3(s.p,s.p,t,f*d*p),!u.fixed&&n3(u.p,u.p,t,-(1-f)*d*p)}}for(var a=0;a<n;a++){var g=r[a];g.fixed||(Gj(t,c,g.p),n3(g.p,g.p,t,l*p))}for(var a=0;a<n;a++)for(var s=r[a],_=a+1;_<n;_++){var u=r[_];Gj(t,u.p,s.p);var d=Kj(t);d===0&&(Hj(t,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&n3(s.pp,s.pp,t,v),!u.fixed&&n3(u.pp,u.pp,t,-v)}for(var y=[],a=0;a<n;a++){var g=r[a];g.fixed||(Gj(y,g.p,g.pp),n3(g.p,g.p,y,p),Bj(g.pp,g.p))}p*=.992;var b=p<.01;h&&h(r,i,b),e&&e(b)}}}var BRe=xL(Y4,VRe);function VRe(e){e.eachSeriesByType(Y4,function(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`))if(e.get(`layout`)===`force`){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel(`force`),s=o.get(`initLayout`);e.preservedPoints?i.each(function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])}):!s||s===`none`?jRe(e):s===`circular`&&t3(e,`value`);var c=i.getDataExtent(`value`),l=a.getDataExtent(`value`),u=o.get(`repulsion`),d=o.get(`edgeLength`),f=aj(u)?u:[u,u],p=aj(d)?d:[d,d];p=[p[1],p[0]];var m=i.mapArray(`value`,function(e,t){var n=i.getItemLayout(t),r=uI(e,c,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get(`fixed`),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),h=zRe(m,a.mapArray(`value`,function(t,n){var i=r.getEdgeByIndex(n),a=uI(t,l,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),s=bj(i.getModel().get([`lineStyle`,`curveness`]),-J4(i,e,n,!0),0);return{n1:m[i.node1.dataIndex],n2:m[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get(`ignoreForceLayout`)}}),{rect:t.getBoundingRect(),gravity:o.get(`gravity`),friction:o.get(`friction`)});h.beforeStep(function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&Bj(e[n].p,r.getNodeByIndex(n).getLayout())}),h.afterStep(function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(var o=0,s=t.length;o<s;o++){var c=t[o],l=r.getEdgeByIndex(o),u=c.n1.p,d=c.n2.p,f=l.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],Bj(f[0],u),Bj(f[1],d),+c.curveness&&(f[2]=[(u[0]+d[0])/2-(u[1]-d[1])*c.curveness,(u[1]+d[1])/2-(d[0]-u[0])*c.curveness]),l.setLayout(f)}}),e.forceLayout=h,e.preservedPoints=n,h.step()}else e.forceLayout=null})}function HRe(e,t,n){var r=$U(e,t);return ZU(e,XU(GA(e.getBoxLayoutParams(),{aspect:n}),r.refContainer),n)}function URe(e,t){var n=[];return e.eachSeriesByType(`graph`,function(e){VU({targetModel:e,coordSysType:`view`,coordSysProvider:r,isDefaultDataCoordSys:!0});function r(){var r=e.getData(),i=r.mapArray(function(e){var t=r.getItemModel(e);return[+t.get(`x`),+t.get(`y`)]}),a=[],o=[];cR(i,a,o),o[0]-a[0]===0&&(o[0]+=1,--a[0]),o[1]-a[1]===0&&(o[1]+=1,--a[1]);var s=(o[0]-a[0])/(o[1]-a[1]),c=HRe(e,t,s);isNaN(s)&&(a=[c.x,c.y],o=[c.x+c.width,c.y+c.height]);var l=o[0]-a[0],u=o[1]-a[1],d=t4(e,t,a[0],a[1],l,u,c);return n.push(d),d}}),n}var WRe=ZB.prototype,r3=eV.prototype,GRe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(GRe);function i3(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var KRe=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new GRe},t.prototype.buildPath=function(e,t){i3(t)?WRe.buildPath.call(this,e,t):r3.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return i3(this.shape)?WRe.pointAt.call(this,e):r3.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=i3(t)?[t.x2-t.x1,t.y2-t.y1]:r3.tangentAt.call(this,e);return Yj(n,n)},t}(WR),a3=[`fromSymbol`,`toSymbol`];function qRe(e){return`_`+e+`Type`}function JRe(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=nq(i),l=rq(o||0,c);return r+c+l+(a||``)+(s||``)}function YRe(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r===`none`)){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=nq(i),l=rq(o||0,c),u=tq(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=e,u}}function XRe(e){var t=new KRe({name:`line`,subPixelOptimize:!0});return o3(t.shape,e),t}function o3(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var s3=function(e){Z(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=e.getItemVisual(t,`z2`),o=XRe(i);o.shape.percent=0,yV(o,{z2:yj(a,0),shape:{percent:1}},r,t),this.add(o),Q(a3,function(n){var r=YRe(n,e,t);this.add(r),this[qRe(n)]=JRe(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};o3(o.shape,a),vV(i,o,r,t),Q(a3,function(n){var r=JRe(n,e,t),i=qRe(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=YRe(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=yH(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,Q(a3,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<kz.length;n++){var r=kz[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),c=s.style||={};o.stroke!=null&&(c[t.__isEmptyBrush?`stroke`:`fill`]=o.stroke),o.opacity!=null&&(c.opacity=o.opacity)}}t.markRedraw()}},this);var g=r.getRawValue(t);vH(this,c,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||$.color.neutral99,defaultOpacity:m.opacity,defaultText:(g==null?e.getName(t):isFinite(g)?mI(g,10):g)+``});var _=this.getTextContent();if(_){var v=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=v.get(`position`)||`middle`;var y=v.get(`distance`);aj(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),lB(this,u,d,l)},t.prototype.highlight=function(){Xz(this)},t.prototype.downplay=function(){Zz(this)},t.prototype.updateLayout=function(e,t){this.childOfName(`line`).stopAnimation(),this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName(`line`);o3(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName(`fromSymbol`),n=e.childOfName(`toSymbol`),r=e.getTextContent();if(!t&&!n&&(!r||r.ignore))return;for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName(`line`);if(!this.__dirty&&!o.__dirty)return;var s=o.shape.percent,c=o.pointAt(0),l=o.pointAt(s),u=Gj([],l,c);Yj(u,u);function d(e,t){var n=e.__specifiedRotation;if(n==null){var r=o.tangentAt(t);e.attr(`rotation`,(t===1?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr(`rotation`,n)}if(t&&(t.setPosition(c),d(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(l),d(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,p=void 0,m=r.__labelDistance,h=m[0]*i,g=m[1]*i,_=s/2,v=o.tangentAt(_),y=[v[1],-v[0]],b=o.pointAt(_);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0]<c[0]&&(S=Math.PI+S),r.rotation=S}var C=void 0;switch(r.__position){case`insideStartTop`:case`insideMiddleTop`:case`insideEndTop`:case`middle`:C=-g,p=`bottom`;break;case`insideStartBottom`:case`insideMiddleBottom`:case`insideEndBottom`:C=g,p=`top`;break;default:C=0,p=`middle`}switch(r.__position){case`end`:r.x=u[0]*h+l[0],r.y=u[1]*g+l[1],f=u[0]>.8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(WF),c3=function(){function e(e){this.group=new WF,this._LineCtor=e||s3}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=QRe(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=QRe(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!ZRe(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i<e.end;i++)if(l3(t.getItemLayout(i))){var a=new this._LineCtor(t,i,this._seriesScope);a.traverse(r),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){nH(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(l3(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);if(!l3(t.getItemLayout(r))){this.group.remove(a);return}a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)},e}();function ZRe(e){return e.animators&&e.animators.length>0}function QRe(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:yH(t)}}function $Re(e){return isNaN(e[0])||isNaN(e[1])}function l3(e){return e&&!$Re(e[0])&&!$Re(e[1])}var u3=[],d3=[],f3=[],p3=FN,m3=$j,eze=Math.abs;function tze(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){u3[0]=p3(r[0],i[0],a[0],u),u3[1]=p3(r[1],i[1],a[1],u);var d=eze(m3(u3,t)-c);d<o&&(o=d,s=u)}for(var f=0;f<32;f++){var p=s+l;d3[0]=p3(r[0],i[0],a[0],s),d3[1]=p3(r[1],i[1],a[1],s),f3[0]=p3(r[0],i[0],a[0],p),f3[1]=p3(r[1],i[1],a[1],p);var d=m3(d3,t)-c;if(eze(d)<.01)break;var m=m3(f3,t)-c;l/=2,d<0?m>=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function h3(e,t){var n=[],r=RN,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[Vj(c[0]),Vj(c[1])],c[2]&&c.__original.push(Vj(c[2])));var d=c.__original;if(c[2]!=null){if(Bj(i[0],d[0]),Bj(i[1],d[2]),Bj(i[2],d[1]),l&&l!==`none`){var f=$4(e.node1),p=tze(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=$4(e.node2),p=tze(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}Bj(c[0],i[0]),Bj(c[1],i[2]),Bj(c[2],i[1])}else{if(Bj(a[0],d[0]),Bj(a[1],d[1]),Gj(o,a[1],a[0]),Yj(o,o),l&&l!==`none`){var f=$4(e.node1);Wj(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=$4(e.node2);Wj(a[1],a[1],o,-f*t)}Bj(c[0],a[0]),Bj(c[1],a[1])}})}var nze=$I();function rze(e){if(e)return nze(e).bridge}function ize(e,t){e&&(nze(e).bridge=t)}var aze=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Y4,t}return t.prototype.init=function(e,t){var n=new S$,r=new c3,i=this.group,a=new WF;this._controller=new f2(t.getZr()),a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=Y2(e),a=!1;this._model=e,this._api=n,this._active=!0;var o=this._mainGroup,s=this._getThumbnailInfo();s&&s.bridge.reset(n);var c=this._symbolDraw,l=this._lineDraw;i&&K2(o,2,i,this._firstRender?null:e),h3(e.getGraph(),Q4(e));var u=e.getData();c.updateData(u);var d=e.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),i&&Q2(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},null),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),t3(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),Z4(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(fz(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(fz(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){IRe(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=Y2(t);!this._active||!r||(K2(this._mainGroup,2,r,null),$Fe(e)&&(this._updateNodeAndLinkScale(),h3(t.getGraph(),Q4(t)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=Q4(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(h3(e.getGraph(),Q4(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.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()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=rze(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(P2(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new WF,o=n.group.children(),s=r.group.children(),c=new WF,l=new WF;a.add(l),a.add(c);for(var u=0;u<o.length;u++){var d=o[u],f=d.children()[0],p=d.x,m=d.y,h=GA(HA(f.shape),{width:f.scaleX,height:f.scaleY,x:p-f.scaleX/2,y:m-f.scaleY/2}),g=HA(f.style),_=new f.constructor({shape:h,style:g,z2:151});l.add(_)}for(var u=0;u<s.length;u++){var d=s[u],v=d.children()[0],g=HA(v.style),h=HA(v.shape),y=new KRe({style:g,shape:h,z2:151});c.add(y)}i.bridge.renderContent({api:t,roamType:e.get(`roam`),viewportRect:null,group:a,targetTrans:P2(null,i.coordSys)})}},t.type=Y4,t}(fK),oze=xL(Y4,sze);function sze(e){var t=e.findComponents({mainType:`legend`});!t||!t.length||e.eachSeriesByType(Y4,function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf(function(e){var n=r.getItemModel(e).getShallow(`category`);if(n!=null){lj(n)&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}var cze=xL(Y4,lze);function lze(e){var t={};e.eachSeriesByType(Y4,function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each(function(r){var a=n.getName(r);i[`ec-`+a]=r;var o=n.getItemModel(r),s=o.getModel(`itemStyle`).getItemStyle();s.fill||=e.getColorFromPalette(a,t),n.setItemVisual(r,`style`,s);for(var c=[`symbol`,`symbolSize`,`symbolKeepAspect`],l=0;l<c.length;l++){var u=o.getShallow(c[l],!0);u!=null&&n.setItemVisual(r,c[l],u)}}),n.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow(`category`);if(t!=null){sj(t)&&(t=i[`ec-`+t]);var a=n.getItemVisual(t,`style`);GA(r.ensureUniqueItemVisual(e,`style`),a);for(var o=[`symbol`,`symbolSize`,`symbolKeepAspect`],s=0;s<o.length;s++)r.setItemVisual(e,o[s],n.getItemVisual(t,o[s]))}})})}function uze(e){e.registerChartView(aze),e.registerSeriesModel(ORe),e.registerProcessor(oze),e.registerVisual(cze),e.registerVisual(kRe),e.registerLayout(MRe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,LRe),e.registerLayout(BRe),e.registerCoordinateSystem(`graphView`,{dimensions:M2.dimensions,create:URe}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},Fj),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},Fj),e4(e,mz,Y4)}var g3=`chord`,dze=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new u0(rj(this.getData,this),rj(this.getRawData,this))},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[];if(r&&n)return U4(r,n,this,!0,i).data;function i(e,t){var n=FH.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=i,e.getModel=r,e});function i(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){var r=this.getDataParams(e,n);if(n===`edge`){var i=this.getData(),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),GG(`nameValue`,{name:c.join(` > `),value:r.value,noValue:r.value==null})}return GG(`nameValue`,{name:r.name,value:r.value,noValue:r.value==null})},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(n===`node`){var i=this.getData(),a=this.getGraph().getNodeByIndex(t);r.name??=i.getName(t),r.value??=a.getLayout().value}return r},t.type=`series.`+g3,t.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}}},t}(aK),fze=function(e){Z(t,e);function t(t,n,r){var i=e.call(this)||this;fz(i).dataType=`node`,i.z2=2;var a=new tz;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.graph.getNodeByIndex(t),o=e.hostModel,s=a.getModel(),c=s.getModel(`emphasis`),l=e.getItemLayout(t),u=GA(q1(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):vV(d,{shape:u},o,t);var f=GA(q1(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),fB(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),fB(d,s,`itemStyle`);var p=c.get(`focus`);lB(this,p===`adjacency`?a.getAdjacentDataIndices():p,c.get(`blurScope`),c.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),c=t.getModel(`label`);r.ignore=!c.get(`show`);var l=yH(t),u=n.getVisual(`style`);vH(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,bj(o,l.normal&&l.normal.get(`formatter`),t.get(`name`)),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+``,inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:`startArc`});var d=c.get(`position`)||`outside`,f=c.get(`distance`)||0,p=d===`outside`?i.r+f:(i.r+i.r0)/2;this.textConfig={inside:d!==`outside`};var m=d===`outside`?o>0?`left`:`right`:c.get(`align`)||`center`,h=d===`outside`?s>0?`top`:`bottom`:c.get(`verticalAlign`)||`middle`;r.attr({x:o*p+i.cx,y:s*p+i.cy,rotation:0,style:{align:m,verticalAlign:h}})},t}(KB);(function(){function e(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}return e})();var pze=function(e){Z(t,e);function t(t,n,r,i){var a=e.call(this)||this;return fz(a).dataType=`edge`,a.updateData(t,n,r,i,!0),a}return t.prototype.buildPath=function(e,t){e.moveTo(t.s1[0],t.s1[1]);var n=.7,r=t.clockwise;e.arc(t.cx,t.cy,t.r,t.sStartAngle,t.sEndAngle,!r),e.bezierCurveTo((t.cx-t.s2[0])*n+t.s2[0],(t.cy-t.s2[1])*n+t.s2[1],(t.cx-t.t1[0])*n+t.t1[0],(t.cy-t.t1[1])*n+t.t1[1],t.t1[0],t.t1[1]),e.arc(t.cx,t.cy,t.r,t.tStartAngle,t.tEndAngle,!r),e.bezierCurveTo((t.cx-t.t2[0])*n+t.t2[0],(t.cy-t.t2[1])*n+t.t2[1],(t.cx-t.s1[0])*n+t.s1[0],(t.cy-t.s1[1])*n+t.s1[1],t.s1[0],t.s1[1]),e.closePath()},t.prototype.updateData=function(e,t,n,r,i){var a=e.hostModel,o=t.graph.getEdgeByIndex(n),s=o.getLayout(),c=o.node1.getModel(),l=t.getItemModel(o.dataIndex),u=l.getModel(`lineStyle`),d=l.getModel(`emphasis`),f=d.get(`focus`),p=GA(q1(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),mze(m,o,e,u)):(wV(m),mze(m,o,e,u),vV(m,{shape:p},a,n)),lB(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),fB(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(WR);function mze(e,t,n,r){var i=t.node1,a=t.node2,o=e.style;switch(e.setStyle(r.getLineStyle()),r.get(`color`)){case`source`:o.fill=n.getItemVisual(i.dataIndex,`style`).fill,o.decal=i.getVisual(`style`).decal;break;case`target`:o.fill=n.getItemVisual(a.dataIndex,`style`).fill,o.decal=a.getVisual(`style`).decal;break;case`gradient`:var s=n.getItemVisual(i.dataIndex,`style`).fill,c=n.getItemVisual(a.dataIndex,`style`).fill;if(sj(s)&&sj(c)){var l=e.shape;o.fill=new iV((l.s1[0]+l.s2[0])/2,(l.s1[1]+l.s2[1])/2,(l.t1[0]+l.t2[0])/2,(l.t1[1]+l.t2[1])/2,[{offset:0,color:s},{offset:1,color:c}],!0)}break}}var hze=Math.PI/180,gze=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=g3,t}return t.prototype.init=function(e,t){},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group,o=-e.get(`startAngle`)*hze;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new fze(r,e,o);fz(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&CV(s,e,n);return}s?s.updateData(r,t,o):s=new fze(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&CV(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=dI(s[0],n.getWidth()),this.group.originY=dI(s[1],n.getHeight()),yV(this.group,{scaleX:1,scaleY:1},e)}this._data=r,this.renderEdges(e,o)},t.prototype.renderEdges=function(e,t){var n=e.getData(),r=e.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add(function(e){var i=new pze(n,r,e,t);fz(i).dataIndex=e,a.add(i)}).update(function(e,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,e,t),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&CV(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=g3,t}(fK),_3=Math.PI/180,_ze=xL(g3,vze);function vze(e,t){e.eachSeriesByType(g3,function(e){yze(e,t)})}function yze(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=YU(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*_3,0),d=Math.max((e.get(`minAngle`)||0)*_3,0),f=-e.get(`startAngle`)*_3,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];kR(g,!m);var _=g[0],v=g[1]-_,y=n.getSum(`value`)===0&&i.getSum(`value`)===0,b=[],x=0;r.eachEdge(function(e){var t=y?1:e.getValue(`value`);y&&(t>0||d)&&(x+=2);var n=e.node1.dataIndex,r=e.node2.dataIndex;b[n]=(b[n]||0)+t,b[r]=(b[r]||0)+t});var S=0;if(r.eachNode(function(e){var t=e.getValue(`value`);isNaN(t)||(b[e.dataIndex]=Math.max(t,b[e.dataIndex]||0)),!y&&(b[e.dataIndex]>0||d)&&x++,S+=b[e.dataIndex]||0}),!(x===0||S===0)){u*x>=Math.abs(v)&&(u=Math.max(0,(Math.abs(v)-d*x)/x)),(u+d)*x>=Math.abs(v)&&(d=(Math.abs(v)-u*x)/x);var C=(v-u*x*h)/S,w=0,T=0,E=0,D=1/0;r.eachNode(function(e){var t=b[e.dataIndex]||0,n=C*(S?t:1)*h;Math.abs(n)<d?w+=d-Math.abs(n):(D=Math.min(D,Math.abs(n)-d),T+=Math.abs(n)-d,E+=Math.abs(n)),e.setLayout({angle:n,value:t})});var O=!1;if(w>T){var k=w/T;r.eachNode(function(e){var t=e.getLayout().angle;Math.abs(t)>=d?e.setLayout({angle:t*k,ratio:k},!0):e.setLayout({angle:d,ratio:d===0?1:t/d},!0)})}else r.eachNode(function(e){if(!O){var t=e.getLayout().angle;t-Math.min(t/E,1)*w<d&&(O=!0)}});var A=w;r.eachNode(function(e){if(!(A<=0)){var t=e.getLayout().angle;if(t>d&&d>0){var n=O?1:Math.min(t/E,1),r=t-d,i=Math.min(r,Math.min(A,w*n));A-=i,e.setLayout({angle:t-i,ratio:(t-i)/t},!0)}else d>0&&e.setLayout({angle:d,ratio:t===0?1:d/t},!0)}});var j=_,M=[];r.eachNode(function(e){var t=Math.max(e.getLayout().angle,d);e.setLayout({cx:o,cy:s,r0:l,r:c,startAngle:j,endAngle:j+t*h,clockwise:m},!0),M[e.dataIndex]=j,j+=(t+u)*h}),r.eachEdge(function(e){var t=y?1:e.getValue(`value`),n=C*(S?t:1)*h,r=e.node1.dataIndex,i=M[r]||0,a=i+Math.abs((e.node1.getLayout().ratio||1)*n)*h,c=[o+l*Math.cos(i),s+l*Math.sin(i)],u=[o+l*Math.cos(a),s+l*Math.sin(a)],d=e.node2.dataIndex,f=M[d]||0,p=f+Math.abs((e.node2.getLayout().ratio||1)*n)*h,g=[o+l*Math.cos(f),s+l*Math.sin(f)],_=[o+l*Math.cos(p),s+l*Math.sin(p)];e.setLayout({s1:c,s2:u,sStartAngle:i,sEndAngle:a,t1:g,t2:_,tStartAngle:f,tEndAngle:p,cx:o,cy:s,r:l,value:t,clockwise:m}),M[r]=a,M[d]=p})}}}function bze(e){e.registerChartView(gze),e.registerSeriesModel(dze),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,_ze),e.registerProcessor(c0(`chord`))}var xze=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),Sze=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new xze},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(WR);function Cze(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:dI(n[0],t.getWidth()),cy:dI(n[1],t.getHeight()),r:dI(e.get(`radius`),a/2)}}function v3(e,t){var n=e==null?``:e+``;return t&&(sj(t)?n=t.replace(`{value}`,n):oj(t)&&(n=t(e))),n}var wze=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=Cze(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?W1:KB,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];kR(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v<r.length;v++){var y=Math.min(Math.max(r[v][0],0),1);c=s+h*y;var b=new u({shape:{startAngle:g,endAngle:c,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-p,r:i.r},silent:!0});b.setStyle({fill:r[v][1]}),b.setStyle(f.getLineStyle([`color`,`width`])),_.push(b),g=c}_.reverse(),Q(_,function(e){return a.add(e)});var x=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(t===0?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,x,i,s,c,o,p),this._renderTitleAndDetail(e,t,n,x,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,x,i,s,c,o,p)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,c){for(var l=this.group,u=i.cx,d=i.cy,f=i.r,p=+e.get(`min`),m=+e.get(`max`),h=e.getModel(`splitLine`),g=e.getModel(`axisTick`),_=e.getModel(`axisLabel`),v=e.get(`splitNumber`),y=g.get(`splitNumber`),b=dI(h.get(`length`),f),x=dI(g.get(`length`),f),S=a,C=(o-a)/v,w=C/y,T=h.getModel(`lineStyle`).getLineStyle(),E=g.getModel(`lineStyle`).getLineStyle(),D=h.get(`distance`),O,k,A=0;A<=v;A++){if(O=Math.cos(S),k=Math.sin(S),h.get(`show`)){var j=D?D+c:c,M=new ZB({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-b-j)+u,y2:k*(f-b-j)+d},style:T,silent:!0});T.stroke===`auto`&&M.setStyle({stroke:r(A/v)}),l.add(M)}if(_.get(`show`)){var j=_.get(`distance`)+D,N=v3(mI(A*(m-p)/v+p,14),_.get(`formatter`)),P=r(A/v),F=O*(f-b-j)+u,I=k*(f-b-j)+d,L=_.get(`rotate`),R=0;L===`radial`?(R=-S+2*Math.PI,R>Math.PI/2&&(R+=Math.PI)):L===`tangential`?R=-S-Math.PI/2:lj(L)&&(R=L*Math.PI/180),R===0?l.add(new tz({style:bH(_,{text:N,x:F,y:I,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:P}),silent:!0})):l.add(new tz({style:bH(_,{text:N,x:F,y:I,verticalAlign:`middle`,align:`center`},{inheritColor:P}),silent:!0,originX:F,originY:I,rotation:R}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var z=0;z<=y;z++){O=Math.cos(S),k=Math.sin(S);var B=new ZB({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&B.setStyle({stroke:r((A+z/y)/v)}),l.add(B),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=dI(r.get(`width`),i.r),o=dI(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=dI(c[0],i.r),u=dI(c[1],i.r),d=r.get(`keepAspect`),f=s?tq(s,l-a/2,u-o,a,o,null,d):new Sze({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?W1:KB,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=uI(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);yV(r,{rotation:-((isNaN(+n)?x[0]:uI(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);yV(i,{shape:{endAngle:uI(n,b,x,m.get(`clip`))}},e),l.add(i),pz(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,vV(s,{rotation:-((isNaN(+r)?x[0]:uI(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);vV(v,{shape:{endAngle:uI(r,b,x,m.get(`clip`))}},e),l.add(v),pz(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`),s=r(uI(g.get(_,e),b,[0,1],!0));if(p){var c=g.getItemGraphicEl(e),l=g.getItemVisual(e,`style`),u=l.fill;if(c instanceof KR){var d=c.style;c.useStyle(GA({image:d.image,x:d.x,y:d.y,width:d.width,height:d.height},l))}else c.useStyle(l),c.type!==`pointer`&&c.setColor(u);c.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),c.style.fill===`auto`&&c.setStyle(`fill`,s),c.z2EmphasisLift=0,fB(c,t),lB(c,i,a,o)}if(h){var m=f[e];m.useStyle(g.getItemVisual(e,`style`)),m.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),m.style.fill===`auto`&&m.setStyle(`fill`,s),m.z2EmphasisLift=0,fB(m,t),lB(m,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=tq(i,t.cx-r/2+dI(a[0],t.r),t.cy-r/2+dI(a[1],t.r),r,r,null,o);s.z2=+!!n.get(`showAbove`),s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new WF,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new tz({silent:!0}),f[e]=new tz({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new WF,g=r(uI(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+dI(v[0],i.r),b=i.cy+dI(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:bH(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+dI(C[0],i.r),T=i.cy+dI(C[1],i.r),E=dI(S.get(`width`),i.r),D=dI(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:bH(S,{x:w,y:T,text:v3(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),OH(x,{normal:S},a,function(e){return v3(e,k)}),p&&kH(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return v3(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(fK),Tze=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return l0(this,[`value`])},t.type=`series.gauge`,t.defaultOption={z:2,colorBy:`data`,center:[`50%`,`50%`],legendHoverLink:!0,radius:`75%`,startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:$.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(aK);function Eze(e){e.registerChartView(wze),e.registerSeriesModel(Tze)}var y3=`funnel`,Dze=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new u0(rj(this.getData,this),rj(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return l0(this,{coordDimensions:[`value`],encodeDefaulter:ij(gW,this)})},t.prototype._defaultLabelLine=function(e){UI(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.`+y3,t.defaultOption={coordinateSystemUsage:`box`,z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:65,minSize:`0%`,maxSize:`100%`,sort:`descending`,orient:`vertical`,gap:0,funnelAlign:`center`,label:{show:!0,position:`outer`},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(aK),Oze=[`itemStyle`,`opacity`],kze=function(e){Z(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new XB,o=new tz;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(Oze);c??=1,n||wV(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,yV(r,{style:{opacity:c}},i,t)):vV(r,{style:{opacity:c},shape:{points:o.points}},i,t),fB(r,a),this._updateLabel(e,t),lB(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;vH(i,yH(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var u=o.getModel(`label`).get(`color`)===`inherit`?l:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var d=s.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new MM(d[0][0],d[0][1]):null},vV(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),PZ(n,FZ(o),{stroke:l})},t}(YB),Aze=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=y3,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new kze(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){CV(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=y3,t}(fK);function jze(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();o<s;o++)i[o]=o;return oj(t)?i.sort(t):t!==`none`&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}function Mze(e){var t=e.hostModel,n=Fze(t);e.each(function(t){var r=e.getItemModel(t),i=r.getModel(`label`).get(`position`),a=r.getModel(`labelLine`),o=e.getItemLayout(t),s=o.points,c=i===`inner`||i===`inside`||i===`center`||i===`insideLeft`||i===`insideRight`,l,u,d,f;if(c)i===`insideLeft`?(u=(s[0][0]+s[3][0])/2+5,d=(s[0][1]+s[3][1])/2,l=`left`):i===`insideRight`?(u=(s[1][0]+s[2][0])/2-5,d=(s[1][1]+s[2][1])/2,l=`right`):(u=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,d=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,l=`center`),f=[[u,d],[u,d]];else{var p=void 0,m=void 0,h=void 0,g=void 0,_=a.get(`length`);sj(i)&&(!n&&JA([`top`,`bottom`],i)>-1&&(i=`left`),n&&JA([`left`,`right`],i)>-1&&(i=`bottom`)),i===`left`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,h=p-_,u=h-5,l=`right`):i===`right`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,h=p+_,u=h+5,l=`left`):i===`top`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,g=m-_,d=g-5,l=`center`):i===`bottom`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,g=m+_,d=g+5,l=`center`):i===`rightTop`?(p=n?s[3][0]:s[1][0],m=n?s[3][1]:s[1][1],n?(g=m-_,d=g-5,l=`center`):(h=p+_,u=h+5,l=`top`)):i===`rightBottom`?(p=s[2][0],m=s[2][1],n?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`bottom`)):i===`leftTop`?(p=s[0][0],m=n?s[0][1]:s[1][1],n?(g=m-_,d=g-5,l=`center`):(h=p-_,u=h-5,l=`right`)):i===`leftBottom`?(p=n?s[1][0]:s[3][0],m=n?s[1][1]:s[2][1],n?(g=m+_,d=g+5,l=`center`):(h=p-_,u=h-5,l=`right`)):(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,n?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`left`)),n?(h=p,u=h):(g=m,d=g),f=[[p,m],[h,g]]}o.label={linePoints:f,x:u,y:d,verticalAlign:`middle`,textAlign:l,inside:c}})}var Nze=xL(y3,Pze);function Pze(e,t){e.eachSeriesByType(y3,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=$U(e,t),o=XU(e.getBoxLayoutParams(),a.refContainer),s=Fze(e),c=o.width,l=o.height,u=jze(n,i),d=o.x,f=o.y,p=s?[dI(e.get(`minSize`),l),dI(e.get(`maxSize`),l)]:[dI(e.get(`minSize`),c),dI(e.get(`maxSize`),c)],m=n.getDataExtent(r),h=e.get(`min`),g=e.get(`max`);h??=Math.min(m[0],0),g??=m[1];var _=e.get(`funnelAlign`),v=e.get(`gap`),y=((s?c:l)-v*(n.count()-1))/n.count(),b=function(e,t){if(s){var i=uI(n.get(r,e)||0,[h,g],p,!0),a=void 0;switch(_){case`top`:a=f;break;case`center`:a=f+(l-i)/2;break;case`bottom`:a=f+(l-i);break}return[[t,a],[t,a+i]]}var o=uI(n.get(r,e)||0,[h,g],p,!0),u;switch(_){case`left`:u=d;break;case`center`:u=d+(c-o)/2;break;case`right`:u=d+c-o;break}return[[u,t],[u+o,t]]};i===`ascending`&&(y=-y,v=-v,s?d+=c:f+=l,u=u.reverse());for(var x=0;x<u.length;x++){var S=u[x],C=u[x+1],w=n.getItemModel(S);if(s){var T=w.get([`itemStyle`,`width`]);T==null?T=y:(T=dI(T,c),i===`ascending`&&(T=-T));var E=b(S,d),D=b(C,d+T);d+=T+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}else{var O=w.get([`itemStyle`,`height`]);O==null?O=y:(O=dI(O,l),i===`ascending`&&(O=-O));var E=b(S,f),D=b(C,f+O);f+=O+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}}Mze(n)})}function Fze(e){return e.get(`orient`)===`horizontal`}function Ize(e){e.registerChartView(Aze),e.registerSeriesModel(Dze),e.registerLayout(Nze),e.registerProcessor(c0(y3))}var Lze=.3,Rze=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new WF,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){var i=this._dataGroup;this._progressiveEls=[],i.removeAll();var a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.dimensions,l=Hze(e);a.diff(o).add(u).update(d).remove(f).execute();function u(e){b3(Vze(a,i,e,c,s),a,e,l)}function d(t,n){var r=o.getItemGraphicEl(n);i.add(r);var u=Bze(a,t,c,s);a.setItemGraphicEl(t,r),vV(r,{shape:{points:u}},e,t),wV(r),b3(r,a,t,l)}function f(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(!this._initialized){this._initialized=!0;var p=zze(s,e,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(p)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=this._progressiveEls=[],o=e.start;o<e.end;o++){var s=Vze(r,this._dataGroup,o,i.dimensions,i);s.incremental=yL(t),b3(s,r,o,Hze(t)),a.push(s)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type=`parallel`,t}(fK);function zze(e,t,n){var r=e.model,i=e.getRect(),a=new ZR({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get(`layout`)===`horizontal`?`width`:`height`;return a.setShape(o,0),yV(a,{shape:{width:i.width,height:i.height}},t,n),a}function Bze(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);Uze(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function Vze(e,t,n,r,i){var a=new XB({shape:{points:Bze(e,n,r,i)},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function Hze(e){var t=e.get(`smooth`,!0);return t===!0&&(t=Lze),t=AI(t),_j(t)&&(t=0),{smooth:t}}function b3(e,t,n,r){e.useStyle(t.getItemVisual(n,`style`)),e.style.fill=null,e.setShape(`smooth`,r.smooth);var i=t.getItemModel(n),a=i.getModel(`emphasis`);fB(e,i,`lineStyle`),lB(e,a.get(`focus`),a.get(`blurScope`),a.get(`disabled`))}function Uze(e,t){return t===`category`?e==null:e==null||isNaN(e)}var Wze=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.getInitialData=function(e,t){return TY(null,this,{useEncodeDefaulter:rj(Gze,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,i){e===t&&r.push(n.getRawIndex(i))}),r},t.type=`series.parallel`,t.dependencies=[`parallel`],t.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:300,smooth:!1,animationEasing:`linear`},t}(aK);function Gze(e){var t=e.ecModel.getComponent(`parallel`,e.get(`parallelIndex`));if(t){var n={};return Q(t.dimensions,function(e){n[e]=Kze(e)}),n}}function Kze(e){return+e.replace(`dim`,``)}var qze=[`lineStyle`,`opacity`],Jze={seriesType:`parallel`,reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get([`lineStyle`,`opacity`]),active:e.get(`activeOpacity`),inactive:e.get(`inactiveOpacity`)};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var i=r[e];if(e===`normal`&&t.hasItemOption){var a=t.getItemModel(n).get(qze,!0);a!=null&&(i=a)}var o=t.ensureUniqueItemVisual(n,`style`);o.opacity=i},e.start,e.end)}}}};function Yze(e){Xze(e),Zze(e)}function Xze(e){if(!e.parallel){var t=!1;Q(e.series,function(e){e&&e.type===`parallel`&&(t=!0)}),t&&(e.parallel=[{}])}}function Zze(e){Q(HI(e.parallelAxis),function(t){if(uj(t)){var n=t.parallelIndex||0,r=HI(e.parallel)[n];r&&r.parallelAxisDefault&&UA(t,r.parallelAxisDefault,!1)}})}var Qze=5,$ze=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Q(eBe,function(e,t){n.getZr().on(t,this._handlers[t]=rj(e,this))},this)),yK(this,`_throttledDispatchExpand`,e.get(`axisExpandRate`),`fixRate`)},t.prototype.dispose=function(e,t){bK(this,`_throttledDispatchExpand`),Q(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(GA({type:`parallelAxisExpand`},e))},t.type=`parallel`,t}(lK),eBe={mousedown:function(e){x3(this,`click`)&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(x3(this,`click`)&&t){var n=[e.offsetX,e.offsetY];if((t[0]-n[0])**2+(t[1]-n[1])**2>Qze)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!x3(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function x3(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var S3=`parallel`,C3=S3,tBe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&UA(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){Q([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];Q(ej(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.componentIndex)})},t.type=C3,t.dependencies=[`parallelAxis`],t.layoutMode=`box`,t.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},t}(aW),nBe=function(e){Z(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(_Z);function w3(e,t,n,r,i,a){e||=0;var o=bI(n[1],-n[0]);if(i!=null&&(i=E3(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(bI(t[1],-t[0]));s=E3(s,[0,o]),i=a=E3(s,[i,a]),r=0}t[0]=E3(t[0],n),t[1]=E3(t[1],n);var c=T3(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=bI(u[0],l):u[1]=bI(u[1],-l),t[r]=E3(t[r],u);var d=T3(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=bI(t[r],c.sign*i)),d=T3(t,r),a!=null&&d.span>a&&(t[1-r]=bI(t[r],d.sign*a)),t}function T3(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function E3(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var rBe=function(){function e(e,t,n){this.type=S3,this._axesMap=Aj(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;Q(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=lX(a),s=this._axesMap.set(e,new nBe(e,uX(a,o,!1),[0,0],o,r));s.onBand=yX(s.scale,a),s.inverse=a.get(`inverse`),a.axis=s,s.model=a,s.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){Q(this.dimensions,function(e){var t=this._axesMap.get(e);zX(t,1),GX(t)},this)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype.resize=function(e,t){var n=$U(e,t).refContainer;this._rect=XU(e.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=D3(e.get(`axisExpandWidth`),s),u=D3(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=D3(f[1]-f[0],s),f[1]=f[0]+p):(p=D3(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||iI(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[iI(mI(f[0]/l,1))+1,aI(mI(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),Q(n,function(t,n){var a=(r.axisExpandable?aBe:iBe)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:lI/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=CM();OM(u,u,l),DM(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];Q(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;l<r;l++){var u=void 0;if(!c)u=`normal`;else{u=`active`;for(var d=e.getValues(o,l),f=0,p=a.length;f<p;f++)if(s[f].getActiveState(d[f])===`inactive`){u=`inactive`;break}}t(u,l)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)t.get(e[r]).model.getActiveState()!==`normal`&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return VV([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return HA(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:`none`,axisExpandWindow:r};var o=e[n]-t.layoutBase-t.axisExpandWindow0Pos,s,c=`slide`,l=t.axisCollapseWidth,u=this._model.get(`axisExpandSlideTriggerArea`),d=u[0]!=null;if(l)d&&l&&o<i*u[0]?(c=`jump`,s=o-i*u[2]):d&&l&&o>i*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?w3(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[tI(0,a[1]*o/f-f/2)],r[1]=eI(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function D3(e,t){return eI(tI(e,t[0]),t[1])}function iBe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function aBe(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e<o[0]?(s=e*a,u=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,l=!0):(s=n-(i-1-e)*a,u=a),{position:s,axisNameAvailableWidth:c,axisLabelShow:l,nameTruncateMaxWidth:u}}function oBe(e,t){var n=[];return e.eachComponent(C3,function(r,i){var a=new rBe(r,e,t);a.name=`parallel_`+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`parallel`){var t=e.coordinateSystem=e.getReferringComponents(C3,nL).models[0].coordinateSystem;t&&Q(t.dimensions,function(n){AX(t.getAxis(n),e,S3)})}}),n}var sBe={create:oBe},O3=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return kL([[`fill`,`color`],[`lineWidth`,`borderWidth`],[`stroke`,`borderColor`],[`width`,`width`],[`opacity`,`opacity`]])(this.getModel(`areaSelectStyle`))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=HA(e);if(t)for(var n=t.length-1;n>=0;n--)hI(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return`active`;return`inactive`},t}(aW);XA(O3,bX);var k3=!0,A3=Math.min,j3=Math.max,cBe=Math.pow,lBe=1e4,uBe=6,dBe=6,fBe=`globalPan`,pBe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},mBe={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},hBe={brushStyle:{lineWidth:2,stroke:$.color.backgroundTint,fill:$.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},gBe=0,M3=function(e){Z(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new WF,n._uid=`brushController_`+gBe++,Q(IBe,function(e,t){this._handlers[t]=rj(e,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||PPe(t,fBe,this._uid),Q(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=UA(HA(hBe),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;FPe(e,fBe,this._uid),Q(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Q(e,function(e){t[e.panelId]=HA(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=QA(e,function(e){return UA(HA(hBe),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new eY(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:N3(i,r[t]=o==null?vBe(i,_Be(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),I3(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(aM);function _Be(e,t){var n=G3[t.brushType].createCover(e,t);return n.__brushOption=t,bBe(n,t),e.group.add(n),n}function vBe(e,t){var n=P3(t);return n.endCreating&&(n.endCreating(e,t),bBe(t,t.__brushOption)),t}function yBe(e,t){var n=t.__brushOption;P3(t).updateCoverShape(e,t,n.range,n)}function bBe(e,t){var n=t.z;n??=lBe,e.traverse(function(e){e.z=n,e.z2=n})}function N3(e,t){P3(t).updateCommon(e,t),yBe(e,t)}function P3(e){return G3[e.__brushOption.brushType]}function F3(e,t,n){var r=e._panels;if(!r)return k3;var i,a=e._transform;return Q(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function xBe(e,t){var n=e._panels;if(!n)return k3;var r=t.__brushOption.panelId;return r==null?k3:n[r]}function I3(e){var t=e._covers,n=t.length;return Q(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function L3(e,t){var n=QA(e._covers,function(e){var t=e.__brushOption,n=HA(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function SBe(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return cBe(i*i+a*a,.5)>uBe}function CBe(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function wBe(e,t,n,r){var i=new WF;return i.add(new ZR({name:`main`,style:B3(n),silent:!0,draggable:!0,cursor:`move`,drift:ij(kBe,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:ij(L3,t,{isEnd:!0})})),Q(r,function(n){i.add(new ZR({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ij(kBe,e,t,i,n),ondragend:ij(L3,t,{isEnd:!0})}))}),i}function TBe(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=j3(i,dBe),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;z3(e,t,`main`,o,s,m,h),r.transformable&&(z3(e,t,`w`,c,l,a,_),z3(e,t,`e`,f,l,a,_),z3(e,t,`n`,c,l,g,a),z3(e,t,`s`,c,p,g,a),z3(e,t,`nw`,c,l,a,a),z3(e,t,`ne`,f,l,a,a),z3(e,t,`sw`,c,p,a,a),z3(e,t,`se`,f,p,a,a))}function R3(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(B3(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),Q([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?V3(e,n[0]):OBe(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?mBe[a]+`-resize`:null})})}function z3(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(MBe(H3(e,t,[[r,i],[r+a,i+o]])))}function B3(e){return qA({strokeNoScale:!0},e.brushStyle)}function EBe(e,t,n,r){var i=[A3(e,n),A3(t,r)],a=[j3(e,n),j3(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function DBe(e){return BV(e.group)}function V3(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[HV({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],DBe(e))]}function OBe(e,t){var n=[V3(e,t[0]),V3(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function kBe(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=jBe(t,i,a);Q(r,function(e){var t=pBe[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(EBe(s[0][0],s[1][0],s[0][1],s[1][1])),N3(t,n),L3(t,{isEnd:!1})}function ABe(e,t,n,r){var i=t.__brushOption.range,a=jBe(e,n,r);Q(i,function(e){e[0]+=a[0],e[1]+=a[1]}),N3(e,t),L3(e,{isEnd:!1})}function jBe(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function H3(e,t,n){var r=xBe(e,t);return r&&r!==k3?r.clipPath(n,e._transform):HA(n)}function MBe(e){var t=A3(e[0][0],e[1][0]),n=A3(e[0][1],e[1][1]),r=j3(e[0][0],e[1][0]),i=j3(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function NBe(e,t,n){if(!(!e._brushType||RBe(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=F3(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===k3||s.panelId===a.panelId)&&G3[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function U3(e){var t=e.event;t.preventDefault&&t.preventDefault()}function W3(e,t,n){return e.childOfName(`main`).contain(t,n)}function PBe(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),SBe(e)||i){if(a&&!i){o.brushMode===`single`&&I3(e);var c=HA(o);c.brushType=FBe(c.brushType,a),c.panelId=a===k3?null:a.panelId,i=e._creatingCover=_Be(e,c),e._covers.push(i)}if(i){var l=G3[FBe(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(H3(e,i,e._track)),r&&(vBe(e,i),l.updateCommon(e,i)),yBe(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&F3(e,t,n)&&I3(e)&&(s={isEnd:r,removeOnClick:!0});return s}function FBe(e,t){return e===`auto`?t.defaultBrushType:e}var IBe={mousedown:function(e){if(this._dragging)LBe(this,e);else if(!e.target||!e.target.draggable){U3(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=F3(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(NBe(this,e,r),this._dragging){U3(e);var i=PBe(this,e,r,!1);i&&L3(this,i)}},mouseup:function(e){LBe(this,e)}};function LBe(e,t){if(e._dragging){U3(t);var n=t.offsetX,r=t.offsetY,i=PBe(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&L3(e,i)}}function RBe(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var G3={lineX:zBe(0),lineY:zBe(1),rect:{createCover:function(e,t){function n(e){return e}return wBe({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=CBe(e);return EBe(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){TBe(e,t,n,r)},updateCommon:R3,contain:W3},polygon:{createCover:function(e,t){var n=new WF;return n.add(new XB({name:`main`,style:B3(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new YB({name:`main`,draggable:!0,drift:ij(ABe,e,t),ondragend:ij(L3,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:H3(e,t,n)})},updateCommon:R3,contain:W3}};function zBe(e){return{createCover:function(t,n){return wBe({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=CBe(t);return[A3(n[0][e],n[1][e]),j3(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=xBe(t,n);if(o!==k3&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),TBe(t,n,c,i)},updateCommon:R3,contain:W3}}function BBe(e){return e=K3(e),function(t){return GV(t,e)}}function VBe(e,t){return e=K3(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function HBe(e,t,n){var r=K3(e);return function(e,i){return r.contain(i[0],i[1])&&!RPe(e,t,n)}}function K3(e){return GM.create(e)}var UBe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new M3(n.getZr())).on(`brush`,rj(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!WBe(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new WF,this.group.add(this._axisGroup),e.get(`show`)){var a=KBe(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=GA({strokeContainThreshold:c},u),f=new h1(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),WV(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=GM.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:BBe(l),isTargetByCursor:HBe(l,a,r),getLinearBrushOtherExtent:VBe(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(GBe(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=QA(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(lK);function WBe(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function GBe(e){var t=e.axis;return QA(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function KBe(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var qBe={type:`axisAreaSelect`,event:`axisAreaSelected`};function JBe(e){e.registerAction(qBe,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var YBe={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function XBe(e){e.registerComponentView($ze),e.registerComponentModel(tBe),e.registerCoordinateSystem(`parallel`,sBe),e.registerPreprocessor(Yze),e.registerComponentModel(O3),e.registerComponentView(UBe),E0(e,`parallel`,O3,YBe),JBe(e)}function ZBe(e){ZJ(XBe),e.registerChartView(Rze),e.registerSeriesModel(Wze),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Jze)}var q3=`sankey`,QBe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)i[o].depth!=null&&i[o].depth>=0&&(a[i[o].depth]=new FH(i[o],this,t));return U4(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return GG(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return GG(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+q3,t.layoutMode=`box`,t.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:$.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:$.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(aK),$Be=function(){function e(){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 e}(),eVe=function(e){Z(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new $Be},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Xz(this)},t.prototype.downplay=function(){Zz(this)},t}(WR),tVe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=q3,t._mainGroup=new WF,t}return t.prototype.init=function(e,t){this._controller=new f2(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getGraph(),i=this._mainGroup,a=e.layoutInfo,o=a.width,s=a.height,c=e.getData(),l=e.getData(`edge`),u=e.get(`orient`);i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(e,n),Q2(e,n,this._controller,ZFe(i),null),r.eachEdge(function(t){var n=new eVe,r=fz(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var a=t.getModel(),c=a.getModel(`lineStyle`),d=c.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=u,u===`vertical`?(x=(m==null?f.x:m*o)+b.sy,S=(h==null?f.y:h*s)+f.dy,C=(v==null?g.x:v*o)+b.ty,w=y==null?g.y:y*s,T=x,E=S*(1-d)+w*d,D=C,O=S*d+w*(1-d)):(x=(m==null?f.x:m*o)+f.dx,S=(h==null?f.y:h*s)+b.sy,C=v==null?g.x:v*o,w=(y==null?g.y:y*s)+b.ty,T=x*(1-d)+C*d,E=S,D=x*d+C*(1-d),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(c.getItemStyle()),nVe(n.style,u,t);var k=``+a.get(`value`),A=yH(a,`edgeLabel`);vH(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,bj(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=a.getModel(`emphasis`);fB(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return nVe(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);lB(n,M===`adjacency`?t.getAdjacentDataIndices():M===`trajectory`?t.getTrajectoryDataIndices():M,j.get(`blurScope`),j.get(`disabled`))}),r.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),a=r.get(`localX`),l=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new ZR({shape:{x:a==null?n.x:a*o,y:l==null?n.y:l*s,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});vH(f,yH(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),fB(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),fz(f).dataType=`node`;var p=u.get(`focus`);lB(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),c.eachItemGraphicEl(function(t,r){c.getItemModel(r).get(`draggable`)&&(t.drift=function(t,i){this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/o,localY:this.shape.y/s})},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&i.setClipPath(rVe(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){K2(this.group,2,t.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=e.coordinateSystem=t4(e,t,n.x,n.y,n.width,n.height);K2(this.group,2,r,this._firstRender?null:e)},t.type=q3,t}(fK);function nVe(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);sj(r)&&sj(i)&&(e.fill=new iV(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function rVe(e,t,n){var r=new ZR({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return yV(r,{shape:{width:e.width+20}},t,n),r}var iVe=xL(q3,aVe);function aVe(e,t){e.eachSeriesByType(q3,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=$U(e,t).refContainer,a=XU(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;sVe(l),oVe(l,u,n,r,o,s,ej(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function oVe(e,t,n,r,i,a,o,s,c){cVe(e,t,n,i,a,s,c),pVe(e,t,a,i,r,o,s),SVe(e,s)}function sVe(e){Q(e,function(e){var t=Z3(e.outEdges,X3),n=Z3(e.inEdges,X3),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function cVe(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<e.length;f++)c[f]=e[f].inEdges.length,c[f]===0&&l.push(e[f]);for(var p=-1;l.length;){for(var m=0;m<l.length;m++){var h=l[m],g=h.hostGraph.data.getRawDataItem(h.dataIndex),_=g.depth!=null&&g.depth>=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;v<h.outEdges.length;v++){var y=h.outEdges[v],b=JA(t,y);s[b]=0;var x=y.node2,S=JA(e,x);--c[S]===0&&JA(u,x)<0&&u.push(x)}}++d,l=u,u=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw Error(`Sankey is a DAG, the original data has cycle!`);var C=p>d-1?p:d-1;o&&o!==`left`&&uVe(e,o,a,C),fVe(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function lVe(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function uVe(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var c=a[s];c.setLayout({skNodeHeight:o},!0);for(var l=0;l<c.inEdges.length;l++){var u=c.inEdges[l];JA(i,u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}Q(e,function(e){lVe(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else t===`justify`&&dVe(e,r)}function dVe(e,t){Q(e,function(e){!lVe(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function fVe(e,t,n){Q(e,function(e){var r=e.getLayout().depth*t;n===`vertical`?e.setLayout({y:r},!0):e.setLayout({x:r},!0)})}function pVe(e,t,n,r,i,a,o){var s=mVe(e,o);hVe(s,t,n,r,i,o),J3(s,i,n,r,o);for(var c=1;a>0;a--)c*=.99,gVe(s,c,o),J3(s,i,n,r,o),xVe(s,c,o),J3(s,i,n,r,o)}function mVe(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=oL(e,function(e){return e.getLayout()[r]});return hI(i.keys),Q(i.keys,function(e){n.push(i.buckets.get(e))}),n}function hVe(e,t,n,r,i,a){var o=1/0;Q(e,function(e){var t=e.length,s=0;Q(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c<o&&(o=c)}),Q(e,function(e){Q(e,function(e,t){var n=e.getLayout().value*o;a===`vertical`?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),Q(t,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})}function J3(e,t,n,r,i){var a=i===`vertical`?`x`:`y`;Q(e,function(e){e.sort(function(e,t){return e.getLayout()[a]-t.getLayout()[a]});for(var o,s,c,l=0,u=e.length,d=i===`vertical`?`dx`:`dy`,f=0;f<u;f++)s=e[f],c=l-s.getLayout()[a],c>0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function gVe(e,t,n){Q(e.slice().reverse(),function(e){Q(e,function(e){if(e.outEdges.length){var r=Z3(e.outEdges,_Ve,n)/Z3(e.outEdges,X3);if(isNaN(r)){var i=e.outEdges.length;r=i?Z3(e.outEdges,vVe,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-Y3(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Y3(e,n))*t;e.setLayout({y:o},!0)}}})})}function _Ve(e,t){return Y3(e.node2,t)*e.getValue()}function vVe(e,t){return Y3(e.node2,t)}function yVe(e,t){return Y3(e.node1,t)*e.getValue()}function bVe(e,t){return Y3(e.node1,t)}function Y3(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function X3(e){return e.getValue()}function Z3(e,t,n){for(var r=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function xVe(e,t,n){Q(e,function(e){Q(e,function(e){if(e.inEdges.length){var r=Z3(e.inEdges,yVe,n)/Z3(e.inEdges,X3);if(isNaN(r)){var i=e.inEdges.length;r=i?Z3(e.inEdges,bVe,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-Y3(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Y3(e,n))*t;e.setLayout({y:o},!0)}}})})}function SVe(e,t){var n=t===`vertical`?`x`:`y`;Q(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),Q(e,function(e){var t=0,n=0;Q(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),Q(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}var CVe=xL(q3,wVe);function wVe(e){e.eachSeriesByType(q3,function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,a=-1/0;Q(n,function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)}),Q(n,function(t){var n=new A4({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&Q(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function TVe(e){e.registerChartView(tVe),e.registerSeriesModel(QBe),e.registerLayout(iVe),e.registerVisual(CVe),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:mz,subType:q3,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),e4(e,mz,q3)}var EVe=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s,c=e.layout;a===`category`?(c=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`&&(c=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)),c||=o===`time`?`vertical`:`horizontal`,this._layout=c;var l=[`x`,`y`],u=c===`horizontal`?0:1,d=this._baseAxisDim=l[u],f=l[1-u],p=[r,i],m=p[u].get(`type`),h=p[1-u].get(`type`),g=e.data;if(g&&s){var _=[];Q(g,function(e,t){var n;aj(e)?(n=e.slice(),e.unshift(t)):aj(e.value)?(n=GA({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,_.push(n)}),e.data=_}var v=this.defaultValueDimensions,y=[{name:d,type:nY(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:f,type:nY(h),dimsDef:v.slice()}];return l0(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:ij(hW,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e.prototype.getWhiskerBoxesLayout=function(){return this._layout},e}();function Q3(e,t){for(var n=t.ends.length,r=0,i=0;i<n;i++)e.contain(t.ends[i][0],t.ends[i][1])&&r++;return r?+(r<n):2}var $3=`boxplot`,DVe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`min`,defaultTooltip:!0},{name:`Q1`,defaultTooltip:!0},{name:`median`,defaultTooltip:!0},{name:`Q3`,defaultTooltip:!0},{name:`max`,defaultTooltip:!0}],n.visualDrawType=`stroke`,n}return t.type=`series.`+$3,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:$.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:$.color.shadow}},animationDuration:800},t}(aK);XA(DVe,EVe,!0);var OVe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=$3,t}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o=+(e.getWhiskerBoxesLayout()===`horizontal`),s=e.get(`clip`,!0),c=e.coordinateSystem,l=c.getArea&&c.getArea(),u=s&&F$(c,!1,e);r.diff(a).add(function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=s?Q3(l,t):0;if(n===2)return;var a=jVe(t,r,e,o,!0);I$(n===1,a,u),r.setItemGraphicEl(e,a),i.add(a)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!r.hasValue(e)){i.remove(n);return}var c=r.getItemLayout(e),d=s?Q3(l,c):0;if(d===2){i.remove(n);return}n?(wV(n),MVe(c,n,r,e)):n=jVe(c,r,e,o),I$(d===1,n,u),i.add(n),r.setItemGraphicEl(e,n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type=$3,t}(fK),kVe=function(){function e(){}return e}(),AVe=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`boxplotBoxPath`,n}return t.prototype.getDefaultShape=function(){return new kVe},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(WR);function jVe(e,t,n,r,i){var a=e.ends,o=new AVe({shape:{points:i?NVe(a,r,e):a}});return MVe(e,o,t,n,i),o}function MVe(e,t,n,r,i){var a=n.hostModel,o=TV[i?`initProps`:`updateProps`];o(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,`style`)),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),c=s.getModel(`emphasis`);fB(t,s),lB(t,c.get(`focus`),c.get(`blurScope`),c.get(`disabled`))}function NVe(e,t,n){return QA(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}var PVe=_L(),FVe=xL($3,IVe);function IVe(e){var t=D1($3);DX(e,t,function(e){var n=fAe(e,t);if(n){var r=LVe(e,n);TX(e,t,function(e){var t=e.seriesIndex;RVe(e,r.boxOffsetList[t],r.boxWidthList[t])})}})}function LVe(e,t){var n=[],r=[],i=[],a=hZ(e,{fromStat:{key:D1($3)},min:1}).w;TX(e,D1($3),function(e){var t=e.get(`boxWidth`);aj(t)||(t=[t,t]),i[e.seriesIndex]=[dI(t[0],a)||0,dI(t[1],a)||0]});var o=a*.8-2,s=o/t*.3,c=(o-s*(t-1))/t,l=c/2-o/2;return TX(e,D1($3),function(e){var t=e.seriesIndex;r[t]=l,l+=s+c,n[t]=eI(tI(c,i[t][0]),i[t][1])}),{boxOffsetList:r,boxWidthList:n}}function RVe(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o=e.getWhiskerBoxesLayout()===`horizontal`?0:1,s=1-o,c=[`x`,`y`],l=i.mapDimension(c[o]),u=i.mapDimensionsAll(c[s]);if(l==null||u.length<5)return;for(var d=0;d<i.count();d++){var f=i.get(l,d),p=y(f,u[2],d),m=y(f,u[0],d),h=y(f,u[1],d),g=y(f,u[3],d),_=y(f,u[4],d),v=[];b(v,h,!1),b(v,g,!0),v.push(m,h,_,g),x(v,m),x(v,_),x(v,p),i.setItemLayout(d,{initBaseline:p[s],ends:v})}function y(e,n,a){var c=i.get(n,a),l=[];l[o]=e,l[s]=c;var u;return isNaN(e)||isNaN(c)?u=[NaN,NaN]:(u=r.dataToPoint(l),u[o]+=t),u}function b(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}function zVe(e){PVe(e,function(){var t=D1($3);MX(e,{key:t,seriesType:$3,getMetrics:k1}),VX(t,E1(t))})}function BVe(e,t){t||={};for(var n=[],r=[],i=t.boundIQR,a=i===`none`||i===0,o=0;o<e.length;o++){var s=hI(e[o].slice()),c=OI(s,.25),l=OI(s,.5),u=OI(s,.75),d=s[0],f=s[s.length-1],p=(i??1.5)*(u-c),m=a?d:Math.max(d,c-p),h=a?f:Math.min(f,u+p),g=t.itemNameFormatter,_=oj(g)?g({value:o}):sj(g)?g.replace(`{value}`,o+``):o+``;n.push([_,m,c,l,u,h]);for(var v=0;v<s.length;v++){var y=s[v];if(y<m||y>h){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var VVe={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&RI(``);var n=BVe(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function HVe(e){e.registerSeriesModel(DVe),e.registerChartView(OVe),e.registerLayout(FVe),e.registerTransform(VVe),zVe(e)}var e6=`candlestick`,UVe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.`+e6,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.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},t}(aK);XA(UVe,EVe,!0);var WVe=[`itemStyle`,`borderColor`],GVe=[`itemStyle`,`borderColor0`],KVe=[`itemStyle`,`borderColorDoji`],qVe=[`itemStyle`,`color`],JVe=[`itemStyle`,`color0`];function t6(e,t){return t.get(e>0?qVe:JVe)}function n6(e,t){return t.get(e===0?KVe:e>0?WVe:GVe)}var YVe={seriesType:e6,plan:uK(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=t6(i,r),a.stroke=n6(i,r)||a.fill,GA(t.ensureUniqueItemVisual(n,`style`),a)}}}}},XVe=[`color`,`borderColor`],ZVe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){nH(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea(),c=a&&F$(o,!1,e);this._data||r.removeAll();var l=tHe(e);t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n),u=a?Q3(s,o):0;if(u===2)return;var d=r6(o,n,l,!0);yV(d,{shape:{points:o.ends}},e,n),I$(u===1,d,c),i6(d,t,n,i),r.add(d),t.setItemGraphicEl(n,d)}}).update(function(o,u){var d=n.getItemGraphicEl(u);if(!t.hasValue(o)){r.remove(d);return}var f=t.getItemLayout(o),p=a?Q3(s,f):0;if(p===2){r.remove(d);return}d?(vV(d,{shape:{points:f.ends}},e,o),wV(d)):d=r6(f,o,l),i6(d,t,o,i),I$(p===1,d,c),r.add(d),t.setItemGraphicEl(o,d)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),rHe(e,this.group);var t=e.get(`clip`,!0)?F$(e.coordinateSystem,!1,e):null;I$(!!t,this.group,t)},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i=tHe(t),a;(a=e.next())!=null;){var o=r6(n.getItemLayout(a),a,i);i6(o,n,a,r),o.incremental=yL(t),this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){rHe(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),I$(!1,this.group,null),this._data=null},t.type=e6,t}(fK),QVe=function(){function e(){}return e}(),$Ve=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new QVe},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(WR);function r6(e,t,n,r){var i=e.ends;return new $Ve({shape:{points:r?eHe(i,n,e):i},z2:100})}function i6(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0;var a=i.getShallow(`cursor`);a&&e.attr(`cursor`,a),e.__simpleBox=r,fB(e,i);var o=t.getItemLayout(n).sign;Q(e.states,function(e,t){var n=i.getModel(t),r=t6(o,n),a=n6(o,n)||r,s=e.style||={};r&&(s.fill=r),a&&(s.stroke=a)});var s=i.getModel(`emphasis`);lB(e,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}function eHe(e,t,n){return QA(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function tHe(e){return+(e.getWhiskerBoxesLayout()===`horizontal`)}var nHe=function(){function e(){}return e}(),a6=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new nHe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(WR);function rHe(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new a6({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new a6({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new a6({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),o6(1,o,e,i),o6(-1,s,e,i),o6(0,c,e,i),r&&(o.incremental=yL(e),s.incremental=yL(e),c.incremental=yL(e)),n&&n.push(o,s,c)}function o6(e,t,n,r){var i=n6(e,n)||t6(e,n),a=n.getModel(`itemStyle`).getItemStyle(XVe);t.useStyle(a),t.style.fill=null,t.style.stroke=i;var o=n.get(`cursor`);o&&t.attr(`cursor`,o)}function iHe(e){!e||!aj(e.series)||Q(e.series,function(e){uj(e)&&e.type===`k`&&(e.type=e6)})}var aHe=_L(),oHe={seriesType:e6,plan:uK(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=cHe(e,n),i=e.getWhiskerBoxesLayout()===`horizontal`?0:1,a=1-i,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=QA(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),l=c[0],u=c[1],d=c[2],f=c[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||c.length<4)return;return{progress:e.pipelineContext.large?m:p};function p(e,n){for(var o,c=n.getStore();(o=e.next())!=null;){var p=c.get(s,o),m=c.get(l,o),h=c.get(u,o),g=c.get(d,o),_=c.get(f,o),v=eI(m,h),y=tI(m,h),b=E(v,p),x=E(y,p),S=E(g,p),C=E(_,p),w=[];D(w,x,0),D(w,b,1),w.push(k(C),k(x),k(S),k(b));var T=!!n.getItemModel(o).get([`itemStyle`,`borderColorDoji`]);n.setItemLayout(o,{sign:sHe(c,o,m,h,u,T),initBaseline:m>h?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=zV(a[i]+r/2,1,!1),o[i]=zV(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=zV(e[i],1),e}}function m(n,r){for(var o=E$(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=sHe(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function sHe(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function cHe(e,t){var n=hZ(e.getBaseAxis(),{fromStat:{key:D1(e6)},min:1}).w,r=dI(yj(e.get(`barMaxWidth`),n),n),i=dI(yj(e.get(`barMinWidth`),1),n),a=e.get(`barWidth`);return a==null?tI(eI(n/2,r),i):dI(a,n)}function lHe(e){aHe(e,function(){var t=D1(e6);MX(e,{key:t,seriesType:e6,getMetrics:k1}),VX(t,E1(t))})}function uHe(e){e.registerChartView(ZVe),e.registerSeriesModel(UVe),e.registerPreprocessor(iHe),e.registerVisual(YVe),e.registerLayout(oHe),lHe(e)}function dHe(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var fHe=function(e){Z(t,e);function t(t,n){var r=e.call(this)||this,i=new _$(t,n),a=new WF;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=tq(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate(``,!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}dHe(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=[`symbolType`,`period`,`rippleScale`,`rippleNumber`],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}dHe(n,e)},t.prototype.highlight=function(){Xz(this)},t.prototype.downplay=function(){Zz(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,`symbol`),s=nq(e.getItemVisual(t,`symbolSize`)),c=e.getItemVisual(t,`style`),l=c&&c.fill,u=a.getModel(`emphasis`);i.setScale(s),i.traverse(function(e){e.setStyle(`fill`,l)});var d=rq(e.getItemVisual(t,`symbolOffset`),s);d&&(i.x=d[0],i.y=d[1]),i.rotation=(e.getItemVisual(t,`symbolRotate`)||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get(`showEffectOn`),f.rippleScale=a.get([`rippleEffect`,`scale`]),f.brushType=a.get([`rippleEffect`,`brushType`]),f.period=a.get([`rippleEffect`,`period`])*1e3,f.effectOffset=t/e.count(),f.z=r.getShallow(`z`)||0,f.zlevel=r.getShallow(`zlevel`)||0,f.symbolType=o,f.color=l,f.rippleEffectColor=a.get([`rippleEffect`,`color`]),f.rippleNumber=a.get([`rippleEffect`,`number`]),f.showEffectOn===`render`?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){e===`emphasis`?f.showEffectOn!==`render`&&n.startEffectAnimation(f):e===`normal`&&f.showEffectOn!==`render`&&n.stopEffectAnimation()}),this._effectCfg=f,lB(this,u.get(`focus`),u.get(`blurScope`),u.get(`disabled`))},t.prototype.fadeOut=function(e){e&&e()},t}(WF),pHe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new S$(fHe)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,mHe(e)),this.group.add(i.group)},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=$$(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(mHe(e))},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=jM(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type=`effectScatter`,t}(fK);function mHe(e){return{clipShape:L$(e)}}var hHe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return TY(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type=`series.effectScatter`,t.dependencies=[`grid`,`polar`],t.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},t}(aK);function gHe(e){e.registerChartView(pHe),e.registerSeriesModel(hHe),e.registerLayout($$(`effectScatter`))}var _He=function(e){Z(t,e);function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return t.prototype.createLine=function(e,t,n){return new s3(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel(`effect`),r=n.get(`symbolSize`),i=n.get(`symbol`);aj(r)||(r=[r,r]);var a=e.getItemVisual(t,`style`),o=n.get(`color`)||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),s=tq(i,-.5,-.5,1,1,o),s.z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle(`shadowColor`,o),s.setStyle(n.getItemStyle([`color`])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=t.get(`period`)*1e3,o=t.get(`loop`),s=t.get(`roundTrip`),c=t.get(`constantSpeed`),l=vj(t.get(`delay`),function(t){return t/e.count()*a/3});if(r.ignore=!0,this._updateAnimationPoints(r,i),c>0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=oj(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return Zj(e.__p1,e.__cp1)+Zj(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<=1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=FN,c=IN;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<=1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<=1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=Zj(o,a)*1.05,i===1&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):e.__lastT===1?e.scaleY=2*Zj(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel(`effect`);this._updateEffectAnimation(e,n,t)},t}(WF),vHe=function(e){Z(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return t.prototype._createPolyline=function(e,t,n){var r=new XB({shape:{points:e.getItemLayout(t)}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;vV(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var l=i.getModel(`emphasis`);a=l.getModel(`lineStyle`).getLineStyle(),c=l.get(`disabled`),o=l.get(`focus`),s=l.get(`blurScope`)}r.useStyle(e.getItemVisual(t,`style`)),r.style.fill=null,r.style.strokeNoScale=!0;var u=r.ensureState(`emphasis`);u.style=a,lB(this,o,s,c)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.stopAnimation(),n.setShape(`points`,e.getItemLayout(t))},t}(WF),yHe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return t.prototype.createLine=function(e,t,n){return new vHe(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=Zj(a,o),n.push(r)}if(r===0){this._length=0;return}for(var i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<=1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a=this._lastFrame,o;if(t<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>t);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<=1?l[0]-c[0]:c[0]-l[0],d=e.__t<=1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(_He),bHe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),xHe=function(e){Z(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new bHe},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i<n.length;){var a=n[i++];if(a>0){e.moveTo(n[i++],n[i++]);for(var o=1;o<a;o++)e.lineTo(n[i++],n[i++])}}else for(i=this._off;i<n.length;){var s=n[i++],c=n[i++],l=n[i++],u=n[i++];if(e.moveTo(s,c),r>0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var c=r[s++];if(c>0)for(var l=r[s++],u=r[s++],d=1;d<c;d++){var f=r[s++],p=r[s++];if(jR(l,u,f,p,a,e,t))return o}o++}else for(var o=0,s=0;s<r.length;){var l=r[s++],u=r[s++],f=r[s++],p=r[s++];if(i>0){if(MR(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(jR(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],c=t[o++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(c,r),a=Math.max(c,a)}e=this._rect=new GM(n,r,i,a)}return e},t}(WR),SHe=function(){function e(){this.group=new WF}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout(`linesPoints`)}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout(`linesPoints`),a=r&&r.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.setShape({segs:s})}else{this._newAdded=[];var c=this._create();c.incremental=n,c.setShape({segs:i}),this._setCommon(c,t),c.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new xHe({cursor:`default`,ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get(`polyline`),curveness:r.get([`lineStyle`,`curveness`])}),e.useStyle(r.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 a=fz(e);a.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),CHe={seriesType:`lines`,plan:uK(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u<i.end;u++)l+=e.getLineCoordsCount(u);s=new Float32Array(c+l*2)}else s=new Float32Array(c*4);for(var d=0,f=[],u=i.start;u<i.end;u++){var p=e.getLineCoords(u,o);n&&(s[d++]=p);for(var m=0;m<p;m++)f=t.dataToPoint(o[m],!1,f),s[d++]=f[0],s[d++]=f[1]}a.setLayout(`linesPoints`,s)}else for(var u=i.start;u<i.end;u++){var h=a.getItemModel(u),p=e.getLineCoords(u,o),g=[];if(n)for(var _=0;_<p;_++)g.push(t.dataToPoint(o[_]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var v=h.get([`lineStyle`,`curveness`]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}a.setItemLayout(u,g)}}}}}},wHe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get(`zlevel`),o=e.get([`effect`,`trailLength`]),s=n.getZr(),c=!!mH(n);c&&s.painter.getLayer(a).clear(!0),this._lastZlevel!=null&&c&&s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&c&&s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}),i.updateData(r);var l=e.get(`clip`,!0)&&F$(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData(),yL(t)),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=this._lineDraw;if(!this._finished||!i||!i.updateLayout)return{update:!0};var a=CHe.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),i.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new SHe:new c3(i?r?yHe:vHe:r?_He:s3),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=mH(e);t&&this._lastZlevel!=null&&t.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(fK),THe=typeof Uint32Array>`u`?Array:Uint32Array,EHe=typeof Float64Array>`u`?Array:Float64Array;function DHe(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=QA(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),WA([t,e[0],e[1]])}))}var OHe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],DHe(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(DHe(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))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=jj(this._flatCoords,t.flatCoords),this._flatCoordsOffset=jj(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow(`coords`)},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+i*2],t[i][1]=this._flatCoords[n+i*2+1];return r}else{for(var a=this._getCoordsFromItemModel(e),i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length}},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),lj(e[0])){for(var n=e.length,r=new THe(n),i=new EHe(n),a=0,o=0,s=0,c=0;c<n;){s++;var l=e[c++];r[o++]=a+t,r[o++]=l;for(var u=0;u<l;u++){var d=e[c++],f=e[c++];i[a++]=d,i[a++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new yY([`value`],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;if(a!=null)return a instanceof Array?a[i]:a}),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getItemModel(e),o=a.get(`name`);if(!o){var s=a.get(`fromName`),c=a.get(`toName`),l=[];s!=null&&l.push(s),c!=null&&l.push(c),o=l.join(` > `)}return GG(`nameValue`,{name:o,value:i,noValue:i==null||isNaN(i)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},t.type=`series.lines`,t.dependencies=[`grid`,`polar`,`geo`,`calendar`],t.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}},t}(aK);function s6(e){return e instanceof Array||(e=[e,e]),e}var kHe={seriesType:`lines`,reset:function(e){var t=s6(e.get(`symbol`)),n=s6(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=s6(n.getShallow(`symbol`,!0)),i=s6(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function AHe(e){e.registerChartView(wHe),e.registerSeriesModel(OHe),e.registerLayout(CHe),e.registerVisual(kHe)}var jHe=256,MHe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=kA.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p<f;++p){var m=e[p],h=m[0],g=m[1],_=m[2],v=r(_);d.globalAlpha=v,d.drawImage(o,h-l,g-l)}if(!u.width||!u.height)return u;for(var y=d.getImageData(0,0,u.width,u.height),b=y.data,x=0,S=b.length,C=this.minOpacity,w=this.maxOpacity-C;x<S;){var v=b[x+3]/256,T=Math.floor(v*(jHe-1))*4;if(v>0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=kA.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=$.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function NHe(e,t,n){var r=e[1]-e[0];t=QA(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r<i;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function PHe(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}var FHe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):z$(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(z$(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){nH(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=R$(a,`cartesian2d`),s=R$(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=hZ(f).w+.5,l=hZ(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=yH(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;E<r;E++){var D=void 0,O=h.getItemVisual(E,`style`);if(o){var k=h.get(T[0],E),A=h.get(T[1],E);if(isNaN(h.get(T[2],E))||isNaN(k)||isNaN(A)||k<u[0]||k>u[1]||A<d[0]||A>d[1])continue;var j=a.dataToPoint([k,A]);D=new ZR({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var M=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(_j(M.x))continue;D=new ZR({z2:1,shape:M,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var N=a.dataToLayout([h.get(T[0],E)]),M=N.contentRect||N.rect;if(_j(M.x)||_j(M.y))continue;D=new ZR({z2:1,shape:M,style:O})}if(h.hasItemOption){var P=h.getItemModel(E),F=P.getModel(`emphasis`);g=F.getModel(`itemStyle`).getItemStyle(),_=P.getModel([`blur`,`itemStyle`]).getItemStyle(),v=P.getModel([`select`,`itemStyle`]).getItemStyle(),y=P.get([`itemStyle`,`borderRadius`]),S=F.get(`focus`),C=F.get(`blurScope`),w=F.get(`disabled`),b=yH(P)}D.shape.r=y;var I=e.getRawValue(E),L=`-`;I&&I[2]!=null&&(L=I[2]+``),vH(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:L}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,lB(D,S,C,w),D.incremental=yL(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new MHe;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?PHe(v,n.option.range):NHe(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new KR({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(fK),IHe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return TY(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=LU.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:$.color.primary}}},t}(aK);function LHe(e){e.registerChartView(FHe),e.registerSeriesModel(IHe)}var RHe=[`itemStyle`,`borderWidth`],zHe=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],c6=new NB,BHe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=A1,t}return t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:zHe[+s],categoryDim:zHe[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=VHe(i,e,ZHe(i,e),l),n=eUe(i,l,t);i.setItemGraphicEl(e,n),r.add(n),iUe(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=VHe(i,e,ZHe(i,e),l),s=rUe(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?tUe(n,l,o):n=eUe(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),iUe(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&nUe(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?F$(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){nUe(r,fz(t).dataIndex,e,t)}):n.removeAll()},t.type=A1,t}(fK);function VHe(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};HHe(n,a,i,r,d),UHe(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),WHe(n,d.symbolScale,c,r,d);var f=d.symbolSize;return GHe(n,f,i,a,o,rq(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function HHe(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(aj(o)){var d=[l6(s,o[0])-c,l6(s,o[1])-c];d[1]<d[0]&&d.reverse(),u=d[l]}else u=o==null?t?r.coordSysExtent[a.index][l]-c:n[a.wh]:l6(s,o)-c;i.boundingLength=u,t&&(i.repeatCutLength=n[a.wh]);var f=a.xy===`x`,p=s.inverse;i.pxSign=f&&!p||!f&&p?u>=0?1:-1:u>0?1:-1}function l6(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function UHe(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=aj(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=dI(m[d.index],f),m[u.index]=dI(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function WHe(e,t,n,r,i){var a=e.get(RHe)||0;a&&(c6.attr({scaleX:t[0],scaleY:t[1],rotation:n}),c6.updateTransform(),a/=c6.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function GHe(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=vj(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=dI(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=jI(r),w=C?r:aUe((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?aUe((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=g/2*m,E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=GA({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function KHe(e){var t=e.symbolPatternSize,n=tq(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function qHe(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(u6(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?d6(e,null,m(u),n,r):d6(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<l;u++){var f=KHe(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var p=m(u);d6(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function m(e){var t=s.slice(),r=n.pxSign,i=e;return(n.symbolRepeatDirection===`start`?r>0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function JHe(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?d6(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=KHe(n),i.add(a),d6(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function YHe(e,t,n){var r=GA({},t.barRectShape),i=e.__pictorialBarRect;i?d6(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new ZR({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function XHe(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=GA({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)vV(i,{shape:a},s,c);else{a[o.wh]=0,i=new ZR({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],TV[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function ZHe(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=QHe,n.isAnimationEnabled=$He,n}function QHe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function $He(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function eUe(e,t,n,r){var i=new WF,a=new WF;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?qHe(i,t,n):JHe(i,t,n),YHe(i,n,r),XHe(i,t,n,r),i.__pictorialShapeStr=rUe(e,n),i.__pictorialSymbolMeta=n,i}function tUe(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;vV(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?qHe(e,t,n,!0):JHe(e,t,n,!0),YHe(e,n,!0),XHe(e,t,n,!0)}function nUe(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];u6(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Q(a,function(e){xV(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function rUe(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function u6(e,t,n){Q(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function d6(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&TV[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function iUe(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);u6(e,function(e){if(e instanceof KR){var t=e.style;e.useStyle(GA({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,vH(m,yH(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:h$(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),lB(e,u,d,a.get(`disabled`))}function aUe(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var oUe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.`+A1,t.dependencies=[`grid`],t.defaultOption=LH(U1.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:$.color.primary}}}),t}(U1);function sUe(e){e.registerChartView(BHe),e.registerSeriesModel(oUe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,z1(A1)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,B1(A1)),H1(e)}var f6=2,p6=`themeRiver`,cUe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new u0(rj(this.getData,this),rj(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=oL(e,function(e){return n.hasOwnProperty(e[0]+``)||(n[e[0]+``]=-1),e[2]}),i=[];r.buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,c=0;c<i[o].dataList.length;++c){var l=i[o].dataList[c][0]+``;n[l]=o}for(var l in n)n.hasOwnProperty(l)&&n[l]!==o&&(n[l]=o,e[t]=[l,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents(`singleAxis`,nL).models[0].get(`type`),r=ej(e.data,function(e){return e[2]!==void 0}),i=this.fixData(r||[]),a=[],o=this.nameMap=Aj(),s=0,c=0;c<i.length;++c)a.push(i[c][f6]),o.get(i[c][f6])||(o.set(i[c][f6],s),s++);var l=bY(i,{coordDimensions:[`single`],dimensionsDefine:[{name:`time`,type:nY(n)},{name:`value`,type:`float`},{name:`name`,type:`ordinal`}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new yY(l,this);return u.initData(i),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension(`single`),a=oL(n,function(t){return e.get(`name`,t)}),o=[];return a.buckets.each(function(t,n){t.sort(function(t,n){return e.get(i,t)-e.get(i,n)}),o.push({name:n,indices:t})}),o},t.prototype.getAxisTooltipData=function(e,t,n){aj(e)||(e=e?[e]:[]);for(var r=this.getData(),i=this.getLayerSeries(),a=[],o=i.length,s,c=0;c<o;++c){for(var l=Number.MAX_VALUE,u=-1,d=i[c].indices.length,f=0;f<d;++f){var p=r.get(e[0],i[c].indices[f]),m=Math.abs(p-t);m<=l&&(s=p,l=m,u=i[c].indices[f])}a.push(u)}return{dataIndices:a,nestestValue:s}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return GG(`nameValue`,{name:r.getName(e),value:r.get(r.mapDimension(`value`),e)})},t.type=`series.`+p6,t.dependencies=[`singleAxis`],t.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}}},t}(aK),lUe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=p6,t._layers=[],t}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout(`layoutInfo`),c=s.rect,l=s.boundaryGap;a.x=0,a.y=c.y+l[0];function u(e){return e.name}var d=new eY(this._layersSeries||[],o,u,u),f=[];d.add(rj(p,this,`add`)).update(rj(p,this,`update`)).remove(rj(p,this,`remove`)).execute();function p(t,n,s){var c=i._layers;if(t===`remove`){a.remove(c[n]);return}for(var l=[],u=[],d,p=o[n].indices,m=0;m<p.length;m++){var h=r.getItemLayout(p[m]),g=h.x,_=h.y0,v=h.y;l.push(g,_),u.push(g,_+v),d=r.getItemVisual(p[m],`style`)}var y,b=r.getItemLayout(p[0]),x=e.getModel(`label`).get(`margin`),S=e.getModel(`emphasis`);if(t===`add`){var C=f[n]=new WF;y=new M$({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(y),a.add(C),e.isAnimationEnabled()&&y.setClipPath(uUe(y.getBoundingRect(),e,function(){y.removeClipPath()}))}else{var C=c[s];y=C.childAt(0),a.add(C),f[n]=C,vV(y,{shape:{points:l,stackedOnPoints:u}},e),wV(y)}vH(y,yH(e),{labelDataIndex:p[m-1],defaultText:r.getName(p[m-1]),inheritColor:d.fill},{normal:{verticalAlign:`middle`}}),y.setTextConfig({position:null,local:!0});var w=y.getTextContent();w&&(w.x=b.x-x,w.y=b.y0+b.y/2),y.useStyle(d),r.setItemGraphicEl(n,y),fB(y,e),lB(y,S.get(`focus`),S.get(`blurScope`),S.get(`disabled`))}this._layersSeries=o,this._layers=f},t.type=p6,t}(fK);function uUe(e,t,n){var r=new ZR({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return yV(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var dUe=xL(p6,fUe);function fUe(e,t){e.eachSeriesByType(p6,function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get(`boundaryGap`),o=n.getAxis();r.boundaryGap=a,o.orient===`horizontal`?(a[0]=dI(a[0],i.height),a[1]=dI(a[1],i.height),pUe(t,e,i.height-a[0]-a[1])):(a[0]=dI(a[0],i.width),a[1]=dI(a[1],i.width),pUe(t,e,i.width-a[0]-a[1])),t.setLayout(`layoutInfo`,r)})}function pUe(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension(`single`),o=e.mapDimension(`value`),s=QA(i,function(t){return QA(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(o,t),n})}),c=mUe(s),l=c.y0,u=n/c.max,d=i.length,f=i[0].indices.length,p,m=0;m<f;++m){p=l[m]*u,e.setItemLayout(i[0].indices[m],{layerIndex:0,x:s[0][m][0],y0:p,y:s[0][m][1]*u});for(var h=1;h<d;++h)p+=s[h-1][m][1]*u,e.setItemLayout(i[h].indices[m],{layerIndex:h,x:s[h][m][0],y0:p,y:s[h][m][1]*u})}}function mUe(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,c=0;c<t;++c)s+=e[c][o][1];s>a&&(a=s),r.push(s)}for(var l=0;l<n;++l)i[l]=(a-r[l])/2;a=0;for(var u=0;u<n;++u){var d=r[u]+i[u];d>a&&(a=d)}return{y0:i,max:a}}function hUe(e){e.registerChartView(lUe),e.registerSeriesModel(cUe),e.registerLayout(dUe),e.registerProcessor(c0(p6))}var gUe=2,_Ue=4,vUe=function(e){Z(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=gUe,a.textConfig={inside:!0},fz(a).seriesIndex=n.seriesIndex;var o=new tz({z2:_Ue,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;fz(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=GA({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=jq(d,i)),GA(l,q1(o.getModel(`itemStyle`),l,!0)),Q(kz,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=q1(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,yV(a,{shape:{r:c.r}},n,t.dataIndex)):(vV(a,{shape:l},n),wV(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?jj(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;lB(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)<f)),Q(Az,function(r){var f=r===`normal`?n.getModel(`label`):n.getModel([r,`label`]),m=r===`normal`,h=m?u:u.ensureState(r),g=e.getFormattedLabel(d,r);m&&(g||=t.node.name),h.style=bH(f,{},null,r!==`normal`,!0),g&&(h.style.text=g);var _=f.get(`show`);_!=null&&!m&&(h.ignore=!_);var v=p(f,`position`),y=m?l:l.states[r],b=y.style.fill;y.textConfig={outsideFill:f.get(`color`)===`inherit`?b:null,inside:v!==`outside`};var x,S=p(f,`distance`)||0,C=p(f,`align`),w=p(f,`rotate`),T=Math.PI*.5,E=Math.PI*1.5,D=PR(w===`tangential`?Math.PI/2-o:o),O=D>T&&!CI(D-T)&&D<E;v===`outside`?(x=i.r+S,C=O?`right`:`left`):!C||C===`center`?(x=i.r0===0&&CI(a-2*Math.PI)?0:(i.r+i.r0)/2,C=`center`):C===`left`?(x=i.r0+S,C=O?`right`:`left`):C===`right`&&(x=i.r-S,C=O?`left`:`right`),h.style.align=C,h.style.verticalAlign=p(f,`verticalAlign`)||`middle`,h.x=x*s+i.cx,h.y=x*c+i.cy;var k=0;w===`radial`?k=PR(-o)+(O?Math.PI:0):w===`tangential`?k=PR(Math.PI/2-o)+(O?Math.PI:0):lj(w)&&(k=w*Math.PI/180),h.rotation=PR(k)});function p(e,t){return e.get(t)??r.get(t)}u.dirtyStyle()},t}(KB),m6=`sunburst`,yUe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};bUe(n);var r=this._levelModels=QA(e.levels||[],function(e){return new FH(e,this,t)},this),i=p4.createTree(n,this,a);function a(e){e.wrapMethod(`getItemModel`,function(e,t){var n=r[i.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=g4(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){_Le(this)},t.type=`series.`+m6,t.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`},t}(aK);function bUe(e){var t=0;Q(e.children,function(e){bUe(e);var n=e.value;aj(n)&&(n=n[0]),t+=n});var n=e.value;aj(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),aj(e.value)?e.value[0]=n:e.value=n}var h6=`sunburstRootToNode`,xUe=`sunburstHighlight`,SUe=`sunburstUnhighlight`;function CUe(e){e.registerAction({type:h6,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},n);function n(t,n){var r=m4(e,[h6],t);if(r){var i=t.getViewRoot();i&&(e.direction=h4(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}}),e.registerAction({type:xUe,update:`none`},function(e,t,n){e=GA({},e),t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},r);function r(t){var n=m4(e,[xUe],t);n&&(e.dataIndex=n.node.dataIndex)}n.dispatchAction(GA(e,{type:`highlight`}))}),e.registerAction({type:SUe,update:`updateView`},function(e,t,n){e=GA({},e),n.dispatchAction(GA(e,{type:`downplay`}))})}var wUe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=m6,t}return t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),c=this.group,l=e.get(`renderLabelForZeroData`),u=[];s.eachNode(function(e){u.push(e)}),d(u,this._oldChildren||[]),m(o,s),this._initEvents(),this._oldChildren=u;function d(e,t){if(e.length===0&&t.length===0)return;new eY(t,e,n,n).add(r).update(r).remove(ij(r,null)).execute();function n(e){return e.getId()}function r(n,r){f(n==null?null:e[n],r==null?null:t[r])}}function f(r,i){if(!l&&r&&!r.getValue()&&(r=null),r!==o&&i!==o){if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):p(i);else if(r){var s=new vUe(r,e,t,n);c.add(s),a.setItemGraphicEl(r.dataIndex,s)}}}function p(e){e&&(e.piece&&=(c.remove(e.piece),null))}function m(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new vUe(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&PU(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:h6,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=m6,t}(fK),TUe=xL(m6,EUe);function EUe(e){var t={};function n(e,n,r){if(e.depth===0)return $.color.neutral50;for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&sj(a)&&(a=rP(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(m6,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),GA(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}var DUe=Math.PI/180,OUe=xL(m6,kUe);function kUe(e,t){e.eachSeriesByType(m6,function(e){var n=e.get(`center`),r=e.get(`radius`);aj(r)||(r=[0,r]),aj(n)||(n=[n,n]);var i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a),s=dI(n[0],i),c=dI(n[1],a),l=dI(r[0],o/2),u=dI(r[1],o/2),d=-e.get(`startAngle`)*DUe,f=e.get(`minAngle`)*DUe,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&AUe(m,g);var _=0;Q(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;a<f&&(a=f),r=n+T*a;var u=t.depth-h-(b?-1:1),d=l+S*u,m=l+S*(u+1),g=e.getLevelModel(t);if(g){var _=g.get(`r0`,!0),x=g.get(`r`,!0),D=g.get(`radius`,!0);D!=null&&(_=D[0],x=D[1]),_!=null&&(d=dI(_,o/2)),x!=null&&(m=dI(x,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:C,cx:s,cy:c,r0:d,r:m})}if(t.children&&t.children.length){var O=0;Q(t.children,function(e){O+=E(e,n+O)})}return r-n}};if(b){var D=l,O=l+S,k=Math.PI*2;p.setLayout({angle:k,startAngle:d,endAngle:d+k,clockwise:C,cx:s,cy:c,r0:D,r:O})}E(m,d)})}function AUe(e,t){var n=e.children||[];e.children=jUe(n,t),n.length&&Q(e.children,function(e){AUe(e,t)})}function jUe(e,t){if(oj(t)){var n=QA(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),QA(n,function(t){return e[t.index]})}else{var r=t===`asc`;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return n===0?(e.dataIndex-t.dataIndex)*(r?-1:1):n})}}function MUe(e){e.registerChartView(wUe),e.registerSeriesModel(yUe),e.registerLayout(OUe),e.registerVisual(TUe),CUe(e)}var NUe={color:`fill`,borderColor:`stroke`},PUe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},g6=$I(),FUe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return TY(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=g6(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(aK);function IUe(e,t){return t||=[0,0],QA([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?hZ(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function LUe(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:rj(IUe,e)}}}function RUe(e,t){return t||=[0,0],QA([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function zUe(e){var t=e.view,n=t.getBoundingRect();return{coordSys:{type:`geo`,x:n.x,y:n.y,width:n.width,height:n.height,zoom:wFe(t)},api:{coord:function(t){return e.dataToPoint(t)},size:rj(RUe,e)}}}function BUe(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?hZ(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function VUe(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:rj(BUe,e)}}}function HUe(e,t){return t||=[0,0],QA([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?hZ(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function UUe(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:rj(HUe,e)}}}function WUe(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function GUe(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}var KUe={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},qUe=nj(KUe);$A(vF,function(e,t){return e[t]=1,e},{}),vF.join(`, `);var _6=[``,`style`,`shape`,`extra`],v6=$I();function y6(e,t,n,r,i){var a=e+`Animation`,o=gV(e,r,i)||{},s=v6(t).userDuring;return o.duration>0&&(o.during=s?rj($Ue,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),GA(o,n[a]),o}function b6(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=v6(e),l=t.style;c.userDuring=t.during;var u={},d={};if(nWe(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];w6(`shape`,h,f[m])}else w6(`shape`,t,d),w6(`extra`,t,d);if(!a&&s&&(tWe(e,t,u),eWe(`shape`,e,t,u),eWe(`extra`,e,t,u),rWe(e,t,l,u)),d.style=l,YUe(e,d,o),ZUe(e,t),s)if(a){var g={};Q(_6,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),GA(e?g[e]:g,n.enterFrom))});var _=y6(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else XUe(e,t,i||0,n,u);JUe(e,t),l?e.dirty():e.markRedraw()}function JUe(e,t){for(var n=v6(e).leaveToProps,r=0;r<_6.length;r++){var i=_6[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=v6(e).leaveToProps={},i&&(n[i]=n[i]||{}),GA(i?n[i]:n,a.leaveTo))}}function x6(e,t,n,r){if(e){var i=e.parent,a=v6(e).leaveToProps;if(a){var o=y6(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function S6(e){return e===`all`}function YUe(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function XUe(e,t,n,r,i){if(i){var a=y6(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function ZUe(e,t){Pj(t,`silent`)&&(e.silent=t.silent),Pj(t,`ignore`)&&(e.ignore=t.ignore),e instanceof ZL&&Pj(t,`invisible`)&&(e.invisible=t.invisible),e instanceof WR&&Pj(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var C6={},QUe={setTransform:function(e,t){return C6.el[e]=t,this},getTransform:function(e){return C6.el[e]},setShape:function(e,t){var n=C6.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=C6.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=C6.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=C6.el.style;if(t)return t[e]},setExtra:function(e,t){var n=C6.el.extra||(C6.el.extra={});return n[e]=t,this},getExtra:function(e){var t=C6.el.extra;if(t)return t[e]}};function $Ue(){var e=this,t=e.el;if(t){var n=v6(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}C6.el=t,r(QUe)}}function eWe(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),S6(c))GA(o,a);else for(var l=HI(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(S6(s)||JA(s,e)>=0){!o&&(o=r[e]={});for(var p=nj(a),u=0;u<p.length;u++){var d=p[u],f=a[d];iWe(i[d],f)&&(o[d]=f)}}}}}function w6(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=nj(r),o=0;o<a.length;o++){var s=a[o];i[s]=jP(r[s])}}function tWe(e,t,n){for(var r=t.transition,i=S6(r)?vF:HI(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function nWe(e,t,n){for(var r=0;r<qUe.length;r++){var i=qUe[r],a=KUe[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<vF.length;r++){var s=vF[r];t[s]!=null&&(n[s]=t[s])}}function rWe(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!S6(o)){var c=HI(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(S6(s)||S6(o)||JA(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=nj(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function iWe(e,t){return ZA(e)?e!==t:e!=null&&isFinite(e)}var aWe=$I(),oWe=[`percent`,`easing`,`shape`,`style`,`extra`];function sWe(e){e.stopAnimation(`keyframe`),e.attr(aWe(e))}function T6(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(aj(t)){Q(t,function(t){T6(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=gV(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=aWe(e);Q(_6,function(n){if(!(n&&!e[n])){var a;r.sort(function(e,t){return e.percent-t.percent}),Q(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=nj(c);if(n||(l=ej(l,function(e){return JA(oWe,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;Q(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var E6=`emphasis`,D6=`normal`,O6=`blur`,k6=`select`,A6=[D6,E6,O6,k6],j6={normal:[`itemStyle`],emphasis:[E6,`itemStyle`],blur:[O6,`itemStyle`],select:[k6,`itemStyle`]},M6={normal:[`label`],emphasis:[E6,`label`],blur:[O6,`label`],select:[k6,`label`]},cWe=[`x`,`y`],lWe=`e\0\0`,N6={normal:{},emphasis:{},blur:{},select:{}},uWe={cartesian2d:LUe,geo:zUe,single:VUe,polar:UUe,calendar:WUe,matrix:GUe};function P6(e){return e instanceof WR}function F6(e){return e instanceof ZL}function dWe(e,t){t.copyTransform(e),F6(t)&&F6(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,P6(t)&&P6(e)&&t.setShape(e.shape))}var fWe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=gWe(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){R6(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&x6(n,g6(n).option,e)}).update(function(t,c){R6(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?F$(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=gWe(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=yL(t),e.ensureState(`emphasis`).hoverLayer=2)}for(var l=e.start;l<e.end;l++){var u=R6(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){nH(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type=`custom`,t}(fK);function I6(e){var t=e.type,n;if(t===`path`){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=OWe(r);n=NV(a,null,i,r.layout||`center`),g6(n).customPathData=a}else if(t===`image`)n=new KR({}),g6(n).customImagePath=e.style.image;else if(t===`text`)n=new tz({});else if(t===`group`)n=new WF;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;RI(o)}n=new nV({shape:{paths:QA(r.paths,function(e){if(e.type===`path`)return NV(e.shape.pathData,e,null);var t=MV(e.type);return t||RI(``),new t})}})}else{var s=MV(t);if(!s){var o=``;RI(o)}n=new s}return g6(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function L6(e,t,n,r,i,a,o){sWe(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=cWe);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;Pj(l,`textFill`)&&(l.fill=l.textFill),Pj(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=P6(t)?c.decal:null;e&&d&&(d.dirty=!0,u=jq(d,e)),c.__decalPattern=u}if(F6(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}b6(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),T6(t,r.keyframeAnimation,a)}function pWe(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(r===!1){var c=a.getState(e);c&&(c.style=null)}else s.style=r||null;o&&(s.textConfig=o),qz(a)}}function mWe(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<A6.length;s++)hWe(r,t,A6[s])}}function hWe(e,t,n){var r=n===D6,i=r?t:B6(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function gWe(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=gOe(i);a&&(i=a)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):uWe[o.type](o));for(var c=qA({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:C,ordinalRawValue:S,styleEmphasis:w,visual:D,barLayout:O,currentSeriesIndices:k,font:A},s.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:_We(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<A6.length;g++){var _=A6[g];m[_]=e.getModel(j6[_]),h[_]=e.getModel(M6[_])}function v(e){return e===u?d||=t.getItemModel(e):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===u?f[n]||(f[n]=v(e).getModel(j6[n])):v(e).getModel(j6[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(M6[n])):v(e).getModel(M6[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(qA({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},l),c)};function x(e,n){return n??=u,t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){n??=u,e||=0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,D6).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:sj(a)?a:$.color.neutral99},l=b(r,D6),d=bH(l,null,c,!1,!0);d.text=l.getShallow(`show`)?yj(e.getFormattedLabel(r,D6),h$(t,r)):null;var f=xH(l,c,!1);return E(n,s),s=U$(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,E6).getItemStyle(),a=b(r,E6),o=bH(a,null,null,!0,!0);o.text=a.getShallow(`show`)?bj(e.getFormattedLabel(r,E6),e.getFormattedLabel(r,D6),h$(t,r)):null;var s=xH(a,null,!0);return E(n,i),i=U$(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)Pj(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,Pj(NUe,e)){var r=t.getItemVisual(n,`style`);return r?r[NUe[e]]:null}if(Pj(PUe,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return dNe(qA({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return EH(e,n)}}function _We(e){var t={};return Q(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function R6(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=z6(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&lB(s,r.focus,r.blurScope,r.emphasisDisabled),s}function z6(e,t,n,r,i,a){var o=-1,s=t;t&&vWe(t,r,i)&&(o=JA(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=I6(r),s&&dWe(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),N6.normal.cfg=N6.normal.conOpt=N6.emphasis.cfg=N6.emphasis.conOpt=N6.blur.cfg=N6.blur.conOpt=N6.select.cfg=N6.select.conOpt=null,N6.isLegacy=!1,bWe(l,n,r,i,c,N6),yWe(l,n,r,i,c),L6(e,l,n,r,N6,i,c),Pj(r,`info`)&&(g6(l).info=r.info);for(var u=0;u<A6.length;u++){var d=A6[u];if(d!==D6){var f=B6(r,d),p=V6(r,f,d);pWe(d,l,f,p,N6)}}return mWe(l,r,i),r.type===`group`&&SWe(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function vWe(e,t,n){var r=g6(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&kWe(a)&&OWe(a)!==r.customPathData||i===`image`&&Pj(o,`image`)&&o.image!==r.customImagePath}function yWe(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&vWe(o,a,r)&&(o=null),o||(o=I6(a),e.setClipPath(o)),L6(null,o,t,a,null,r,i)}}function bWe(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){xWe(n,null,a),xWe(n,E6,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=I6(o),e.setTextContent(u)),L6(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<A6.length;f++){var p=A6[f];if(p!==D6){var m=a[p].conOpt;pWe(p,u,m,V6(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function xWe(e,t,n){var r=t?B6(e,t):e,i=t?V6(e,r,E6):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?B6(s,t):s:null;if(i&&(n.isLegacy||B$(i,a,!!o,!!c))){n.isLegacy=!0;var l=V$(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;!u.type&&(u.type=`text`)}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=c}function B6(e,t){return t?e?e[t]:null:e}function V6(e,t,n){var r=t&&t.style;return r==null&&n===E6&&e&&(r=e.styleEmphasis),r}function SWe(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c=s===`byName`||r.diffChildrenByName,l=s===!1;if(!(!o&&!c&&!l)){if(c){wWe({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});return}l&&t.removeAll();for(var u=0;u<o;u++){var d=a[u],f=t.childAt(u);d?(d.ignore??=!1,z6(e,f,n,d,i,t)):f.ignore=!0}for(var p=t.childCount()-1;p>=u;p--)CWe(t,t.childAt(p),i)}}function CWe(e,t,n){t&&x6(t,g6(e).option,n)}function wWe(e){new eY(e.oldChildren,e.newChildren,TWe,TWe,e).add(EWe).update(EWe).remove(DWe).execute()}function TWe(e,t){return(e&&e.name)??lWe+t}function EWe(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];z6(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function DWe(e){var t=this.context,n=t.oldChildren[e];n&&x6(n,g6(n).option,t.seriesModel)}function OWe(e){return e&&(e.pathData||e.d)}function kWe(e){return e&&(Pj(e,`pathData`)||Pj(e,`d`))}function AWe(e){e.registerChartView(fWe),e.registerSeriesModel(FUe)}var H6=$I(),jWe=HA,U6=rj,W6=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new WF,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ij(MWe,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}FWe(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&hZ(r).w>o)return!0;if(a){var s=V0(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=H6(e).pointerEl=new TV[i.type](jWe(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=H6(e).labelEl=new tz(jWe(t.label));e.add(i),PWe(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=H6(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=H6(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),PWe(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=qV(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){yM(e.event)},onmousedown:U6(this._onHandleDragMove,this,0,0),drift:U6(this._onHandleDragMove,this),ondragend:U6(this._onHandleDragEnd,this)}),n.add(r)),FWe(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);aj(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,yK(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){MWe(this._axisPointerModel,!t&&this._moveAnimation,this._handle,G6(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(G6(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(G6(r)),H6(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),bK(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function MWe(e,t,n,r){NWe(H6(n).lastProp,r)||(H6(n).lastProp=r,t?vV(n,r,e):(n.stopAnimation(),n.attr(r)))}function NWe(e,t){if(uj(e)&&uj(t)){var n=!0;return Q(t,function(t,r){n&&=NWe(e[r],t)}),!!n}else return e===t}function PWe(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function G6(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function FWe(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function K6(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function IWe(e,t,n,r,i){var a=RWe(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=EU(o.get(`padding`)||0),c=o.getFont(),l=DF(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),LWe(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:bH(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function LWe(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function RWe(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:fX(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Q(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),sj(o)?a=o.replace(`{value}`,a):oj(o)&&(a=o(s))}return a}function q6(e,t,n){var r=CM();return OM(r,r,n.rotation),DM(r,r,n.position),VV([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function zWe(e,t,n,r,i,a){var o=h1.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),IWe(t,r,i,a,{position:q6(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function J6(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function BWe(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function VWe(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}function Y6(e,t,n){return hZ(e,{fromStat:{sers:QA(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function X6(e,t,n){return[tI(eI(t[0],t[1]),e-n/2),eI(e+n/2,tI(t[0],t[1]))]}var HWe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=UWe(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=K6(r),f=WWe[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}zWe(t,e,w1(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=w1(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=q6(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=UWe(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=eI(o[1],l[c]),l[c]=tI(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(W6);function UWe(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var WWe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:J6([t,r[0]],[t,r[1]],GWe(e))}},shadow:function(e,t,n,r,i,a){var o=Y6(e,i,a),s=r[1]-r[0],c=X6(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:BWe([l,r[0]],[u-l,s],GWe(e))}}};function GWe(e){return e.dim===`x`?0:1}var KWe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:$.color.border,width:1,type:`dashed`},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:$.color.accent40,throttle:40}},t}(aW),Z6=$I(),qWe=Q;function JWe(e,t,n){if(!OA.node){var r=t.getZr();Z6(r).records||(Z6(r).records={}),YWe(r,t);var i=Z6(r).records[e]||(Z6(r).records[e]={});i.handler=n}}function YWe(e,t){if(Z6(e).initialized)return;Z6(e).initialized=!0,n(`click`,ij(Q6,`click`)),n(`mousemove`,ij(Q6,`mousemove`)),n(`mousewheel`,ij(Q6,`mousewheel`)),n(`globalout`,ZWe);function n(n,r){e.on(n,function(n){var i=QWe(t);qWe(Z6(e).records,function(e){e&&r(e,n,i.dispatchAction)}),XWe(i.pendings,t)})}}function XWe(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function ZWe(e,t,n){e.handler(`leave`,null,n)}function Q6(e,t,n,r){t.handler(e,n,r)}function QWe(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function $6(e,t){if(!OA.node){var n=t.getZr();(Z6(n).records||{})[e]&&(Z6(n).records[e]=null)}}var $We=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;JWe(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){$6(`axisPointer`,t)},t.prototype.dispose=function(e,t){$6(`axisPointer`,t)},t.type=`axisPointer`,t}(lK);function eGe(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=QI(a,e);if(o==null||o<0||aj(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(QA(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var tGe=$I();function nGe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||rj(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){e8(i)&&(i=eGe({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=e8(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||e8(i),f={},p={},m={list:[],map:{}},h={showPointer:ij(aGe,p),showTooltip:ij(oGe,m)};Q(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);Q(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=uGe(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&rGe(e,o,h,!1,f)}})});var g={};return Q(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&Q(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,dGe(t),dGe(e)))),g[e.key]=a}})}),Q(g,function(e,t){rGe(u[t],e,h,!0,f)}),sGe(p,u,f),cGe(m,i,e,o),lGe(u,o,n),f}}function rGe(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=iGe(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&GA(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function iGe(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return Q(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(FI(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),Q(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function aGe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function oGe(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=U0(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function sGe(e,t,n){var r=n.axesInfo=[];Q(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function cGe(e,t,n,r){if(e8(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function lGe(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=tGe(r)[i]||{},o=tGe(r)[i]={};Q(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&Q(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}Q(a,function(e,t){!o[t]&&c.push(l(e))}),Q(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function uGe(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function dGe(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function e8(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function t8(e){G0.registerAxisPointerClass(`CartesianAxisPointer`,HWe),e.registerComponentModel(KWe),e.registerComponentView($We),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!aj(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=iPe(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},nGe)}function fGe(e){ZJ(Q0),ZJ(t8)}var pGe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=a.getExtent(),c=o.getOtherAxis(a).getExtent(),l=a.dataToCoord(t),u=r.get(`type`);if(u&&u!==`none`){var d=K6(r),f=hGe[u](a,o,l,s,c,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}IWe(e,n,r,i,mGe(t,n,r,o,r.get([`label`,`margin`])))},t}(W6);function mGe(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=CM();OM(f,f,s),DM(f,f,[r.cx,r.cy]),l=VV([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=h1.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var hGe={line:function(e,t,n,r,i){return e.dim===`angle`?{type:`Line`,shape:J6(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r,i,a,o){var s=Math.PI/180,c=Y6(e,a,o),l;if(e.dim===`angle`)l=VWe(t.cx,t.cy,i[0],i[1],(-n-c/2)*s,(-n+c/2)*s);else{var u=X6(n,r,c),d=u[0],f=u[1];l=VWe(t.cx,t.cy,d,f,0,Math.PI*2)}return{type:`Sector`,shape:l}}},n8=`polar`,gGe=n8,_Ge=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=n8,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(aW),r8=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,nL).models[0]},t.type=`polarAxis`,t}(aW);XA(r8,bX);var vGe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(r8),yGe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(r8),i8=function(e){Z(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(_Z);i8.prototype.dataToRadius=_Z.prototype.dataToCoord,i8.prototype.radiusToData=_Z.prototype.coordToData;var bGe=$I(),a8=function(e){Z(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=DF(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=bGe(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(_Z);a8.prototype.dataToAngle=_Z.prototype.dataToCoord,a8.prototype.angleToData=_Z.prototype.coordToData;var xGe=[`radius`,`angle`],SGe=function(){function e(e){this.dimensions=xGe,this.type=n8,this.cx=0,this.cy=0,this._radiusAxis=new i8,this._angleAxis=new a8,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(r[0],t),n[1]=this._angleAxis.angleToData(r[1],t),n},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=c<a?1:-1;c<a||c>o;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e,t){t||=[];var n=e[0],r=e[1]/180*Math.PI;return t[0]=Math.cos(r)*n+this.cx,t[1]=-Math.sin(r)*n+this.cy,t},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s},x:this.cx-t[1],y:this.cy-t[1],width:t[1]*2,height:t[1]*2}},e.prototype.convertToPixel=function(e,t,n){return CGe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return CGe(t)===this?this.pointToData(n):null},e}();function CGe(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function wGe(e,t,n){var r=t.get(`center`),i=$U(t,n).refContainer;e.cx=dI(r[0],i.width)+i.x,e.cy=dI(r[1],i.height)+i.y;var a=e.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=t.get(`radius`);s==null?s=[0,`100%`]:aj(s)||(s=[0,s]);var c=[dI(s[0],o),dI(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function TGe(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(zX(r,1),zX(i,1),GX(r),GX(i),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function EGe(e){return e.mainType===`angleAxis`}function DGe(e,t){if(e.type=lX(t),e.scale=uX(t,e.type,!1),e.onBand=yX(e.scale,t),e.inverse=t.get(`inverse`),EGe(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var OGe={dimensions:xGe,create:function(e,t){var n=[];return e.eachComponent(gGe,function(e,r){var i=new SGe(r+``);i.update=TGe;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);DGe(a,s),DGe(o,c),wGe(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`polar`){var t=e.coordinateSystem=e.getReferringComponents(gGe,nL).models[0].coordinateSystem;t&&(AX(t.getRadiusAxis(),e,n8),AX(t.getAngleAxis(),e,n8))}}),n}},kGe=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function o8(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function s8(e){return+!e.getRadiusAxis().inverse}function AGe(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var jGe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:`none`}),o=n.getMinorTicksCoords(),s=[];Q(n.getViewLabels(),function(e){if(!e.tick.offInterval){e=HA(e);var t=n.scale;e.coord=n.dataToCoord(vX(t,e.tick)),s.push(e)}}),AGe(s),AGe(a),Q(kGe,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&MGe[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(G0),MGe={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=s8(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new TV[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new qB({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[s8(n)],l=QA(r,function(e){return new ZB({shape:o8(n,[c,c+s],e.coord)})});e.add(IV(l,{style:qA(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[s8(n)],u=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)u.push(new ZB({shape:o8(n,[l,l+c],i[d][f].coord)}));e.add(IV(u,{style:qA(s.getModel(`lineStyle`).getLineStyle(),qA(o.getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),c=t.getModel(`axisLabel`),l=c.get(`margin`),u=t.get(`triggerEvent`);Q(o,function(r,i){var o=c,d=r.tick.value,f=a[s8(n)],p=n.coordToPoint([f+l,r.coord]),m=n.cx,h=n.cy,g=Math.abs(p[0]-m)/f<.3?`center`:p[0]>m?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];uj(v)&&v.textStyle&&(o=new FH(v.textStyle,c,c.ecModel))}var y=new tz({silent:h1.isLabelSilent(t),style:bH(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),eH({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=h1.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,fz(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u<r.length;u++){var d=c++%s.length;l[d]=l[d]||[],l[d].push(new ZB({shape:o8(n,a,r[u].coord)}))}for(var u=0;u<l.length;u++)e.add(IV(l[u],{style:qA({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:t.get(`z`)}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`minorSplitLine`).getModel(`lineStyle`),s=[],c=0;c<i.length;c++)for(var l=0;l<i[c].length;l++)s.push(new ZB({shape:o8(n,a,i[c][l].coord)}));e.add(IV(s,{style:o.getLineStyle(),silent:!0,z:t.get(`z`)}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=Math.PI/180,d=-r[0].coord*u,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),m=t.get(`clockwise`),h=1,g=r.length;h<=g;h++){var _=h===g?r[0].coord:r[h].coord,v=c++%s.length;l[v]=l[v]||[],l[v].push(new KB({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:d,endAngle:-_*u,clockwise:m},silent:!0})),d=-_*u}for(var h=0;h<l.length;h++)e.add(IV(l[h],{style:qA({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},NGe=[`splitLine`,`splitArea`,`minorSplitLine`],PGe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this._axisGroup,i=this._axisGroup=new WF;this.group.add(i);var a=e.axis,o=a.polar,s=o.getAngleAxis(),c=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=s.getExtent()[0],d=a.getExtent(),f=new h1(e,n,IGe(o,e,u));f.build(),i.add(f.group),WV(r,i,e),Q(NGe,function(t){e.get([t,`show`])&&!a.scale.isBlank()&&FGe[t](this.group,e,o,u,d,c,l)},this)}},t.type=`radiusAxis`,t}(G0),FGe={splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0,l=n.getAngleAxis(),u=Math.PI/180,d=l.getExtent(),f=Math.abs(d[1]-d[0])===360?`Circle`:`Arc`;s=s instanceof Array?s:[s];for(var p=[],m=0;m<a.length;m++){var h=c++%s.length;p[h]=p[h]||[],p[h].push(new TV[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[m].coord,0),startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:l.inverse}}))}for(var m=0;m<p.length;m++)e.add(IV(p[m],{style:qA({stroke:s[m%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel(`minorSplitLine`).getModel(`lineStyle`),c=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)c.push(new NB({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(IV(c,{style:qA({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=a[0].coord,d=1;d<a.length;d++){var f=c++%s.length;l[f]=l[f]||[],l[f].push(new KB({shape:{cx:n.cx,cy:n.cy,r0:u,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),u=a[d].coord}for(var d=0;d<l.length;d++)e.add(IV(l[d],{style:qA({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function IGe(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel(`axisLabel`).get(`rotate`),z2:1}}var LGe=_L();function RGe(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}var zGe=xL(`bar`,BGe);function BGe(e){var t=O1(`bar`,n8);DX(e,t,function(e){var n=HGe(e,`bar`),r={};TX(e,t,function(t){VGe(e,t,n,r)})})}function VGe(e,t,n,r){var i=t.getData(),a=RGe(t),o=n[a],s=o.offset,c=o.width,l=t.coordinateSystem,u=l.getOtherAxis(e),d=l.cx,f=l.cy,p=t.get(`barMinHeight`)||0,m=t.get(`barMinAngle`)||0;r[a]=r[a]||[];for(var h=i.mapDimension(u.dim),g=i.mapDimension(e.dim),_=CY(i,h),v=e.dim!==`radius`||!t.get(`roundCap`,!0),y=u.dataToCoord(M1(u)),b=0,x=i.count();b<x;b++){var S=i.get(h,b),C=i.get(g,b),w=S>=0?`p`:`n`,T=y;_&&(r[a][C]||(r[a][C]={p:y,n:y}),T=r[a][C][w]);var E=void 0,D=void 0,O=void 0,k=void 0;if(u.dim===`radius`){var A=u.dataToCoord(S)-y,j=e.dataToCoord(C);nI(A)<p&&(A=(A<0?-1:1)*p),E=T,D=T+A,O=j-s,k=O-c,_&&(r[a][C][w]=D)}else{var M=u.dataToCoord(S,v)-y,N=e.dataToCoord(C);nI(M)<m&&(M=(M<0?-1:1)*m),E=N+s,D=E+c,O=T,k=T+M,_&&(r[a][C][w]=k)}i.setItemLayout(b,{cx:d,cy:f,r0:E,r:D,startAngle:-O*lI/180,endAngle:-k*lI/180,clockwise:O>=k})}}function HGe(e,t){var n=O1(t,n8),r=hZ(e,{fromStat:{key:n},min:1}).w,i=r,a=0,o=`20%`,s=`30%`,c={};TX(e,n,function(e){var t=RGe(e);c[t]||a++,c[t]=c[t]||{width:0,maxWidth:0};var n=dI(e.get(`barWidth`),r),l=dI(e.get(`barMaxWidth`),r),u=e.get(`barGap`),d=e.get(`barCategoryGap`);n&&!c[t].width&&(n=eI(i,n),c[t].width=n,i-=n),l&&(c[t].maxWidth=l),u!=null&&(s=u),d!=null&&(o=d)});var l={},u=dI(o,r),d=dI(s,1),f=(i-u)/(a+(a-1)*d);f=tI(f,0),Q(c,function(e,t){var n=e.maxWidth;n&&n<f&&(n=eI(n,i),e.width&&(n=eI(n,e.width)),i-=n,e.width=n,a--)}),f=(i-u)/(a+(a-1)*d),f=tI(f,0);var p=0,m;Q(c,function(e,t){e.width||=f,m=e,p+=e.width*(1+d)}),m&&(p-=m.width*d);var h=-p/2;return Q(c,function(e,t){l[t]=l[t]||{offset:h,width:e.width},h+=e.width*(1+d)}),l}function UGe(e,t){LGe(e,function(){var n=O1(t,n8);j1(e,n,t,n8),VX(n,E1(n))})}var WGe={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},GGe={splitNumber:5},KGe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`polar`,t}(lK);function qGe(e){ZJ(t8),G0.registerAxisPointerClass(`PolarAxisPointer`,pGe),e.registerCoordinateSystem(`polar`,OGe),e.registerComponentModel(_Ge),e.registerComponentView(KGe),E0(e,`angle`,vGe,WGe),E0(e,`radius`,yGe,GGe),e.registerComponentView(jGe),e.registerComponentView(PGe),e.registerLayout(zGe),UGe(e,`bar`)}function c8(e,t){t||={};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,s=n.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],l={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};i.position=[o===`vertical`?l.vertical[a]:c[0],o===`horizontal`?l.horizontal[a]:c[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),vj(t.labelInside,e.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var u=e.get([`axisLabel`,`rotate`]);return i.labelRotate=a===`top`?-u:u,i.z2=1,i}var JGe=[`splitArea`,`splitLine`,`breakArea`],YGe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`SingleAxisPointer`,n}return t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new WF;var s=new h1(t,r,c8(t));s.build(),a.add(this._axisGroup),a.add(s.group),Q(JGe,function(e){t.get([e,`show`])&&XGe[e](this,this.group,this._axisGroup,t,r)},this),WV(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){J0(this)},t.type=`singleAxis`,t}(G0),XGe={splitLine:function(e,t,n,r,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`);c=c instanceof Array?c:[c];for(var l=s.get(`width`),u=r.coordinateSystem.getRect(),d=a.isHorizontal(),f=[],p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=0;_<m.length;++_){var v=a.toGlobalCoord(m[_].coord);d?(h[0]=v,h[1]=u.y,g[0]=v,g[1]=u.y+u.height):(h[0]=u.x,h[1]=v,g[0]=u.x+u.width,g[1]=v);var y=new ZB({shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},silent:!0});RV(y.shape,l);var b=p++%c.length;f[b]=f[b]||[],f[b].push(y)}for(var x=s.getLineStyle([`color`]),_=0;_<f.length;++_)t.add(IV(f[_],{style:qA({stroke:c[_%c.length]},x),silent:!0}))}},splitArea:function(e,t,n,r,i){q0(e,n,r,r)},breakArea:function(e,t,n,r,i){var a=r1(),o=r.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,r,r.coordinateSystem.getRect(),i)}},ZGe=function(e){Z(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(_Z),QGe=[`single`],$Ge=function(){function e(e,t,n){this.type=$0,this.dimension=`single`,this.dimensions=QGe,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=lX(e),a=new ZGe(r,uX(e,i,!0),[0,0],i,e.get(`position`));a.onBand=yX(a.scale,e),a.inverse=e.get(`inverse`),a.orient=e.get(`orient`),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(e,t){var n=this._axis;zX(n,1),GX(n)},e.prototype.resize=function(e,t){var n=$U(e,t).refContainer;this._rect=XU(e.getBoxLayoutParams(),n),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=+!!t.inverse;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return n.orient===`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},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(e[r.orient===`horizontal`?0:1])),n},e.prototype.dataToPoint=function(e,t,n){var r=this.getAxis(),i=this.getRect();n||=[];var a=r.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+e)),n[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(e,t,n){return eKe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return eKe(t)===this?this.pointToData(n):null},e}();function eKe(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function tKe(e,t){var n=[];return e.eachComponent(e2,function(r,i){var a=new $Ge(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(e2,nL).models[0],n=e.coordinateSystem=t&&t.coordinateSystem;n&&AX(n.getAxis(),e,$0)}}),n}var nKe={create:tKe,dimensions:QGe},rKe=[`x`,`y`],iKe=[`width`,`height`],aKe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=l8(a),c=u8(o,s),l=u8(o,1-s),u=o.dataToPoint(t)[0],d=r.get(`type`);if(d&&d!==`none`){var f=K6(r),p=oKe[d](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);p.style=f,e.graphicKey=p.type,e.pointer=p}zWe(t,e,c8(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=c8(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=q6(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=l8(i),s=u8(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=u8(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(W6),oKe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:J6([t,r[0]],[t,r[1]],l8(e))}},shadow:function(e,t,n,r,i,a){var o=Y6(e,i,a),s=r[1]-r[0],c=X6(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:BWe([l,r[0]],[u-l,s],l8(e))}}};function l8(e){return+!e.isHorizontal()}function u8(e,t){var n=e.getRect();return[n[rKe[t]],n[rKe[t]]+n[iKe[t]]]}var sKe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(lK);function cKe(e){ZJ(t8),G0.registerAxisPointerClass(`SingleAxisPointer`,aKe),e.registerComponentView(sKe),e.registerComponentView(YGe),e.registerComponentModel(t2),E0(e,`single`,t2,t2.defaultOption),e.registerCoordinateSystem(`single`,nKe)}var lKe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=rW(t);e.prototype.init.apply(this,arguments),uKe(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),uKe(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.layoutMode=`box`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:$.color.axisLine,width:1,type:`solid`}},itemStyle:{color:$.color.neutral00,borderWidth:1,borderColor:$.color.neutral10},dayLabel:{show:!0,firstDay:0,position:`start`,margin:$.size.s,color:$.color.secondary},monthLabel:{show:!0,position:`start`,margin:$.size.s,align:`center`,formatter:null,color:$.color.secondary},yearLabel:{show:!0,position:null,margin:$.size.xl,formatter:null,color:$.color.quaternary,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}(aW);function uKe(e,t){var n=e.cellSize,r=aj(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),nW(e,t,{type:`box`,ignoreSize:QA([0,1],function(e){return MEe(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var dKe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToCalendarLayout([s],!1).tl,l=new ZR({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToCalendarLayout([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new XB({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return sj(e)&&e?jU(e,t):oj(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new tz({z2:30,style:bH(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||sj(a))&&(a&&(t=GH(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m<l[u].length-1;m++){var h=l[u][m].slice(),g=this._firstDayOfMonth[m];f&&(h[d]=(this._firstDayPoints[m][d]+l[0][m+1][d])/2);var _=i.get(`formatter`),v=a[g.m-1],y={yyyy:g.y,yy:(g.y+``).slice(2),MM:g.m,M:+g.m,nameMap:v},b=new tz({z2:30,style:GA(bH(i,{text:this._formatterLabel(_,y)}),this._monthTextPositionControl(h,f,n,s,o)),silent:p});r.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a=`center`,o=`middle`,s=e[0],c=e[1],l=n===`start`;return t===`horizontal`?(s=s+r+(l?1:-1)*i[0]/2,a=l?`right`:`left`):(c=c+r+(l?1:-1)*i[1]/2,o=l?`bottom`:`top`),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r,i){var a=e.getModel(`dayLabel`);if(a.get(`show`)){var o=e.coordinateSystem,s=a.get(`position`),c=a.get(`nameMap`),l=a.get(`margin`),u=o.getFirstDayOfWeek();(!c||sj(c))&&(c&&(t=GH(c)||t),c=t.get([`time`,`dayOfWeekShort`])||QA(t.get([`time`,`dayOfWeekAbbr`]),function(e){return e[0]}));var d=o.getNextNDay(n.end.time,7-n.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];l=dI(l,Math.min(f[1],f[0])),s===`start`&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,l=-l);for(var p=a.get(`silent`),m=0;m<7;m++){var h=o.getNextNDay(d,m),g=o.dataToCalendarLayout([h.time],!1).center,_=m;_=Math.abs((m+u)%7);var v=new tz({z2:30,style:GA(bH(a,{text:c[_]}),this._weekTextPositionControl(g,r,s,l,f)),silent:p});i.add(v)}}},t.type=`calendar`,t}(lK),d8=864e5,fKe=function(){function e(t,n,r){this.type=`calendar`,this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t,this._update(n,r)}return e.getDimensionsInfo=function(){return[{name:`time`,type:`time`},`value`]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=wI(e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?`0`+n:``+n,i=e.getDate(),a=i<10?`0`+i:``+i,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+``,m:r,d:a,day:o,time:e.getTime(),formatedDate:t+`-`+r+`-`+a,date:e}},e.prototype.getNextNDay=function(e,t){return t||=0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},e.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,r=[`width`,`height`],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o=this._orient===`horizontal`?[n,7]:[7,n];Q([0,1],function(e){l(i,e)&&(a[r[e]]=i[e]*o[e])});var s={width:t.getWidth(),height:t.getHeight()},c=this._rect=XU(a,s);Q([0,1],function(e){l(i,e)||(i[e]=c[r[e]]/o[e])});function l(e,t){return e[t]!=null&&e[t]!==`auto`}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t,n){n||=[],aj(e)&&(e=e[0]),t??=!0;var r=this.getDateInfo(e),i=this._rangeInfo,a=r.formatedDate;if(t&&!(r.time>=i.start.time&&r.time<i.end.time+d8))return n[0]=n[1]=NaN,n;var o=r.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient===`vertical`?(n[0]=this._rect.x+o*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2):(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+o*this._sh+this._sh/2),n},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToLayout=function(e,t,n){n||={};var r=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},a=this.dataToPoint(e,t);return r.x=a[0]-this._sw/2,r.y=a[1]-this._sh/2,r.width=this._sw,r.height=this._sh,GM.copy(i,r),ZV(i,this._lineWidth/2,!0,!0),n},e.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]}},e.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,r=this._rangeInfo.range;return this._orient===`vertical`?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=f8(t);return r===this?r.dataToPoint(n):null},e.prototype.convertToLayout=function(e,t,n){var r=f8(t);return r===this?r.dataToLayout(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=f8(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.prototype._initRangeOption=function(){var e=this._model.get(`range`),t;if(aj(e)&&e.length===1&&(e=e[0]),aj(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 r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);t=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},e.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 r=Math.floor(t[1].time/d8)-Math.floor(t[0].time/d8)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){VU({targetModel:t,coordSysType:`calendar`,coordSysProvider:HU})}),r},e.dimensions=[`time`,`value`],e}();function f8(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function pKe(e){e.registerComponentModel(lKe),e.registerComponentView(dKe),e.registerCoordinateSystem(`calendar`,fKe)}var p8={level:1,leaf:2,nonLeaf:3},m8={none:0,all:1,body:2,corner:3};function h8(e,t,n){var r=t[DV[n]].getCell(e);return!r&&lj(e)&&e<0&&(r=t[DV[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function mKe(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function hKe(e,t,n,r,i){gKe(e[0],t,i,n,r,0),gKe(e[1],t,i,n,r,1)}function gKe(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=aj(o)?o:[o],c=s.length,l=!!n;if(c>=1?(_Ke(e,t,s,l,i,a,0),c>1&&_Ke(e,t,s,l,i,a,c-1)):e[0]=e[1]=NaN,l){var u=-i[DV[1-a]].getLocatorCount(a),d=i[DV[a]].getLocatorCount(a)-1;n===m8.body?u=tI(0,u):n===m8.corner&&(d=eI(-1,d)),d<u&&(u=d=NaN),_j(e[0])&&(e[0]=u),_j(e[1])&&(e[1]=d),e[0]=tI(eI(e[0],d),u),e[1]=tI(eI(e[1],d),u)}}function _Ke(e,t,n,r,i,a,o){var s=h8(n[o],i,a);if(!s){e[0]=e[1]=NaN;return}var c=s.id[DV[a]],l=c,u=TKe(s);u&&(l+=u.span[DV[a]]-1),e[0]=eI(e[0],c,l),e[1]=tI(e[1],c,l)}function g8(e,t){return _j(e[t][0])||_j(e[t][1])}function vKe(e,t,n,r){t||=yKe;for(var i=0;i<r;i++)t[i]=!1;for(;;){for(var a=!1,i=0;i<r;i++){var o=n[i];!t[i]&&o.cellMergeOwner&&bKe(e,o.locatorRange)&&(t[i]=!0,a=!0)}if(!a)break}}var yKe=[];function bKe(e,t){return!xKe(e[0],t[0])||!xKe(e[1],t[1])?!1:(e[0][0]=eI(e[0][0],t[0][0]),e[0][1]=tI(e[0][1],t[0][1]),e[1][0]=eI(e[1][0],t[1][0]),e[1][1]=tI(e[1][1],t[1][1]),!0)}function xKe(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function SKe(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function CKe(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function wKe(e,t,n,r){var i=h8(t[r][0],n,r),a=h8(t[r][1],n,r);e[DV[r]]=e[OV[r]]=NaN,i&&a&&(e[DV[r]]=i.xy,e[OV[r]]=a.xy+a.wh-i.xy)}function _8(e,t,n,r){return e[DV[t]]=n,e[DV[1-t]]=r,e}function TKe(e){return e&&(e.type===p8.leaf||e.type===p8.nonLeaf)?e:null}function v8(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var EKe=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=DKe(e);var n=t.get(`data`,!0),r=t.get(`length`,!0);if(n!=null&&!aj(n)&&(n=[]),n)this._initByDimModelData(n);else if(r!=null){n=Array(r);for(var i=0;i<r;i++)n[i]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return e.prototype._initByDimModelData=function(e){var t=this,n=t._cells,r=t._levels,i=[],a=0;t._leavesCount=o(e,0,0),s();return;function o(e,n,s){var c=0;return e&&Q(e,function(e,l){var u;sj(e)?u={value:e}:uj(e)?(u=e,e.value!=null&&!sj(e.value)&&(u={value:null})):u={value:null};var d={type:p8.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new MM,span:_8(new MM,t.dimIdx,1,1),option:u,xy:NaN,wh:NaN,dim:t,rect:v8()};a++,(i[n]||(i[n]=[])).push(d),r[s]||(r[s]={type:p8.level,xy:NaN,wh:NaN,option:null,id:new MM,dim:t});var f=o(u.children,n,s+1),p=Math.max(1,f);d.span[DV[t.dimIdx]]=p,c+=p,n+=p}),c}function s(){for(var e=[];n.length<a;)for(var r=0;r<i.length;r++){var o=i[r].pop();if(o){o.ordinal=e.length;var s=o.option.value;e.push(s),n.push(o),t._uniqueValueGen.calcDupBase(s)}}t._uniqueValueGen.ensureValueUnique(e,n),t._scale=new JY({ordinalMeta:t._ordinalMeta=new DY({categories:e,needCollect:!1,deduplication:!1})});for(var c=0;c<t._leavesCount;c++){var l=t._cells[c];l.type=p8.leaf,l.span[DV[1-t.dimIdx]]=t._levels.length-l.level}t._initCellsId(),t._initLevelIdOptions()}},e.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:p8.level,xy:NaN,wh:NaN,option:null,id:new MM,dim:e}],e._initLevelIdOptions(),e._scale=new JY({ordinalMeta:e._ordinalMeta=new DY({needCollect:!0,deduplication:!0,onCollect:function(t,n){var r=e._cells[n]={type:p8.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new MM,span:_8(new MM,e.dimIdx,1,1),option:{value:t+``},xy:NaN,wh:NaN,dim:e,rect:v8()};e._leavesCount++,e._setCellId(r)}})})},e.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;_8(e.id,n,e.firstLeafLocator,e.level-t)},e.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;Q(this._cells,function(n){_8(n.id,t,n.firstLeafLocator,n.level-e)})},e.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get(`levels`,!0);n=aj(n)?n:[],Q(this._levels,function(r,i){_8(r.id,t,0,i-e),r.option=n[i]})},e.prototype.shouldShow=function(){return!!this._model.getShallow(`show`,!0)},e.prototype.resetLayoutIterator=function(e,t,n,r){if(e||=new cL,t===this.dimIdx){var i=this._leavesCount,a=n==null?0:Math.max(0,n);r=r==null?i:Math.min(r,i),e.reset(this._cells,a,a+r)}else{var i=this._levels.length,a=n==null?0:Math.max(0,n+i);r=r==null?i:Math.min(r,i),e.reset(this._levels,a,a+r)}return e},e.prototype.resetCellIterator=function(e){return(e||new cL).reset(this._cells,0)},e.prototype.resetLevelIterator=function(e){return(e||new cL).reset(this._levels,0)},e.prototype.getLayout=function(e,t,n){var r=this.getUnitLayoutInfo(t,n);e[DV[t]]=r?r.xy:NaN,e[OV[t]]=r?r.wh:NaN},e.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},e.prototype.getCell=function(e){var t=this._scale.parse(e);return _j(t)?void 0:this._cells[t]},e.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e}();function DKe(e){var t=e.toUpperCase(),n=RegExp(`^`+t+`([0-9]+)$`),r=0;function i(e){var t;e!=null&&(t=e.match(n))&&(r=tI(r,+t[1]+1))}function a(){return``+t+r++}function o(e,t){for(var n=Aj(),r=0;r<e.length;r++){var i=e[r];(i==null||n.get(i)!=null)&&(e[r]=i=a(),t[r].option=qA({value:i},t[r].option)),n.set(i,!0)}}return{calcDupBase:i,ensureValueUnique:o}}var OKe=function(){function e(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return e.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=Aj(),n()),t;function n(){var t=[],n=e._model.getShallow(`data`);n&&!aj(n)&&(n=null),Q(n,function(n,r){if(!(!uj(n)||!aj(n.coord))){var i=mKe([]);if(hKe(i,null,n.coord,e._dims,n.coordClamp?m8[e._kind]:m8.none),!(g8(i,0)||g8(i,1))){var a=n&&n.mergeCells,o={id:new MM,span:new MM,locatorRange:i,option:n,cellMergeOwner:a};SKe(o,i),t.push(o)}}});for(var i=[],a=0;a<t.length;a++){var o=t[a];if(o.cellMergeOwner){var s=o.locatorRange;vKe(s,i,t,a);for(var c=0;c<a;c++)i[c]&&(t[c].cellMergeOwner=!1);if(s[0][0]!==o.id.x||s[1][0]!==o.id.y){o.cellMergeOwner=!1;var l=GA({},o.option);l.coord=null;var u={id:new MM,span:new MM,locatorRange:s,option:l,cellMergeOwner:!0};SKe(u,s),t.push(u)}}}Q(t,function(t){var n=r(t.id.x,t.id.y);if(t.cellMergeOwner&&(n.cellMergeOwner=!0,n.span=t.span,n.locatorRange=t.locatorRange,n.spanRect=v8(),e._cellMergeOwnerList.push(n)),!(!t.cellMergeOwner&&!t.option))for(var i=0;i<t.span.y;i++)for(var a=0;a<t.span.x;a++){var o=r(t.id.x+a,t.id.y+i);o.option=t.option,t.cellMergeOwner&&(o.inSpanOf=n)}})}function r(e,n){var r=kKe(e,n),i=t.get(r);return i||=t.set(r,{id:new MM(e,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1}),i}},e.prototype.getCell=function(e){return this._ensureCellMap().get(kKe(e[0],e[1]))},e.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},e.prototype.expandRangeByCellMerge=function(e){if(!g8(e,0)&&!g8(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){y8[0]=e[0][0],y8[1]=e[1][0];var t=this.getCell(y8),n=t&&t.inSpanOf;if(n){CKe(e,n.locatorRange);return}}var r=this._cellMergeOwnerList;vKe(e,null,r,r.length)},e}(),y8=[];function kKe(e,t){return e+`|`+t}var b8={show:!0,color:$.color.secondary,overflow:`break`,lineOverflow:`truncate`,padding:[2,3,2,3],distance:0};function x8(e){return{color:`none`,borderWidth:1,borderColor:e?`none`:$.color.borderTint}}var AKe={show:!0,label:b8,itemStyle:x8(!1),silent:void 0,dividerLineStyle:{width:1,color:$.color.border}},jKe={z:-50,left:`10%`,top:`10%`,right:`10%`,bottom:`10%`,x:AKe,y:AKe,body:{label:b8,itemStyle:x8(!1),silent:void 0},corner:{label:b8,itemStyle:x8(!0),silent:void 0},backgroundStyle:{color:`none`,borderColor:$.color.axisLine,borderWidth:1},triggerEvent:!1},MKe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new NKe(this.get(`x`,!0)||{}),y:new NKe(this.get(`y`,!0)||{})};e.x.option.type=e.y.option.type=`category`;var t={x:e.x.dim=new EKe(`x`,e.x),y:e.y.dim=new EKe(`y`,e.y)};this._body=new OKe(`body`,new FH(this.getShallow(`body`)),t),this._corner=new OKe(`corner`,new FH(this.getShallow(`corner`)),t)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type=`matrix`,t.layoutMode=`box`,t.defaultOption=jKe,t}(aW),NKe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(FH),S8=Math.round,PKe=0,FKe=99,IKe={normal:25,special:100},LKe={normal:50,special:125},RKe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t){this.group.removeAll();var n=this.group,r=e.coordinateSystem.getRect(),i=e.getDimensionModel(`x`),a=e.getDimensionModel(`y`),o=i.dim,s=a.dim;zKe(n,e,t),BKe(n,e,o,s,t);var c=yj(e.getShallow(`borderZ2`,!0),FKe),l=c-1,u=e.getModel(`backgroundStyle`).getItemStyle([`borderWidth`]);u.lineWidth=0;var d=e.getModel(`backgroundStyle`).getItemStyle([`color`,`decal`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]);d.fill=`none`;var f=D8(r.clone(),u,PKe),p=D8(r.clone(),d,c);f.silent=!0,p.silent=!0,n.add(f),n.add(p);var m=o.getUnitLayoutInfo(0,0),h=s.getUnitLayoutInfo(1,0);m&&h&&(o.shouldShow()&&n.add(HKe({x1:r.x,y1:h.xy,x2:r.x+r.width,y2:h.xy},i.getModel(`dividerLineStyle`).getLineStyle(),l)),s.shouldShow()&&n.add(HKe({x1:m.xy,y1:r.y,x2:m.xy,y2:r.y+r.height},a.getModel(`dividerLineStyle`).getLineStyle(),l)))},t.type=`matrix`,t}(lK);function zKe(e,t,n){r(0),r(1);function r(r){var i=t.getDimensionModel(DV[r]),a=i.dim;if(a.shouldShow())for(var o=i.getModel(`itemStyle`),s=i.getModel(`label`),c=t.getShallow(`tooltip`,!0),l=[],u=a.resetCellIterator();u.next();){var d=u.item,f={};GM.copy(f,d.rect),Hj(l,d.id.x,d.id.y),VKe(l,t,e,n,d.option,o,s,i,f,d.option.value,LKe,c,r===0?`x`:`y`)}}}function BKe(e,t,n,r,i){a(`body`,t.getBody(),n,r),n.shouldShow()&&r.shouldShow()&&a(`corner`,t.getCorner(),r,n);function a(n,r,a,o){var s=new FH(t.getShallow(n,!0)),c=s.getModel(`itemStyle`),l=s.getModel(`label`),u=new cL,d=new cL,f=[],p=t.getShallow(`tooltip`,!0);for(o.resetLayoutIterator(d,1);d.next();)for(a.resetLayoutIterator(u,0);u.next();){var m=u.item,h=d.item;Hj(f,m.id.x,h.id.y);var g=r.getCell(f);if(!(g&&g.inSpanOf&&g.inSpanOf!==g)){var _={};g&&g.span?GM.copy(_,g.spanRect):(m.dim.getLayout(_,0,f[0]),h.dim.getLayout(_,1,f[1]));var v=g?g.option:null;VKe(f,t,e,i,v,c,l,s,_,v?v.value:null,IKe,p,n)}}}}function VKe(e,t,n,r,i,a,o,s,c,l,u,d,f){w8.option=i?i.itemStyle:null,w8.parentModel=a,C8.option=i,C8.parentModel=s;var p=yj(C8.getShallow(`z2`),i&&i.itemStyle?u.special:u.normal),m=d&&d.show,h=D8(c,w8.getItemStyle(),p);n.add(h);var g=C8.get(`cursor`);g!=null&&h.attr(`cursor`,g);var _;if(l!=null){var v=l+``;T8.option=i?i.label:null,T8.parentModel=o,T8.ecModel=r;var y=T8.getShallow(`formatter`);if(y){var b={componentType:`matrix`,componentIndex:t.componentIndex,name:v,value:l,coord:e.slice(),$vars:[`name`,`value`,`coord`]};if(sj(y))v=jU(y,b);else if(oj(y)){var x=y(b);x!=null&&(v=x+``)}}if(vH(h,{normal:T8},{defaultText:v,autoOverflowArea:!0,layoutRect:HA(h.shape)}),_=h.getTextContent(),_){_.z2=p+1;var S=_.style;if(S&&S.overflow&&S.overflow!==`none`&&S.lineOverflow){var C={};GM.copy(C,c),ZV(C,(h.style?.lineWidth||0)/2,!0,!0),h.updateInnerText(),_.getLocalTransform(E8),AM(E8,E8),GM.applyTransform(C,C,E8),_.setClipPath(new ZR({shape:C}))}}eH({el:h,componentModel:t,itemName:v,itemTooltipOption:d,formatterParamsExtra:{xyLocator:e.slice()}})}var w=t.get(`triggerEvent`,!0);if(_){var T=T8.get(`silent`);T??=!(w||m),_.silent=T,_.ignoreHostSilent=!0}var E=C8.get(`silent`);if(E??=!h.style||h.style.fill===`none`||!h.style.fill,h.silent=E,w&&h){var D={componentType:`matrix`,componentIndex:t.componentIndex,matrixIndex:t.componentIndex,targetType:f,name:_&&_.style?_.style.text:void 0,value:l,coord:e.slice()};fz(h).eventData=D}lL(C8),lL(w8),lL(T8)}var C8=new FH,w8=new FH,T8=new FH,E8=[];function D8(e,t,n){var r=t.lineWidth;if(r){var i=e.x+e.width,a=e.y+e.height;e.x=XR(e.x,r,!0),e.y=XR(e.y,r,!0),e.width=XR(i,r,!0)-e.x,e.height=XR(a,r,!0)-e.y}return new ZR({shape:e,style:t,z2:n})}function HKe(e,t,n){var r=t.lineWidth;return r&&(S8(e.x1*2)===S8(e.x2*2)&&(e.x1=e.x2=XR(e.x1,r,!0)),S8(e.y1*2)===S8(e.y2*2)&&(e.y1=e.y2=XR(e.y1,r,!0))),new ZB({shape:e,style:t,silent:!0,z2:n})}var UKe=function(){function e(t,n,r){this.dimensions=e.dimensions,this.type=`matrix`,this._model=t;var i=this._dimModels={x:t.getDimensionModel(`x`),y:t.getDimensionModel(`y`)};this._dims={x:i.x.dim,y:i.y.dim},this._resize(t,r)}return e.getDimensionsInfo=function(){return[{name:`x`,type:`ordinal`},{name:`y`,type:`ordinal`},{name:`value`}]},e.create=function(t,n){var r=[];return t.eachComponent(`matrix`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){VU({targetModel:t,coordSysType:`matrix`,coordSysProvider:HU})}),r},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(e,t){var n=this._dims,r=this._dimModels,i=this._rect=XU(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});WKe(r,n,i,0),WKe(r,n,i,1),GKe(0,n),GKe(1,n),KKe(this._model.getBody(),n),KKe(this._model.getCorner(),n)},e.prototype.dataToPoint=function(e,t,n){return n||=[],this.dataToLayout(e,t,O8),n[0]=O8.rect.x+O8.rect.width/2,n[1]=O8.rect.y+O8.rect.height/2,n},e.prototype.dataToLayout=function(e,t,n){var r=this._dims;n||={};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var a=n.matrixXYLocatorRange=mKe(n.matrixXYLocatorRange);return aj(e)?(hKe(a,null,e,r,yj(t&&t.clamp,m8.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==m8.corner)&&this._model.getBody().expandRangeByCellMerge(a),(!t||t.clamp!==m8.body)&&this._model.getCorner().expandRangeByCellMerge(a)),wKe(i,a,r,0),wKe(i,a,r,1),n):n},e.prototype.pointToData=function(e,t,n){var r=this._dims;return JKe(F8,0,r,e,t&&t.clamp),JKe(F8,1,r,e,t&&t.clamp),n||=[],n[0]=n[1]=NaN,F8.y===P8.inCorner&&F8.x===P8.inBody?YKe(F8,n,0,r):F8.x===P8.inCorner&&F8.y===P8.inBody?YKe(F8,n,1,r):(XKe(F8,n,0,r),XKe(F8,n,1,r)),n},e.prototype.convertToPixel=function(e,t,n,r){var i=N8(t);return i===this?i.dataToPoint(n,r):void 0},e.prototype.convertToLayout=function(e,t,n,r){var i=N8(t);return i===this?i.dataToLayout(n,r):void 0},e.prototype.convertFromPixel=function(e,t,n,r){var i=N8(t);return i===this?i.pointToData(n,r):void 0},e.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},e.dimensions=[`x`,`y`,`value`],e}(),O8={rect:v8()},k8=new cL,A8=new cL;function WKe(e,t,n,r){for(var i=1-r,a=t[DV[r]],o=t[DV[i]],s=o.shouldShow(),c=a.resetCellIterator();c.next();)c.item.wh=c.item.xy=NaN;for(var l=o.resetLayoutIterator(null,r);l.next();)l.item.wh=l.item.xy=NaN;for(var u=n[OV[r]],d=a.getLocatorCount(r)+o.getLocatorCount(r),f=new FH,p=o.resetLevelIterator();p.next();)f.option=p.item.option,f.parentModel=e[DV[i]],g(p.item,s?f.get(`levelSize`):0);for(var m=new FH,h=a.resetCellIterator();h.next();)h.item.type===p8.leaf&&(m.option=h.item.option,m.parentModel=void 0,g(h.item,m.get(`size`)));function g(e,t){var i=qKe(t,r,n);_j(i)||(e.wh=M8(i,u),u=M8(u-e.wh),d--)}var _=d?u/d:0,v=!d&&u>=1,y=n[DV[r]],b=a.getLocatorCount(r)-1,x=new cL;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){_j(e.wh)&&(e.wh=_),e.xy=y,e.id[DV[r]]===b&&!v&&(e.wh=n[DV[r]]+n[OV[r]]-e.xy),y+=e.wh}}function GKe(e,t){for(var n=t[DV[e]].resetCellIterator();n.next();){var r=n.item;j8(r.rect,e,r.id,r.span,t),j8(r.rect,1-e,r.id,r.span,t),r.type===p8.nonLeaf&&(r.xy=r.rect[DV[e]],r.wh=r.rect[OV[e]])}}function KKe(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;j8(r,0,i,n,t),j8(r,1,i,n,t)}})}function j8(e,t,n,r,i){e[OV[t]]=0;var a=n[DV[t]]<0?i[DV[1-t]]:i[DV[t]],o=a.getUnitLayoutInfo(t,n[DV[t]]);if(e[DV[t]]=o.xy,e[OV[t]]=o.wh,r[DV[t]]>1){var s=a.getUnitLayoutInfo(t,n[DV[t]]+r[DV[t]]-1);e[OV[t]]=s.xy+s.wh-o.xy}}function qKe(e,t,n){return M8(fI(e,n[OV[t]]),n[OV[t]])}function M8(e,t){return Math.max(Math.min(e,yj(t,1/0)),0)}function N8(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var P8={inBody:1,inCorner:2,outside:3},F8={x:null,y:null,point:[]};function JKe(e,t,n,r,i){var a=n[DV[t]],o=n[DV[1-t]],s=a.getUnitLayoutInfo(t,a.getLocatorCount(t)-1),c=a.getUnitLayoutInfo(t,0),l=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),u=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,d=e.point[t]=r[t];if(!c&&!u){e[DV[t]]=P8.outside;return}if(i===m8.body){c?(e[DV[t]]=P8.inBody,d=eI(s.xy+s.wh,tI(c.xy,d)),e.point[t]=d):e[DV[t]]=P8.outside;return}else if(i===m8.corner){u?(e[DV[t]]=P8.inCorner,d=eI(u.xy+u.wh,tI(l.xy,d)),e.point[t]=d):e[DV[t]]=P8.outside;return}var f=c?c.xy:u?u.xy+u.wh:NaN,p=l?l.xy:f,m=s?s.xy+s.wh:f;if(d<p){if(!i){e[DV[t]]=P8.outside;return}d=p}else if(d>m){if(!i){e[DV[t]]=P8.outside;return}d=m}e.point[t]=d,e[DV[t]]=f<=d&&d<=m?P8.inBody:p<=d&&d<=f?P8.inCorner:P8.outside}function YKe(e,t,n,r){var i=1-n;if(e[DV[n]]!==P8.outside)for(r[DV[n]].resetCellIterator(A8);A8.next();){var a=A8.item;if(QKe(e.point[n],a.rect,n)&&QKe(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[DV[i]];return}}}function XKe(e,t,n,r){if(e[DV[n]]!==P8.outside){for((e[DV[n]]===P8.inCorner?r[DV[1-n]]:r[DV[n]]).resetLayoutIterator(k8,n);k8.next();)if(ZKe(e.point[n],k8.item)){t[n]=k8.item.id[DV[n]];return}}}function ZKe(e,t){return t.xy<=e&&e<=t.xy+t.wh}function QKe(e,t,n){return t[DV[n]]<=e&&e<=t[DV[n]]+t[OV[n]]}function $Ke(e){e.registerComponentModel(MKe),e.registerComponentView(RKe),e.registerCoordinateSystem(`matrix`,UKe)}function eqe(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function tqe(e,t){var n;return Q(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function nqe(e,t,n){var r=GA({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(UA(i,r,!0),nW(i,r,{ignoreSize:!0}),iW(n,i),I8(n,i),I8(n,i,`shape`),I8(n,i,`style`),I8(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var rqe=[`transition`,`enterFrom`,`leaveTo`],iqe=rqe.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function I8(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?rqe:iqe,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function aqe(e,t){if(e&&(e.hv=t.hv=[tqe(t,[`left`,`right`]),tqe(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var oqe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=KI(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];Q(o,function(e,t){var n=e.newOption;n&&(s.push(n),eqe(e,n),nqe(i,t,n),aqe(i[t],n))},this),n.elements=ej(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){Q(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(aW),sqe={path:null,compoundPath:null,group:WF,image:KR,text:tz},L8=$I(),cqe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=Aj()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);Q(t,function(t){var o=YI(t.id,null),s=o==null?null:n.get(o),c=YI(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&B$(d,u,!!p,!!f)){var m=V$(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=dqe(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=lqe(o,l,t.type,n):(b&&(L8(b).isNew=!1),sWe(b)),b&&(b6(b,h,e,{isInit:y}),uqe(b,t,i,a))}else if(v){z8(s,t,n,e);var x=lqe(o,l,t.type,n);x&&(b6(x,h,e,{isInit:!0}),uqe(x,t,i,a))}else g===`remove`&&(JUe(s,t),z8(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new tz(f))}else v&&S.setTextContent(new tz(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||L8(D).type!==T,E=y?R8(T):D}else v&&(y=!0,E=R8(T));S.setClipPath(E),b6(E,w,e,{isInit:y}),T6(E,w.keyframeAnimation,e)}var O=L8(S);S.setTextConfig(p),O.option=t,fqe(S,e,t),eH({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),T6(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=YI(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=L8(d),h=L8(f);m.width=dI(m.option.width,p?a:h.width)||0,m.height=dI(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=YI(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=L8(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=eW(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!L8(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(S6(y)||JA(y,S)>=0)?b[S]=C:d[S]=C}vV(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){z8(n,L8(n).option,t,e._lastGraphicModel)}),this._elMap=Aj()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(lK);function R8(e){var t=new(Pj(sqe,e)?sqe[e]:MV(e))({});return L8(t).type=e,t}function lqe(e,t,n,r){var i=R8(n);return t.add(i),r.set(e,i),L8(i).id=e,L8(i).isNew=!0,i}function z8(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){z8(e,t,n,r)}),x6(e,t,r),n.removeKey(L8(e).id))}function uqe(e,t,n,r){e.isGroup||Q([[`cursor`,ZL.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];Pj(t,r)?e[r]=yj(t[r],n[1]):e[r]??(e[r]=n[1])}),Q(nj(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=oj(r)?r:null}}),Pj(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function dqe(e){return e=GA({},e),Q([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(WU),function(t){delete e[t]}),e}function fqe(e,t,n){var r=fz(e).eventData;!e.silent&&!e.ignore&&!r&&(r=fz(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function pqe(e){e.registerComponentModel(oqe),e.registerComponentView(cqe),e.registerPreprocessor(function(e){var t=e.graphic;aj(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var mqe=[`x`,`y`,`radius`,`angle`,`single`],hqe=$I(),gqe=[`cartesian2d`,`polar`,`singleAxis`];function _qe(e){return JA(gqe,e.get(`coordinateSystem`))>=0}function B8(e){return e+`Axis`}function vqe(e,t){var n=Aj(),r=[],i=Aj();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function yqe(e){var t=e.ecModel,n={infoList:[],infoMap:Aj()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(B8(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}function bqe(e){var t=hqe(QK(e));return t.axisProxyMap||=Aj()}function V8(e){if(e)return bqe(e.ecModel).get(e.uid)}function xqe(e,t){bqe(e.ecModel).set(e.uid,t)}function Sqe(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?V8(n.model):null}var H8=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),U8=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=Cqe(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=Cqe(e);UA(this.option,e,!0),UA(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Q([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=Aj();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Q(mqe,function(n){var r=this.getReferringComponents(B8(n),owe);if(r.specified){t=!0;var i=new H8;Q(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new H8;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,nL).models[0];o&&Q(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,nL).models[0]&&a.add(e.componentIndex)})}}}r&&Q(mqe,function(t){if(r){var i=n.findComponents({mainType:B8(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new H8;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);Q([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(B8(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){Q(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return V8(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(B8(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Q([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Q([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return V8(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(aW);function Cqe(e){var t={};return Q([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var wqe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(U8),W8=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(lK),Tqe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(W8),Eqe=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getWindow=function(){return HA(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(_qe(t)){var n=B8(this._dimName),r=t.getReferringComponents(n,nL).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return HA(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,r=n.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[],c,l=[!1,!1];Q([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d??=a[u],f=uI(d,a,t),l[u]=!0):(c=!0,f==null?f=t[u]:(f=r.parse(f),r.sanitize&&(f=r.sanitize(f,t))),d=uI(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),hI(s),hI(o);var u=this._minMaxSpan;c?d(s,o,t,a,!1):d(o,s,a,t,!0);function d(e,t,n,r,i){var a=i?`Span`:`ValueSpan`;w3(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=uI(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);gL(t)}var f=VY(r)||zY(r),p=n.getExtent(),m=nI(p[1]-p[0]),h=f?0:vI(s,m,.5);Q([[0,aI],[1,iI]],function(e){var n=e[0],r=e[1];!l[n]||!isFinite(h)||(s[n]=mI(s[n],h),s[n]=eI(t[1],tI(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),gL(s);var g=[uI(s[0],t,a,!0),uI(s[1],t,a,!0)];return gL(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;zX(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=qA({start:t[0],end:t[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;o[0]!==0&&r.setZoomMM(0,s[0]),o[1]!==100&&r.setZoomMM(1,s[1])}},e.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._window.value;if(i===`none`)return;Q(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=QA(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else Q(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});Q(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;Q([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=uI(i,[0,100],n,!0)-n[0]):i=uI(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),Dqe={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(B8(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!V8(i)){var o=new Eqe(t,r,a,e);n.push(o),xqe(i,o)}});var r=Aj();return Q(n,function(e){Q(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=Sqe(e,i);a?n.push([i,a]):i.reset(e,null)}),Q(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function Oqe(e){e.registerAction(`dataZoom`,function(e,t){Q(vqe(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var kqe=_L();function G8(e){kqe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Dqe),Oqe(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function Aqe(e){e.registerComponentModel(wqe),e.registerComponentView(Tqe),G8(e)}var K8=function(){function e(){}return e}(),jqe={};function q8(e,t){jqe[e]=t}function Mqe(e){return jqe[e]}var Nqe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=GA({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){Q(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=Mqe(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(UA(e,n[t]),n[t]=null),UA(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:$.size.m,itemSize:15,itemGap:$.size.s,showTitle:!0,iconStyle:{borderColor:$.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:$.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(aW);function Pqe(e,t){var n=EU(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new ZR({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var Fqe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=Aj(),l=[];Q(s,function(e,t){l.push(t)}),new eY(this._featureNames||[],l).add(u).update(u).remove(ij(u,null)).execute(),this._featureNames=ej(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new FH(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(Iqe(p))_={onclick:h.option.onclick,featureName:p};else{var v=Mqe(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){Lqe(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=IH(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Xz:Zz)(r[e])},Lqe(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof K8&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;sj(d)?(p={},p[c]=d):p=d,sj(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};Q(p,function(c,d){var f=qV(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new tz({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:EH({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),eH({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||$.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Xz:Zz)(f),i.add(f),f.on(`click`,rj(s.onclick,s,t,n,d)),h[d]=f})}var f=$U(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=XU(p,f,m);qU(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),eW(i,p,f,m),i.add(Pqe(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!oj(c)&&t){var l=c.style||={},u=DF(t,tz.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){Q(this._features,function(e){e&&e instanceof K8&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){Q(this._features,function(n){n&&n instanceof K8&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(lK);function Iqe(e){return e.indexOf(`my`)===0}function Lqe(e){return e instanceof K8}var Rqe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||$.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=OA.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:$.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(K8),J8=`__ec_magicType_stack__`,zqe=[[`line`,`bar`],[`stack`]],Bqe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return Q(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(Vqe[n]){var a={series:[]};Q(zqe,function(e){JA(e,n)>=0&&Q(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=Vqe[n](t,i,e,r);o&&(qA(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,nL).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=UA({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(K8),Vqe={line:function(e,t,n,r){if(e===`bar`)return UA({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return UA({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===J8;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),UA({id:t,stack:i?``:J8},r.get([`option`,`stack`])||{},!0)}};BJ({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var Y8=Array(60).join(`-`),X8=` `;function Hqe(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=oNe(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function Uqe(e){var t=[];return Q(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(QA(e.series,function(e){return e.name})),o=[r.model.getCategories()];Q(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(X8)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(X8))}t.push(s.join(`
`))}),t.join(`
`+Y8+`
`)}function Wqe(e){return QA(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+X8:``)+r.join(X8))}),n.join(`
`)}).join(`
`+Y8+`
`)}function Gqe(e){var t=Hqe(e);return{value:ej([Uqe(t.seriesGroupByCategoryAxis),Wqe(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
`+Y8+`
`),meta:t.meta}}function Z8(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function Kqe(e){if(e.slice(0,e.indexOf(`
`)).indexOf(X8)>=0)return!0}var Q8=RegExp(`[`+X8+`]+`,`g`);function qqe(e){for(var t=e.split(/\n+/g),n=Z8(t.shift()).split(Q8),r=[],i=QA(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=Z8(t[a]).split(Q8);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function Jqe(e){for(var t=e.split(/\n+/g),n=Z8(t.shift()),r=[],i=0;i<t.length;i++){var a=Z8(t[i]);if(a){var o=a.split(Q8),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function Yqe(e,t){var n=e.split(RegExp(`
*`+Y8+`
*`,`g`)),r={series:[]};return Q(n,function(e,n){if(Kqe(e)){var i=qqe(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=Jqe(e);r.series.push(i)}}),r}var Xqe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||$.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=Gqe(e);if(oj(l)){var f=l(t.getOption());sj(f)?s.innerHTML=f:pj(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.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`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}vM(_,`click`,b),vM(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=oj(u)?u(s,t.getOption()):Yqe(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.dispose=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:$.color.background,textColor:$.color.primary,textareaColor:$.color.background,textareaBorderColor:$.color.border,buttonColor:$.color.accent50,buttonTextColor:$.color.neutral00}},t}(K8);function Zqe(e,t){return QA(e,function(e,n){var r=t&&t[n];if(uj(r)&&!aj(r)){uj(e)&&!aj(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=qA(e,r),i&&delete e.name,e}else return e})}BJ({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];Q(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(GA({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:Zqe(e.data,i)})}}),t.mergeOption(qA({series:n},e.newOption))});var Qqe=Q,$qe=$I();function eJe(e,t){var n=$8(e);Qqe(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function tJe(e){var t=$8(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Qqe(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function nJe(e){$qe(e).snapshots=null}function rJe(e){return $8(e).length}function $8(e){var t=$qe(e);return t.snapshots||=[{}],t.snapshots}var iJe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){nJe(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(K8);BJ({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var aJe=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],e5=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=oJe(t,e);Q(sJe,function(e,t){(!n||!n.include||JA(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=n5[e.brushType](0,n,t);e.__rangeOffset={offset:dJe[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){Q(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&Q(r.coordSyses,function(r){n(e,n5[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){Q(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=n5[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?dJe[e.brushType](r.values,i.offset,pJe(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return QA(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:BBe(r),isTargetByCursor:HBe(r,e,n.coordSysModel),getLinearBrushOtherExtent:VBe(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&JA(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=oJe(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<cJe.length;s++)if(cJe[s](r,a))return a}return!0},e}();function t5(e){return e[0]>e[1]&&e.reverse(),e}function oJe(e,t){return eL(e,t,{includeMainTypes:aJe})}var sJe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Aj(),o={},s={};!n&&!r&&!i||(Q(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),Q(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),Q(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];Q(i.getCartesians(),function(e,t){(JA(n,e.getAxis(`x`).model)>=0||JA(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:lJe.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){Q(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:lJe.geo})})}},cJe=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],lJe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=TFe(null,e);return XM(t,t,P2(null,e)),t}},n5={lineX:ij(uJe,0),lineY:ij(uJe,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[t5([i[0],a[0]]),t5([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[uL(),uL()];return{values:QA(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function uJe(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=t5(QA([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var dJe={lineX:ij(fJe,0),lineY:ij(fJe,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return QA(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function fJe(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function pJe(e,t){var n=mJe(e),r=mJe(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function mJe(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var r5=Q,hJe=twe(`toolbox-dataZoom_`),gJe={x:`width`,y:`height`},_Je=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new M3(n.getZr()),this._brushController.on(`brush`,rj(this._onBrush,this)).mount()),bJe(e,t,this,r,n),yJe(e,t)},t.prototype.onclick=function(e,t,n){vJe[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new e5(i5(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),eJe(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=w3(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=vI(d,i[gJe[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?mI(o[0],f):o[0],endValue:isFinite(f)?mI(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];r5(e,function(e,n){t.push(HA(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:$.color.backgroundTint}}},t}(K8),vJe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(tJe(this.ecModel))}};function i5(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function yJe(e,t){e.setIconStatus(`back`,rJe(t)>1?`emphasis`:`normal`)}function bJe(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`?r.dataZoomSelectActive:!1),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new e5(i5(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}REe(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=eL(e,i5(r));r5(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),r5(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:hJe+t+a};o[n]=a,i.push(o)}return i});function xJe(e){e.registerComponentModel(Nqe),e.registerComponentView(Fqe),q8(`saveAsImage`,Rqe),q8(`magicType`,Bqe),q8(`dataView`,Xqe),q8(`dataZoom`,_Je),q8(`restore`,iJe),ZJ(Aqe)}var SJe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:$.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:$.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},t}(aW);function CJe(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function wJe(e){if(OA.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var TJe=wJe([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),EJe=wJe([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function DJe(e,t){if(!e)return t;t=TU(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function OJe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var kJe=DJe(EJe,`transition`),a5=DJe(TJe,`transform`),AJe=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(OA.transform3dSupported?`will-change:transform;`:``);function jJe(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function MJe(e,t,n){if(!sj(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=NU(t);var a=jJe(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=a5+`:`,l;JA([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function NJe(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(OA.transformSupported?``+a5+i:`,left`+i+`,top`+i)),kJe+`:`+a}function PJe(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!OA.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=OA.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+a5+`:`+o+`;`:[[`top`,0],[`left`,0],[TJe,o]]}function FJe(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=yj(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),Q([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function IJe(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=$G(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(NJe(a,n,r)),o&&i.push(`background-color:`+o),Q([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=TU(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(FJe(d)),f!=null&&i.push(`padding:`+EU(f).join(`px `)+`px`),i.join(`;`)+`;`}function LJe(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&gSe(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var RJe=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,OA.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(sj(i)?document.querySelector(i):pj(i)?i:oj(i)&&i(e.getDom()));LJe(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;_M(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=OJe(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=AJe+IJe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+PJe(i[0],i[1],!0)+(`border-color:`+NU(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(sj(i)&&n.get(`trigger`)===`item`&&!CJe(n)&&(o=MJe(n,r,i)),sj(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,aj(e)||(e=[e]);for(var s=0;s<e.length;s++)pj(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(LJe(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;Q(PJe(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,OA.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(rj(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;_Se(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),zJe=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),VJe(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;uj(e)&&RI(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new tz({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:$G(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),Q([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),Q([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=BJe(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;VJe(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=o5(i.borderWidth||0),o=BJe(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(rj(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function o5(e){return Math.max(0,e)}function BJe(e){var t=o5(e.shadowBlur||0),n=o5(e.shadowOffsetX||0),r=o5(e.shadowOffsetY||0);return{left:o5(t-n),right:o5(t+n),top:o5(t-r),bottom:o5(t+r)}}function VJe(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var HJe=new ZR({shape:{x:-1,y:-1,width:2,height:2}}),UJe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(OA.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=cwe(n.get(`renderMode`));this._tooltipContent=r===`richText`?new zJe(t):new RJe(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(OA.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?yK(this,`_updatePosition`,50,`fixRate`):bK(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);JWe(`itemTooltip`,this._api,rj(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||OA.node||!n.getDom())){var i=WJe(r,n);this._ticket=``;var a=r.dataByCoordSys,o=YJe(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=HJe;c.x=r.x,c.y=r.y,c.update(),fz(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=eGe(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(WJe(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&s5([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(fz(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;GK(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(fz(e).dataIndex==null?fz(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=rj(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=s5([t.tooltipOption],r),o=this._renderMode,s=[],c=GG(`section`,{blocks:[],noHeader:!0}),l=[],u=new eK;Q(e,function(e){Q(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=RWe(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=GG(`section`,{header:f,noHeader:!wj(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),Q(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=fX(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,NU(m.color),o);var h=xG(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=s5([a],r).get(`valueFormatter`);p.blocks.push(_?GA({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=YG(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=fz(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=s5([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new eK;h.marker=g.makeTooltipMarker(`item`,NU(h.color),d);var _=xG(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?YG(y?GA({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=fz(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(sj(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=HA(a),a.content=fM(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=s5(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new eK;this._showOrMove(d,function(){var n=HA(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(sj(u)){var p=e.ecModel.get(`useUTC`),m=aj(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=cU(m.axisValue,d,p)),d=AU(d,n,!0)}else if(oj(u)){var g=rj(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||aj(t))return{color:r||i};if(!aj(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),oj(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),aj(t))n=dI(t[0],s),r=dI(t[1],c);else if(uj(t)){var p=t;p.width=l[0],p.height=l[1];var m=XU(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(sj(t)&&o){var h=qJe(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=GJe(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=JJe(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=JJe(d)?l[1]/2:d===`bottom`?l[1]:0),CJe(e)){var h=KJe(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Q(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&Q(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&Q(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&Q(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){OA.node||!t.getDom()||(bK(this,`_updatePosition`),this._tooltipContent.dispose(),$6(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(lK);function s5(e,t,n){var r=t.ecModel,i;n?(i=new FH(n,r,r),i=new FH(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof FH&&(o=o.get(`tooltip`,!0)),sj(o)&&(o={formatter:o}),o&&(i=new FH(o,i,r)))}return i}function WJe(e,t){return e.dispatchAction||rj(t.dispatchAction,t)}function GJe(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function KJe(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function qJe(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function JJe(e){return e===`center`||e===`middle`}function YJe(e,t,n){var r=tL(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=rL(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=fz(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function XJe(e){ZJ(t8),e.registerComponentModel(SJe),e.registerComponentView(UJe),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Fj),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Fj)}var ZJe=[`rect`,`polygon`,`keep`,`clear`];function QJe(e,t){var n=HI(e?e.brush:[]);if(n.length){var r=[];Q(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;aj(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),vL(s,function(e){return e+``},null),t&&!s.length&&s.push.apply(s,ZJe)}}var $Je=Q;function eYe(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function c5(e,t,n){var r={};return $Je(t,function(t){var a=r[t]=i();$Je(e[t],function(e,r){if(A4.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new A4(i),r===`opacity`&&(i=HA(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new A4(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function tYe(e,t,n){var r;Q(n,function(e){t.hasOwnProperty(e)&&eYe(t[e])&&(r=!0)}),r&&Q(n,function(n){t.hasOwnProperty(n)&&eYe(t[n])?e[n]=HA(t[n]):delete e[n]})}function nYe(e,t,n,r,i,a){var o={};Q(e,function(e){o[e]=A4.prepareVisualTypes(t[e])});var s;function c(e){return BK(n,s,e)}function l(e,t){HK(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;h<g;h++){var _=m[h];p[_]&&p[_].applyVisual(e,c,l)}}}function rYe(e,t,n,r){var i={};return Q(e,function(e){i[e]=A4.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return BK(a,l,e)}function c(e,t){HK(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}function iYe(e){var t=e.brushType,n={point:function(r){return aYe[t].point(r,n,e)},rect:function(r){return aYe[t].rect(r,n,e)}};return n}var aYe={lineX:oYe(0),lineY:oYe(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&YX(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,c=r[0];if(YX(r,i,a)||YX(r,i+o,a)||YX(r,i,a+s)||YX(r,i+o,a+s)||GM.create(e).contain(c[0],c[1])||JV(i,a,i+o,a,r)||JV(i,a,i,a+s,r)||JV(i+o,a,i+o,a+s,r)||JV(i,a+s,i+o,a+s,r))return!0}}};function oYe(e){var t=[`x`,`y`],n=[`width`,`height`];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return l5(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),l5(s[0],o)||l5(s[1],o)||l5(o[0],s)||l5(o[1],s)}}}}function l5(e,t){return t[0]<=e&&e<=t[1]}var sYe=[`inBrush`,`outOfBrush`],u5=`__ecBrushSelect`,d5=`__ecInBrushSelectEvent`;function cYe(e){e.eachComponent({mainType:`brush`},function(t){(t.brushTargetManager=new e5(t.option,e)).setInputRanges(t.areas,e)})}var lYe=SL(uYe);function uYe(e,t,n){var r=[],i,a;e.eachComponent({mainType:`brush`},function(e){n&&n.type===`takeGlobalCursor`&&e.setBrushOption(n.key===`brush`?n.brushOption:{brushType:!1})}),cYe(e),e.eachComponent({mainType:`brush`},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:HA(t.areas),selected:[]};r.push(o);var s=t.option,c=s.brushLink,l=[],u=[],d=[],f=!1;n||(i=s.throttleType,a=s.throttleDelay);var p=QA(t.areas,function(e){var t=hYe[e.brushType],n=qA({boundingRect:t?t(e):void 0},e);return n.selectors=iYe(n),n}),m=c5(t.option,sYe,function(e){e.mappingMethod=`fixed`});aj(c)&&Q(c,function(e){l[e]=1});function h(e){return c===`all`||!!l[e]}function g(e){return!!e.length}e.eachSeries(function(e,t){var n=d[t]=[];e.subType===`parallel`?_(e,t):v(e,t,n)});function _(e,t){var n=e.coordinateSystem;f||=n.hasAxisBrushed(),h(t)&&n.eachActiveState(e.getData(),function(e,t){e===`active`&&(u[t]=1)})}function v(n,r,i){if(!(!n.brushSelector||mYe(t,r))&&(Q(p,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f||=g(i)}),h(r)&&g(i))){var a=n.getData();a.each(function(e){pYe(n,i,a,e)&&(u[e]=1)})}}e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=d[t],i=e.getData(),a=h(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),`inBrush`):`outOfBrush`}:function(t){return pYe(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),`inBrush`):`outOfBrush`};(h(t)?f:g(r))&&nYe(sYe,m,i,a)})}),dYe(t,i,a,r,n)}function dYe(e,t,n,r,i){if(i){var a=e.getZr();a[d5]||(a[u5]||(a[u5]=fYe),yK(a,u5,n,t)(e,r))}}function fYe(e,t){if(!e.isDisposed()){var n=e.getZr();n[d5]=!0,e.dispatchAction({type:`brushSelect`,batch:t}),n[d5]=!1}}function pYe(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}function mYe(e,t){var n=e.option.seriesIndex;return n!=null&&n!==`all`&&(aj(n)?JA(n,t)<0:t!==n)}var hYe={rect:function(e){return gYe(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t||=[uL(),uL()];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&gYe(t)}};function gYe(e){return new GM(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var _Ye=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new M3(t.getZr())).on(`brush`,rj(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){cYe(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:HA(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:HA(n),$from:t})},t.type=`brush`,t}(lK),vYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&tYe(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=QA(e,function(e){return yYe(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=yYe(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:$.color.backgroundTint,borderColor:$.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:$.color.disabled},t}(aW);function yYe(e,t){return UA({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new FH(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var bYe=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],xYe=function(e){Z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,Q(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return Q(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r===n?!1:n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:bYe.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:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(K8);function SYe(e){e.registerComponentView(_Ye),e.registerComponentModel(vYe),e.registerPreprocessor(QJe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,lYe),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},Fj),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},Fj),q8(`brush`,xYe)}var CYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},t}(aW),wYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=yj(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new tz({style:bH(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new tz({style:bH(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){PU(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){PU(p,`_`+e.get(`subtarget`))}),fz(c).eventData=fz(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=XU(g,$U(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new ZR({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(lK);function TYe(e){e.registerComponentModel(CYe),e.registerComponentView(wYe)}var EYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],Q(t,function(e,t){var n=YI(GI(e),``),a;uj(e)?(a=HA(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t;var a={category:`ordinal`,time:`time`,value:`number`}[n]||`number`;(this._data=new yY([{name:`value`,type:a}],this)).initData(i,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get(`axisType`)===`category`)return this._names.slice()},t.type=`timeline`,t.defaultOption={z:4,show:!0,axisType:`time`,realtime:!0,left:`20%`,top:null,right:`20%`,bottom:0,width:null,height:40,padding:$.size.m,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:$.color.secondary},data:[]},t}(aW),DYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=LH(EYe.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:$.color.border,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:$.color.accent10},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:$.color.tertiary},itemStyle:{color:$.color.accent20,borderWidth:0},checkpointStyle:{symbol:`circle`,symbolSize:15,color:$.color.accent50,borderColor:$.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:$.color.accent50,borderColor:$.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:$.color.accent60},itemStyle:{color:$.color.accent60,borderColor:$.color.accent60},controlStyle:{color:$.color.accent70,borderColor:$.color.accent70}},progress:{lineStyle:{color:$.color.accent30},itemStyle:{color:$.color.accent40}},data:[]}),t}(EYe);XA(DYe,bG.prototype);var OYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(lK),kYe=function(e){Z(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(_Z),f5=Math.PI,AYe=$I(),jYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return GG(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},Q([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=MYe(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2<t.getHeight()/2?`-`:`+`:i.x+i.width/2<t.getWidth()/2?`+`:`-`:sj(n)?{horizontal:{top:`-`,bottom:`+`},vertical:{left:`-`,right:`+`}}[r][n]:n,o={horizontal:`center`,vertical:a>=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:f5/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*f5/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=CM(),o=i.x,s=i.y+i.height;DM(a,a,[-o,-s]),OM(a,a,-f5/2),DM(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||sj(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`)||t.get(`type`);r!==`category`&&r!==`time`&&(r=`value`);var i=uX(t,r,!1);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),qX(i,{fixMinMax:[!0,!0]});var o=new kYe(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new WF;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new ZB({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:GA({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new ZB({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:qA({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],Q(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=PYe(s,c,t,{x:o,y:0,onclick:rj(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),cB(d);var f=fz(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],Q(o,function(r){if(!r.tick.offInterval){var o=r.tick.value,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new tz({x:n.dataToCoord(o),y:0,rotation:e.labelRotation-e.rotation,onclick:rj(i._changeTimeline,i,o),silent:!1,style:bH(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=bH(l),d.ensureState(`progress`).style=bH(u),t.add(d),cB(d),AYe(d).dataIndex=o,i._tickLabels.push(d)}})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,rj(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,rj(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,rj(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=jF(yj(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=NYe(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),cB(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=rj(s._handlePointerDrag,s),e.ondragend=rj(s._handlePointerDragend,s),FYe(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){FYe(e,s._progressLine,a,n,r)}};this._currentPointer=PYe(o,o,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=hI(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(t||o!==s.getCurrentIndex()&&s.get(`realtime`))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get(`rewind`,!0)?-1:1))},this.model.get(`playInterval`)))},t.prototype._toAxisCoord=function(e){return VV(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t=this.model.getData(),n=1/0,r,i=this._axis;return t.each([`value`],function(t,a){var o=i.dataToCoord(t),s=Math.abs(o-e);s<n&&(n=s,r=a)}),r},t.prototype._clearTimer=function(){this._timer&&=(clearTimeout(this._timer),null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();e===`+`?e=t+1:e===`-`&&(e=t-1),this.api.dispatchAction({type:`timelineChange`,currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState(`progress`,r<e);if(n)for(var r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState(`progress`,AYe(n[r]).dataIndex<=e)},t.type=`timeline.slider`,t}(OYe);function MYe(e,t){return XU(e.getBoxLayoutParams(),$U(e,t).refContainer,e.get(`padding`))}function NYe(e,t,n,r){var i=r.style,a=qV(e.get([`controlStyle`,t]),r||{},new GM(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function PYe(e,t,n,r,i,a){var o=t.get(`color`);i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):(i=tq(e.get(`symbol`),-1,-1,2,2,o),i.setStyle(`strokeNoScale`,!0),n.add(i),a&&a.onCreate(i));var s=t.getItemStyle([`color`]);i.setStyle(s),r=UA({rectHover:!0,z2:100},r,!0);var c=nq(e.get(`symbolSize`));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var l=rq(e.get(`symbolOffset`),c);l&&(r.x=(r.x||0)+l[0],r.y=(r.y||0)+l[1]);var u=e.get(`symbolRotate`);return r.rotation=(u||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function FYe(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel(`checkpointStyle`),s=r.dataToCoord(i.getData().get(`value`,n));if(a||!o.get(`animation`,!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var c={duration:o.get(`animationDuration`,!0),easing:o.get(`animationEasing`,!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},c),t&&t.animateTo({shape:{x2:s}},c)}}}function IYe(e){e.registerAction({type:`timelineChange`,event:`timelineChanged`,update:`prepareAndUpdate`},function(e,t,n){var r=t.getComponent(`timeline`);return r&&e.currentIndex!=null&&(r.setCurrentIndex(e.currentIndex),!r.get(`loop`,!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:`timelinePlayChange`,playState:!1,from:e.from}))),t.resetOption(`timeline`,{replaceMerge:r.get(`replaceMerge`,!0)}),qA({currentIndex:r.option.currentIndex},e)}),e.registerAction({type:`timelinePlayChange`,event:`timelinePlayChanged`,update:`update`},function(e,t){var n=t.getComponent(`timeline`);n&&e.playState!=null&&n.setPlayState(e.playState)})}function LYe(e){var t=e&&e.timeline;aj(t)||(t=t?[t]:[]),Q(t,function(e){e&&RYe(e)})}function RYe(e){var t=e.type,n={number:`value`,time:`time`};if(n[t]&&(e.axisType=n[t],delete e.type),zYe(e),p5(e,`controlPosition`)){var r=e.controlStyle||={};p5(r,`position`)||(r.position=e.controlPosition),r.position===`none`&&!p5(r,`show`)&&(r.show=!1,delete r.position),delete e.controlPosition}Q(e.data||[],function(e){uj(e)&&!aj(e)&&(!p5(e,`value`)&&p5(e,`name`)&&(e.value=e.name),zYe(e))})}function zYe(e){var t=e.itemStyle||={},n=t.emphasis||={},r=e.label||e.label||{},i=r.normal||={},a={normal:1,emphasis:1};Q(r,function(e,t){!a[t]&&!p5(i,t)&&(i[t]=e)}),n.label&&!p5(r,`emphasis`)&&(r.emphasis=n.label,delete n.label)}function p5(e,t){return e.hasOwnProperty(t)}function BYe(e){e.registerComponentModel(DYe),e.registerComponentView(jYe),e.registerSubTypeDefaulter(`timeline`,function(){return`slider`}),IYe(e),e.registerPreprocessor(LYe)}function m5(e,t){if(!e)return!1;for(var n=aj(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function h5(e){UI(e,`label`,[`show`])}var g5=$I(),_5=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(OA.node)return!1;var e=this.__hostSeries;return this.getShallow(`animation`)&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=g5(e)[i];if(!n||!n.data){g5(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&h5(n),Q(n.data,function(e){e instanceof Array?(h5(e[0]),h5(e[1])):h5(e)}),a=this.createMarkerModelFromSeries(n,this,t),GA(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),g5(e)[i]=a},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return GG(`section`,{header:this.name,blocks:[GG(`nameValue`,{name:a,value:i,noName:!a,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=bG.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return g5(e)[t]},t.type=`marker`,t.dependencies=[`series`,`grid`,`polar`,`geo`],t}(aW);XA(_5,bG.prototype);var VYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markPoint`,t.defaultOption={z:5,symbol:`pin`,symbolSize:50,tooltip:{trigger:`item`},label:{show:!0,position:`inside`},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(_5);function v5(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function HYe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function y5(e,t,n,r,i,a,o){var s=[],c=CY(t,i)?t.getCalculationInfo(`stackResultDimension`):i,l=C5(t,c,e),u=t.hostModel.indicesOfNearest(n,c,l)[0];s[a]=t.get(r,u),s[o]=t.get(c,u);var d=t.get(i,u),f=gI(t.get(i,u));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var b5={min:ij(y5,`min`),max:ij(y5,`max`),average:ij(y5,`average`),median:ij(y5,`median`)};function x5(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!HYe(t)&&!aj(t.coord)&&aj(i)){var a=UYe(t,n,r,e);if(t=HA(t),t.type&&b5[t.type]&&a.baseAxis&&a.valueAxis){var o=JA(i,a.baseAxis.dim),s=JA(i,a.valueAxis.dim),c=b5[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!aj(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&b5[t.type]){var u=r.getOtherAxis(l);u&&(t.value=C5(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)b5[d[f]]&&(d[f]=C5(n,n.mapDimension(i[f]),d[f]));return t}}function UYe(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(WYe(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function WYe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function S5(e,t){return e&&e.containData&&t.coord&&!v5(t)?e.containData(t.coord):!0}function GYe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!v5(t)&&!v5(n)?e.containZone(t.coord,n.coord):!0}function KYe(e,t){return e?function(e,n,r,i){return wG(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return wG(e.value,t[i])}}function C5(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[+(n===`max`)]}var w5=$I(),T5=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=Aj()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){w5(e).keep=!1}),t.eachSeries(function(e){var i=_5.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!w5(e).keep&&r.group.remove(e.group)}),qYe(t,i,this.type)},t.prototype.markKeep=function(e){w5(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Q(e,function(e){var r=_5.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?Qz(e):$z(e))})})},t.type=`marker`,t}(lK);function qYe(e,t,n){e.eachSeries(function(e){var r=_5.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=sH(r),o=a.z,s=a.zlevel;lH(i.group,o,s)}})}function JYe(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=dI(s.get(`x`),l)+d,h=dI(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var YYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=_5.getMarkerModelFromSeries(e,`markPoint`);t&&(JYe(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new S$),l=XYe(i,e,t);t.setData(l),JYe(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(oj(r)||oj(i)||oj(a)||oj(s)){var u=t.getRawValue(e),d=t.getDataParams(e);oj(r)&&(r=r(u,d)),oj(i)&&(i=i(u,d)),oj(a)&&(a=a(u,d)),oj(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=VK(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:yj(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){fz(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(T5);function XYe(e,t,n){var r=e?QA(e&&e.dimensions,function(e){var n=t.getData();return GA(GA({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new yY(r,n),a=QA(n.get(`data`),ij(x5,t));e&&(a=ej(a,ij(S5,e)));var o=KYe(!!e,r);return i.initData(a,null,o),i}function ZYe(e){e.registerComponentModel(VYe),e.registerComponentView(YYe),e.registerPreprocessor(function(e){m5(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var QYe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markLine`,t.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`},t}(_5),E5=$I(),$Ye=function(e,t,n,r){var i=e.getData(),a;if(aj(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=vj(r.yAxis,r.xAxis);else{var l=UYe(r,i,t,e);s=l.valueAxis,c=C5(i,wY(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=HA(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&lj(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[x5(e,a[0]),x5(e,a[1]),GA({},a[2])];return h[2].type=h[2].type||null,UA(h[2],h[0]),UA(h[2],h[1]),h};function D5(e){return!isNaN(e)&&!isFinite(e)}function eXe(e,t,n,r){var i=1-e,a=r.dimensions[e];return D5(t[i])&&D5(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function tXe(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(eXe(1,n,r,e)||eXe(0,n,r,e)))return!0}return S5(e,t[0])&&S5(e,t[1])}function O5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=dI(o.get(`x`),i.getWidth()),l=dI(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(R$(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;D5(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):D5(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var nXe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=_5.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=E5(t).from,a=E5(t).to;i.each(function(t){O5(i,t,!0,e,n),O5(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new c3);this.group.add(c.group);var l=rXe(i,e,t),u=l.from,d=l.to,f=l.line;E5(t).from=u,E5(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);aj(p)||(p=[p,p]),aj(m)||(m=[m,m]),aj(h)||(h=[h,h]),aj(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:yj(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){fz(e).dataModel=t,e.traverse(function(e){fz(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);O5(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=VK(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:yj(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:yj(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:yj(a.get(`symbolSize`),m[+!i]),symbol:yj(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(T5);function rXe(e,t,n){var r=e?QA(e&&e.dimensions,function(e){var n=t.getData();return GA(GA({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new yY(r,n),a=new yY(r,n),o=new yY([],n),s=QA(n.get(`data`),ij($Ye,t,e,n));e&&(s=ej(s,ij(tXe,e)));var c=KYe(!!e,r);return i.initData(QA(s,function(e){return e[0]}),null,c),a.initData(QA(s,function(e){return e[1]}),null,c),o.initData(QA(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function iXe(e){e.registerComponentModel(QYe),e.registerComponentView(nXe),e.registerPreprocessor(function(e){m5(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var aXe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markArea`,t.defaultOption={z:1,tooltip:{trigger:`item`},animation:!1,label:{show:!0,position:`top`},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:`top`}}},t}(_5),k5=$I(),oXe=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=x5(e,i),s=x5(e,a),c=o.coord,l=s.coord;c[0]=vj(c[0],-1/0),c[1]=vj(c[1],-1/0),l[0]=vj(l[0],1/0),l[1]=vj(l[1],1/0);var u=WA([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function A5(e){return!isNaN(e)&&!isFinite(e)}function sXe(e,t,n,r){var i=1-e;return A5(t[i])&&A5(n[i])}function cXe(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return R$(e,`cartesian2d`)?n&&r&&(sXe(1,n,r,e)||sXe(0,n,r,e))?!0:GYe(e,i,a):S5(e,i)||S5(e,a)}function lXe(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=dI(o.get(n[0]),i.getWidth()),l=dI(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(R$(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);A5(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):A5(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var uXe=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],dXe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=_5.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=QA(uXe,function(i){return lXe(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new WF});this.group.add(c.group),this.markKeep(c);var l=fXe(i,e,t);t.setData(l),l.each(function(t){var n=QA(uXe,function(n){return lXe(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];hI(d),hI(f);var p=c[0]>d[1]||c[1]<d[0]||u[0]>f[1]||u[1]<f[0];l.setItemLayout(t,{points:n,allClipped:p});var m=l.getItemModel(t),h=m.getModel(`itemStyle`).getItemStyle(),g=m.get(`z2`),_=VK(o,`color`);h.fill||(h.fill=_,sj(h.fill)&&(h.fill=sP(h.fill,.4))),h.stroke||=_,l.setItemVisual(t,`style`,h),l.setItemVisual(t,`z2`,yj(g,0))}),l.diff(k5(c).data).add(function(e){var t=l.getItemLayout(e),n=l.getItemVisual(e,`z2`);if(!t.allClipped){var r=new YB({z2:yj(n,0),shape:{points:t.points}});l.setItemGraphicEl(e,r),c.group.add(r)}}).update(function(e,n){var r=k5(c).data.getItemGraphicEl(n),i=l.getItemLayout(e),a=l.getItemVisual(e,`z2`);i.allClipped?r&&c.group.remove(r):(r?vV(r,{z2:yj(a,0),shape:{points:i.points}},t,e):r=new YB({shape:{points:i.points}}),l.setItemGraphicEl(e,r),c.group.add(r))}).remove(function(e){var t=k5(c).data.getItemGraphicEl(e);c.group.remove(t)}).execute(),l.eachItemGraphicEl(function(e,n){var r=l.getItemModel(n),i=l.getItemVisual(n,`style`);e.useStyle(l.getItemVisual(n,`style`)),vH(e,yH(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||``,inheritColor:sj(i.fill)?sP(i.fill,1):$.color.neutral99}),fB(e,r),lB(e,null,null,r.get([`emphasis`,`disabled`])),fz(e).dataModel=t}),k5(c).data=l,c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markArea`,t}(T5);function fXe(e,t,n){var r,i,a=[`x0`,`y0`,`x1`,`y1`];if(e){var o=QA(e&&e.dimensions,function(e){var n=t.getData();return GA(GA({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});i=QA(a,function(e,t){return{name:e,type:o[t%2].type}}),r=new yY(i,n)}else i=[{name:`value`,type:`float`}],r=new yY(i,n);var s=QA(n.get(`data`),ij(oXe,t,e,n));e&&(s=ej(s,ij(cXe,e)));var c=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return wG(a,i[r])}:function(e,t,n,r){return wG(e.value,i[r])};return r.initData(s,null,c),r.hasItemOption=!0,r}function pXe(e){e.registerComponentModel(aXe),e.registerComponentView(dXe),e.registerPreprocessor(function(e){m5(e.series,`markArea`)&&(e.markArea=e.markArea||{})})}var mXe=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},j5=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),aj(t)&&Q(t,function(e,r){sj(e)&&(e={type:e}),t[r]=UA(e,mXe(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&XI(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=Aj(),a=QA(r,function(e){return(sj(e)||lj(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new FH(e,this,this.ecModel))},this);this._data=ej(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;Q(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;Q(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;Q(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&JA(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:$.size.m,align:`auto`,backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:$.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(aW),M5=ij,N5=Q,P5=WF,hXe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new P5),this.group.add(this._selectorGroup=new P5),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=$U(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=XU(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=XU(qA({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Pqe(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Aj(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),N5(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
`)){var p=new P5;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,M5(vXe,f,null,r,d)).on(`mouseover`,M5(F5,m.name,null,r,d)).on(`mouseout`,M5(I5,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=fz(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=tP(h.fill);_&&_[3]===0&&(_[3]=.2,h=GA(GA({},h),{fill:cP(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,M5(vXe,null,f,r,d)).on(`mouseover`,M5(F5,null,f,r,d)).on(`mouseout`,M5(I5,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=fz(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};fz(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();N5(e,function(e){var r=e.type,i=new tz({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),vH(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),cB(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=gXe(c,r,o,s,d,m,u),y=new P5,b=r.getModel(`textStyle`);if(oj(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(_Xe({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;sj(w)&&w?T=w.replace(`{name}`,t??``):oj(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new tz({style:bH(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new ZR({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&eH({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),cB(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();qU(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){qU(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(lK);function gXe(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),N5(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:jq(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function _Xe(e){var t=e.icon||`roundRect`,n=tq(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n}function vXe(e,t,n,r){I5(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),F5(e,t,n,r)}function F5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function I5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function L5(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),yXe(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){Q(i,function(t,n){e[t?`select`:`unSelect`](n)}),yXe(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function yXe(e,t){var n=t||{};return Q(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
`||r===``)){var i=e.isSelected(r);Pj(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function bXe(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,ij(L5,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,ij(L5,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,ij(L5,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,ij(L5,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,ij(L5,`unSelect`))}var xXe=SL(SXe);function SXe(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function CXe(e){e.registerComponentModel(j5),e.registerComponentView(hXe),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,xXe),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),bXe(e)}var wXe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=rW(t);e.prototype.init.call(this,t,n,r),TXe(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),TXe(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=LH(j5.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),t}(j5);function TXe(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,nW(t,n,{type:`box`,ignoreSize:!!i})}var EXe=WF,R5=[`width`,`height`],z5=[`x`,`y`],DXe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new EXe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new EXe)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=aj(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new tz({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=qV(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:rj(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=R5[s],l=z5[s],u=R5[1-s],d=z5[1-s];i&&qU(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=HA(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;qU(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),qU(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=yj(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new ZR({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&vV(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;Q([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,sj(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=R5[i],o=z5[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(hXe);function OXe(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function kXe(e){ZJ(CXe),e.registerComponentModel(wXe),e.registerComponentView(DXe),OXe(e)}function AXe(e){ZJ(CXe),ZJ(kXe)}var jXe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=LH(U8.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(U8),B5=$I();function MXe(e,t,n){B5(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function NXe(e,t){for(var n=B5(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||PXe(n,o))}}}function PXe(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function FXe(e,t){var n={model:t,containsPoint:ij(LXe,t),dispatchAction:ij(IXe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new f2(e.getZr());return Q([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function IXe(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function LXe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function RXe(e,t,n){var r,i=`type_`,a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,c;return e.each(function(e){var t=e.model,n=t.get(`disabled`,!0)?!1:t.get(`zoomLock`,!0)?`move`:!0;a[i+n]>a[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0),s=yj(t.get(`cursorGrab`,!0),s),c=yj(t.get(`cursorGrabbing`,!0),c)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:c}}}function zXe(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=B5(t),r=n.coordSysRecordMap||=Aj();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){Q(yqe(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,FXe(t,n.model));(a.dataZoomInfoMap||=Aj()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){PXe(r,e);return}var s=RXe(a,e,t);n.enable(s.controlType,s.opt),yK(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var BXe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),MXe(r,t,{pan:rj(V5.pan,this),zoom:rj(V5.zoom,this),scrollMove:rj(V5.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){NXe(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(W8),V5={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=H5[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(w3(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:VXe(function(e,t,n,r,i,a){var o=H5[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:VXe(function(e,t,n,r,i,a){return H5[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function VXe(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(w3(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var H5={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function HXe(e){G8(e),e.registerComponentModel(jXe),e.registerComponentView(BXe),zXe(e)}var UXe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=LH(U8.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:$.color.accent10,borderRadius:0,backgroundColor:$.color.transparent,dataBackground:{lineStyle:{color:$.color.accent30,width:.5},areaStyle:{color:$.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:$.color.accent40,width:.5},areaStyle:{color:$.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:$.color.neutral00,borderColor:$.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:$.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:$.color.tertiary},brushSelect:!0,brushStyle:{color:$.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:$.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(U8),U5=ZR,WXe=1,W5=30,GXe=7,G5=`horizontal`,KXe=`vertical`,qXe=5,JXe=[`line`,`bar`,`candlestick`,`scatter`],YXe={easing:`cubicOut`,duration:100,delay:0},XXe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=rj(this._onBrush,this),this._onBrushEnd=rj(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),yK(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()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){bK(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new WF;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?GXe:0,r=$U(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===G5?{right:r.width-i.x-i.width,top:r.height-W5-a-n,width:i.width,height:W5}:{right:a,top:i.y,width:W5,height:i.height},s=rW(e.option);Q([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=XU(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===KXe&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===G5&&!i?{scaleY:o?1:-1,scaleX:1}:n===G5&&i?{scaleY:o?1:-1,scaleX:-1}:n===KXe&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]),c=isNaN(s.x)?0:s.x,l=isNaN(s.y)?0:s.y;e.x=t.x-c,e.y=t.y-l,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new U5({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new U5({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:rj(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:uI(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new WF,r=new YB({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new XB({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){Q(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&JA(JXe,e.get(`type`))<0)){var o=r.getComponent(B8(i),a).axis,s=QXe(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new U5({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new U5({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:WXe,fill:$.color.transparent}})),Q([0,1],function(t){var a=o.get(`handleIcon`);!eq[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=tq(a,-1,0,2,2,null,!0);s.attr({cursor:$Xe(this._orient),draggable:!0,drift:rj(this._onDragMove,this,t),ondragend:rj(this._onDragEnd,this),onmouseover:rj(this._onOverDataInfoTriggerArea,this,!0),onmouseout:rj(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=dI(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),cB(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new tz({silent:!0,invisible:!f,style:bH(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=dI(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new ZR({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=tq(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,$.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new ZR({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`grab`,drift:rj(this._onActualMoveZoneDrift,this),ondragstart:rj(this._onActualMoveZoneDragStart,this),ondragend:rj(this._onActualMoveZoneDragEnd,this),onmouseover:rj(this._onOverDataInfoTriggerArea,this,!0),onmouseout:rj(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[uI(e[0],[0,100],t,!0),uI(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];w3(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:uI(a.minSpan,o,i,!0),a.maxSpan==null?null:uI(a.maxSpan,o,i,!0));var s=this._range,c=this._range=hI([uI(r[0],i,o,!0),uI(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=hI(n.slice()),i=this._size;Q([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new ZR,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy(),s=o.getAxisModel().axis.scale;if(o){var c=this._range,l;if(e){var u={start:c[0],end:c[1]},d=Sqe(t,o);if(d){var f=d.calculateDataWindow(u).percentInverted;u={start:f[0],end:f[1]}}l=o.calculateDataWindow(u)}else l=o.getWindow();a=[ZXe(t,0,l,s),ZXe(t,1,l,s)]}}var p=hI(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(e){var t=BV(n.handles[e].parent,this.group),o=HV(e===0?`right`:`left`,t),s=this._handleWidth/2+qXe,c=VV([p[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===G5?`middle`:o,align:i===G5?o:`center`,text:a[e]})}},t.prototype._onOverDataInfoTriggerArea=function(e){this._isOverDataInfoTriggerArea=e,this._showDataInfo(e)},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onActualMoveZoneDrift=function(e,t,n){this.api.getZr().setCursorStyle(`grabbing`),this._onDragMove(`all`,e,t,n)},t.prototype._onActualMoveZoneDragStart=function(e){e.target.attr(`cursor`,`grabbing`),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(e){e.target.attr(`cursor`,`grab`),this._onDragEnd()},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,yM(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=VV([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new MM(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();w3(0,a,r,0,o.minSpan==null?null:uI(o.minSpan,i,r,!0),o.maxSpan==null?null:uI(o.maxSpan,i,r,!0)),this._range=hI([uI(a[0],r,i,!0),uI(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(yM(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new U5({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?YXe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=yqe(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(W8);function ZXe(e,t,n,r){var i=e.get(`labelFormatter`),a=e.get(`labelPrecision`);(a==null||a===`auto`)&&(a=n.valuePrecision);var o=n.value[t],s=o==null||isNaN(o)?``:VY(r)||zY(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?mI(o,a,!0):o+``;return oj(i)?i(o,s):sj(i)?i.replace(`{value}`,s):s}function QXe(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function $Xe(e){return e===`vertical`?`ns-resize`:`ew-resize`}function eZe(e){e.registerComponentModel(UXe),e.registerComponentView(XXe),G8(e)}function tZe(e){ZJ(HXe),ZJ(eZe)}var nZe={get:function(e,t,n){var r=HA((rZe[e]||{})[t]);return n&&aj(r)?r[r.length-1]:r}},rZe={color:{active:[`#006edd`,`#e0ffff`],inactive:[$.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]}},iZe=A4.mapVisual,aZe=A4.eachVisual,oZe=aj,K5=Q,sZe=hI,cZe=uI,q5=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&tYe(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=rj(e,this),this.controllerVisuals=c5(this.option.controller,t,e),this.targetVisuals=c5(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return K5(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=rL(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return QA(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){Q(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],aj(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(sj(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(oj(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=sZe([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=tj(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};UA(r,n),UA(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){oZe(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},K5(r,function(e,t){if(A4.isValidType(t)){var n=nZe.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;K5(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&HA(t)||(a?i:[i]),c.symbolSize??=n&&HA(n)||(a?s[0]:[s[0],s[0]]),c.symbol=iZe(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;aZe(l,function(e){e>u&&(u=e)}),c.symbolSize=iZe(l,function(e){return cZe(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:$.color.transparent,borderColor:$.color.borderTint,contentColor:$.color.theme[0],inactiveColor:$.color.disabled,borderWidth:0,padding:$.size.m,textGap:10,precision:0,textStyle:{color:$.color.secondary}},t}(aW),lZe=[20,140],uZe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=lZe[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=lZe[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):aj(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Q(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=hI((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=yj(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=dZe(this,`outOfRange`,this.getExtent()),n=dZe(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=LH(q5.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:$.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:$.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:$.color.shadow}}),t}(q5);function dZe(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var fZe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=EU(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new ZR({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return Q(A4.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),A4.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=$U(t,n).refContainer;eW(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(lK),pZe=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function mZe(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=pZe[o],c=[0,null,10],l={},u=0;u<3;u++)l[pZe[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=XU(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function J5(e,t){return Q(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var Y5=uI,hZe=Q,gZe=Math.min,X5=Math.max,_Ze=12,vZe=6,yZe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=rj(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=rj(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new tz({style:bH(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=mZe(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new WF;s.add(c),c.add(n.outOfRange=bZe()),c.add(n.inRange=bZe(null,a?CZe(this._orient):null,rj(this._dragHandle,this,`all`,!1),rj(this._dragHandle,this,`all`,!0))),c.setClipPath(new ZR({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=X5(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=rj(this._dragHandle,this,n,!1),s=rj(this._dragHandle,this,n,!0),c=jF(e.get(`handleSize`),r[0]),l=tq(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=CZe(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){yM(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),pB(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new tz({cursor:u,draggable:!0,drift:o,onmousemove:function(e){yM(e.event)},ondragend:s,style:bH(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=jF(e.get(`indicatorSize`),n[0]),o=tq(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof KR){var c=o.style;o.useStyle(GA({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new tz({silent:!0,invisible:!0,style:bH(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:vZe)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():SZe(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[Y5(t[0],n,r,!0),Y5(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];w3(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[Y5(r[0],i,a,!0),Y5(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new iV(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new WF(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);hZe([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=Y5(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=VV(n.handleLabelPoints[l],BV(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=Y5(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=VV(c.indicatorLabelPoint,BV(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=gZe(X5(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=gZe(X5(i[0],e),i[1]);var o=xZe(n,a,i),s=[e-o,e+o],c=Y5(e,i,a,!0),l=[Y5(s[0],i,a,!0),Y5(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||SZe(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=iwe(u,d);this._dispatchHighDown(`downplay`,J5(f[0],n)),this._dispatchHighDown(`highlight`,J5(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(GK(e.target,function(e){var n=fz(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,J5(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=BV(t,r?null:this.group);return aj(e)?VV(e,i,n):HV(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(fZe);function bZe(e,t,n,r){return new YB({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){yM(e.event)},ondragend:r})}function xZe(e,t,n){var r=_Ze/2,i=e.get(`hoverLinkDataSize`);return i&&(r=Y5(i,t,n,!0)/2),r}function SZe(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function CZe(e){return e===`vertical`?`ns-resize`:`ew-resize`}var wZe={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},TZe=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},EZe=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(rYe(t.stateList,t.targetVisuals,rj(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(rj(DZe,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function DZe(e,t,n,r){for(var i=t.targetVisuals[r],a=A4.prepareVisualTypes(i),o={color:VK(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var OZe=Q;function kZe(e){var t=e&&e.visualMap;aj(t)||(t=t?[t]:[]),OZe(t,function(e){if(e){Z5(e,`splitList`)&&!Z5(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&aj(t)&&OZe(t,function(e){uj(e)&&(Z5(e,`start`)&&!Z5(e,`min`)&&(e.min=e.start),Z5(e,`end`)&&!Z5(e,`max`)&&(e.max=e.end))})}})}function Z5(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var AZe=!1;function jZe(e){AZe||(AZe=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(wZe,TZe),Q(EZe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(kZe))}function MZe(e){e.registerComponentModel(uZe),e.registerComponentView(yZe),jZe(e)}var NZe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],PZe[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=HA(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=QA(this._pieceList,function(e){return e=HA(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=A4.listVisualTypes(),i=this.isCategory();Q(t.pieces,function(e){Q(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),Q(n,function(e,n){var r=!1;Q(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&Q(this.stateList,function(e){(t[e]||(t[e]={}))[n]=nZe.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,Q(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;Q(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=HA(e)},t.prototype.getValueState=function(e){var t=A4.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){A4.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return Q(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=LH(q5.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(q5),PZe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),kI(e),Q(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;Q(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),FZe(t,e)},pieces:function(e){var t=this.option;Q(t.pieces,function(t,n){uj(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=A4.retrieveVisuals(t),e.push(r)},this),FZe(t,e),kI(e),Q(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function FZe(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var IZe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=vj(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),Q(o.viewPieceList,function(o){var s=o.piece,u=new WF;u.onclick=rj(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new tz({style:bH(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:yj(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),qU(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:J5(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return mZe(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new WF,o=this.visualMapModel.textStyleModel;a.add(new tz({style:bH(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=QA(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=tq(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=HA(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,Q(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(fZe);function LZe(e){e.registerComponentModel(NZe),e.registerComponentView(IZe),jZe(e)}function RZe(e){ZJ(MZe),ZJ(LZe)}var zZe=function(){function e(e){this._thumbnailModel=e}return e.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},e.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:cH(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},e}(),BZe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(e,t){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new zZe(this);this._target=null,this.ecModel.eachSeries(function(e){ize(e,null)}),this.shouldShow()&&ize(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow(`show`,!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents(`series`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!==`graph`&&(e=null):e=this.ecModel.queryComponents({mainType:`series`,subType:`graph`})[0],this._target={baseMapProvider:e},this._target},t.type=`thumbnail`,t.layoutMode=`box`,t.dependencies=[`series`,`geo`],t.defaultOption={show:!0,right:1,bottom:1,height:`25%`,width:`25%`,itemStyle:{borderColor:$.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:$.color.neutral30,borderColor:$.color.neutral40,opacity:.3},z:10},t}(aW),VZe=function(e){Z(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this._api=n,this._model=e,this._coordSys||=new M2,!this._isEnabled()){this._clear();return}this._renderVersion=n.getECUpdateCycleVersion();var r=this.group;r.removeAll();var i=e.getModel(`itemStyle`),a=i.getItemStyle();a.fill??=t.get(`backgroundColor`)||$.color.neutral00;var o=$U(e,n).refContainer,s=XU(JU(e,!0),o),c=a.lineWidth||0,l=this._contentRect=ZV(s.clone(),c/2,!0,!0),u=new WF;r.add(u),u.setClipPath(new ZR({shape:l.plain()}));var d=this._targetGroup=new WF;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new ZR({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new ZR({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),UZe(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),UZe(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=this._targetGroup,n=this._coordSys,r=this._contentRect;if(t.removeAll(),e){var i=e.group,a=i.getBoundingRect();t.add(i),this._bgRect.z2=e.z2Range.min-10,B2(n,a.x,a.y,a.width,a.height);var o=XU({left:`center`,top:`center`,aspect:a.width/a.height},r);V2(n,o.x,o.y,o.width,o.height),I2(i,n,0),i.dirty(),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var t=this._bridgeRendered;t&&t.renderVersion===e.renderVersion&&(t.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=AM([],e.targetTrans),n=EM([],P2(null,this._coordSys),t);this._transThisToTarget=AM([],n);var r=e.viewportRect;r=r?r.clone():new GM(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(qA({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new f2(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,rj(this._onPan,this)).on(`zoom`,rj(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=tM([],[e.oldX,e.oldY],t),r=tM([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(HZe(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},t.prototype._onZoom=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=tM([],[e.originX,e.originY],t);this._api.dispatchAction(HZe(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow()||!e.getTarget().baseMapProvider)},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type=`thumbnail`,t}(lK);function HZe(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,GA(n,t),n}function UZe(e,t){var n=sH(e);lH(t.group,n.z,n.zlevel)}function WZe(e){e.registerComponentModel(BZe),e.registerComponentView(VZe)}var GZe={label:{enabled:!0},decal:{show:!1}},KZe=$I(),qZe=$I(),JZe=SL(YZe);function YZe(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=qZe(e).scope||(qZe(e).scope={}),i=HA(GZe);UA(i.label,e.getLocaleModel().get(`aria`),!1),UA(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Aj();e.eachSeries(function(e){e.isColorBySeries()||(KZe(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(oj(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=CW(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=KZe(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=CW(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?GA(GA({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=qA(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t<f){var n=void 0,r=e.get(`name`)?`withName`:`withoutName`;n=o>1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_<i.count();_++)if(_<u){var v=i.getName(_),y=m?ej(i.getValues(_),function(e,t){return JA(m,t)===-1}):i.getValues(_),b=a.get([`data`,v?`withName`:`withoutName`]);g.push(s(b,{name:v,value:y.join(d)}))}n+=g.join(d)+p,h.push(n)}});var _=a.getModel([`series`,`multiple`,`separator`]),v=_.get(`middle`),y=_.get(`end`);p+=h.join(v)+y,r.setAttribute(`aria-label`,p)}}}}function s(e,t){if(!sj(e))return e;var n=e;return Q(t,function(e,t){n=n.replace(RegExp(`\\{\\s*`+t+`\\s*\\}`,`g`),e)}),n}function c(){var t=e.get(`title`);return t&&t.length&&(t=t[0]),t&&t.text}function l(t){var n=e.getLocaleModel().get([`series`,`typeNames`]);return n[t]||n.chart}}function XZe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},Q([`description`,`general`,`series`,`data`],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function ZZe(e){e.registerPreprocessor(XZe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,JZe)}var QZe={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},$Ze=function(){function e(e){(this._condVal=sj(e)?new RegExp(e):gj(e)?e:null)??RI(``)}return e.prototype.evaluate=function(e){var t=typeof e;return sj(t)?this._condVal.test(e):lj(t)?this._condVal.test(e+``):!1},e}(),eQe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),tQe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),nQe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),rQe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),iQe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function Q5(e,t){if(e===!0||e===!1){var n=new eQe;return n.value=e,n}return cQe(e)||RI(``),e.and?aQe(`and`,e,t):e.or?aQe(`or`,e,t):e.not?oQe(e,t):sQe(e,t)}function aQe(e,t,n){var r=t[e],i=``;aj(r)||RI(i),r.length||RI(i);var a=e===`and`?new tQe:new nQe;return a.children=QA(r,function(e){return Q5(e,n)}),a.children.length||RI(i),a}function oQe(e,t){var n=e.not,r=``;cQe(n)||RI(r);var i=new rQe;return i.child=Q5(n,t),i.child||RI(r),i}function sQe(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=nj(e),o=e.parser,s=o?TG(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=Pj(QZe,l)?QZe[l]:l,d=e[l],f=s?s(d):d,p=yDe(u,f)||u===`reg`&&new $Ze(f);p||RI(n),i.push(p)}}i.length||RI(n);var m=new iQe;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function cQe(e){return uj(e)&&!ZA(e)}var lQe=function(){function e(e,t){this._cond=Q5(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function uQe(e,t){return new lQe(e,t)}var dQe={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=uQe(e.config,{valueGetterAttrMap:Aj({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;Pj(e,`dimension`)||RI(n);var i=t.getDimensionInfo(r);return i||RI(n),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},fQe={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=HI(n);i.length||RI(r);var a=[];Q(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n??RI(r),i!==`asc`&&i!==`desc`&&RI(r),s&&s!==`min`&&s!==`max`&&RI(``),i!==`asc`&&i!==`desc`&&RI(``);var c=t.getDimensionInfo(n);c||RI(r);var l=o?TG(o):null;o&&!l&&RI(r),a.push({dimIdx:c.index,parser:l,comparator:new DG(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&RI(r);for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function pQe(e){e.registerTransform(dQe),e.registerTransform(fQe)}var mQe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new zG(this),BG(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),BG(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:xz},t}(aW),hQe=function(e){Z(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(lK);function gQe(e){e.registerComponentModel(mQe),e.registerComponentView(hQe)}var $5=AR.CMD;function e7(e,t){return Math.abs(e-t)<1e-5}function t7(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){e7(e,n)&&e7(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===$5.L||_===$5.C||_===$5.Q)&&(i=[s,c])),_){case $5.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case $5.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case $5.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case $5.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case $5.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case $5.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case $5.Z:i&&u(a,o,s,c),a=s,o=c;break}}return i&&i.length>2&&r.push(i),r}function n7(e,t,n,r,i,a,o,s,c,l){if(e7(e,n)&&e7(t,r)&&e7(i,o)&&e7(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d){c.push(o,s);return}var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0){c.push(o,s);return}var T=[],E=[];NN(e,n,i,o,.5,T),NN(t,r,a,s,.5,E),n7(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),n7(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function _Qe(e,t){var n=t7(e),r=[];t||=1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];n7(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function vQe(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function yQe(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=vQe([c,l],+!u,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function bQe(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=vQe([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function xQe(e,t,n,r){return e*r-n*t}function SQe(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=xQe(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=xQe(e-i,t-a,u,d)/f;return p<0||p>1?null:new MM(p*c+e,p*l+t)}function CQe(e,t,n){var r=new MM;MM.sub(r,n,t),r.normalize();var i=new MM;return MM.sub(i,e,t),i.dot(r)}function r7(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function wQe(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=SQe(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:CQe(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)r7(m,e[a].slice());r7(m,p),r7(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)r7(h,e[a%r].slice());return r7(h,f),r7(h,p),[{points:m},{points:h}]}function TQe(e){var t=e.points,n=[],r=[];cR(t,n,r);var i=new GM(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new MM,u=new MM;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),wQe(t,l,u)}function i7(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);i7(e,a[0],i,r),i7(e,a[1],n-i,r)}return r}function EQe(e,t){for(var n=[],r=0;r<t;r++)n.push(MB(e));return n}function DQe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function OQe(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function kQe(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:bQe(r,t,n),i=ZR;break;case`sector`:yQe(r,t,n),i=KB;break;case`circle`:yQe({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=KB;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=QA(_Qe(e.getUpdatedPathProxy(),o),function(e){return OQe(e)}),c=s.length;if(c===0)i7(TQe,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=QA(s,function(e){var t=[],n=[];cR(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(i7(TQe,{points:p.poly},m,n),f-=m)}}i=YB;break}if(!i)return EQe(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),DQe(e,g),h.push(g)}return h}function AQe(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0){d.push(g,_,v,y,b,x);continue}for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;NN(m,g,v,b,w,i),NN(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}return o===e?[d,t]:[e,d]}function jQe(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function MQe(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=AQe(c,l),u=n[0],d=n[1],r=u,i=d):(d=jQe(i||c,c),u=c):(u=jQe(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function NQe(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function PQe(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function FQe(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function IQe(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=NQe(s),u=NQe(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=FQe(s));for(var _=PQe(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var M=A-E,N=j-D;T+=M*M+N*N}if(T<m){m=T,p=S;for(var P=0;P<h.length;P++)f[P]=h[P]}}else for(var F=0;F<g;F+=2)f[F]=c[F]-u[0],f[F+1]=c[F+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function a7(e){return e.__isCombineMorphing}var LQe=`__mOriginal_`;function o7(e,t,n){var r=LQe+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function s7(e,t){var n=LQe+t;e[n]&&(e[t]=e[n],e[n]=null)}function RQe(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function zQe(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=MQe(t7(n),t7(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&RQe(a,s),c&&RQe(o,c),o7(t,`updateTransform`,{replace:l}),t.transform=null;var u=IQe(a,o,10,Math.PI),d=[];o7(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);eM(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function c7(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;zQe(e,t),t.__morphT=0;function a(){s7(t,`buildPath`),s7(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},qA({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function BQe(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function l7(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return QA(QA(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:BQe(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function VQe(e){return kQe(e.path,e.count)}function u7(){return{fromIndividuals:[],toIndividuals:[],count:0}}function HQe(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];a7(n)?i(n.childrenRef()):n instanceof WR&&r.push(n)}}i(e);var a=r.length;if(!a)return u7();var o=(n.dividePath||VQe)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),u7();r=l7(r),o=l7(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new hF,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||zQe(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}o7(t,`addSelfToZr`,{after:function(e){m(e)}}),o7(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,s7(t,`addSelfToZr`),s7(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?qA({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;c7(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},qA({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)s7(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function UQe(e,t,n){var r=t.length,i=[],a=n.dividePath||VQe;function o(e){for(var t=0;t<e.length;t++){var n=e[t];a7(n)?o(n.childrenRef()):n instanceof WR&&i.push(n)}}if(a7(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(MB(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error(`Invalid morphing: unmatched splitted path`),u7()}i=l7(i),t=l7(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?qA({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;c7(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function WQe(e){return aj(e[0])}function GQe(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var KQe={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=MB(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function d7(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=gV(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=GA({setToFinal:!0},o),l,u;WQe(e)&&(l=e,u=t),WQe(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(a7(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?qA({delay:s(r,i)},c):c;c7(f,p,m),a(f,p,f,p,m)}}else for(var h=qA({dividePath:KQe[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?HQe(l,u,h):UQe(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?qA({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?GQe(u,l):GQe(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function f7(e){if(!e)return[];if(aj(e)){for(var t=[],n=0;n<e.length;n++)t.push(f7(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof WR&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var qQe=1e4,JQe=0,YQe=1,XQe=2,ZQe=$I();function QQe(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function $Qe(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function e$e(e,t,n,r){var i=QQe(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return $Qe(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function t$e(e){var t=[];return Q(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>qQe))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:e$e(n,a,r,!1),childGroupId:e$e(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function p7(e,t,n){e.traverse(function(e){e instanceof WR&&yV(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function m7(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function h7(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function n$e(e,t,n){var r=gV(`update`,n,t);r&&e.traverse(function(e){if(e instanceof ZL){var t=XTe(e);t&&e.animateFrom({style:t},r)}})}function r$e(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function i$e(e,t,n){var r=t$e(e),i=t$e(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?GA(GA({},n.style),e.style):e.style},i)}var o=!1,s=JQe,c=Aj(),l=Aj();Q(r,function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=YQe;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=XQe;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===YQe?n.childGroupId:n.groupId:s===XQe?n.childGroupId:n.groupId}}var m=r$e(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&n$e(u,s.dataIndex,c);return}l&&h[l.id]||u&&(h7(u),l?(h7(l),m7(l),o=!0,d7(f7(l),f7(u),s.divide,c,e,a)):p7(u,c,e))}new eY(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=ej(QA(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(h7(l),u.length?(Q(u,function(e){h7(e),m7(e)}),o=!0,d7(f7(u),f7(l),n.divide,c,e,a)):p7(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=ej(QA(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(Q(c,function(e){return h7(e)}),s?(h7(s),m7(s),o=!0,d7(f7(s),f7(c),n.divide,l,e[0],a)):Q(c,function(t){return p7(t,l,e[0])}))}}).updateManyToMany(function(e,t){new eY(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&Q(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=gV(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof WR&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function a$e(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function o$e(e){return aj(e)?e.sort().join(`,`):e}function g7(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function s$e(e,t){var n=Aj(),r=Aj(),i=Aj();return Q(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=a$e(t),c=o$e(s);r.set(c,{dataGroupId:a,data:o}),aj(s)&&Q(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),Q(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=a$e(e),s=o$e(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:g7(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:g7(a),data:a}]});else if(aj(o)){var l=[];Q(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:g7(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:g7(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:g7(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:g7(a)})}}}}),n}function c$e(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function l$e(e,t,n,r){var i=[],a=[];Q(HI(e.from),function(e){var n=c$e(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:g7(t.oldData[n]),groupIdDim:e.dimension})}),Q(HI(e.to),function(e){var r=c$e(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:g7(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&i$e(i,a,r)}function u$e(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){Q(HI(n.seriesTransition),function(e){Q(HI(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][iK]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=ZQe(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Q(HI(i),function(e){l$e(e,r,n,t)});else{var a=s$e(r,n);Q(a.keys(),function(e){var n=a.get(e);i$e(n.oldSeries,n.newSeries,t)})}Q(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[iK]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<qQe&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}var d$e=function(){function e(t,n){AY(this,e.decoratedMethods),this._outOfBrk=FY(null,n);var r=this._linear=FY(null,n);jY(this,r),this.breaks=t&&t.breaks||[]}return e.prototype.hasBreaks=function(){return!!this.breaks.length},e.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var r=this.breaks[n];if(r.vmin<e&&e<r.vmax)return t(e,r.vmax)}return 0},e.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return t==null||t===2?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){hL(t,n)&&(e===0&&h$e(this,[t,n]),this._outOfBrk.setExtent2(e,t,n),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(n,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&t.depth===2)return e;for(var n=p$e,r=m$e,i=!0,a=0;a<this.breaks.length;a++){var o=this.breaks[a];if(e<=o.vmax){e>o.vmin?n+=o.vmin-r+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:n+=e-r,r=o.vmax,i=!1;break}n+=o.vmin-r+o.gapReal,r=o.vmax}return i&&(n+=e-r),n},transformOut:function(e,t){if(t&&t.depth===2)return e;for(var n=p$e,r=m$e,i=!0,a=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],c=n+s.vmin-r,l=c+s.gapReal;if(e<=l){a=e>c?s.vmin+(e-c)/(l-c)*(s.vmax-s.vmin):r+e-n,r=s.vmax,i=!1;break}n=l,r=s.vmax}return i&&(a=r+e-n),a}},e}();function f$e(e,t){return new d$e(e,t)}var p$e=0,m$e=0;function h$e(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};Q(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=_7(e,t);if(o){var s=o.vmin!==e.vmin,c=o.vmax!==e.vmax,l=o.vmax-o.vmin;if(!(s&&c))if(s||c){var u=s?`S`:`E`;a[u][i.type].has=!0,a[u][i.type].span=l,a[u][i.type].inExtFrac=l/(e.vmax-e.vmin),a[u][i.type].val=i.val}else r[i.type].span+=l,r[i.type].val+=i.val}});var o=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));Q(e.breaks,function(e){var t=e.gapParsed;t.type===`tpPrct`&&(e.gapReal=n===0?0:tI(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function g$e(e,t,n,r,i,a){e!==`no`&&Q(n,function(n){var o=_7(n,a);if(o)for(var s=t.length-1;s>=0;s--){var c=t[s],l=r(c),u=i*3/4;l>o.vmin-u&&l<o.vmax+u&&(e!==`preserve_extent_bound`||l!==a[0]&&l!==a[1])&&t.splice(s,1)}})}function _$e(e,t,n,r){Q(t,function(t){var i=_7(t,n);i&&(e.push({value:i.vmin,break:{type:`vmin`,parsedBreak:i},time:r?r(i):void 0}),e.push({value:i.vmax,break:{type:`vmax`,parsedBreak:i},time:r?r(i):void 0}))}),t.length&&e.sort(function(e,t){return e.value-t.value})}function _7(e,t){var n=tI(e.vmin,t[0]),r=eI(e.vmax,t[1]);return n<r||n===r&&n>t[0]&&n<t[1]?{vmin:n,vmax:r,breakOption:e.breakOption,gapParsed:e.gapParsed,gapReal:e.gapReal}:null}function v7(e,t,n){var r=[];if(!e)return{breaks:r};function i(e,t){return e>=0&&e<.99999}Q(e,function(e){if(!(!e||e.start==null||e.end==null)&&!e.isExpanded){var a={breakOption:HA(e),vmin:t.parse(e.start),vmax:t.parse(e.end),gapParsed:{type:`tpAbs`,val:0},gapReal:null};if(e.gap!=null){var o=!1;if(sj(e.gap)){var s=wj(e.gap);if(s.match(/%$/)){var c=parseFloat(s)/100;i(c,`Percent gap`)||(c=0),a.gapParsed.type=`tpPrct`,a.gapParsed.val=c,o=!0}}if(!o){var l=t.parse(e.gap);(!isFinite(l)||l<0)&&(l=0),a.gapParsed.type=`tpAbs`,a.gapParsed.val=l}}if(a.vmin===a.vmax&&(a.gapParsed.type=`tpAbs`,a.gapParsed.val=0),n&&n.noNegative&&Q([`vmin`,`vmax`],function(e){a[e]<0&&(a[e]=0)}),a.vmin>a.vmax){var u=a.vmax;a.vmax=a.vmin,a.vmin=u}r.push(a)}}),r.sort(function(e,t){return e.vmin-t.vmin});var a=-1/0;return Q(r,function(e,t){a>e.vmin&&(r[t]=null),a=e.vmax}),{breaks:ej(r,function(e){return!!e})}}function y7(e,t){return b7(t)===b7(e)}function b7(e){return e.start+`_\0_`+e.end}function v$e(e,t,n){var r=[];Q(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),Q(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=tj(r,function(n){return y7(t(e[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)});o&&o.push(i)}});var i=[];return Q(r,function(t){t.length===2&&i.push(n?t:[e[t[0]],e[t[1]]])}),i}function y$e(e,t,n,r){if(t.break){var i=t.break.parsedBreak,a=tj(n,function(e){return y7(e.breakOption,t.break.parsedBreak.breakOption)}),o={lookup:r,depth:2},s={vmin:e.transformOut(i.vmin,o),vmax:e.transformOut(i.vmax,o),breakOption:i.breakOption,gapParsed:HA(a.gapParsed),gapReal:i.gapReal};return{tickVal:s[t.break.type],vBreak:{type:t.break.type,parsedBreak:s}}}}function b$e(e,t,n,r,i){i.original=v7(e,t,n);var a=i.transformed=v7(e,t,n),o=i.lookup;a.breaks=QA(a.breaks,function(e,n){var i={depth:2},a=t.transformIn(e.vmin,i),s=t.transformIn(e.vmax,i),c={type:e.gapParsed.type,val:e.gapParsed.type===`tpAbs`?t.transformIn(e.vmin+e.gapParsed.val,i)-a:e.gapParsed.val};return o.from[r+n]=a,o.to[r+n]=e.vmin,o.from[r+n+1]=s,o.to[r+n+1]=e.vmax,{vmin:a,vmax:s,gapParsed:c,gapReal:e.gapReal,breakOption:e.breakOption}})}var x$e={vmin:`start`,vmax:`end`};function S$e(e,t){return t&&(e||={},e.break={type:x$e[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function C$e(){gEe({createBreakScaleMapper:f$e,pruneTicksByBreak:g$e,addBreaksToTicks:_$e,parseAxisBreakOption:v7,identifyAxisBreak:y7,serializeAxisBreakIdentifier:b7,retrieveAxisBreakPairs:v$e,getTicksBreakOutwardTransform:y$e,parseAxisBreakOptionInwardTransform:b$e,makeAxisLabelFormatterParamBreak:S$e})}var w$e=$I();function T$e(e,t){var n=tj(e,function(e){return qH().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function E$e(e){Q(e,function(e){return e.shouldRemove=!0})}function D$e(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function O$e(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!qH())return;var o=qH().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1);if(!o.length)return;var s=n.getModel(`breakArea`),c=s.get(`zigzagAmplitude`),l=s.get(`zigzagMinSpan`),u=s.get(`zigzagMaxSpan`);l=Math.max(2,l||0),u=Math.max(l,u||0);var d=s.get(`expandOnClick`),f=s.get(`zigzagZ`),p=s.getModel(`itemStyle`).getItemStyle(),m=p.stroke,h=p.lineWidth,g=p.lineDash,_=p.fill,v=new WF({ignoreModelZ:!0}),y=a.isHorizontal(),b=w$e(t).visualList||(w$e(t).visualList=[]);E$e(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]<r[0]&&r.reverse();var s=T$e(b,t);s.shouldRemove=!1;var c=new WF;C(s.zigzagRandomList,c,r[0],r[1],y,t),d&&c.on(`click`,function(){var e={type:i1,breaks:[{start:t.breakOption.start,end:t.breakOption.end}]};e[a.dim+`AxisIndex`]=n.componentIndex,i.dispatchAction(e)}),c.silent=!d,v.add(c)},S=0;S<o.length;S++)x(S);e.add(v),D$e(b);function C(e,t,n,i,a,o){var s={stroke:m,lineWidth:h,lineDash:g,fill:`none`},d=+!a,v=1-d,y=r[DV[v]]+r[OV[v]];function b(e){var t=[],n=[];t[d]=n[d]=e,t[v]=r[DV[v]],n[v]=y;var i={x1:t[0],y1:t[1],x2:n[0],y2:n[1]};return JR(i,i,{lineWidth:1}),t[0]=i.x1,t[1]=i.y1,t[d]}n=b(n),i=b(i);for(var x=[],S=[],C=!0,w=r[DV[v]],T=0;;T++){var E=w===r[DV[v]],D=w>=y;D&&(w=y);var O=[],k=[];O[d]=n,k[d]=i,!E&&!D&&(O[d]+=C?-c:c,k[d]-=C?c:-c),O[v]=w,k[v]=w,x.push(O),S.push(k);var A=void 0;if(T<e.length?A=e[T]:(A=Math.random(),e.push(A)),w+=A*(u-l)+l,C=!C,D)break}var j=qH().serializeAxisBreakIdentifier(o.breakOption);if(t.add(new XB({anid:`break_a_`+j,shape:{points:x},style:s,z:f})),o.gapReal!==0){t.add(new XB({anid:`break_b_`+j,shape:{points:S},style:s,z:f}));var M=S.slice();M.reverse();var N=x.concat(M);t.add(new YB({anid:`break_c_`+j,shape:{points:N},style:{fill:_,opacity:p.opacity},z:f}))}}}function k$e(e,t,n,r){var i=e.axis,a=n.transform;Cj(r.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=QA(qH().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1),function(e){var t=e[0].break.parsedBreak,n=[i.dataToCoord(t.vmin,!0),i.dataToCoord(t.vmax,!0)];return n[0]>n[1]&&n.reverse(),{coordPair:n,brkId:qH().serializeAxisBreakIdentifier(t.breakOption)}});s.sort(function(e,t){return e.coordPair[0]-t.coordPair[0]});for(var c=o[0],l=null,u=0;u<s.length;u++){var d=s[u],f=Math.max(d.coordPair[0],o[0]),p=Math.min(d.coordPair[1],o[1]);c<=f&&m(c,f,l,d),c=p,l=d}c<=o[1]&&m(c,o[1],l,null);function m(e,n,i,o){function s(e,t){a&&(tM(e,e,a),tM(t,t,a))}function c(e,t){var n={x1:e[0],y1:e[1],x2:t[0],y2:t[1]};JR(n,n,r.style),e[0]=n.x1,e[1]=n.y1,t[0]=n.x2,t[1]=n.y2}var l=[e,0],u=[n,0],d=[e,5],f=[n,5];s(l,d),c(l,d),s(u,f),c(u,f),c(l,u);var p=new ZB(GA({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]}},r));t.add(p),p.anid=`breakLine_`+(i?i.brkId:`\0`)+`_\0_`+(o?o.brkId:`\0`)}}function A$e(e,t,n){if(tj(n,function(e){return!e}))return;var r=new MM;if(!YZ(n[0],n[1],r,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var i=CM();OM(i,i,-t);var a=QA(n,function(e){return e.transform?EM(CM(),i,e.transform):i});function o(e){var t=n[0].localRect,r=new MM(t[OV[e]]*a[0][0],t[OV[e]]*a[0][1]);return Math.abs(r.y)<1e-5}var s=.5;if(o(0)||o(1)){var c=QA(n,function(e,t){var n=e.localRect.clone();return n.applyTransform(a[t]),n}),l=new MM;l.copy(n[0].label).add(n[1].label).scale(.5),l.transform(i);var u=r.clone().transform(i),d=(c[0].x+c[1].x+(u.x>=0?c[0].width:c[1].width)+u.x)/2-l.x,f=Math.min(d,d-u.x),p=Math.max(d,d-u.x);s=(d-(p<0?p:f>0?f:0))/u.x}var m=new MM,h=new MM;MM.scale(m,r,-s),MM.scale(h,r,1-s),WZ(n[0],m),WZ(n[1],h)}function j$e(e,t){var n={breaks:[]};return Q(t.breaks,function(r){if(r){var i=tj(e.get(`breaks`,!0),function(e){return qH().identifyAxisBreak(e,r)});if(i){var a=t.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===`expandAxisBreak`?!0:a===`collapseAxisBreak`?!1:a===`toggleAxisBreak`?!i.isExpanded:i.isExpanded,n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}}),n}function M$e(){NMe({adjustBreakLabelPair:A$e,buildAxisBreakLine:k$e,rectCoordBuildBreakAxis:O$e,updateModelAxisBreak:j$e})}function N$e(e){zMe(e),C$e(),M$e()}function P$e(){ePe(F$e)}function F$e(e,t){Q(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=I$e(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function I$e(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof JY?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=dX(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u<i;u+=l){var d=s(r?r[u]:{value:a[0]+u},u),f=p(o.getTextRect(d),o.get(`rotate`)||0);c?c.union(f):c=f}return c;function p(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new GM(e.x,e.y,a,o)}}var L$e=s({Axis:()=>_Z,ChartView:()=>fK,ComponentModel:()=>aW,ComponentView:()=>lK,List:()=>yY,Model:()=>FH,PRIORITY:()=>Vq,SeriesModel:()=>aK,color:()=>JSe,connect:()=>lke,dataTool:()=>_ke,dependencies:()=>GOe,disConnect:()=>uke,disconnect:()=>MJ,dispose:()=>dke,env:()=>OA,extendChartView:()=>sje,extendComponentModel:()=>ije,extendComponentView:()=>aje,extendSeriesModel:()=>oje,format:()=>BAe,getCoordinateSystemDimensions:()=>pke,getInstanceByDom:()=>NJ,getInstanceById:()=>fke,getMap:()=>gke,graphic:()=>zAe,helper:()=>EAe,init:()=>cke,innerDrawElementOnCanvas:()=>Tq,matrix:()=>OSe,number:()=>LAe,parseGeoJSON:()=>iZ,parseGeoJson:()=>iZ,registerAction:()=>BJ,registerCoordinateSystem:()=>VJ,registerCustomSeries:()=>mke,registerLayout:()=>HJ,registerLoading:()=>KJ,registerLocale:()=>WH,registerMap:()=>qJ,registerPostInit:()=>LJ,registerPostUpdate:()=>RJ,registerPreprocessor:()=>FJ,registerProcessor:()=>IJ,registerTheme:()=>PJ,registerTransform:()=>JJ,registerUpdateLifecycle:()=>zJ,registerVisual:()=>UJ,setCanvasCreator:()=>hke,setPlatformAPI:()=>AA,throttle:()=>vK,time:()=>RAe,use:()=>ZJ,util:()=>VAe,vector:()=>sSe,version:()=>WOe,zrUtil:()=>Zxe,zrender:()=>kCe});ZJ([dMe]),ZJ([iMe]),ZJ([MMe,ANe,VNe,yPe,NPe,jIe,mLe,vRe,uze,bze,Eze,Ize,ZBe,TVe,HVe,uHe,gHe,AHe,LHe,sUe,hUe,MUe,AWe]),ZJ(fGe),ZJ(qGe),ZJ(TIe),ZJ(cKe),ZJ(XBe),ZJ(pKe),ZJ($Ke),ZJ(pqe),ZJ(xJe),ZJ(XJe),ZJ(t8),ZJ(SYe),ZJ(TYe),ZJ(BYe),ZJ(ZYe),ZJ(iXe),ZJ(pXe),ZJ(AXe),ZJ(tZe),ZJ(HXe),ZJ(eZe),ZJ(RZe),ZJ(MZe),ZJ(LZe),ZJ(WZe),ZJ(ZZe),ZJ(pQe),ZJ(gQe),ZJ(u$e),ZJ(Sje),ZJ(N$e),ZJ(P$e),ZJ(bPe);var R$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return`${t++}`}})),z$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,n=null;return function(){var r=this,i=[...arguments];clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}})),x7=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SizeSensorId=e.SensorTabIndex=e.SensorClassName=void 0,e.SizeSensorId=`size-sensor-id`,e.SensorClassName=`size-sensor-object`,e.SensorTabIndex=`-1`})),B$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=r(z$e()),n=x7();function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=function(){getComputedStyle(e).position===`static`&&(e.style.position=`relative`);var t=document.createElement(`object`);return t.onload=function(){t.contentDocument.defaultView.addEventListener(`resize`,s),s()},t.style.display=`block`,t.style.position=`absolute`,t.style.top=`0`,t.style.left=`0`,t.style.height=`100%`,t.style.width=`100%`,t.style.overflow=`hidden`,t.style.pointerEvents=`none`,t.style.zIndex=`-1`,t.style.opacity=`0`,t.setAttribute(`class`,n.SensorClassName),t.setAttribute(`tabindex`,n.SensorTabIndex),t.type=`text/html`,e.appendChild(t),t.data=`about:blank`,t},s=(0,t.default)(function(){a.forEach(function(t){t(e)})}),c=function(e){i||=o(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.parentNode&&(i.contentDocument&&i.contentDocument.defaultView.removeEventListener(`resize`,s),i.parentNode.removeChild(i),e.removeAttribute(n.SizeSensorId),i=void 0,a=[],r&&r())};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),V$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=x7(),n=r(z$e());function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=(0,n.default)(function(){a.forEach(function(t){t(e)})}),s=function(){var t=new ResizeObserver(o);return t.observe(e),o(),t},c=function(e){i||=s(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.disconnect(),a=[],i=void 0,e.removeAttribute(t.SizeSensorId),r&&r()};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),H$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=B$e(),n=V$e();e.createSensor=typeof ResizeObserver<`u`?n.createSensor:t.createSensor})),U$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var t=i(R$e()),n=H$e(),r=x7();function i(e){return e&&e.__esModule?e:{default:e}}var a=e.Sensors={};function o(e){e&&a[e]&&delete a[e]}e.getSensor=function(e){var i=e.getAttribute(r.SizeSensorId);if(i&&a[i])return a[i];var s=(0,t.default)();e.setAttribute(r.SizeSensorId,s);var c=(0,n.createSensor)(e,function(){return o(s)});return a[s]=c,c},e.removeSensor=function(e){var t=e.element.getAttribute(r.SizeSensorId);e.destroy(),o(t)}})),W$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var t=U$e();e.bind=function(e,n){var r=(0,t.getSensor)(e);return r.bind(n),function(){r.unbind(n)}},e.clear=function(e){var n=(0,t.getSensor)(e);(0,t.removeSensor)(n)},e.ver=`1.0.3`}))();function G$e(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}function S7(e){return typeof e==`function`}function K$e(e){return typeof e==`string`}var C7=l(o(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}}))()),q$e=function(e){CA(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=L$e,n}return t}(function(e){CA(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n.eventHandlerRefs={},n}return t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(e){var t=this.props.shouldSetOption;if(!(S7(t)&&!t(e,this.props))){if(!(0,C7.default)(e.theme,this.props.theme)||!(0,C7.default)(e.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();(0,C7.default)(e.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var r=[`option`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`];(0,C7.default)(G$e(this.props,r),G$e(e,r))||this.updateEChartsOption(),(!(0,C7.default)(e.style,this.props.style)||!(0,C7.default)(e.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return TA(this,void 0,void 0,function(){var e=this;return EA(this,function(t){return[2,new Promise(function(t){e.echarts.init(e.ele,e.props.theme,e.props.opts),e.getEchartsInstance().on(`finished`,function(){var n=e.ele.clientWidth,r=e.ele.clientHeight;e.echarts.dispose(e.ele);var i=wA({width:n,height:r},e.props.opts);t(e.echarts.init(e.ele,e.props.theme,i))})})]})})},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)},t.prototype.dispose=function(){if(this.ele){try{(0,W$e.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return TA(this,void 0,void 0,function(){var e,t,n,r,i,a,o=this;return EA(this,function(s){switch(s.label){case 0:return e=this.props,t=e.onEvents,n=e.onChartReady,r=e.autoResize,i=r===void 0?!0:r,[4,this.initEchartsInstance()];case 1:return s.sent(),a=this.updateEChartsOption(),this.bindEvents(a,t||{}),S7(n)&&n(a),this.ele&&i&&(0,W$e.bind)(this.ele,function(){o.resize()}),[2]}})})},t.prototype.bindEvents=function(e,t){var n=this,r=function(t,r){if(K$e(t)&&S7(r)){var i=function(t){r(t,e)};e.on(t,i),n.eventHandlerRefs[t]=i}};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r(i,t[i])},t.prototype.unbindEvents=function(e){for(var t=0,n=Object.entries(this.eventHandlerRefs);t<n.length;t++){var r=n[t],i=r[0],a=r[1];e.off(i,a)}this.eventHandlerRefs={}},t.prototype.updateEChartsOption=function(){var e=this.props,t=e.option,n=e.notMerge,r=n===void 0?!1:n,i=e.replaceMerge,a=i===void 0?null:i,o=e.lazyUpdate,s=o===void 0?!1:o,c=e.showLoading,l=e.loadingOption,u=l===void 0?null:l,d=this.getEchartsInstance();return d.setOption(t,{notMerge:r,replaceMerge:a,lazyUpdate:s}),c?d.showLoading(u):d.hideLoading(),d},t.prototype.resize=function(){var e=this.getEchartsInstance();if(!this.isInitialResize)try{e.resize({width:`auto`,height:`auto`})}catch(e){console.warn(e)}this.isInitialResize=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,i=r===void 0?``:r;t.echarts,t.option,t.theme,t.notMerge,t.replaceMerge,t.lazyUpdate,t.showLoading,t.loadingOption,t.opts,t.onChartReady,t.onEvents,t.shouldSetOption,t.autoResize;var a=Hxe(t,[`style`,`className`,`echarts`,`option`,`theme`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`,`opts`,`onChartReady`,`onEvents`,`shouldSetOption`,`autoResize`]),o=wA({height:300},n);return h.createElement(`div`,wA({ref:function(t){e.ele=t},style:o,className:`echarts-for-react ${i}`},a))},t}(h.PureComponent)),w7={up:`#52c41a`,down:`#ff4d4f`,flat:`#8c8c8c`,volatile:`#fa8c16`};function J$e({points:e,subjectName:t,threshold:n}){if(e.length===0)return(0,X.jsx)(`div`,{style:{textAlign:`center`,padding:40,color:`#999`},children:`暂无成绩数据`});let r=e.map(e=>e.exam_date),i=e.map(e=>e.ratio_percent),a=e.slice(1).map((e,t)=>{let n=w7.flat;return e.direction===`up`&&(n=w7.up),e.direction===`down`&&(n=w7.down),{type:`line`,data:r.map((e,n)=>n===t||n===t+1?i[n]:null),connectNulls:!1,showSymbol:!1,lineStyle:{width:3,color:n},tooltip:{show:!1},silent:!0}}),o=e.map((e,t)=>({point:e,i:t})).filter(({point:e})=>e.is_volatile).map(({i:e})=>({coord:[r[e],i[e]],symbol:`circle`,symbolSize:18,itemStyle:{color:w7.volatile,borderColor:`#fff`,borderWidth:2},label:{show:!1}}));return(0,X.jsxs)(`div`,{children:[(0,X.jsx)(q$e,{option:{title:{text:`${t} 成绩占比趋势`,left:`center`,textStyle:{fontSize:16}},tooltip:{trigger:`axis`,formatter:t=>{let n=e[t[0]?.dataIndex??0];if(!n)return``;let r=yA[n.exam_type],i=`<strong>${n.exam_date}</strong> (${r})<br/>占比: ${n.ratio_percent}%`;if(n.title&&(i+=`<br/>${n.title}`),n.delta_percent!==null){let e=n.delta_percent>0?`+`:``;i+=`<br/>较上次: ${e}${n.delta_percent}%`,n.is_volatile&&(i+=` <span style="color:#fa8c16">[大幅波动]</span>`)}return i}},grid:{left:50,right:30,top:60,bottom:50},xAxis:{type:`category`,data:r,axisLabel:{rotate:30}},yAxis:{type:`value`,name:`占比 (%)`,min:0,max:100},series:[{type:`line`,data:i,symbol:`circle`,symbolSize:(t,n)=>e[n.dataIndex]?.is_volatile?14:8,itemStyle:{color:t=>{let n=e[t.dataIndex];return n?.is_volatile?w7.volatile:n?.direction===`up`?w7.up:n?.direction===`down`?w7.down:`#1677ff`}},lineStyle:{opacity:0},markPoint:o.length?{data:o}:void 0,z:10},...a],legend:{bottom:0,data:[{name:`上升`,itemStyle:{color:w7.up}},{name:`下降`,itemStyle:{color:w7.down}},{name:`大幅波动`,itemStyle:{color:w7.volatile}}]}},style:{height:400,width:`100%`},notMerge:!0}),(0,X.jsxs)(`p`,{style:{color:`#888`,fontSize:12,marginTop:8},children:[`波动阈值: `,(n*100).toFixed(0),`%,超过此变化幅度将高亮显示`]})]})}function T7(e){return e.error_message?!1:e.status===`pending`||e.status===`ocr_done`&&!e.question_text}function E7(e){return e.status===`pending`?`正在识别文字(约 1030 秒)…`:e.status===`ocr_done`?`正在标注错题并生成解题思路(约 30–90 秒)…`:`正在识别、标注并生成解题思路…`}function Y$e({questionId:e,variant:t=`original`,className:n,alt:r=`题目`,style:i}){let[a,o]=(0,h.useState)(null),[s,c]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{let n=null,r=!1,i=async(e,t)=>{try{let t=await qk.get(e,{responseType:`blob`});if(r)return;n=URL.createObjectURL(t.data),o(n),c(!1)}catch{t&&!r?await i(t):r||c(!0)}},a=`/wrong-questions/${e}/annotated-image`,s=`/wrong-questions/${e}/cropped-image`,l=`/wrong-questions/${e}/image`;return t===`annotated`?i(a,l):t===`cropped`?i(s,a):i(l),()=>{r=!0,n&&URL.revokeObjectURL(n)}},[e,t]),s?(0,X.jsx)(`div`,{className:n,style:{...i,background:`#fafafa`,color:`#999`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:12},children:`图片加载失败`}):a?(0,X.jsx)(`img`,{src:a,alt:r,className:n,style:i}):(0,X.jsx)(`div`,{className:n,style:{...i,background:`#fafafa`}})}function X$e(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Z$e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Q$e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$$e={};function e1e(e,t){return((t||$$e).jsx?Q$e:Z$e).test(e)}var t1e=/[ \t\n\f\r]/g;function n1e(e){return typeof e==`object`?e.type===`text`?r1e(e.value):!1:r1e(e)}function r1e(e){return e.replace(t1e,``)===``}var D7=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};D7.prototype.normal={},D7.prototype.property={},D7.prototype.space=void 0;function i1e(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new D7(n,r,t)}function O7(e){return e.toLowerCase()}var k7=class{constructor(e,t){this.attribute=t,this.property=e}};k7.prototype.attribute=``,k7.prototype.booleanish=!1,k7.prototype.boolean=!1,k7.prototype.commaOrSpaceSeparated=!1,k7.prototype.commaSeparated=!1,k7.prototype.defined=!1,k7.prototype.mustUseProperty=!1,k7.prototype.number=!1,k7.prototype.overloadedBoolean=!1,k7.prototype.property=``,k7.prototype.spaceSeparated=!1,k7.prototype.space=void 0;var A7=s({boolean:()=>j7,booleanish:()=>M7,commaOrSpaceSeparated:()=>L7,commaSeparated:()=>I7,number:()=>P7,overloadedBoolean:()=>N7,spaceSeparated:()=>F7}),a1e=0,j7=R7(),M7=R7(),N7=R7(),P7=R7(),F7=R7(),I7=R7(),L7=R7();function R7(){return 2**++a1e}var z7=Object.keys(A7),B7=class extends k7{constructor(e,t,n,r){let i=-1;if(super(e,t),o1e(this,`space`,r),typeof n==`number`)for(;++i<z7.length;){let e=z7[i];o1e(this,z7[i],(n&A7[e])===A7[e])}}};B7.prototype.defined=!0;function o1e(e,t,n){n&&(e[t]=n)}function V7(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new B7(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[O7(r)]=r,n[O7(a.attribute)]=r}return new D7(t,n,e.space)}var s1e=V7({properties:{ariaActiveDescendant:null,ariaAtomic:M7,ariaAutoComplete:null,ariaBusy:M7,ariaChecked:M7,ariaColCount:P7,ariaColIndex:P7,ariaColSpan:P7,ariaControls:F7,ariaCurrent:null,ariaDescribedBy:F7,ariaDetails:null,ariaDisabled:M7,ariaDropEffect:F7,ariaErrorMessage:null,ariaExpanded:M7,ariaFlowTo:F7,ariaGrabbed:M7,ariaHasPopup:null,ariaHidden:M7,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:F7,ariaLevel:P7,ariaLive:null,ariaModal:M7,ariaMultiLine:M7,ariaMultiSelectable:M7,ariaOrientation:null,ariaOwns:F7,ariaPlaceholder:null,ariaPosInSet:P7,ariaPressed:M7,ariaReadOnly:M7,ariaRelevant:null,ariaRequired:M7,ariaRoleDescription:F7,ariaRowCount:P7,ariaRowIndex:P7,ariaRowSpan:P7,ariaSelected:M7,ariaSetSize:P7,ariaSort:null,ariaValueMax:P7,ariaValueMin:P7,ariaValueNow:P7,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function c1e(e,t){return t in e?e[t]:t}function l1e(e,t){return c1e(e,t.toLowerCase())}var u1e=V7({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:I7,acceptCharset:F7,accessKey:F7,action:null,allow:null,allowFullScreen:j7,allowPaymentRequest:j7,allowUserMedia:j7,alpha:j7,alt:null,as:null,async:j7,autoCapitalize:null,autoComplete:F7,autoFocus:j7,autoPlay:j7,blocking:F7,capture:null,charSet:null,checked:j7,cite:null,className:F7,closedBy:null,colorSpace:null,cols:P7,colSpan:P7,command:null,commandFor:null,content:null,contentEditable:M7,controls:j7,controlsList:F7,coords:P7|I7,crossOrigin:null,data:null,dateTime:null,decoding:null,default:j7,defer:j7,dir:null,dirName:null,disabled:j7,download:N7,draggable:M7,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:j7,formTarget:null,headers:F7,height:P7,hidden:N7,high:P7,href:null,hrefLang:null,htmlFor:F7,httpEquiv:F7,id:null,imageSizes:null,imageSrcSet:null,inert:j7,inputMode:null,integrity:null,is:null,isMap:j7,itemId:null,itemProp:F7,itemRef:F7,itemScope:j7,itemType:F7,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:j7,low:P7,manifest:null,max:null,maxLength:P7,media:null,method:null,min:null,minLength:P7,multiple:j7,muted:j7,name:null,nonce:null,noModule:j7,noValidate:j7,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:j7,optimum:P7,pattern:null,ping:F7,placeholder:null,playsInline:j7,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:j7,referrerPolicy:null,rel:F7,required:j7,reversed:j7,rows:P7,rowSpan:P7,sandbox:F7,scope:null,scoped:j7,seamless:j7,selected:j7,shadowRootClonable:j7,shadowRootCustomElementRegistry:j7,shadowRootDelegatesFocus:j7,shadowRootMode:null,shadowRootSerializable:j7,shape:null,size:P7,sizes:null,slot:null,span:P7,spellCheck:M7,src:null,srcDoc:null,srcLang:null,srcSet:null,start:P7,step:null,style:null,tabIndex:P7,target:null,title:null,translate:null,type:null,typeMustMatch:j7,useMap:null,value:M7,width:P7,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:F7,axis:null,background:null,bgColor:null,border:P7,borderColor:null,bottomMargin:P7,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:j7,declare:j7,event:null,face:null,frame:null,frameBorder:null,hSpace:P7,leftMargin:P7,link:null,longDesc:null,lowSrc:null,marginHeight:P7,marginWidth:P7,noResize:j7,noHref:j7,noShade:j7,noWrap:j7,object:null,profile:null,prompt:null,rev:null,rightMargin:P7,rules:null,scheme:null,scrolling:M7,standby:null,summary:null,text:null,topMargin:P7,valueType:null,version:null,vAlign:null,vLink:null,vSpace:P7,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:j7,disablePictureInPicture:j7,disableRemotePlayback:j7,exportParts:I7,part:F7,prefix:null,property:null,results:P7,security:null,unselectable:null},space:`html`,transform:l1e}),d1e=V7({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:L7,accentHeight:P7,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:P7,amplitude:P7,arabicForm:null,ascent:P7,attributeName:null,attributeType:null,azimuth:P7,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:P7,by:null,calcMode:null,capHeight:P7,className:F7,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:P7,diffuseConstant:P7,direction:null,display:null,dur:null,divisor:P7,dominantBaseline:null,download:j7,dx:null,dy:null,edgeMode:null,editable:null,elevation:P7,enableBackground:null,end:null,event:null,exponent:P7,externalResourcesRequired:null,fill:null,fillOpacity:P7,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:I7,g2:I7,glyphName:I7,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:P7,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:P7,horizOriginX:P7,horizOriginY:P7,id:null,ideographic:P7,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:P7,k:P7,k1:P7,k2:P7,k3:P7,k4:P7,kernelMatrix:L7,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:P7,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:P7,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:P7,overlineThickness:P7,paintOrder:null,panose1:null,path:null,pathLength:P7,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:F7,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:P7,pointsAtY:P7,pointsAtZ:P7,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:L7,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:L7,rev:L7,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:L7,requiredFeatures:L7,requiredFonts:L7,requiredFormats:L7,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:P7,specularExponent:P7,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:P7,strikethroughThickness:P7,string:null,stroke:null,strokeDashArray:L7,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:P7,strokeOpacity:P7,strokeWidth:null,style:null,surfaceScale:P7,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:L7,tabIndex:P7,tableValues:null,target:null,targetX:P7,targetY:P7,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:L7,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:P7,underlineThickness:P7,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:P7,values:null,vAlphabetic:P7,vMathematical:P7,vectorEffect:null,vHanging:P7,vIdeographic:P7,version:null,vertAdvY:P7,vertOriginX:P7,vertOriginY:P7,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:P7,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:c1e}),f1e=V7({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),p1e=V7({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:l1e}),m1e=V7({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),h1e={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},g1e=/[A-Z]/g,_1e=/-[a-z]/g,v1e=/^data[-\w.:]+$/i;function y1e(e,t){let n=O7(t),r=t,i=k7;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&v1e.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(_1e,x1e);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!_1e.test(e)){let n=e.replace(g1e,b1e);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=B7}return new i(r,t)}function b1e(e){return`-`+e.toLowerCase()}function x1e(e){return e.charAt(1).toUpperCase()}var S1e=i1e([s1e,u1e,f1e,p1e,m1e],`html`),H7=i1e([s1e,d1e,f1e,p1e,m1e],`svg`);function C1e(e){return e.join(` `).trim()}var w1e=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`/`,d=`*`,f=``;function p(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,p=1;function h(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
`);p=~n?e.length-n:p+e.length}function g(){var e={line:l,column:p};return function(t){return t.position=new _(e),b(),t}}function _(e){this.start=e,this.end={line:l,column:p},this.source=t.source}_.prototype.content=e;function v(n){var r=Error(t.source+`:`+l+`:`+p+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=p,r.source=e,!t.silent)throw r}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(){y(i)}function x(e){var t;for(e||=[];t=S();)t!==!1&&e.push(t);return e}function S(){var t=g();if(!(u!=e.charAt(0)||d!=e.charAt(1))){for(var n=2;f!=e.charAt(n)&&(d!=e.charAt(n)||u!=e.charAt(n+1));)++n;if(n+=2,f===e.charAt(n-1))return v(`End of comment missing`);var r=e.slice(2,n-2);return p+=2,h(r),e=e.slice(n),p+=2,t({type:`comment`,comment:r})}}function C(){var e=g(),t=y(a);if(t){if(S(),!y(o))return v(`property missing ':'`);var r=y(s),i=e({type:`declaration`,property:m(t[0].replace(n,f)),value:r?m(r[0].replace(n,f)):f});return y(c),i}}function w(){var e=[];x(e);for(var t;t=C();)t!==!1&&(e.push(t),x(e));return e}return b(),w()}function m(e){return e?e.replace(l,f):f}t.exports=p})),T1e=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(w1e());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),E1e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),D1e=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(T1e()),r=E1e();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),O1e=k1e(`end`),U7=k1e(`start`);function k1e(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function A1e(e){let t=U7(e),n=O1e(e);if(t&&n)return{start:t,end:n}}function W7(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?j1e(e.position):`start`in e||`end`in e?j1e(e):`line`in e||`column`in e?G7(e):``}function G7(e){return M1e(e&&e.line)+`:`+M1e(e&&e.column)}function j1e(e){return G7(e&&e.start)+`-`+G7(e&&e.end)}function M1e(e){return e&&typeof e==`number`?e:1}var K7=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=W7(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};K7.prototype.file=``,K7.prototype.name=``,K7.prototype.reason=``,K7.prototype.message=``,K7.prototype.stack=``,K7.prototype.column=void 0,K7.prototype.line=void 0,K7.prototype.ancestors=void 0,K7.prototype.cause=void 0,K7.prototype.fatal=void 0,K7.prototype.place=void 0,K7.prototype.ruleId=void 0,K7.prototype.source=void 0;var N1e=l(D1e(),1),q7={}.hasOwnProperty,P1e=new Map,F1e=/[A-Z]/g,I1e=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),L1e=new Set([`td`,`th`]);function R1e(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=J1e(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=q1e(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?H7:S1e,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=z1e(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function z1e(e,t,n){if(t.type===`element`)return B1e(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return V1e(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return U1e(e,t,n);if(t.type===`mdxjsEsm`)return H1e(e,t);if(t.type===`root`)return W1e(e,t,n);if(t.type===`text`)return G1e(e,t)}function B1e(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=H7,e.schema=i),e.ancestors.push(t);let a=$1e(e,t.tagName,!1),o=Y1e(e,t),s=Y7(e,t);return I1e.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!n1e(e):!0})),K1e(e,o,a,t),J7(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function V1e(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}X7(e,t.position)}function H1e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);X7(e,t.position)}function U1e(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=H7,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:$1e(e,t.name,!0),o=X1e(e,t),s=Y7(e,t);return K1e(e,o,a,t),J7(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function W1e(e,t,n){let r={};return J7(r,Y7(e,t)),e.create(t,e.Fragment,r,n)}function G1e(e,t){return t.value}function K1e(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function J7(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function q1e(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function J1e(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=U7(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Y1e(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&q7.call(t.properties,i)){let a=Z1e(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&L1e.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function X1e(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else X7(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else X7(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Y7(e,t){let n=[],r=-1,i=e.passKeys?new Map:P1e;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=z1e(e,a,o);s!==void 0&&n.push(s)}return n}function Z1e(e,t,n){let r=y1e(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?X$e(n):C1e(n)),r.property===`style`){let t=typeof n==`object`?n:Q1e(e,String(n));return e.stylePropertyNameCase===`css`&&(t=e0e(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?h1e[r.property]||r.property:r.attribute,n]}}function Q1e(e,t){try{return(0,N1e.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new K7("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute`,r}}function $1e(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=e1e(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=e1e(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return q7.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);X7(e)}function X7(e,t){let n=new K7("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater`,n}function e0e(e){let t={},n;for(n in e)q7.call(e,n)&&(t[t0e(n)]=e[n]);return t}function t0e(e){let t=e.replace(F1e,n0e);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function n0e(e){return`-`+e.toLowerCase()}var Z7={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},r0e={};function i0e(e,t){let n=t||r0e;return a0e(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function a0e(e,t,n){if(s0e(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return o0e(e.children,t,n)}return Array.isArray(e)?o0e(e,t,n):``}function o0e(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=a0e(e[i],t,n);return r.join(``)}function s0e(e){return!!(e&&typeof e==`object`)}function Q7(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function $7(e,t){return e.length>0?(Q7(e,e.length,0,t),e):t}var c0e={}.hasOwnProperty;function l0e(e){let t={},n=-1;for(;++n<e.length;)u0e(t,e[n]);return t}function u0e(e,t){let n;for(n in t){let r=(c0e.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){c0e.call(r,a)||(r[a]=[]);let e=i[a];d0e(r[a],Array.isArray(e)?e:e?[e]:[])}}}function d0e(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Q7(e,0,0,r)}var e9=s9(/[A-Za-z]/),t9=s9(/[\dA-Za-z]/),f0e=s9(/[#-'*+\--9=?A-Z^-~]/);function n9(e){return e!==null&&(e<32||e===127)}var r9=s9(/\d/),p0e=s9(/[\dA-Fa-f]/),m0e=s9(/[!-/:-@[-`{-~]/);function i9(e){return e!==null&&e<-2}function a9(e){return e!==null&&(e<0||e===32)}function o9(e){return e===-2||e===-1||e===32}var h0e=s9(/\p{P}|\p{S}/u),g0e=s9(/\s/);function s9(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function c9(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return o9(r)?(e.enter(n),s(r)):t(r)}function s(r){return o9(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var _0e={tokenize:v0e};function v0e(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),c9(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return i9(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var y0e={tokenize:x0e},b0e={tokenize:S0e};function x0e(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return Q7(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(b0e,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(b0e,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return i9(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;Q7(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function S0e(e,t,n){return c9(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function C0e(e){if(e===null||a9(e)||g0e(e))return 1;if(h0e(e))return 2}function l9(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var u9={name:`attention`,resolveAll:w0e,tokenize:T0e};function w0e(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};E0e(d,-c),E0e(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=$7(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=$7(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=$7(l,l9(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=$7(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=$7(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,Q7(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function T0e(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=C0e(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=C0e(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function E0e(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var D0e={name:`autolink`,tokenize:O0e};function O0e(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return e9(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||t9(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||t9(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||n9(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):f0e(t)?(e.consume(t),l):n(t)}function u(e){return t9(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||t9(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var d9={partial:!0,tokenize:k0e};function k0e(e,t,n){return r;function r(t){return o9(t)?c9(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||i9(e)?t(e):n(e)}}var A0e={continuation:{tokenize:M0e},exit:N0e,name:`blockQuote`,tokenize:j0e};function j0e(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return o9(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function M0e(e,t,n){let r=this;return i;function i(t){return o9(t)?c9(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(A0e,t,n)(r)}}function N0e(e){e.exit(`blockQuote`)}var P0e={name:`characterEscape`,tokenize:F0e};function F0e(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return m0e(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var I0e=document.createElement(`i`);function f9(e){let t=`&`+e+`;`;I0e.innerHTML=t;let n=I0e.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}var L0e={name:`characterReference`,tokenize:R0e};function R0e(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=t9,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=p0e,u):(e.enter(`characterReferenceValue`),a=7,o=r9,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===t9&&!f9(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var z0e={partial:!0,tokenize:H0e},B0e={concrete:!0,name:`codeFenced`,tokenize:V0e};function V0e(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),o9(t)?c9(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||i9(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(z0e,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||i9(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):o9(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),c9(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||i9(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||i9(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&o9(t)?c9(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||i9(t)?e.check(z0e,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||i9(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),o9(t)?c9(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),o9(t)?c9(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||i9(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function H0e(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var p9={name:`codeIndented`,tokenize:W0e},U0e={partial:!0,tokenize:G0e};function W0e(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),c9(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):i9(t)?e.attempt(U0e,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||i9(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function G0e(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):i9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):c9(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):i9(e)?i(e):n(e)}}var K0e={name:`codeText`,previous:J0e,resolve:q0e,tokenize:Y0e};function q0e(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function J0e(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Y0e(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):i9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||i9(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var X0e=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&m9(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),m9(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),m9(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);m9(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);m9(this.left,t.reverse())}}};function m9(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Z0e(e){let t={},n=-1,r,i,a,o,s,c,l,u=new X0e(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Q0e(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Q7(e,0,1/0,u.slice(0)),!l}function Q0e(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var $0e={resolve:t2e,tokenize:n2e},e2e={partial:!0,tokenize:r2e};function t2e(e){return Z0e(e),e}function n2e(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):i9(t)?e.check(e2e,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function r2e(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c9(e,a,`linePrefix`)}function a(i){if(i===null||i9(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function i2e(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||n9(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||i9(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||a9(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||n9(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function a2e(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):i9(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||i9(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!o9(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function o2e(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):i9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c9(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||i9(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function h9(e,t){let n;return r;function r(i){return i9(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):o9(i)?c9(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}function g9(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var s2e={name:`definition`,tokenize:l2e},c2e={partial:!0,tokenize:u2e};function l2e(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return a2e.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=g9(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return a9(t)?h9(e,l)(t):l(t)}function l(t){return i2e(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(c2e,d,d)(t)}function d(t){return o9(t)?c9(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||i9(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function u2e(e,t,n){return r;function r(t){return a9(t)?h9(e,i)(t):n(t)}function i(t){return o2e(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return o9(t)?c9(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||i9(e)?t(e):n(e)}}var d2e={name:`hardBreakEscape`,tokenize:f2e};function f2e(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return i9(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var p2e={name:`headingAtx`,resolve:m2e,tokenize:h2e};function m2e(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},Q7(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function h2e(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||a9(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||i9(n)?(e.exit(`atxHeading`),t(n)):o9(n)?c9(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||a9(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var g2e=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),_2e=[`pre`,`script`,`style`,`textarea`],v2e={concrete:!0,name:`htmlFlow`,resolveTo:x2e,tokenize:S2e},y2e={partial:!0,tokenize:w2e},b2e={partial:!0,tokenize:C2e};function x2e(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function S2e(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):e9(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):e9(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return e9(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||a9(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&_2e.includes(l)?(i=1,r.interrupt?t(s):O(s)):g2e.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||t9(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return o9(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||e9(t)?(e.consume(t),b):o9(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||t9(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):o9(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):o9(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||i9(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||a9(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||o9(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||i9(t)?O(t):o9(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):i9(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(y2e,R,k)(t)):t===null||i9(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(b2e,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||i9(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return _2e.includes(n)?(e.consume(t),L):O(t)}return e9(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||i9(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function C2e(e,t,n){let r=this;return i;function i(t){return i9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function w2e(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(d9,t,n)}}var T2e={name:`htmlText`,tokenize:E2e};function E2e(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):e9(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):e9(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):i9(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):i9(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):i9(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):i9(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return e9(t)?(e.consume(t),S):n(t)}function S(t){return t===45||t9(t)?(e.consume(t),S):C(t)}function C(t){return i9(t)?(o=C,N(t)):o9(t)?(e.consume(t),C):M(t)}function w(t){return t===45||t9(t)?(e.consume(t),w):t===47||t===62||a9(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||e9(t)?(e.consume(t),E):i9(t)?(o=T,N(t)):o9(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||t9(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):i9(t)?(o=D,N(t)):o9(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):i9(t)?(o=O,N(t)):o9(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):i9(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||a9(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||a9(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return o9(t)?c9(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var _9={name:`labelEnd`,resolveAll:A2e,resolveTo:j2e,tokenize:M2e},D2e={tokenize:N2e},O2e={tokenize:P2e},k2e={tokenize:F2e};function A2e(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&Q7(e,0,e.length,n),e}function j2e(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=$7(s,e.slice(a+1,a+r+3)),s=$7(s,[[`enter`,u,t]]),s=$7(s,l9(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=$7(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=$7(s,e.slice(o+1)),s=$7(s,[[`exit`,c,t]]),Q7(e,a,e.length,s),e}function M2e(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(g9(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(D2e,u,o?u:d)(t):t===91?e.attempt(O2e,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(k2e,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function N2e(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return a9(t)?h9(e,a)(t):a(t)}function a(t){return t===41?u(t):i2e(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return a9(t)?h9(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?o2e(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return a9(t)?h9(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function P2e(e,t,n){let r=this;return i;function i(t){return a2e.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(g9(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function F2e(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var I2e={name:`labelStartImage`,resolveAll:_9.resolveAll,tokenize:L2e};function L2e(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var R2e={name:`labelStartLink`,resolveAll:_9.resolveAll,tokenize:z2e};function z2e(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var v9={name:`lineEnding`,tokenize:B2e};function B2e(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),c9(e,t,`linePrefix`)}}var y9={name:`thematicBreak`,tokenize:V2e};function V2e(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||i9(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),o9(t)?c9(e,s,`whitespace`)(t):s(t))}}var b9={continuation:{tokenize:G2e},exit:q2e,name:`list`,tokenize:W2e},H2e={partial:!0,tokenize:J2e},U2e={partial:!0,tokenize:K2e};function W2e(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:r9(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(y9,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return r9(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(d9,r.interrupt?n:u,e.attempt(H2e,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return o9(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function G2e(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(d9,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,c9(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!o9(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(U2e,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,c9(e,e.attempt(b9,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function K2e(e,t,n){let r=this;return c9(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function q2e(e){e.exit(this.containerState.type)}function J2e(e,t,n){let r=this;return c9(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!o9(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Y2e={name:`setextUnderline`,resolveTo:X2e,tokenize:Z2e};function X2e(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Z2e(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),o9(t)?c9(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||i9(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Q2e={tokenize:$2e};function $2e(e){let t=this,n=e.attempt(d9,r,e.attempt(this.parser.constructs.flowInitial,i,c9(e,e.attempt(this.parser.constructs.flow,i,e.attempt($0e,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var e4e={resolveAll:i4e()},t4e=r4e(`string`),n4e=r4e(`text`);function r4e(e){return{resolveAll:i4e(e===`text`?a4e:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function i4e(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function a4e(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var o4e=s({attentionMarkers:()=>m4e,contentInitial:()=>c4e,disable:()=>h4e,document:()=>s4e,flow:()=>u4e,flowInitial:()=>l4e,insideSpan:()=>p4e,string:()=>d4e,text:()=>f4e}),s4e={42:b9,43:b9,45:b9,48:b9,49:b9,50:b9,51:b9,52:b9,53:b9,54:b9,55:b9,56:b9,57:b9,62:A0e},c4e={91:s2e},l4e={[-2]:p9,[-1]:p9,32:p9},u4e={35:p2e,42:y9,45:[Y2e,y9],60:v2e,61:Y2e,95:y9,96:B0e,126:B0e},d4e={38:L0e,92:P0e},f4e={[-5]:v9,[-4]:v9,[-3]:v9,33:I2e,38:L0e,42:u9,60:[D0e,T2e],91:R2e,92:[d2e,P0e],93:_9,95:u9,96:K0e},p4e={null:[u9,e4e]},m4e={null:[42,95]},h4e={null:[]};function g4e(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=$7(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=l9(a,l.events,l),l.events):[]}function f(e,t){return v4e(p(e),t)}function p(e){return _4e(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){i9(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Q7(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function _4e(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function v4e(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
`;break;case-3:o=`\r
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function y4e(e){let t={constructs:l0e([o4e,...(e||{}).extensions||[]]),content:n(_0e),defined:[],document:n(y0e),flow:n(Q2e),lazy:{},string:n(t4e),text:n(n4e)};return t;function n(e){return n;function n(n){return g4e(t,e,n)}}}function b4e(e){for(;!Z0e(e););return e}var x4e=/[\0\t\n\r]/g;function S4e(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(x4e.lastIndex=u,c=x4e.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}function C4e(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?``:String.fromCodePoint(n)}var w4e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function T4e(e){return e.replace(w4e,E4e)}function E4e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return C4e(n.slice(t?2:1),t?16:10)}return f9(n)||e}var D4e={}.hasOwnProperty;function O4e(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),k4e(n)(b4e(y4e(n).document().write(S4e()(e,t,!0))))}function k4e(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(se),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(re),blockQuote:a(K),characterEscape:T,characterReference:T,codeFenced:a(q),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(q,o),codeText:a(ee,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(te),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ne),hardBreakEscape:a(ie),hardBreakTrailing:a(ie),htmlFlow:a(ae,o),htmlFlowData:T,htmlText:a(ae,o),htmlTextData:T,image:a(oe),label:o,link:a(se),listItem:a(le),listItemValue:f,listOrdered:a(ce,d),listUnordered:a(ce),paragraph:a(ue),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(re),strong:a(de),thematicBreak:a(pe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:G,autolinkProtocol:W,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:U,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};A4e(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];D4e.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||M4e).call(a,void 0,e[0])}for(r.position={start:x9(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:x9(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:x9(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||M4e).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+W7({start:e.start,end:e.end})+`): its not open`);n.position.end=x9(e.end)}function u(){return i0e(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=g9(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=fe(),n.position={start:x9(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=x9(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=x9(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=T4e(t),n.identifier=g9(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=g9(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function V(e){this.data.characterReferenceType=e.type}function H(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=C4e(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=f9(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=x9(e.end)}function W(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function G(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function K(){return{type:`blockquote`,children:[]}}function q(){return{type:`code`,lang:null,meta:null,value:``}}function ee(){return{type:`inlineCode`,value:``}}function te(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ne(){return{type:`emphasis`,children:[]}}function re(){return{type:`heading`,depth:0,children:[]}}function ie(){return{type:`break`}}function ae(){return{type:`html`,value:``}}function oe(){return{type:`image`,title:null,url:``,alt:null}}function se(){return{type:`link`,title:null,url:``,children:[]}}function ce(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function le(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ue(){return{type:`paragraph`,children:[]}}function de(){return{type:`strong`,children:[]}}function fe(){return{type:`text`,value:``}}function pe(){return{type:`thematicBreak`}}}function x9(e){return{line:e.line,column:e.column,offset:e.offset}}function A4e(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?A4e(e,r):j4e(e,r)}}function j4e(e,t){let n;for(n in t)if(D4e.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function M4e(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+W7({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+W7({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+W7({start:t.start,end:t.end})+`) is still open`)}function N4e(e){let t=this;t.parser=n;function n(n){return O4e(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}var P4e=typeof self==`object`?self:globalThis,F4e=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new P4e[e](t)},I4e=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(F4e(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(F4e(a,o),i)};return r},L4e=e=>I4e(new Map,e)(0),S9=``,{toString:R4e}={},{keys:z4e}=Object,C9=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=R4e.call(e).slice(8,-1);switch(n){case`Array`:return[1,S9];case`Object`:return[2,S9];case`Date`:return[3,S9];case`RegExp`:return[4,S9];case`Map`:return[5,S9];case`Set`:return[6,S9];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},w9=([e,t])=>e===0&&(t===`function`||t===`symbol`),B4e=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=C9(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of z4e(r))(e||!w9(C9(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?S9:r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(w9(C9(n))||w9(C9(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!w9(C9(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},V4e=(e,{json:t,lossy:n}={})=>{let r=[];return B4e(!(t||n),!!t,new Map,r)(e),r},T9=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?L4e(V4e(e,t)):structuredClone(e):(e,t)=>L4e(V4e(e,t));function E9(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&t9(e.charCodeAt(n+1))&&t9(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=``}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function H4e(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function U4e(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function W4e(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||H4e,r=e.options.footnoteBackLabel||U4e,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=E9(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...T9(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
`}]}}var G4e=(function(e){if(e==null)return Y4e;if(typeof e==`function`)return D9(e);if(typeof e==`object`)return Array.isArray(e)?K4e(e):q4e(e);if(typeof e==`string`)return J4e(e);throw Error(`Expected function, string, or object as test`)});function K4e(e){let t=[],n=-1;for(;++n<e.length;)t[n]=G4e(e[n]);return D9(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function q4e(e){let t=e;return D9(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function J4e(e){return D9(t);function t(t){return t&&t.type===e}}function D9(e){return t;function t(t,n,r){return!!(X4e(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Y4e(){return!0}function X4e(e){return typeof e==`object`&&!!e&&`type`in e}function Z4e(e){return e}var Q4e=[];function $4e(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=G4e(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+Z4e(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=Q4e,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=e3e(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function e3e(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Q4e:[e]}function t3e(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),$4e(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}function n3e(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function r3e(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
`}]}function i3e(e,t){let n=t.value?t.value+`
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function a3e(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function o3e(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function s3e(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=E9(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function c3e(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function l3e(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function u3e(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function d3e(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return u3e(e,t);let i={src:E9(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function f3e(e,t){let n={src:E9(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function p3e(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function m3e(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return u3e(e,t);let i={href:E9(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function h3e(e,t){let n={href:E9(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function g3e(e,t,n){let r=e.all(t),i=n?_3e(n):v3e(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function _3e(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=v3e(n[r])}return t}function v3e(e){return e.spread??e.children.length>1}function y3e(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function b3e(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function x3e(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function S3e(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function C3e(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=U7(t.children[1]),o=O1e(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function w3e(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function T3e(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var E3e=9,D3e=32;function O3e(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(k3e(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(k3e(t.slice(i),i>0,!1)),a.join(``)}function k3e(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===E3e||t===D3e;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===E3e||t===D3e;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function A3e(e,t){let n={type:`text`,value:O3e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function j3e(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var M3e={blockquote:n3e,break:r3e,code:i3e,delete:a3e,emphasis:o3e,footnoteReference:s3e,heading:c3e,html:l3e,imageReference:d3e,image:f3e,inlineCode:p3e,linkReference:m3e,link:h3e,listItem:g3e,list:y3e,paragraph:b3e,root:x3e,strong:S3e,table:C3e,tableCell:T3e,tableRow:w3e,text:A3e,thematicBreak:j3e,toml:O9,yaml:O9,definition:O9,footnoteDefinition:O9};function O9(){}var k9={}.hasOwnProperty,N3e={};function P3e(e,t){let n=t||N3e,r=new Map,i=new Map,a={all:s,applyData:I3e,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...M3e,...n.handlers},one:o,options:n,patch:F3e,wrap:R3e};return t3e(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(k9.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=T9(n);return r.children=a.all(e),r}return T9(e)}return(a.options.unknownHandler||L3e)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=z3e(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=z3e(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function F3e(e,t){e.position&&(t.position=A1e(e))}function I3e(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,T9(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function L3e(e,t){let n=t.data||{},r=`value`in t&&!(k9.call(n,`hProperties`)||k9.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function R3e(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
`});++r<e.length;)r&&n.push({type:`text`,value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
`}),n}function z3e(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function B3e(e,t){let n=P3e(e,t),r=n.one(e,void 0),i=W4e(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
`},i)),a}function V3e(e,t){return e&&`run`in e?async function(n,r){let i=B3e(n,{file:r,...t});await e.run(i,r)}:function(n,r){return B3e(n,{file:r,...e||t})}}function H3e(e){if(e)throw e}var U3e=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function A9(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function W3e(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?G3e(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function G3e(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var j9={basename:K3e,dirname:q3e,extname:J3e,join:Y3e,sep:`/`};function K3e(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);M9(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function q3e(e){if(M9(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function J3e(e){M9(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Y3e(...e){let t=-1,n;for(;++t<e.length;)M9(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:X3e(n)}function X3e(e){M9(e);let t=e.codePointAt(0)===47,n=Z3e(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Z3e(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function M9(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Q3e={cwd:$3e};function $3e(){return`/`}function N9(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function e6e(e){if(typeof e==`string`)e=new URL(e);else if(!N9(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return t6e(e)}function t6e(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var P9=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],n6e=class{constructor(e){let t;t=e?N9(e)?{path:e}:typeof e==`string`||i6e(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Q3e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<P9.length;){let e=P9[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)P9.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?j9.basename(this.path):void 0}set basename(e){I9(e,`basename`),F9(e,`basename`),this.path=j9.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?j9.dirname(this.path):void 0}set dirname(e){r6e(this.basename,`dirname`),this.path=j9.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?j9.extname(this.path):void 0}set extname(e){if(F9(e,`extname`),r6e(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=j9.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){N9(e)&&(e=e6e(e)),I9(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?j9.basename(this.path,this.extname):void 0}set stem(e){I9(e,`stem`),F9(e,`stem`),this.path=j9.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new K7(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function F9(e,t){if(e&&e.includes(j9.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+j9.sep+"`")}function I9(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function r6e(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function i6e(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var a6e=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),L9=l(U3e(),1),o6e={}.hasOwnProperty,s6e=new class e extends a6e{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=W3e()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,L9.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(B9(`data`,this.frozen),this.namespace[e]=t,this):o6e.call(this.namespace,e)&&this.namespace[e]||void 0:e?(B9(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=V9(e),n=this.parser||this.Parser;return R9(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),R9(`process`,this.parser||this.Parser),z9(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=V9(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);d6e(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),R9(`processSync`,this.parser||this.Parser),z9(`processSync`,this.compiler||this.Compiler),this.process(e,r),l6e(`processSync`,`process`,t),n;function r(e,r){t=!0,H3e(e),n=r}}run(e,t,n){c6e(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=V9(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),l6e(`runSync`,`run`,n),r;function i(e,t){H3e(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=V9(t),r=this.compiler||this.Compiler;return z9(`stringify`,r),c6e(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(B9(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,L9.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];A9(o)&&A9(r)&&(r=(0,L9.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function R9(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function z9(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function B9(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function c6e(e){if(!A9(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function l6e(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function V9(e){return u6e(e)?e:new n6e(e)}function u6e(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function d6e(e){return typeof e==`string`||f6e(e)}function f6e(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var p6e=[],m6e={allowDangerousHtml:!0},h6e=/^(https?|ircs?|mailto|xmpp)$/i,g6e=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function H9(e){let t=_6e(e),n=v6e(e);return y6e(t.runSync(t.parse(n),n),e)}function _6e(e){let t=e.rehypePlugins||p6e,n=e.remarkPlugins||p6e,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...m6e}:m6e;return s6e().use(N4e).use(n).use(V3e,r).use(t)}function v6e(e){let t=e.children||``,n=new n6e;return typeof t==`string`?n.value=t:``+t,n}function y6e(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||b6e;for(let e of g6e)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return t3e(e,l),R1e(e,{Fragment:X.Fragment,components:i,ignoreInvalidStyle:!0,jsx:X.jsx,jsxs:X.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in Z7)if(Object.hasOwn(Z7,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=Z7[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function b6e(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||h6e.test(e.slice(0,t))?e:``}function x6e({questionId:e,open:t,onClose:n,onUpdated:r,onDeleted:i}){let[a,o]=(0,h.useState)(null),[s,c]=(0,h.useState)(!1),[l,u]=(0,h.useState)(``),[d,f]=(0,h.useState)(``),[p,m]=(0,h.useState)(``),[g,_]=(0,h.useState)(`annotated`),[v,y]=(0,h.useState)(!1),[b,x]=(0,h.useState)(!1),[S,C]=(0,h.useState)(!1),w=async()=>{c(!0);try{let{data:t}=await eA.get(e);o(t),u(t.question_text||t.ocr_raw_text||``),f(t.solution_approach||``),m(t.solution_text||``),_(t.has_annotated_image?`annotated`:`original`)}finally{c(!1)}};return(0,h.useEffect)(()=>{t&&e&&w()},[t,e]),(0,h.useEffect)(()=>{if(!t||!a||!T7(a))return;let n=window.setInterval(async()=>{try{let{data:t}=await eA.get(e);o(t),u(t.question_text||t.ocr_raw_text||``),f(t.solution_approach||``),m(t.solution_text||``),t.has_annotated_image&&_(`annotated`),T7(t)||r()}catch{}},4e3);return()=>window.clearInterval(n)},[t,e,a?.status,a?.question_text,a?.error_message]),(0,X.jsx)(_C,{title:a?`${a.subject_name}${a.category===`olympiad`?` · 奥数`:``} · 详情`:`详情`,open:t,onCancel:n,width:`90%`,style:{maxWidth:960},footer:(0,X.jsxs)(Ay,{wrap:!0,children:[(0,X.jsx)(EC,{title:`确定删除该题?`,onConfirm:async()=>{C(!0);try{await eA.remove(e),MS.success(`已删除`),i?.(),n()}catch{MS.error(`删除失败`)}finally{C(!1)}},children:(0,X.jsx)(cp,{danger:!0,loading:S,children:`删除`})}),(0,X.jsx)(cp,{onClick:async()=>{await eA.retryOcr(e),MS.info(`已重新识别并标注,请稍后刷新`),r(),n()},children:`重新识别标注`}),(0,X.jsx)(cp,{loading:b,onClick:async()=>{x(!0);try{let{data:t}=await eA.regenerate(e);o(t),u(t.question_text||t.ocr_raw_text||``),f(t.solution_approach||``),m(t.solution_text||``),MS.success(`解题思路已重新生成`),r()}catch{MS.error(`生成失败,请检查 AI 模型配置`)}finally{x(!1)}},children:`重新生成思路`}),(0,X.jsx)(cp,{type:`primary`,loading:v,onClick:async()=>{y(!0);try{await eA.update(e,{question_text:l,solution_approach:d,solution_text:p}),MS.success(`已保存`),r()}finally{y(!1)}},children:`保存编辑`})]}),children:(0,X.jsx)(Zx,{spinning:s,children:a&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Ay,{wrap:!0,style:{marginBottom:8},children:[(0,X.jsxs)($E.Text,{type:`secondary`,children:[`状态:`,bA[a.status]]}),a.has_annotated_image&&!a.error_message&&(0,X.jsx)($E.Text,{type:`danger`,children:`红色框为自动标注的错误位置`})]}),a.error_message&&(0,X.jsx)(kc,{message:`处理失败`,description:a.error_message,type:`error`,showIcon:!0,style:{marginBottom:12}}),a.status===`pending`&&!a.error_message&&(0,X.jsx)(kc,{message:E7(a),type:`info`,showIcon:!0,style:{marginBottom:12}}),a.status===`ocr_done`&&!a.question_text&&!a.error_message&&(0,X.jsx)(kc,{message:E7(a),type:`info`,showIcon:!0,style:{marginBottom:12}}),(a.solution_approach||a.solution_text)&&(0,X.jsx)(kc,{message:`AI 识别与标注,请核对后再使用`,type:`warning`,showIcon:!0,style:{margin:`12px 0`}}),(0,X.jsxs)(MC,{gutter:16,style:{marginTop:12},children:[(0,X.jsxs)(wg,{xs:24,md:10,children:[a.has_annotated_image&&(0,X.jsx)(hde,{block:!0,style:{marginBottom:8},value:g,onChange:e=>_(e),options:[{label:`标注图`,value:`annotated`},{label:`原图`,value:`original`}]}),(0,X.jsx)(Y$e,{questionId:a.id,variant:g,alt:`原题`,style:{width:`100%`,borderRadius:8,border:`1px solid #f0f0f0`}}),a.ocr_raw_text&&(0,X.jsxs)(`div`,{style:{marginTop:12},children:[(0,X.jsx)($E.Text,{strong:!0,children:`OCR 原文(已排除手写作答)`}),(0,X.jsx)(`pre`,{style:{background:`#fafafa`,padding:8,fontSize:12,maxHeight:150,overflow:`auto`,whiteSpace:`pre-wrap`},children:a.ocr_raw_text})]})]}),(0,X.jsxs)(wg,{xs:24,md:14,children:[(0,X.jsx)($E.Text,{strong:!0,children:`识别题目(可编辑)`}),(0,X.jsx)(eb.TextArea,{rows:5,value:l,onChange:e=>u(e.target.value),style:{marginTop:8,marginBottom:16}}),(0,X.jsx)($E.Text,{strong:!0,children:`解题思路`}),(0,X.jsx)(eb.TextArea,{rows:4,value:d,onChange:e=>f(e.target.value),placeholder:`识别完成后自动生成,类似作业帮「解题思路」`,style:{marginTop:8,marginBottom:16}}),d&&(0,X.jsxs)(`div`,{style:{background:`#e6f4ff`,padding:12,borderRadius:8,marginBottom:16,border:`1px solid #91caff`},children:[(0,X.jsx)($E.Text,{type:`secondary`,style:{fontSize:12},children:`思路预览`}),(0,X.jsx)(H9,{children:d})]}),(0,X.jsx)($E.Text,{strong:!0,children:`详细解答`}),(0,X.jsx)(eb.TextArea,{rows:8,value:p,onChange:e=>m(e.target.value),style:{marginTop:8,marginBottom:12}}),p&&(0,X.jsxs)(`div`,{style:{background:`#fafafa`,padding:12,borderRadius:8},children:[(0,X.jsx)($E.Text,{type:`secondary`,style:{fontSize:12},children:`解答预览`}),(0,X.jsx)(H9,{children:p})]})]})]})]})})})}function S6e(e){return e.error_message?{tone:`error`,text:e.error_message}:T7(e)?{tone:`pending`,text:E7(e)}:{tone:`normal`,text:e.question_text||e.ocr_raw_text||bA[e.status]}}function C6e({items:e,selectedId:t,onSelect:n,onRefresh:r,emptyText:i=`暂无记录`,pollWhenProcessing:a=!0}){let o=a&&e.some(T7);(0,h.useEffect)(()=>{if(!o)return;let e=window.setInterval(()=>r(),4e3);return()=>window.clearInterval(e)},[o,r]);let s=async e=>{try{await eA.remove(e),MS.success(`已删除`),t===e&&n(null),r()}catch{MS.error(`删除失败`)}};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`div`,{className:`wq-grid`,children:e.map(e=>{let t=S6e(e);return(0,X.jsxs)(`div`,{className:`wq-card`,children:[(0,X.jsxs)(`div`,{className:`wq-card-click`,onClick:()=>n(e.id),children:[(0,X.jsx)(Y$e,{questionId:e.id,variant:`annotated`,alt:`题目`,className:`wq-card-img`}),(0,X.jsxs)(`div`,{className:`wq-card-body`,children:[(0,X.jsxs)(Ay,{size:4,wrap:!0,children:[(0,X.jsx)($E.Text,{strong:!0,children:e.subject_name}),e.category===`olympiad`&&(0,X.jsx)(zE,{color:`gold`,children:`奥数`}),(0,X.jsx)(zE,{color:e.error_message||e.status===`failed`?`error`:T7(e)?`processing`:`default`,children:e.error_message?`失败`:bA[e.status]})]}),(0,X.jsx)($E.Paragraph,{ellipsis:{rows:3},style:{margin:`8px 0 0`,fontSize:13,color:t.tone===`error`?`#ff4d4f`:t.tone===`pending`?`#1677ff`:void 0},children:t.text})]})]}),(0,X.jsx)(`div`,{className:`wq-card-actions`,children:(0,X.jsx)(EC,{title:`确定删除该题?`,onConfirm:()=>s(e.id),children:(0,X.jsx)(cp,{type:`text`,danger:!0,size:`small`,icon:(0,X.jsx)(dD,{}),onClick:e=>e.stopPropagation(),children:`删除`})})})]},e.id)})}),e.length===0&&(0,X.jsx)($E.Text,{type:`secondary`,children:i}),t&&(0,X.jsx)(x6e,{questionId:t,open:!!t,onClose:()=>n(null),onUpdated:r,onDeleted:()=>{n(null),r()}})]})}var w6e=o(((e,t)=>{var n=!1,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;function v(){if(!n){n=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),_=/Mobile/i.exec(e),p=!!/Win64/.exec(e),t){r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);c=y?parseFloat(y[1])+4:r,i=t[2]?parseFloat(t[2]):NaN,a=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=i=a=s=o=NaN;if(v){if(v[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=b?parseFloat(b[1].replace(`_`,`.`)):!0}else l=!1;u=!!v[2],d=!!v[3]}else l=u=d=!1}}var y={ie:function(){return v()||r},ieCompatibilityMode:function(){return v()||c>r},ie64:function(){return y.ie()&&p},firefox:function(){return v()||i},opera:function(){return v()||a},webkit:function(){return v()||o},safari:function(){return y.webkit()},chrome:function(){return v()||s},windows:function(){return v()||u},osx:function(){return v()||l},linux:function(){return v()||d},iphone:function(){return v()||m},mobile:function(){return v()||m||h||f||_},nativeApp:function(){return v()||g},android:function(){return v()||f},ipad:function(){return v()||h}};t.exports=y})),T6e=o(((e,t)=>{var n=!!(typeof window<`u`&&window.document&&window.document.createElement);t.exports={canUseDOM:n,canUseWorkers:typeof Worker<`u`,canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n}})),E6e=o(((e,t)=>{var n=T6e(),r;n.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature(``,``)!==!0);function i(e,t){if(!n.canUseDOM||t&&!(`addEventListener`in document))return!1;var i=`on`+e,a=i in document;if(!a){var o=document.createElement(`div`);o.setAttribute(i,`return;`),a=typeof o[i]==`function`}return!a&&r&&e===`wheel`&&(a=document.implementation.hasFeature(`Events.wheel`,`3.0`)),a}t.exports=i})),D6e=o(((e,t)=>{var n=w6e(),r=E6e(),i=10,a=40,o=800;function s(e){var t=0,n=0,r=0,s=0;return`detail`in e&&(n=e.detail),`wheelDelta`in e&&(n=-e.wheelDelta/120),`wheelDeltaY`in e&&(n=-e.wheelDeltaY/120),`wheelDeltaX`in e&&(t=-e.wheelDeltaX/120),`axis`in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,s=n*i,`deltaY`in e&&(s=e.deltaY),`deltaX`in e&&(r=e.deltaX),(r||s)&&e.deltaMode&&(e.deltaMode==1?(r*=a,s*=a):(r*=o,s*=o)),r&&!t&&(t=r<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:s}}s.getEventType=function(){return n.firefox()?`DOMMouseScroll`:r(`wheel`)?`wheel`:`mousewheel`},t.exports=s})),O6e=l(o(((e,t)=>{t.exports=D6e()}))(),1);function U9(e){"@babel/helpers - typeof";return U9=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},U9(e)}function k6e(e,t){if(U9(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(U9(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function A6e(e){var t=k6e(e,`string`);return U9(t)==`symbol`?t:t+``}function j6e(e,t,n){return(t=A6e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M6e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?M6e(Object(n),!0).forEach(function(t){j6e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M6e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function N6e(e,t,n,r,i,a=0){let{width:o,height:s}=K9(e,t,a),c=Math.min(o,n),l=Math.min(s,r);return c>l*i?{width:l*i,height:l}:{width:c,height:c/i}}function P6e(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function G9(e,t,n,r,i=0){let{width:a,height:o}=K9(t.width,t.height,i);return{x:F6e(e.x,a,n.width,r),y:F6e(e.y,o,n.height,r)}}function F6e(e,t,n,r){let i=Math.abs(t*r/2-n/2);return q9(e,-i,i)}function I6e(e,t){return Math.sqrt((e.y-t.y)**2+(e.x-t.x)**2)}function L6e(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function R6e(e,t,n,r,i,a=0,o=!0){let s=o?z6e:B6e,c=K9(t.width,t.height,a),l=K9(t.naturalWidth,t.naturalHeight,a),u={x:s(100,((c.width-n.width/i)/2-e.x/i)/c.width*100),y:s(100,((c.height-n.height/i)/2-e.y/i)/c.height*100),width:s(100,n.width/c.width*100/i),height:s(100,n.height/c.height*100/i)},d=Math.round(s(l.width,u.width*l.width/100)),f=Math.round(s(l.height,u.height*l.height/100)),p=l.width>=l.height*r?{width:Math.round(f*r),height:f}:{width:d,height:Math.round(d/r)};return{croppedAreaPercentages:u,croppedAreaPixels:W9(W9({},p),{},{x:Math.round(s(l.width-p.width,u.x*l.width/100)),y:Math.round(s(l.height-p.height,u.y*l.height/100))})}}function z6e(e,t){return Math.min(e,Math.max(0,t))}function B6e(e,t){return t}function V6e(e,t,n,r,i,a){let o=K9(t.width,t.height,n),s=q9(r.width/o.width*(100/e.width),i,a);return{crop:{x:s*o.width/2-r.width/2-o.width*s*(e.x/100),y:s*o.height/2-r.height/2-o.height*s*(e.y/100)},zoom:s}}function H6e(e,t,n){let r=P6e(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}function U6e(e,t,n=0,r,i,a){let o=K9(t.naturalWidth,t.naturalHeight,n),s=q9(H6e(e,t,r),i,a),c=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((o.width-e.width)/2-e.x)*c,y:((o.height-e.height)/2-e.y)*c},zoom:s}}function W6e(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function G6e(e){return e*Math.PI/180}function K9(e,t,n){let r=G6e(n);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function q9(e,t,n){return Math.min(Math.max(e,t),n)}function J9(...e){return e.filter(e=>typeof e==`string`&&e.length>0).join(` `).trim()}var K6e=`.reactEasyCrop_Container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
user-select: none;
touch-action: none;
cursor: move;
display: flex;
justify-content: center;
align-items: center;
}
.reactEasyCrop_Image,
.reactEasyCrop_Video {
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
max-width: unset; /* prevent global img/video reset rules from constraining the cropper media */
}
.reactEasyCrop_Contain {
max-width: 100%;
max-height: 100%;
margin: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.reactEasyCrop_Cover_Horizontal {
width: 100%;
height: auto;
}
.reactEasyCrop_Cover_Vertical {
width: auto;
height: 100%;
}
.reactEasyCrop_CropArea {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 1px solid rgba(255, 255, 255, 0.5);
box-sizing: border-box;
box-shadow: 0 0 0 9999em;
color: rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.reactEasyCrop_CropAreaRound {
border-radius: 50%;
}
.reactEasyCrop_CropAreaGrid::before {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 0;
bottom: 0;
left: 33.33%;
right: 33.33%;
border-top: 0;
border-bottom: 0;
}
.reactEasyCrop_CropAreaGrid::after {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 33.33%;
bottom: 33.33%;
left: 0;
right: 0;
border-left: 0;
border-right: 0;
}
`,q6e=1,J6e=3,Y6e=1,Y9=class e extends h.Component{constructor(...t){super(...t),this.cropperRef=h.createRef(),this.imageRef=h.createRef(),this.videoRef=h.createRef(),this.containerPosition={x:0,y:0},this.containerRef=null,this.styleRef=null,this.containerRect=null,this.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},this.dragStartPosition={x:0,y:0},this.dragStartCrop={x:0,y:0},this.gestureZoomStart=0,this.gestureRotationStart=0,this.isTouching=!1,this.lastPinchDistance=0,this.lastPinchRotation=0,this.rafDragTimeout=null,this.rafPinchTimeout=null,this.wheelTimer=null,this.currentDoc=typeof document<`u`?document:null,this.currentWindow=typeof window<`u`?window:null,this.resizeObserver=null,this.previousCropSize=null,this.isInitialized=!1,this.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},this.initResizeObserver=()=>{if(window.ResizeObserver===void 0||!this.containerRef)return;let e=!0;this.resizeObserver=new window.ResizeObserver(t=>{if(e){e=!1;return}this.computeSizes()}),this.resizeObserver.observe(this.containerRef)},this.preventZoomSafari=e=>e.preventDefault(),this.cleanEvents=()=>{this.currentDoc&&(this.currentDoc.removeEventListener(`mousemove`,this.onMouseMove),this.currentDoc.removeEventListener(`mouseup`,this.onDragStopped),this.currentDoc.removeEventListener(`touchmove`,this.onTouchMove),this.currentDoc.removeEventListener(`touchend`,this.onDragStopped),this.currentDoc.removeEventListener(`gesturechange`,this.onGestureChange),this.currentDoc.removeEventListener(`gestureend`,this.onGestureEnd),this.currentDoc.removeEventListener(`scroll`,this.onScroll))},this.clearScrollEvent=()=>{this.containerRef&&this.containerRef.removeEventListener(`wheel`,this.onWheel),this.wheelTimer&&clearTimeout(this.wheelTimer)},this.onMediaLoad=()=>{let e=this.computeSizes();e&&(this.previousCropSize=e,this.emitCropData(),this.setInitialCrop(e),this.isInitialized=!0),this.props.onMediaLoaded&&this.props.onMediaLoaded(this.mediaSize)},this.setInitialCrop=e=>{if(this.props.initialCroppedAreaPercentages){let{crop:t,zoom:n}=V6e(this.props.initialCroppedAreaPercentages,this.mediaSize,this.props.rotation,e,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(t),this.props.onZoomChange&&this.props.onZoomChange(n)}else if(this.props.initialCroppedAreaPixels){let{crop:t,zoom:n}=U6e(this.props.initialCroppedAreaPixels,this.mediaSize,this.props.rotation,e,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(t),this.props.onZoomChange&&this.props.onZoomChange(n)}},this.computeSizes=()=>{let e=this.imageRef.current||this.videoRef.current;if(e&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect(),this.saveContainerPosition();let t=this.containerRect.width/this.containerRect.height,n=this.imageRef.current?.naturalWidth||this.videoRef.current?.videoWidth||0,r=this.imageRef.current?.naturalHeight||this.videoRef.current?.videoHeight||0,i=e.offsetWidth<n||e.offsetHeight<r,a=n/r,o;if(i)switch(this.state.mediaObjectFit){default:case`contain`:o=t>a?{width:this.containerRect.height*a,height:this.containerRect.height}:{width:this.containerRect.width,height:this.containerRect.width/a};break;case`horizontal-cover`:o={width:this.containerRect.width,height:this.containerRect.width/a};break;case`vertical-cover`:o={width:this.containerRect.height*a,height:this.containerRect.height};break}else o={width:e.offsetWidth,height:e.offsetHeight};this.mediaSize=W9(W9({},o),{},{naturalWidth:n,naturalHeight:r}),this.props.setMediaSize&&this.props.setMediaSize(this.mediaSize);let s=this.props.cropSize?this.props.cropSize:N6e(this.mediaSize.width,this.mediaSize.height,this.containerRect.width,this.containerRect.height,this.props.aspect,this.props.rotation);return(this.state.cropSize?.height!==s.height||this.state.cropSize?.width!==s.width)&&this.props.onCropSizeChange&&this.props.onCropSizeChange(s),this.setState({cropSize:s},this.recomputeCropPosition),this.props.setCropSize&&this.props.setCropSize(s),s}},this.saveContainerPosition=()=>{if(this.containerRef){let e=this.containerRef.getBoundingClientRect();this.containerPosition={x:e.left,y:e.top}}},this.onMouseDown=t=>{this.currentDoc&&(t.preventDefault(),this.currentDoc.addEventListener(`mousemove`,this.onMouseMove),this.currentDoc.addEventListener(`mouseup`,this.onDragStopped),this.saveContainerPosition(),this.onDragStart(e.getMousePoint(t)))},this.onMouseMove=t=>this.onDrag(e.getMousePoint(t)),this.onScroll=e=>{this.currentDoc&&(e.preventDefault(),this.saveContainerPosition())},this.onTouchStart=t=>{this.currentDoc&&(this.isTouching=!0,!(this.props.onTouchRequest&&!this.props.onTouchRequest(t))&&(this.currentDoc.addEventListener(`touchmove`,this.onTouchMove,{passive:!1}),this.currentDoc.addEventListener(`touchend`,this.onDragStopped),this.saveContainerPosition(),t.touches.length===2?this.onPinchStart(t):t.touches.length===1&&this.onDragStart(e.getTouchPoint(t.touches[0]))))},this.onTouchMove=t=>{t.preventDefault(),t.touches.length===2?this.onPinchMove(t):t.touches.length===1&&this.onDrag(e.getTouchPoint(t.touches[0]))},this.onGestureStart=e=>{this.currentDoc&&(e.preventDefault(),this.currentDoc.addEventListener(`gesturechange`,this.onGestureChange),this.currentDoc.addEventListener(`gestureend`,this.onGestureEnd),this.gestureZoomStart=this.props.zoom,this.gestureRotationStart=this.props.rotation)},this.onGestureChange=t=>{if(t.preventDefault(),this.isTouching)return;let n=e.getMousePoint(t),r=this.gestureZoomStart-1+t.scale;if(this.setNewZoom(r,n,{shouldUpdatePosition:!0}),this.props.onRotationChange){let e=this.gestureRotationStart+t.rotation;this.props.onRotationChange(e)}},this.onGestureEnd=e=>{this.cleanEvents()},this.onDragStart=({x:e,y:t})=>{var n,r;this.dragStartPosition={x:e,y:t},this.dragStartCrop=W9({},this.props.crop),(n=(r=this.props).onInteractionStart)==null||n.call(r)},this.onDrag=({x:e,y:t})=>{this.currentWindow&&(this.rafDragTimeout&&this.currentWindow.cancelAnimationFrame(this.rafDragTimeout),this.rafDragTimeout=this.currentWindow.requestAnimationFrame(()=>{if(!this.state.cropSize||e===void 0||t===void 0)return;let n=e-this.dragStartPosition.x,r=t-this.dragStartPosition.y,i={x:this.dragStartCrop.x+n,y:this.dragStartCrop.y+r},a=this.props.restrictPosition?G9(i,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):i;this.props.onCropChange(a)}))},this.onDragStopped=()=>{var e,t;this.isTouching=!1,this.cleanEvents(),this.emitCropData(),(e=(t=this.props).onInteractionEnd)==null||e.call(t)},this.onWheel=t=>{if(!this.currentWindow||this.props.onWheelRequest&&!this.props.onWheelRequest(t))return;t.preventDefault();let n=e.getMousePoint(t),{pixelY:r}=(0,O6e.default)(t),i=this.props.zoom-r*this.props.zoomSpeed/200;this.setNewZoom(i,n,{shouldUpdatePosition:!0}),this.state.hasWheelJustStarted||this.setState({hasWheelJustStarted:!0},()=>{var e;return(e=this.props).onInteractionStart?.call(e)}),this.wheelTimer&&clearTimeout(this.wheelTimer),this.wheelTimer=this.currentWindow.setTimeout(()=>this.setState({hasWheelJustStarted:!1},()=>{var e;return(e=this.props).onInteractionEnd?.call(e)}),250)},this.getPointOnContainer=({x:e,y:t},n)=>{if(!this.containerRect)throw Error(`The Cropper is not mounted`);return{x:this.containerRect.width/2-(e-n.x),y:this.containerRect.height/2-(t-n.y)}},this.getPointOnMedia=({x:e,y:t})=>{let{crop:n,zoom:r}=this.props;return{x:(e+n.x)/r,y:(t+n.y)/r}},this.setNewZoom=(e,t,{shouldUpdatePosition:n=!0}={})=>{if(!this.state.cropSize||!this.props.onZoomChange)return;let r=q9(e,this.props.minZoom,this.props.maxZoom);if(n){let e=this.getPointOnContainer(t,this.containerPosition),n=this.getPointOnMedia(e),i={x:n.x*r-e.x,y:n.y*r-e.y},a=this.props.restrictPosition?G9(i,this.mediaSize,this.state.cropSize,r,this.props.rotation):i;this.props.onCropChange(a)}this.props.onZoomChange(r)},this.getCropData=()=>this.state.cropSize?R6e(this.props.restrictPosition?G9(this.props.crop,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):this.props.crop,this.mediaSize,this.state.cropSize,this.getAspect(),this.props.zoom,this.props.rotation,this.props.restrictPosition):null,this.emitCropData=()=>{let e=this.getCropData();if(!e)return;let{croppedAreaPercentages:t,croppedAreaPixels:n}=e;this.props.onCropComplete&&this.props.onCropComplete(t,n),this.props.onCropAreaChange&&this.props.onCropAreaChange(t,n)},this.emitCropAreaChange=()=>{let e=this.getCropData();if(!e)return;let{croppedAreaPercentages:t,croppedAreaPixels:n}=e;this.props.onCropAreaChange&&this.props.onCropAreaChange(t,n)},this.recomputeCropPosition=()=>{if(!this.state.cropSize)return;let e=this.props.crop;if(this.isInitialized&&this.previousCropSize?.width&&this.previousCropSize?.height&&(Math.abs(this.previousCropSize.width-this.state.cropSize.width)>1e-6||Math.abs(this.previousCropSize.height-this.state.cropSize.height)>1e-6)){let t=this.state.cropSize.width/this.previousCropSize.width,n=this.state.cropSize.height/this.previousCropSize.height;e={x:this.props.crop.x*t,y:this.props.crop.y*n}}let t=this.props.restrictPosition?G9(e,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):e;this.previousCropSize=this.state.cropSize,this.props.onCropChange(t),this.emitCropData()},this.onKeyDown=e=>{let{crop:t,onCropChange:n,keyboardStep:r,zoom:i,rotation:a}=this.props,o=r;if(!this.state.cropSize)return;e.shiftKey&&(o*=.2);let s=W9({},t);switch(e.key){case`ArrowUp`:s.y-=o,e.preventDefault();break;case`ArrowDown`:s.y+=o,e.preventDefault();break;case`ArrowLeft`:s.x-=o,e.preventDefault();break;case`ArrowRight`:s.x+=o,e.preventDefault();break;default:return}if(this.props.restrictPosition&&(s=G9(s,this.mediaSize,this.state.cropSize,i,a)),!e.repeat){var c,l;(c=(l=this.props).onInteractionStart)==null||c.call(l)}n(s)},this.onKeyUp=e=>{var t,n;switch(e.key){case`ArrowUp`:case`ArrowDown`:case`ArrowLeft`:case`ArrowRight`:e.preventDefault();break;default:return}this.emitCropData(),(t=(n=this.props).onInteractionEnd)==null||t.call(n)}}componentDidMount(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),window.ResizeObserver===void 0&&this.currentWindow.addEventListener(`resize`,this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener(`wheel`,this.onWheel,{passive:!1}),this.containerRef.addEventListener(`gesturestart`,this.onGestureStart)),this.currentDoc.addEventListener(`scroll`,this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement(`style`),this.styleRef.setAttribute(`type`,`text/css`),this.props.nonce&&this.styleRef.setAttribute(`nonce`,this.props.nonce),this.styleRef.innerHTML=K6e,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))}componentWillUnmount(){var e;if(!(!this.currentDoc||!this.currentWindow)){if(window.ResizeObserver===void 0&&this.currentWindow.removeEventListener(`resize`,this.computeSizes),(e=this.resizeObserver)==null||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener(`gesturestart`,this.preventZoomSafari),this.styleRef){var t;(t=this.styleRef.parentNode)==null||t.removeChild(this.styleRef)}this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()}}componentDidUpdate(e){if(e.rotation===this.props.rotation?e.aspect===this.props.aspect&&e.objectFit===this.props.objectFit?e.zoom===this.props.zoom?e.cropSize?.height!==this.props.cropSize?.height||e.cropSize?.width!==this.props.cropSize?.width?this.computeSizes():(e.crop?.x!==this.props.crop?.x||e.crop?.y!==this.props.crop?.y)&&this.emitCropAreaChange():this.recomputeCropPosition():this.computeSizes():(this.computeSizes(),this.recomputeCropPosition()),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener(`wheel`,this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video){var t;(t=this.videoRef.current)==null||t.load()}let n=this.getObjectFit();n!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:n},this.computeSizes)}getAspect(){let{cropSize:e,aspect:t}=this.props;return e?e.width/e.height:t}getObjectFit(){if(this.props.objectFit===`cover`){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();let e=this.containerRect.width/this.containerRect.height;return(this.imageRef.current?.naturalWidth||this.videoRef.current?.videoWidth||0)/(this.imageRef.current?.naturalHeight||this.videoRef.current?.videoHeight||0)<e?`horizontal-cover`:`vertical-cover`}return`horizontal-cover`}return this.props.objectFit}onPinchStart(t){let n=e.getTouchPoint(t.touches[0]),r=e.getTouchPoint(t.touches[1]);this.lastPinchDistance=I6e(n,r),this.lastPinchRotation=L6e(n,r),this.onDragStart(W6e(n,r))}onPinchMove(t){if(!this.currentDoc||!this.currentWindow)return;let n=e.getTouchPoint(t.touches[0]),r=e.getTouchPoint(t.touches[1]),i=W6e(n,r);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(()=>{let e=I6e(n,r),t=this.props.zoom*(e/this.lastPinchDistance);this.setNewZoom(t,i,{shouldUpdatePosition:!1}),this.lastPinchDistance=e;let a=L6e(n,r),o=this.props.rotation+(a-this.lastPinchRotation);this.props.onRotationChange&&this.props.onRotationChange(o),this.lastPinchRotation=a})}render(){let{image:e,video:t,mediaProps:n,cropperProps:r,transform:i,crop:{x:a,y:o},rotation:s,zoom:c,cropShape:l,showGrid:u,roundCropAreaPixels:d,style:{containerStyle:f,cropAreaStyle:p,mediaStyle:m},classes:{containerClassName:g,cropAreaClassName:_,mediaClassName:v}}=this.props,y=this.state.mediaObjectFit??this.getObjectFit();return h.createElement(`div`,{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:e=>this.containerRef=e,"data-testid":`container`,style:f,className:J9(`reactEasyCrop_Container`,g)},e?h.createElement(`img`,W9(W9({alt:``,className:J9(`reactEasyCrop_Image`,y===`contain`&&`reactEasyCrop_Contain`,y===`horizontal-cover`&&`reactEasyCrop_Cover_Horizontal`,y===`vertical-cover`&&`reactEasyCrop_Cover_Vertical`,v)},n),{},{src:e,ref:this.imageRef,style:W9(W9({},m),{},{transform:i||`translate(${a}px, ${o}px) rotate(${s}deg) scale(${c})`}),onLoad:this.onMediaLoad})):t&&h.createElement(`video`,W9(W9({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:J9(`reactEasyCrop_Video`,y===`contain`&&`reactEasyCrop_Contain`,y===`horizontal-cover`&&`reactEasyCrop_Cover_Horizontal`,y===`vertical-cover`&&`reactEasyCrop_Cover_Vertical`,v)},n),{},{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:W9(W9({},m),{},{transform:i||`translate(${a}px, ${o}px) rotate(${s}deg) scale(${c})`}),controls:!1}),(Array.isArray(t)?t:[{src:t}]).map(e=>h.createElement(`source`,W9({key:e.src},e)))),this.state.cropSize&&h.createElement(`div`,W9({ref:this.cropperRef,style:W9(W9({},p),{},{width:d?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:d?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":`cropper`,className:J9(`reactEasyCrop_CropArea`,l===`round`&&`reactEasyCrop_CropAreaRound`,u&&`reactEasyCrop_CropAreaGrid`,_)},r)))}};Y9.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:J6e,minZoom:q6e,cropShape:`rect`,objectFit:`contain`,showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:Y6e},Y9.getMousePoint=e=>({x:Number(e.clientX),y:Number(e.clientY)}),Y9.getTouchPoint=e=>({x:Number(e.clientX),y:Number(e.clientY)});var X6e=Y9;function Z6e(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>t(r),r.onerror=n,r.src=e})}async function Q6e(e,t,n=`image/jpeg`,r=.92){let i=await Z6e(e),a=document.createElement(`canvas`);a.width=Math.max(1,Math.round(t.width)),a.height=Math.max(1,Math.round(t.height));let o=a.getContext(`2d`);if(!o)throw Error(`无法创建画布`);return o.drawImage(i,t.x,t.y,t.width,t.height,0,0,t.width,t.height),new Promise((e,t)=>{a.toBlob(n=>n?e(n):t(Error(`裁剪失败`)),n,r)})}function $6e(e,t){return new File([e],t,{type:e.type||`image/jpeg`})}function e8e({open:e,imageSrc:t,filename:n,onCancel:r,onConfirm:i,onSkip:a,originalFile:o}){let[s,c]=(0,h.useState)({x:0,y:0}),[l,u]=(0,h.useState)(1),[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(!1),g=(0,h.useCallback)((e,t)=>{f(t)},[]);return(0,X.jsxs)(_C,{title:`裁剪题目区域`,open:e,onCancel:r,width:`92%`,style:{maxWidth:560},destroyOnHidden:!0,footer:(0,X.jsxs)(Ay,{wrap:!0,children:[(0,X.jsx)(cp,{onClick:r,children:`取消`}),a&&o&&(0,X.jsx)(cp,{onClick:()=>{o&&a&&a(o)},disabled:p,children:`不裁剪,直接上传`}),(0,X.jsx)(cp,{type:`primary`,loading:p,onClick:async()=>{if(!(!t||!d)){m(!0);try{i($6e(await Q6e(t,d),n.replace(/\.\w+$/,``)+`.jpg`))}finally{m(!1)}}},children:`确认上传`})]}),children:[(0,X.jsx)(`p`,{style:{margin:`0 0 12px`,color:`#666`,fontSize:13},children:`拖动框选仅保留错题区域,识别会更准确`}),(0,X.jsx)(`div`,{style:{position:`relative`,width:`100%`,height:320,background:`#111`,borderRadius:8,overflow:`hidden`},children:t&&(0,X.jsx)(X6e,{image:t,crop:s,zoom:l,aspect:void 0,onCropChange:c,onZoomChange:u,onCropComplete:g})}),(0,X.jsxs)(`div`,{style:{marginTop:12},children:[(0,X.jsx)(`span`,{style:{fontSize:12,color:`#666`},children:`缩放`}),(0,X.jsx)(Ide,{min:1,max:3,step:.05,value:l,onChange:u})]})]})}function t8e({studentId:e,subjects:t,category:n,onUploaded:r}){let i=n===`olympiad`,a=(0,h.useMemo)(()=>i?t.filter(e=>e.name===`数学`):t,[t,i]),[o,s]=(0,h.useState)(),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[f,p]=(0,h.useState)(null),[m,g]=(0,h.useState)(null),_=(0,h.useRef)(null);(0,h.useEffect)(()=>{a.length&&s(a[0].id)},[a]);let v=()=>{f&&URL.revokeObjectURL(f),d(!1),p(null),g(null)},y=e=>{if(!o){MS.warning(i?`未找到数学科目`:`请选择科目`);return}p(URL.createObjectURL(e)),g(e),d(!0)},b=async t=>{if(!o){MS.warning(i?`未找到数学科目`:`请选择科目`);return}l(!0);try{await eA.upload(e,o,t,n),MS.success(`上传成功,正在识别并生成解法…`),r()}catch{MS.error(`上传失败`)}finally{l(!1)}},x=e=>(y(e),!1);return(0,X.jsxs)(Ay,{direction:`vertical`,size:`middle`,style:{width:`100%`,marginBottom:16},children:[i?(0,X.jsx)($E.Text,{children:`科目:数学(奥数区仅支持数学)`}):(0,X.jsx)(Rx,{style:{width:`100%`,maxWidth:200},placeholder:`选择科目`,value:o,onChange:s,options:a.map(e=>({value:e.id,label:e.name}))}),(0,X.jsxs)(Ay,{wrap:!0,className:`upload-actions`,children:[(0,X.jsxs)(`span`,{className:`upload-mobile-only`,children:[(0,X.jsx)(xD,{beforeUpload:x,showUploadList:!1,accept:`image/*`,children:(0,X.jsx)(cp,{icon:(0,X.jsx)(pge,{}),loading:c,type:`primary`,size:`large`,children:`相册选图`})}),(0,X.jsx)(cp,{icon:(0,X.jsx)(Oxe,{}),loading:c,size:`large`,onClick:()=>_.current?.click(),children:`拍照上传`}),(0,X.jsx)(`input`,{ref:_,type:`file`,accept:`image/*`,capture:`environment`,style:{display:`none`},onChange:e=>{let t=e.target.files?.[0];e.target.value=``,t&&y(t)}})]}),(0,X.jsx)(`span`,{className:`upload-desktop-only`,children:(0,X.jsx)(xD,{beforeUpload:x,showUploadList:!1,accept:`image/*`,children:(0,X.jsx)(cp,{icon:(0,X.jsx)(pA,{}),loading:c,type:`primary`,size:`large`,children:`上传图片`})})}),!i&&(0,X.jsx)(`span`,{className:`upload-mobile-only`,children:(0,X.jsx)(xD,{beforeUpload:x,showUploadList:!1,accept:`image/*`,children:(0,X.jsx)(cp,{icon:(0,X.jsx)(pA,{}),loading:c,size:`large`,children:`上传图片`})})})]}),i&&(0,X.jsx)(`span`,{style:{color:`#666`,fontSize:13},children:`奥数区仅数学,按学生学段(初中/高中)生成解题思路,严禁超纲`}),(0,X.jsx)(e8e,{open:u,imageSrc:f,filename:m?.name||`question.jpg`,originalFile:m,onCancel:v,onConfirm:async e=>{v(),await b(e)},onSkip:async e=>{v(),await b(e)}})]})}function n8e({subjectId:e,onSubjectChange:t,search:n,onSearchChange:r,onRefresh:i,subjects:a,hideSubjectFilter:o}){return(0,X.jsxs)(Ay,{wrap:!0,style:{marginBottom:16,width:`100%`},children:[!o&&(0,X.jsx)(Rx,{allowClear:!0,style:{width:`100%`,maxWidth:140},placeholder:`全部科目`,value:e,onChange:t,options:a.map(e=>({value:e.id,label:e.name}))}),(0,X.jsx)(eb.Search,{placeholder:`搜索题目/解法`,value:n,onChange:e=>r(e.target.value),onSearch:()=>i(),style:{width:`100%`,maxWidth:260},allowClear:!0}),(0,X.jsx)(cp,{icon:(0,X.jsx)(lA,{}),onClick:i,children:`刷新`})]})}var X9=[`careless`,`unknown`,`nervous`,`normal`],r8e={careless:`#fa8c16`,unknown:`#ff4d4f`,nervous:`#722ed1`,normal:`#52c41a`};function i8e(e){let t=new Set,n={careless:{},unknown:{},nervous:{},normal:{}};for(let r of e)for(let e of r.scores){let r=e.subject_name||`科目${e.subject_id}`;t.add(r);for(let t of e.review_statuses||[])n[t][r]=(n[t][r]||0)+1}return{subjects:Array.from(t).sort((e,t)=>e.localeCompare(t,`zh-CN`)),counts:n}}function a8e({exams:e,selectedSubject:t,onSubjectSelect:n}){let r=X9.some(t=>e.some(e=>e.scores.some(e=>(e.review_statuses||[]).includes(t)))),{subjects:i,counts:a}=(0,h.useMemo)(()=>i8e(e),[e]);return r?(0,X.jsxs)(`div`,{children:[(0,X.jsx)(q$e,{option:{title:{text:`各科考试状态统计`,subtext:t?`当前选中:${t}`:`点击柱子查看明细`,left:`center`,textStyle:{fontSize:15,fontWeight:500},subtextStyle:{fontSize:12,color:`#888`}},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},formatter:e=>{let t=e.filter(e=>e.value>0);if(!t.length)return``;let n=t.reduce((e,t)=>e+t.value,0);return`<strong>${e[0]?.name||``}</strong><br/>`+t.map(e=>`${e.marker}${e.seriesName}: ${e.value} 次`).join(`<br/>`)+`<br/>合计: ${n} 次`}},legend:{bottom:0,data:X9.map(e=>_A[e])},grid:{left:48,right:24,top:64,bottom:56},xAxis:{type:`category`,data:i,axisLabel:{interval:0,rotate:i.length>6?30:0,color:e=>e===t?`#1677ff`:`#666`,fontWeight:e=>e===t?`bold`:`normal`}},yAxis:{type:`value`,name:`次数`,minInterval:1,splitLine:{lineStyle:{type:`dashed`}}},series:X9.map(e=>({name:_A[e],type:`bar`,stack:`review`,barMaxWidth:48,emphasis:{focus:`series`},data:i.map(n=>{let r=a[e][n]||0,i=n===t;return{value:r,itemStyle:{color:r8e[e],borderRadius:e===`normal`?[2,2,0,0]:0,opacity:t&&!i?.45:1,borderColor:i?`#1677ff`:`transparent`,borderWidth:i?2:0}}})}))},style:{height:360,width:`100%`},notMerge:!0,onEvents:{click:e=>{e.componentType===`series`&&e.name&&n?.(e.name)}}}),(0,X.jsx)(`p`,{style:{color:`#888`,fontSize:12,marginTop:8},children:`柱状图按科目展示各状态次数(分色堆叠);点击科目查看每次考试详情,存在问题标红`})]}):(0,X.jsx)(`div`,{style:{textAlign:`center`,padding:32,color:`#999`},children:`暂无复盘数据,请在下方填写各科考试状态`})}function o8e(e,t){if(e&&typeof e==`object`&&`response`in e){let t=e.response?.data?.detail;if(typeof t==`string`)return t}return t}function s8e({studentId:e,subjectName:t}){let[n,r]=(0,h.useState)(!0),[i,a]=(0,h.useState)(null),[o,s]=(0,h.useState)(!1),[c,l]=(0,h.useState)(null);(0,h.useEffect)(()=>{Yk.appFeatures().then(({data:e})=>r(e.ai_review_enabled)).catch(()=>{})},[]);let u=(0,h.useCallback)(async()=>{if(!t||!n){a(null),l(null);return}s(!0),l(null);try{let{data:n}=await Qk.reviewInsight(e,t);a(n.insight)}catch(e){l(o8e(e,`AI 解读生成失败,请检查模型配置`)),a(null)}finally{s(!1)}},[e,t,n]);return(0,h.useEffect)(()=>{u()},[u]),t?n?(0,X.jsxs)(`div`,{style:{marginTop:20},children:[(0,X.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:12,marginBottom:12},children:[(0,X.jsxs)($E.Text,{strong:!0,style:{fontSize:15},children:[`AI 解读与建议 · `,t]}),(0,X.jsx)(cp,{size:`small`,loading:o,onClick:u,children:`重新生成`})]}),o&&!i&&(0,X.jsx)(`div`,{style:{textAlign:`center`,padding:24},children:(0,X.jsx)(Zx,{tip:`AI 正在分析复盘数据…`})}),c&&(0,X.jsx)(kc,{type:`error`,message:c,showIcon:!0,style:{marginBottom:12}}),i&&(0,X.jsx)(`div`,{style:{background:`#f6ffed`,border:`1px solid #b7eb8f`,borderRadius:8,padding:16},children:(0,X.jsx)(H9,{children:i})})]}):(0,X.jsx)(kc,{style:{marginTop:20},type:`info`,showIcon:!0,message:`AI 复盘解读已在系统设置中关闭`}):null}var c8e={careless:`orange`,unknown:`red`,nervous:`purple`,normal:`green`};function l8e({exams:e,subjectName:t}){let n=(0,h.useMemo)(()=>{if(!t)return[];let n=[];for(let r of e){let e=r.scores.find(e=>(e.subject_name||`科目${e.subject_id}`)===t);!e||!e.review_statuses?.length||n.push({key:r.id,examDate:r.exam_date,examType:yA[r.exam_type],title:r.title,scoreText:`${e.obtained_score}/${e.total_score}`,ratioText:`${(e.ratio*100).toFixed(1)}%`,statuses:e.review_statuses,isProblem:zxe(e.review_statuses)})}return n.sort((e,t)=>t.examDate.localeCompare(e.examDate))},[e,t]);if(!t)return(0,X.jsx)($E.Text,{type:`secondary`,style:{display:`block`,padding:`12px 0`},children:`点击上方柱状图中的科目,查看各次考试详情`});if(n.length===0)return(0,X.jsxs)($E.Text,{type:`secondary`,style:{display:`block`,padding:`12px 0`},children:[t,` 暂无复盘记录`]});let r=n.filter(e=>e.isProblem).length;return(0,X.jsxs)(`div`,{style:{marginTop:16},children:[(0,X.jsxs)($E.Text,{strong:!0,style:{fontSize:15},children:[t,` · 考试明细`]}),(0,X.jsxs)($E.Text,{type:`secondary`,style:{marginLeft:12,fontSize:12},children:[`共 `,n.length,` 次,其中 `,r,` 次存在问题`]}),(0,X.jsx)(`div`,{style:{marginTop:12,display:`flex`,flexDirection:`column`,gap:8},children:n.map(e=>(0,X.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:10,flexWrap:`nowrap`,overflowX:`auto`,whiteSpace:`nowrap`,padding:`10px 14px`,borderRadius:8,border:`1px solid ${e.isProblem?`#ffccc7`:`#f0f0f0`}`,background:e.isProblem?`#fff2f0`:`#fafafa`},children:[(0,X.jsx)($E.Text,{strong:!0,style:{color:e.isProblem?`#cf1322`:void 0},children:e.examDate}),(0,X.jsx)($E.Text,{style:{color:e.isProblem?`#cf1322`:`#666`},children:e.examType}),e.title&&(0,X.jsx)($E.Text,{style:{color:e.isProblem?`#cf1322`:`#888`},children:e.title}),(0,X.jsxs)($E.Text,{style:{color:e.isProblem?`#cf1322`:void 0},children:[`得分 `,e.scoreText,``,e.ratioText,``]}),(0,X.jsx)($E.Text,{type:e.isProblem?`danger`:`secondary`,style:{fontSize:13},children:`状态`}),e.statuses.map(t=>(0,X.jsx)(zE,{color:c8e[t],style:{marginInlineEnd:0,...e.isProblem&&t!==`normal`?{fontWeight:600}:{}},children:_A[t]},t))]},e.key))})]})}function u8e(e,t){if(e&&typeof e==`object`&&`response`in e){let t=e.response?.data?.detail;if(typeof t==`string`)return t;if(Array.isArray(t))return t.map(e=>e?.msg||String(e)).join(``)}return t}function d8e(e){let t=new Set;for(let n of e)for(let e of n.scores)e.review_statuses?.length&&t.add(e.subject_name||`科目${e.subject_id}`);return Array.from(t).sort((e,t)=>e.localeCompare(t,`zh-CN`))[0]||null}function f8e({studentId:e,exams:t,onRefresh:n}){let[r,i]=(0,h.useState)(),[a,o]=(0,h.useState)({}),[s,c]=(0,h.useState)(!1),[l,u]=(0,h.useState)(null),d=(0,h.useMemo)(()=>t.map(e=>({value:e.id,label:`${e.exam_date} · ${yA[e.exam_type]}${e.title?` · ${e.title}`:``}`})),[t]),f=t.find(e=>e.id===r);return(0,h.useEffect)(()=>{!r&&t.length&&i(t[0].id)},[r,t]),(0,h.useEffect)(()=>{let e=d8e(t);e&&u(t=>t??e)},[t]),(0,h.useEffect)(()=>{if(!f){o({});return}let e={};for(let t of f.scores)e[t.subject_id]=[...t.review_statuses||[]];o(e)},[f]),t.length===0?(0,X.jsx)($E.Text,{type:`secondary`,children:`请先录入至少一次考试成绩,再进行复盘`}):(0,X.jsxs)(Ay,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)($E.Title,{level:5,style:{marginTop:0},children:`填写复盘`}),(0,X.jsxs)(Ay,{wrap:!0,style:{width:`100%`,marginBottom:12},children:[(0,X.jsx)(Rx,{style:{minWidth:280},placeholder:`选择考试`,value:r,onChange:i,options:d}),(0,X.jsx)(cp,{type:`primary`,loading:s,onClick:async()=>{if(!f){MS.warning(`请选择考试`);return}c(!0);try{await Qk.update(f.id,{scores:f.scores.map(e=>({subject_id:e.subject_id,total_score:Number(e.total_score),obtained_score:Number(e.obtained_score),review_statuses:a[e.subject_id]||[]}))}),MS.success(`复盘已保存`),n()}catch(e){MS.error(u8e(e,`保存失败`))}finally{c(!1)}},children:`保存复盘`})]}),f&&(0,X.jsx)(PE,{size:`small`,pagination:!1,rowKey:`subject_id`,dataSource:f.scores,scroll:{x:480},columns:[{title:`科目`,dataIndex:`subject_name`,width:80},{title:`得分`,width:100,render:(e,t)=>`${t.obtained_score}/${t.total_score}`},{title:`考试状态(可多选)`,render:(e,t)=>(0,X.jsx)(pg.Group,{options:vA,value:a[t.subject_id]||[],onChange:e=>o(n=>({...n,[t.subject_id]:e}))})}]})]}),(0,X.jsx)(Nae,{style:{margin:`8px 0`}}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)($E.Title,{level:5,style:{marginTop:0},children:`复盘统计`}),(0,X.jsx)(a8e,{exams:t,selectedSubject:l,onSubjectSelect:u}),(0,X.jsx)(l8e,{exams:t,subjectName:l}),(0,X.jsx)(s8e,{studentId:e,subjectName:l})]})]})}var Z9={junior_high:`初中`,senior_high:`高中`},p8e={junior_high:[`初一`,`初二`,`初三`],senior_high:[`高一`,`高二`,`高三`]};function Q9(e){let t=[Z9[e.school_level],e.grade,e.class_name].filter(Boolean);return t.length?t.join(` · `):`未设置学段年级`}function m8e({item:e,open:t,onClose:n,onRegenerate:r,onDelete:i,onDownload:a,regenerating:o}){if(!e)return null;let s=e.status===`pending`||e.status===`generating`;return(0,X.jsx)(_C,{title:`作文详情`,open:t,onCancel:n,width:`92%`,style:{maxWidth:860},footer:(0,X.jsxs)(Ay,{wrap:!0,children:[(0,X.jsx)(EC,{title:`确定删除?`,onConfirm:()=>i(e.id),children:(0,X.jsx)(cp,{danger:!0,icon:(0,X.jsx)(dD,{}),children:`删除`})}),(0,X.jsx)(cp,{icon:(0,X.jsx)(lA,{}),loading:o,onClick:()=>r(e.id),children:`重新生成`}),(0,X.jsx)(cp,{type:`primary`,icon:(0,X.jsx)(pD,{}),disabled:e.status!==`done`,onClick:()=>a(e),children:`下载 Markdown`})]}),children:(0,X.jsxs)(Ay,{direction:`vertical`,size:`middle`,style:{width:`100%`},children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(zE,{children:xA[e.status]}),(0,X.jsx)(zE,{children:e.input_mode===`ocr`?`OCR 识别`:`手动输入`}),(0,X.jsx)($E.Text,{type:`secondary`,style:{marginLeft:8},children:new Date(e.created_at).toLocaleString()})]}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)($E.Text,{strong:!0,children:`题目`}),(0,X.jsx)(`pre`,{style:{marginTop:8,background:`#fafafa`,padding:12,borderRadius:8,whiteSpace:`pre-wrap`},children:e.topic})]}),e.error_message&&(0,X.jsx)(kc,{type:`error`,message:e.error_message,showIcon:!0}),s&&(0,X.jsx)(`div`,{style:{textAlign:`center`,padding:24},children:(0,X.jsx)(Zx,{tip:`正在生成写作方案与范文…`})}),e.status===`done`&&(0,X.jsxs)(X.Fragment,{children:[e.writing_plan&&(0,X.jsxs)(`div`,{children:[(0,X.jsx)($E.Title,{level:5,children:`写作方案`}),(0,X.jsx)(`div`,{style:{background:`#fafafa`,padding:12,borderRadius:8},children:(0,X.jsx)(H9,{children:e.writing_plan})})]}),e.sample_essay&&(0,X.jsxs)(`div`,{children:[(0,X.jsx)($E.Title,{level:5,children:`范文`}),(0,X.jsx)(`div`,{style:{background:`#fafafa`,padding:12,borderRadius:8},children:(0,X.jsx)(H9,{children:e.sample_essay})})]})]})]})})}function h8e({studentId:e,student:t}){let[n,r]=(0,h.useState)(``),[i,a]=(0,h.useState)(`manual`),[o,s]=(0,h.useState)([]),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[f,p]=(0,h.useState)(!1),[m,g]=(0,h.useState)(null),[_,v]=(0,h.useState)(!1),[y,b]=(0,h.useState)(!1),x=(0,h.useCallback)(async()=>{l(!0);try{let{data:t}=await $k.list(e);s(t),g(e=>e&&(t.find(t=>t.id===e.id)??e))}finally{l(!1)}},[e]);(0,h.useEffect)(()=>{x()},[x]),(0,h.useEffect)(()=>{if(!o.some(e=>e.status===`pending`||e.status===`generating`))return;let e=window.setInterval(x,4e3);return()=>window.clearInterval(e)},[o,x]);let S=async t=>{d(!0);try{let{data:n}=await $k.ocr(e,t);r(n.text),a(`ocr`),MS.success(`题目识别完成`)}catch{MS.error(`题目识别失败`)}finally{d(!1)}return!1},C=async()=>{if(!n.trim()){MS.warning(`请输入或识别作文题目`);return}p(!0);try{let{data:t}=await $k.create(e,{topic:n.trim(),input_mode:i});MS.success(`已开始生成,请稍后在历史记录中查看`),r(``),a(`manual`),await x(),g(t),v(!0)}catch{MS.error(`创建失败`)}finally{p(!1)}},w=e=>{g(e),v(!0)},T=async e=>{b(!0);try{let{data:t}=await $k.regenerate(e);MS.info(`正在重新生成…`),g(t),await x()}catch{MS.error(`重新生成失败`)}finally{b(!1)}},E=async e=>{await $k.remove(e),MS.success(`已删除`),v(!1),g(null),x()},D=async e=>{try{let{data:t}=await $k.download(e.id),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=`${e.topic.slice(0,20).replace(/[\\/:*?"<>|]/g,`_`)||`composition`}.md`,r.click(),URL.revokeObjectURL(n)}catch{MS.error(`下载失败`)}},O=Z9[t.school_level],k=[O,t.grade,t.class_name].filter(Boolean).join(` · `);return(0,X.jsxs)(Ay,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,X.jsxs)($E.Paragraph,{type:`secondary`,style:{marginBottom:0},children:[`按 `,k||O,` 课内要求生成写作方案与范文,严禁超纲。题目可手动输入或拍照 OCR 识别。`]}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)($E.Text,{strong:!0,children:`作文题目`}),(0,X.jsx)(eb.TextArea,{rows:4,value:n,onChange:e=>{r(e.target.value),a(`manual`)},placeholder:`输入作文题目,或通过下方上传题目图片 OCR 识别`,style:{marginTop:8}}),(0,X.jsxs)(Ay,{wrap:!0,style:{marginTop:12},children:[(0,X.jsx)(xD,{beforeUpload:S,showUploadList:!1,accept:`image/*`,children:(0,X.jsx)(cp,{icon:(0,X.jsx)(pA,{}),loading:u,children:`上传题目 OCR`})}),(0,X.jsx)(cp,{type:`primary`,loading:f,onClick:C,children:`生成写作方案与范文`})]})]}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)($E.Title,{level:5,style:{marginTop:0},children:`历史记录`}),(0,X.jsx)(eS,{loading:c,dataSource:o,locale:{emptyText:`暂无记录,请在上方输入题目并生成`},renderItem:e=>(0,X.jsx)(eS.Item,{actions:[(0,X.jsx)(cp,{type:`link`,onClick:()=>w(e),children:`查看`})],children:(0,X.jsx)(eS.Item.Meta,{title:(0,X.jsxs)(Ay,{wrap:!0,children:[(0,X.jsx)($E.Text,{ellipsis:!0,style:{maxWidth:420},children:e.topic}),(0,X.jsx)(zE,{color:e.status===`done`?`green`:e.status===`failed`?`red`:`blue`,children:xA[e.status]})]}),description:new Date(e.created_at).toLocaleString()})})})]}),(0,X.jsx)(m8e,{item:m,open:_,onClose:()=>v(!1),onRegenerate:T,onDelete:E,onDownload:D,regenerating:y})]})}var g8e=[`scores`,`overview`,`trend`,`review`,`composition`,`wrong`,`olympiad`];function _8e(){let{id:e}=gve(),[t,n]=xye(),r=t.get(`tab`),i=g8e.includes(r)?r:`scores`,[a,o]=(0,h.useState)(null),[s,c]=(0,h.useState)([]),[l,u]=(0,h.useState)([]),[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(),[g,_]=(0,h.useState)([]),[v,y]=(0,h.useState)([]),[b,x]=(0,h.useState)(),[S,C]=(0,h.useState)(``),[w,T]=(0,h.useState)(``),[E,D]=(0,h.useState)(null),[O,k]=(0,h.useState)(null),[A,j]=(0,h.useState)(!0),M=(0,h.useMemo)(()=>s.find(e=>e.name===`数学`),[s]),N=Object.fromEntries(s.map(e=>[e.id,e.name])),P=(0,h.useCallback)(async()=>{if(!e)return;let{data:t}=await Qk.list(e);u(t)},[e]),F=(0,h.useCallback)(async()=>{if(!e||!p)return;let{data:t}=await Qk.trend(e,p);f(t)},[e,p]),I=(0,h.useCallback)(async()=>{if(!e)return;let{data:t}=await eA.list(e,{subject_id:b,q:S||void 0,category:`regular`});_(t)},[e,b,S]),L=(0,h.useCallback)(async()=>{if(!e)return;let{data:t}=await eA.list(e,{subject_id:M?.id,q:w||void 0,category:`olympiad`});y(t)},[e,M?.id,w]);(0,h.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{j(!0);try{let[n,r]=await Promise.all([Zk.get(e),Sxe.list()]);if(t)return;o(n.data),c(r.data),r.data.length&&m(r.data[0].id);let i=await Qk.list(e);t||u(i.data)}finally{t||j(!1)}})(),()=>{t=!0}},[e]),(0,h.useEffect)(()=>{I()},[I]),(0,h.useEffect)(()=>{L()},[L]),(0,h.useEffect)(()=>{F()},[F]);let R=e=>{n({tab:e},{replace:!0})},z=async()=>{if(e)try{let t=await Qk.exportCsv(e),n=t.data;if(n.type?.includes(`application/json`)){let e=await n.text();try{let t=JSON.parse(e);MS.error(t.detail||`导出失败`)}catch{MS.error(`导出失败`)}return}let r=t.headers[`content-disposition`],i=`${a?.name||`student`}_scores.csv`;if(r){let e=r.match(/filename\*=UTF-8''([^;]+)/i),t=r.match(/filename="?([^";]+)"?/i);e?.[1]?i=decodeURIComponent(e[1]):t?.[1]&&(i=t[1])}let o=URL.createObjectURL(n),s=document.createElement(`a`);s.href=o,s.download=i,s.click(),URL.revokeObjectURL(o)}catch{MS.error(`导出失败`)}};if(A)return(0,X.jsx)(`div`,{style:{textAlign:`center`,padding:80},children:(0,X.jsx)(Zx,{size:`large`})});if(!a)return(0,X.jsx)($E.Text,{children:`学生不存在`});let B=Z9[a.school_level];return(0,X.jsxs)(`div`,{className:`page-container`,children:[(0,X.jsxs)(Ay,{className:`page-header`,wrap:!0,children:[(0,X.jsx)(uO,{to:`/`,children:(0,X.jsx)(cp,{icon:(0,X.jsx)(Exe,{}),children:`返回`})}),(0,X.jsx)($E.Title,{level:4,style:{margin:0},children:a.name}),(0,X.jsx)(zE,{color:a.school_level===`senior_high`?`purple`:`blue`,children:B}),(0,X.jsx)($E.Text,{type:`secondary`,children:Q9(a)}),(0,X.jsx)(cp,{icon:(0,X.jsx)(pD,{}),onClick:z,children:`导出 CSV`})]}),(0,X.jsx)(rg,{className:`student-tabs`,activeKey:i,onChange:R,destroyInactiveTabPane:!1,items:[{key:`scores`,label:`成绩录入`,children:(0,X.jsx)(Bxe,{studentId:e,subjects:s,exams:l,onRefresh:P})},{key:`overview`,label:`成绩总览`,children:(0,X.jsx)(Vxe,{exams:l,subjectNames:N})},{key:`trend`,label:`分科曲线`,children:(0,X.jsxs)(`div`,{children:[(0,X.jsx)(Rx,{style:{width:`100%`,maxWidth:160,marginBottom:16},value:p,onChange:m,options:s.map(e=>({value:e.id,label:e.name}))}),d&&(0,X.jsx)(J$e,{points:d.points,subjectName:d.subject_name,threshold:d.threshold})]})},{key:`review`,label:`成绩复盘`,children:(0,X.jsx)(f8e,{studentId:e,exams:l,onRefresh:P})},{key:`composition`,label:`作文区`,children:(0,X.jsx)(h8e,{studentId:e,student:a})},{key:`wrong`,label:`错题库`,children:(0,X.jsxs)(`div`,{children:[(0,X.jsxs)($E.Paragraph,{type:`secondary`,style:{marginBottom:12},children:[`上传后自动标注错误位置(红框),并生成解题思路,按`,B,`课内标准解题`]}),(0,X.jsx)(t8e,{studentId:e,subjects:s,category:`regular`,onUploaded:I}),(0,X.jsx)(n8e,{subjectId:b,onSubjectChange:x,search:S,onSearchChange:C,onRefresh:I,subjects:s}),(0,X.jsx)(C6e,{items:g,selectedId:E,onSelect:D,onRefresh:I,emptyText:`暂无错题`})]})},{key:`olympiad`,label:`奥数区`,children:(0,X.jsxs)(`div`,{children:[(0,X.jsxs)($E.Paragraph,{type:`secondary`,style:{marginBottom:12},children:[B,`数学奥数,严格限制在`,B,`奥数培优范围内,禁止超纲`]}),(0,X.jsx)(t8e,{studentId:e,subjects:s,category:`olympiad`,onUploaded:L}),(0,X.jsx)(n8e,{search:w,onSearchChange:T,onRefresh:L,subjects:s,hideSubjectFilter:!0}),(0,X.jsx)(C6e,{items:v,selectedId:O,onSelect:k,onRefresh:L,emptyText:`暂无奥数题`})]})}]})]})}function v8e(){let{user:e,logout:t}=nA(),[n,r]=(0,h.useState)([]),[i,a]=(0,h.useState)(!0),[o,s]=(0,h.useState)(!1),[c]=Ty.useForm(),l=Ty.useWatch(`school_level`,c),u=async()=>{a(!0);try{let{data:e}=await Zk.list();r(e)}finally{a(!1)}};return(0,h.useEffect)(()=>{u()},[]),(0,X.jsxs)(`div`,{className:`page-container`,children:[(0,X.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:24,flexWrap:`wrap`,gap:12},children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)($E.Title,{level:3,style:{margin:0},children:`学生档案`}),(0,X.jsxs)($E.Text,{type:`secondary`,children:[`欢迎,`,e?.username]})]}),(0,X.jsxs)(Ay,{wrap:!0,children:[e?.is_superuser&&(0,X.jsx)(uO,{to:`/settings`,children:(0,X.jsx)(cp,{icon:(0,X.jsx)(dA,{}),children:`系统设置`})}),(0,X.jsx)(cp,{type:`primary`,icon:(0,X.jsx)(Em,{}),onClick:()=>{c.setFieldsValue({school_level:`junior_high`,grade:void 0}),s(!0)},children:`添加学生`}),(0,X.jsx)(cp,{icon:(0,X.jsx)(jxe,{}),onClick:t,children:`退出`})]})]}),(0,X.jsx)(Zx,{spinning:i,children:(0,X.jsxs)(MC,{gutter:[16,16],children:[n.map(e=>(0,X.jsx)(wg,{xs:24,sm:12,md:8,children:(0,X.jsx)(uO,{to:`/students/${e.id}`,style:{textDecoration:`none`},children:(0,X.jsx)(ag,{hoverable:!0,children:(0,X.jsxs)(Ay,{align:`start`,children:[(0,X.jsx)(hA,{style:{fontSize:24,color:`#1677ff`}}),(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(Ay,{size:4,children:[(0,X.jsx)($E.Text,{strong:!0,children:e.name}),(0,X.jsx)(zE,{color:e.school_level===`senior_high`?`purple`:`blue`,children:Z9[e.school_level]})]}),(0,X.jsx)(`br`,{}),(0,X.jsx)($E.Text,{type:`secondary`,style:{fontSize:12},children:Q9(e)})]})]})})})},e.id)),!i&&n.length===0&&(0,X.jsx)(wg,{span:24,children:(0,X.jsx)(ag,{children:(0,X.jsx)($E.Text,{type:`secondary`,children:`暂无学生,点击「添加学生」开始`})})})]})}),(0,X.jsx)(_C,{title:`添加学生`,open:o,onCancel:()=>s(!1),onOk:async()=>{let e=await c.validateFields();await Zk.create(e),MS.success(`学生已添加`),s(!1),c.resetFields(),u()},destroyOnHidden:!0,children:(0,X.jsxs)(Ty,{form:c,layout:`vertical`,initialValues:{school_level:`junior_high`},children:[(0,X.jsx)(Ty.Item,{name:`name`,label:`姓名`,rules:[{required:!0}],children:(0,X.jsx)(eb,{})}),(0,X.jsx)(Ty.Item,{name:`school_level`,label:`学段`,rules:[{required:!0}],children:(0,X.jsx)(Rx,{options:Object.entries(Z9).map(([e,t])=>({value:e,label:t})),onChange:()=>c.setFieldValue(`grade`,void 0)})}),(0,X.jsx)(Ty.Item,{name:`grade`,label:`年级`,children:(0,X.jsx)(Rx,{allowClear:!0,placeholder:l===`senior_high`?`如:高一`:`如:初二`,options:(p8e[l||`junior_high`]||[]).map(e=>({value:e,label:e}))})}),(0,X.jsx)(Ty.Item,{name:`class_name`,label:`班级`,children:(0,X.jsx)(eb,{placeholder:`如:3班`})})]})})]})}function $9({children:e}){let{user:t,loading:n}=nA();return n?null:t?(0,X.jsx)(X.Fragment,{children:e}):(0,X.jsx)(XD,{to:`/login`,replace:!0})}function y8e(){return(0,X.jsxs)(Ive,{children:[(0,X.jsx)(ZD,{path:`/login`,element:(0,X.jsx)(Ixe,{})}),(0,X.jsx)(ZD,{path:`/`,element:(0,X.jsx)($9,{children:(0,X.jsx)(v8e,{})})}),(0,X.jsx)(ZD,{path:`/students/:id`,element:(0,X.jsx)($9,{children:(0,X.jsx)(_8e,{})})}),(0,X.jsx)(ZD,{path:`/settings`,element:(0,X.jsx)($9,{children:(0,X.jsx)(Lxe,{})})}),(0,X.jsx)(ZD,{path:`*`,element:(0,X.jsx)(XD,{to:`/`,replace:!0})})]})}(0,hn.createRoot)(document.getElementById(`root`)).render((0,X.jsx)(h.StrictMode,{children:(0,X.jsx)(Pu,{locale:xxe.default,children:(0,X.jsx)(pye,{children:(0,X.jsx)(wxe,{children:(0,X.jsx)(y8e,{})})})})}));