Files
secondary-school-grade-archive/frontend/dist/assets/index-19dlnnB9.js
T

432 lines
2.4 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 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 K=h.forwardRef((e,t)=>h.createElement(W,ee({},e,{ref:t,icon:G.default}))),te=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 ne(){return ne=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},ne.apply(this,arguments)}var re=h.forwardRef((e,t)=>h.createElement(W,ne({},e,{ref:t,icon:te.default}))),ie=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 ae(){return ae=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},ae.apply(this,arguments)}var oe=h.forwardRef((e,t)=>h.createElement(W,ae({},e,{ref:t,icon:ie.default}))),se=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 ce(){return ce=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},ce.apply(this,arguments)}var le=h.forwardRef((e,t)=>h.createElement(W,ce({},e,{ref:t,icon:se.default}))),ue=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 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 fe=h.forwardRef((e,t)=>h.createElement(W,de({},e,{ref:t,icon:ue.default}))),pe=e=>{let t=h.useRef(e);return t.current=e,h.useCallback((...e)=>t.current?.(...e),[])};function me(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var he=me()?h.useLayoutEffect:h.useEffect,ge=(e,t)=>{let n=h.useRef(!0);he(()=>e(n.current),t),he(()=>(n.current=!1,()=>{n.current=!0}),[])},_e=(e,t)=>{ge(t=>{if(!t)return e()},t)},ve=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 ye(e,t){let[n,r]=(0,h.useState)(e),i=t===void 0?n:t;return ge(e=>{e||r(t)},[t]),[i,r]}function be(){return{...h}.useId}var xe=0;function Se(e,t){return`${e}-${String(t).replace(/[^a-zA-Z0-9_.:-]/g,`-`)}`}var Ce=be(),we=Ce?function(e){let t=Ce();return e||t}:function(e){let[t,n]=h.useState(`ssr-id`);return h.useEffect(()=>{let e=xe;xe+=1,n(`rc_unique_${e}`)},[]),e||t};function Te(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 Ee(e){let[,t]=h.useReducer(e=>e+1,0),n=h.useRef(e);return[pe(()=>n.current),pe(e=>{n.current=typeof e==`function`?e(n.current):e,t()})]}var De=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}})),Oe=o(((e,t)=>{t.exports=De()})),ke=Symbol.for(`react.element`),Ae=Symbol.for(`react.transitional.element`),je=Symbol.for(`react.fragment`);function Me(e){return e&&typeof e==`object`&&(e.$$typeof===ke||e.$$typeof===Ae)&&e.type===je}var Ne=Oe(),Pe=Number(h.version.split(`.`)[0]),Fe=(e,t)=>{typeof e==`function`?e(t):typeof e==`object`&&e&&`current`in e&&(e.current=t)},Ie=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{Fe(e,t)})}},Le=(...e)=>Te(()=>Ie(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),Re=e=>{if(!e)return!1;if(ze(e)&&Pe>=19)return!0;let t=(0,Ne.isMemo)(e)?e.type.type:e.type;return!(typeof t==`function`&&!t.prototype?.render&&t.$$typeof!==Ne.ForwardRef||typeof e==`function`&&!e.prototype?.render&&e.$$typeof!==Ne.ForwardRef)};function ze(e){return(0,h.isValidElement)(e)&&!Me(e)}var Be=e=>ze(e)&&Re(e),Ve=e=>{if(e&&ze(e)){let t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null};function He(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 Ue=`data-rc-order`,We=`data-rc-priority`,Ge=`rc-util-key`,Ke=new Map;function qe({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:Ge}function Je(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function Ye(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function Xe(e){return Array.from((Ke.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function Ze(e,t={}){if(!me())return null;let{csp:n,prepend:r,priority:i=0}=t,a=Ye(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(Ue,a),o&&i&&s.setAttribute(We,`${i}`),n?.nonce&&(s.nonce=n?.nonce),s.innerHTML=e;let c=Je(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||Xe(c)).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(Ue))?i>=Number(e.getAttribute(We)||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 Qe(e,t={}){let{styles:n}=t;return n||=Xe(Je(t)),n.find(n=>n.getAttribute(qe(t))===e)}function $e(e,t={}){let n=Qe(e,t);n&&Je(t).removeChild(n)}function et(e,t){let n=Ke.get(e);if(!n||!He(document,n)){let n=Ze(``,t),{parentNode:r}=n;Ke.set(e,r),e.removeChild(n)}}function tt(e,t,n={}){let r=Je(n),i=Xe(r),a={...n,styles:i};et(r,a);let o=Qe(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=Ze(e,a);return s.setAttribute(qe(a),t),s}function nt(e){return e instanceof HTMLElement||e instanceof SVGElement}function rt(e){return e&&typeof e==`object`&&nt(e.nativeElement)?e.nativeElement:nt(e)?e:null}var it=(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 at(e,t=!1){if(it(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 ot(e,t=!1){let n=[...e.querySelectorAll(`*`)].filter(e=>at(e,t));return at(e,t)&&n.unshift(e),n}function st(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 ct=null,lt=[],ut=new Map,dt=new Map;function ft(){return lt[lt.length-1]}function pt(e){let t=ft();if(e&&t){let n;for(let[e,r]of ut.entries())if(r===t){n=e;break}let r=dt.get(n);return!!r&&(r===e||r.contains(e))}return!1}function mt(e){let{activeElement:t}=document;return e===t||e.contains(t)}function ht(){let e=ft(),{activeElement:t}=document;if(!pt(t))if(e&&!mt(e)){let t=ot(e);(t.includes(ct)?ct:t[0])?.focus({preventScroll:!0})}else ct=t}function gt(e){if(e.key===`Tab`){let{activeElement:t}=document,n=ot(ft()),r=n[n.length-1];e.shiftKey&&t===n[0]?ct=r:!e.shiftKey&&t===r&&(ct=n[0])}}function _t(e,t){return e&&(ut.set(t,e),lt=lt.filter(t=>t!==e),lt.push(e),window.addEventListener(`focusin`,ht),window.addEventListener(`keydown`,gt,!0),ht()),()=>{ct=null,lt=lt.filter(t=>t!==e),ut.delete(t),dt.delete(t),lt.length===0&&(window.removeEventListener(`focusin`,ht),window.removeEventListener(`keydown`,gt,!0))}}function vt(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 yt(e,t){let n=we(),r=(0,h.useRef)(t);return r.current=t,vt(t=>{if(!e)return[void 0,!0];let i=r.current();return i?[_t(i,n),!0]:[void 0,t>=1]},[n,e]),[e=>{e&&dt.set(n,e)}]}function bt(e){return e?.getRootNode?.()}function xt(e){return bt(e)instanceof ShadowRoot}function St(e){return xt(e)?bt(e):null}var Ct=e=>{if(me()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},wt=(e,t)=>{if(!Ct(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function Tt(e,t){return!Array.isArray(e)&&t!==void 0?wt(e,t):Ct(e)}var Et={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>=Et.F1&&t<=Et.F12)return!1;switch(t){case Et.ALT:case Et.CAPS_LOCK:case Et.CONTEXT_MENU:case Et.CTRL:case Et.DOWN:case Et.END:case Et.ESC:case Et.HOME:case Et.INSERT:case Et.LEFT:case Et.MAC_FF_META:case Et.META:case Et.NUMLOCK:case Et.NUM_CENTER:case Et.PAGE_DOWN:case Et.PAGE_UP:case Et.PAUSE:case Et.PRINT_SCREEN:case Et.RIGHT:case Et.SHIFT:case Et.UP:case Et.WIN_KEY:case Et.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Et.ZERO&&e<=Et.NINE||e>=Et.NUM_ZERO&&e<=Et.NUM_MULTIPLY||e>=Et.A&&e<=Et.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case Et.SPACE:case Et.QUESTION_MARK:case Et.NUM_PLUS:case Et.NUM_MINUS:case Et.NUM_PERIOD:case Et.NUM_DIVISION:case Et.SEMICOLON:case Et.DASH:case Et.EQUALS:case Et.COMMA:case Et.PERIOD:case Et.SLASH:case Et.APOSTROPHE:case Et.SINGLE_QUOTE:case Et.OPEN_SQUARE_BRACKET:case Et.BACKSLASH:case Et.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)}},Dt;function Ot(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{tt(`
#${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),$e(t),{width:o,height:s}}function kt(e){return typeof document>`u`?0:((e||Dt===void 0)&&(Dt=Ot()),Dt.width)}function At(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:Ot(e)}var jt={},Mt=[],Nt=e=>{Mt.push(e)};function Pt(e,t){}function Ft(e,t){}function It(){jt={}}function Lt(e,t,n){!t&&!jt[n]&&(e(!1,n),jt[n]=!0)}function Rt(e,t){Lt(Pt,e,t)}function zt(e,t){Lt(Ft,e,t)}Rt.preMessage=Nt,Rt.resetWarned=It,Rt.noteOnce=zt;function Bt(e,t,n=!1){let r=new Set;function i(e,t,a=1){let o=r.has(e);if(Rt(!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 Vt=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}}))()),Ht,Ut=()=>(Ht===void 0&&(Ht=(0,Vt.default)()),Ht);function Wt(e,t){let n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}var Gt=`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]+/),Kt=`aria-`,qt=`data-`;function Jt(e,t){return e.indexOf(t)===0}function Yt(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`||Jt(t,Kt))||n.data&&Jt(t,qt)||n.attr&&Gt.includes(t))&&(r[t]=e[t])}),r}function Xt(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 Zt=e=>+setTimeout(e,16),Qt=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(Zt=e=>window.requestAnimationFrame(e),Qt=e=>window.cancelAnimationFrame(e));var $t=0,en=new Map;function tn(e){en.delete(e)}var nn=(e,t=1)=>{$t+=1;let n=$t;function r(t){if(t===0)tn(n),e();else{let e=Zt(()=>{r(t-1)});en.set(n,e)}}return r(t),n};nn.cancel=e=>{let t=en.get(e);return tn(e),Qt(t)};function rn(e,t={}){let n=[];return h.Children.forEach(e,e=>{e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(rn(e)):Me(e)&&e.props?n=n.concat(rn(e.props.children,t)):n.push(e))}),n}function an(...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 on(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 sn(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]=sn(o[i],a,n,r),o}function cn(e,t,n,r=!1){return t.length&&r&&n===void 0&&!on(e,t.slice(0,-1))?e:sn(e,t,n,r)}function ln(e){return typeof e==`object`&&!!e&&Object.getPrototypeOf(e)===Object.prototype}function un(e){return Array.isArray(e)?[]:{}}var dn=typeof Reflect>`u`?Object.keys:Reflect.ownKeys;function fn(e,t={}){let{prepareArray:n}=t,r=n||(()=>[]),i=un(e[0]);return e.forEach(e=>{function t(n,a){let o=new Set(a),s=on(e,n),c=Array.isArray(s);if(c||ln(s)){if(!o.has(s)){o.add(s);let e=on(i,n);c?i=cn(i,n,r(e,s)):(!e||typeof e!=`object`)&&(i=cn(i,n,un(s))),dn(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],o)})}}else i=cn(i,n,s)}t([])}),i}function pn(...e){return fn(e)}var mn=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}}}})),eee=o(((e,t)=>{t.exports=mn()})),hn=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`})),gn=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=hn()})),_n=o((e=>{var t=eee(),n=d(),r=gn();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 ee(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)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}B(H),V(H,e)}function K(){B(H),B(U),B(W)}function te(e){e.memoizedState!==null&&V(G,e);var t=H.current,n=Hd(t,e.type);t!==n&&(V(U,e),V(H,n))}function ne(e){U.current===e&&(B(H),B(U)),G.current===e&&(B(G),qf._currentValue=I)}var re,ie;function ae(e){if(re===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);re=t&&t[1]||``,ie=-1<e.stack.indexOf(`
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+re+e+ie}var oe=!1;function se(e,t){if(!e||oe)return``;oe=!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{oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ae(n):``}function ce(e,t){switch(e.tag){case 26:case 27:case 5:return ae(e.type);case 16:return ae(`Lazy`);case 13:return e.child!==t&&t!==null?ae(`Suspense Fallback`):ae(`Suspense`);case 19:return ae(`SuspenseList`);case 0:case 15:return se(e.type,!1);case 11:return se(e.type.render,!1);case 1:return se(e.type,!0);case 31:return ae(`Activity`);default:return``}}function le(e){try{var t=``,n=null;do t+=ce(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var ue=Object.prototype.hasOwnProperty,de=t.unstable_scheduleCallback,fe=t.unstable_cancelCallback,pe=t.unstable_shouldYield,me=t.unstable_requestPaint,he=t.unstable_now,ge=t.unstable_getCurrentPriorityLevel,_e=t.unstable_ImmediatePriority,ve=t.unstable_UserBlockingPriority,ye=t.unstable_NormalPriority,be=t.unstable_LowPriority,xe=t.unstable_IdlePriority,Se=t.log,Ce=t.unstable_setDisableYieldValue,we=null,Te=null;function Ee(e){if(typeof Se==`function`&&Ce(e),Te&&typeof Te.setStrictMode==`function`)try{Te.setStrictMode(we,e)}catch{}}var De=Math.clz32?Math.clz32:Ae,Oe=Math.log,ke=Math.LN2;function Ae(e){return e>>>=0,e===0?32:31-(Oe(e)/ke|0)|0}var je=256,Me=262144,Ne=4194304;function Pe(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 Fe(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=Pe(n))):i=Pe(o):i=Pe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Pe(n))):i=Pe(o)):i=Pe(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 Ie(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Le(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 Re(){var e=Ne;return Ne<<=1,!(Ne&62914560)&&(Ne=4194304),e}function ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Be(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ve(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-De(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&&He(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function He(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-De(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-De(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function We(e,t){var n=t&-t;return n=n&42?1:Ge(n),(n&(e.suspendedLanes|t))===0?n:0}function Ge(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 Ke(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function qe(){var e=F.p;return e===0?(e=window.event,e===void 0?32:lp(e.type)):e}function Je(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Ye=Math.random().toString(36).slice(2),Xe=`__reactFiber$`+Ye,Ze=`__reactProps$`+Ye,Qe=`__reactContainer$`+Ye,$e=`__reactEvents$`+Ye,et=`__reactListeners$`+Ye,tt=`__reactHandles$`+Ye,nt=`__reactResources$`+Ye,rt=`__reactMarker$`+Ye;function it(e){delete e[Xe],delete e[Ze],delete e[$e],delete e[et],delete e[tt]}function at(e){var t=e[Xe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qe]||n[Xe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[Xe])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function ot(e){if(e=e[Xe]||e[Qe]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function st(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ct(e){var t=e[nt];return t||=e[nt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function lt(e){e[rt]=!0}var ut=new Set,dt={};function ft(e,t){pt(e,t),pt(e+`Capture`,t)}function pt(e,t){for(dt[e]=t,e=0;e<t.length;e++)ut.add(t[e])}var mt=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]*$`),ht={},gt={};function _t(e){return ue.call(gt,e)?!0:ue.call(ht,e)?!1:mt.test(e)?gt[e]=!0:(ht[e]=!0,!1)}function vt(e,t,n){if(_t(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 yt(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 bt(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 xt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function St(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ct(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 wt(e){if(!e._valueTracker){var t=St(e)?`checked`:`value`;e._valueTracker=Ct(e,t,``+e[t])}}function Tt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=St(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Et(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 Dt=/[\n"\\]/g;function Ot(e){return e.replace(Dt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function kt(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=``+xt(t)):e.value!==``+xt(t)&&(e.value=``+xt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):jt(e,o,xt(n)):jt(e,o,xt(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=``+xt(s):e.removeAttribute(`name`)}function At(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)){wt(e);return}n=n==null?``:``+xt(n),t=t==null?n:``+xt(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),wt(e)}function jt(e,t,n){t===`number`&&Et(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Mt(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=``+xt(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 Nt(e,t,n){if(t!=null&&(t=``+xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+xt(n)}function Pt(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=xt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),wt(e)}function Ft(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var It=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 Lt(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||It.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Rt(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&&Lt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Lt(e,o,t[o])}function zt(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 Bt=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`]]),Vt=/^[\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 Ht(e){return Vt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Ut(){}var Wt=null;function Gt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kt=null,qt=null;function Jt(e){var t=ot(e);if(t&&(e=t.stateNode)){var n=e[Ze]||null;a:switch(e=t.stateNode,t.type){case`input`:if(kt(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="`+Ot(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Ze]||null;if(!a)throw Error(i(90));kt(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&&Tt(r)}break a;case`textarea`:Nt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Mt(e,!!n.multiple,t,!1)}}}var Yt=!1;function Xt(e,t,n){if(Yt)return e(t,n);Yt=!0;try{return e(t)}finally{if(Yt=!1,(Kt!==null||qt!==null)&&(vu(),Kt&&(t=Kt,e=qt,qt=Kt=null,Jt(t),e)))for(t=0;t<e.length;t++)Jt(e[t])}}function Zt(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ze]||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 Qt=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),$t=!1;if(Qt)try{var en={};Object.defineProperty(en,"passive",{get:function(){$t=!0}}),window.addEventListener(`test`,en,en),window.removeEventListener(`test`,en,en)}catch{$t=!1}var tn=null,nn=null,rn=null;function an(){if(rn)return rn;var e,t=nn,n=t.length,r,i=`value`in tn?tn.value:tn.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 rn=i.slice(e,1<r?1-r:void 0)}function on(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 sn(){return!0}function cn(){return!1}function ln(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)?sn:cn,this.isPropagationStopped=cn,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=sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=sn)},persist:function(){},isPersistent:sn}),t}var un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(un),fn=p({},un,{view:0,detail:0}),pn=ln(fn),mn,hn,_n,vn=p({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,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!==_n&&(_n&&e.type===`mousemove`?(mn=e.screenX-_n.screenX,hn=e.screenY-_n.screenY):hn=mn=0,_n=e),mn)},movementY:function(e){return`movementY`in e?e.movementY:hn}}),yn=ln(vn),bn=ln(p({},vn,{dataTransfer:0})),xn=ln(p({},fn,{relatedTarget:0})),Sn=ln(p({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),Cn=ln(p({},un,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),wn=ln(p({},un,{data:0})),Tn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},En={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`},Dn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dn[e])?!!t[e]:!1}function kn(){return On}var An=ln(p({},fn,{key:function(e){if(e.key){var t=Tn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=on(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?En[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return e.type===`keypress`?on(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?on(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),jn=ln(p({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=ln(p({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Nn=ln(p({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=ln(p({},vn,{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})),Fn=ln(p({},un,{newState:0,oldState:0})),tee=[9,13,27,32],In=Qt&&`CompositionEvent`in window,Ln=null;Qt&&`documentMode`in document&&(Ln=document.documentMode);var Rn=Qt&&`TextEvent`in window&&!Ln,zn=Qt&&(!In||Ln&&8<Ln&&11>=Ln),Bn=` `,Vn=!1;function Hn(e,t){switch(e){case`keyup`:return tee.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Un(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Wn=!1;function nee(e,t){switch(e){case`compositionend`:return Un(t);case`keypress`:return t.which===32?(Vn=!0,Bn):null;case`textInput`:return e=t.data,e===Bn&&Vn?null:e;default:return null}}function Gn(e,t){if(Wn)return e===`compositionend`||!In&&Hn(e,t)?(e=an(),rn=nn=tn=null,Wn=!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 zn&&t.locale!==`ko`?null:t.data;default:return null}}var Kn={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 qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Kn[e.type]:t===`textarea`}function Jn(e,t,n,r){Kt?qt?qt.push(r):qt=[r]:Kt=r,t=Ed(t,`onChange`),0<t.length&&(n=new dn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Xn=null;function Zn(e){vd(e,0)}function Qn(e){if(Tt(st(e)))return e}function $n(e,t){if(e===`change`)return t}var er=!1;if(Qt){var tr;if(Qt){var nr=`oninput`in document;if(!nr){var rr=document.createElement(`div`);rr.setAttribute(`oninput`,`return;`),nr=typeof rr.oninput==`function`}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ir(){Yn&&(Yn.detachEvent(`onpropertychange`,ar),Xn=Yn=null)}function ar(e){if(e.propertyName===`value`&&Qn(Xn)){var t=[];Jn(t,Xn,e,Gt(e)),Xt(Zn,t)}}function ree(e,t,n){e===`focusin`?(ir(),Yn=t,Xn=n,Yn.attachEvent(`onpropertychange`,ar)):e===`focusout`&&ir()}function or(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Qn(Xn)}function sr(e,t){if(e===`click`)return Qn(t)}function cr(e,t){if(e===`input`||e===`change`)return Qn(t)}function lr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var ur=typeof Object.is==`function`?Object.is:lr;function dr(e,t){if(ur(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(!ue.call(t,i)||!ur(e[i],t[i]))return!1}return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n=fr(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=fr(n)}}function mr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Et(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=Et(e.document)}return t}function gr(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 _r=Qt&&`documentMode`in document&&11>=document.documentMode,vr=null,yr=null,br=null,xr=!1;function Sr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xr||vr==null||vr!==Et(r)||(r=vr,`selectionStart`in r&&gr(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}),br&&dr(br,r)||(br=r,r=Ed(yr,`onSelect`),0<r.length&&(t=new dn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function Cr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var wr={animationend:Cr(`Animation`,`AnimationEnd`),animationiteration:Cr(`Animation`,`AnimationIteration`),animationstart:Cr(`Animation`,`AnimationStart`),transitionrun:Cr(`Transition`,`TransitionRun`),transitionstart:Cr(`Transition`,`TransitionStart`),transitioncancel:Cr(`Transition`,`TransitionCancel`),transitionend:Cr(`Transition`,`TransitionEnd`)},Tr={},Er={};Qt&&(Er=document.createElement(`div`).style,`AnimationEvent`in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),`TransitionEvent`in window||delete wr.transitionend.transition);function Dr(e){if(Tr[e])return Tr[e];if(!wr[e])return e;var t=wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Er)return Tr[e]=t[n];return e}var Or=Dr(`animationend`),kr=Dr(`animationiteration`),Ar=Dr(`animationstart`),jr=Dr(`transitionrun`),Mr=Dr(`transitionstart`),Nr=Dr(`transitioncancel`),Pr=Dr(`transitionend`),Fr=new Map,Ir=`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(` `);Ir.push(`scrollEnd`);function Lr(e,t){Fr.set(e,t),ft(t,[e])}var Rr=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)},zr=[],Br=0,Vr=0;function Hr(){for(var e=Br,t=Vr=Br=0;t<e;){var n=zr[t];zr[t++]=null;var r=zr[t];zr[t++]=null;var i=zr[t];zr[t++]=null;var a=zr[t];if(zr[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&&Kr(n,i,a)}}function Ur(e,t,n,r){zr[Br++]=e,zr[Br++]=t,zr[Br++]=n,zr[Br++]=r,Vr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Wr(e,t,n,r){return Ur(e,t,n,r),qr(e)}function Gr(e,t){return Ur(e,null,null,t),qr(e)}function Kr(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-De(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function qr(e){if(50<lu)throw lu=0,uu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jr={};function Yr(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 Xr(e,t,n,r){return new Yr(e,t,n,r)}function Zr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qr(e,t){var n=e.alternate;return n===null?(n=Xr(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 $r(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 ei(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)Zr(e)&&(s=1);else if(typeof e==`string`)s=Rf(e,n,H.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=Xr(31,n,t,a),e.elementType=D,e.lanes=o,e;case _:return ti(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=Xr(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=Xr(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=Xr(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=Xr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ti(e,t,n,r){return e=Xr(7,e,r,t),e.lanes=n,e}function ni(e,t,n){return e=Xr(6,e,null,t),e.lanes=n,e}function ri(e){var t=Xr(18,null,null,0);return t.stateNode=e,t}function ii(e,t,n){return t=Xr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ai=new WeakMap;function oi(e,t){if(typeof e==`object`&&e){var n=ai.get(e);return n===void 0?(t={value:e,source:t,stack:le(t)},ai.set(e,t),t):n}return{value:e,source:t,stack:le(t)}}var si=[],ci=0,li=null,ui=0,di=[],fi=0,q=null,pi=1,mi=``;function hi(e,t){si[ci++]=ui,si[ci++]=li,li=e,ui=t}function gi(e,t,n){di[fi++]=pi,di[fi++]=mi,di[fi++]=q,q=e;var r=pi;e=mi;var i=32-De(r)-1;r&=~(1<<i),n+=1;var a=32-De(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,pi=1<<32-De(t)+i|n<<i|r,mi=a+e}else pi=1<<a|n<<i|r,mi=e}function _i(e){e.return!==null&&(hi(e,1),gi(e,1,0))}function vi(e){for(;e===li;)li=si[--ci],si[ci]=null,ui=si[--ci],si[ci]=null;for(;e===q;)q=di[--fi],di[fi]=null,mi=di[--fi],di[fi]=null,pi=di[--fi],di[fi]=null}function yi(e,t){di[fi++]=pi,di[fi++]=mi,di[fi++]=q,pi=t.id,mi=t.overflow,q=e}var bi=null,xi=null,Si=!1,Ci=null,wi=!1,Ti=Error(i(519));function Ei(e){throw Mi(oi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ti}function Di(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Xe]=e,t[Ze]=r,n){case`dialog`:yd(`cancel`,t),yd(`close`,t);break;case`iframe`:case`object`:case`embed`:yd(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)yd(gd[n],t);break;case`source`:yd(`error`,t);break;case`img`:case`image`:case`link`:yd(`error`,t),yd(`load`,t);break;case`details`:yd(`toggle`,t);break;case`input`:yd(`invalid`,t),At(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:yd(`invalid`,t);break;case`textarea`:yd(`invalid`,t),Pt(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||jd(t.textContent,n)?(r.popover!=null&&(yd(`beforetoggle`,t),yd(`toggle`,t)),r.onScroll!=null&&yd(`scroll`,t),r.onScrollEnd!=null&&yd(`scrollend`,t),r.onClick!=null&&(t.onclick=Ut),t=!0):t=!1,t||Ei(e,!0)}function Oi(e){for(bi=e.return;bi;)switch(bi.tag){case 5:case 31:case 13:wi=!1;return;case 27:case 3:wi=!0;return;default:bi=bi.return}}function ki(e){if(e!==bi)return!1;if(!Si)return Oi(e),Si=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&xi&&Ei(e),Oi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));xi=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));xi=uf(e)}else t===27?(t=xi,Zd(e.type)?(e=lf,lf=null,xi=e):xi=t):xi=bi?cf(e.stateNode.nextSibling):null;return!0}function Ai(){xi=bi=null,Si=!1}function ji(){var e=Ci;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),Ci=null),e}function Mi(e){Ci===null?Ci=[e]:Ci.push(e)}var Ni=z(null),Pi=null,Fi=null;function Ii(e,t,n){V(Ni,t._currentValue),t._currentValue=n}function Li(e){e._currentValue=Ni.current,B(Ni)}function Ri(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 zi(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),Ri(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),Ri(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 Bi(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;ur(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=[qf]:e.push(qf))}a=a.return}e!==null&&zi(t,e,n,r),t.flags|=262144}function Vi(e){for(e=e.firstContext;e!==null;){if(!ur(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hi(e){Pi=e,Fi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ui(e){return Gi(Pi,e)}function Wi(e,t){return Pi===null&&Hi(e),Gi(e,t)}function Gi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Fi===null){if(e===null)throw Error(i(308));Fi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Fi=Fi.next=t;return n}var Ki=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()})}},qi=t.unstable_scheduleCallback,Ji=t.unstable_NormalPriority,Yi={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xi(){return{controller:new Ki,data:new Map,refCount:0}}function Zi(e){e.refCount--,e.refCount===0&&qi(Ji,function(){e.controller.abort()})}var Qi=null,$i=0,ea=0,ta=null;function na(e,t){if(Qi===null){var n=Qi=[];$i=0,ea=ud(),ta={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return $i++,t.then(ra,ra),t}function ra(){if(--$i===0&&Qi!==null){ta!==null&&(ta.status=`fulfilled`);var e=Qi;Qi=null,ea=0,ta=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ia(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 aa=P.S;P.S=function(e,t){Ql=he(),typeof t==`object`&&t&&typeof t.then==`function`&&na(e,t),aa!==null&&aa(e,t)};var oa=z(null);function sa(){var e=oa.current;return e===null?Nl.pooledCache:e}function ca(e,t){t===null?V(oa,oa.current):V(oa,t.pool)}function la(){var e=sa();return e===null?null:{parent:Yi._currentValue,pool:e}}var ua=Error(i(460)),da=Error(i(474)),fa=Error(i(542)),pa={then:function(){}};function ma(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ha(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ut,Ut),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ya(e),e;default:if(typeof t.status==`string`)t.then(Ut,Ut);else{if(e=Nl,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,ya(e),e}throw _a=t,ua}}function ga(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(_a=e,ua):e}}var _a=null;function va(){if(_a===null)throw Error(i(459));var e=_a;return _a=null,e}function ya(e){if(e===ua||e===fa)throw Error(i(483))}var ba=null,xa=0;function Sa(e){var t=xa;return xa+=1,ba===null&&(ba=[]),ha(ba,e,t)}function Ca(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function wa(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 Ta(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=ni(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&&ga(i)===t.type)?(t=a(t,n.props),Ca(t,n),t.return=e,t):(t=ei(n.type,n.key,n.props,null,e.mode,r),Ca(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=ii(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=ti(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=ni(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=ei(t.type,t.key,t.props,null,e.mode,n),Ca(n,t),n.return=e,n;case g:return t=ii(t,e.mode,n),t.return=e,t;case E:return t=ga(t),f(e,t,n)}if(N(t)||A(t))return t=ti(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Sa(t),n);if(t.$$typeof===x)return f(e,Wi(e,t),n);wa(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=ga(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,Sa(n),r);if(n.$$typeof===x)return p(e,t,Wi(e,n),r);wa(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=ga(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,Sa(r),i);if(r.$$typeof===x)return m(e,t,n,Wi(t,r),i);wa(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),Si&&hi(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 Si&&hi(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)}),Si&&hi(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),Si&&hi(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 Si&&hi(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)}),Si&&hi(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&&ga(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ca(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ti(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ei(o.type,o.key,o.props,null,e.mode,c),Ca(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=ii(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=ga(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,Sa(o),c);if(o.$$typeof===x)return b(e,r,Wi(e,o),c);wa(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=ni(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{xa=0;var i=b(e,t,n,r);return ba=null,i}catch(t){if(t===ua||t===fa)throw t;var a=Xr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ea=Ta(!0),Da=Ta(!1),Oa=!1;function ka(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Aa(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 ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ma(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ml&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=qr(e),Kr(e,null,n),t}return Ur(e,r,t,n),qr(e)}function Na(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,Ue(e,n)}}function Pa(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 Fa=!1;function Ia(){if(Fa){var e=ta;if(e!==null)throw e}}function La(e,t,n,r){Fa=!1;var i=e.updateQueue;Oa=!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?(Fl&f)===f:(r&f)===f){f!==0&&f===ea&&(Fa=!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:Oa=!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),Ul|=o,e.lanes=o,e.memoizedState=d}}function Ra(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ra(n[e],t)}var Ba=z(null),Va=z(0);function Ha(e,t){e=Vl,V(Va,e),V(Ba,t),Vl=e|t.baseLanes}function Ua(){V(Va,Vl),V(Ba,Ba.current)}function Wa(){Vl=Va.current,B(Ba),B(Va)}var Ga=z(null),Ka=null;function qa(e){var t=e.alternate;V(Qa,Qa.current&1),V(Ga,e),Ka===null&&(t===null||Ba.current!==null||t.memoizedState!==null)&&(Ka=e)}function Ja(e){V(Qa,Qa.current),V(Ga,e),Ka===null&&(Ka=e)}function Ya(e){e.tag===22?(V(Qa,Qa.current),V(Ga,e),Ka===null&&(Ka=e)):Xa(e)}function Xa(){V(Qa,Qa.current),V(Ga,Ga.current)}function Za(e){B(Ga),Ka===e&&(Ka=null),B(Qa)}var Qa=z(0);function $a(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(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 eo=0,to=null,no=null,ro=null,io=!1,ao=!1,oo=!1,so=0,co=0,lo=null,iee=0;function uo(){throw Error(i(321))}function fo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function po(e,t,n,r,i,a){return eo=a,to=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?As:js,oo=!1,a=n(r,i),oo=!1,ao&&(a=ho(t,n,r,i)),mo(e),a}function mo(e){P.H=ks;var t=no!==null&&no.next!==null;if(eo=0,ro=no=to=null,io=!1,co=0,lo=null,t)throw Error(i(300));e===null||Js||(e=e.dependencies,e!==null&&Vi(e)&&(Js=!0))}function ho(e,t,n,r){to=e;var a=0;do{if(ao&&(lo=null),co=0,ao=!1,25<=a)throw Error(i(301));if(a+=1,ro=no=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=Ms,o=t(n,r)}while(ao);return o}function go(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?Co(t):t,e=e.useState()[0],(no===null?null:no.memoizedState)!==e&&(to.flags|=1024),t}function _o(){var e=so!==0;return so=0,e}function vo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function yo(e){if(io){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}io=!1}eo=0,ro=no=to=null,ao=!1,co=so=0,lo=null}function bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ro===null?to.memoizedState=ro=e:ro=ro.next=e,ro}function xo(){if(no===null){var e=to.alternate;e=e===null?null:e.memoizedState}else e=no.next;var t=ro===null?to.memoizedState:ro.next;if(t!==null)ro=t,no=e;else{if(e===null)throw to.alternate===null?Error(i(467)):Error(i(310));no=e,e={memoizedState:no.memoizedState,baseState:no.baseState,baseQueue:no.baseQueue,queue:no.queue,next:null},ro===null?to.memoizedState=ro=e:ro=ro.next=e}return ro}function So(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Co(e){var t=co;return co+=1,lo===null&&(lo=[]),e=ha(lo,e,t),t=to,(ro===null?t.memoizedState:ro.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?As:js),e}function wo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Co(e);if(e.$$typeof===x)return Ui(e)}throw Error(i(438,String(e)))}function To(e){var t=null,n=to.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=to.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=So(),to.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 Eo(e,t){return typeof t==`function`?t(e):t}function Do(e){return Oo(xo(),no,e)}function Oo(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?(eo&f)===f:(Fl&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===ea&&(d=!0);else if((eo&p)===p){u=u.next,p===ea&&(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,to.lanes|=p,Ul|=p;f=u.action,oo&&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,to.lanes|=f,Ul|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!ur(o,e.memoizedState)&&(Js=!0,d&&(n=ta,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 ko(e){var t=xo(),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);ur(o,t.memoizedState)||(Js=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ao(e,t,n){var r=to,a=xo(),o=Si;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!ur((no||a).memoizedState,n);if(s&&(a.memoizedState=n,Js=!0),a=a.queue,ts(No.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ro!==null&&ro.memoizedState.tag&1){if(r.flags|=2048,Xo(9,{destroy:void 0},Mo.bind(null,r,a,n,t),null),Nl===null)throw Error(i(349));o||eo&127||jo(r,t,n)}return n}function jo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=to.updateQueue,t===null?(t=So(),to.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Mo(e,t,n,r){t.value=n,t.getSnapshot=r,Po(t)&&Fo(e)}function No(e,t,n){return n(function(){Po(t)&&Fo(e)})}function Po(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ur(e,n)}catch{return!0}}function Fo(e){var t=Gr(e,2);t!==null&&pu(t,e,2)}function Io(e){var t=bo();if(typeof e==`function`){var n=e;if(e=n(),oo){Ee(!0);try{n()}finally{Ee(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:e},t}function Lo(e,t,n,r){return e.baseState=n,Oo(e,no,typeof r==`function`?r:Eo)}function Ro(e,t,n,r,a){if(Es(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,zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function zo(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),Bo(e,t,s)}catch(n){Ho(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Bo(e,t,a)}catch(n){Ho(e,t,n)}}function Bo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Vo(e,t,n)},function(n){return Ho(e,t,n)}):Vo(e,t,n)}function Vo(e,t,n){t.status=`fulfilled`,t.value=n,Uo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,zo(e,n)))}function Ho(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Uo(t),t=t.next;while(t!==r)}e.action=null}function Uo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wo(e,t){return t}function Go(e,t){if(Si){var n=Nl.formState;if(n!==null){a:{var r=to;if(Si){if(xi){b:{for(var i=xi,a=wi;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){xi=cf(i.nextSibling),r=i.data===`F!`;break a}}Ei(r)}r=!1}r&&(t=n[0])}}return n=bo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:t},n.queue=r,n=Cs.bind(null,to,r),r.dispatch=n,r=Io(!1),a=Ts.bind(null,to,!1,r.queue),r=bo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ro.bind(null,to,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ko(e){return qo(xo(),no,e)}function qo(e,t,n){if(t=Oo(e,t,Wo)[0],e=Do(Eo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Co(t)}catch(e){throw e===ua?fa:e}else r=t;t=xo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(to.flags|=2048,Xo(9,{destroy:void 0},Jo.bind(null,i,n),null)),[r,a,e]}function Jo(e,t){e.action=t}function Yo(e){var t=xo(),n=no;if(n!==null)return qo(t,n,e);xo(),t=t.memoizedState,n=xo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Xo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=to.updateQueue,t===null&&(t=So(),to.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 Zo(){return xo().memoizedState}function Qo(e,t,n,r){var i=bo();to.flags|=e,i.memoizedState=Xo(1|t,{destroy:void 0},n,r===void 0?null:r)}function $o(e,t,n,r){var i=xo();r=r===void 0?null:r;var a=i.memoizedState.inst;no!==null&&r!==null&&fo(r,no.memoizedState.deps)?i.memoizedState=Xo(t,a,n,r):(to.flags|=e,i.memoizedState=Xo(1|t,a,n,r))}function es(e,t){Qo(8390656,8,e,t)}function ts(e,t){$o(2048,8,e,t)}function ns(e){to.flags|=4;var t=to.updateQueue;if(t===null)t=So(),to.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function rs(e){var t=xo().memoizedState;return ns({ref:t,nextImpl:e}),function(){if(Ml&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function is(e,t){return $o(4,2,e,t)}function as(e,t){return $o(4,4,e,t)}function os(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 ss(e,t,n){n=n==null?null:n.concat([e]),$o(4,4,os.bind(null,t,e),n)}function cs(){}function ls(e,t){var n=xo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&fo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function us(e,t){var n=xo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&fo(t,r[1]))return r[0];if(r=e(),oo){Ee(!0);try{e()}finally{Ee(!1)}}return n.memoizedState=[r,t],r}function ds(e,t,n){return n===void 0||eo&1073741824&&!(Fl&261930)?e.memoizedState=t:(e.memoizedState=n,e=fu(),to.lanes|=e,Ul|=e,n)}function fs(e,t,n,r){return ur(n,t)?n:Ba.current===null?!(eo&42)||eo&1073741824&&!(Fl&261930)?(Js=!0,e.memoizedState=n):(e=fu(),to.lanes|=e,Ul|=e,t):(e=ds(e,n,r),ur(e,t)||(Js=!0),e)}function ps(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,Ts(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ws(e,t,ia(c,r),du(e)):ws(e,t,r,du(e))}catch(n){ws(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function ms(){}function hs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=gs(e).queue;ps(e,a,t,I,n===null?ms:function(){return _s(e),n(r)})}function gs(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:Eo,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _s(e){var t=gs(e);t.next===null&&(t=e.alternate.memoizedState),ws(e,t.next.queue,{},du())}function vs(){return Ui(qf)}function ys(){return xo().memoizedState}function bs(){return xo().memoizedState}function xs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=ja(n);var r=Ma(t,e,n);r!==null&&(pu(r,t,n),Na(r,t,n)),t={cache:Xi()},e.payload=t;return}t=t.return}}function Ss(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(e)?Ds(t,n):(n=Wr(e,t,n,r),n!==null&&(pu(n,e,r),Os(n,t,r)))}function Cs(e,t,n){ws(e,t,n,du())}function ws(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Ds(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,ur(s,o))return Ur(e,t,i,0),Nl===null&&Hr(),!1}catch{}if(n=Wr(e,t,i,r),n!==null)return pu(n,e,r),Os(n,t,r),!0}return!1}function Ts(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Es(e)){if(t)throw Error(i(479))}else t=Wr(e,n,r,2),t!==null&&pu(t,e,2)}function Es(e){var t=e.alternate;return e===to||t!==null&&t===to}function Ds(e,t){ao=io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Os(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ue(e,n)}}var ks={readContext:Ui,use:wo,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useLayoutEffect:uo,useInsertionEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useDeferredValue:uo,useTransition:uo,useSyncExternalStore:uo,useId:uo,useHostTransitionStatus:uo,useFormState:uo,useActionState:uo,useOptimistic:uo,useMemoCache:uo,useCacheRefresh:uo};ks.useEffectEvent=uo;var As={readContext:Ui,use:wo,useCallback:function(e,t){return bo().memoizedState=[e,t===void 0?null:t],e},useContext:Ui,useEffect:es,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Qo(4194308,4,os.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=bo();t=t===void 0?null:t;var r=e();if(oo){Ee(!0);try{e()}finally{Ee(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=bo();if(n!==void 0){var i=n(t);if(oo){Ee(!0);try{n(t)}finally{Ee(!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=Ss.bind(null,to,e),[r.memoizedState,e]},useRef:function(e){var t=bo();return e={current:e},t.memoizedState=e},useState:function(e){e=Io(e);var t=e.queue,n=Cs.bind(null,to,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:cs,useDeferredValue:function(e,t){return ds(bo(),e,t)},useTransition:function(){var e=Io(!1);return e=ps.bind(null,to,e.queue,!0,!1),bo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=to,a=bo();if(Si){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Nl===null)throw Error(i(349));Fl&127||jo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,es(No.bind(null,r,o,e),[e]),r.flags|=2048,Xo(9,{destroy:void 0},Mo.bind(null,r,o,n,t),null),n},useId:function(){var e=bo(),t=Nl.identifierPrefix;if(Si){var n=mi,r=pi;n=(r&~(1<<32-De(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=so++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=iee++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:vs,useFormState:Go,useActionState:Go,useOptimistic:function(e){var t=bo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ts.bind(null,to,!0,n),n.dispatch=t,[e,t]},useMemoCache:To,useCacheRefresh:function(){return bo().memoizedState=xs.bind(null,to)},useEffectEvent:function(e){var t=bo(),n={impl:e};return t.memoizedState=n,function(){if(Ml&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},js={readContext:Ui,use:wo,useCallback:ls,useContext:Ui,useEffect:ts,useImperativeHandle:ss,useInsertionEffect:is,useLayoutEffect:as,useMemo:us,useReducer:Do,useRef:Zo,useState:function(){return Do(Eo)},useDebugValue:cs,useDeferredValue:function(e,t){return fs(xo(),no.memoizedState,e,t)},useTransition:function(){var e=Do(Eo)[0],t=xo().memoizedState;return[typeof e==`boolean`?e:Co(e),t]},useSyncExternalStore:Ao,useId:ys,useHostTransitionStatus:vs,useFormState:Ko,useActionState:Ko,useOptimistic:function(e,t){return Lo(xo(),no,e,t)},useMemoCache:To,useCacheRefresh:bs};js.useEffectEvent=rs;var Ms={readContext:Ui,use:wo,useCallback:ls,useContext:Ui,useEffect:ts,useImperativeHandle:ss,useInsertionEffect:is,useLayoutEffect:as,useMemo:us,useReducer:ko,useRef:Zo,useState:function(){return ko(Eo)},useDebugValue:cs,useDeferredValue:function(e,t){var n=xo();return no===null?ds(n,e,t):fs(n,no.memoizedState,e,t)},useTransition:function(){var e=ko(Eo)[0],t=xo().memoizedState;return[typeof e==`boolean`?e:Co(e),t]},useSyncExternalStore:Ao,useId:ys,useHostTransitionStatus:vs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){var n=xo();return no===null?(n.baseState=e,[e,n.queue.dispatch]):Lo(n,no,e,t)},useMemoCache:To,useCacheRefresh:bs};Ms.useEffectEvent=rs;function Ns(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 Ps={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),i=ja(r);i.payload=t,n!=null&&(i.callback=n),t=Ma(e,i,r),t!==null&&(pu(t,e,r),Na(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),i=ja(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ma(e,i,r),t!==null&&(pu(t,e,r),Na(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=ja(n);r.tag=2,t!=null&&(r.callback=t),t=Ma(e,r,n),t!==null&&(pu(t,e,n),Na(t,e,n))}};function Fs(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?!dr(n,r)||!dr(i,a):!0}function Is(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&&Ps.enqueueReplaceState(t,t.state,null)}function Ls(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 Rs(e){Rr(e)}function zs(e){console.error(e)}function Bs(e){Rr(e)}function Vs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Hs(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 Us(e,t,n){return n=ja(n),n.tag=3,n.payload={element:null},n.callback=function(){Vs(e,t)},n}function Ws(e){return e=ja(e),e.tag=3,e}function Gs(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(){Hs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Hs(t,n,r),typeof i!=`function`&&(tu===null?tu=new Set([this]):tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ks(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Bi(t,n,a,!0),n=Ga.current,n!==null){switch(n.tag){case 31:case 13:return Ka===null?Tu():n.alternate===null&&Hl===0&&(Hl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===pa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,a)),!1;case 22:return n.flags|=65536,r===pa?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)),Wu(e,r,a)),!1}throw Error(i(435,n.tag))}return Wu(e,r,a),Tu(),!1}if(Si)return t=Ga.current,t===null?(r!==Ti&&(t=Error(i(423),{cause:r}),Mi(oi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=oi(r,n),a=Us(e.stateNode,r,a),Pa(e,a),Hl!==4&&(Hl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ti&&(e=Error(i(422),{cause:r}),Mi(oi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=oi(o,n),Jl===null?Jl=[o]:Jl.push(o),Hl!==4&&(Hl=2),t===null)return!0;r=oi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Us(n.stateNode,r,e),Pa(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`&&(tu===null||!tu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ws(a),Gs(a,e,n,r),Pa(n,a),!1}n=n.return}while(n!==null);return!1}var qs=Error(i(461)),Js=!1;function Ys(e,t,n,r){t.child=e===null?Da(t,null,n,r):Ea(t,e.child,n,r)}function Xs(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 Hi(t),r=po(e,t,n,o,a,i),s=_o(),e!==null&&!Js?(vo(e,t,i),bc(e,t,i)):(Si&&s&&_i(t),t.flags|=1,Ys(e,t,r,i),t.child)}function Zs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Zr(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Qs(e,t,a,r,i)):(e=ei(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!xc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?dr:n,n(o,r)&&e.ref===t.ref)return bc(e,t,i)}return t.flags|=1,e=Qr(a,r),e.ref=t.ref,e.return=t,t.child=e}function Qs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(dr(a,r)&&e.ref===t.ref)if(Js=!1,t.pendingProps=r=a,xc(e,i))e.flags&131072&&(Js=!0);else return t.lanes=e.lanes,bc(e,t,i)}return oc(e,t,n,r,i)}function $s(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 tc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ca(t,a===null?null:a.cachePool),a===null?Ua():Ha(t,a),Ya(t);else return r=t.lanes=536870912,tc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ca(t,null),Ua(),Xa(t)):(ca(t,a.cachePool),Ha(t,a),Xa(t),t.memoizedState=null);return Ys(e,t,i,n),t.child}function ec(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tc(e,t,n,r,i){var a=sa();return a=a===null?null:{parent:Yi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ca(t,null),Ua(),Ya(t),e!==null&&Bi(e,t,r,!0),t.childLanes=i,null}function nc(e,t){return t=hc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function rc(e,t,n){return Ea(t,e.child,null,n),e=nc(t,t.pendingProps),e.flags|=2,Za(t),t.memoizedState=null,e}function ic(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Si){if(r.mode===`hidden`)return e=nc(t,r),t.lanes=536870912,ec(null,e);if(Ja(t),(e=xi)?(e=rf(e,wi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:q===null?null:{id:pi,overflow:mi},retryLane:536870912,hydrationErrors:null},n=ri(e),n.return=t,t.child=n,bi=t,xi=null)):e=null,e===null)throw Ei(t);return t.lanes=536870912,null}return nc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ja(t),a)if(t.flags&256)t.flags&=-257,t=rc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Js||Bi(e,t,n,!1),a=(n&e.childLanes)!==0,Js||a){if(r=Nl,r!==null&&(s=We(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Gr(e,s),pu(r,e,s),qs;Tu(),t=rc(e,t,n)}else e=o.treeContext,xi=cf(s.nextSibling),bi=t,Si=!0,Ci=null,wi=!1,e!==null&&yi(t,e),t=nc(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 ac(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 oc(e,t,n,r,i){return Hi(t),n=po(e,t,n,r,void 0,i),r=_o(),e!==null&&!Js?(vo(e,t,i),bc(e,t,i)):(Si&&r&&_i(t),t.flags|=1,Ys(e,t,n,i),t.child)}function sc(e,t,n,r,i,a){return Hi(t),t.updateQueue=null,n=ho(t,r,n,i),mo(e),r=_o(),e!==null&&!Js?(vo(e,t,a),bc(e,t,a)):(Si&&r&&_i(t),t.flags|=1,Ys(e,t,n,a),t.child)}function cc(e,t,n,r,i){if(Hi(t),t.stateNode===null){var a=Jr,o=n.contextType;typeof o==`object`&&o&&(a=Ui(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ps,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ka(t),o=n.contextType,a.context=typeof o==`object`&&o?Ui(o):Jr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ns(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&&Ps.enqueueReplaceState(a,a.state,null),La(t,r,a,i),Ia(),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=Ls(n,s);a.props=c;var l=a.context,u=n.contextType;o=Jr,typeof u==`object`&&u&&(o=Ui(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)&&Is(t,a,r,o),Oa=!1;var f=t.memoizedState;a.state=f,La(t,r,a,i),Ia(),l=t.memoizedState,s||f!==l||Oa?(typeof d==`function`&&(Ns(t,n,d,r),l=t.memoizedState),(c=Oa||Fs(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,Aa(e,t),o=t.memoizedProps,u=Ls(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Jr,typeof l==`object`&&l&&(c=Ui(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)&&Is(t,a,r,c),Oa=!1,f=t.memoizedState,a.state=f,La(t,r,a,i),Ia();var p=t.memoizedState;o!==d||f!==p||Oa||e!==null&&e.dependencies!==null&&Vi(e.dependencies)?(typeof s==`function`&&(Ns(t,n,s,r),p=t.memoizedState),(u=Oa||Fs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Vi(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,ac(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=Ea(t,e.child,null,i),t.child=Ea(t,null,n,i)):Ys(e,t,n,i),t.memoizedState=a.state,e=t.child):e=bc(e,t,i),e}function lc(e,t,n,r){return Ai(),t.flags|=256,Ys(e,t,n,r),t.child}var uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function dc(e){return{baseLanes:e,cachePool:la()}}function fc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Kl),e}function pc(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(Si){if(a?qa(t):Xa(t),(e=xi)?(e=rf(e,wi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:q===null?null:{id:pi,overflow:mi},retryLane:536870912,hydrationErrors:null},n=ri(e),n.return=t,t.child=n,bi=t,xi=null)):e=null,e===null)throw Ei(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Xa(t),a=t.mode,c=hc({mode:`hidden`,children:c},a),r=ti(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=dc(n),r.childLanes=fc(e,s,n),t.memoizedState=uc,ec(null,r)):(qa(t),mc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(qa(t),t.flags&=-257,t=gc(e,t,n)):t.memoizedState===null?(Xa(t),c=r.fallback,a=t.mode,r=hc({mode:`visible`,children:r.children},a),c=ti(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ea(t,e.child,null,n),r=t.child,r.memoizedState=dc(n),r.childLanes=fc(e,s,n),t.memoizedState=uc,t=ec(null,r)):(Xa(t),t.child=e.child,t.flags|=128,t=null);else if(qa(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Mi({value:r,source:null,stack:null}),t=gc(e,t,n)}else if(Js||Bi(e,t,n,!1),s=(n&e.childLanes)!==0,Js||s){if(s=Nl,s!==null&&(r=We(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Gr(e,r),pu(s,e,r),qs;af(c)||Tu(),t=gc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,xi=cf(c.nextSibling),bi=t,Si=!0,Ci=null,wi=!1,e!==null&&yi(t,e),t=mc(t,r.children),t.flags|=4096);return t}return a?(Xa(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=ti(c,a,n,null),c.flags|=2):c=Qr(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,ec(null,r),r=t.child,c=e.child.memoizedState,c===null?c=dc(n):(a=c.cachePool,a===null?a=la():(l=Yi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=fc(e,s,n),t.memoizedState=uc,ec(e.child,r)):(qa(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 mc(e,t){return t=hc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function hc(e,t){return e=Xr(22,e,null,t),e.lanes=0,e}function gc(e,t,n){return Ea(t,e.child,null,n),e=mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _c(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ri(e.return,t,n)}function vc(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 yc(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),Ys(e,t,r,n),r=Si?ui:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_c(e,n,t);else if(e.tag===19)_c(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&&$a(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),vc(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&&$a(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}vc(t,!0,n,null,a,r);break;case`together`:vc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function bc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Bi(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 xc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Vi(e))):!0}function Sc(e,t,n){switch(t.tag){case 3:ee(t,t.stateNode.containerInfo),Ii(t,Yi,e.memoizedState.cache),Ai();break;case 27:case 5:te(t);break;case 4:ee(t,t.stateNode.containerInfo);break;case 10:Ii(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ja(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(qa(t),e=bc(e,t,n),e===null?null:e.sibling):pc(e,t,n):(qa(t),t.flags|=128,null);qa(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Bi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return yc(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,$s(e,t,n,t.pendingProps);case 24:Ii(t,Yi,e.memoizedState.cache)}return bc(e,t,n)}function Cc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Js=!0;else{if(!xc(e,n)&&!(t.flags&128))return Js=!1,Sc(e,t,n);Js=!!(e.flags&131072)}else Js=!1,Si&&t.flags&1048576&&gi(t,ui,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ga(t.elementType),t.type=e,typeof e==`function`)Zr(e)?(r=Ls(e,r),t.tag=1,t=cc(null,t,e,r,n)):(t.tag=0,t=oc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=Xs(null,t,e,r,n);break a}else if(a===T){t.tag=14,t=Zs(null,t,e,r,n);break a}}throw t=M(e)||e,Error(i(306,t,``))}}return t;case 0:return oc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ls(r,t.pendingProps),cc(e,t,r,a,n);case 3:a:{if(ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Aa(e,t),La(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ii(t,Yi,r),r!==o.cache&&zi(t,[Yi],n,!0),Ia(),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=lc(e,t,r,n);break a}else if(r!==a){a=oi(Error(i(424)),t),Mi(a),t=lc(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(xi=cf(e.firstChild),bi=t,Si=!0,Ci=null,wi=!0,n=Da(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ai(),r===a){t=bc(e,t,n);break a}Ys(e,t,r,n)}t=t.child}return t;case 26:return ac(e,t),e===null?(n=wf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Si||(n=t.type,e=t.pendingProps,r=Bd(W.current).createElement(n),r[Xe]=t,r[Ze]=e,Pd(r,n,e),lt(r),t.stateNode=r):t.memoizedState=wf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),e===null&&Si&&(r=t.stateNode=ff(t.type,t.pendingProps,W.current),bi=t,wi=!0,a=xi,Zd(t.type)?(lf=a,xi=cf(r.firstChild)):xi=a),Ys(e,t,t.pendingProps.children,n),ac(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Si&&((a=r=xi)&&(r=tf(r,t.type,t.pendingProps,wi),r===null?a=!1:(t.stateNode=r,bi=t,xi=cf(r.firstChild),wi=!1,a=!0)),a||Ei(t)),te(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=po(e,t,go,null,null,n),qf._currentValue=a),ac(e,t),Ys(e,t,r,n),t.child;case 6:return e===null&&Si&&((e=n=xi)&&(n=nf(n,t.pendingProps,wi),n===null?e=!1:(t.stateNode=n,bi=t,xi=null,e=!0)),e||Ei(t)),null;case 13:return pc(e,t,n);case 4:return ee(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ea(t,null,r,n):Ys(e,t,r,n),t.child;case 11:return Xs(e,t,t.type,t.pendingProps,n);case 7:return Ys(e,t,t.pendingProps,n),t.child;case 8:return Ys(e,t,t.pendingProps.children,n),t.child;case 12:return Ys(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ii(t,t.type,r.value),Ys(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Hi(t),a=Ui(a),r=r(a),t.flags|=1,Ys(e,t,r,n),t.child;case 14:return Zs(e,t,t.type,t.pendingProps,n);case 15:return Qs(e,t,t.type,t.pendingProps,n);case 19:return yc(e,t,n);case 31:return ic(e,t,n);case 22:return $s(e,t,n,t.pendingProps);case 24:return Hi(t),r=Ui(Yi),e===null?(a=sa(),a===null&&(a=Nl,o=Xi(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},ka(t),Ii(t,Yi,a)):((e.lanes&n)!==0&&(Aa(e,t),La(t,null,null,n),Ia()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ii(t,Yi,r),r!==a.cache&&zi(t,[Yi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ii(t,Yi,r))),Ys(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function wc(e){e.flags|=4}function Tc(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(Su())e.flags|=8192;else throw _a=pa,da}else e.flags&=-16777217}function Ec(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!zf(t))if(Su())e.flags|=8192;else throw _a=pa,da}function Dc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Re(),e.lanes|=t,ql|=t)}function Oc(e,t){if(!Si)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 kc(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 Ac(e,t,n){var r=t.pendingProps;switch(vi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kc(t),null;case 1:return kc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Li(Yi),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ki(t)?wc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ji())),kc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(wc(t),o===null?(kc(t),Tc(t,a,null,r,n)):(kc(t),Ec(t,o))):o?o===e.memoizedState?(kc(t),t.flags&=-16777217):(wc(t),kc(t),Ec(t,o)):(e=e.memoizedProps,e!==r&&wc(t),kc(t),Tc(t,a,e,r,n)),null;case 27:if(ne(t),n=W.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return kc(t),null}e=H.current,ki(t)?Di(t,e):(e=ff(a,r,n),t.stateNode=e,wc(t))}return kc(t),null;case 5:if(ne(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return kc(t),null}if(o=H.current,ki(t))Di(t,o);else{var s=Bd(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[Xe]=t,o[Ze]=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(Pd(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&&wc(t)}}return kc(t),Tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&wc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=W.current,ki(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=bi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||Ei(t,!0)}else e=Bd(e).createTextNode(r),e[Xe]=t,t.stateNode=e}return kc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ki(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[Xe]=t}else Ai(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kc(t),e=!1}else n=ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Za(t),t):(Za(t),null);if(t.flags&128)throw Error(i(558))}return kc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ki(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[Xe]=t}else Ai(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kc(t),a=!1}else a=ji(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Za(t),t):(Za(t),null)}return Za(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),Dc(t,t.updateQueue),kc(t),null);case 4:return K(),e===null&&Sd(t.stateNode.containerInfo),kc(t),null;case 10:return Li(t.type),kc(t),null;case 19:if(B(Qa),r=t.memoizedState,r===null)return kc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Oc(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=$a(e),o!==null){for(t.flags|=128,Oc(r,!1),e=o.updateQueue,t.updateQueue=e,Dc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)$r(n,e),n=n.sibling;return V(Qa,Qa.current&1|2),Si&&hi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&he()>$l&&(t.flags|=128,a=!0,Oc(r,!1),t.lanes=4194304)}else{if(!a)if(e=$a(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Dc(t,e),Oc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Si)return kc(t),null}else 2*he()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,a=!0,Oc(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?(kc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=he(),e.sibling=null,n=Qa.current,V(Qa,a?n&1|2:n&1),Si&&hi(t,r.treeForkCount),e);case 22:case 23:return Za(t),Wa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(kc(t),t.subtreeFlags&6&&(t.flags|=8192)):kc(t),n=t.updateQueue,n!==null&&Dc(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(oa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Li(Yi),kc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function jc(e,t){switch(vi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Li(Yi),K(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ne(t),null;case 31:if(t.memoizedState!==null){if(Za(t),t.alternate===null)throw Error(i(340));Ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Za(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Qa),null;case 4:return K(),null;case 10:return Li(t.type),null;case 22:case 23:return Za(t),Wa(),e!==null&&B(oa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Li(Yi),null;case 25:return null;default:return null}}function Mc(e,t){switch(vi(t),t.tag){case 3:Li(Yi),K();break;case 26:case 27:case 5:ne(t);break;case 4:K();break;case 31:t.memoizedState!==null&&Za(t);break;case 13:Za(t);break;case 19:B(Qa);break;case 10:Li(t.type);break;case 22:case 23:Za(t),Wa(),e!==null&&B(oa);break;case 24:Li(Yi)}}function Nc(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){Uu(t,t.return,e)}}function Pc(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){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Fc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{za(t,n)}catch(t){Uu(e,e.return,t)}}}function Ic(e,t,n){n.props=Ls(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function Lc(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){Uu(e,t,n)}}function Rc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Uu(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){Uu(e,t,n)}else n.current=null}function zc(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){Uu(e,e.return,t)}}function Bc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[Ze]=t}catch(t){Uu(e,e.return,t)}}function Vc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Hc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Vc(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 Uc(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=Ut));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Uc(e,t,n),e=e.sibling;e!==null;)Uc(e,t,n),e=e.sibling}function Wc(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(Wc(e,t,n),e=e.sibling;e!==null;)Wc(e,t,n),e=e.sibling}function Gc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[Xe]=e,t[Ze]=n}catch(t){Uu(e,e.return,t)}}var Kc=!1,qc=!1,Jc=!1,Yc=typeof WeakSet==`function`?WeakSet:Set,Xc=null;function Zc(e,t){if(e=e.containerInfo,Rd=np,e=hr(e),gr(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(zd={focusedElem:e,selectionRange:n},np=!1,Xc=t;Xc!==null;)if(t=Xc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Xc=e;else for(;Xc!==null;){switch(t=Xc,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=Ls(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Uu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(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,Xc=e;break}Xc=t.return}}function Qc(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:pl(e,n),r&4&&Nc(5,n);break;case 1:if(pl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Uu(n,n.return,e)}else{var i=Ls(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Uu(n,n.return,e)}}r&64&&Fc(n),r&512&&Lc(n,n.return);break;case 3:if(pl(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{za(e,t)}catch(e){Uu(n,n.return,e)}}break;case 27:t===null&&r&4&&Gc(n);case 26:case 5:pl(e,n),t===null&&r&4&&zc(n),r&512&&Lc(n,n.return);break;case 12:pl(e,n);break;case 31:pl(e,n),r&4&&il(e,n);break;case 13:pl(e,n),r&4&&al(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Kc,!r){t=t!==null&&t.memoizedState!==null||qc,i=Kc;var a=qc;Kc=r,(qc=t)&&!a?hl(e,n,(n.subtreeFlags&8772)!=0):pl(e,n),Kc=i,qc=a}break;case 30:break;default:pl(e,n)}}function $c(e){var t=e.alternate;t!==null&&(e.alternate=null,$c(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&it(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 el=null,tl=!1;function nl(e,t,n){for(n=n.child;n!==null;)rl(e,t,n),n=n.sibling}function rl(e,t,n){if(Te&&typeof Te.onCommitFiberUnmount==`function`)try{Te.onCommitFiberUnmount(we,n)}catch{}switch(n.tag){case 26:qc||Rc(n,t),nl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:qc||Rc(n,t);var r=el,i=tl;Zd(n.type)&&(el=n.stateNode,tl=!1),nl(e,t,n),pf(n.stateNode),el=r,tl=i;break;case 5:qc||Rc(n,t);case 6:if(r=el,i=tl,el=null,nl(e,t,n),el=r,tl=i,el!==null)if(tl)try{(el.nodeType===9?el.body:el.nodeName===`HTML`?el.ownerDocument.body:el).removeChild(n.stateNode)}catch(e){Uu(n,t,e)}else try{el.removeChild(n.stateNode)}catch(e){Uu(n,t,e)}break;case 18:el!==null&&(tl?(e=el,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Op(e)):Qd(el,n.stateNode));break;case 4:r=el,i=tl,el=n.stateNode.containerInfo,tl=!0,nl(e,t,n),el=r,tl=i;break;case 0:case 11:case 14:case 15:Pc(2,n,t),qc||Pc(4,n,t),nl(e,t,n);break;case 1:qc||(Rc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Ic(n,t,r)),nl(e,t,n);break;case 21:nl(e,t,n);break;case 22:qc=(r=qc)||n.memoizedState!==null,nl(e,t,n),qc=r;break;default:nl(e,t,n)}}function il(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Op(e)}catch(e){Uu(t,t.return,e)}}}function al(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Op(e)}catch(e){Uu(t,t.return,e)}}function ol(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Yc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Yc),t;default:throw Error(i(435,e.tag))}}function sl(e,t){var n=ol(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function cl(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)){el=c.stateNode,tl=!1;break a}break;case 5:el=c.stateNode,tl=!1;break a;case 3:case 4:el=c.stateNode.containerInfo,tl=!0;break a}c=c.return}if(el===null)throw Error(i(160));rl(o,s,a),el=null,tl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ul(t,e),t=t.sibling}var ll=null;function ul(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:cl(t,e),dl(e),r&4&&(Pc(3,e,e.return),Nc(3,e),Pc(5,e,e.return));break;case 1:cl(t,e),dl(e),r&512&&(qc||n===null||Rc(n,n.return)),r&64&&Kc&&(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=ll;if(cl(t,e),dl(e),r&512&&(qc||n===null||Rc(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[rt]||o[Xe]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[Xe]=e,lt(o),r=o;break a;case`link`:var s=If(`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),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=If(`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),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[Xe]=e,lt(o),r=o}e.stateNode=r}else Lf(a,e.type,e.stateNode);else e.stateNode=jf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Bc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Lf(a,e.type,e.stateNode):jf(a,r,e.memoizedProps))}break;case 27:cl(t,e),dl(e),r&512&&(qc||n===null||Rc(n,n.return)),n!==null&&r&4&&Bc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(cl(t,e),dl(e),r&512&&(qc||n===null||Rc(n,n.return)),e.flags&32){a=e.stateNode;try{Ft(a,``)}catch(t){Uu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Bc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Jc=!0);break;case 6:if(cl(t,e),dl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Uu(e,e.return,t)}}break;case 3:if(Ff=null,a=ll,ll=gf(t.containerInfo),cl(t,e),ll=a,dl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Op(t.containerInfo)}catch(t){Uu(e,e.return,t)}Jc&&(Jc=!1,fl(e));break;case 4:r=ll,ll=gf(e.stateNode.containerInfo),cl(t,e),dl(e),ll=r;break;case 12:cl(t,e),dl(e);break;case 31:cl(t,e),dl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,sl(e,r)));break;case 13:cl(t,e),dl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zl=he()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,sl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Kc,d=qc;if(Kc=u||a,qc=d||l,cl(t,e),qc=d,Kc=u,dl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Kc||qc||ml(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){Uu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Uu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Uu(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,sl(e,n))));break;case 19:cl(t,e),dl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,sl(e,r)));break;case 30:break;case 21:break;default:cl(t,e),dl(e)}}function dl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Vc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Wc(e,Hc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ft(o,``),n.flags&=-33),Wc(e,Hc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Uc(e,Hc(e),s);break;default:throw Error(i(161))}}catch(t){Uu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Qc(e,t.alternate,t),t=t.sibling}function ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Pc(4,t,t.return),ml(t);break;case 1:Rc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Ic(t,t.return,n),ml(t);break;case 27:pf(t.stateNode);case 26:case 5:Rc(t,t.return),ml(t);break;case 22:t.memoizedState===null&&ml(t);break;case 30:ml(t);break;default:ml(t)}e=e.sibling}}function hl(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:hl(i,a,n),Nc(4,a);break;case 1:if(hl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Uu(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++)Ra(c[i],s)}catch(e){Uu(r,r.return,e)}}n&&o&64&&Fc(a),Lc(a,a.return);break;case 27:Gc(a);case 26:case 5:hl(i,a,n),n&&r===null&&o&4&&zc(a),Lc(a,a.return);break;case 12:hl(i,a,n);break;case 31:hl(i,a,n),n&&o&4&&il(i,a);break;case 13:hl(i,a,n),n&&o&4&&al(i,a);break;case 22:a.memoizedState===null&&hl(i,a,n),Lc(a,a.return);break;case 30:break;default:hl(i,a,n)}t=t.sibling}}function gl(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&&Zi(n))}function _l(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e))}function vl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yl(e,t,n,r),t=t.sibling}function yl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:vl(e,t,n,r),i&2048&&Nc(9,t);break;case 1:vl(e,t,n,r);break;case 3:vl(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&&Zi(e)));break;case 12:if(i&2048){vl(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){Uu(t,t.return,e)}}else vl(e,t,n,r);break;case 31:vl(e,t,n,r);break;case 13:vl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?vl(e,t,n,r):(a._visibility|=2,bl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?vl(e,t,n,r):xl(e,t),i&2048&&gl(o,t);break;case 24:vl(e,t,n,r),i&2048&&_l(t.alternate,t);break;default:vl(e,t,n,r)}}function bl(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:bl(a,o,s,c,i),Nc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,bl(a,o,s,c,i)):u._visibility&2?bl(a,o,s,c,i):xl(a,o),i&&l&2048&&gl(o.alternate,o);break;case 24:bl(a,o,s,c,i),i&&l&2048&&_l(o.alternate,o);break;default:bl(a,o,s,c,i)}t=t.sibling}}function xl(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:xl(n,r),i&2048&&gl(r.alternate,r);break;case 24:xl(n,r),i&2048&&_l(r.alternate,r);break;default:xl(n,r)}t=t.sibling}}var Sl=8192;function Cl(e,t,n){if(e.subtreeFlags&Sl)for(e=e.child;e!==null;)wl(e,t,n),e=e.sibling}function wl(e,t,n){switch(e.tag){case 26:Cl(e,t,n),e.flags&Sl&&e.memoizedState!==null&&Bf(n,ll,e.memoizedState,e.memoizedProps);break;case 5:Cl(e,t,n);break;case 3:case 4:var r=ll;ll=gf(e.stateNode.containerInfo),Cl(e,t,n),ll=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Sl,Sl=16777216,Cl(e,t,n),Sl=r):Cl(e,t,n));break;default:Cl(e,t,n)}}function Tl(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 El(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Xc=r,kl(r,e)}Tl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dl(e),e=e.sibling}function Dl(e){switch(e.tag){case 0:case 11:case 15:El(e),e.flags&2048&&Pc(9,e,e.return);break;case 3:El(e);break;case 12:El(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ol(e)):El(e);break;default:El(e)}}function Ol(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Xc=r,kl(r,e)}Tl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Pc(8,t,t.return),Ol(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ol(t));break;default:Ol(t)}e=e.sibling}}function kl(e,t){for(;Xc!==null;){var n=Xc;switch(n.tag){case 0:case 11:case 15:Pc(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:Zi(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Xc=r;else a:for(n=e;Xc!==null;){r=Xc;var i=r.sibling,a=r.return;if($c(r),r===n){Xc=null;break a}if(i!==null){i.return=a,Xc=i;break a}Xc=a}}}var Al={getCacheForType:function(e){var t=Ui(Yi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ui(Yi).controller.signal}},jl=typeof WeakMap==`function`?WeakMap:Map,Ml=0,Nl=null,Pl=null,Fl=0,Il=0,Ll=null,Rl=!1,zl=!1,Bl=!1,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=null,Yl=null,Xl=!1,Zl=0,Ql=0,$l=1/0,eu=null,tu=null,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=null,lu=0,uu=null;function du(){return Ml&2&&Fl!==0?Fl&-Fl:P.T===null?qe():ud()}function fu(){if(Kl===0)if(!(Fl&536870912)||Si){var e=Me;Me<<=1,!(Me&3932160)&&(Me=262144),Kl=e}else Kl=536870912;return e=Ga.current,e!==null&&(e.flags|=32),Kl}function pu(e,t,n){(e===Nl&&(Il===2||Il===9)||e.cancelPendingCommit!==null)&&(bu(e,0),_u(e,Fl,Kl,!1)),Be(e,n),(!(Ml&2)||e!==Nl)&&(e===Nl&&(!(Ml&2)&&(Wl|=n),Hl===4&&_u(e,Fl,Kl,!1)),nd(e))}function mu(e,t,n){if(Ml&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ie(e,t),a=r?Ou(e,t):Eu(e,t,!0),o=r;do{if(a===0){zl&&!r&&_u(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!gu(n)){a=Eu(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=Jl;var l=c.current.memoizedState.isDehydrated;if(l&&(bu(c,s).flags|=256),s=Eu(c,s,!1),s!==2){if(Bl&&!l){c.errorRecoveryDisabledLanes|=o,Wl|=o,a=4;break a}o=Yl,Yl=a,o!==null&&(Yl===null?Yl=o:Yl.push.apply(Yl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){bu(e,0),_u(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:_u(r,t,Kl,!Rl);break a;case 2:Yl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Zl+300-he(),10<a)){if(_u(r,t,Kl,!Rl),Fe(r,0,!0)!==0)break a;au=t,r.timeoutHandle=Kd(hu.bind(null,r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,`Throttled`,-0,0),a);break a}hu(r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,null,-0,0)}}break}while(1);nd(e)}function hu(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:Ut},wl(t,a,d);var m=(a&62914560)===a?Zl-he():(a&4194048)===a?Ql-he():0;if(m=Hf(d,m),m!==null){au=a,e.cancelPendingCommit=m(Fu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),_u(e,a,o,!l);return}}Fu(e,t,a,n,r,i,o,s,c)}function gu(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(!ur(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 _u(e,t,n,r){t&=~Gl,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-De(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&He(e,n,t)}function vu(){return Ml&6?!0:(rd(0,!1),!1)}function yu(){if(Pl!==null){if(Il===0)var e=Pl.return;else e=Pl,Fi=Pi=null,yo(e),ba=null,xa=0,e=Pl;for(;e!==null;)Mc(e.alternate,e),e=e.return;Pl=null}}function bu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),au=0,yu(),Nl=e,Pl=n=Qr(e.current,null),Fl=t,Il=0,Ll=null,Rl=!1,zl=Ie(e,t),Bl=!1,ql=Kl=Gl=Wl=Ul=Hl=0,Yl=Jl=null,Xl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-De(r),a=1<<i;t|=e[i],r&=~a}return Vl=t,Hr(),n}function xu(e,t){to=null,P.H=ks,t===ua||t===fa?(t=va(),Il=3):t===da?(t=va(),Il=4):Il=t===qs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ll=t,Pl===null&&(Hl=1,Vs(e,oi(t,e.current)))}function Su(){var e=Ga.current;return e===null?!0:(Fl&4194048)===Fl?Ka===null:(Fl&62914560)===Fl||Fl&536870912?e===Ka:!1}function Cu(){var e=P.H;return P.H=ks,e===null?ks:e}function wu(){var e=P.A;return P.A=Al,e}function Tu(){Hl=4,Rl||(Fl&4194048)!==Fl&&Ga.current!==null||(zl=!0),!(Ul&134217727)&&!(Wl&134217727)||Nl===null||_u(Nl,Fl,Kl,!1)}function Eu(e,t,n){var r=Ml;Ml|=2;var i=Cu(),a=wu();(Nl!==e||Fl!==t)&&(eu=null,bu(e,t)),t=!1;var o=Hl;a:do try{if(Il!==0&&Pl!==null){var s=Pl,c=Ll;switch(Il){case 8:yu(),o=6;break a;case 3:case 2:case 9:case 6:Ga.current===null&&(t=!0);var l=Il;if(Il=0,Ll=null,Mu(e,s,c,l),n&&zl){o=0;break a}break;default:l=Il,Il=0,Ll=null,Mu(e,s,c,l)}}Du(),o=Hl;break}catch(t){xu(e,t)}while(1);return t&&e.shellSuspendCounter++,Fi=Pi=null,Ml=r,P.H=i,P.A=a,Pl===null&&(Nl=null,Fl=0,Hr()),o}function Du(){for(;Pl!==null;)Au(Pl)}function Ou(e,t){var n=Ml;Ml|=2;var r=Cu(),a=wu();Nl!==e||Fl!==t?(eu=null,$l=he()+500,bu(e,t)):zl=Ie(e,t);a:do try{if(Il!==0&&Pl!==null){t=Pl;var o=Ll;b:switch(Il){case 1:Il=0,Ll=null,Mu(e,t,o,1);break;case 2:case 9:if(ma(o)){Il=0,Ll=null,ju(t);break}t=function(){Il!==2&&Il!==9||Nl!==e||(Il=7),nd(e)},o.then(t,t);break a;case 3:Il=7;break a;case 4:Il=5;break a;case 7:ma(o)?(Il=0,Ll=null,ju(t)):(Il=0,Ll=null,Mu(e,t,o,7));break;case 5:var s=null;switch(Pl.tag){case 26:s=Pl.memoizedState;case 5:case 27:var c=Pl;if(s?zf(s):c.stateNode.complete){Il=0,Ll=null;var l=c.sibling;if(l!==null)Pl=l;else{var u=c.return;u===null?Pl=null:(Pl=u,Nu(u))}break b}}Il=0,Ll=null,Mu(e,t,o,5);break;case 6:Il=0,Ll=null,Mu(e,t,o,6);break;case 8:yu(),Hl=6;break a;default:throw Error(i(462))}}ku();break}catch(t){xu(e,t)}while(1);return Fi=Pi=null,P.H=r,P.A=a,Ml=n,Pl===null?(Nl=null,Fl=0,Hr(),Hl):0}function ku(){for(;Pl!==null&&!pe();)Au(Pl)}function Au(e){var t=Cc(e.alternate,e,Vl);e.memoizedProps=e.pendingProps,t===null?Nu(e):Pl=t}function ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=sc(n,t,t.pendingProps,t.type,void 0,Fl);break;case 11:t=sc(n,t,t.pendingProps,t.type.render,t.ref,Fl);break;case 5:yo(t);default:Mc(n,t),t=Pl=$r(t,Vl),t=Cc(n,t,Vl)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Pl=t}function Mu(e,t,n,r){Fi=Pi=null,yo(t),ba=null,xa=0;var i=t.return;try{if(Ks(e,i,t,n,Fl)){Hl=1,Vs(e,oi(n,e.current)),Pl=null;return}}catch(t){if(i!==null)throw Pl=i,t;Hl=1,Vs(e,oi(n,e.current)),Pl=null;return}t.flags&32768?(Si||r===1?e=!0:zl||Fl&536870912?e=!1:(Rl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ga.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pu(t,e)):Nu(t)}function Nu(e){var t=e;do{if(t.flags&32768){Pu(t,Rl);return}e=t.return;var n=Ac(t.alternate,t,Vl);if(n!==null){Pl=n;return}if(t=t.sibling,t!==null){Pl=t;return}Pl=t=e}while(t!==null);Hl===0&&(Hl=5)}function Pu(e,t){do{var n=jc(e.alternate,e);if(n!==null){n.flags&=32767,Pl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Pl=e;return}Pl=e=n}while(e!==null);Hl=6,Pl=null}function Fu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Bu();while(nu!==0);if(Ml&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Vr,Ve(e,n,o,s,c,l),e===Nl&&(Pl=Nl=null,Fl=0),iu=t,ru=e,au=n,ou=o,su=a,cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(ye,function(){return Vu(),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=Ml,Ml|=4;try{Zc(e,t,n)}finally{Ml=s,F.p=a,P.T=r}}nu=1,Iu(),Lu(),Ru()}}function Iu(){if(nu===1){nu=0;var e=ru,t=iu,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=Ml;Ml|=4;try{ul(t,e);var a=zd,o=hr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&mr(s.ownerDocument.documentElement,s)){if(c!==null&&gr(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 _=pr(s,h),v=pr(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}}np=!!Rd,zd=Rd=null}finally{Ml=i,F.p=r,P.T=n}}e.current=t,nu=2}}function Lu(){if(nu===2){nu=0;var e=ru,t=iu,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=Ml;Ml|=4;try{Qc(e,t.alternate,t)}finally{Ml=i,F.p=r,P.T=n}}nu=3}}function Ru(){if(nu===4||nu===3){nu=0,me();var e=ru,t=iu,n=au,r=cu;t.subtreeFlags&10256||t.flags&10256?nu=5:(nu=0,iu=ru=null,zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(tu=null),Ke(n),t=t.stateNode,Te&&typeof Te.onCommitFiberRoot==`function`)try{Te.onCommitFiberRoot(we,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}}au&3&&Bu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===uu?lu++:(lu=0,uu=e):lu=0,rd(0,!1)}}function zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zi(t)))}function Bu(){return Iu(),Lu(),Ru(),Vu()}function Vu(){if(nu!==5)return!1;var e=ru,t=ou;ou=0;var n=Ke(au),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=su,su=null;var o=ru,s=au;if(nu=0,iu=ru=null,au=0,Ml&6)throw Error(i(331));var c=Ml;if(Ml|=4,Dl(o.current),yl(o,o.current,s,n),Ml=c,rd(0,!1),Te&&typeof Te.onPostCommitFiberRoot==`function`)try{Te.onPostCommitFiberRoot(we,o)}catch{}return!0}finally{F.p=a,P.T=r,zu(e,t)}}function Hu(e,t,n){t=oi(n,t),t=Us(e.stateNode,t,2),e=Ma(e,t,2),e!==null&&(Be(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=oi(n,e),n=Ws(2),r=Ma(t,n,2),r!==null&&(Gs(n,r,t,e),Be(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jl;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)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Nl===e&&(Fl&n)===n&&(Hl===4||Hl===3&&(Fl&62914560)===Fl&&300>he()-Zl?!(Ml&2)&&bu(e,0):Gl|=n,ql===Fl&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=Re()),e=Gr(e,t),e!==null&&(Be(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(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),Ku(e,n)}function Yu(e,t){return de(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;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-De(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Fl,a=Fe(r,r===Nl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ie(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=he(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-De(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Le(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Nl,n=Fl,n=Fe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Il===2||Il===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&fe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ie(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&fe(r),Ke(n)){case 2:case 8:n=ve;break;case 32:n=ye;break;case 268435456:n=xe;break;default:n=ye}return r=sd.bind(null,e),n=de(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&fe(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(nu!==0&&nu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Fl;return r=Fe(e,e===Nl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(mu(e,r,t),od(e,he()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Bu())return null;mu(e,t,!0)}function ld(){Yd(function(){Ml&6?de(_e,id):ad()})}function ud(){if(td===0){var e=ea;e===0&&(e=je,je<<=1,!(je&261888)&&(je=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Ht(``+e)}function fd(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 pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[Ze]||null).action),o=r.submitter;o&&(t=(t=o[Ze]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new dn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);hs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),hs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Ir.length;md++){var hd=Ir[md];Lr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Lr(Or,`onAnimationEnd`),Lr(kr,`onAnimationIteration`),Lr(Ar,`onAnimationStart`),Lr(`dblclick`,`onDoubleClick`),Lr(`focusin`,`onFocus`),Lr(`focusout`,`onBlur`),Lr(jr,`onTransitionRun`),Lr(Mr,`onTransitionStart`),Lr(Nr,`onTransitionCancel`),Lr(Pr,`onTransitionEnd`),pt(`onMouseEnter`,[`mouseout`,`mouseover`]),pt(`onMouseLeave`,[`mouseout`,`mouseover`]),pt(`onPointerEnter`,[`pointerout`,`pointerover`]),pt(`onPointerLeave`,[`pointerout`,`pointerover`]),ft(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ft(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ft(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ft(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ft(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ft(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`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(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(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){Rr(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){Rr(e)}i.currentTarget=null,a=c}}}}function yd(e,t){var n=t[$e];n===void 0&&(n=t[$e]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,ut.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(lp(t)){case 2:var i=rp;break;case 8:i=ip;break;default:i=ap}n=i.bind(null,t,n,e),i=void 0,!$t||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 wd(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=at(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}Xt(function(){var r=a,i=Gt(n),s=[];a:{var c=Fr.get(e);if(c!==void 0){var l=dn,u=e;switch(e){case`keypress`:if(on(n)===0)break a;case`keydown`:case`keyup`:l=An;break;case`focusin`:u=`focus`,l=xn;break;case`focusout`:u=`blur`,l=xn;break;case`beforeblur`:case`afterblur`:l=xn;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=yn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=bn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Mn;break;case Or:case kr:case Ar:l=Sn;break;case Pr:l=Nn;break;case`scroll`:case`scrollend`:l=pn;break;case`wheel`:l=Pn;break;case`copy`:case`cut`:case`paste`:l=Cn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=jn;break;case`toggle`:case`beforetoggle`:l=Fn}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=Zt(m,p),g!=null&&d.push(Td(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!==Wt&&(u=n.relatedTarget||n.fromElement)&&(at(u)||u[Qe]))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?at(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=yn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=jn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:st(l),h=u==null?c:st(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,at(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=aee,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&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?st(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=$n;else if(qn(c))if(er)v=cr;else{v=or;var y=ree}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&zt(r.elementType)&&(v=$n):v=sr;if(v&&=v(e,r)){Jn(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&jt(c,`number`,c.value)}switch(y=r?st(r):window,e){case`focusin`:(qn(y)||y.contentEditable===`true`)&&(vr=y,yr=r,br=null);break;case`focusout`:br=yr=vr=null;break;case`mousedown`:xr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:xr=!1,Sr(s,n,i);break;case`selectionchange`:if(_r)break;case`keydown`:case`keyup`:Sr(s,n,i)}var b;if(In)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 Wn?Hn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(zn&&n.locale!==`ko`&&(Wn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Wn&&(b=an()):(tn=i,nn=`value`in tn?tn.value:tn.textContent,Wn=!0)),y=Ed(r,x),0<y.length&&(x=new wn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Un(n),b!==null&&(x.data=b)))),(b=Rn?nee(e,n):Gn(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new wn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),pd(s,e,r,n,i)}vd(s,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(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=Zt(e,n),i!=null&&r.unshift(Td(e,i,a)),i=Zt(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function aee(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(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=Zt(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=Zt(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
`).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ft(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ft(e,``+r);break;case`className`:yt(e,`class`,r);break;case`tabIndex`:yt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:yt(e,n,r);break;case`style`:Rt(e,r,o);break;case`data`:if(t!==`object`){yt(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=Ht(``+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`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Ht(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Ut);break;case`onScroll`:r!=null&&yd(`scroll`,e);break;case`onScrollEnd`:r!=null&&yd(`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=Ht(``+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`:yd(`beforetoggle`,e),yd(`toggle`,e),vt(e,`popover`,r);break;case`xlinkActuate`:bt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:bt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:bt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:bt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:bt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:bt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:bt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:vt(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=Bt.get(n)||n,vt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Rt(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`?Ft(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ft(e,``+r);break;case`onScroll`:r!=null&&yd(`scroll`,e);break;case`onScrollEnd`:r!=null&&yd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Ut);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!dt.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[Ze]||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,``):vt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:yd(`error`,e),yd(`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:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:yd(`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:Md(e,t,r,d,n,null)}}At(e,o,c,l,u,s,a,!1);return;case`select`:for(a in yd(`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:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Mt(e,!!r,n,!0):Mt(e,!!r,t,!1);return;case`textarea`:for(s in yd(`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:Md(e,t,s,c,n,null)}Pt(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:Md(e,t,l,r,n,null)}return;case`dialog`:yd(`beforetoggle`,e),yd(`toggle`,e),yd(`cancel`,e),yd(`close`,e);break;case`iframe`:case`object`:yd(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)yd(gd[r],e);break;case`image`:yd(`error`,e),yd(`load`,e);break;case`details`:yd(`toggle`,e);break;case`embed`:case`source`:case`link`:yd(`error`,e),yd(`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:Md(e,t,u,r,n,null)}return;default:if(zt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(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)||Md(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&&Md(e,t,p,m,r,f)}}kt(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)||Md(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&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Mt(e,!!n,n?[]:``,!1):Mt(e,!!n,t,!0)):Mt(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:Md(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&&Md(e,t,s,a,r,o)}Nt(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:Md(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:Md(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)&&Md(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:Md(e,t,u,p,r,m)}return;default:if(zt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(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||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(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||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){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&&Id(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&&Id(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 Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(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 Hd(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 Ud(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 Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(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),Op(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[rt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Op(t)}function $d(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 ef(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`:ef(n),it(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(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[rt])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=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(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 cf(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 lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(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 ff(e,t,n){switch(t=Bd(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 pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);it(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=F.d;F.d={f:vf,r:yf,D:Sf,C:Cf,L:oee,m:see,X:lee,S:cee,M:uee};function vf(){var e=_f.f(),t=vu();return e||t}function yf(e){var t=ot(e);t!==null&&t.tag===5&&t.type===`form`?_s(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Ot(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),lt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function oee(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ot(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ot(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ot(n.imageSizes)+`"]`)):i+=`[href="`+Ot(e)+`"]`;var a=i;switch(t){case`style`:a=Tf(e);break;case`script`:a=kf(e)}mf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ef(a))||t===`script`&&r.querySelector(Af(a))||(t=r.createElement(`link`),Pd(t,`link`,e),lt(t),r.head.appendChild(t)))}}function see(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ot(r)+`"][href="`+Ot(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=kf(e)}if(!mf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Af(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),lt(r),n.head.appendChild(r)}}}function cee(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=ct(r).hoistableStyles,a=Tf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ef(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Nf(e,n);var c=o=r.createElement(`link`);lt(c),Pd(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,Mf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function lee(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=ct(n).hoistableScripts,i=kf(e),a=r.get(i);a||(a=n.querySelector(Af(i)),a||(e=p({src:e,async:!0},t),(t=mf.get(i))&&Pf(e,t),a=n.createElement(`script`),lt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function uee(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=ct(n).hoistableScripts,i=kf(e),a=r.get(i);a||(a=n.querySelector(Af(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&Pf(e,t),a=n.createElement(`script`),lt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function wf(e,t,n,r){var a=(a=W.current)?gf(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=Tf(n.href),n=ct(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=Tf(n.href);var o=ct(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(Ef(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.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},mf.set(e,n),o||Of(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=kf(n),n=ct(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 Tf(e){return`href="`+Ot(e)+`"`}function Ef(e){return`link[rel="stylesheet"][`+e+`]`}function Df(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Of(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}),Pd(t,`link`,n),lt(t),e.head.appendChild(t))}function kf(e){return`[src="`+Ot(e)+`"]`}function Af(e){return`script[async]`+e}function jf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ot(n.href)+`"]`);if(r)return t.instance=r,lt(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`),lt(r),Pd(r,`style`,a),Mf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Tf(n.href);var o=e.querySelector(Ef(a));if(o)return t.state.loading|=4,t.instance=o,lt(o),o;r=Df(n),(a=mf.get(a))&&Nf(r,a),o=(e.ownerDocument||e).createElement(`link`),lt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Mf(o,n.precedence,e),t.instance=o;case`script`:return o=kf(n.src),(a=e.querySelector(Af(o)))?(t.instance=a,lt(a),a):(r=n,(a=mf.get(o))&&(r=p({},n),Pf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),lt(a),Pd(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,Mf(r,n.precedence,e));return t.instance}function Mf(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 Nf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Pf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Ff=null;function If(e,t,n){if(Ff===null){var r=new Map,i=Ff=new Map;i.set(n,r)}else i=Ff,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[rt]||a[Xe]||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 Lf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Rf(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 zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Bf(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=Tf(r.href),a=t.querySelector(Ef(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Uf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,lt(a);return}a=t.ownerDocument||t,r=Df(r),(i=mf.get(i))&&Nf(r,i),a=a.createElement(`link`),lt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(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=Uf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Vf=0;function Hf(e,t){return e.stylesheets&&e.count===0&&Gf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Gf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Vf===0&&(Vf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Vf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Wf=null;function Gf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wf=new Map,t.forEach(Kf,e),Wf=null,Uf.call(e))}function Kf(e,t){if(!(t.state.loading&4)){var n=Wf.get(e);if(n)var r=n.get(null);else{n=new Map,Wf.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=Uf.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 qf={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Jf(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=ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ze(0),this.hiddenUpdates=ze(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 Yf(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Jf(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Xr(3,null,null,t),e.current=a,a.stateNode=e,t=Xi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ka(a),e}function Xf(e){return e?(e=Jr,e):Jr}function Zf(e,t,n,r,i,a){i=Xf(i),r.context===null?r.context=i:r.pendingContext=i,r=ja(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ma(e,r,t),n!==null&&(pu(n,e,t),Na(n,e,t))}function Qf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $f(e,t){Qf(e,t),(e=e.alternate)&&Qf(e,t)}function ep(e){if(e.tag===13||e.tag===31){var t=Gr(e,67108864);t!==null&&pu(t,e,67108864),$f(e,67108864)}}function tp(e){if(e.tag===13||e.tag===31){var t=du();t=Ge(t);var n=Gr(e,t);n!==null&&pu(n,e,t),$f(e,t)}}var np=!0;function rp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,ap(e,t,n,r)}finally{F.p=a,P.T=i}}function ip(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,ap(e,t,n,r)}finally{F.p=a,P.T=i}}function ap(e,t,n,r){if(np){var i=op(r);if(i===null)wd(e,t,r,sp,n),vp(e,r);else if(bp(i,e,t,n,r))r.stopPropagation();else if(vp(e,r),t&4&&-1<_p.indexOf(e)){for(;i!==null;){var a=ot(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Pe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-De(o);s.entanglements[1]|=c,o&=~c}nd(a),!(Ml&6)&&($l=he()+500,rd(0,!1))}}break;case 31:case 13:s=Gr(a,2),s!==null&&pu(s,a,2),vu(),$f(a,2)}if(a=op(r),a===null&&wd(e,t,r,sp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function op(e){return e=Gt(e),cp(e)}var sp=null;function cp(e){if(sp=null,e=at(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 sp=e,null}function lp(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(ge()){case _e:return 2;case ve:return 8;case ye:case be:return 32;case xe:return 268435456;default:return 32}default:return 32}}var up=!1,dp=null,fp=null,pp=null,mp=new Map,hp=new Map,gp=[],_p=`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 vp(e,t){switch(e){case`focusin`:case`focusout`:dp=null;break;case`dragenter`:case`dragleave`:fp=null;break;case`mouseover`:case`mouseout`:pp=null;break;case`pointerover`:case`pointerout`:mp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:hp.delete(t.pointerId)}}function yp(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=ot(t),t!==null&&ep(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function bp(e,t,n,r,i){switch(t){case`focusin`:return dp=yp(dp,e,t,n,r,i),!0;case`dragenter`:return fp=yp(fp,e,t,n,r,i),!0;case`mouseover`:return pp=yp(pp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return mp.set(a,yp(mp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,hp.set(a,yp(hp.get(a)||null,e,t,n,r,i)),!0}return!1}function xp(e){var t=at(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,Je(e.priority,function(){tp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Je(e.priority,function(){tp(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 Sp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=op(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Wt=r,n.target.dispatchEvent(r),Wt=null}else return t=ot(n),t!==null&&ep(t),e.blockedOn=n,!1;t.shift()}return!0}function Cp(e,t,n){Sp(e)&&n.delete(t)}function wp(){up=!1,dp!==null&&Sp(dp)&&(dp=null),fp!==null&&Sp(fp)&&(fp=null),pp!==null&&Sp(pp)&&(pp=null),mp.forEach(Cp),hp.forEach(Cp)}function Tp(e,n){e.blockedOn===n&&(e.blockedOn=null,up||(up=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,wp)))}var Ep=null;function Dp(e){Ep!==e&&(Ep=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ep===e&&(Ep=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(cp(r||n)===null)continue;break}var a=ot(n);a!==null&&(e.splice(t,3),t-=3,hs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Op(e){function t(t){return Tp(t,e)}dp!==null&&Tp(dp,e),fp!==null&&Tp(fp,e),pp!==null&&Tp(pp,e),mp.forEach(t),hp.forEach(t);for(var n=0;n<gp.length;n++){var r=gp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<gp.length&&(n=gp[0],n.blockedOn===null);)xp(n),n.blockedOn===null&&gp.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[Ze]||null;if(typeof a==`function`)o||Dp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ze]||null)s=o.formAction;else if(cp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Dp(n)}}}function kp(){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 Ap(e){this._internalRoot=e}jp.prototype.render=Ap.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;Zf(n,du(),e,t,null,null)},jp.prototype.unmount=Ap.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zf(e.current,2,null,e,null,null),vu(),t[Qe]=null}};function jp(e){this._internalRoot=e}jp.prototype.unstable_scheduleHydration=function(e){if(e){var t=qe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gp.length&&t!==0&&t<gp[n].priority;n++);gp.splice(n,0,e),n===0&&xp(e)}};var Mp=n.version;if(Mp!==`19.2.7`)throw Error(i(527,Mp,`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 Np={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Pp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pp.isDisabled&&Pp.supportsFiber)try{we=Pp.inject(Np),Te=Pp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Rs,s=zs,c=Bs;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=Yf(e,1,!1,null,null,n,r,null,o,s,c,kp),e[Qe]=t.current,Sd(e),new Ap(t)}})),vn=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=_n()}))(),yn=`__rc_react_root__`;function bn(e,t){let n=t[yn]||(0,vn.createRoot)(t);n.render(e),t[yn]=n}async function xn(e){return Promise.resolve().then(()=>{e[yn]?.unmount(),delete e[yn]})}var Sn=l(gn()),Cn=h.createContext({}),wn=e=>{let{children:t,...n}=e,r=h.useMemo(()=>({motion:n.motion}),[n.motion]);return h.createElement(Cn.Provider,{value:r},t)},Tn=`none`,En=`appear`,Dn=`enter`,On=`leave`,kn=`none`,An=`prepare`,jn=`start`,Mn=`active`,Nn=`prepared`;function Pn(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 Fn(e,t){let n={animationend:Pn(`Animation`,`AnimationEnd`),transitionend:Pn(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var tee=Fn(me(),typeof window<`u`?window:{}),In={};me()&&({style:In}=document.createElement(`div`));var Ln={};function Rn(e){if(Ln[e])return Ln[e];let t=tee[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 In)return Ln[e]=t[r],Ln[e]}}return``}var zn=Rn(`animationend`),Bn=Rn(`transitionend`),Vn=!!(zn&&Bn),Hn=zn||`animationend`,Un=Bn||`transitionend`;function Wn(e,t){return e?typeof e==`object`?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}var nee=(e=>{let t=(0,h.useRef)();function n(t){t&&(t.removeEventListener(Un,e),t.removeEventListener(Hn,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Un,e),r.addEventListener(Hn,e),t.current=r)}return h.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),Gn=me()?h.useLayoutEffect:h.useEffect,Kn=(()=>{let e=h.useRef(null);function t(){nn.cancel(e.current)}function n(r,i=2){t();let a=nn(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return h.useEffect(()=>()=>{t()},[]),[n,t]}),qn=[An,jn,Mn,`end`],Jn=[An,Nn];function Yn(e){return e===`active`||e===`end`}var Xn=((e,t,n)=>{let[r,i]=ve(kn),[a,o]=Kn();function s(){i(An,!0)}let c=t?Jn:qn;return Gn(()=>{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 Zn(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]=Ee(Tn),[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(Tn),D([null,null])}let P=pe(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]=nee(P),I=e=>{switch(e){case En:return{[An]:c,[jn]:d,[Mn]:m};case Dn:return{[An]:l,[jn]:f,[Mn]:g};case On:return{[An]:u,[jn]:p,[Mn]:_};default:return{}}},L=h.useMemo(()=>I(O),[O]),[R,z]=Xn(O,!e,e=>{if(e===`prepare`){let e=L[An];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=Yn(z);let B=(0,h.useRef)(null);Gn(()=>{if(k.current&&B.current===t)return;C(t);let n=k.current;k.current=!0;let o;!n&&t&&i&&(o=En),n&&t&&r&&(o=Dn),(n&&!t&&a||!n&&s&&!t&&a)&&(o=On);let c=I(o);o&&(e||c.prepare)?(T(o),R()):T(Tn),B.current=t},[t]),(0,h.useEffect)(()=>{(O===`appear`&&!i||O===`enter`&&!r||O===`leave`&&!a)&&T(Tn)},[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 $n(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(Cn),d=n(e,u),f=(0,h.useRef)();function p(){return rt(f.current)}let[g,_,v,y,b]=Zn(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()!==Tn},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`:Yn(_)?n=`active`:_===`start`&&(n=`start`);let r=Wn(s,`${x}-${n}`);e=o({...t,className:m(Wn(s,x),{[r]:r&&n,[s]:typeof s==`string`}),style:v},f)}return e},[w.current]);if(Qn(o)&&Be(T)){let e=Ve(T);if(e!==f)return h.cloneElement(T,{ref:Ie(e,f)})}return T});return r.displayName=`CSSMotion`,r}var er=$n(Vn),tr=`keep`,nr=`remove`,rr=`removed`;function ir(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},{...t,key:String(t.key)}}function ar(e=[]){return e.map(ir)}function ree(e=[],t=[]){let n=[],r=0,i=t.length,a=ar(e),o=ar(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:tr}),r+=1,t=!0;break}}t||n.push({...e,status:nr})}),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=tr)})}),n}function or(){return or=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},or.apply(this,arguments)}var sr=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`];function cr(e,t=er){class n extends h.Component{static defaultProps={component:`div`};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:ree(t,ar(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:rr}: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 sr.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,or({},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 lr=cr(Vn),ur=er;function dr(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 fr(e){if(Array.isArray(e))return dr(e)}function pr(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function mr(e,t){if(e){if(typeof e==`string`)return dr(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)?dr(e,t):void 0}}function hr(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gr(e){return fr(e)||pr(e)||mr(e)||hr()}var _r=e=>e!=null,vr=e=>_r(e)&&e!==!1&&e!==``,yr=e=>typeof e==`number`&&!Number.isNaN(e),br=e=>typeof e==`string`,xr=e=>typeof e==`object`&&!!e,Sr=e=>typeof e==`function`,Cr=e=>_r(e)&&Sr(e.then),wr=e=>typeof e!=`object`&&!Sr(e)||e===null,Tr=e=>xr(e)&&`propertyName`in e&&br(e.propertyName),Er=(e,t)=>{let n={...e};return Object.keys(t).forEach(e=>{t[e]._default?n[e]||(n[e]={}):n[e]=Er(n[e],t[e])}),n},Dr=(e={},...t)=>t.filter(e=>!!e).reduce((t,n)=>(Object.keys(n).forEach(r=>{let i=e[r],a=n[r];if(i)if(xr(a))t[r]=Dr(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),{}),Or=(e,...t)=>h.useMemo(()=>Dr.apply(void 0,[e].concat(t)),[e].concat(t)),kr=(...e)=>e.filter(e=>!!e).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),Ar=(...e)=>h.useMemo(()=>kr.apply(void 0,e),[].concat(e)),jr=e=>h.useMemo(()=>e?{root:e}:void 0,[e]),Mr=(e,t)=>Sr(e)?e(t):e,Nr=(e,t,n,r)=>{let i=e.map(e=>e?Mr(e,n):void 0),a=t.map(e=>e?Mr(e,n):void 0),o=Or.apply(void 0,[r].concat(gr(i))),s=Ar.apply(void 0,gr(a));return h.useMemo(()=>r?[Er(o,r),Er(s,r)]:[o,s],[o,s,r])};function Pr(){}var{resetWarned:Fr}=Rt,Ir=h.createContext({}),Lr=()=>{let e=()=>{};return e.deprecated=Pr,e},Rr=`anticon`,zr=[`outlined`,`borderless`,`filled`,`underlined`],Br=h.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:Rr}),{Consumer:Vr}=Br,Hr={};function Ur(e){let t=h.useContext(Br),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t;return{classNames:Hr,styles:Hr,...t[e],getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}}function Wr(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 Gr=`%`;function Kr(e){return e.join(Gr)}var qr=0,Jr=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(Kr(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(Kr(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,qr),qr+=1)}},Yr=`data-token-hash`,Xr=`data-css-hash`,Zr=`__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[Zr]||=e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${Xr}]`)).forEach(t=>{let n=t.getAttribute(Xr);r[n]?t.__cssinjs_instance__===e&&t.parentNode?.removeChild(t):r[n]=!0})}return new Jr(e)}var $r=h.createContext({hashPriority:`low`,cache:Qr(),defaultCache:!0,autoPrefix:!1});function ei(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 ti=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=>!ei(t,e)),this.deleteByPath(this.cache,e)}},ni=0,ri=class{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=ni,e.length===0&&e.length,ni+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},ii=new ti;function ai(e){let t=Array.isArray(e)?e:[e];return ii.has(t)||ii.set(t,new ri(t)),ii.get(t)}var oi=new WeakMap,si={};function ci(e,t){let n=oi;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(si)||n.set(si,e()),n.get(si)}var li=new WeakMap;function ui(e){let t=li.get(e)||``;return t||(Object.keys(e).forEach(n=>{let r=e[n];t+=n,r instanceof ri?t+=r.id:r&&typeof r==`object`?t+=ui(r):t+=r}),t=Wr(t),li.set(e,t)),t}function di(e,t){return Wr(`${t}_${ui(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var fi=me();function q(e){return typeof e==`number`?`${e}px`:e}function pi(e){let{hashCls:t,hashPriority:n=`low`}=e||{};if(!t)return``;let r=`.${t}`;return n===`low`?`:where(${r})`:r}var mi=e=>e!=null;function hi(e,t){let n=typeof t==`function`?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}var gi=(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(),_i=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,scope:a}=n||{};if(!Object.keys(e).length)return``;let o=`${pi({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(``)}}`},vi=(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=gi(e,a);l[n]=typeof t==`number`&&!o?.[e]?`${t}px`:String(t),u[e]=`var(${n})`}}),[u,_i(l,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},yi=new Map;function bi(e,t,n,r,i){let{cache:a}=h.useContext($r),o=Kr([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]),yi.has(o)||(i?.(c),yi.set(o,!0),Promise.resolve().then(()=>{yi.delete(o)})),()=>{a.opUpdate(o,e=>{let[t=0,n]=e||[];return t-1==0?(r?.(n,!1),yi.delete(o),null):[t-1,n]})}),[o]),c}var xi={},Si=`css`,Ci=new Map;function wi(e){Ci.set(e,(Ci.get(e)||0)+1)}function Ti(e,t){typeof document<`u`&&document.querySelectorAll(`style[${Yr}="${e}"]`).forEach(e=>{e.__cssinjs_instance__===t&&e.parentNode?.removeChild(e)})}var Ei=-1;function Di(e,t){Ci.set(e,(Ci.get(e)||0)-1);let n=new Set;Ci.forEach((e,t)=>{e<=0&&n.add(t)}),Ci.size-n.size>Ei&&n.forEach(e=>{Ti(e,t),Ci.delete(e)})}var Oi=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},ki=`token`;function Ai(e,t,n){let{cache:{instanceId:r},container:i,hashPriority:a}=(0,h.useContext)($r),{salt:o=``,override:s=xi,formatToken:c,getComputedToken:l,cssVar:u,nonce:d}=n,f=ci(()=>Object.assign({},...t),t),p=ui(f),m=ui(s),g=ui(u);return bi(ki,[o,e.id,p,m,g],()=>{let t=l?l(f,s,e):Oi(f,s,e,c),n={...t},r=`${o}_${u.prefix}`,i=Wr(r),d=`${Si}-${i}`;n._tokenKey=di(n,r);let[p,m]=vi(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,wi(u.key),[p,d,n,m,u.key]},([,,,,e])=>{Di(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:Xr,prepend:`queue`,attachTo:i,priority:-999};n=hi(n,d);let a=tt(e,Wr(`css-var-${t}`),n);a[Zr]=r,a.setAttribute(Yr,t)})}var ji={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},Mi=`-ms-`,Ni=`-moz-`,Pi=`-webkit-`,Fi=`comm`,Ii=`rule`,Li=`decl`,Ri=`@import`,zi=`@namespace`,Bi=`@keyframes`,Vi=`@layer`,Hi=Math.abs,Ui=String.fromCharCode,Wi=Object.assign;function Gi(e,t){return Xi(e,0)^45?(((t<<2^Xi(e,0))<<2^Xi(e,1))<<2^Xi(e,2))<<2^Xi(e,3):0}function Ki(e){return e.trim()}function qi(e,t){return(e=t.exec(e))?e[0]:e}function Ji(e,t,n){return e.replace(t,n)}function Yi(e,t){return e.indexOf(t)}function Xi(e,t){return e.charCodeAt(t)|0}function Zi(e,t,n){return e.slice(t,n)}function Qi(e){return e.length}function $i(e){return e.length}function ea(e,t){return t.push(e),e}function ta(e,t){return e.map(t).join(``)}function na(e,t){return e.filter(function(e){return!qi(e,t)})}var ra=1,ia=1,aa=0,oa=0,sa=0,ca=``;function la(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ra,column:ia,length:o,return:``,siblings:s}}function ua(e,t){return Wi(la(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function da(e){for(;e.root;)e=ua(e.root,{children:[e]});ea(e,e.siblings)}function fa(){return sa}function pa(){return sa=oa>0?Xi(ca,--oa):0,ia--,sa===10&&(ia=1,ra--),sa}function ma(){return sa=oa<aa?Xi(ca,oa++):0,ia++,sa===10&&(ia=1,ra++),sa}function ha(){return Xi(ca,oa)}function ga(){return oa}function _a(e,t){return Zi(ca,e,t)}function va(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 ya(e){return ra=ia=1,aa=Qi(ca=e),oa=0,[]}function ba(e){return ca=``,e}function xa(e){return Ki(_a(oa-1,wa(e===91?e+2:e===40?e+1:e)))}function Sa(e){for(;(sa=ha())&&sa<33;)ma();return va(e)>2||va(sa)>3?``:` `}function Ca(e,t){for(;--t&&ma()&&!(sa<48||sa>102||sa>57&&sa<65||sa>70&&sa<97););return _a(e,ga()+(t<6&&ha()==32&&ma()==32))}function wa(e){for(;ma();)switch(sa){case e:return oa;case 34:case 39:e!==34&&e!==39&&wa(sa);break;case 40:e===41&&wa(e);break;case 92:ma();break}return oa}function Ta(e,t){for(;ma()&&e+sa!==57&&!(e+sa===84&&ha()===47););return`/*`+_a(t,oa-1)+`*`+Ui(e===47?e:ma())}function Ea(e){for(;!va(ha());)ma();return _a(e,oa)}function Da(e){return ba(Oa(``,null,null,null,[``],e=ya(e),0,[0],e))}function Oa(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=ma()){case 40:m!=108&&Xi(w,d-1)==58?(v++,w+=`(`):w+=xa(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=xa(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Ui(y);break}w+=Sa(m);break;case 92:w+=Ca(ga()-1,7);continue;case 47:switch(ha()){case 42:case 47:ea(Aa(Ta(ma(),ga()),t,n,c),c),(va(m||1)==5||va(ha()||1)==5)&&Qi(w)&&Zi(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+=Ui(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Ji(w,/\f/g,``)),p>0&&(Qi(w)-d||h===0)&&ea(p>32?ja(w+`;`,r,n,d-1,c):ja(Ji(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(ea(C=ka(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)Oa(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Xi(w,3)===110)break;case 108:if(Xi(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Oa(e,C,C,r&&ea(ka(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):Oa(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&&pa()==125)continue}switch(w+=Ui(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:ha()===45&&(w+=xa(ma())),f=ha(),u=d=Qi(b=w+=Ea(ga())),y++;break;case 45:m===45&&Qi(w)==2&&(h=0)}}return a}function ka(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=$i(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=Zi(e,f+1,f=Hi(g=o[h])),b=e;v<m;++v)(b=Ki(g>0?p[v]+` `+y:Ji(y,/&\f/g,p[v])))&&(c[_++]=b);return la(e,t,n,i===0?Ii:s,c,l,u,d)}function Aa(e,t,n,r){return la(e,t,n,Fi,Ui(fa()),Zi(e,2,-2),0,r)}function ja(e,t,n,r,i){return la(e,t,n,Li,Zi(e,0,r),Zi(e,r+1,-1),r,i)}function Ma(e,t,n){switch(Gi(e,t)){case 5103:return Pi+`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 Pi+e+e;case 4855:return Pi+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return Ni+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pi+e+Ni+e+Mi+e+e;case 5936:switch(Xi(e,t+11)){case 114:return Pi+e+Mi+Ji(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Pi+e+Mi+Ji(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Pi+e+Mi+Ji(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return Pi+e+Mi+e+e;case 6165:return Pi+e+Mi+`flex-`+e+e;case 5187:return Pi+e+Ji(e,/(\w+).+(:[^]+)/,Pi+`box-$1$2`+Mi+`flex-$1$2`)+e;case 5443:return Pi+e+Mi+`flex-item-`+Ji(e,/flex-|-self/g,``)+(qi(e,/flex-|baseline/)?``:Mi+`grid-row-`+Ji(e,/flex-|-self/g,``))+e;case 4675:return Pi+e+Mi+`flex-line-pack`+Ji(e,/align-content|flex-|-self/g,``)+e;case 5548:return Pi+e+Mi+Ji(e,`shrink`,`negative`)+e;case 5292:return Pi+e+Mi+Ji(e,`basis`,`preferred-size`)+e;case 6060:return Pi+`box-`+Ji(e,`-grow`,``)+Pi+e+Mi+Ji(e,`grow`,`positive`)+e;case 4554:return Pi+Ji(e,/([^-])(transform)/g,`$1`+Pi+`$2`)+e;case 6187:return Ji(Ji(Ji(e,/(zoom-|grab)/,Pi+`$1`),/(image-set)/,Pi+`$1`),e,``)+e;case 5495:case 3959:return Ji(e,/(image-set\([^]*)/,Pi+"$1$`$1");case 4968:return Ji(Ji(e,/(.+:)(flex-)?(.*)/,Pi+`box-pack:$3`+Mi+`flex-pack:$3`),/space-between/,`justify`)+Pi+e+e;case 4200:if(!qi(e,/flex-|baseline/))return Mi+`grid-column-align`+Zi(e,t)+e;break;case 2592:case 3360:return Mi+Ji(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,qi(e.props,/grid-\w+-end/)})?~Yi(e+(n=n[t].value),`span`)?e:Mi+Ji(e,`-start`,``)+e+Mi+`grid-row-span:`+(~Yi(n,`span`)?qi(n,/\d+/):qi(n,/\d+/)-+qi(e,/\d+/))+`;`:Mi+Ji(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return qi(e.props,/grid-\w+-start/)})?e:Mi+Ji(Ji(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return Ji(e,/(.+)-inline(.+)/,Pi+`$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(Xi(e,t+1)){case 109:if(Xi(e,t+4)!==45)break;case 102:return Ji(e,/(.+:)(.+)-([^]+)/,`$1`+Pi+`$2-$3$1`+Ni+(Xi(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Yi(e,`stretch`)?Ma(Ji(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return Ji(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return Mi+n+`:`+r+s+(i?Mi+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(Xi(e,t+6)===121)return Ji(e,`:`,`:`+Pi)+e;break;case 6444:switch(Xi(e,Xi(e,14)===45?18:11)){case 120:return Ji(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+Pi+(Xi(e,14)===45?`inline-`:``)+`box$3$1`+Pi+`$2$3$1`+Mi+`$2box$3`)+e;case 100:return Ji(e,`:`,`:`+Mi)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ji(e,`scroll-`,`scroll-snap-`)+e}return e}function Na(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Pa(e,t,n,r){switch(e.type){case Vi:if(e.children.length)break;case Ri:case zi:case Li:return e.return=e.return||e.value;case Fi:return``;case Bi:return e.return=e.value+`{`+Na(e.children,r)+`}`;case Ii:if(!Qi(e.value=e.props.join(`,`)))return``}return Qi(n=Na(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Fa(e){var t=$i(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 Ia(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Li:e.return=Ma(e.value,e.length,n);return;case Bi:return Na([ua(e,{value:Ji(e.value,`@`,`@`+Pi)})],r);case Ii:if(e.length)return ta(n=e.props,function(t){switch(qi(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:da(ua(e,{props:[Ji(t,/:(read-\w+)/,`:`+Ni+`$1`)]})),da(ua(e,{props:[t]})),Wi(e,{props:na(n,r)});break;case`::placeholder`:da(ua(e,{props:[Ji(t,/:(plac\w+)/,`:`+Pi+`input-$1`)]})),da(ua(e,{props:[Ji(t,/:(plac\w+)/,`:`+Ni+`$1`)]})),da(ua(e,{props:[Ji(t,/:(plac\w+)/,Mi+`input-$1`)]})),da(ua(e,{props:[t]})),Wi(e,{props:na(n,r)});break}return``})}}var La=`data-ant-cssinjs-cache-path`,Ra=`_FILE_STYLE__`,za,Ba=!0;function Va(){if(!za&&(za={},me())){let e=document.createElement(`div`);e.className=La,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(`:`);za[t]=n});let n=document.querySelector(`style[${La}]`);n&&(Ba=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function Ha(e){return Va(),!!za[e]}function Ua(e){let t=za[e],n=null;if(t&&me())if(Ba)n=Ra;else{let t=document.querySelector(`style[${Xr}="${za[e]}"]`);t?n=t.innerHTML:delete za[e]}return[n,t]}var Wa=`_skip_check_`,Ga=`_multi_value_`;function Ka(e,t){return(t?Na(Da(e),Fa([Ia,Pa])):Na(Da(e),Pa)).replace(/\{%%%\:[^;];}/g,`;`)}function qa(e){return typeof e==`object`&&e&&(Wa in e||Ga in e)}function Ja(e,t,n=`high`){if(!t)return e;let r=pi({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 Ya=(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]=Ya(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)&&!qa(s)){let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith(`@`)?e=!0:l=Ja(l===`&`?``:o,a,c):n&&!a&&(l===`&`||l===``)&&(l=``,u=!0);let[p,m]=Ya(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;!ji[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?.[Ga]&&Array.isArray(t)?t.forEach(t=>{e(o,t)}):mi(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 Xa(e,t){return Wr(`${e.join(`%`)}${t}`)}var Za=`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($r),_=[r||``];m&&_.push(`layer`),_.push(...n);let v=fi;bi(Za,_,()=>{let e=_.join(`|`);if(Ha(e)){let[t,n]=Ua(e);if(t)return[t,n,{},o,s]}let[a,c]=Ya(t(),{hashId:r,hashPriority:l,layer:m?i:void 0,path:n.join(`-`),transformers:d,linters:f}),u=Ka(a,g||!1);return[u,Xa(_,u),c,o,s]},(e,t)=>{let[,n]=e;t&&fi&&$e(n,{mark:Xr,attachTo:u})},e=>{let[t,n,r,,i]=e;if(v&&t!==`_FILE_STYLE__`){let e={mark:Xr,prepend:m?!1:`queue`,attachTo:u,priority:i};e=hi(e,a);let o=[],s=[];Object.keys(r).forEach(e=>{e.startsWith(`@layer`)?o.push(e):s.push(e)}),o.forEach(t=>{tt(Ka(r[t],g||!1),`_layer-${t}`,{...e,prepend:!0})});let c=tt(t,n,e);c[Zr]=p.instanceId,s.forEach(t=>{tt(Ka(r[t],g||!1),`_effect-${t}`,e)})}})}var $a=`cssVar`,eo=(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)($r),{_tokenKey:p}=o,m=Array.isArray(c)?c.join(`@@`):c,g=[...e.path,n,m,p];return bi($a,g,()=>{let[e,o]=vi(t(),n,{prefix:r,unitless:i,ignore:a,scope:c,hashPriority:f,hashCls:s});return[e,o,Xa(g,o),n]},([,,e])=>{fi&&$e(e,{mark:Xr,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:Xr,prepend:`queue`,attachTo:d,priority:-999};r=hi(r,l);let i=tt(e,t,r);i[Zr]=u,i.setAttribute(Yr,n)})},to=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=``){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function no(e){return e.notSplit=!0,e}no([`borderTop`,`borderBottom`]),no([`borderTop`]),no([`borderBottom`]),no([`borderLeft`,`borderRight`]),no([`borderLeft`]),no([`borderRight`]);var ro={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},io=(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}),ao=()=>({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`}}),oo=new to(`loadingCircle`,{"100%":{transform:`rotate(360deg)`}}),so=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),co=(e,t)=>({outline:`${q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),lo=(e,t)=>({"&:focus-visible":co(e,t)}),iee=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},...lo(e),"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),uo=(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}}},fo=e=>({[`.${e}`]:{...ao(),[`.${e} .${e}-icon`]:{display:`block`}},[`.${e}-spin`]:{animationName:oo,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`}}),po=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:`none`,userSelect:`none`,...lo(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}});function mo(e){"@babel/helpers - typeof";return mo=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},mo(e)}function ho(e){if(Array.isArray(e))return e}function go(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 _o(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vo(e,t){return ho(e)||go(e,t)||mr(e,t)||_o()}function yo(e,t){if(mo(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(mo(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bo(e){var t=yo(e,`string`);return mo(t)==`symbol`?t:t+``}function xo(e,t,n){return(t=bo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function So(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 Co(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?So(Object(n),!0).forEach(function(t){xo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wo(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function To(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,bo(r.key),r)}}function Eo(e,t,n){return t&&To(e.prototype,t),n&&To(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Do(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Oo(e,t){return Oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oo(e,t)}function ko(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&&Oo(e,t)}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}function jo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jo=function(){return!!e})()}function Mo(e,t){if(t&&(mo(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Do(e)}function No(e){var t=jo();return function(){var n,r=Ao(e);if(t){var i=Ao(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Mo(this,n)}}var Po=Eo(function e(){wo(this,e)}),Fo=`CALC_UNIT`,Io=new RegExp(Fo,`g`);function Lo(e){return typeof e==`number`?`${e}${Fo}`:e}var Ro=function(e){ko(n,e);var t=No(n);function n(e,r){var i;wo(this,n),i=t.call(this),xo(Do(i),`result`,``),xo(Do(i),`unitlessCssVar`,void 0),xo(Do(i),`lowPriority`,void 0);var a=mo(e);return i.unitlessCssVar=r,e instanceof n?i.result=`(${e.result})`:a===`number`?i.result=Lo(e):a===`string`&&(i.result=e),i}return Eo(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} + ${Lo(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} - ${Lo(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(Io,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(Po),zo=function(e){ko(n,e);var t=No(n);function n(e){var r;return wo(this,n),r=t.call(this),xo(Do(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return Eo(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}(Po),Bo=function(e,t){var n=e===`css`?Ro:zo;return function(e){return new n(e,t)}},Vo=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 Ho(e,t,n,r){var i=Co({},t[e]);r!=null&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=vo(e,2),n=t[0],r=t[1];(i!=null&&i[n]||i!=null&&i[r])&&(i[r]??(i[r]=i?.[n]))});var a=Co(Co({},n),i);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var Uo=typeof CSSINJS_STATISTIC<`u`,Wo=!0;function Go(){var e=[...arguments];if(!Uo)return Object.assign.apply(Object,[{}].concat(e));Wo=!1;var t={};return e.forEach(function(e){mo(e)===`object`&&Object.keys(e).forEach(function(n){Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return e[n]}})})}),Wo=!0,t}var Ko={};function qo(){}var Jo=function(e){var t,n=e,r=qo;return Uo&&typeof Proxy<`u`&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(Wo){var r;(r=t)==null||r.add(n)}return e[n]}}),r=function(e,n){Ko[e]={global:Array.from(t),component:Co(Co({},Ko[e]?.component),n)}}),{token:n,keys:t,flush:r}};function Yo(e,t,n){return typeof n==`function`?n(Go(t,t[e]??{})):n??{}}function Xo(e){return e===`js`?{max:Math.max,min:Math.min}:{max:function(){return`max(${[...arguments].map(function(e){return q(e)}).join(`,`)})`},min:function(){return`min(${[...arguments].map(function(e){return q(e)}).join(`,`)})`}}}var Zo=1e3*60*10,Qo=new(function(){function e(){wo(this,e),xo(this,`map`,new Map),xo(this,`objectIDMap`,new WeakMap),xo(this,`nextID`,0),xo(this,`lastAccessBeat`,new Map),xo(this,`accessBeat`,0)}return Eo(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&&mo(e)===`object`?`obj_${t.getObjectID(e)}`:`${mo(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>Zo&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function $o(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 es=function(){return{}};function ts(e){var t=e.useCSP,n=t===void 0?es: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=Co(Co({},typeof s==`function`?s(e):{}),{},xo({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=Co(Co({},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(gr(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 eo({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=Yo(e,d,t),r=Ho(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=vo(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=$o(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(gi(t,y.prefix)),e.add(gi(t,Vo(d,y.prefix)))}),Bo(T,e)},[T,d,y?.prefix]),D=Xo(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(Co(Co({},A),{},{clientOnly:!1,path:[`Shared`,S]}),function(){return a(v,{prefix:{rootPrefixCls:S,iconPrefixCls:C},csp:w})}),Qa(Co(Co({},A),{},{path:[f,e,C]}),function(){if(l.injectStyle===!1)return[];var n=Jo(v),r=n.token,i=n.flush,a=Yo(d,g,c),u=`.${e}`,f=Ho(d,g,a,{deprecatedTokens:l.deprecatedTokens});a&&mo(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${gi(e,Vo(d,y.prefix))})`});var p=Go(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,Co({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 ns=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function rs(e){return(e+8)/e}function is(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:rs(e)}))}var as=`6.5.0`,os={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`},ss={...os,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},cs={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`},ls=Math.round;function us(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 ds=(e,t,n)=>n===0?e:e/100;function fs(e,t){let n=t||255;return e>n?n:e<0?0:e}var ps=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=cs[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=fs(t.r),this.g=fs(t.g),this.b=fs(t.b),this.a=typeof t.a==`number`?fs(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=ls(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:ls(i(`r`)),g:ls(i(`g`)),b:ls(i(`b`)),a:ls(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=>ls((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=ls(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=ls(this.getHSLSaturation()*100),n=ls(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]=fs(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=ls(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=ls((a+d)*255),this.g=ls((o+d)*255),this.b=ls((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=ls(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=ls(n*(1-t)*255),u=ls(n*(1-t*c)*255),d=ls(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=us(e,ds);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=us(e,ds);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=us(e,(e,t)=>t.includes(`%`)?ls(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},ms=2,hs=.16,gs=.05,_s=.05,vs=.15,ys=5,bs=4,xs=[{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 Ss(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ms*t:Math.round(e.h)+ms*t:n?Math.round(e.h)+ms*t:Math.round(e.h)-ms*t,r<0?r+=360:r>=360&&(r-=360),r}function Cs(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return r=n?e.s-hs*t:t===bs?e.s+hs:e.s+gs*t,r>1&&(r=1),n&&t===ys&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function ws(e,t,n){let r;return r=n?e.v+_s*t:e.v-vs*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ts(e,t={}){let n=[],r=new ps(e),i=r.toHsv();for(let e=ys;e>0;--e){let t=new ps({h:Ss(i,e,!0),s:Cs(i,e,!0),v:ws(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=bs;e+=1){let t=new ps({h:Ss(i,e),s:Cs(i,e),v:ws(i,e)});n.push(t)}return t.theme===`dark`?xs.map(({index:e,amount:r})=>new ps(t.backgroundColor||`#141414`).mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}var Es={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`},Ds=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];Ds.primary=Ds[5];var Os=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];Os.primary=Os[5];var ks=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];ks.primary=ks[5];var As=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];As.primary=As[5];var js=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];js.primary=js[5];var Ms=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];Ms.primary=Ms[5];var Ns=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];Ns.primary=Ns[5];var Ps=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];Ps.primary=Ps[5];var Fs=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];Fs.primary=Fs[5];var Is=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];Is.primary=Is[5];var Ls=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];Ls.primary=Ls[5];var Rs=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];Rs.primary=Rs[5];var zs=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];zs.primary=zs[5];var Bs={red:Ds,volcano:Os,orange:ks,gold:As,yellow:js,lime:Ms,green:Ns,cyan:Ps,blue:Fs,geekblue:Is,purple:Ls,magenta:Rs,grey:zs},Vs=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];Vs.primary=Vs[5];var Hs=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];Hs.primary=Hs[5];var Us=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];Us.primary=Us[5];var Ws=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];Ws.primary=Ws[5];var Gs=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];Gs.primary=Gs[5];var Ks=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];Ks.primary=Ks[5];var qs=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];qs.primary=qs[5];var Js=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];Js.primary=Js[5];var Ys=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];Ys.primary=Ys[5];var Xs=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];Xs.primary=Xs[5];var Zs=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];Zs.primary=Zs[5];var Qs=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];Qs.primary=Qs[5];var $s=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];$s.primary=$s[5];function ec(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 ps(p[1]).mix(new ps(p[3]),50).toHexString(),v={};return ns.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 ps(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`}}var tc=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 nc(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,...tc(r)}}var rc=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},ic=e=>{let t=is(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 ac(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 oc=(e,t)=>new ps(e).setA(t).toRgbString(),sc=(e,t)=>new ps(e).darken(t).toHexString(),cc=e=>{let t=Ts(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]}},lc=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:oc(i,.88),colorTextSecondary:oc(i,.65),colorTextTertiary:oc(i,.45),colorTextQuaternary:oc(i,.25),colorFill:oc(i,.15),colorFillSecondary:oc(i,.06),colorFillTertiary:oc(i,.04),colorFillQuaternary:oc(i,.02),colorBgSolid:oc(i,1),colorBgSolidHover:oc(i,.75),colorBgSolidActive:oc(i,.95),colorBgLayout:sc(r,4),colorBgContainer:sc(r,0),colorBgElevated:sc(r,0),colorBgSpotlight:oc(i,.85),colorBgBlur:`transparent`,colorBorder:sc(r,15),colorBorderDisabled:sc(r,15),colorBorderSecondary:sc(r,6)}};function uc(e){Es.pink=Es.magenta,Bs.pink=Bs.magenta;let t=Object.keys(os).map(t=>{let n=e[t]===Es[t]?Bs[t]:Ts(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,...ec(e,{generateColorPalettes:cc,generateNeutralColorPalettes:lc}),...ic(e.fontSize),...ac(e),...rc(e),...nc(e)}}var dc=ai(uc),fc={token:ss,override:{override:ss},hashed:!0},pc=h.createContext(fc);function mc(e){return e>=0&&e<=255}function hc(e,t){let{r:n,g:r,b:i,a}=new ps(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new ps(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(mc(t)&&mc(a)&&mc(l))return new ps({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new ps({r:n,g:r,b:i,a:1}).toRgbString()}function gc(e){let{override:t,...n}=e,r={...t};Object.keys(ss).forEach(e=>{delete r[e]});let i={...n,...r},a=new ps(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:hc(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:hc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:hc(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:hc(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 _c={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},vc={motionBase:!0,motionUnit:!0},yc={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},bc=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i,...a}=t,o={...r,override:i};return o=gc(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n,...r}=t,i=r;n&&(i=bc({...o,...r},{override:r},n)),o[e]=i}),o};function xc(){let{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:a}=h.useContext(pc),{csp:o,getPrefixCls:s}=h.useContext(Br),c={prefix:i?.prefix??s(),key:i?.key??`css-var-root`},l=`${as}-${t||``}`,u=n||dc,[d,f,p]=Ai(u,[ss,e],{salt:l,override:r,getComputedToken:bc,cssVar:{...c,unitless:_c,ignore:vc,preserve:yc},nonce:o?.nonce});return[u,p,t?f:``,d,c,!!a]}var{genStyleHooks:Sc,genComponentStyleHook:Cc,genSubStyleComponent:wc}=ts({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,h.useContext)(Br);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=xc();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,h.useContext)(Br);return e??{}},getResetStyles:(e,t)=>{let n=iee(e);return[n,{"&":n},fo(t?.prefix.iconPrefixCls??`anticon`)]},getCommonStyle:uo,getCompUnitless:()=>_c}),Tc=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function Ec(e,t){return ns.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 Dc=(e,t)=>{let[n,r]=xc();return Qa({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>fo(e))},Oc=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),kc=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]:{...io(e),position:`relative`,display:`flex`,alignItems:`center`,padding:m,wordWrap:`break-word`,borderRadius:c,borderWidth:q(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}}}},Ac=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:i,colorWarningBg:a,colorError:o,colorErrorBg:s,colorInfo:c,colorInfoBg:l}=e;return{[t]:{"&-success":Oc(r,n,t),"&-info":Oc(l,c,t),"&-warning":Oc(a,i,t),"&-error":{...Oc(s,o,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},jc=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:q(a),backgroundColor:`transparent`,border:`none`,cursor:`pointer`,...lo(e),[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},Mc=Sc(`Alert`,e=>[kc(e),Ac(e),jc(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),Nc=e=>{let{icon:t,type:n,className:r,style:i,successIcon:a,infoIcon:o,warningIcon:s,errorIcon:c}=e,l={success:a??h.createElement(K,null),info:o??h.createElement(fe,null),error:c??h.createElement(re,null),warning:s??h.createElement(le,null)};return h.createElement(`span`,{className:r,style:i},t??l[n])},Pc=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(oe,null):r;return t?h.createElement(`button`,{type:`button`,onClick:i,className:m(`${n}-close-icon`,o),tabIndex:0,style:s,...a},c):null},Fc=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}=Ur(`alert`),H=k(`alert`,r),[U,W]=Mc(H),{onClose:G,afterClose:ee}=xr(_)?_:{},K=t=>{D(!0),(G??e.onClose)?.(t)},te=h.useMemo(()=>e.type===void 0?o?`warning`:`info`:e.type,[e.type,o]),ne=e.variant??j??`outlined`,re=h.useMemo(()=>xr(_)&&_.closeIcon||v?!0:typeof _==`boolean`?_:y!==!1&&_r(y)?!0:!!M,[v,y,_,M]),ie=o&&g===void 0?!0:g,ae={...e,prefixCls:H,variant:ne,type:te,showIcon:ie,closable:re},oe=jr(F),se=jr(l),[ce,le]=Nr([I,C],[L,oe,S,se],{props:ae}),ue=m(H,`${H}-${te}`,`${H}-${ne}`,{[`${H}-with-description`]:!!n,[`${H}-no-icon`]:!ie,[`${H}-banner`]:!!o,[`${H}-rtl`]:A===`rtl`},P,s,c,ce.root,W,U),de=Yt(w,{aria:!0,data:!0}),fe=h.useMemo(()=>xr(_)&&_.closeIcon?_.closeIcon:v||(y===void 0?xr(M)&&M.closeIcon?M.closeIcon:N:y),[y,_,M,v,N]),pe=h.useMemo(()=>{let e=_??M;return xr(e)?Yt(e,{data:!0,aria:!0}):{}},[_,M]);return h.createElement(ur,{visible:!E,motionName:`${H}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:ee??p},({className:t,style:r},i)=>h.createElement(`div`,{id:x,ref:Ie(O,i),"data-show":!E,className:m(ue,t),style:{...le.root,...r},onMouseEnter:u,onMouseLeave:d,onClick:f,role:`alert`,...de},ie?h.createElement(Nc,{className:m(`${H}-icon`,ce.icon),style:le.icon,description:n,icon:e.icon,prefixCls:H,type:te,successIcon:R,infoIcon:z,warningIcon:B,errorIcon:V}):null,h.createElement(`div`,{className:m(`${H}-section`,ce.section),style:le.section},T?h.createElement(`div`,{className:m(`${H}-title`,ce.title),style:le.title},T):null,n?h.createElement(`div`,{className:m(`${H}-description`,ce.description),style:le.description},n):null),b?h.createElement(`div`,{className:m(`${H}-actions`,ce.actions),style:le.actions},b):null,h.createElement(Pc,{className:ce.close,style:le.close,isClosable:re,prefixCls:H,closeIcon:fe,handleClose:K,ariaProps:pe})))});function Ic(e,t,n){return t=Ao(t),Mo(e,jo()?Reflect.construct(t,n||[],Ao(e).constructor):t.apply(e,n))}var Lc=function(e){function t(){var e;return wo(this,t),e=Ic(this,t,arguments),e.state={error:void 0,info:{}},e}return ko(t,e),Eo(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=_r(s)?s:a?.toString(),u=_r(n)?n:c;return a?h.createElement(Fc,{id:r,type:`error`,title:l,description:h.createElement(`pre`,{style:{fontSize:`0.9em`,overflowX:`auto`}},u)}):i}}])}(h.PureComponent),Rc=Fc;Rc.ErrorBoundary=Lc;var zc=(0,h.createContext)(void 0),Bc={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`},Vc={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`},Hc={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},Uc={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`],...Vc},timePickerLocale:{...Hc}},Wc=Uc,Gc="${label} is not a valid ${type}",Kc={locale:`en`,Pagination:Bc,DatePicker:Uc,TimePicker:Hc,Calendar:Wc,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:Gc,method:Gc,array:Gc,object:Gc,number:Gc,date:Gc,boolean:Gc,integer:Gc,float:Gc,regexp:Gc,email:Gc,url:Gc,hex:Gc},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`}},qc={...Kc.Modal},Jc=[],Yc=()=>Jc.reduce((e,t)=>({...e,...t}),Kc.Modal);function Xc(e){if(e){let t={...e};return Jc.push(t),qc=Yc(),()=>{Jc=Jc.filter(e=>e!==t),qc=Yc()}}qc={...Kc.Modal}}function Zc(){return qc}var Qc=(0,h.createContext)(void 0),$c=(e,t)=>{let n=h.useContext(Qc);return[h.useMemo(()=>{let r=t||Kc[e],i=n?.[e]??{};return{...Sr(r)?r():r,...i||{}}},[e,t,n]),h.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?Kc.locale:e},[n])]},el=`internalMark`,tl=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>Xc(t?.Modal),[t]);let i=h.useMemo(()=>({...t,exist:!0}),[t]);return h.createElement(Qc.Provider,{value:i},n)},nl=h.createContext(null),rl=!1;function il(e){return typeof e==`boolean`&&(rl=e),rl}var al=[];function ol(e,t){let[n]=h.useState(()=>me()?document.createElement(`div`):null),r=h.useRef(!1),i=h.useContext(nl),[a,o]=h.useState(al),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 ge(()=>(e?i?i(c):c():l(),l),[e]),ge(()=>{a.length&&(a.forEach(e=>e()),o(al))},[a]),[n,s]}function sl(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var cl=`rc-util-locker-${Date.now()}`,ll=0;function ul(e){let t=!!e,[n]=h.useState(()=>(ll+=1,`${cl}_${ll}`));ge(()=>{if(t){let e=At(document.body).width;tt(`
html body {
overflow-y: hidden;
${sl()?`width: calc(100% - ${e}px);`:``}
}`,n)}else $e(n);return()=>{$e(n)}},[t,n])}var dl=[],fl=200,pl=0,ml=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-pl<fl)return;let t=dl.length;for(let n=t-1;n>=0;--n)dl[n].onEsc({top:n===t-1,event:e})}},hl=()=>{pl=Date.now()};function gl(){window.addEventListener(`keydown`,ml),window.addEventListener(`compositionend`,hl)}function _l(){dl.length===0&&(window.removeEventListener(`keydown`,ml),window.removeEventListener(`compositionend`,hl))}function vl(e,t){let n=we(),r=pe(t),i=()=>{dl.find(e=>e.id===n)||dl.push({id:n,onEsc:r})},a=()=>{dl=dl.filter(e=>e.id!==n)};(0,h.useMemo)(()=>{e?i():e||a()},[e]),(0,h.useEffect)(()=>{if(e)return i(),gl(),()=>{a(),_l()}},[e])}var yl=e=>e===!1?!1:!me()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,bl=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(()=>yl(i));h.useEffect(()=>{let e=yl(i);p(()=>e??null)});let[m,g]=ol(d&&!f,a),_=f??m;ul(r&&n&&me()&&(_===m||_===document.body)),vl(n,c);let v=null;s&&Re(s)&&t&&(v=Ve(s));let y=Le(v,t);if(!d||!me()||f===void 0)return null;let b=_===!1||il(),x=s;return t&&(x=h.cloneElement(s,{ref:y})),h.createElement(nl.Provider,{value:g},b?x:(0,Sn.createPortal)(x,_))}),xl=h.createContext(null);function Sl({children:e,onBatchResize:t}){let n=h.useRef(0),r=h.useRef([]),i=h.useContext(xl),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(xl.Provider,{value:a},e)}var Cl=new Map;function wl(e){e.forEach(e=>{let{target:t}=e;Cl.get(t)?.forEach(e=>e(t))})}var Tl;function El(){return Tl||=new ResizeObserver(wl),Tl}function Dl(e,t){Cl.has(e)||(Cl.set(e,new Set),El().observe(e)),Cl.get(e).add(t)}function Ol(e,t){Cl.has(e)&&(Cl.get(e).delete(t),Cl.get(e).size||(El().unobserve(e),Cl.delete(e)))}function kl(e,t,n,r){let i=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=pe(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?Dl(n,a):e&&o&&(s.current+=1),()=>{n&&Ol(n,a)}},[e,o?s.current:t])}function Al(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=h.useRef(null),s=h.useContext(xl),c=typeof n==`function`,l=c?n(o):n,u=!c&&h.isValidElement(l)&&Re(l),d=Le(u?Ve(l):null,o),f=()=>rt(o.current);return h.useImperativeHandle(t,()=>f()),kl(!r,f,i,(e,t)=>{s?.(e,t,a)}),u?h.cloneElement(l,{ref:d}):l}var jl=h.forwardRef(Al);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=`rc-observer-key`;function Pl(e,t){let{children:n}=e;return(typeof n==`function`?[n]:rn(n)).map((n,r)=>{let i=n?.key||`${Nl}-${r}`;return h.createElement(jl,Ml({},e,{key:i,ref:r===0?t:void 0}),n)})}var Fl=h.forwardRef(Pl);Fl.Collection=Sl;function Il(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 Ll(){return Ll=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},Ll.apply(this,arguments)}function Rl(e){let{prefixCls:t,open:n,zIndex:r,mask:i,motion:a,mobile:o}=e;return i?h.createElement(ur,Ll({},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 zl=h.memo(({children:e})=>e,(e,t)=>t.cache);function Bl(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 Vl(){return Vl=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},Vl.apply(this,arguments)}var Hl=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,[ee,K,te]=h.useMemo(()=>x?[x.mask,x.maskMotion,x.motion]:[p,b,y],[x,p,b,y]),ne=C?.length>0,[re,ie]=h.useState(!C||!ne);ge(()=>{!re&&ne&&s&&ie(!0)},[re,ne,s]);let ae=pe((e,t)=>{z?.(e,t),L()}),oe=Bl(G,M,l,v,F,I,N,P);if(!re)return null;let se={};return B&&(B.includes(`height`)&&H?se.height=H:B.includes(`minHeight`)&&H&&(se.minHeight=H),B.includes(`width`)&&V?se.width=V:B.includes(`minWidth`)&&V&&(se.minWidth=V)),l||(se.pointerEvents=`none`),h.createElement(T,{open:S||W,getContainer:C&&(()=>C(s)),autoDestroy:w,onEsc:n},h.createElement(Rl,{prefixCls:a,open:l,zIndex:D,mask:ee,motion:K,mobile:G}),h.createElement(Fl,{onResize:ae,disabled:!l},e=>h.createElement(ur,Vl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:`${a}-hidden`},te,{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:Ie(e,t,s),className:c,style:{"--arrow-x":`${_.x||0}px`,"--arrow-y":`${_.y||0}px`,...oe,...se,...r,boxSizing:`border-box`,zIndex:D,...o},onMouseEnter:O,onMouseLeave:k,onPointerEnter:A,onClick:f,onPointerDownCapture:j},g&&h.createElement(Il,{prefixCls:a,arrow:g,arrowPos:_,align:v}),h.createElement(zl,{cache:!l&&!d},U))})),E)}),Ul=h.createContext(null),Wl=h.createContext(null);function Gl(e){return e?Array.isArray(e)?e:[e]:[]}function Kl(e,t,n){return h.useMemo(()=>{let r=Gl(t??e),i=Gl(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 ql(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 Jl(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(ql(e[o]?.points,i,r))return`${t}-placement-${o}`}return``}function Yl(e){return e.ownerDocument.defaultView}function Xl(e){let t=[],n=e?.parentElement,r=[`hidden`,`scroll`,`clip`,`auto`];for(;n;){let{overflowX:e,overflowY:i,overflow:a}=Yl(n).getComputedStyle(n);[e,i,a].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function Zl(e,t=1){return Number.isNaN(e)?t:e}function Ql(e){return Zl(parseFloat(e),0)}function $l(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}=Yl(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=Ql(i),m=Ql(a),h=Ql(o),g=Ql(s),_=Zl(Math.round(c.width/d*1e3)/1e3),v=Zl(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=Ql(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 eu(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function tu(e,t){let[n,r]=t||[];return[eu(e.width,n),eu(e.height,r)]}function nu(e=``){return[e[0],e[1]]}function ru(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 iu(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function au(e){return e.join(``)}function ou(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?[]:Xl(t),[t]),f=h.useRef({});e||(f.current={});let p=pe(()=>{if(t&&n&&e&&!s){let e=t,s=e.ownerDocument,c=Yl(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=$l(L,d),U=$l(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 ee=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 K=Zl(Math.round(N/parseFloat(T)*1e3)/1e3),te=Zl(Math.round(M/parseFloat(w)*1e3)/1e3);if(K===0||te===0||nt(n)&&!it(n))return;let{offset:ne,targetOffset:re}=b,[ie,ae]=tu(C,ne),[oe,se]=tu(S,re);S.x-=oe,S.y-=se;let[ce,le]=b.points||[],ue=nu(le),de=nu(ce),fe=ru(S,ue),pe=ru(C,de),me={...b},he=[de,ue],ge=fe.x-pe.x+ie,_e=fe.y-pe.y+ae;function ve(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 ye=ve(ge,_e),be=ve(ge,_e,U),xe=ru(S,[`t`,`l`]),Se=ru(C,[`t`,`l`]),Ce=ru(S,[`b`,`r`]),we=ru(C,[`b`,`r`]),{adjustX:Te,adjustY:Ee,shiftX:De,shiftY:Oe}=b.overflow||{},ke=e=>typeof e==`boolean`?e:e>=0,Ae,je,Me,Ne;function Pe(){Ae=C.y+_e,je=Ae+M,Me=C.x+ge,Ne=Me+N}Pe();let Fe=ke(Ee),Ie=de[0]===ue[0];if(Fe&&de[0]===`t`&&(je>G.bottom||f.current.bt)){let e=_e;Ie?e-=M-P:e=xe.y-we.y-ae;let t=ve(ge,e),n=ve(ge,e,U);t>ye||t===ye&&(!V||n>=be)?(f.current.bt=!0,_e=e,ae=-ae,he=[iu(he[0],0),iu(he[1],0)]):f.current.bt=!1}if(Fe&&de[0]===`b`&&(Ae<G.top||f.current.tb)){let e=_e;Ie?e+=M-P:e=Ce.y-Se.y-ae;let t=ve(ge,e),n=ve(ge,e,U);t>ye||t===ye&&(!V||n>=be)?(f.current.tb=!0,_e=e,ae=-ae,he=[iu(he[0],0),iu(he[1],0)]):f.current.tb=!1}let Le=ke(Te),Re=de[1]===ue[1];if(Le&&de[1]===`l`&&(Ne>G.right||f.current.rl)){let e=ge;Re?e-=N-F:e=xe.x-we.x-ie;let t=ve(e,_e),n=ve(e,_e,U);t>ye||t===ye&&(!V||n>=be)?(f.current.rl=!0,ge=e,ie=-ie,he=[iu(he[0],1),iu(he[1],1)]):f.current.rl=!1}if(Le&&de[1]===`r`&&(Me<G.left||f.current.lr)){let e=ge;Re?e+=N-F:e=Ce.x-Se.x-ie;let t=ve(e,_e),n=ve(e,_e,U);t>ye||t===ye&&(!V||n>=be)?(f.current.lr=!0,ge=e,ie=-ie,he=[iu(he[0],1),iu(he[1],1)]):f.current.lr=!1}me.points=[au(he[0]),au(he[1])],Pe();let ze=De===!0?0:De;typeof ze==`number`&&(Me<U.left&&(ge-=Me-U.left-ie,S.x+F<U.left+ze&&(ge+=S.x-U.left+F-ze)),Ne>U.right&&(ge-=Ne-U.right-ie,S.x>U.right-ze&&(ge+=S.x-U.right+ze)));let Be=Oe===!0?0:Oe;typeof Be==`number`&&(Ae<U.top&&(_e-=Ae-U.top-ae,S.y+P<U.top+Be&&(_e+=S.y-U.top+P-Be)),je>U.bottom&&(_e-=je-U.bottom-ae,S.y>U.bottom-Be&&(_e+=S.y-U.bottom+Be)));let Ve=C.x+ge,He=Ve+N,Ue=C.y+_e,We=Ue+M,Ge=S.x,Ke=Ge+F,qe=S.y,Je=qe+P,Ye=(Math.max(Ve,Ge)+Math.min(He,Ke))/2-Ve,Xe=(Math.max(Ue,qe)+Math.min(We,Je))/2-Ue;o?.(t,me);let Ze=ee.right-C.x-(ge+C.width),Qe=ee.bottom-C.y-(_e+C.height);K===1&&(ge=Math.floor(ge),Ze=Math.floor(Ze)),te===1&&(_e=Math.floor(_e),Qe=Math.floor(Qe)),l({ready:!0,offsetX:ge/K,offsetY:_e/te,offsetR:Ze/K,offsetB:Qe/te,arrowX:Ye/K,arrowY:Xe/te,scaleX:K,scaleY:te,align:me})}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},g=()=>{l(e=>({...e,ready:!1}))};return ge(g,[r]),ge(()=>{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 su(){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 cu(e,t,n,r,i){ge(()=>{if(e&&t&&n){let e=t,a=n,o=Xl(e),s=Xl(a),c=Yl(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 lu(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=Yl(r);i.addEventListener(`pointerdown`,e,!0),i.addEventListener(`mousedown`,t,!0),i.addEventListener(`contextmenu`,t,!0);let a=St(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 uu(){let[e,t]=h.useState(null),[n,r]=h.useState(!1),[i,a]=h.useState(!1),o=h.useRef(null);return[pe(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,pe(e=>{e?(a(!1),o.current&&=(t(o.current),null)):(a(!1),o.current=null)})]}function du(){return du=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},du.apply(this,arguments)}var fu=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=Bl(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(ur,du({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}})})},pu=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=uu(),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=pe(e=>{d.current=e,nt(e)&&s!==e&&c(e)}),p=h.useRef(null),g=su(),_=pe((e,t)=>{p.current=t,g(()=>{n(e)},e.delay)}),v=e=>{g(()=>{p.current?.()||n(!1)},e)},y=pe(e=>{a(e)}),[b,x,S,C,w,T,E,,,D,O]=ou(r,s,o?.target,o?.popupPlacement,o?.builtinPlacements||{},o?.popupAlign,void 0,!1),k=h.useMemo(()=>o?m(Jl(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=pe(()=>(O(),Promise.resolve())),M=h.useRef({}),N=h.useContext(Ul),P=h.useMemo(()=>({registerSubPopup:(e,t)=>{M.current[e]=t,N?.registerSubPopup(e,t)}}),[N]),F=o?.prefixCls;return h.createElement(Wl.Provider,{value:A},e,o&&h.createElement(Ul.Provider,{value:P},h.createElement(Hl,{ref:f,portal:bl,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(fu,{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 mu(e=bl){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,ee=w||!1,K=c===void 0,te=!!W,ne=h.useRef({}),re=h.useContext(Ul),ie=h.useMemo(()=>({registerSubPopup:(e,t)=>{ne.current[e]=t,re?.registerSubPopup(e,t)}}),[re]),ae=h.useContext(Wl),oe=we(),[se,ce]=h.useState(null),le=h.useRef(null),ue=pe(e=>{le.current=e,nt(e)&&se!==e&&ce(e),re?.registerSubPopup(oe,e)}),[de,fe]=h.useState(null),me=h.useRef(null),he=pe(e=>{let t=rt(e);nt(t)&&de!==t&&(fe(t),me.current=t)}),_e={},ve=pe(e=>{let t=de;return t?.contains(e)||St(t)?.host===e||e===t||se?.contains(e)||St(se)?.host===e||e===se||Object.values(ne.current).some(t=>t?.contains(e)||e===t)}),be=V?{...V===!0?{}:V}:null,[xe,Se]=ye(l||!1,c),Ce=xe||!1,Te=h.useMemo(()=>{let e=typeof i==`function`?i({open:Ce}):i;return h.Children.only(e)},[i,Ce]),Ee=Te?.props||{},De=pe(()=>Ce),Oe=pe((e=0)=>({popup:T,target:de,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:be,getPopupContainer:S,getPopupClassNameFromAlign:F,id:oe,onEsc:Ne}));ge(()=>{ae&&L&&de&&!K&&!re&&(Ce?ae.show(Oe(g),De):ae.hide(_))},[Ce,de]);let ke=h.useRef(Ce);ke.current=Ce;let Ae=pe(e=>{(0,Sn.flushSync)(()=>{Ce!==e&&(Se(e),u?.(e),f?.(e))})}),je=su(),Me=(e,t=0)=>{if(c!==void 0){je(()=>{Ae(e)},t);return}if(ae&&L&&K&&!re){e?ae.show(Oe(t),De):ae.hide(t);return}je(()=>{Ae(e)},t)};function Ne({top:e}){e&&Me(!1)}let[Pe,Fe]=h.useState(!1);ge(e=>{(!e||Ce)&&Fe(!0)},[Ce]);let[Ie,Re]=h.useState(null),[ze,Be]=h.useState(null),He=e=>{Be([e.clientX,e.clientY])},[Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e]=ou(Ce,se,R&&ze!==null?ze:de,A,j,M,B,te),[et,tt]=Kl(a,o,s),it=et.has(`click`),at=tt.has(`click`)||tt.has(`contextMenu`),ot=pe(()=>{Pe||$e()});cu(Ce,de,se,ot,()=>{ke.current&&R&&at&&Me(!1)}),ge(()=>{ot()},[ze,A]),ge(()=>{Ce&&!j?.[A]&&ot()},[JSON.stringify(M)]);let st=h.useMemo(()=>m(Jl(j,r,Qe,R),F?.(Qe)),[Qe,F,j,r,R]);h.useImperativeHandle(n,()=>({nativeElement:me.current,popupElement:le.current,forceAlign:ot}));let[ct,lt]=h.useState(0),[ut,dt]=h.useState(0),ft=()=>{if(P&&de){let e=de.getBoundingClientRect();lt(e.width),dt(e.height)}},pt=()=>{ft(),ot()},mt=e=>{Fe(!1),$e(),d?.(e),p?.(e)},ht=()=>new Promise(e=>{ft(),Re(()=>e)});ge(()=>{Ie&&($e(),Ie(),Re(null))},[Ie]);function gt(e,t,n,r,i){_e[e]=(a,...o)=>{(!i||!i())&&(r?.(a),Me(t,n)),Ee[e]?.(a,...o)}}let _t=et.has(`touch`),vt=tt.has(`touch`),yt=h.useRef(!1);(_t||vt)&&(_e.onTouchStart=(...e)=>{yt.current=!0,ke.current&&vt?Me(!1):!ke.current&&_t&&Me(!0),Ee.onTouchStart?.(...e)}),(it||at)&&(_e.onClick=(e,...t)=>{ke.current&&at?Me(!1):!ke.current&&it&&(He(e),Me(!0)),Ee.onClick?.(e,...t),yt.current=!1});let bt=lu(Ce,at||vt,de,se,b,x,ve,Me),xt=et.has(`hover`),Ct=tt.has(`hover`),wt,Tt,Et=()=>yt.current;if(xt){let e=e=>{He(e)};gt(`onMouseEnter`,!0,g,e,Et),gt(`onPointerEnter`,!0,g,e,Et),wt=e=>{(Ce||Pe)&&se?.contains(e.target)&&Me(!0,g)},R&&(_e.onMouseMove=e=>{Ee.onMouseMove?.(e)})}Ct&&(gt(`onMouseLeave`,!1,_,void 0,Et),gt(`onPointerLeave`,!1,_,void 0,Et),Tt=()=>{Me(!1,_)}),et.has(`focus`)&&gt(`onFocus`,!0,v),tt.has(`focus`)&&gt(`onBlur`,!1,y),et.has(`contextMenu`)&&(_e.onContextMenu=(e,...t)=>{ke.current&&tt.has(`contextMenu`)?Me(!1):(He(e),Me(!0)),e.preventDefault(),Ee.onContextMenu?.(e,...t)});let Dt=h.useRef(!1);Dt.current||=C||Ce||Pe;let Ot={...Ee,..._e},kt={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(e=>{G[e]&&(kt[e]=(...t)=>{Ot[e]?.(...t),G[e](...t)})});let At={x:Je,y:Ye};kl(Ce,de,pt);let jt=Le(he,Ve(Te)),Mt=h.cloneElement(Te,{...Ot,...kt,ref:jt});return h.createElement(h.Fragment,null,Mt,Dt.current&&(!ae||!L)&&h.createElement(Ul.Provider,{value:ie},h.createElement(Hl,{portal:e,ref:ue,prefixCls:r,popup:T,className:m(E,!te&&st),style:k,target:de,onMouseEnter:wt,onMouseLeave:Tt,onPointerEnter:wt,zIndex:N,open:Ce,keepDom:Pe,fresh:I,onClick:z,onPointerDownCapture:bt,mask:b,motion:H,maskMotion:U,onVisibleChanged:mt,onPrepare:ht,forceRender:C,autoDestroy:ee,getPopupContainer:S,onEsc:Ne,align:Qe,arrow:be,arrowPos:At,ready:Ue,offsetX:We,offsetY:Ge,offsetR:Ke,offsetB:qe,onAlign:ot,stretch:P,targetWidth:ct/Xe,targetHeight:ut/Ze,mobile:W})))})}var hu=mu(bl);function gu(e){return e&&h.isValidElement(e)&&e.type===h.Fragment}var _u=(e,t,n)=>h.isValidElement(e)?h.cloneElement(e,Sr(n)?n(e.props||{}):n):t;function vu(e,t){return _u(e,e,t)}var yu=({children:e})=>{let{getPrefixCls:t}=h.useContext(Br),n=t();return h.isValidElement(e)?h.createElement(ur,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>vu(e,e=>({className:m(e.className,n),style:{...e.style,...t}}))):e},bu=[null,null];function xu(e){if(bu[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),bu[0]=e,bu[1]=t}return bu[1]}var Su=({children:e})=>h.createElement(pu,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=Sr(r)?r():r,a=xu(n);return{...e,getPopupContainer:null,arrow:!1,popup:h.createElement(yu,{key:t},i),builtinPlacements:a}}},e),Cu=h.createContext(!1),wu=({children:e,disabled:t})=>{let n=h.useContext(Cu);return h.createElement(Cu.Provider,{value:t??n},e)},Tu=h.createContext(void 0),Eu=({children:e,size:t})=>{let n=h.useContext(Tu);return h.createElement(Tu.Provider,{value:t||n},e)};function Du(){return{componentDisabled:(0,h.useContext)(Cu),componentSize:(0,h.useContext)(Tu)}}function Ou(e,t,n){Lr(`ConfigProvider`);let r=e||{},i=r.inherit===!1||!t?{...fc,hashed:t?.hashed??fc.hashed,cssVar:t?.cssVar}:t,a=(0,h.useId)();return Te(()=>{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!Bt(e,r,!0)}))}var ku=h.createContext(!0);function Au(e){let t=h.useContext(ku),{children:n}=e,[,r]=xc(),{motion:i}=r,a=h.useRef(!1);return a.current||=t!==i,a.current?h.createElement(ku.Provider,{value:i},h.createElement(wn,{motion:i},n)):n}var ju=()=>null,Mu=({iconPrefixCls:e,csp:t})=>(Dc(e,t),null),Nu=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],Pu,Fu,Iu,Lu;function Ru(){return Pu||`ant`}function zu(){return Fu||`anticon`}var Bu=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Pu=t),n!==void 0&&(Fu=n),`holderRender`in e&&(Lu=i),r&&(Iu=r)},Vu=()=>({getPrefixCls:(e,t)=>t||(e?`${Ru()}-${e}`:Ru()),getIconPrefixCls:zu,getRootPrefixCls:()=>Pu||Ru(),getTheme:()=>Iu,holderRender:Lu}),Hu=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:ee,breadcrumb:K,masonry:te,menu:ne,pagination:re,input:ie,inputPassword:ae,inputSearch:oe,textArea:se,otp:ce,empty:le,badge:ue,borderBeam:de,radio:fe,rate:pe,ribbon:me,switch:he,transfer:ge,avatar:_e,message:ve,tag:ye,table:be,card:xe,cardMeta:Se,tabs:Ce,timeline:we,timePicker:Ee,upload:De,notification:Oe,tree:ke,colorPicker:Ae,datePicker:je,rangePicker:Me,flex:Ne,wave:Pe,dropdown:Fe,warning:Ie,tour:Le,tooltip:Re,popover:ze,popconfirm:Be,qrcode:Ve,floatButton:He,floatButtonGroup:Ue,variant:We,inputNumber:Ge,treeSelect:Ke,watermark:qe}=e,Je=h.useMemo(()=>xr(l)&&Object.prototype.hasOwnProperty.call(l,`default`)&&l.default?.locale?l.default:l,[l]),Ye=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]),Xe=S||x.iconPrefixCls||`anticon`,Ze=n||x.csp,Qe=Ou(C,x.theme,{prefixCls:Ye(``)}),$e={csp:Ze,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,locale:Je||b,direction:d,space:f,splitter:p,virtual:m,popupMatchSelectWidth:v??_,popupOverflow:y,getPrefixCls:Ye,iconPrefixCls:Xe,theme:Qe,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:ie,inputPassword:ae,inputSearch:oe,textArea:se,otp:ce,layout:B,list:V,mentions:H,modal:U,progress:W,result:G,slider:ee,breadcrumb:K,masonry:te,menu:ne,pagination:re,empty:le,badge:ue,borderBeam:de,radio:fe,rate:pe,ribbon:me,switch:he,transfer:ge,avatar:_e,message:ve,tag:ye,table:be,card:xe,cardMeta:Se,tabs:Ce,timeline:we,timePicker:Ee,upload:De,notification:Oe,tree:ke,colorPicker:Ae,datePicker:je,rangePicker:Me,flex:Ne,wave:Pe,dropdown:Fe,warning:Ie,tour:Le,tooltip:Re,popover:ze,popconfirm:Be,qrcode:Ve,floatButton:He,floatButtonGroup:Ue,variant:We,inputNumber:Ge,treeSelect:Ke,watermark:qe},et={...x};Object.keys($e).forEach(e=>{$e[e]!==void 0&&(et[e]=$e[e])}),Nu.forEach(t=>{let n=e[t];n&&(et[t]=n)}),r!==void 0&&(et.button={autoInsertSpace:r,...et.button});let tt=Te(()=>et,et,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:nt}=h.useContext($r),rt=h.useMemo(()=>({prefixCls:Xe,csp:Ze,layer:nt?`antd`:void 0,zeroRuntime:Qe?.zeroRuntime}),[Xe,Ze,nt,Qe?.zeroRuntime]),it=h.createElement(h.Fragment,null,h.createElement(Mu,{iconPrefixCls:Xe,csp:Ze}),h.createElement(ju,{dropdownMatchSelectWidth:_}),t),at=h.useMemo(()=>pn(Kc.Form?.defaultValidateMessages||{},tt.locale?.Form?.defaultValidateMessages||{},tt.form?.validateMessages||{},c?.validateMessages||{}),[tt,c?.validateMessages]);Object.keys(at).length>0&&(it=h.createElement(zc.Provider,{value:at},it)),Je&&(it=h.createElement(tl,{locale:Je,_ANT_MARK__:el},it)),(Xe||Ze)&&(it=h.createElement(g.Provider,{value:rt},it)),u&&(it=h.createElement(Eu,{size:u},it)),it=h.createElement(Au,null,it),Re?.unique&&(it=h.createElement(Su,null,it));let ot=h.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...i}=Qe||{},a=e&&(!Array.isArray(e)||e.length>0)?ai(e):dc,o={};Object.entries(n||{}).forEach(([e,t])=>{let n={...t};`algorithm`in n&&(n.algorithm===!0?n.theme=a:(Array.isArray(n.algorithm)||Sr(n.algorithm))&&(n.theme=ai(n.algorithm)),delete n.algorithm),o[e]=n});let s={...ss,...t};return{...i,theme:a,token:s,components:o,override:{override:s,...o},cssVar:r}},[Qe]);return C&&(it=h.createElement(pc.Provider,{value:ot},it)),tt.warning&&(it=h.createElement(Ir.Provider,{value:tt.warning},it)),w!==void 0&&(it=h.createElement(wu,{disabled:w},it)),h.createElement(Br.Provider,{value:tt},it)},Uu=e=>{let t=h.useContext(Br),n=h.useContext(Qc);return h.createElement(Hu,{parentContext:t,legacyLocale:n,...e})};Uu.ConfigContext=Br,Uu.SizeContext=Tu,Uu.config=Bu,Uu.useConfig=Du,Object.defineProperty(Uu,"SizeContext",{get:()=>Tu});var Wu=Cc(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=Tc(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(`,`)}}}}}),Gu=`ant-wave-target`,Ku=e=>e?br(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 qu(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&Ku(n[t])?n[t]:[r,i,a].find(Ku)??null}function Ju(e){return Number.isNaN(e)?0:e}var Yu=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=h.useRef(null),{getPrefixCls:o}=h.useContext(Br),[s]=Tc(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(qu(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:Ju(-Number.parseFloat(r))),_(t?n.offsetTop:Ju(-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=>Ju(Number.parseFloat(e))))}if(h.useEffect(()=>{if(n){let e=nn(()=>{T(),C(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(T),t.observe(n)),()=>{nn.cancel(e),t?.disconnect()}}},[n]),!S)return null;let E=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(Gu);return h.createElement(ur,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||Tr(t)&&t.propertyName===`opacity`){let e=a.current?.parentElement;xn(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>h.createElement(`div`,{ref:Ie(a,n),className:m(t,e,{"wave-quick":E}),style:w}))},Xu=(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),bn(h.createElement(Yu,{...t,target:e}),r)},Zu=(e,t,n,r)=>{let{wave:i}=h.useContext(Br),[,a,o]=xc(),s=pe(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${Gu}`)||c,{showEffect:u}=i||{};(u||Xu)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=h.useRef(null);return h.useEffect(()=>()=>{nn.cancel(c.current)},[]),e=>{nn.cancel(c.current),c.current=nn(()=>{s(e)})}},Qu={click:`click`,mousedown:`mousedown`,mouseup:`mouseup`,pointerdown:`pointerdown`,pointerup:`pointerup`},$u=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a,wave:o}=(0,h.useContext)(Br),s=(0,h.useRef)(null),c=a(`wave`),l=Zu(s,m(c,Wu(c)),r,i);return h.useEffect(()=>{let e=s.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!it(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 Qu?Qu[r]:`click`;return e.addEventListener(i,t,!0),()=>{e.removeEventListener(i,t,!0)}},[n,o?.triggerType]),h.isValidElement(t)?vu(t,{ref:Re(t)?Ie(Ve(t),s):s}):t??null},ed=e=>{let t=h.useContext(Tu);return h.useMemo(()=>e?br(e)?e??t:Sr(e)?e(t):t:t,[e,t])};function td(...e){return e.find(e=>e!==void 0)}var nd=e=>{let{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:i,defaultAllowClear:a,componentName:o}=e;return(0,h.useMemo)(()=>t??r??a?{clearIcon:td(xr(t)?t?.clearIcon:n,xr(r)?r?.clearIcon:i,h.createElement(re,null)),disabled:(xr(t)?t?.disabled:void 0)??(xr(r)?r?.disabled:void 0)}:!1,[t,n,r,i,a])},rd=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},id={},ad=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!_r(e)&&!_r(t))return null;let n={closeIcon:typeof t!=`boolean`&&_r(t)?t:void 0};return xr(e)&&(n={...n,...e}),n},od=(e,t,n)=>e===!1?!1:e?an(n,t,e):t===!1?!1:t?an(n,t):n.closable?n:!1,sd=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i,...a}=e,o=i,s=Yt(a,!0);return _r(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]},cd=(e,t,n=id,r=`Close`)=>{let i=ad(e?.closable,e?.closeIcon),a=ad(t?.closable,t?.closeIcon),o={closeIcon:h.createElement(oe,null),...n},s=od(i,a,o),c=typeof s==`boolean`?!1:!!s?.disabled;if(s===!1)return[!1,null,c,{}];let[l,u]=sd(s,o,r);return[!0,l,c,u]},ld=(e,t,n=id)=>{let[r]=$c(`global`,Kc.global);return h.useMemo(()=>cd(e,t,{closeIcon:h.createElement(oe,null),...n},r.close),[e,t,n,r.close])},ud=()=>h.useReducer(e=>e+1,0),dd=(e,t)=>{let n={};return xr(e)&&(n=e),typeof e==`boolean`&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},fd=(e,t,n,r)=>(0,h.useMemo)(()=>{let i=dd(e,r),a=dd(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]),pd=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]},md=e=>e===`horizontal`||e===`vertical`,hd=(e,t,n)=>(0,h.useMemo)(()=>{let r=md(e),i;return i=r?e:typeof t==`boolean`?t?`vertical`:`horizontal`:md(n)?n:`horizontal`,[i,i===`vertical`]},[n,e,t]),gd=()=>{let[e,t]=h.useState([]);return[e,h.useCallback(e=>(t(t=>[].concat(gr(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]},_d=(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),vd=(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)}}):_d(n,e)}),yd=e=>{let t=h.useRef(e),[,n]=ud();return[()=>t.current,e=>{t.current=e,n()}]},bd=h.createContext(void 0),xd=100,Sd=xd*10,Cd={Modal:xd,Drawer:xd,Popover:xd,Popconfirm:xd,Tooltip:xd,Tour:xd,FloatButton:xd},wd={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Td=e=>e in Cd,Ed=(e,t)=>{let[,n]=xc(),r=h.useContext(bd),i=Td(e),a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+Cd[e]:o+=wd[e],a=[r===void 0?t:o,o]}return a},aee=Sc([`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}),Dd=h.createContext(null),Od=(e,t)=>{let n=h.useContext(Dd),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}},kd=e=>{let{children:t}=e;return h.createElement(Dd.Provider,{value:null},t)},Ad=e=>{let{children:t,...n}=e;return h.createElement(Dd.Provider,{value:h.useMemo(()=>n,[n])},t)},jd=e=>{let{getPrefixCls:t,direction:n}=h.useContext(Br),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d,...f}=e,[p,g]=hd(a,d,i),_=ed(e=>r??e),v=t(`space-compact`,s),[y]=aee(v),b=m(v,y,{[`${v}-rtl`]:n===`rtl`,[`${v}-block`]:o,[`${v}-vertical`]:g},c,l),x=h.useContext(Dd),S=rn(u),C=h.useMemo(()=>S.map((e,t)=>{let n=e?.key||`${v}-item-${t}`;return h.createElement(Ad,{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)},Md=h.createContext(void 0),Nd=e=>{let{getPrefixCls:t,direction:n}=h.useContext(Br),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=xc(),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(Md.Provider,{value:i},h.createElement(`div`,{...o,className:u}))},Pd=/^[\u4E00-\u9FA5]{2}$/,Fd=Pd.test.bind(Pd);function Id(e){return e===`danger`?{danger:!0}:{type:e}}function Ld(e){return e===`text`||e===`link`}function Rd(e,t,n,r){if(!vr(e))return;let i=t?` `:``;return!br(e)&&!yr(e)&&br(e.type)&&Fd(e.props.children)?vu(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}}):br(e)?h.createElement(`span`,{className:r,style:n},Fd(e)?e.split(``).join(i):e):gu(e)?h.createElement(`span`,{className:r,style:n},e):vu(e,e=>({...e,className:m(e.className,r)||void 0,style:{...e.style,...n}}))}function zd(e,t,n,r){let i=!1,a=[];return h.Children.forEach(e,e=>{let t=br(e)||yr(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=>Rd(e,t,n,r))}[`default`,`primary`,`danger`].concat(gr(ns));var Bd=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 Vd(){return Vd=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},Vd.apply(this,arguments)}var Hd=h.forwardRef((e,t)=>h.createElement(W,Vd({},e,{ref:t,icon:Bd.default}))),Ud=(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)}),Wd=(0,h.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=m(`${n}-loading-icon`,r);return h.createElement(Ud,{prefixCls:n,className:o,style:i,ref:t},h.createElement(Hd,{className:a}))}),Gd=()=>({width:0,opacity:0,transform:`scale(0)`}),Kd=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),qd=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?h.createElement(Wd,{prefixCls:t,className:i,style:a}):h.createElement(ur,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:Gd,onAppearActive:Kd,onEnterStart:Gd,onEnterActive:Kd,onLeaveStart:Kd,onLeaveActive:Gd},({className:e,style:n},r)=>{let o={...a,...n};return h.createElement(Wd,{prefixCls:t,className:m(i,e),style:o,ref:r})})},Jd=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`}}}},Yd=e=>({animationDuration:e,animationFillMode:`both`}),Xd=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
${a}${e}-enter,
${a}${e}-appear
`]:{...Yd(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...Yd(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 to(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),Qd=new to(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),$d=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[Xd(r,Zd,Qd,e.motionDurationMid,t),{[`
${i}${r}-enter,
${i}${r}-appear
`]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},ef=new to(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),tf=new to(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),nf=new to(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),rf=new to(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),af=new to(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),of=new to(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),sf={"move-up":{inKeyframes:new to(`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 to(`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:ef,outKeyframes:tf},"move-left":{inKeyframes:nf,outKeyframes:rf},"move-right":{inKeyframes:af,outKeyframes:of}},cf=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=sf[t];return[Xd(r,i,a,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},lf=new to(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),uf=new to(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),df=new to(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),ff=new to(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),pf=new to(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),mf=new to(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),hf=new to(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),gf=new to(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),_f={"slide-up":{inKeyframes:lf,outKeyframes:uf},"slide-down":{inKeyframes:df,outKeyframes:ff},"slide-left":{inKeyframes:pf,outKeyframes:mf},"slide-right":{inKeyframes:hf,outKeyframes:gf}},vf=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=_f[t];return[Xd(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}}]},yf=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),bf=new to(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),xf=new to(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),Sf=new to(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Cf=new to(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),oee=new to(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),see=new to(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),cee=new to(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),lee=new to(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),uee=new to(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),wf=new to(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Tf=new to(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Ef=new to(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Df={zoom:{inKeyframes:bf,outKeyframes:xf},"zoom-big":{inKeyframes:Sf,outKeyframes:Cf},"zoom-big-fast":{inKeyframes:Sf,outKeyframes:Cf},"zoom-left":{inKeyframes:cee,outKeyframes:lee},"zoom-right":{inKeyframes:uee,outKeyframes:wf},"zoom-up":{inKeyframes:oee,outKeyframes:see},"zoom-down":{inKeyframes:Tf,outKeyframes:Ef}},Of=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Df[t];return[Xd(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}}]},kf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Af=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}},kf(`${t}-primary`,i),kf(`${t}-danger`,a)]}},jf=e=>Math.round(Number(e||0)),Mf=e=>{if(e instanceof ps)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},Nf=class extends ps{constructor(e){super(Mf(e))}toHsbString(){let e=this.toHsb(),t=jf(e.s*100),n=jf(e.b*100),r=jf(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 Nf?e:new Nf(e))(`#1677ff`);var Pf=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,Ff=(e,t)=>e?Pf(e,t):``,If=function(){function e(t){if(wo(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 Nf(this.colors[0].color.metaColor)):this.metaColor=new Nf(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Eo(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return Ff(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()}}])}(),Lf=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 Rf(){return Rf=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},Rf.apply(this,arguments)}var zf=h.forwardRef((e,t)=>h.createElement(W,Rf({},e,{ref:t,icon:Lf.default})));function Bf(){return Bf=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},Bf.apply(null,arguments)}var Vf=()=>({height:0,opacity:0}),Hf=e=>({height:e?.scrollHeight??0,opacity:+!!e}),Uf=e=>({height:e?.offsetHeight??0}),Wf=(e,t)=>t?.deadline===!0||Tr(t)&&t.propertyName===`height`,Gf=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:Vf,onEnterStart:Vf,onAppearActive:Hf,onEnterActive:Hf,onLeaveStart:Uf,onLeaveActive:Vf,onAppearEnd:Wf,onEnterEnd:Wf,onLeaveEnd:Wf,motionDeadline:500}),Kf=(e,t,n)=>n===void 0?`${e}-${t}`:n,qf=e=>e instanceof If?e:new If(e),Jf=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new Nf(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},Yf=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Go(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Xf=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??rs(t),a=e.contentLineHeightSM??rs(n),o=e.contentLineHeightLG??rs(r),s=Jf(new If(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=ns.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${q(e.controlOutlineWidth)} 0 ${hc(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}},Zf=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=Tc(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}}}},ns.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}}}]}},Qf=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`,...yf(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:ao(),"> a":{color:`currentColor`},"&:not(:disabled)":lo(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()}}}}}},$f=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),ep=(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:`${q(c)} ${q(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:$f(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},tp=e=>ep(Go(e,{fontSize:e.contentFontSize}),e.componentCls),np=e=>ep(Go(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),rp=e=>ep(Go(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),ip=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},ap=Sc(`Button`,e=>{let t=Yf(e);return[Qf(t),tp(t),np(t),rp(t),ip(t),Zf(t),Af(t)]},Xf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function op(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 sp(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 cp(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...op(e,a,t,i),...sp(i,a,t)}}}function lp(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 up(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 dp(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...lp(e,t,e.componentCls),...up(e.componentCls,t)}}}var fp=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]=Tc(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})`}}]},pp=wc([`Button`,`compact`],e=>{let t=Yf(e);return[cp(t),dp(t),fp(t)]},Xf);function mp(e){if(xr(e)){let t=e?.delay;return t=yr(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var hp={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},gp=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=rn(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}=Ur(`button`),H=l||z||`default`,[U,W]=(0,h.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=hp[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,ee]=(0,h.useMemo)(()=>b&&W===`solid`?[U,`outlined`]:[U,W],[U,W,b]),K=G===`danger`,te=K?`dangerous`:G,ne=E??N??!0,re=j(`btn`,i),[ie,ae]=ap(re),oe=(0,h.useContext)(Cu),se=d??oe,ce=(0,h.useContext)(Md),le=(0,h.useMemo)(()=>mp(r),[r]),[ue,de]=(0,h.useState)(le.loading),[fe,pe]=(0,h.useState)(!1),me=(0,h.useRef)(null),he=Le(t,me),_e=k.length===1&&!_&&!Ld(ee),ve=(0,h.useRef)(!0);h.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),ge(()=>{let e=null;le.delay>0?e=setTimeout(()=>{e=null,de(!0)},le.delay):de(le.loading);function t(){e&&=(clearTimeout(e),null)}return t},[le.delay,le.loading]),(0,h.useEffect)(()=>{if(!me.current||!ne)return;let e=me.current.textContent||``;_e&&Fd(e)?fe||pe(!0):fe&&pe(!1)}),(0,h.useEffect)(()=>{D&&me.current&&me.current.focus()},[]);let ye=h.useCallback(t=>{if(ue||se){t.preventDefault();return}e.onClick?.((`href`in e,t))},[e.onClick,ue,se]),{compactSize:be,compactItemClassnames:xe}=Od(re,M),Se=ed(e=>u??be??ce??e),Ce=ue?`loading`:_,we=y??v??`start`,Te=Wt(O,[`navigate`]),Ee={...e,type:A,color:G,variant:ee,danger:K,shape:H,size:Se,disabled:se,loading:ue,iconPlacement:we},De=jr(F),Oe=jr(T),[ke,Ae]=Nr([n?void 0:I,C],[n?void 0:L,De,w,Oe],{props:Ee}),je=m(re,ie,ae,{[`${re}-${H}`]:H!=="default"&&H!==`square`&&H,[`${re}-${A}`]:A,[`${re}-dangerous`]:c,[`${re}-color-${te}`]:te,[`${re}-variant-${ee}`]:ee,[`${re}-lg`]:Se===`large`,[`${re}-sm`]:Se===`small`,[`${re}-icon-only`]:!g&&g!==0&&!!Ce,[`${re}-background-ghost`]:b&&!Ld(ee),[`${re}-loading`]:ue,[`${re}-two-chinese-chars`]:fe&&ne&&!ue,[`${re}-block`]:x,[`${re}-rtl`]:M===`rtl`,[`${re}-icon-end`]:we===`end`},xe,f,p,P,ke.root),Me={className:ke.icon,style:Ae.icon},Ne=e=>h.createElement(Ud,{prefixCls:re,...Me},e),Pe=h.createElement(qd,{existIcon:!!_,prefixCls:re,loading:ue,mount:ve.current,...Me}),Fe=xr(r)&&r.icon||R,Ie;Ie=_&&!ue?Ne(_):r&&Fe?Ne(Fe):Pe;let Re=vr(g)?zd(g,_e&&ne,Ae.content,ke.content):null;if(Te.href!==void 0)return h.createElement(`a`,{...Te,className:m(je,{[`${re}-disabled`]:se}),href:se?void 0:Te.href,style:Ae.root,onClick:ye,ref:he,tabIndex:se?-1:0,"aria-disabled":se},Ie,Re);let ze=h.createElement(`button`,{...O,type:S,className:je,style:Ae.root,onClick:ye,disabled:se,ref:he},Ie,Re,xe&&h.createElement(pp,{prefixCls:re}));return Ld(ee)||(ze=h.createElement($u,{component:`Button`,disabled:ue},ze)),ze});gp.Group=Nd,gp.__ANT_BUTTON=!0;var _p=gp,vp=`RC_FORM_INTERNAL_HOOKS`,yp=()=>{Rt(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},bp=h.createContext({getFieldValue:yp,getFieldsValue:yp,getFieldError:yp,getFieldWarning:yp,getFieldsError:yp,isFieldsTouched:yp,isFieldTouched:yp,isFieldValidating:yp,isFieldsValidating:yp,resetFields:yp,setFields:yp,setFieldValue:yp,setFieldsValue:yp,validateFields:yp,submit:yp,getInternalHooks:()=>(yp(),{dispatch:yp,initEntityValue:yp,registerField:yp,useSubscribe:yp,setInitialValues:yp,destroyForm:yp,setCallbacks:yp,registerWatch:yp,getFields:yp,setValidateMessages:yp,setPreserve:yp,getInitialValue:yp})}),xp=h.createContext(null);function Sp(e){return e==null?[]:Array.isArray(e)?e:[e]}function Cp(e){return e&&!!e._init}function wp(){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 Tp=wp(),Ep=/%[sdj%]/g,Dp=()=>{};function Op(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 kp(e,...t){let n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Ep,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 Ap(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function jp(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Ap(t)&&typeof e==`string`&&!e)}function Mp(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 Np(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 Pp(e){let t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}var dee=class extends Error{errors;fields;constructor(e,t){super(`Async Validation Error`),this.errors=e,this.fields=t}};function fee(e,t,n,r,i){if(t.first){let t=new Promise((t,a)=>{Np(Pp(e),n,e=>(r(e),e.length?a(new dee(e,Op(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 dee(l,Op(l))):t(i)};o.length||(r(l),t(i)),o.forEach(t=>{let r=e[t];a.indexOf(t)===-1?Mp(r,n,d):Np(r,n,d)})});return u.catch(e=>e),u}function pee(e){return!!(e&&e.message!==void 0)}function mee(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 hee(e,t){return n=>{let r;return r=e.fullFields?mee(t,e.fullFields):t[n.field||e.fullField],pee(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 gee(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 Fp=`enum`,_ee=(e,t,n,r,i)=>{e[Fp]=Array.isArray(e[Fp])?e[Fp]:[],e[Fp].indexOf(t)===-1&&r.push(kp(i.messages[Fp],e.fullField,e[Fp].join(`, `)))},vee=(e,t,n,r,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(kp(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(kp(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},yee=(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(kp(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(kp(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(kp(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(kp(i.messages[u].range,e.fullField,e.min,e.max))},bee=(e,t,n,r,i,a)=>{e.required&&(!n.hasOwnProperty(e.field)||jp(t,a||e.type))&&r.push(kp(i.messages.required,e.fullField))},Ip,xee=(()=>{if(Ip)return Ip;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 Ip=RegExp(`(?:^${l}$)`,`i`),Ip}),Lp={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},Rp={integer(e){return Rp.number(e)&&parseInt(e,10)===e},float(e){return Rp.number(e)&&!Rp.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`&&!Rp.array(e)},method(e){return typeof e==`function`},email(e){return typeof e==`string`&&e.length<=320&&!!e.match(Lp.email)},tel(e){return typeof e==`string`&&e.length<=32&&!!e.match(Lp.tel)},url(e){return typeof e==`string`&&e.length<=2048&&!!e.match(xee())},hex(e){return typeof e==`string`&&!!e.match(Lp.hex)}},zp={required:bee,whitespace:(e,t,n,r,i)=>{(/^\s+$/.test(t)||t===``)&&r.push(kp(i.messages.whitespace,e.fullField))},type:(e,t,n,r,i)=>{if(e.required&&t===void 0){bee(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?Rp[o](t)||r.push(kp(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(kp(i.messages.types[o],e.fullField,e.type))},range:yee,enum:_ee,pattern:vee},See=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jp(t)&&!e.required)return n();zp.required(e,t,r,a,i)}n(a)},Cee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();zp.required(e,t,r,a,i,`array`),t!=null&&(zp.type(e,t,r,a,i),zp.range(e,t,r,a,i))}n(a)},wee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jp(t)&&!e.required)return n();zp.required(e,t,r,a,i),t!==void 0&&zp.type(e,t,r,a,i)}n(a)},Tee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jp(t,`date`)&&!e.required)return n();if(zp.required(e,t,r,a,i),!jp(t,`date`)){let n;n=t instanceof Date?t:new Date(t),zp.type(e,n,r,a,i),n&&zp.range(e,n.getTime(),r,a,i)}}n(a)},Eee=`enum`,Dee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jp(t)&&!e.required)return n();zp.required(e,t,r,a,i),t!==void 0&&zp[Eee](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(jp(t)&&!e.required)return n();zp.required(e,t,r,a,i),t!==void 0&&(zp.type(e,t,r,a,i),zp.range(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(jp(t)&&!e.required)return n();zp.required(e,t,r,a,i),t!==void 0&&(zp.type(e,t,r,a,i),zp.range(e,t,r,a,i))}n(a)},Aee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jp(t)&&!e.required)return n();zp.required(e,t,r,a,i),t!==void 0&&zp.type(e,t,r,a,i)}n(a)},jee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),jp(t)&&!e.required)return n();zp.required(e,t,r,a,i),t!==void 0&&(zp.type(e,t,r,a,i),zp.range(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(jp(t)&&!e.required)return n();zp.required(e,t,r,a,i),t!==void 0&&zp.type(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(jp(t,`string`)&&!e.required)return n();zp.required(e,t,r,a,i),jp(t,`string`)||zp.pattern(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(jp(t)&&!e.required)return n();zp.required(e,t,r,a,i),jp(t)||zp.type(e,t,r,a,i)}n(a)},Fee=(e,t,n,r,i)=>{let a=[],o=Array.isArray(t)?`array`:typeof t;zp.required(e,t,r,a,i,o),n(a)},Iee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jp(t,`string`)&&!e.required)return n();zp.required(e,t,r,a,i,`string`),jp(t,`string`)||(zp.type(e,t,r,a,i),zp.range(e,t,r,a,i),zp.pattern(e,t,r,a,i),e.whitespace===!0&&zp.whitespace(e,t,r,a,i))}n(a)},Bp=(e,t,n,r,i)=>{let a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(jp(t,a)&&!e.required)return n();zp.required(e,t,r,o,i,a),jp(t,a)||zp.type(e,t,r,o,i)}n(o)},Vp={string:Iee,method:Aee,number:jee,boolean:wee,regexp:Pee,integer:kee,float:Oee,array:Cee,object:Mee,enum:Dee,pattern:Nee,date:Tee,url:Bp,hex:Bp,email:Bp,tel:Bp,required:Fee,any:See},Lee=class e{static register=function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);Vp[e]=t};static warning=Dp;static messages=Tp;static validators=Vp;rules=null;_messages=Tp;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=gee(wp(),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=Op(t),o(t,n)):o(null,i)}if(a.messages){let e=this.messages();e===Tp&&(e=wp()),gee(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 fee(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(hee(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,kp(a.messages.required,r.field))]):d=[].concat(r.message).map(hee(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&&!Vp.hasOwnProperty(e.type))throw Error(kp(`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`?Vp.required:Vp[this.getType(e)]||void 0}},Hp="'${name}' is not a valid ${type}",Up={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:Hp,method:Hp,array:Hp,object:Hp,number:Hp,date:Hp,boolean:Hp,integer:Hp,float:Hp,regexp:Hp,email:Hp,tel:Hp,url:Hp,hex:Hp},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}"}},Wp=Lee;function Ree(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var Gp=`CODE_LOGIC_ERROR`;async function Kp(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,Wp.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(Gp)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new Wp({[e]:[a]}),c=pn(Up,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===Gp?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)=>Kp(`${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`?Ree(e,u):e)}function zee(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(()=>{Rt(!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`,Rt(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 Kp(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>Kp(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?Vee(e):Bee(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function Bee(e){return Promise.all(e).then(e=>[].concat(...e))}async function Vee(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 qp(e){return Sp(e)}function Jp(e,t){let n={};return t.forEach(t=>{let r=on(e,t);n=cn(n,t,r)}),n}function Yp(e,t,n=!1){return e&&e.some(e=>Xp(t,e,n))}function Xp(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function Hee(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 Uee(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function Wee(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 Gee=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Kee=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=>!Xp(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;Gee(()=>{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 qee(){return new Promise(e=>{Gee(()=>{nn(()=>{e()})})})}function Zp(){return Zp=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},Zp.apply(this,arguments)}var Qp=[],$p=[];function em(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var Jee=class extends h.PureComponent{static contextType=bp;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Qp;warnings=$p;constructor(e){if(super(e),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(vp);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(vp);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,qp(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};Bt(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&&Yp(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!Bt(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Qp,this.warnings=$p,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Qp,this.warnings=$p,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&em(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||Qp),`warnings`in i&&(this.warnings=i.warnings||$p),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&Yp(t,s,!0)){this.reRender();return}if(r&&!s.length&&em(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(qp).some(e=>Yp(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&em(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 qee();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?Sp(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=zee(t,n,l,e,i,s);return u.catch(e=>e).then((e=Qp)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=Qp})=>{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=Qp,this.warnings=$p,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(vp);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=rn(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 on(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(vp),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):Uee(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},Sp(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)):(Rt(!n,"`children` of Field is not validate ReactElement."),i=n),h.createElement(h.Fragment,{key:e},i)}};function tm({name:e,...t}){let n=h.useContext(bp),r=h.useContext(xp),i=e===void 0?void 0:qp(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),h.createElement(Jee,Zp({key:o,name:i,isListField:a},t,{fieldContext:n}))}function nm({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=h.useContext(bp),s=h.useContext(xp),c=h.useRef({keys:[],id:0}).current,l=h.useMemo(()=>[...qp(o.prefixName)||[],...qp(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(xp.Provider,{value:d},h.createElement(bp.Provider,{value:u},h.createElement(tm,{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=Wee(c.keys,e,n),t(Wee(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)}))):(Rt(!1,`Form.List only accepts function as children.`),null)}function Yee(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 rm=`__@field_split__`;function im(e){return e.map(e=>`${typeof e}:${e}`).join(rm)}var am=class{kvs=new Map;set(e,t){this.kvs.set(im(e),t)}get(e){return this.kvs.get(im(e))}getAsPrefix(e){let t=im(e),n=t+rm,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(im(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(rm).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}},Xee=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Kee(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}):(Rt(!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=pn(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=cn(t,n,on(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new am;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=on(this.initialValues,e);return e.length?pn(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 am;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=qp(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=qp(e);return n.get(t)||{INVALIDATE_NAME_PATH:qp(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=Jp(this.store,a.map(qp));return o.forEach(e=>{on(s,e)||(s=cn(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=qp(e);return on(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:qp(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=qp(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=qp(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(qp),i=!1):(r=null,i=t):(r=t.map(qp),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 am;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(qp);return t.some(e=>Yp(n,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new am,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)Rt(!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)Rt(!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(cn(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(pn(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(qp);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(cn(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=qp(r);n.push(a),`value`in i&&this.updateStore(cn(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();on(this.store,n)===void 0&&this.updateStore(cn(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=>!Xp(e.getNamePath(),t))){let n=this.store;this.updateStore(cn(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=qp(e),r=this.store;this.updateStore(cn(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=Jp(this.store,[n]);a(e,cn(this.getFieldsValue(),n,on(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=pn(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 am;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=qp(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 am;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})=>Yp(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(qp):[],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=>Xp(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||Yp(a,t,u))){let n=e.validateRules({validateMessages:{...Up,...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=Yee(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 om(e){let t=h.useRef(null),[,n]=h.useState({});return t.current||(e?t.current=e:t.current=new Xee(()=>{n({})}).getForm()),[t.current]}var sm=h.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),cm=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=h.useContext(sm),a=h.useRef({});return h.createElement(sm.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 lm(){return lm=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},lm.apply(this,arguments)}var Zee=(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(sm),[b]=om(a),{useSubscribe:x,setInitialValues:S,setCallbacks:C,setValidateMessages:w,setPreserve:T,destroyForm:E}=b.getInternalHooks(vp);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(()=>{Hee(A.current||[],i||[])||b.setFields(i||[]),A.current=i},[i,b]);let j=h.useMemo(()=>({...b,validateTrigger:u}),[b,u]),M=h.createElement(xp.Provider,{value:null},h.createElement(bp.Provider,{value:j},O));return c===!1?M:h.createElement(c,lm({},_,{ref:v,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),b.submit()},onReset:e=>{e.preventDefault(),b.resetFields(),_.onReset?.(e)}}),M)};function um(e){try{return JSON.stringify(e)}catch{return Math.random()}}function dm(...e){let[t,n={}]=e,r=Cp(n)?{form:n}:n,i=r.form,[a,o]=(0,h.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,h.useMemo)(()=>um(a),[a]),c=(0,h.useRef)(s);c.current=s;let l=(0,h.useContext)(bp),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(vp),g=pe((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):on(i,qp(t));um(a)!==um(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 fm=h.forwardRef(Zee);fm.FormProvider=cm,fm.Field=tm,fm.List=nm,fm.useForm=om,fm.useWatch=dm;var pm=h.createContext({labelAlign:`right`,layout:`horizontal`,itemRef:()=>{}}),mm=h.createContext(null),hm=e=>{let t=Wt(e,[`prefixCls`]);return h.createElement(cm,{...t})},gm=h.createContext({prefixCls:``}),_m=h.createContext({}),vm=({children:e,status:t,override:n})=>{let r=h.useContext(_m),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(_m.Provider,{value:i},e)},ym=h.createContext(void 0),bm=(e,t,n)=>{let{variant:r,[e]:i}=h.useContext(Br),a=h.useContext(ym),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=zr.includes(s);return[s,c]},xm=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(()=>yr(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return h.createElement(`span`,{className:m(t,o,s,n),style:{...c,...r}})},Qee=new to(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),Sm=e=>({height:e,lineHeight:q(e)}),Cm=e=>({width:e,...Sm(e)}),$ee=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:Qee,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),wm=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Sm(e)}),ete=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...Cm(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...Cm(i)},[`${t}${t}-sm`]:{...Cm(a)}}},tte=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,...wm(t,s)},[`${r}-lg`]:{...wm(i,s)},[`${r}-sm`]:{...wm(a,s)}}},nte=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,...Cm(i(r).mul(2).equal())}},rte=e=>({[e.skeletonNodeCls]:{...nte(e)}}),ite=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...nte(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...Cm(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%`}}},Tm=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},Em=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Sm(e)}),ate=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(),...Em(r,s)},...Tm(e,r,n),[`${n}-lg`]:{...Em(i,s)},...Tm(e,i,`${n}-lg`),[`${n}-sm`]:{...Em(a,s)},...Tm(e,a,`${n}-sm`)}},ote=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,...Cm(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...Cm(u)},[`${n}-sm`]:{...Cm(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`,...ate(e),...ete(e),...tte(e),...rte(e),...ite(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
${r},
${i} > li,
${n},
${a},
${o},
${s},
${c}
`]:{...$ee(e)}}}},Dm=Sc(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return ote(Go(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`]]}),ste=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(Br),f=d(`skeleton`,t),[p,g]=Dm(f),_=ed(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(xm,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:_,...u}))},cte=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(Br),f=d(`skeleton`,t),[p,g]=Dm(f),_=ed(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(xm,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:_,...u}))},lte=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(Br),d=u(`skeleton`,t),[f,p]=Dm(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))},ute=e=>{let{getPrefixCls:t}=h.useContext(Br),n=t(`skeleton`,e.prefixCls);return h.createElement(lte,{...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`})))},dte=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(Br),f=d(`skeleton`,t),[p,g]=Dm(f),_=ed(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(xm,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:_,...u}))},fte=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},pte=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:fte(n,e)}}));return h.createElement(`ul`,{className:m(t,n),style:r},a)},mte=({prefixCls:e,className:t,width:n,style:r})=>h.createElement(`h3`,{className:m(e,t),style:{width:n,...r}});function Om(e){return xr(e)?e:{}}function hte(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function gte(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function _te(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var km=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}=Ur(`skeleton`),S=g(`skeleton`,t),[C,w]=Dm(S),T={...e,avatar:l,title:u,paragraph:d},E=jr(y),D=jr(o),[O,k]=Nr([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`,...hte(t,n),...Om(l),style:k.avatar};a=h.createElement(`div`,{className:m(O.header,`${S}-header`),style:k.header},h.createElement(xm,{...e}))}let o;if(t||n){let r;if(t){let t={className:O.title,prefixCls:`${S}-title`,...gte(e,n),...Om(u),style:k.title};r=h.createElement(mte,{...t})}let i;if(n){let n={className:O.paragraph,prefixCls:`${S}-paragraph`,..._te(e,t),...Om(d),style:k.paragraph};i=h.createElement(pte,{...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};km.Button=cte,km.Avatar=ste,km.Input=dte,km.Image=ute,km.Node=lte;var vte=km,yte=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 Am(){return Am=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},Am.apply(this,arguments)}var jm=h.forwardRef((e,t)=>h.createElement(W,Am({},e,{ref:t,icon:yte.default}))),bte=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 Mm(){return Mm=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},Mm.apply(this,arguments)}var Nm=h.forwardRef((e,t)=>h.createElement(W,Mm({},e,{ref:t,icon:bte.default}))),Pm=(0,h.createContext)(null),xte=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(){nn.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=nn(()=>{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}},Ste={width:0,height:0,left:0,top:0};function Cte(e,t,n){return(0,h.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||Ste,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)||Ste;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 wte(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 Tte=.1,Ete=.01,Fm=20,Im=.995**Fm;function Dte(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))<Tte)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<Ete&&Math.abs(i)<Ete){window.clearInterval(u.current);return}r*=Im,i*=Im,t(r*Fm,i*Fm)},Fm)}}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 Lm(e){let[t,n]=(0,h.useState)(0),r=(0,h.useRef)(0),i=(0,h.useRef)();return i.current=e,_e(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function Ote(e){let t=(0,h.useRef)([]),[,n]=(0,h.useState)({}),r=(0,h.useRef)(typeof e==`function`?e():e),i=Lm(()=>{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 Rm={width:0,height:0,left:0,top:0,right:0};function kte(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)||Rm;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)||Rm)[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 zm(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var Ate=`TABS_DQ`;function Bm(e){return String(e).replace(/"/g,Ate)}function Vm(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Hm=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||`+`)}),Um=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:jte,TAB:Mte}=Et;function Nte({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 jte:o();break;case Mte:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};h.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&nn(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Pte=(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=Ie(t,Ve(a));return h.createElement(h.Fragment,null,r&&h.createElement(`div`,{className:`${i}-arrow`}),h.cloneElement(a,{ref:Re(a)?o:void 0}))}),Wm={adjustX:1,adjustY:1},Gm=[0,0],Fte={topLeft:{points:[`bl`,`tl`],overflow:Wm,offset:[0,-4],targetOffset:Gm},top:{points:[`bc`,`tc`],overflow:Wm,offset:[0,-4],targetOffset:Gm},topRight:{points:[`br`,`tr`],overflow:Wm,offset:[0,-4],targetOffset:Gm},bottomLeft:{points:[`tl`,`bl`],overflow:Wm,offset:[0,4],targetOffset:Gm},bottom:{points:[`tc`,`bc`],overflow:Wm,offset:[0,4],targetOffset:Gm},bottomRight:{points:[`tr`,`br`],overflow:Wm,offset:[0,4],targetOffset:Gm}};function Km(){return Km=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},Km.apply(this,arguments)}var qm=h.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=Fte,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)};Nte({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(Pte,{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:Re(b)?Ie(k,Ve(b)):void 0}),I=d;return!I&&_.indexOf(`contextMenu`)!==-1&&(I=[`click`]),h.createElement(hu,Km({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)}),Jm=void 0;function Ite(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!==Jm?a(i,{index:g}):f,S;r||(S={opacity:+!y,height:y?0:Jm,overflowY:y?`hidden`:Jm,order:o?g:Jm,pointerEvents:y?`none`:Jm,position:y?`absolute`:Jm});let C={};y&&(C[`aria-hidden`]=!0);let w=h.createElement(_,Bf({className:m(!r&&n,u),style:{...S,...d}},C,v,{ref:t}),x);return o&&(w=h.createElement(Fl,{onResize:({offsetWidth:e})=>{b(e)},disabled:s},w)),w}var Ym=h.forwardRef(Ite);function Lte(e){if(typeof MessageChannel>`u`)nn(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function Rte(){let e=h.useRef(null);return t=>{e.current||(e.current=[],Lte(()=>{(0,Sn.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Xm(e,t){let[n,r]=h.useState(t);return[n,pe(t=>{e(()=>{r(t)})})]}var Zm=h.createContext(null),zte=h.forwardRef((e,t)=>{let n=h.useContext(Zm);if(!n){let{component:n=`div`,...r}=e;return h.createElement(n,Bf({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return h.createElement(Zm.Provider,{value:null},h.createElement(Ym,Bf({ref:t,className:m(r,a)},i,o)))}),Qm=`responsive`,$m=`invalidate`;function Bte(e){return`+ ${e.length} ...`}function Vte(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=Rte(),[w,T]=Xm(C,null),E=w||0,[D,O]=Xm(C,new Map),[k,A]=Xm(C,0),[j,M]=Xm(C,0),[N,P]=Xm(C,0),[F,I]=Xm(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),ee=d===Qm,K=r.length&&ee,te=d===$m,ne=K||typeof d==`number`&&r.length>d,re=(0,h.useMemo)(()=>{let e=r;return K?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,K]),ie=(0,h.useMemo)(()=>K?r.slice(V+1):r.slice(re.length),[r,re,K,V]),ae=(0,h.useCallback)((e,t)=>typeof o==`function`?o(e):(o&&e?.[o])??t,[o]),oe=(0,h.useCallback)(i||(e=>e),[i]);function se(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 ce(e,t){T(t.clientWidth)}function le(e,t){O(n=>{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function ue(e,t){M(t),A(j)}function de(e,t){P(t)}function fe(e,t){I(t)}function pe(e){return D.get(ae(re[e],e))}ge(()=>{if(E&&typeof G==`number`&&re){let e=N+F,t=re.length,n=t-1;if(!t){se(0,null);return}for(let r=0;r<t;r+=1){let t=pe(r);if(S&&(t||=0),t===void 0){se(r-1,void 0,!0);break}if(e+=t,n===0&&e<=E||r===n-1&&e+pe(n)<=E){se(n,null);break}else if(e+G>E){se(r-1,e-t-F+j);break}}_&&pe(0)+F>E&&R(null)}},[E,D,j,N,F,ae,re]);let me=H&&!!ie.length,he={};L!==null&&K&&(he={position:`absolute`,top:0,insetInlineStart:L});let _e={prefixCls:W,responsive:K,component:y,invalidate:te},ve=a?(e,t)=>{let n=ae(e,t);return h.createElement(Zm.Provider,{key:n,value:{..._e,order:t,item:e,itemKey:n,registerSize:le,display:t<=V}},a(e,t))}:(e,t)=>{let n=ae(e,t);return h.createElement(Ym,Bf({},_e,{order:t,key:n,item:e,renderItem:oe,itemKey:n,registerSize:le,display:t<=V}))},ye={order:me?V:2**53-1,className:`${W}-rest`,registerSize:ue,display:me},be=f||Bte,xe=p?h.createElement(Zm.Provider,{value:{..._e,...ye}},p(ie)):h.createElement(Ym,Bf({},_e,ye),typeof be==`function`?be(ie):be),Se=h.createElement(v,Bf({className:m(!te&&n,u),style:l,ref:t},x),g&&h.createElement(Ym,Bf({},_e,{responsive:ee,responsiveDisabled:!K,order:-1,className:`${W}-prefix`,registerSize:de,display:!0}),g),re.map(ve),ne?xe:null,_&&h.createElement(Ym,Bf({},_e,{responsive:ee,responsiveDisabled:!K,order:V,className:`${W}-suffix`,registerSize:fe,display:!0,style:he}),_));return ee?h.createElement(Fl,{onResize:ce,disabled:!K},Se):Se}var eh=h.forwardRef(Vte);eh.Item=zte,eh.RESPONSIVE=Qm,eh.INVALIDATE=$m;var th=eh,nh=h.createContext(null);function rh(e,t){return`${e}-${t}`}function ih(e){return rh(h.useContext(nh),e)}var ah=h.createContext(null);function Hte(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function oh({children:e,locked:t,...n}){let r=h.useContext(ah),i=Te(()=>Hte(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!Bt(e[1],n[1],!0)));return h.createElement(ah.Provider,{value:i},e)}var Ute=[],sh=h.createContext(null);function ch(){return h.useContext(sh)}var lh=h.createContext(Ute);function uh(e){let t=h.useContext(lh);return h.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var dh=h.createContext(null),fh=h.createContext({}),{LEFT:ph,RIGHT:mh,UP:hh,DOWN:gh,ENTER:_h,ESC:vh,HOME:yh,END:bh}=Et,xh=[hh,gh,ph,mh];function Wte(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===_h)return{inlineTrigger:!0};let c={[hh]:i,[gh]:a},l={[ph]:n?a:i,[mh]:n?i:a,[gh]:o,[_h]:o},u={[hh]:i,[gh]:a,[_h]:o,[vh]:s,[ph]:n?o:s,[mh]: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 Gte(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function Kte(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function Sh(e,t){return ot(e,!0).filter(e=>t.has(e))}function Ch(e,t,n,r=1){if(!e)return null;let i=Sh(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 wh=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${rh(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function qte(e,t,n,r,i,a,o,s,c,l){let u=h.useRef(),d=h.useRef();d.current=t;let f=()=>{nn.cancel(u.current)};return h.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...xh,_h,vh,yh,bh].includes(m)){let l=a(),h=wh(l,r),{elements:g,key2element:_,element2key:v}=h,y=Kte(_.get(t),g),b=v.get(y),x=Wte(e,o(b,!0).length===1,n,m);if(!x&&m!==yh&&m!==bh)return;(xh.includes(m)||[yh,bh].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=nn(()=>{d.current===r&&t.focus()})}};if([yh,bh].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:Gte(y);let n,r=Sh(t,g);n=m===yh?r[0]:m===bh?r[r.length-1]:Ch(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=nn(()=>{h=wh(l,r);let e=y.getAttribute(`aria-controls`);S(Ch(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 Jte(e){Promise.resolve().then(e)}var Th=`__RC_UTIL_PATH_SPLIT__`,Eh=e=>e.join(Th),Yte=e=>e.split(Th),Dh=`rc-menu-more`;function Xte(){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=Eh(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;Jte(()=>{o===a.current&&s()})},[]),l=(0,h.useCallback)((e,r)=>{let i=Eh(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,h.useCallback)(e=>{i(e)},[]),d=(0,h.useCallback)((e,n)=>{let i=Yte(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(Dh),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(Dh),e},m=(0,h.useCallback)(e=>{let r=`${t.current.get(e)}${Th}`,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 Oh(e){let t=h.useRef(e);t.current=e;let n=h.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function kh(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=h.useContext(ah),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 Ah(e){let{mode:t,rtl:n,inlineIndent:r}=h.useContext(ah);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function jh({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 Mh({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Rt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Nh(){return Nh=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},Nh.apply(this,arguments)}var Zte=class extends h.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=Wt(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return Rt(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(th.Item,Nh({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},Qte=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=ih(i),{prefixCls:b,onItemClick:x,disabled:S,overflowDisabled:C,itemIcon:w,selectedKeys:T,onActive:E}=h.useContext(ah),{_internalRenderMenuItem:D}=h.useContext(fh),O=`${b}-item`,k=h.useRef(),A=h.useRef(),j=S||o,M=Le(t,A),N=uh(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}=kh(i,j,d,f),R=T.includes(i),z=Ah(N.length),B=e=>{if(j)return;let t=P(e);p?.(Mh(t)),x(t)},V=e=>{if(g?.(e),e.which===Et.ENTER){let t=P(e);p?.(Mh(t)),x(t)}},H=e=>{E(i),_?.(e)},U={};e.role===`option`&&(U[`aria-selected`]=R);let W=h.createElement(Zte,Nh({ref:k,elementRef:M,role:u===null?`none`:u||`menuitem`,tabIndex:o?null:-1,"data-menu-id":C&&y?null:y},Wt(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(jh,{props:{...e,isSelected:R},icon:F}));return D&&(W=D(W,e,{selected:R})),W});function $te(e,t){let{eventKey:n}=e,r=ch(),i=uh(n);return h.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:h.createElement(Qte,Nh({},e,{ref:t}))}var Ph=h.forwardRef($te);function Fh(){return Fh=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},Fh.apply(this,arguments)}var Ih=h.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=h.useContext(ah);return h.createElement(`ul`,Fh({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 Lh(e,t){return rn(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 Rh={adjustX:1,adjustY:1},ene={topLeft:{points:[`bl`,`tl`],overflow:Rh},topRight:{points:[`br`,`tr`],overflow:Rh},bottomLeft:{points:[`tl`,`bl`],overflow:Rh},bottomRight:{points:[`tr`,`br`],overflow:Rh},leftTop:{points:[`tr`,`tl`],overflow:Rh},leftBottom:{points:[`br`,`bl`],overflow:Rh},rightTop:{points:[`tl`,`tr`],overflow:Rh},rightBottom:{points:[`bl`,`br`],overflow:Rh}},tne={topLeft:{points:[`bl`,`tl`],overflow:Rh},topRight:{points:[`br`,`tr`],overflow:Rh},bottomLeft:{points:[`tl`,`bl`],overflow:Rh},bottomRight:{points:[`tr`,`br`],overflow:Rh},rightTop:{points:[`tr`,`tl`],overflow:Rh},rightBottom:{points:[`br`,`bl`],overflow:Rh},leftTop:{points:[`tl`,`tr`],overflow:Rh},leftBottom:{points:[`bl`,`br`],overflow:Rh}};function zh(e,t,n){if(t)return t;if(n)return n[e]||n.other}var nne={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function rne({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(ah),[S,C]=h.useState(!1),w=d?{...tne,...g}:{...ene,...g},T=nne[c],E=zh(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=nn(()=>{C(t)}),()=>{nn.cancel(k.current)}),[t]),h.createElement(hu,{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 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)}function ine({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=h.useContext(ah),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={...zh(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(oh,{mode:i,locked:!u.current},h.createElement(ur,Bh({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>h.createElement(Ih,{id:e,className:t,style:n},r)))}function Vh(){return Vh=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},Vh.apply(this,arguments)}var ane=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=ih(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(ah),{_internalRenderSubMenuItem:V}=h.useContext(fh),{isSubPathKey:H}=h.useContext(dh),U=uh(),W=`${O}-submenu`,G=j||l,ee=h.useRef(),K=h.useRef(),te=f??F,ne=p??I,re=A.includes(s),ie=!M&&re,ae=H(P,s),{active:oe,...se}=kh(s,G,C,w),[ce,le]=h.useState(!1),ue=e=>{G||le(e)},de=e=>{ue(!0),b?.({key:s,domEvent:e})},fe=e=>{ue(!1),x?.({key:s,domEvent:e})},pe=h.useMemo(()=>oe||(k===`inline`?!1:ce||H([N],s)),[k,oe,N,ce,s,H]),me=Ah(U.length),he=e=>{G||(S?.({key:s,domEvent:e}),k===`inline`&&R(s,!re))},ge=Oh(e=>{y?.(Mh(e)),L(e)}),_e=e=>{k!==`inline`&&R(s,e)},ve=()=>{z(s)},ye=D&&`${D}-popup`,be=h.useMemo(()=>h.createElement(jh,{icon:k===`horizontal`?void 0:ne,props:{...e,isOpen:ie,isSubMenu:!0}},h.createElement(`i`,{className:`${W}-arrow`})),[k,ne,e,ie,W]),xe=h.createElement(`div`,Vh({role:`menuitem`,style:me,className:`${W}-title`,tabIndex:G?null:-1,ref:ee,title:typeof o==`string`?o:null,"data-menu-id":M&&D?null:D,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":ye,"aria-disabled":G,onClick:he,onFocus:ve},se),o,be),Se=h.useRef(k);k!==`inline`&&U.length>1?Se.current=`vertical`:Se.current=k;let Ce=Se.current,we=h.useMemo(()=>{let t=h.createElement(oh,{classNames:a,styles:i,mode:Ce===`horizontal`?`vertical`:Ce},h.createElement(Ih,{id:ye,ref:K},d)),n=T||B;return n?n(t,{item:e,keys:U}):t},[T,B,U,ye,d,e,Ce]);if(!M){let e=Se.current;xe=h.createElement(rne,{mode:e,prefixCls:W,visible:!u&&ie&&k!==`inline`,popupClassName:g,popupOffset:_,popupStyle:v,popup:we,disabled:G,onVisibleChange:_e},xe)}let Te=h.createElement(th.Item,Vh({ref:t,role:`none`},E,{component:`li`,style:n,className:m(W,`${W}-${k}`,r,{[`${W}-open`]:ie,[`${W}-active`]:pe,[`${W}-selected`]:ae,[`${W}-disabled`]:G}),onMouseEnter:de,onMouseLeave:fe}),xe,!M&&h.createElement(ine,{id:ye,open:ie,keyPath:U},d));return V&&(Te=V(Te,e,{selected:ae,active:pe,open:ie,disabled:G})),h.createElement(oh,{classNames:a,styles:i,onItemClick:ge,mode:k===`horizontal`?`vertical`:k,itemIcon:te,expandIcon:ne},Te)}),Hh=h.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=uh(n),a=Lh(r,i),o=ch();h.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:h.createElement(ane,Vh({ref:t},e),a),h.createElement(lh.Provider,{value:i},s)});function Uh({className:e,style:t}){let{prefixCls:n}=h.useContext(ah);return ch()?null:h.createElement(`li`,{role:`separator`,className:m(`${n}-item-divider`,e),style:t})}function Wh(){return Wh=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},Wh.apply(this,arguments)}var one=h.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=h.useContext(ah),u=`${s}-item-group`;return h.createElement(`li`,Wh({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))}),Gh=h.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Lh(r,uh(n));return ch()?i:h.createElement(one,Wh({ref:t},Wt(e,[`warnKey`])),i)});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)}function qh(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,Kh({key:m},p,{title:c}),qh(l,t,n)):h.createElement(a,Kh({key:m},p,{title:c}),qh(l,t,n));if(d===`divider`)return h.createElement(o,Kh({key:m},p));let g=!!f||f===0;return h.createElement(r,Kh({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 Jh(e,t,n,r,i){let a=e,o={divider:Uh,item:Ph,group:Gh,submenu:Hh,...r};return t&&(a=qh(t,o,i)),Lh(a,n)}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 Xh=[],Zh=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:ee,_internalRenderMenuItem:K,_internalRenderSubMenuItem:te,_internalComponents:ne,popupRender:re,...ie}=e,[ae,oe]=h.useMemo(()=>[Jh(u,l,Xh,ne,n),Jh(u,l,Xh,{},n)],[u,l,ne]),[se,ce]=h.useState(!1),le=h.useRef(),ue=we(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),de=d===`rtl`,[fe,pe]=ye(S,C),me=fe||Xh,he=(e,t=!1)=>{function n(){pe(e),U?.(e)}t?(0,Sn.flushSync)(n):n()},[ge,_e]=h.useState(me),ve=h.useRef(!1),[be,xe]=h.useMemo(()=>(p===`inline`||p===`vertical`)&&g?[`vertical`,g]:[p,!1],[p,g]),Se=be===`inline`,[Ce,Te]=h.useState(be),[Ee,De]=h.useState(xe);h.useEffect(()=>{Te(be),De(xe),ve.current&&(Se?pe(ge):he(Xh))},[be,xe]);let[Oe,ke]=h.useState(0),Ae=Oe>=ae.length-1||Ce!==`horizontal`||v;h.useEffect(()=>{Se&&_e(me)},[me]),h.useEffect(()=>(ve.current=!0,()=>{ve.current=!1}),[]);let{registerPath:je,unregisterPath:Me,refreshOverflowKeys:Ne,isSubPathKey:Pe,getKeyPath:Fe,getKeys:Ie,getSubPathKeys:Le}=Xte(),Re=h.useMemo(()=>({registerPath:je,unregisterPath:Me}),[je,Me]),ze=h.useMemo(()=>({isSubPathKey:Pe}),[Pe]);h.useEffect(()=>{Ne(Ae?Xh:ae.slice(Oe+1).map(e=>e.key))},[Oe,Ae]);let[Be,Ve]=ye(w||T&&ae[0]?.key,w),He=Oh(e=>{Ve(e)}),Ue=Oh(()=>{Ve(void 0)});(0,h.useImperativeHandle)(t,()=>({list:le.current,focus:e=>{let t=Ie(),{elements:n,key2element:r,element2key:i}=wh(t,ue),a=Sh(le.current,n),o;o=Be&&t.includes(Be)?Be:a[0]?i.get(a[0]):ae.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=wh(Ie(),ue);return t.get(e)||null}}));let[We,Ge]=ye(O||[],k),Ke=h.useMemo(()=>Array.isArray(We)?We:We==null?Xh:[We],[We]),qe=e=>{if(E){let{key:t}=e,n=Ke.includes(t),r;r=D?n?Ke.filter(e=>e!==t):[...Ke,t]:[t],Ge(r);let i={...e,selectedKeys:r};n?j?.(i):A?.(i)}!D&&me.length&&Ce!==`inline`&&he(Xh)},Je=Oh(e=>{H?.(Mh(e)),qe(e)}),Ye=Oh((e,t)=>{let n=me.filter(t=>t!==e);if(t)n.push(e);else if(Ce!==`inline`){let t=Le(e);n=n.filter(e=>!t.has(e))}Bt(me,n,!0)||he(n,!0)}),Xe=qte(Ce,Be,de,ue,le,Ie,Fe,Ve,(e,t)=>{Ye(e,t??!me.includes(e))},W);h.useEffect(()=>{ce(!0)},[]);let Ze=h.useMemo(()=>({_internalRenderMenuItem:K,_internalRenderSubMenuItem:te}),[K,te]),Qe=Ce!==`horizontal`||v?ae:ae.map((e,t)=>h.createElement(oh,{key:e.key,overflowDisabled:t>Oe,classNames:s,styles:o},e)),$e=h.createElement(th,Yh({id:f,ref:le,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:Ph,className:m(n,`${n}-root`,`${n}-${Ce}`,a,{[`${n}-inline-collapsed`]:Ee,[`${n}-rtl`]:de},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Qe,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?ae.slice(-t):null;return h.createElement(Hh,{eventKey:Dh,title:z,disabled:Ae,internalPopupClose:t===0,popupClassName:B},n)},maxCount:Ce!==`horizontal`||v?th.INVALIDATE:th.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{ke(e)},onKeyDown:Xe},ie));return h.createElement(fh.Provider,{value:Ze},h.createElement(nh.Provider,{value:ue},h.createElement(oh,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:Ce,openKeys:me,rtl:de,disabled:_,motion:se?N:null,defaultMotions:se?P:null,activeKey:Be,onActive:He,onInactive:Ue,selectedKeys:Ke,inlineIndent:M,subMenuOpenDelay:y,subMenuCloseDelay:b,forceSubMenuRender:x,builtinPlacements:I,triggerSubMenuAction:F,getPopupContainer:V,itemIcon:L,expandIcon:R,onItemClick:Je,onOpenChange:Ye,popupRender:re},h.createElement(dh.Provider,{value:ze},$e),h.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},h.createElement(sh.Provider,{value:Re},oe)))))});Zh.Item=Ph,Zh.SubMenu=Hh,Zh.ItemGroup=Gh,Zh.Divider=Uh;function Qh(){return Qh=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},Qh.apply(this,arguments)}var sne=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(Zh,{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=Vm(t,i,u,n);return h.createElement(Ph,{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){[Et.DOWN,Et.SPACE,Et.ENTER].includes(t)&&(C(!0),e.preventDefault());return}switch(t){case Et.UP:N(-1),e.preventDefault();break;case Et.DOWN:N(1),e.preventDefault();break;case Et.ESC:C(!1);break;case Et.SPACE:case Et.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(qm,Qh({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(Hm,{prefixCls:n,locale:a,editable:u}))}),cne=h.memo(sne,(e,t)=>t.tabMoving),lne=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=Vm(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":Bm(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 $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 une=(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]},eg=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]},tg=(e,t)=>e[+!t],ng=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(Pm),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]=wte(0,(e,t)=>{A&&_&&_({direction:e>t?`left`:`right`})}),[N,P]=wte(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]=Ote(new Map),G=Cte(S,U,L[0]),ee=tg(F,A),K=tg(L,A),te=tg(z,A),ne=tg(V,A),re=Math.floor(ee)<Math.floor(K+te),ie=re?ee-ne:ee-te,ae=`${x}-nav-operations-hidden`,oe=0,se=0;A&&s?(oe=0,se=Math.max(0,K-ie)):(oe=Math.min(0,ie-K),se=0);function ce(e){return e<oe?oe:e>se?se:e}let le=(0,h.useRef)(null),[ue,de]=(0,h.useState)();function fe(){de(Date.now())}function me(){le.current&&clearTimeout(le.current)}Dte(E,(e,t)=>{function n(e,t){e(e=>ce(e+t))}return re?(A?n(M,e):n(P,t),me(),fe(),!0):!1}),(0,h.useEffect)(()=>(me(),ue&&(le.current=setTimeout(()=>{de(0)},100)),me),[ue]);let[he,ge]=kte(G,ie,A?j:N,K,te,ne,{...e,tabs:S}),_e=pe((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+ie&&(e=t.right+t.width-ie):t.left<-j?e=-t.left:t.left+t.width>-j+ie&&(e=-(t.left+t.width-ie)),P(0),M(ce(e))}else{let e=N;t.top<-N?e=-t.top:t.top+t.height>-N+ie&&(e=-(t.top+t.height-ie)),M(0),P(ce(e))}}),[ve,ye]=(0,h.useState)(),[be,xe]=(0,h.useState)(!1),Se=S.filter(e=>!e.disabled).map(e=>e.key),Ce=e=>{let t=Se.indexOf(ve||o),n=Se.length,r=Se[(t+e+n)%n];ye(r)},we=(e,t)=>{let n=Se.indexOf(e),r=S.find(t=>t.key===e);Vm(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===Se.length-1?Ce(-1):Ce(1))},Te=(e,t)=>{xe(!0),t.button===1&&we(e,t)},Ee=e=>{let{code:t}=e,n=s&&A,r=Se[0],i=Se[Se.length-1];switch(t){case`ArrowLeft`:A&&Ce(n?1:-1);break;case`ArrowRight`:A&&Ce(n?-1:1);break;case`ArrowUp`:e.preventDefault(),A||Ce(-1);break;case`ArrowDown`:e.preventDefault(),A||Ce(1);break;case`Home`:e.preventDefault(),ye(r);break;case`End`:e.preventDefault(),ye(i);break;case`Enter`:case`Space`:e.preventDefault(),g(ve??o,e);break;case`Backspace`:case`Delete`:we(ve,e);break}},De={};A?De.marginInlineStart=f:De.marginTop=f;let Oe=S.map((e,t)=>{let{key:n}=e;return h.createElement(lne,{id:i,prefixCls:x,key:n,tab:e,classNames:{item:y?.item,remove:y?.remove},styles:{item:t===0?b?.item:{...De,...b?.item},remove:b?.remove},closable:e.closable,editable:l,active:n===o,focus:n===ve,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:Se.length,currentPosition:t+1,onClick:e=>{g(n,e)},onKeyDown:Ee,onFocus:()=>{be||ye(n),_e(n),fe(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{ye(void 0)},onMouseDown:e=>Te(n,e),onMouseUp:()=>{xe(!1)}})}),ke=()=>W(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return S.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${Bm(n)}"]`);if(r){let[i,a,o,s]=une(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,h.useEffect)(()=>{ke()},[S.map(e=>e.key).join(`_`)]);let Ae=Lm(()=>{let e=eg(C),t=eg(w),n=eg(T);I([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=eg(k);B(r),H(eg(O));let i=eg(D);R([i[0]-r[0],i[1]-r[1]]),ke()}),je=S.slice(0,he),Me=S.slice(ge+1),Ne=[...je,...Me],Pe=G.get(o),{style:Fe}=xte({activeTabOffset:Pe,horizontal:A,indicator:v,rtl:s});(0,h.useEffect)(()=>{_e()},[o,oe,se,zm(Pe),zm(G),A]),(0,h.useEffect)(()=>{Ae()},[s]);let Ie=!!Ne.length,Re=`${x}-nav-wrap`,ze,Be,Ve,He;return A?s?(Be=j>0,ze=j!==se):(ze=j<0,Be=j!==oe):(Ve=N<0,He=N!==oe),h.createElement(Fl,{onResize:Ae},h.createElement(`div`,{ref:Le(t,C),role:`tablist`,"aria-orientation":A?`horizontal`:`vertical`,className:m(`${x}-nav`,n,y?.header),style:{...b?.header,...r},onKeyDown:()=>{fe()}},h.createElement(Um,{ref:w,position:`left`,extra:c,prefixCls:x}),h.createElement(Fl,{onResize:Ae},h.createElement(`div`,{className:m(Re,{[`${Re}-ping-left`]:ze,[`${Re}-ping-right`]:Be,[`${Re}-ping-top`]:Ve,[`${Re}-ping-bottom`]:He}),ref:E},h.createElement(Fl,{onResize:Ae},h.createElement(`div`,{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${j}px, ${N}px)`,transition:ue?`none`:void 0}},Oe,h.createElement(Hm,{ref:k,prefixCls:x,locale:u,editable:l,style:{...Oe.length===0?void 0:De,visibility:Ie?`hidden`:null}}),h.createElement(`div`,{className:m(`${x}-ink-bar`,y?.indicator,{[`${x}-ink-bar-animated`]:a.inkBar}),style:{...Fe,...b?.indicator}}))))),h.createElement(cne,$h({},e,{removeAriaLabel:u?.removeAriaLabel,ref:O,prefixCls:x,tabs:Ne,className:!Ie&&ae,popupStyle:b?.popup,tabMoving:!!ue})),h.createElement(Um,{ref:T,position:`right`,extra:c,prefixCls:x})))}),dne=({renderTabBar:e,...t})=>e?e(t,ng):h.createElement(ng,t),fne=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 rg(){return rg=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},rg.apply(this,arguments)}var pne=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(Pm),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(ur,rg({key:i,visible:_,forceRender:o,removeOnLeave:!!(a??d),leavedClassName:`${g}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>h.createElement(fne,rg({},p,{prefixCls:g,id:t,tabKey:i,animated:f,active:_,style:{...c,...s,...e},className:m(l,u,n),ref:r})))})))};function mne(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 ig(){return ig=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},ig.apply(this,arguments)}var ag=0,hne=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=mne(u),[N,P]=(0,h.useState)(!1);(0,h.useEffect)(()=>{P(Ut())},[]);let[F,I]=ye(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]=ye(null,n);(0,h.useEffect)(()=>{n||(B(`rc-tabs-${ag}`),ag+=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(Pm.Provider,{value:W},h.createElement(`div`,ig({ref:t,id:n,className:m(r,`${r}-${d}`,{[`${r}-mobile`]:N,[`${r}-editable`]:l,[`${r}-rtl`]:j},i)},k),h.createElement(dne,ig({},U,{renderTabBar:b})),h.createElement(pne,ig({destroyOnHidden:y},H,{bodyStyle:O?.body,bodyClassName:D?.body,contentStyle:O?.content,contentClassName:D?.content,animated:M}))))}),og=e=>`${e}-css-var`,gne={motionAppear:!1,motionEnter:!0,motionLeave:!0};function _ne(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...xr(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...gne,motionName:Kf(e,`switch`)}),n}function vne(e){return e.filter(e=>e)}function yne(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):vne(rn(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 bne=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}`}}}}},[vf(e,`slide-up`),vf(e,`slide-down`)]]},xne=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:`${q(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)`]:co(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:q(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:q(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${q(e.borderRadiusLG)} 0 0 ${q(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 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Sne=e=>{let{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${n}-dropdown`]:{...io(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:lf},[`&${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:df},[`&${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:uf},[`&${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:ff},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${q(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":{...ro,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${q(e.paddingXXS)} ${q(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`}}}}}}},Cne=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:`${q(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:q(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${q(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:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-body > ${t}-content`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},wne=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 ${q(e.borderRadius)} ${q(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${q(e.borderRadius)} ${q(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${q(e.borderRadius)} ${q(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${q(e.borderRadius)} 0 0 ${q(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},Tne=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},...lo(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:co(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}}}},Ene=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`}}}}},Dne=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...io(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:`${q(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${q(e.borderRadiusLG)} ${q(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},...lo(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...Tne(e),[`${t}-body`]:{position:`relative`,width:`100%`},[`${t}-body-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-content`]:{...lo(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`}}}}}},One=Sc(`Tabs`,e=>{let t=Go(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${q(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${q(e.horizontalItemGutter)}`});return[wne(t),Ene(t),Cne(t),Sne(t),xne(t),Dne(t),bne(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}}),kne=()=>null,sg=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}=Ur(`tabs`),{tabs:L}=h.useContext(Br),R=A(`tabs`,k),z=og(R),[B,V]=One(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(oe,null),addIcon:(l??L?.addIcon)||h.createElement(Nm,null),showAdd:s!==!0});let W=A(),G=ed(a),ee=yne(_,g),K=_ne(R,v),te={align:x?.align??L?.indicator?.align,size:x?.size??b??L?.indicator?.size??L?.indicatorSize},ne=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]),re={...e,size:G,tabPlacement:ne,items:ee},ie=jr(P),ae=jr(y),[se,ce]=Nr([F,S],[I,ie,C,ae],{props:re},{popup:{_default:`root`}});return h.createElement(hne,{ref:H,direction:j,getPopupContainer:M,...O,items:ee,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,se.root,B,V,z),classNames:{...se,popup:m(p,B,V,z,se.popup?.root)},styles:ce,style:ce.root,editable:U,more:{icon:L?.more?.icon??L?.moreIcon??d??h.createElement(jm,null),transitionName:`${W}-slide-up`,...f},prefixCls:R,animated:K,indicator:te,destroyOnHidden:T??w,tabPosition:ne})});sg.TabPane=kne;var cg=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=h.useContext(Br),a=i(`card`,e),o=m(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return h.createElement(`div`,{...r,className:o})},Ane=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 ${q(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`,...so(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...ro,[`
> ${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:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},jne=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
${q(i)} 0 0 0 ${n},
0 ${q(i)} 0 0 ${n},
${q(i)} ${q(i)} 0 0 ${n},
${q(i)} 0 0 0 ${n} inset,
0 ${q(i)} 0 0 ${n} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},Mne=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:`${q(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`,...so(),"& > 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:q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${a}`}}}},Nne=e=>({margin:`${q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...so(),"&-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,...ro},"&-description":{color:e.colorTextDescription}}),Pne=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${q(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${q(e.padding)} ${q(i)}`}}},Fne=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},Ine=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...io(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Ane(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:jne(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Mne(e),[`${t}-meta`]:Nne(e)},[`${t}-bordered`]:{border:`${q(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:`${q(e.borderRadiusLG)} ${q(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`]:Pne(e),[`${t}-loading`]:Fne(e),[`${t}-rtl`]:{direction:`rtl`}}},Lne=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${q(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`}}}}},Rne=Sc(`Card`,e=>{let t=Go(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Ine(t),Lne(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})),zne=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))}))},Bne=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}=Ur(`card`),[F]=bm(`card`,f,d),I=ed(p),L={...e,size:I,variant:F},R=jr(M),z=jr(a),[B,V]=Nr([N,E],[P,R,D,z],{props:L}),H=t=>{e.onTabChange?.(t)},U=h.useMemo(()=>rn(b),[b]),W=h.useMemo(()=>U.some(e=>h.isValidElement(e)&&e.type===cg),[U]),G=k(`card`,n),[ee,K]=Rne(G),te=h.createElement(vte,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),ne=x!==void 0,re={...T,[ne?`activeKey`:`defaultActiveKey`]:ne?x:S,tabBarExtraContent:C},ie,ae=I===`small`?I:`large`,oe=y?h.createElement(sg,{size:ae,...re,className:`${G}-head-tabs`,onChange:H,items:y.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||oe){let e=m(`${G}-head`,B.header),t=m(`${G}-head-title`,B.title),n=m(`${G}-extra`,B.extra),r={...s,...V.header};ie=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)),oe)}let se=m(`${G}-cover`,B.cover),ce=_?h.createElement(`div`,{className:se,style:V.cover},_):null,le=m(`${G}-body`,B.body),ue={...c,...V.body},de=u||U.length?h.createElement(`div`,{className:le,style:ue},u?te:b):null,fe=m(`${G}-actions`,B.actions),pe=v?.length?h.createElement(zne,{actionClasses:fe,actionStyle:V.actions,actions:v}):null,me=Wt(O,[`onTabChange`]),he=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,ee,K,B.root),ge={...V.root};return h.createElement(`div`,{ref:t,...me,className:he,style:ge},ie,ce,de,pe)}),Vne=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}=Ur(`cardMeta`),_=`${u(`card`,t)}-meta`,v=jr(f),y=jr(o),[b,x]=Nr([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)},lg=Bne;lg.Grid=cg,lg.Meta=Vne;var ug=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],dg=[].concat(ug).reverse(),Hne=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)`}),Une=e=>{let t=e,n=[].concat(ug).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},Wne=()=>{let[,e]=xc(),t=Hne(Une(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);Sr(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];Sr(t?.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])},fg=(0,h.createContext)({}),Gne=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`}}}},Kne=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]=Tc(i,`grid`),[,s]=Tc(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},pg=(e,t)=>qne(e,t),Jne=(e,t,n)=>({[`@media (min-width: ${q(t)})`]:{...pg(e,n)}}),Yne=()=>({}),Xne=()=>({}),Zne=Sc(`Grid`,Gne,Yne),mg=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Qne=Sc(`Grid`,e=>{let t=Go(e,{gridColumns:24}),n=mg(t);return delete n.xs,[Kne(t),pg(t,``),pg(t,`-xs`),Object.keys(n).map(e=>Jne(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},Xne);function hg(e){return e===`auto`?`1 1 auto`:yr(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var gg=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Br),{gutter:i,wrap:a}=h.useContext(fg),{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]=Qne(y),[C]=Tc(b,`col`),w={},T={};dg.forEach(t=>{let n={},i=e[t];yr(i)?n.span=i:xr(i)&&(n=i||{}),delete v[t],T={...T,[`${y}-${t}-${n.span}`]:_r(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`)]=hg(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=yr(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),g&&(D.flex=hg(g),a===!1&&!D.minWidth&&(D.minWidth=0)),h.createElement(`div`,{...v,style:{...D,..._,...w},className:E,ref:t},p)});function _g(e=!0,t={}){let n=(0,h.useRef)(t),[,r]=ud(),i=Wne();return ge(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}function $ne(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(xr(e))for(let r=0;r<ug.length;r++){let a=ug[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var vg=(e,t)=>{let[n,r]=h.useState(()=>br(e)?e:``),i=()=>{if(br(e)&&r(e),xr(e))for(let n=0;n<ug.length;n++){let i=ug[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},yg=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(Br),p=_g(!0,null),g=vg(i,p),_=vg(r,p),v=d(`row`,n),[y,b]=Zne(v),x=$ne(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=yr(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(fg.Provider,{value:E},h.createElement(`div`,{...u,className:S,style:{...C,...o},ref:t},s))}),bg=gg,ere=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}))})),tre=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`)}}}))})),nre=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)}}}))})),rre=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)}}}))})),ire=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}}}))})),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_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)}}}))})),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_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)}}}))})),xg=l(ere()),sre=l(tre()),cre=l(nre()),lre=l(rre()),ure=l(ire()),dre=l(are()),fre=l(ore());xg.default.extend(fre.default),xg.default.extend(dre.default),xg.default.extend(sre.default),xg.default.extend(cre.default),xg.default.extend(lre.default),xg.default.extend(ure.default),xg.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 pre={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`},Sg=e=>pre[e]||e.split(`_`)[0],Cg=e=>!xg.default.isDayjs(e)||e instanceof xg.default?e:(0,xg.default)(e.valueOf()),mre={getNow:()=>{let e=(0,xg.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,xg.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>Cg(e).endOf(`month`),getWeekDay:e=>{let t=Cg(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Cg(e).year(),getMonth:e=>Cg(e).month(),getDate:e=>Cg(e).date(),getHour:e=>Cg(e).hour(),getMinute:e=>Cg(e).minute(),getSecond:e=>Cg(e).second(),getMillisecond:e=>Cg(e).millisecond(),addYear:(e,t)=>Cg(e).add(t,`year`),addMonth:(e,t)=>Cg(e).add(t,`month`),addDate:(e,t)=>Cg(e).add(t,`day`),setYear:(e,t)=>Cg(e).year(t),setMonth:(e,t)=>Cg(e).month(t),setDate:(e,t)=>Cg(e).date(t),setHour:(e,t)=>Cg(e).hour(t),setMinute:(e,t)=>Cg(e).minute(t),setSecond:(e,t)=>Cg(e).second(t),setMillisecond:(e,t)=>Cg(e).millisecond(t),isAfter:(e,t)=>Cg(e).isAfter(Cg(t)),isValidate:e=>Cg(e).isValid(),locale:{getWeekFirstDay:e=>(0,xg.default)().locale(Sg(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Cg(t).locale(Sg(e)).weekday(0),getWeek:(e,t)=>Cg(t).locale(Sg(e)).week(),getShortWeekDays:e=>(0,xg.default)().locale(Sg(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,xg.default)().locale(Sg(e)).localeData().monthsShort(),format:(e,t,n)=>Cg(t).locale(Sg(e)).format(n),parse:(e,t,n)=>{let r=Sg(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,xg.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,xg.default)(a,i,!0).locale(r);if(o.isValid())return o}return null}}};function wg(e){return t=>h.createElement(Uu,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,{...t}))}var Tg=(e,t,n,r,i)=>wg(a=>{let{prefixCls:o,style:s}=a,c=h.useRef(null),[l,u]=h.useState(0),[d,f]=h.useState(0),[p,m]=ye(!1,a.open),{getPrefixCls:g}=h.useContext(Br),_=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}))}),hre=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 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 gre=h.forwardRef((e,t)=>h.createElement(W,Eg({},e,{ref:t,icon:hre.default})));function _re(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var Dg=h.createContext(null),vre={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 Og({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=vre,direction:u,visible:d,onClose:f}){let{prefixCls:p}=h.useContext(Dg),g=`${p}-dropdown`,_=_re(c,u===`rtl`);return h.createElement(hu,{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 kg(e,t,n=`0`){let r=String(e);for(;r.length<t;)r=`${n}${r}`;return r}function Ag(e){return e==null?[]:Array.isArray(e)?e:[e]}function jg(e,t,n){let r=[...e];return r[t]=n,r}function Mg(e,t){let n={};return(t||Object.keys(e)).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function Ng(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 Pg(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 Fg(e){return Mg(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function Ig(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 Lg(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=>jg(n,t,e))}]}function Rg(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 yre(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=Rg(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 zg(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return h.useMemo(()=>yre(e,n,r,i,a,o),[e,n,r,i,a,o])}function Bg(e,t,n){return n??t.some(t=>e.includes(t))}var bre=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function xre(e){let t=Mg(e,bre),{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 Sre(e){return e&&typeof e==`string`}function Vg(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function Hg(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 Ug(e){let{showTime:t}=e,[n,r]=xre(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=Vg(s,c,l,o);return[s,c,l]=Hg(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function Wg(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=Ng(e,i,null),s=[t,n];for(let e=0;e<s.length;e+=1){let t=Ag(s[e])[0];if(Sre(t)){o=t;break}}let{showHour:c,showMinute:l,showSecond:u,showMillisecond:d}=a,{use12Hours:f}=a,p=Bg(o,[`a`,`A`,`LT`,`LLL`,`LTS`],f),m=Vg(c,l,u,d);m||(c=Bg(o,[`H`,`h`,`k`,`LT`,`LLL`]),l=Bg(o,[`m`,`LT`,`LLL`]),u=Bg(o,[`s`,`LTS`]),d=Bg(o,[`SSS`])),[c,l,u]=Hg(m,c,l,u,d);let h=t||Rg(c,l,u,d,p);return{...a,format:h,showHour:c,showMinute:l,showSecond:u,showMillisecond:d,use12Hours:p}}return null}function Cre(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 wre(e,t){return Math.floor(e.getMonth(t)/3)+1}function Tre(e,t,n){return Gg(t,n,()=>qg(e,t,n)&&wre(e,t)===wre(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 Ere(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 Dre(e,t,n){return Gg(t,n,()=>Yg(e,t,n)&&Ere(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 Tre(e,n,r);case`year`:return qg(e,n,r);case`decade`:return Kg(e,n,r);case`time`:return Ere(e,n,r);default:return Dre(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 Ore(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 kre(e,t,n,r,i){return pe((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 Are(e,t,n){return h.useMemo(()=>{let r=Ag(Ng(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 jre(e,t,n){return typeof e[0]==`function`||n?!0:t}function Mre(e,t,n,r){return pe((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&&Ag(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function Nre(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]=Ug(e),z=zg(r,I),B=h.useMemo(()=>Wg(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:Cre(a,f,p),showTime:B,value:D,defaultValue:O,pickerValue:k,defaultPickerValue:A,...t?.()}),[e]),[H,U]=Are(j,z,_),W=jre(H,v,g),G=kre(n,r,y,b,x),ee=Mre(n,i,G,B);return[h.useMemo(()=>({...V,needConfirm:P,inputReadOnly:W,disabledDate:G}),[V,P,W,G]),j,N,H,U,ee]}function Pre(e,t,n){let[r,i]=ye(t,e),[,a]=h.useState({}),o=pe(e=>{i(e),a({})}),s=h.useRef(e),c=h.useRef(),l=()=>{nn.cancel(c.current)},u=pe(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),d=pe((e,t)=>{l(),s.current=e,e||t?u():c.current=nn(u)});return h.useEffect(()=>l,[]),[r,d]}function Fre(e,t,n=[],r){let[i,a]=Pre(n.every(e=>e)?!1:e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function Ire(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 Lre(e,t){return h.useMemo(()=>e||(t?(Rt(!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,_e(()=>{if(e)r.current(e);else{let t=nn(()=>{r.current(e)},n);return()=>{nn.cancel(t)}}},[e])}function Rre(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 zre(e,t,n,r,i,a){let o=n[n.length-1];return(s,c)=>{let[l,u]=e,d={...c,from:Pg(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 Bre(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]=ye(()=>_(0),v),[S,C]=ye(()=>_(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 ge(()=>{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]),ge(()=>{i&&c&&c[g]&&T(c[g],`reset`)},[i,g]),[w,T]}function Vre(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 Hre=[];function Ure(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&&!Dre(e,r,o)){i=a;break}}return[i<0,i!==0]}]}function Wre(e,t){return[...e].sort((e,n)=>t.isAfter(e,n)?1:-1)}function Gre(e){let[t,n]=Vre(e),r=pe(()=>{n(e)});return h.useEffect(()=>{r()},[e]),[t,n]}function Kre(e,t,n,r,i,a,o,s,c){let[l,u]=ye(a,o),d=l||Hre,[f,p]=Gre(d),[m,h]=Ure(e,t,n);return[d,u,f,pe(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=Wre(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 qre(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]=Ure(u,d,o),[b,x]=Vre(t),S=pe(()=>{x(t)});h.useEffect(()=>{S()},[t]);let C=pe(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=Wre(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=pe((e,t)=>{x(jg(b(),e,r()[e])),t&&C()}),T=!s&&!c;return r_(!T,()=>{T&&(C(),i(t),S())},2),[w,C]}function Jre(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 Yre(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:kg(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:kg(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 Yre(t,r,i,a,o,e)},x,S,C,w]}function Xre(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(Dg),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 Zre(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 Qre=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(Qre),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=Ore(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 $re=1/3;function eie(e,t){let n=h.useRef(!1),r=h.useRef(null),i=h.useRef(null),a=()=>n.current,o=()=>{nn.cancel(r.current),n.current=!1},s=h.useRef();return[pe(()=>{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||!it(a)){s.current<=5&&(r.current=nn(l));return}let p=t+(f-t)*$re,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=nn(l)};e&&c&&l()}}),o,a]}var tie=300;function nie(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]=eie(y,n??r);ge(()=>(S(),x(),()=>{C(),x()}),[n,r,nie(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)},tie))},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 rie(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))},ee=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]),K=(e,t)=>e===null?null:d[t](ee,e),te=e=>K(e,`setHour`),ne=e=>K(e,`setMinute`),re=e=>K(e,`setSecond`),ie=e=>K(e,`setMillisecond`),ae=e=>e===null?null:e===`am`&&!b_(E)?d.setHour(ee,E-12):e===`pm`&&b_(E)?d.setHour(ee,E+12):ee,oe=e=>{G(te(e))},se=e=>{G(ne(e))},ce=e=>{G(re(e))},le=e=>{G(ie(e))},ue=e=>{G(ae(e))},de=e=>{g(te(e))},fe=e=>{g(ne(e))},pe=e=>{g(re(e))},me=e=>{g(ie(e))},he=e=>{g(ae(e))},ge={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:oe,onHover:de},ge)),n&&h.createElement(v_,y_({units:R,value:O,optionalValue:k,type:`minute`,onChange:se,onHover:fe},ge)),r&&h.createElement(v_,y_({units:B,value:A,optionalValue:j,type:`second`,onChange:ce,onHover:pe},ge)),i&&h.createElement(v_,y_({units:H,value:M,optionalValue:N,type:`millisecond`,onChange:le,onHover:me},ge)),a&&h.createElement(v_,y_({units:W,value:P,type:`meridiem`,onChange:ue,onHover:he},ge)))}function iie(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(rie,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 aie(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(iie,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 oie(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 sie(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 cie(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 lie(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 uie(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 die={date:__,datetime:aie,week:lie,month:sie,quarter:cie,year:uie,decade:oie,time:iie};function fie(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(Dg)||{},N=A||s||`rc-picker`,P=h.useRef();h.useImperativeHandle(t,()=>({nativeElement:P.current}));let[F,I,L,R]=Ug(e),z=zg(i,I),B=x===`date`&&S?`datetime`:x,V=h.useMemo(()=>Wg(B,L,R,F,z),[B,L,R,F,z]),H=a.getNow(),[U,W]=ye(x||`date`,y),G=U===`date`&&V?`datetime`:U,ee=Zre(a,i,B),[K,te]=ye(u,d),ne=h.useMemo(()=>{let e=Ag(K).filter(e=>e);return l?e:e.slice(0,1)},[K,l]),re=pe(e=>{te(e),f&&(e===null||ne.length!==e.length||ne.some((t,n)=>!Zg(a,i,t,e[n],B)))&&f?.(l?e:e[0])}),ie=pe(e=>{p?.(e),U===x&&re(l?ee(ne,e):[e])}),[ae,oe]=ye(g||ne[0]||H,_);h.useEffect(()=>{ne[0]&&!_&&oe(ne[0])},[ne[0]]);let se=(e,t)=>{b?.(e||_,t||U)},ce=(e,t=!1)=>{oe(e),v?.(e),t&&se(e)},le=(e,t)=>{W(e),t&&ce(t),se(t,e)},ue=e=>{if(ie(e),ce(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&&le(i,e)}},de=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]),fe=Ig(T,E,D),me=O[G]||die[G]||__,he=h.useMemo(()=>({classNames:j?.popup??n??{},styles:M?.popup??r??{}}),[j,n,M,r]),ge=h.useContext(f_),_e=h.useMemo(()=>({...ge,hideHeader:k}),[ge,k]),ve=`${N}-panel`,be=Mg(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return h.createElement(Qre.Provider,{value:he},h.createElement(f_.Provider,{value:_e},h.createElement(`div`,{ref:P,tabIndex:c,className:m(ve,{[`${ve}-rtl`]:o===`rtl`})},h.createElement(me,D_({},be,{showTime:V,prefixCls:N,locale:z,generateConfig:a,onModeChange:le,pickerValue:ae,onPickerValueChange:e=>{ce(e,!0)},value:ne[0],onSelect:ue,values:ne,cellRender:fe,hoverRangeValue:de,hoverValue:C})))))}var O_=h.memo(h.forwardRef(fie));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 pie(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(Dg),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 mie(e){return typeof e==`function`?e():e}function hie(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(mie(t))},onMouseEnter:()=>{i(mie(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 j_(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(Dg),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(Ag(_)),[_]),W=r===`time`&&!U.length,G=h.useMemo(()=>W?H([b]):U,[W,U,b]),ee=W?b:U,K=h.useMemo(()=>G.length?G.some(e=>y(e)):!0,[G,y]),te=h.createElement(`div`,{className:`${T}-panel-layout`},h.createElement(hie,{prefixCls:T,presets:c,onClick:u,onHover:l}),h.createElement(`div`,null,h.createElement(pie,A_({},e,{value:ee})),h.createElement(Xre,A_({},e,{showNow:o?!1:i,invalid:K,onSubmit:()=>{W&&v(b),x(),S()}}))));t&&(te=t(te));let ne=`${E}-container`,re=`marginLeft`,ie=`marginRight`,ae=h.createElement(`div`,{onMouseDown:p,tabIndex:-1,className:m(ne,`${T}-${n}-panel-container`,C?.popup?.container),style:{[D?ie:re]:M,[D?re:ie]:`auto`,...w?.popup?.container},onFocus:d,onBlur:f},te);return a&&(ae=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(Fl,{onResize:I},ae))),ae}function M_(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={...Yt(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 gie=[`onMouseEnter`,`onMouseLeave`];function N_(e){return h.useMemo(()=>Mg(e,gie),[e])}function P_(){return P_=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},P_.apply(this,arguments)}function F_({icon:e,...t}){let{prefixCls:n,classNames:r,styles:i}=h.useContext(Dg);return e?h.createElement(`span`,P_({className:m(`${n}-suffix`,r.suffix),style:i.suffix},t),e):null}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)}function L_({icon:e,onClear:t,...n}){let{prefixCls:r,classNames:i,styles:a,locale:o}=h.useContext(Dg);return h.createElement(`button`,I_({},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 R_=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],z_=`顧`,_ie=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=R_.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>z_.repeat(e.length));let r=RegExp(`(${R_.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=R_.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!==z_&&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 vie(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 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 V_=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(Dg),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 _ie(o||``),[o]),[W,G]=h.useMemo(()=>u?[0,0]:U.getSelection(F),[U,F,u]),ee=e=>{e&&e!==o&&e!==b&&d()},K=pe(e=>{s(e)&&c(e),M(e),ee(e)}),te=e=>{if(!o){let t=e.target.value;ee(t),M(t),c(t)}},ne=e=>{if(H.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&K(t)},re=()=>{H.current=!0},ie=e=>{let{selectionStart:t}=e.target;I(U.getMaskCellIndex(t)),R({}),C?.(e),H.current=!1},ae=e=>{A(!0),I(0),P(``),x(e)},oe=e=>{S(e)},se=e=>{A(!1),oe(e)};r_(r,()=>{!r&&!g&&M(b)});let ce=e=>{e.key===`Enter`&&s(z)&&f(),p?.(e)},le=e=>{if(H.current){e.preventDefault();return}ce(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]=vie(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&&K((z.slice(0,W)+kg(r,i)+z.slice(G)).slice(0,o.length)),R({})},ue=h.useRef();ge(()=>{if(!(!k||!o||H.current)){if(!U.match(z)){K(o);return}return V.current.setSelectionRange(W,G),ue.current=nn(()=>{V.current.setSelectionRange(W,G)}),()=>{nn.cancel(ue.current)}}},[U,o,k,z,F,W,G,L,K]);let de=o?{onFocus:ae,onBlur:se,onKeyDown:le,onMouseDown:re,onMouseUp:ie,onPaste:ne}:{};return h.createElement(`div`,{ref:B,className:m(O,{[`${O}-active`]:r&&i,[`${O}-placeholder`]:u},n)},h.createElement(T,B_({ref:V,"aria-invalid":_,autoComplete:`off`},y,{onKeyDown:ce,onBlur:oe},de,{value:z,onChange:te,className:E.input,style:D.input})),h.createElement(F_,{icon:a}),v)});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)}function yie(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:ee,styles:K}=h.useContext(Dg),te=h.useMemo(()=>{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),ne=h.useRef(),re=h.useRef(),ie=h.useRef(),ae=e=>[re,ie][e]?.current;h.useImperativeHandle(t,()=>({nativeElement:ne.current,focus:e=>{if(typeof e==`object`){let{index:t=0,...n}=e||{};ae(t)?.focus(n)}else ae(e??0)?.focus()},blur:()=>{ae(0)?.blur(),ae(1)?.blur()}}));let oe=N_(U),se=h.useMemo(()=>Array.isArray(v)?v:[v,v],[v]),[ce]=M_({...e,id:te,placeholder:se}),[le,ue]=h.useState({position:`absolute`,width:0}),de=pe(()=>{let e=ae(s);if(e){let t=e.nativeElement.getBoundingClientRect(),n=ne.current.getBoundingClientRect(),r=t.left-n.left;ue(e=>({...e,width:t.width,left:r})),I([t.left,t.right,n.width])}});h.useEffect(()=>{de()},[s]);let fe=i&&(C[0]&&!j[0]||C[1]&&!j[1]),me=V&&!j[0],he=V&&!me&&!j[1];return h.createElement(Fl,{onResize:de},h.createElement(`div`,H_({},oe,{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:ne,onClick:x,onMouseDown:e=>{let{target:t}=e;t!==re.current.inputElement&&t!==ie.current.inputElement&&e.preventDefault(),R?.(e)}}),r&&h.createElement(`div`,{className:m(`${G}-prefix`,ee.prefix),style:K.prefix},r),h.createElement(V_,H_({ref:re},ce(0),{className:`${G}-input-start`,autoFocus:me,tabIndex:H,"date-range":`start`})),h.createElement(`div`,{className:`${G}-range-separator`},o),h.createElement(V_,H_({ref:ie},ce(1),{className:`${G}-input-end`,autoFocus:he,tabIndex:H,"date-range":`end`})),h.createElement(`div`,{className:`${G}-active-bar`,style:le}),h.createElement(F_,{icon:a}),fe&&h.createElement(L_,{icon:i,onClear:S})))}var bie=h.forwardRef(yie);function U_(e,t){return(0,h.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}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 G_(e,t){let n=e??t;return Array.isArray(n)?n:[n,n]}function K_(e){return e===1?`end`:`start`}function xie(e,t){let[n,r,i,a,o,s]=Nre(e,()=>{let{disabled:t,allowEmpty:n}=e;return{disabled:G_(t,!1),allowEmpty:G_(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:ee,components:K,cellRender:te,dateRender:ne,monthCellRender:re,onClick:ie}=n,ae=Ire(t),[oe,se]=U_(d,u),[ce,le]=Fre(E,T,b,D),ue=(e,t)=>{(b.some(e=>!e)||!e)&&le(e,t)},[de,fe,me,he,_e]=Kre(k,O,a,!0,!1,p,g,I,L),ve=me(),[be,xe,Se,Ce,we,Te,Ee,De,Oe]=Rre(b,x,ce),ke=(e,t)=>{xe(!0),U?.(e,{range:K_(t??Ce)})},Ae=(e,t)=>{xe(!1),W?.(e,{range:K_(t??Ce)})},je=h.useMemo(()=>{if(!N)return null;let{disabledTime:e}=N,t=e?t=>e(t,K_(Ce),{from:Pg(ve,Ee,Ce)}):void 0;return{...N,disabledTime:t}},[N,Ce,ve,Ee]),[Me,Ne]=ye([A,A],P),Pe=Me[Ce]||A,Fe=Pe===`date`&&je?`datetime`:Pe,Ie=Fe===A&&Fe!==`time`,Le=Jre(A,Pe,j,M,!0),[Re,ze]=qre(n,de,fe,me,he,b,a,be,ce,s),Be=zre(ve,b,Ee,k,O,S),[Ve,He]=Lg(ve,s,x),[Ue,We]=Bre(k,O,ve,Me,ce,Ce,r,Ie,R,z,je?.defaultOpenValue,B,C,w),Ge=pe((e,t,n)=>{let r=jg(Me,Ce,t);if((r[0]!==Me[0]||r[1]!==Me[1])&&Ne(r),F&&n!==!1){let t=[...ve];e&&(t[Ce]=e),F(t,r)}}),Ke=(e,t)=>jg(ve,t,e),qe=(e,t)=>{let n=ve;e&&(n=Ke(e,Ce)),De(Ce);let r=Te(n);he(n),Re(Ce,r===null),r===null?ue(!1,{force:!0}):t||ae.current.focus({index:r})},Je=e=>{let t=e.target.getRootNode();if(!ae.current.nativeElement.contains(t.activeElement??document.activeElement)){let e=b.findIndex(e=>!e);e>=0&&ae.current.focus({index:e})}ue(!0),ie?.(e)},Ye=()=>{ze(null),ue(!1,{force:!0}),v?.()},[Xe,Ze]=h.useState(null),[Qe,$e]=h.useState(null),et=h.useMemo(()=>Qe||ve,[ve,Qe]);h.useEffect(()=>{ce||$e(null)},[ce]);let[tt,nt]=h.useState([0,0,0]),rt=(e,t)=>{f===`hover`&&($e(e),Ze(t))},it=Lre(G,ee),at=e=>{rt(e,`preset`)},ot=e=>{ze(e)&&(Se(`preset-click`),ue(!1,{force:!0}))},st=e=>{qe(e)},ct=e=>{rt(e?Ke(e,Ce):null,`cell`)},lt=e=>{ue(!0),ke(e)},ut=()=>{Se(`panel`)},dt=e=>{he(jg(ve,Ce,e)),!_&&!i&&r===Fe&&qe(e)},ft=()=>{ue(!1)},pt=Ig(te,ne,re,K_(Ce)),mt=ve[Ce]||null,ht=pe(e=>s(e,{activeIndex:Ce})),gt=h.useMemo(()=>{let e=Yt(n,!1);return Wt(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),_t=h.createElement(j_,W_({},gt,{showNow:Le,showTime:je,range:!0,multiplePanel:Ie,activeInfo:tt,disabledDate:Be,onFocus:lt,onBlur:Ae,onPanelMouseDown:ut,picker:A,mode:Pe,internalMode:Fe,onPanelChange:Ge,format:o,value:mt,isInvalid:ht,onChange:null,onSelect:dt,pickerValue:Ue,defaultOpenValue:Ag(N?.defaultOpenValue)[Ce],onPickerValueChange:We,hoverValue:et,onHover:ct,needConfirm:_,onSubmit:qe,onOk:_e,presets:it,onPresetHover:at,onPresetSubmit:ot,onNow:st,cellRender:pt,classNames:oe,styles:se})),vt=(e,t)=>{he(Ke(e,t))},yt=()=>{Se(`input`)},bt=(e,t)=>{let n=Ee.length,r=Ee[n-1];if(n&&r!==t&&_&&!x[r]&&!Oe(r)&&ve[r]){ae.current.focus({index:r});return}Se(`input`),ue(!0,{inherit:!0}),Ce!==t&&ce&&!_&&i&&qe(null,!0),we(t),ke(e,t)},xt=(e,t)=>{ue(!1),!_&&Se()===`input`&&Re(Ce,Te(ve)===null),Ae(e,t)},St=(e,t)=>{e.key===`Tab`&&qe(null,!0),y?.(e,t)},Ct=h.useMemo(()=>({prefixCls:c,locale:O,generateConfig:k,button:K.button,input:K.input,classNames:oe,styles:se}),[c,O,k,K.button,K.input,oe,se]);return ge(()=>{ce&&Ce!==void 0&&Ge(null,A,!1)},[ce,Ce,A]),ge(()=>{let e=Se();!ce&&e===`input`&&(ue(!1),qe(null,!0)),!ce&&i&&!_&&e===`panel`&&(ue(!0),qe())},[ce]),h.createElement(Dg.Provider,{value:Ct},h.createElement(Og,W_({},Fg(n),{popupElement:_t,popupStyle:se.popup.root,popupClassName:m(l,oe.popup.root),visible:ce,onClose:ft,range:!0}),h.createElement(bie,W_({},n,{ref:ae,className:m(n.className,l,oe.root),style:{...se.root,...n.style},suffixIcon:H,activeIndex:be||ce?Ce:null,activeHelp:!!Qe,allHelp:!!Qe&&Xe===`preset`,focused:be,onFocus:bt,onBlur:xt,onKeyDown:St,onSubmit:qe,value:et,maskFormat:o,onChange:vt,onInputChange:yt,format:a,inputReadOnly:V,disabled:b,open:ce,onOpenChange:ue,onClick:Je,onClear:Ye,invalid:Ve,onInvalid:He,onActiveInfo:nt}))))}var Sie=h.forwardRef(xie);function Cie(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(th,{prefixCls:f,data:n,renderItem:g,renderRest:_,itemKey:e=>a(e),maxCount:s}),!n.length&&h.createElement(`span`,{className:`${t}-selection-placeholder`},l))}function q_(){return q_=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},q_.apply(this,arguments)}function wie(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,ee=L===`rtl`,{prefixCls:K,classNames:te,styles:ne}=h.useContext(Dg),re=h.useRef(),ie=h.useRef();h.useImperativeHandle(t,()=>({nativeElement:re.current,focus:e=>{ie.current?.focus(e)},blur:()=>{ie.current?.blur()}}));let ae=N_(G),oe=e=>{w([e])},se=e=>{w(C.filter(t=>t&&!Zg(g,p,t,e,S))),r||T()},[ce,le]=M_({...e,onChange:oe},({valueTexts:e})=>({value:e[0]||``,active:l})),ue=!!(a&&C.length&&!P),de=D?h.createElement(h.Fragment,null,h.createElement(Cie,{prefixCls:K,value:C,onRemove:se,formatDate:le,maxTagCount:O,tagRender:k,disabled:P,removeIcon:W,placeholder:_}),h.createElement(`input`,{className:`${K}-multiple-input`,value:C.map(le).join(`,`),ref:ie,readOnly:!0,autoFocus:H,tabIndex:U}),h.createElement(F_,{icon:o}),ue&&h.createElement(L_,{icon:a,onClear:x})):h.createElement(V_,q_({ref:ie},ce(),{autoFocus:H,tabIndex:U,suffixIcon:o,clearIcon:ue&&h.createElement(L_,{icon:a,onClear:x}),showActiveCls:!1}));return h.createElement(`div`,q_({},ae,{className:m(K,{[`${K}-multiple`]:D,[`${K}-focused`]:l,[`${K}-disabled`]:P,[`${K}-invalid`]:F,[`${K}-rtl`]:ee},v),style:y,ref:re,onClick:b,onMouseDown:e=>{let{target:t}=e;t!==ie.current?.inputElement&&e.preventDefault(),z?.(e)}}),i&&h.createElement(`div`,{className:m(`${K}-prefix`,te.prefix),style:ne.prefix},i),de)}var Tie=h.forwardRef(wie);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 Eie(e,t){let[n,r,i,a,o,s]=Nre(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:ee,onFocus:K,onBlur:te,presets:ne,components:re,cellRender:ie,dateRender:ae,monthCellRender:oe,onClick:se}=n,ce=Ire(t);function le(e){return e===null?null:z?e:e[0]}let ue=Zre(A,k,r),[de,fe]=U_(d,u),[me,he]=Fre(D,E,[S],O),[_e,ve,be,xe,Se]=Kre(A,k,a,!1,p,g,_,(e,t,n)=>{if(L){let r={...n};delete r.range,L(le(e),le(t),r)}},e=>{R?.(le(e))}),Ce=be(),[we,Te,Ee,De]=Rre([S]),Oe=e=>{Te(!0),K?.(e,{})},ke=e=>{Te(!1),te?.(e,{})},[Ae,je]=ye(j,F),Me=Ae===`date`&&P?`datetime`:Ae,Ne=Jre(j,Ae,M,N),Pe=y&&((e,t)=>{y(le(e),le(t))}),[,Fe]=qre({...n,onChange:Pe},_e,ve,be,xe,[],a,we,me,s),[Ie,Le]=Lg(Ce,s),Re=h.useMemo(()=>Ie.some(e=>e),[Ie]),[ze,Be]=Bre(A,k,Ce,[Ae],me,De,r,!1,B,V,Ag(P?.defaultOpenValue),(e,t)=>{if(H){let n={...t,mode:t.mode[0]};delete n.range,H(e[0],n)}},w,T),Ve=pe((e,t,n)=>{je(t),I&&n!==!1&&I(e||Ce[Ce.length-1],t)}),He=()=>{Fe(be()),he(!1,{force:!0})},Ue=e=>{!S&&!ce.current.nativeElement.contains(document.activeElement)&&ce.current.focus(),he(!0),se?.(e)},We=()=>{Fe(null),he(!1,{force:!0}),ce.current.focus(),b?.()},[Ge,Ke]=h.useState(null),[qe,Je]=h.useState(null),Ye=h.useMemo(()=>{let e=[qe,...Ce].filter(e=>e);return z?e:e.slice(0,1)},[Ce,qe,z]),Xe=h.useMemo(()=>!z&&qe?[qe]:Ce.filter(e=>e),[Ce,qe,z]);h.useEffect(()=>{me||Je(null)},[me]);let Ze=(e,t)=>{f===`hover`&&(Je(e),Ke(t))},Qe=Lre(ne),$e=e=>{Ze(e,`preset`)},et=e=>{Fe(z?ue(be(),e):[e])&&!z&&he(!1,{force:!0})},tt=e=>{et(e)},nt=e=>{Ze(e,`cell`)},rt=e=>{he(!0),Oe(e)},it=e=>{Ee(`panel`),!(z&&Me!==j)&&(xe(z?ue(be(),e):[e]),!v&&!i&&r===Me&&He())},at=()=>{he(!1)},ot=Ig(ie,ae,oe),st=h.useMemo(()=>{let e=Yt(n,!1);return{...Wt(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),ct=h.createElement(j_,J_({},st,{showNow:Ne,showTime:P,disabledDate:C,onFocus:rt,onBlur:ke,picker:j,mode:Ae,internalMode:Me,onPanelChange:Ve,format:o,value:Ce,isInvalid:s,onChange:null,onSelect:it,pickerValue:ze,defaultOpenValue:P?.defaultOpenValue,onPickerValueChange:Be,hoverValue:Ye,onHover:nt,needConfirm:v,onSubmit:He,onOk:Se,presets:Qe,onPresetHover:$e,onPresetSubmit:et,onNow:tt,cellRender:ot,classNames:de,styles:fe})),lt=e=>{xe(e)},ut=()=>{Ee(`input`)},dt=e=>{Ee(`input`),he(!0,{inherit:!0}),Oe(e)},ft=e=>{he(!1),ke(e)},pt=(e,t)=>{e.key===`Tab`&&He(),x?.(e,t)},mt=h.useMemo(()=>({prefixCls:c,locale:k,generateConfig:A,button:re.button,input:re.input,classNames:de,styles:fe}),[c,k,A,re.button,re.input,de,fe]);return ge(()=>{me&&De!==void 0&&Ve(null,j,!1)},[me,De,j]),ge(()=>{let e=Ee();!me&&e===`input`&&(he(!1),He()),!me&&i&&!v&&e===`panel`&&He()},[me]),h.createElement(Dg.Provider,{value:mt},h.createElement(Og,J_({},Fg(n),{popupElement:ct,popupStyle:fe.popup.root,popupClassName:m(l,de.popup.root),visible:me,onClose:at}),h.createElement(Tie,J_({},n,{ref:ce,className:m(n.className,l,de.root),style:{...fe.root,...n.style},suffixIcon:W,removeIcon:G,tagRender:ee,activeHelp:!!qe,allHelp:!!qe&&Ge===`preset`,focused:we,onFocus:dt,onBlur:ft,onKeyDown:pt,onSubmit:He,value:Xe,maskFormat:o,onChange:lt,onInputChange:ut,internalPicker:r,format:a,inputReadOnly:U,disabled:S,open:me,onOpenChange:he,onClick:Ue,onClear:We,invalid:Re,onInvalid:e=>{Le(e,0)}}))))}var Die=h.forwardRef(Eie),Y_=e=>{let{space:t,form:n,children:r}=e;if(!vr(r))return null;let i=r;return n&&(i=h.createElement(vm,{override:!0,status:!0},i)),t&&(i=h.createElement(kd,null,i)),i},X_=(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}),Z_=(e,t)=>t||e,Q_=(e,t,n,r,i,a)=>{let{classNames:o,styles:s}=Ur(e),[c,l]=Nr([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 $_(e){return Go(e,{inputAffixPadding:e.paddingXXS})}var ev=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}},Oie=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),tv=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])":{...Oie(Go(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),nv=(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}}),rv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...nv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),iv=(e,t)=>({"&-outlined":{...nv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...tv(e)},...rv(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...rv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),av=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),kie=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...av(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...av(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...tv(e)}}}}),ov=`&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)`,sv=(e,t)=>({outline:`${q(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),cv=(e,t)=>({"&, & input, & textarea":{color:t.color},[ov]:sv(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),lv=(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`},[ov]:sv(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:cv(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:cv(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},uv=(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}}),dv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...uv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),fv=(e,t)=>({"&-filled":{...uv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...tv(e)},...dv(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...dv(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),pv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Aie=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...pv(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...pv(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:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),mv=(e,t)=>({background:e.colorBgContainer,borderWidth:`${q(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}}),hv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...mv(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`}}),gv=(e,t)=>({"&-underlined":{...mv(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`},...hv(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...hv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),_v=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),vv=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${q(t)} ${q(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},yv=e=>({padding:`${q(e.paddingBlockSM)} ${q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),bv=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${q(e.paddingBlock)} ${q(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,..._v(e.colorTextPlaceholder),"&-lg":{...vv(e),...t.largeStyle},"&-sm":{...yv(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),jie=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`]:{...vv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...yv(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 ${q(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${q(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`,...so(),[`${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`]:{}}}}},Mie=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]:{...io(e),...bv(e),...iv(e),...fv(e),...lv(e),...gv(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`}}}},Nie=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,...co(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${q(e.inputAffixPadding)}`}}}},Pie=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]:{...bv(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}}},...Nie(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},Fie=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...io(e),...jie(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}},...kie(e),...Aie(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}}}}}},Iie=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},xv=Sc([`Input`,`Shared`],e=>{let t=Go(e,$_(e));return[Mie(t),Pie(t)]},ev,{resetFont:!1}),Sv=Sc([`Input`,`Component`],e=>{let t=Go(e,$_(e));return[Fie(t),Iie(t),cp(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},ev,{resetFont:!1});function Cv(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 wv=(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 ${q(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}},Lie=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:q(t),itemLineHeight:q(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Rie=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":{...ao(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},Tv=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=Lie(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:q(a.itemLineHeight)}}}]},zie=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=Go(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Go(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[Tv(i,`small`),Tv(e),Tv(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`,...ro}},...Rie(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},Bie=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:q(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:`${q(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}}},Vie=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 ${q(c)}`,color:h,borderBottom:`${q(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:v,lineHeight:q(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:q(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:`${q(w)} 0`,color:T,cursor:`pointer`,"&-in-view":{color:E},...Bie(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${q(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},"&-decade-panel":{[r]:{padding:`0 ${q(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${q(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${q(c)} ${q(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 ps(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${q(c)} ${q(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${q(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:`${q(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% - ${q(I)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${q(d)} ${f} ${g}`},"&-active":{background:new ps(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:q(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`}}}}}}}}},Hie=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:`${q(r)} ${l} ${u}`,"&-extra":{padding:`0 ${q(i)}`,lineHeight:q(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${q(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:q(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:q(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`}}}}},Uie=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()}},Wie=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 ps(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ps(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`}},Gie=e=>({...ev(e),...Wie(e),...Cv(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Kie=e=>{let{componentCls:t}=e;return{[t]:[{...iv(e),...gv(e),...fv(e),...lv(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Ev=(e,t)=>({padding:`${q(e)} ${q(t)}`}),qie=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=Tc(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}}}}},Jie=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]=Tc(n,`date-picker`);return[{[t]:{[R(`affix-color`)]:`inherit`,...io(e),...Ev(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}`,..._v(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":{...Ev(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:p??f,lineHeight:L}},"&-small":{...Ev(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,...co(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 ${q(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:_}}},"&-dropdown":{...io(e),...Vie(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:df},[`&${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:lf},[`&${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:ff},[`&${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:uf},[`${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`,...wv(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:`${q(i)} ${a} ${j}`,li:{...ro,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:`${q(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`}}}}},vf(e,`slide-up`),vf(e,`slide-down`),cf(e,`move-up`),cf(e,`move-down`)]},Dv=Sc(`DatePicker`,e=>{let t=Go($_(e),Uie(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Hie(t),Jie(t),Kie(t),qie(t),zie(t),cp(e,{focusElCls:`${e.componentCls}-focused`})]},Gie),Yie=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 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:Yie.default}))),Xie=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 Av(){return Av=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},Av.apply(this,arguments)}var jv=h.forwardRef((e,t)=>h.createElement(W,Av({},e,{ref:t,icon:Xie.default}))),Zie=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 Mv(){return Mv=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},Mv.apply(this,arguments)}var Nv=h.forwardRef((e,t)=>h.createElement(W,Mv({},e,{ref:t,icon:Zie.default})));function Pv({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=td(n,r,h.createElement(re,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(td(l,u,h.createElement(Hd,{spin:!0}))):({open:e,showSearch:n})=>b(e&&n?td(d,f,h.createElement(Nv,null)):td(t,h.createElement(jv,null))):b(e);let S=td(i,a,p?h.createElement(kv,null):null),C=td(o,s,h.createElement(oe,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 Qie=(e,t,n)=>_r(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,$ie=(e,t,n)=>_r(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,eae=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=Pv({...e,prefixCls:t,componentName:`DatePicker`});return[h.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[tae,nae]=[`week`,`WeekPicker`],[rae,iae]=[`month`,`MonthPicker`],[aae,oae]=[`year`,`YearPicker`],[sae,cae]=[`quarter`,`QuarterPicker`],[Fv,Iv]=[`time`,`TimePicker`],lae=e=>h.createElement(gp,{size:`small`,type:`primary`,...e});function Lv(e){return(0,h.useMemo)(()=>({button:lae,...e}),[e])}var 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:`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 Rv(){return Rv=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},Rv.apply(this,arguments)}var dae=h.forwardRef((e,t)=>h.createElement(W,Rv({},e,{ref:t,icon:uae.default}))),fae=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 zv(){return zv=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},zv.apply(this,arguments)}var pae=h.forwardRef((e,t)=>h.createElement(W,zv({},e,{ref:t,icon:fae.default}))),Bv=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?h.createElement(h.Fragment,null,e===Fv?h.createElement(pae,{"aria-hidden":`true`}):h.createElement(dae,{"aria-hidden":`true`}),t&&n):r,mae=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===Fv?`timePicker`:`datePicker`,{suffixIcon:A,clearIcon:j,allowClear:M}=Ur(k),[N,P]=Q_(k,c,l,x||b,S),F=h.useRef(null),{getPrefixCls:I,direction:L,getPopupContainer:R,rangePicker:z}=(0,h.useContext)(Br),B=I(`picker`,r),{compactSize:V,compactItemClassnames:H}=Od(B,L),U=I(),W=T??z?.separator,[G,ee]=bm(`rangePicker`,v,p),K=og(B),[te,ne]=Dv(B,K),re=m(te,ne,K,C),ie=nd({componentName:`RangePicker`,allowClear:E,clearIcon:D,contextAllowClear:M,contextClearIcon:j,defaultAllowClear:!0}),ae=Lv(a),oe=ed(e=>d??V??e),se=h.useContext(Cu),ce=f??se,{hasFeedback:le,status:ue,feedbackIcon:de}=(0,h.useContext)(_m),fe=Bv({picker:y,hasFeedback:le,feedbackIcon:de,suffixIcon:w===void 0?A:w});(0,h.useImperativeHandle)(n,()=>F.current);let[pe]=$c(`Calendar`,Uc),me=pn(pe,t.locale||{}),[he]=Ed(`DatePicker`,P?.popup?.root?.zIndex);return h.createElement(Y_,{space:!0},h.createElement(Sie,{separator:h.createElement(`span`,{"aria-label":`to`,className:`${B}-separator`},W??h.createElement(gre,null)),disabled:ce,ref:F,placement:u,placeholder:$ie(me,y,g),suffixIcon:fe,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:me.lang,getPopupContainer:i||R,generateConfig:e,components:ae,direction:L,prefixCls:B,rootClassName:re,className:m({[`${B}-large`]:oe===`large`,[`${B}-small`]:oe===`small`,[`${B}-${G}`]:ee},X_(B,Z_(ue,_),le),H,o,z?.className),style:{...z?.style,...s},classNames:N,styles:{...P,popup:{...P.popup,root:{...P.popup.root,zIndex:he}}},allowClear:ie}))}),hae=e=>{let t=(t,n=`DatePicker`)=>{let r=n===Iv?`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}=Ur(n===Iv?`timePicker`:`datePicker`),{getPrefixCls:P,direction:F,getPopupContainer:I,[r]:L}=(0,h.useContext)(Br),R=P(`picker`,o),{compactSize:z,compactItemClassnames:B}=Od(R,F),V=ed(e=>d??z??e),H=h.useContext(Cu),U=_??H,W={...i,size:V,disabled:U,status:v,variant:y},[G,ee]=Q_(r,x,S,w||C,T,W),K=h.useRef(null),[te,ne]=bm(`datePicker`,y,f),re=og(R),[ie,ae]=Dv(R,re),oe=m(ie,ae,re,E);(0,h.useImperativeHandle)(a,()=>K.current);let se={showToday:!0},ce=t||i.picker,le=P(),{onSelect:ue,multiple:de}=A,fe=ue&&t===`time`&&!de,pe=(e,t,n)=>{b?.(e,t,n),fe&&ue(e)},[,me]=eae(i,R),he=nd({componentName:n,allowClear:O,clearIcon:k,contextAllowClear:N,contextClearIcon:M,defaultAllowClear:!0}),ge=Lv(c),{hasFeedback:_e,status:ve,feedbackIcon:ye}=(0,h.useContext)(_m),be=Bv({picker:ce,hasFeedback:_e,feedbackIcon:ye,suffixIcon:D===void 0?j:D}),[xe]=$c(`DatePicker`,Uc),Se=pn(xe,i.locale||{}),[Ce]=Ed(`DatePicker`,ee?.popup?.root?.zIndex);return h.createElement(Y_,{space:!0},h.createElement(Die,{ref:K,placeholder:Qie(Se,ce,g),suffixIcon:be,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:`${le}-slide-up`,picker:t,onCalendarChange:pe,...se,...A,locale:Se.lang,getPopupContainer:s||I,generateConfig:e,components:ge,direction:F,disabled:U,prefixCls:R,rootClassName:oe,className:m({[`${R}-large`]:V===`large`,[`${R}-small`]:V===`small`,[`${R}-${te}`]:ne},X_(R,Z_(ve,v),_e),B,L?.className,u),style:{...L?.style,...l},classNames:G,styles:{...ee,popup:{...ee.popup,root:{...ee.popup.root,zIndex:Ce}}},allowClear:he,removeIcon:me}))})},n=t(),r=t(tae,nae),i=t(rae,iae),a=t(aae,oae),o=t(sae,cae);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(Fv,Iv),QuarterPicker:o}},Vv=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=hae(e),s=mae(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},Hv=Vv(mre);Hv._InternalPanelDoNotUseOrYouWillBeFired=Tg(Hv,`popupAlign`,void 0,`picker`),Hv._InternalRangePanelDoNotUseOrYouWillBeFired=Tg(Hv.RangePicker,`popupAlign`,void 0,`picker`),Hv.generatePicker=Vv;function Uv(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 gae=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)`}}}}},_ae=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${q(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 ${q(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Wv=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},vae=e=>{let{componentCls:t}=e;return{[t]:{...io(e),..._ae(e),[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":{...Wv(e,e.controlHeightSM)},"&-large":{...Wv(e,e.controlHeightLG)}}}},yae=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]=Tc(i,`grid`);return{[t]:{...io(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:bf,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},Gv=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),bae=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`]:Gv(e)}}},xae=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`}}}}},Sae=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Gv(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},Cae=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`]:Gv(e)},[`@media (max-width: ${q(e.screenXSMax)})`]:[Sae(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Gv(e)}}}],[`@media (max-width: ${q(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Gv(e)}}},[`@media (max-width: ${q(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Gv(e)}}},[`@media (max-width: ${q(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Gv(e)}}}}},wae=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}),Kv=(e,t)=>Go(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),qv=Sc(`Form`,(e,{rootPrefixCls:t})=>{let n=Kv(e,t);return[vae(n),yae(n),gae(n),bae(n),xae(n),Cae(n),Jd(n),bf]},wae,{order:-1e3}),Jv=[];function Yv(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var Xv=({help:e,helpStatus:t,errors:n=Jv,warnings:r=Jv,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=h.useContext(gm),{classNames:c,styles:l}=h.useContext(pm),u=`${s}-item-explain`,d=og(s),[f,p]=qv(s,d),g=h.useMemo(()=>Gf(s),[s]),_=Uv(n),v=Uv(r),y=_r(e)&&e!==!1,b=h.useMemo(()=>y?[Yv(e,`help`,t)]:[].concat(gr(_.map((e,t)=>Yv(e,`error`,`error`,t))),gr(v.map((e,t)=>Yv(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(ur,{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(lr,{keys:x,...Gf(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)}))})},Zv=e=>typeof e==`object`&&!!e&&e.nodeType===1,Qv=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,$v=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return Qv(n.overflowY,t)||Qv(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},ey=(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,Tae=e=>e.parentElement??(e.getRootNode().host||null),ty=(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(!Zv(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;Zv(u)&&s(u);){if(u=Tae(u),u===c){l.push(u);break}u!=null&&u===document.body&&$v(u)&&!$v(document.documentElement)||u!=null&&$v(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&&!$v(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`?ey(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:ey(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`?ey(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:ey(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},Eae=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function Dae(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(ty(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of ty(e,Eae(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var Oae=[`parentNode`],kae=`form_item`;function ny(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ry(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:Oae.includes(n)?`${kae}_${n}`:n}function iy(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 ay(e){return ny(e).join(`_`)}function oy(e,t){let n=rt(t.getFieldInstance(e));if(n)return n;let r=ry(ny(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function sy(e){let[t]=om(),n=h.useRef({}),r=h.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let r=ay(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n,...i}=t,a=oy(e,r);a&&(Dae(a,{scrollMode:`if-needed`,block:`nearest`,...i}),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);Sr(t?.focus)?t.focus():oy(e,r)?.focus?.()},getFieldInstance:e=>{let t=ay(e);return n.current[t]}},[e,t]);return[r]}var Aae=h.forwardRef((e,t)=>{let n=h.useContext(Cu),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f,labelAlign:p,labelWrap:g}=Ur(`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=ed(b),V=h.useContext(zc),H=h.useMemo(()=>A===void 0?a===void 0?!0:a:A,[A,a]),U=C??o,W=w??p,G=T??g,ee={...f,...R},K=r(`form`,_),te=og(K),[ne,re]=qv(K,te),ie={...e,size:B,disabled:x,layout:O,colon:U,requiredMark:H,labelAlign:W,labelWrap:G},ae=jr(l),oe=jr(N),[se,ce]=Nr([d,I],[u,ae,L,oe],{props:ie}),le=m(K,`${K}-${O}`,{[`${K}-hide-required-mark`]:H===!1,[`${K}-rtl`]:i===`rtl`,[`${K}-large`]:B===`large`,[`${K}-small`]:B===`small`},re,te,ne,c,v,y,se.root),[ue]=sy(S),{__INTERNAL__:de}=ue;de.name=M;let fe=h.useMemo(()=>({name:M,labelAlign:W,labelCol:E,labelWrap:G,wrapperCol:D,layout:O,colon:U,requiredMark:H,itemRef:de.itemRef,form:ue,feedbackIcons:P,tooltip:ee,classNames:se,styles:ce}),[M,W,G,E,D,O,U,H,ue,P,se,ce,ee]),pe=h.useRef(null);h.useImperativeHandle(t,()=>({...ue,nativeElement:pe.current?.nativeElement}));let me=(e,t)=>{if(e){let n={block:`nearest`};xr(e)&&(n={...n,...e}),ue.scrollToField(t,n)}},he=e=>{if(j?.(e),e.errorFields.length){let t=e.errorFields[0].name;if(k!==void 0){me(k,t);return}s!==void 0&&me(s,t)}};return h.createElement(ym.Provider,{value:F},h.createElement(wu,{disabled:x},h.createElement(Tu.Provider,{value:B},h.createElement(hm,{validateMessages:V},h.createElement(pm.Provider,{value:fe},h.createElement(vm,{status:!0},h.createElement(fm,{id:M,...z,name:M,onFinishFailed:he,form:ue,ref:pe,style:ce?.root,className:le})))))))}),jae=e=>{if(Sr(e))return e;let t=rn(e);return t.length<=1?t[0]:t},cy=()=>{let{status:e,errors:t=[],warnings:n=[]}=h.useContext(_m);return{status:e,errors:t,warnings:n}};cy.Context=_m;function Mae(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,nn.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=nn(()=>{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 Nae=()=>{let{itemRef:e}=h.useContext(pm),t=h.useRef({});return(n,r)=>{let i=r&&xr(r)&&Ve(r),a=n.join(`_`);return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Ie(e(n),i)),t.current.ref}},Pae=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},Fae=wc([`Form`,`item-item`],(e,{rootPrefixCls:t})=>Pae(Kv(e,t))),Iae=24,Lae=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(pm),{classNames:y,styles:b}=v,x=h.useMemo(()=>{let e={...i||v.wrapperCol||{}};return g===null&&!r&&!i&&v.labelCol&&[void 0].concat(gr(dg)).forEach(t=>{let n=t?[t]:[],r=on(v.labelCol,n),i=xr(r)?r:{},a=on(e,n),o=xr(a)?a:{};`span`in i&&!(`offset`in o)&&i.span<Iae&&(e=cn(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);ge(()=>{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(gm.Provider,{value:O},h.createElement(Xv,{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(pm.Provider,{value:C},h.createElement(gg,{...x,className:S},N),h.createElement(Fae,{prefixCls:t}))},Rae=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 ly(){return ly=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},ly.apply(this,arguments)}var zae=h.forwardRef((e,t)=>h.createElement(W,ly({},e,{ref:t,icon:Rae.default}))),Bae=(e,t)=>vr(e)?xr(e)&&!(0,h.isValidElement)(e)?{...t,...e}:{...t,title:e}:null,uy=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)},dy={shiftX:64,adjustY:1},fy={adjustX:1,shiftY:!0},py=[0,0],Vae={left:{points:[`cr`,`cl`],overflow:fy,offset:[-4,0],targetOffset:py},right:{points:[`cl`,`cr`],overflow:fy,offset:[4,0],targetOffset:py},top:{points:[`bc`,`tc`],overflow:dy,offset:[0,-4],targetOffset:py},bottom:{points:[`tc`,`bc`],overflow:dy,offset:[0,4],targetOffset:py},topLeft:{points:[`bl`,`tl`],overflow:dy,offset:[0,-4],targetOffset:py},leftTop:{points:[`tr`,`tl`],overflow:fy,offset:[-4,0],targetOffset:py},topRight:{points:[`br`,`tr`],overflow:dy,offset:[0,-4],targetOffset:py},rightTop:{points:[`tl`,`tr`],overflow:fy,offset:[4,0],targetOffset:py},bottomRight:{points:[`tr`,`br`],overflow:dy,offset:[0,4],targetOffset:py},rightBottom:{points:[`bl`,`br`],overflow:fy,offset:[4,0],targetOffset:py},bottomLeft:{points:[`tl`,`bl`],overflow:dy,offset:[0,4],targetOffset:py},leftBottom:{points:[`br`,`bl`],overflow:fy,offset:[-4,0],targetOffset:py}};function my(){return my=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},my.apply(this,arguments)}var Hae=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=we(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(hu,my({popupClassName:x?.root,prefixCls:a,popup:h.createElement(uy,{key:`content`,prefixCls:a,id:w,classNames:x,styles:S},v),action:n,builtinPlacements:Vae,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 hy(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}var gy=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Tc(s,`tooltip`),{arrowDistance:l=0,arrowShadow:u=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...wv(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% - ${q(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% - ${q(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 Uae(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=xr(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 _y={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`]}},Wae={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`]}},Gae=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function vy(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=hy({contentRadius:a,limitVerticalRadius:!0});return Object.keys(_y).forEach(e=>{let a={...r&&Wae[e]||_y[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,Gae.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=Uae(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var yy=h.createContext(!1),by=(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])},xy=`50%`,Kae=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]=Tc(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${q(e.calc(u).div(2).equal())} ${q(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`,xy),`var(--arrow-y, ${xy})`].join(` `)};return[{[n]:{...io(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,$d(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`},...Ec(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},gy(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}`}}}]},qae=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...hy({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Cv(Go(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Sy=(e,t,n=!0)=>Sc(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[Kae(Go(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),Of(e,`zoom-big-fast`)]},qae,{resetStyle:!1,injectStyle:n})(e,t),Jae=ns.map(e=>`${e}-inverse`),Yae=[`success`,`processing`,`error`,`default`,`warning`];function Cy(e,t=!0){return t?[].concat(gr(Jae),gr(ns)).includes(e):ns.includes(e)}function Xae(e){return Yae.includes(e)}var wy=(e,t,n)=>{let r=Cy(n),[i]=Tc(e,`tooltip`),a=m({[`${t}-${n}`]:n&&r}),o={},s={},c=qf(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}},Zae=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=h.useContext(Br),u=l(`tooltip`,t),d=l(),f=og(u),[p,g]=Sy(u,f),_=wy(d,u,a),v=_.arrowStyle,y=h.useMemo(()=>({container:{...o,..._.overlayStyle}}),[o,_.overlayStyle]),b={...e,placement:r},[x,S]=Nr([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(uy,{...e,className:p,prefixCls:u,classNames:x,styles:S},i))},Ty=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]=xc(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=Ur(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=by(c,V),W=U.show,G=p||H||`hover`,ee=y||N,K=u??!!l,te=h.useContext(yy);Lr(`Tooltip`);let ne=h.useRef(null),re=()=>{ne.current?.forceAlign()};h.useImperativeHandle(t,()=>({forceAlign:re,nativeElement:ne.current?.nativeElement,popupElement:ne.current?.popupElement}));let[ie,ae]=ye(e.defaultOpen??!1,e.open),oe=!d&&!f&&d!==0,se=e=>{ae(oe?!1:e),!oe&&E&&E(e)},ce=h.useMemo(()=>g||vy({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:_,arrowWidth:W?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,g,j,W,_]),le=h.useMemo(()=>d===0?d:f||d||``,[f,d]),ue=h.createElement(Y_,{space:!0,form:!0},Sr(le)?le():le),de={...e,trigger:G,builtinPlacements:ce,getPopupContainer:ee,destroyOnHidden:K},[fe,pe]=Nr([z,T],[B,w],{props:de}),me=P(`tooltip`,n),he=P(),ge=ie;(!(`open`in e)&&oe||te)&&(ge=!1);let _e=h.isValidElement(o)&&!gu(o)?o:h.createElement(`span`,null,o),ve=_e.props,be=!ve.className||typeof ve.className==`string`?m(ve.className,r||`${me}-open`):ve.className,xe=og(me),[Se,Ce]=Sy(me,xe,!M),we=wy(he,me,a),Te=we.arrowStyle,Ee=m(xe,Se,Ce),De=m(k,{[`${me}-rtl`]:F===`rtl`},we.className,C,Ee,L,fe.root),[Oe,ke]=Ed(`Tooltip`,A.zIndex),Ae={...pe.container,...D,...we.overlayStyle},je=h.createElement(Hae,{unique:!0,...A,zIndex:Oe,showArrow:W,placement:b,mouseEnterDelay:x,mouseLeaveDelay:S,prefixCls:me,classNames:{root:De,container:fe.container,arrow:fe.arrow,uniqueContainer:m(Ee,fe.container)},styles:{root:{...Te,...pe.root,...R,...O},container:Ae,uniqueContainer:Ae,arrow:pe.arrow},ref:ne,overlay:ue,visible:ge,onVisibleChange:se,afterVisibleChange:s,arrowContent:h.createElement(`span`,{className:`${me}-arrow-content`}),motion:{motionName:Kf(he,`zoom-big-fast`,typeof v?.motionName==`string`?v?.motionName:void 0),motionDeadline:1e3},trigger:G,builtinPlacements:ce,getTooltipContainer:ee,destroyOnHidden:K},ge?vu(_e,{className:be}):_e);return h.createElement(bd.Provider,{value:ke},je)});Ty._InternalPanelDoNotUseOrYouWillBeFired=Zae,Ty.UniqueProvider=Su;var Qae=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=$c(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:g,classNames:_,styles:v,tooltip:y}=h.useContext(pm);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=Bae(c,y);if(E){let t=h.createElement(Ty,{...E},h.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},E.icon||E.children||h.createElement(zae,null)));w=h.createElement(h.Fragment,null,w,t)}let D=s===`optional`,O=Sr(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||Kc.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(gg,{...b,className:C},h.createElement(`label`,{htmlFor:n,className:j,style:v?.label,title:typeof t==`string`?t:void 0},w))},$ae={success:K,warning:le,error:re,validating:Hd};function Ey({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(pm),d=iy(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:g,feedbackIcon:_,name:v}=h.useContext(_m),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?$ae[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(_m.Provider,{value:y},e)}function eoe(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(pm),T=y||w,E=T===`vertical`,D=h.useRef(null),O=Uv(o),k=Uv(s),A=_r(a)&&a!==!1,j=!!(A||o.length||s.length),M=!!D.current&&it(D.current),[N,P]=h.useState(null);ge(()=>{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)=>iy(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(yg,{className:`${S}-row`,...Wt(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(Qae,{htmlFor:p,...e,requiredMark:C,required:g??_,prefixCls:t,vertical:E}),h.createElement(Lae,{...e,...l,errors:O,warnings:k,prefixCls:t,status:I,help:a,marginBottom:N,onErrorVisibleChanged:F},h.createElement(mm.Provider,{value:v},h.createElement(Ey,{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 toe=`__SPLIT__`;function noe(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||Sr(r)||Sr(i)})}var roe=h.memo(e=>e.children,(e,t)=>noe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function Dy(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ioe(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(Br),{name:b}=h.useContext(pm),x=jae(c),S=Sr(x),C=h.useContext(mm),{validateTrigger:w}=h.useContext(bp),T=_r(p)?p:w,E=_r(t),D=y(`form`,a),O=og(D),[k,A]=qv(D,O);Lr(`Form.Item`);let j=h.useContext(xp),M=h.useRef(null),[N,P]=Mae({}),[F,I]=ve(()=>Dy()),L=e=>{let t=j?.getKey(e.name);if(I(e.destroy?Dy():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(gr(r)),M.current=n}C(e,n)}},R=(e,t)=>{P(n=>{let r={...n},i=[].concat(gr(e.name.slice(0,-1)),gr(t)).join(toe);return e.destroy?delete r[i]:r[i]=e,r})},[z,B]=h.useMemo(()=>{let e=gr(F.errors),t=gr(F.warnings);return Object.values(N).forEach(n=>{e.push.apply(e,gr(n.errors||[])),t.push.apply(t,gr(n.warnings||[]))}),[e,t]},[N,F.errors,F.warnings]),V=Nae();function H(i,a,o){return n&&!g?h.createElement(Ey,{prefixCls:D,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:z,warnings:B,noStyle:!0,name:t},i):h.createElement(eoe,{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(tm,{...e,messageVariables:U,trigger:f,validateTrigger:T,onMetaChange:L},(n,r,a)=>{let c=ny(t).length&&r?r.name:[],u=ry(c,b),d=l===void 0?s?.some(e=>{if(xr(e)&&e.required&&!e.warningOnly)return!0;if(Sr(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`),Re(x)&&(t.ref=V(c,x)),new Set([].concat(gr(ny(f)),gr(ny(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(roe,{control:p,update:x,childProps:n},vu(x,t))}else m=S&&(o||i)&&!E?x(a):x;return H(m,u,d)})}var Oy=ioe;Oy.useStatus=cy;var aoe=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=h.useContext(Br),i=r(`form`,e),a=h.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return h.createElement(nm,{...n},(e,n,r)=>h.createElement(gm.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function ooe(){let{form:e}=h.useContext(pm);return e}var ky=Aae;ky.Item=Oy,ky.List=aoe,ky.ErrorList=Xv,ky.useForm=sy,ky.useFormInstance=ooe,ky.useWatch=dm,ky.Provider=hm;function Ay(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function jy(e){return e?yr(e):!1}var soe=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]=Tc(f,`space-addon`);return{[t]:[{...io(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}}]}},coe=Sc(`Addon`,e=>[soe(e),cp(e,{focus:!1})]),My=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(Br),f=u(`space-addon`,a),[p,g]=coe(f),{compactItemClassnames:_,compactSize:v}=Od(f,d),y=X_(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)}),Ny=h.createContext({latestIndex:0}),loe=Ny.Provider,uoe=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=h.useContext(Ny);return vr(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},doe=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`}}}},foe=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}}}},poe=Sc(`Space`,e=>{let t=Go(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[doe(t),foe(t)]},()=>({}),{resetStyle:!1}),Py=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Ur(`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=Ay(O),A=Ay(D),j=jy(O),M=jy(D),N=rn(p,{keepEmpty:!0}),[P,F]=hd(_,S,g),I=u===void 0&&!F?`center`:u,L=b??y,R=n(`space`,v),[z,B]=poe(R),V={...e,size:l,orientation:P,align:I},[H,U]=Nr([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),ee=N.map((e,t)=>{let n=e?.key||`${G}-${t}`;return h.createElement(uoe,{prefix:R,classNames:H,styles:U,className:G,key:n,index:t,separator:L,style:U.item},e)}),K=h.useMemo(()=>({latestIndex:N.reduce((e,t,n)=>vr(t)?n:e,0)}),[N]);if(N.length===0)return null;let te={};return C&&(te.flexWrap=`wrap`),!A&&M&&(te.columnGap=D),!k&&j&&(te.rowGap=O),h.createElement(`div`,{ref:t,className:W,style:{...te,...U.root,...o,...x},...E},h.createElement(loe,{value:K},ee))});Py.Compact=jd,Py.Addon=My;var moe=e=>{let{getPrefixCls:t,direction:n}=(0,h.useContext)(Br),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=Sv(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)(_m),u=(0,h.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return h.createElement(_m.Provider,{value:u},h.createElement(Py.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))};function hoe(e){return!!(e.addonBefore||e.addonAfter)}function goe(e){return!!(e.prefix||e.suffix||e.allowClear)}function Fy(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 Iy(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=Fy(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=Fy(t,e,r),n(i);return}n(i)}function Ly(){return Ly=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},Ly.apply(this,arguments)}var Ry=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=goe(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,Ly({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(hoe(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 zy(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 By({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 Vy({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 Hy(e,t){let[n,r]=ye(e,t);return{value:n,setValue:r,formatValue:n==null?``:String(n)}}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 _oe=(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&&st(A.current,e)},{setValue:N,formatValue:P}=Hy(e.defaultValue,e.value),F=zy(v,_),{isOutOfRange:I,dataCount:L}=By({countConfig:F,value:P,maxLength:p}),R=Vy({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&&Iy(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)},ee=e=>{N(``),M(),A.current&&Iy(A.current,e,r)},K=I&&`${l}-out-of-range`;return h.createElement(Ry,Uy({},T,{prefixCls:l,className:m(f,K),handleReset:ee,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=Wt(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return h.createElement(`input`,Uy({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}))})())}),voe=`
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;
`,yoe=[`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`],Wy={},Gy;function boe(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&Wy[n])return Wy[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:yoe.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Wy[n]=s),s}function xoe(e,t=!1,n=null,r=null){Gy||(Gy=document.createElement(`textarea`),Gy.setAttribute(`tab-index`,`-1`),Gy.setAttribute(`aria-hidden`,`true`),Gy.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(Gy)),e.getAttribute(`wrap`)?Gy.setAttribute(`wrap`,e.getAttribute(`wrap`)):Gy.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=boe(e,t);Gy.setAttribute(`style`,`${s};${voe}`),Gy.value=e.value||e.placeholder||``;let c,l,u,d=Gy.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){Gy.value=` `;let e=Gy.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 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 qy=0,Jy=1,Yy=2,Soe=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]=ye(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(Yy),[T,E]=h.useState(),D=()=>{w(qy)};ge(()=>{S&&D()},[i,b,x,S]),ge(()=>{if(C===qy)w(Jy);else if(C===Jy){let e=xoe(y.current,!1,b,x);w(Yy),E(e)}},[C]);let O=h.useRef(void 0),k=()=>{O.current!==void 0&&nn.cancel(O.current)},A=e=>{C===Yy&&(o?.(e),a&&(k(),O.current=nn(()=>{D()})))};h.useEffect(()=>k,[]);let j=S?T:null,M={...c,...j};return(C===qy||C===Jy)&&(M.overflowY=`hidden`,M.overflowX=`hidden`),h.createElement(Fl,{onResize:A,disabled:!(a||o)},h.createElement(`textarea`,Ky({},f,{ref:y,style:M,className:m(n,s,{[`${n}-disabled`]:l}),disabled:l,value:_,onChange:v})))});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 Coe=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}=Hy(e,t),z=zy(f,d),{isOutOfRange:B,dataCount:V}=By({countConfig:z,value:R,maxLength:o}),H=Vy({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),Iy(e.currentTarget,e,i,n)},G=e=>{j.current=!0,s?.(e)},ee=e=>{j.current=!1,W(e,e.currentTarget.value),c?.(e)},K=e=>{W(e,e.target.value)},te=e=>{e.key===`Enter`&&C&&!e.nativeEvent.isComposing&&C(e),E?.(e)},ne=e=>{A(!0),n?.(e)},re=e=>{A(!1),r?.(e)},ie=e=>{L(``),U();let t=I();t&&Iy(t,e,i)},ae=l;z.show&&(ae=h.createElement(h.Fragment,null,ae,h.createElement(`span`,{className:m(`${u}-data-count`,y?.count),style:b?.count},V)));let oe=e=>{x?.(e),I()?.style.height&&N(!0)},se=!T&&!d&&!a;return h.createElement(Ry,{ref:P,value:R,allowClear:a,handleReset:ie,suffix:ae,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&&!se?{height:`auto`}:{}},dataAttrs:typeof V==`string`?{affixWrapper:{"data-count":V}}:void 0,styles:b,hidden:v,readOnly:w,onClear:S},h.createElement(Soe,Xy({},D,{autoSize:T,maxLength:o,onKeyDown:te,onChange:K,onFocus:ne,onBlur:re,onCompositionStart:G,onCompositionEnd:ee,className:m(y?.textarea),style:{resize:g?.resize,...b?.textarea},disabled:_,prefixCls:u,onResize:oe,ref:F,readOnly:w})))}),woe=_oe;function Zy(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 Toe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Qy=(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}=Ur(`input`),j=C(`input`,n),M=(0,h.useRef)(null),N=og(j),[P,F]=xv(j,v);Sv(j,N);let{compactSize:I,compactItemClassnames:L}=Od(j,w),R=ed(e=>a??I??e),z=h.useContext(Cu),B=o??z,V={...e,size:R,disabled:B},H=jr(O),U=jr(g),[W,G]=Nr([k,b],[A,H,_,U],{props:V}),{status:ee,hasFeedback:K,feedbackIcon:te}=(0,h.useContext)(_m),ne=Z_(ee,i);(0,h.useRef)(Toe(e)||!!K);let re=Zy(M,!0),ie=e=>{re(),s?.(e)},ae=e=>{re(),c?.(e)},oe=e=>{re(),y?.(e)},se=(K||l)&&h.createElement(h.Fragment,null,l,K&&te),ce=nd({allowClear:u,contextAllowClear:T,componentName:`Input`}),[le,ue]=bm(`input`,x,r);return h.createElement(woe,{ref:Ie(t,M),prefixCls:j,autoComplete:E,...S,disabled:B,onBlur:ie,onFocus:ae,style:G.root,styles:G,suffix:se,allowClear:ce,className:m(p,v,F,N,L,D,W.root),onChange:oe,addonBefore:f&&h.createElement(Y_,{form:!0,space:!0},f),addonAfter:d&&h.createElement(Y_,{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}-${le}`]:ue},X_(j,ne)),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-${le}`]:ue},X_(`${j}-group-wrapper`,ne,K),P)}})}),Eoe=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}}}},Doe=Sc([`Input`,`OTP`],e=>Eoe(Go(e,$_(e))),ev),Ooe=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(Br),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)},_=()=>{nn(()=>{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(Qy,{"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 $y(e){return(e||``).split(``)}var koe=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=Sr(r)?r(t):r;return o?h.createElement(`span`,{className:m(`${n}-separator`,i),style:a},o):null},Aoe=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}=Ur(`otp`),N=k(`otp`,n),P={...e,length:r},F=jr(j),I=jr(T),[L,R]=Nr([D,S],[O,F,C,I],{props:P}),z=Yt(E,{aria:!0,data:!0,attr:!0}),[B,V]=Doe(N),H=ed(e=>i??e),U=h.useContext(_m),W=Z_(U.status,f),G=h.useMemo(()=>({...U,status:W,hasFeedback:!1,feedbackIcon:null}),[U,W]),ee=h.useRef(null),K=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{K.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)K.current[e]?.blur()},nativeElement:ee.current}));let te=e=>c?c(e):e,[ne,re]=h.useState(()=>$y(te(a||``)));h.useEffect(()=>{o!==void 0&&re($y(o))},[o]);let ie=pe(e=>{re(e),y&&y(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>ne[t]!==e)&&s(e.join(``))}),ae=pe((e,t)=>{let n=gr(ne);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat($y(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=$y(te(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),oe=(e,t)=>{let n=ae(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&K.current[i]?.focus(),ie(n)},se=e=>{K.current[e]?.focus()},ce=(e,t)=>{for(let e=0;e<t;e+=1)if(!K.current[e]?.input?.value){K.current[e]?.focus();break}b?.(e)},le={variant:u,disabled:d,status:W,mask:g,type:_,inputMode:x,autoComplete:v};return h.createElement(`div`,{...z,ref:ee,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(_m.Provider,{value:G},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=ne[t]||``;return h.createElement(h.Fragment,{key:n},h.createElement(Ooe,{ref:e=>{K.current[t]=e},index:t,size:H,htmlSize:1,className:m(L.input,`${N}-input`),style:R.input,onChange:oe,value:i,onActiveChange:se,autoFocus:t===0&&p,onFocus:e=>ce(e,t),...le}),t<r-1&&h.createElement(koe,{separator:l,index:t,prefixCls:N,className:m(L.separator),style:R.separator}))})))}),joe=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 eb(){return eb=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},eb.apply(this,arguments)}var Moe=h.forwardRef((e,t)=>h.createElement(W,eb({},e,{ref:t,icon:joe.default}))),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:`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 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 nb=h.forwardRef((e,t)=>h.createElement(W,tb({},e,{ref:t,icon:Noe.default}))),Poe=e=>e?h.createElement(nb,null):h.createElement(Moe,null),Foe={click:`onClick`,hover:`onMouseOver`},Ioe=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}=Ur(`inputPassword`),[S]=$c(`global`),C=h.useContext(Cu),w=n??C,T={...e,disabled:w},[E,D]=Nr([y,d],[b,f],{props:T}),O=xr(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=Zy(j),N=()=>{if(w)return;k&&M();let e=!k;A(e),xr(i)&&i.onVisibleChange?.(e)},P=e=>{let t=Foe[r]||``,n=(a||x||Poe)(k),o=xr(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(Qy,{ref:Ie(t,j),...z})}),Loe=e=>{let{componentCls:t,antCls:n,calc:r,max:i}=e,a=`${t}-btn`,[o,s]=Tc(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`)]:q(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`)]:q(e.controlHeightLG)},[`&${t}-small`]:{[o(`btn-height`)]:q(e.controlHeightSM)},[`&${t}-small ${a}`]:{minHeight:l,[`&${e.antCls}-btn-icon-only`]:{minWidth:l}}}}},Roe=Sc([`Input`,`Search`],e=>Loe(Go(e,$_(e))),ev),zoe=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}=Ur(`inputSearch`),j={...e,enterButton:s},[M,N]=Nr([O,b],[k,x],{props:j},{button:{_default:`root`}}),P=h.useRef(!1),F=T(`input-search`,n),I=T(`input`,r),[L,R]=Roe(F),{compactSize:z}=Od(F,w),B=ed(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))},ee=typeof s==`boolean`?td(c,A,h.createElement(Nv,null)):null,K=`${F}-btn`,te=m(K,{[`${K}-${v}`]:v}),ne,re=s||{},ie=re.type&&re.type.__ANT_BUTTON===!0;if(ie||re.type===`button`){let e=re.props;ne=vu(re,{onMouseDown:U,onClick:e=>{re?.props?.onClick?.(e),W(e)},key:`enterButton`,...ie?{className:m(te,e.className),size:B}:{}})}else ne=h.createElement(gp,{classNames:M.button,styles:N.button,className:te,color:s?`primary`:`default`,size:B,disabled:d,key:`enterButton`,onMouseDown:U,onClick:W,loading:u,icon:ee,variant:v===`borderless`||v===`filled`||v===`underlined`?`text`:s?`solid`:void 0},s);l&&(ne=[ne,vu(l,{key:`addonAfter`})]);let ae=m(F,R,{[`${F}-rtl`]:w===`rtl`,[`${F}-${B}`]:!!B,[`${F}-with-button`]:!!s},i,E,L,M.root),oe=e=>{P.current=!0,g?.(e)},se=e=>{P.current=!1,_?.(e)},ce=Yt(C,{data:!0}),le=Wt({...C,classNames:Wt(M,[`button`,`root`]),styles:Wt(N,[`button`,`root`]),prefixCls:I,type:`search`,size:B,variant:v,onPressEnter:G,onCompositionStart:oe,onCompositionEnd:se,onChange:H,disabled:d},Object.keys(ce));return h.createElement(jd,{className:ae,style:{...N.root,...D,...o},...ce,hidden:S},h.createElement(Qy,{ref:Ie(V,t),...le}),ne)}),Boe=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}}}}}},Voe=Sc([`Input`,`TextArea`],e=>Boe(Go(e,$_(e))),ev,{resetFont:!1}),rb=(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}=Ur(`textArea`),O=h.useContext(Cu),k=a??O,{status:A,hasFeedback:j,feedbackIcon:M}=h.useContext(_m),N=Z_(A,o),P=jr(T),F=jr(d),[I,L]=Nr([E,c],[D,P,f,F],{props:e}),R=h.useRef(null);h.useImperativeHandle(t,()=>({resizableTextArea:R.current?.resizableTextArea,focus:e=>{st(R.current?.resizableTextArea?.textArea,e)},blur:()=>R.current?.blur(),nativeElement:R.current?.nativeElement||null}));let z=b(`input`,n),B=og(z),[V,H]=xv(z,l);Voe(z,B);let{compactSize:U,compactItemClassnames:W}=Od(z,x),G=ed(e=>i??U??e),[ee,K]=bm(`textArea`,p,r),te=nd({allowClear:s,contextAllowClear:S,componentName:`TextArea`}),[ne,re]=h.useState(!1),[ie,ae]=h.useState(!1),oe=e=>{re(!0),_?.(e);let t=()=>{re(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},se=e=>{if(v?.(e),ne&&Sr(getComputedStyle)){let e=R.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ae(!0)}};return h.createElement(Coe,{autoComplete:C,...y,style:L.root,styles:L,disabled:k,allowClear:te,className:m(H,B,u,l,W,w,I.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:ie}),classNames:{...I,textarea:m({[`${z}-sm`]:G===`small`,[`${z}-lg`]:G===`large`},V,I.textarea,ne&&`${z}-mouse-active`),variant:m({[`${z}-${ee}`]:K},X_(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:se,onMouseDown:oe})}),ib=Qy;ib.Group=moe,ib.Search=zoe,ib.TextArea=rb,ib.Password=Ioe,ib.OTP=Aoe;var Hoe=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 ab(){return ab=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},ab.apply(this,arguments)}var Uoe=h.forwardRef((e,t)=>h.createElement(W,ab({},e,{ref:t,icon:Hoe.default}))),Woe=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 ob(){return ob=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},ob.apply(this,arguments)}var Goe=h.forwardRef((e,t)=>h.createElement(W,ob({},e,{ref:t,icon:Woe.default})));function sb(){return typeof BigInt==`function`}function cb(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function lb(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 ub(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes(`e`)}function db(e){var t=vo(e.toLowerCase().split(`e`),2),n=t[0],r=t[1],i=r===void 0?`0`:r,a=n.startsWith(`-`),o=vo((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 Koe(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 fb(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function pb(e){var t=String(e);return ub(e)?fb(db(t)):t.includes(`.`)&&hb(t)?t.length-t.indexOf(`.`)-1:0}function mb(e){var t=String(e);if(ub(e)){if(e>2**53-1)return String(sb()?BigInt(e).toString():2**53-1);if(e<-(2**53-1))return String(sb()?BigInt(e).toString():-(2**53-1));var n=db(t),r=fb(n);t=r>100?Koe(n):e.toFixed(r)}return lb(t).fullStr}function hb(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 qoe=function(){function e(t){if(wo(this,e),xo(this,`origin`,``),xo(this,`negative`,void 0),xo(this,`integer`,void 0),xo(this,`decimal`,void 0),xo(this,`decimalLen`,void 0),xo(this,`empty`,void 0),xo(this,`nan`,void 0),cb(t)){this.empty=!0;return}if(this.origin=String(t),t===`-`||Number.isNaN(t)){this.nan=!0;return}var n=t;if(ub(n)&&(n=Number(n)),n=typeof n==`string`?n:mb(n),hb(n)){var r=lb(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 Eo(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=lb(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()?``:lb(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}]),e}(),Joe=function(){function e(t){if(wo(this,e),xo(this,`origin`,``),xo(this,`number`,void 0),xo(this,`empty`,void 0),cb(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Eo(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(pb(this.number),pb(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(pb(this.number),pb(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()?``:ub(this.number)&&pb(this.number)>100?String(this.number):mb(this.number):this.origin}}]),e}();function gb(e){return sb()?new qoe(e):new Joe(e)}function _b(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===``)return``;var i=lb(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?_b(gb(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 vb=gb;function Yoe(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){Rt(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}return[r,i]}var Xoe=200,Zoe=600;function yb({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,Xoe)}c.current=setTimeout(t,Zoe)};h.useEffect(()=>()=>{u(),l.current.forEach(e=>{nn.cancel(e)})},[]);let f=`${e}-action`,p=m(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:r},i),g=()=>l.current.push(nn(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 bb(e){let t=typeof e==`number`?mb(e):lb(e).fullStr;return t.includes(`.`)?lb(t.replace(/(\d)\.(\d)/g,`$1$2.`)).fullStr:e+`0`}var Qoe=(()=>{let e=(0,h.useRef)(0),t=()=>{nn.cancel(e.current)};return(0,h.useEffect)(()=>t,[]),n=>{t(),e.current=nn(()=>{n()})}});function xb(){return xb=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},xb.apply(this,arguments)}var Sb=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),Cb=e=>{let t=vb(e);return t.isInvalidate()?null:t},$oe=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),ee=h.useRef(!1),K=h.useRef(null),te=h.useRef(null);h.useImperativeHandle(t,()=>Xt(te.current,{focus:e=>{st(te.current,e)},blur:()=>{te.current?.blur()},nativeElement:K.current}));let[ne,re]=h.useState(()=>vb(f??d));function ie(e){f===void 0&&re(e)}let ae=h.useCallback((e,t)=>{if(!t)return D>=0?D:Math.max(pb(e),pb(u))},[D,u]),oe=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]),se=h.useRef(``),ce=h.useCallback((e,t)=>{if(E)return E(e,{userTyping:t,input:String(se.current)});let n=typeof e==`number`?mb(e):e;if(!t){let e=ae(n,t);hb(n)&&(O||e>=0)&&(n=_b(n,O||`.`,e))}return n},[E,ae,O]),[le,ue]=h.useState(()=>{let e=d??f;return ne.isInvalidate()&&[`string`,`number`].includes(typeof e)?Number.isNaN(e)?``:e:ce(ne.toString(),!1)});se.current=le;function de(e,t){ue(ce(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}let fe=h.useMemo(()=>Cb(l),[l,D]),me=h.useMemo(()=>Cb(c),[c,D]),he=h.useMemo(()=>!fe||!ne||ne.isInvalidate()?!1:fe.lessEquals(ne),[fe,ne]),ge=h.useMemo(()=>!me||!ne||ne.isInvalidate()?!1:ne.lessEquals(me),[me,ne]),[ve,ye]=Yoe(te.current,H),be=e=>fe&&!e.lessEquals(fe)?fe:me&&!me.lessEquals(e)?me:null,xe=e=>!be(e),Se=(e,t)=>{let n=e,r=xe(n)||n.isEmpty();if(!n.isEmpty()&&!t&&(n=be(n)||n,r=!0),!g&&!p&&r){let e=n.toString(),r=ae(e,t);return r>=0&&(n=vb(_b(e,`.`,r)),xe(n)||(n=vb(_b(e,`.`,r,!0)))),n.equals(ne)||(ie(n),k?.(n.isEmpty()?null:Sb(w,n)),f===void 0&&de(n,t)),n}return ne},Ce=Qoe(),we=e=>{if(ve(),se.current=e,ue(e),!G.current){let t=vb(oe(e));t.isNaN()||Se(t,!0)}A?.(e),Ce(()=>{let t=e;T||(t=e.replace(/。/g,`.`)),t!==e&&we(t)})},Te=()=>{G.current=!0},Ee=()=>{G.current=!1,we(te.current.value)},De=e=>{we(e.target.value)},Oe=pe((e,t)=>{if(e&&he||!e&&ge)return;W.current=!1;let n=vb(ee.current?bb(u):u);e||(n=n.negate());let r=Se((ne||vb(0)).add(n.toString()),!1);M?.(Sb(w,r),{offset:ee.current?bb(u):u,type:e?`up`:`down`,emitter:t}),te.current?.focus()}),ke=e=>{let t=vb(oe(le)),n;n=t.isNaN()?Se(ne,e):Se(t,e),f===void 0?n.isNaN()||de(n,!1):de(ne,!1)},Ae=()=>{W.current=!0},je=e=>{let{key:t,shiftKey:n}=e;W.current=!0,ee.current=n,t===`Enter`&&(G.current||(W.current=!1),ke(!1),j?.(e)),y!==!1&&!G.current&&[`Up`,`ArrowUp`,`Down`,`ArrowDown`].includes(t)&&(Oe(t===`Up`||t===`ArrowUp`,`keyboard`),e.preventDefault())},Me=()=>{W.current=!1,ee.current=!1};h.useEffect(()=>{if(b&&H){let e=e=>{Oe(e.deltaY<0,`wheel`),e.preventDefault()},t=te.current;if(t)return t.addEventListener(`wheel`,e,{passive:!1}),()=>t.removeEventListener(`wheel`,e)}});let Ne=()=>{B&&ke(!1),U(!1),W.current=!1},Pe=e=>{te.current&&e.target!==te.current&&(te.current.focus(),e.preventDefault()),N?.(e)};_e(()=>{ne.isInvalidate()||de(ne,!1)},[D,E]),_e(()=>{let e=vb(f);re(e);let t=vb(oe(le));(!e.equals(t)||!W.current||E)&&de(e,W.current)},[f]),_e(()=>{E&&ye()},[le]);let Fe={prefixCls:r,onStep:Oe,className:o?.action,style:s?.action},Ie=h.createElement(yb,xb({},Fe,{action:`up`,disabled:he}),_),Le=h.createElement(yb,xb({},Fe,{action:`down`,disabled:ge}),v);return h.createElement(`div`,{ref:K,className:m(r,`${r}-mode-${n}`,i,o?.root,{[`${r}-focused`]:H,[`${r}-disabled`]:p,[`${r}-readonly`]:g,[`${r}-not-a-number`]:ne.isNaN(),[`${r}-out-of-range`]:!ne.isInvalidate()&&!xe(ne)}),style:{...s?.root,...a},onMouseDown:Pe,onMouseUp:F,onMouseLeave:I,onMouseMove:L,onMouseEnter:R,onMouseOut:z,onClick:P,onFocus:()=>{U(!0)},onBlur:Ne,onKeyDown:je,onKeyUp:Me,onCompositionStart:Te,onCompositionEnd:Ee,onBeforeInput:Ae},n===`spinner`&&x&&Le,S!==void 0&&h.createElement(`div`,{className:m(`${r}-prefix`,o?.prefix),style:s?.prefix},S),h.createElement(`input`,xb({autoComplete:`off`,role:`spinbutton`,"aria-valuemin":c,"aria-valuemax":l,"aria-valuenow":ne.isInvalidate()?null:ne.toString(),step:u,ref:te,className:m(`${r}-input`,o?.input),style:s?.input,value:le,onChange:De,disabled:p,readOnly:g},V)),C!==void 0&&h.createElement(`div`,{className:m(`${r}-suffix`,o?.suffix),style:s?.suffix},C),n===`spinner`&&x&&Ie,n===`input`&&x&&h.createElement(`div`,{className:m(`${r}-actions`,o?.actions),style:s?.actions},Ie,Le))}),ese=e=>{let t=e.handleVisible??`auto`,n=e.controlHeightSM-e.lineWidth*2;return{...ev(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ps(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(t===!0),handleVisibleWidth:t===!0?n:0}},tse=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=`${q(n)} ${r} ${w}`,[k,A]=Tc(D,`input-number`);return[{[t]:{...io(e),...bv(e),[k(`input-padding-block`)]:q(v),[k(`input-padding-inline`)]:q(_),display:`inline-flex`,width:C,margin:0,paddingBlock:0,borderRadius:i,...iv(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...fv(e,{[`${t}-actions`]:{background:T,[`${t}-action-down`]:{borderBlockStart:O}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...gv(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...lv(e),[`&${t}-borderless`]:{paddingBlock:0,[k(`input-padding-block`)]:q(e.calc(v).add(n).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[k(`input-padding-block`)]:q(e.calc(l).add(n).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[k(`input-padding-block`)]:q(e.calc(u).add(n).equal())},"&-rtl":{direction:`rtl`,[`${t}-input`]:{direction:`rtl`}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:s}},[`${t}-input`]:{...io(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`,..._v(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`]:{...ao(),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`)]:q(u),[k(`input-padding-inline`)]:q(d),paddingBlock:0,fontSize:o,lineHeight:E},"&-sm":{[k(`input-padding-block`)]:q(l),[k(`input-padding-inline`)]:q(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}}}}]},nse=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},rse=Sc(`InputNumber`,e=>{let t=Go(e,$_(e));return[tse(t),nse(t),cp(t)]},ese,{unitless:{handleOpacity:!0},resetFont:!1}),ise=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}=Ur(`inputNumber`),k=h.useContext(Cu),A=a??k,j=h.useMemo(()=>!g||A||f?!1:g,[g,A,f]),{compactSize:M,compactItemClassnames:N}=Od(o,w),P=S===`spinner`?h.createElement(Nm,null):h.createElement(Goe,null),F=S===`spinner`?h.createElement(Uoe,null):h.createElement(jv,null),I=typeof j==`boolean`?j:void 0;xr(j)&&(P=j.upIcon||P,F=j.downIcon||F);let{hasFeedback:L,isFormItemInput:R,feedbackIcon:z}=h.useContext(_m),B=ed(e=>i??M??e),[V,H]=bm(`inputNumber`,_,d),U=L&&h.createElement(h.Fragment,null,z),W={...e,size:B,disabled:A,controls:j},G=jr(E),ee=jr(y),[K,te]=Nr([O,b],[D,G,x,ee],{props:W});return h.createElement($oe,{ref:n,mode:S,disabled:A,className:m(v,r,K.root,T,N,X_(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:te.root,upHandler:P,downHandler:F,prefixCls:o,readOnly:f,controls:I,prefix:l,suffix:U||u,classNames:K,styles:te,...C})}),wb=h.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:r,prefixCls:i,className:a,status:o,rootClassName:s,...c}=e,{getPrefixCls:l}=Ur(`inputNumber`),u=l(`input-number`,i),{status:d}=h.useContext(_m),f=Z_(d,o),p=og(u),[g,_]=rse(u,p),v=n||r,y=h.createElement(ise,{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(My,{className:m(`${u}-addon`,_,g),variant:e.variant,disabled:e.disabled,status:f},h.createElement(Y_,{form:!0},t)):null,i=t(n),a=t(r);return h.createElement(jd,{rootClassName:s},i,y,a)}return y}),Tb=wb;Tb._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(Uu,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(wb,{...e}));var ase=h.createContext({});function ose(){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 sse(e,t,n=0){let[r,i]=ose(),[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 Eb=8,Db=3,cse=e=>{let t={offset:Eb,threshold:Db};return e&&typeof e==`object`&&(t.offset=e.offset??Eb,t.threshold=e.threshold??Db),[!!e,t]};function lse(e,t,n){let r=Math.max(typeof e==`number`?e:0,0)*1e3,i=pe(t),a=pe(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=nn(t))}return t(),()=>{nn.cancel(e)}},[r,o]),[f,d]}function use(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(()=>Yt(n,!0),[n]);return[!!e,n,r]}var dse=({className:e,style:t,percent:n})=>h.createElement(`progress`,{className:e,max:`100`,value:n,style:t});function Ob(){return Ob=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},Ob.apply(this,arguments)}var kb=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]=use(p),P=pe(()=>{M.onClose?.(),D?.()}),[F,I]=h.useState(!1),[L,R]=lse(b,P,k),z=100-Math.min(Math.max(O*100,0),100),B=s?.progress||dse;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 ee=g??W.current,K=_??G.current??0,te=c==null?null:h.createElement(`div`,{className:m(`${A}-title`,a?.title),style:o?.title},c),ne=l==null?null:h.createElement(`div`,{className:m(`${A}-description`,a?.description),style:o?.description},l),re=te!==null,ie=ne!==null,ae=null;ae=re&&ie?h.createElement(`div`,{className:m(`${A}-section`,a?.section),style:o?.section},te,ne):te||ne,u!=null&&(ae=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),ae));let oe=d?h.createElement(`div`,{className:m(`${A}-actions`,a?.actions),style:o?.actions},d):null,se={"--notification-index":K,...o?.root,...i};ee!==void 0&&(se[`--notification-y`]=`${ee}px`);let ce=f??y?.role??`alert`;return h.createElement(`div`,Ob({},y,{ref:t,role:ce,"data-notification-index":K,className:m(A,r,a?.root,{[`${A}-closable`]:j,[`${A}-stack-in-threshold`]:v}),style:se,onClick:w,onMouseEnter:V,onMouseLeave:H}),ae,oe,j&&h.createElement(`button`,Ob({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}))}),Ab=h.createContext({}),fse=({children:e,classNames:t})=>{let n=h.useMemo(()=>({classNames:t}),[t]);return h.createElement(Ab.Provider,{value:n},e)};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 pse=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`,jb({},c,{className:m(l,`${l}-${d}`,o),style:f,ref:t}))});function Mb(){return Mb=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},Mb.apply(this,arguments)}var Nb=[`wrapper`,`root`,`icon`,`section`,`title`,`description`,`actions`,`close`,`progress`];function mse(e){return Nb.reduce((t,n)=>(t[n]=m(...e.map(e=>e?.[n])),t),{})}function hse(e){return Nb.reduce((t,n)=>(t[n]=Object.assign({},...e.map(e=>e?.[n])),t),{})}function gse(e,t){let n=String(t),r=e.findIndex(e=>e.key===n);if(r!==-1)return e.length-r-1}var _se=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=Le(c,h.useCallback(e=>{f(b,e)},[f,b]));return h.createElement(kb,Mb({},y,g,{ref:x,className:m(r?.notice,t.className,o),style:{...s,...t.style},classNames:mse([i,t.classNames]),styles:hse([a,t.styles]),components:{...n,...t.components},hovering:u&&l,pauseOnHover:t.pauseOnHover??d,onClose:()=>{t.onClose?.(),p?.(_)}}))},Pb=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(Ab),_=h.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),v=typeof c==`function`?c(l):c,[y,{offset:b,threshold:x}]=cse(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]=sse(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(pse,{listPrefixCls:F,height:j,topNoticeHeight:M,topNoticeWidth:N,className:i?.listContent,style:a?.listContent,ref:O},h.createElement(lr,Mb({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=gse(_,l),p=y&&d!==void 0&&d<x;return h.createElement(_se,{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})})))},vse=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=pe(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,Sn.createPortal)(h.createElement(h.Fragment,null,S.map(e=>{let t=h.createElement(Pb,{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)}),yse=()=>document.body,Fb=0;function bse(...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 xse(e={}){let{getContainer:t=yse,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(vse,{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=pe(e=>{let t=bse(y,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${Fb}`,Fb+=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 Sse=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(`, `)}},Ib=(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]=Tc(r,`notification`);return{[y]:{position:`absolute`,width:t.width,maxWidth:`calc(100vw - ${q(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`,...Sse(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}}}},Lb=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{...Ib(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},...lo(e)},[`${C}-progress`]:{position:`absolute`,bottom:0,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${q(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}}},Cse=e=>{let{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,a=Lb(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`}}}},wse=e=>{let{componentCls:t}=e;return{[t]:Lb(e)}},Tse=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],Ese=`--notification-margin-edge`,Dse=(e,t)=>({blockEnd:e===`top`?`bottom`:`top`,inlineEnd:t===`left`?`right`:`left`}),Rb=e=>`translate3d(${e?.x??`0`}, ${e?.y??`0`}, 0) scale(var(--notification-scale, 1))`,Ose=(e,t)=>{let n=e.startsWith(`bottom`)?`bottom`:`top`,r=e.endsWith(`Right`)?`right`:`left`,{blockEnd:i,inlineEnd:a}=Dse(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}},kse=e=>e===`bottom`?`column-reverse`:`column`,Ase=e=>{let t=`var(${Ese}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},jse=e=>e===`bottom`?`center top`:`center bottom`,zb=e=>q(e.calc(e.marginXXL).mul(-1).equal()),Mse=e=>{let t=zb(e);return`inset(${t} ${t} ${t} ${t})`},Nse=(e,t)=>{let n=zb(e);return t===`bottom`?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},Pse=(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=Rb(t.motionOffset),f=Rb(t.baseMotionOffset),p=jse(i);return{[`&${n}-${r}`]:{[i]:Ase(i),[a]:`auto`,display:`flex`,flexDirection:kse(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:Nse(e,i)},[`${l}[data-notification-index='0']`]:{clipPath:Mse(e)}}}}},Fse=(e,t=Tse)=>{let{notificationMotionOffset:n}=e,r=q(n);return{...t.reduce((t,n)=>({...t,...Pse(e,Ose(n,r))}),{})}},Ise=e=>{let{componentCls:t}=e;return{[t]:Fse(e)}},Lse=3,Bb=e=>({zIndexPopup:e.zIndexPopupBase+Sd+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Vb=e=>{let t=e.paddingMD,n=e.paddingLG;return Go(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:`${q(e.paddingMD)} ${q(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},Rse=e=>`inset(${e} ${e} ${e} ${e})`,zse=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`}}},Bse=(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??Lse)+1})`,l=Rse(q(e.calc(e.marginXXL).mul(-1).equal()));return{[n]:{...io(e),[i]:q(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}},...zse(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`}}}}};wc([`Notification`,`PurePanel`],e=>Cse(Vb(e)),Bb);var Hb=(e,t)=>{let n=t.itemStyle??wse;return[Bse(e,t),n(e),Ise(e)]};Sc(`Notification`,e=>Hb(Vb(e),{listWidthKey:`width`}),Bb);var Ub=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return Go(Vb(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},Wb=e=>({zIndexPopup:e.zIndexPopupBase+Sd+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Gb=e=>{let{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return Ib(e,{width:`max-content`,iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:`center`,gap:e.marginXS},noticeStyle:{zIndex:1}})},Vse=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,{"&::after":i,...a}=Gb(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) - ${q(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${q(e.margin)})`},"&::after":{...o,zIndex:-2,top:`var(--top-notificiation-height)`,width:`calc(var(--top-notificiation-width) - ${q(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:`translateX(-50%) translateY(0)`}}}}}}},Hse=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=Gb(e);return{[`${n}-pure-panel`]:{width:`max-content`,maxWidth:`100%`,...r,[n]:{...r[n],position:`relative`,width:`max-content`,maxWidth:`100%`}}}},Use=wc([`Message`,`PurePanel`],e=>Hse(Ub(e)),Wb),Wse=e=>({[e.componentCls]:Gb(e)}),Kb=Sc(`Message`,e=>{let t=Ub(e);return[Hb(t,{stackVisibleCount:1,itemStyle:Wse}),Vse(t)]},Wb),Gse={info:h.createElement(fe,null),success:h.createElement(K,null),error:h.createElement(re,null),warning:h.createElement(le,null),loading:h.createElement(Hd,null)},qb=(e,t)=>t||e&&Gse[e]||null,Kse=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}=Ur(`message`),_=t||u(`message`),v=`${_}-notice`,y=og(_),[b,x]=Kb(_,y),[S,C]=Nr([p,s],[g,c],{props:e}),w=qb(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(Use,{prefixCls:_}),h.createElement(kb,{...l,prefixCls:_,className:d,style:{...f,...r},duration:null,icon:w,title:o,classNames:E,styles:D}))},qse=e=>{let{items:t,classNames:n,style:r}=e,{getPrefixCls:i}=Ur(`message`),a=i(`message`),o=og(a),[s,c]=Kb(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:qb(i),title:t,className:`${l}-${i}`,classNames:{wrapper:`${a}-${i}`,icon:o}}});return h.createElement(Pb,{prefixCls:a,placement:`top`,configList:u,className:m(s,c,o),classNames:{...n,wrapper:n?.wrapper,title:n?.title},style:r,stack:!1})},Jse=(e,t)=>h.useMemo(()=>{let n=e??t;return n?{...xr(t)?t:{},...xr(n)?n:{}}:!1},[e,t]);function Yse(e,t){return{..._r(e)&&{"--notification-top":q(e)},..._r(t)&&{"--notification-bottom":q(t)}}}function Xse(e,t){return{motionName:t??`${e}-fade`}}function Jb(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 Zse=8,Qse=3,$se=!1,ece=({children:e,prefixCls:t})=>{let n=og(t),[r,i]=Kb(t,n);return h.createElement(fse,{classNames:{list:m(r,i,n)}},e)},tce=(e,{prefixCls:t,key:n})=>h.createElement(ece,{prefixCls:t,key:n},e),nce=h.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=Qse,rtl:s,classNames:c,styles:l,transitionName:u,pauseOnHover:d=!0,stack:f,onAllRemoved:p}=e,{getPrefixCls:g,direction:_,getPopupContainer:v}=Ur(`message`),{message:y}=h.useContext(Br),b=r||g(`message`),[x,S]=Nr([y?.classNames,c],[y?.styles,l],{props:e}),[C,w]=xse({prefixCls:b,style:()=>Yse(n??Zse),className:()=>m({[`${b}-rtl`]:s??_===`rtl`}),motion:()=>Xse(b,u),closable:!1,duration:o,getContainer:()=>i?.()||v?.()||document.body,maxCount:a,onAllRemoved:p,classNames:x,styles:S,renderNotifications:tce,pauseOnHover:d,stack:Jse(f,$se)});return h.useImperativeHandle(t,()=>({...C,prefixCls:b,message:y})),w}),Yb=0;function Xb(e){let t=h.useRef(null);return Lr(`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;_r(x)||(Yb+=1,x=`antd-message-${Yb}`);let S={...e,...r},C=Mr(v,{props:S}),w=Mr(y,{props:S}),T=qb(f,d),E=f?`${l}-icon-${f}`:void 0;return Jb(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=xr(t)&&`content`in t?t:{content:t};let o,s;return Sr(n)?s=n:(o=n,s=i),r({onClose:s,duration:o,...a,type:e})}}),i},[]),h.createElement(nce,{key:`message-holder`,...e,ref:t})]}function rce(e){return Xb(e)}var Zb=null,Qb=e=>e(),$b=[],ex={};function tx(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i,stack:a}=ex,o=e?.()||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i,stack:a}}var ice=h.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,h.useContext)(Br),a=ex.prefixCls||i(`message`),o=(0,h.useContext)(ase),[s,c]=Xb({...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}),ace=h.forwardRef((e,t)=>{let[n,r]=h.useState(tx),i=()=>{r(tx)};h.useEffect(i,[]);let a=Vu(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=h.createElement(ice,{ref:t,sync:i,messageConfig:n});return h.createElement(Uu,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),nx=()=>{if(!Zb){let e=document.createDocumentFragment(),t={fragment:e};Zb=t,Qb(()=>{bn(h.createElement(ace,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,nx())})}}),e)});return}Zb.instance&&($b.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:Qb(()=>{let t=Zb.instance.open({...ex,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:Qb(()=>{Zb?.instance.destroy(e.key)});break;default:Qb(()=>{var n;let r=(n=Zb.instance)[t].apply(n,gr(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),$b=[])};function oce(e){ex={...ex,...e},Qb(()=>{Zb?.sync?.()})}function sce(e){let t=Jb(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return $b.push(r),()=>{n?Qb(()=>{n()}):r.skipped=!0}});return nx(),t}function cce(e,t){let n=Jb(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return $b.push(i),()=>{r?Qb(()=>{r()}):i.skipped=!0}});return nx(),n}var lce=e=>{$b.push({type:`destroy`,key:e}),nx()},uce=[`success`,`info`,`warning`,`error`,`loading`],rx={open:sce,destroy:lce,config:oce,useMessage:rce,_InternalPanelDoNotUseOrYouWillBeFired:Kse,_InternalListDoNotUseOrYouWillBeFired:qse};uce.forEach(e=>{rx[e]=(...t)=>cce(e,t)});var ix=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]=ve(!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=>{Cr(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&&!Cr(t)){d.current=!1,g(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!Cr(t)){g();return}_(t)};return h.createElement(gp,{...Id(t),onClick:v,loading:p,prefixCls:r,...i,ref:f},n)},ax=h.createContext({}),{Provider:ox}=ax,sx=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,h.useContext)(ax);return i?h.createElement(ix,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},cx=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,h.useContext)(ax);return h.createElement(ix,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},lx=h.createContext({});function ux(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function dce(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 fce(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=dce(i),n.top+=dce(i,!0),n}var pce=h.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function dx(){return dx=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},dx.apply(this,arguments)}var mce=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(lx),k=(0,h.useRef)(null),A=Le(y,O,k),[j]=yt(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=Yt(F,!0),L=typeof c==`object`&&c.disabled,R=c?h.createElement(`button`,dx({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`,dx({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(pce,{shouldUpdate:b||x},g?g(z):z))});function fx(){return fx=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},fx.apply(this,arguments)}var hce=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=fce(p.current.nativeElement);v(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return h.createElement(ur,{visible:o,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>h.createElement(mce,fx({},e,{ref:g,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,...y},className:m(a,t)})))});function px(){return px=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},px.apply(this,arguments)}var gce=e=>{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return h.createElement(ur,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>h.createElement(`div`,px({ref:a,style:{...r,...n},className:m(`${t}-mask`,e,o)},i)))};function mx(){return mx=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},mx.apply(this,arguments)}var _ce=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=we();function P(){He(D.current,document.activeElement)||(E.current=document.activeElement)}function F(){He(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`,mx({className:m(`${t}-root`,S),style:C},Yt(e,{data:!0})),h.createElement(gce,{prefixCls:t,visible:g&&r,motionName:ux(t,_,v),style:{zIndex:n,...b,...T?.mask},maskProps:x,className:w?.mask}),h.createElement(`div`,mx({className:m(`${t}-wrap`,o,w?.wrapper),ref:D,onClick:B,onMouseDown:V,style:H},s),h.createElement(hce,mx({},e,{isFixedPos:j,ref:O,closable:p,ariaId:N,prefixCls:t,visible:r&&k,onClose:R,onVisibleChanged:L,motionName:ux(t,d,f)}))))};function hx(){return hx=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},hx.apply(this,arguments)}var vce=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(lx.Provider,{value:g},h.createElement(bl,{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(_ce,hx({},f,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),m(!1)}}))))},yce=()=>me()&&window.document.documentElement;function bce(e,t,n){return(0,h.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}function xce(){}var Sce=h.createContext({add:xce,remove:xce});function Cce(e){let t=h.useContext(Sce),n=h.useRef(null);return pe(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}var wce=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,h.useContext)(ax);return h.createElement(gp,{onClick:n,...e},t)},Tce=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,h.useContext)(ax);return h.createElement(gp,{...Id(n),loading:e,onClick:i,...t},r)};function Ece(e,t){return h.createElement(`span`,{className:`${e}-close-x`},t||h.createElement(oe,{className:`${e}-close-icon`}))}var Dce=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=$c(`Modal`,Zc()),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 Sr(l)||l===void 0?(m=h.createElement(h.Fragment,null,h.createElement(wce,null),h.createElement(Tce,null)),Sr(l)&&(m=l(m,{OkBtn:Tce,CancelBtn:wce})),m=h.createElement(ox,{value:p},m)):m=l,h.createElement(wu,{disabled:!1},m)};function Oce(e){return{position:e,inset:0}}var kce=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`]:{...Oce(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...Oce(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:$d(e)}]},Ace=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:`${q(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...io(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${q(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...co(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:q(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...lo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${q(e.borderRadiusLG)} ${q(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:`${q(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`}}}]},jce=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},Mce=e=>{let{componentCls:t}=e,n=mg(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${q(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(gr(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)`}],gr(a))}}},Nce=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Go(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()})},Pce=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${q(e.paddingMD)} ${q(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${q(e.padding)} ${q(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${q(e.paddingXS)} ${q(e.padding)}`:0,footerBorderTop:e.wireframe?`${q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${q(e.padding*2)} ${q(e.padding*2)} ${q(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),Fce=Sc(`Modal`,e=>{let t=Nce(e);return[Ace(t),jce(t),kce(t),Of(t,`zoom`),Mce(t)]},Pce,{unitless:{titleLineHeight:!0}}),gx;yce()&&document.documentElement.addEventListener(`click`,e=>{gx={x:e.pageX,y:e.pageY},setTimeout(()=>{gx=null},100)},!0);var Ice=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:ee}=Ur(`modal`),{modal:K}=h.useContext(Br),[te,ne]=h.useMemo(()=>typeof D==`boolean`?[void 0,void 0]:[D?.afterClose,D?.onClose],[D]),re=I(`modal`,t),ie=I(),[ae,se,ce]=fd(O,G,re,A),le=bce({...ee,...N},ae,M),ue=e=>{_||(x?.(e),ne?.())},de=e=>{b?.(e),ne?.()},fe=og(re),[pe,me]=Fce(re,fe),he=m(a,{[`${re}-centered`]:o??H,[`${re}-wrap-rtl`]:L===`rtl`}),ge=u!==null&&!g?h.createElement(Dce,{...e,okButtonProps:{...W,...S},onOk:de,cancelButtonProps:{...U,...C},onCancel:ue}):null,[_e,ve,ye,be]=ld(rd(e),rd(K),{closable:!0,closeIcon:h.createElement(oe,{className:`${re}-close-icon`}),closeIconRender:e=>Ece(re,e)}),xe=_e?{disabled:ye,closeIcon:ve,afterClose:te,...be}:!1,Se=k?e=>h.createElement(`div`,{className:`${re}-render`},k(e)):void 0,Ce=Ie(E,Cce(`.${re}-${k?`render`:`container`}`)),[we,Te]=Ed(`Modal`,v),Ee={...e,width:l,panelRef:E,focusTriggerAfterClose:le.focusTriggerAfterClose,focusable:le,mask:ae,maskClosable:ce,zIndex:we},[De,Oe]=Nr([B,d,se],[V,f],{props:Ee}),[ke,Ae]=h.useMemo(()=>xr(l)?[void 0,l]:[l,void 0],[l]),je=h.useMemo(()=>{let e={};return Ae&&Object.keys(Ae).forEach(t=>{let n=Ae[t];_r(n)&&(e[`--${re}-${t}-width`]=yr(n)?`${n}px`:n)}),e},[re,Ae]);return h.createElement(Y_,{form:!0,space:!0},h.createElement(bd.Provider,{value:Te},h.createElement(vce,{width:ke,...P,zIndex:we,getContainer:s===void 0?F:s,prefixCls:re,rootClassName:m(pe,r,me,fe,De.root),rootStyle:Oe.root,footer:ge,visible:i,mousePosition:y??gx,onClose:ue,closable:xe,closeIcon:ve,transitionName:Kf(ie,`zoom`,e.transitionName),maskTransitionName:Kf(ie,`fade`,e.maskTransitionName),mask:ae,maskClosable:ce,scrollLock:j,className:m(pe,n,R),style:{...z,...c,...je},classNames:{...De,wrapper:m(De.wrapper,he)},styles:Oe,panelRef:Ce,destroyOnHidden:w??T,modalRender:Se,focusTriggerAfterClose:le.focusTriggerAfterClose,focusTrap:le.trap},g?h.createElement(vte,{active:!0,title:!1,paragraph:{rows:4},className:`${re}-body-skeleton`}):p)))},Lce=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`]:{...so()},[`&${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% - ${q(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${q(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}}},Rce=wc([`Modal`,`confirm`],e=>Lce(Nce(e)),Pce,{order:-1e3}),zce=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}=Ur(`modal`),y=n;if(n===void 0)switch(o){case`info`:y=td(p,h.createElement(fe,null));break;case`success`:y=td(g,h.createElement(K,null));break;case`error`:y=td(_,h.createElement(re,null));break;default:y=td(v,h.createElement(le,null))}let b=s??o===`confirm`,x=h.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[S]=$c(`Modal`),C=l||S,w=r||(b?C?.okText:C?.justOkText),T=i||C?.cancelText,{closable:E}=f,{onClose:D}=xr(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(sx,null),h.createElement(cx,null)),A=vr(e.title),j=vr(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||Sr(c)?h.createElement(ox,{value:O},h.createElement(`div`,{className:`${a}-btns`},Sr(c)?c(k,{OkBtn:cx,CancelBtn:sx}):k)):c,h.createElement(Rce,{prefixCls:t}))},Bce=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}=Ur(`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=dd(p,g);return e.closable??=!1,e},[p,g]),[,E]=xc(),D=h.useMemo(()=>n===void 0?E.zIndexPopupBase+Sd:n,[n,E]);return h.createElement(Ice,{...e,className:w,wrapClassName:m({[`${x}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:Kf(s||``,`zoom`,e.transitionName),maskTransitionName:Kf(s||``,`fade`,e.maskTransitionName),mask:T,style:C,styles:{body:c,mask:r,...d},width:S,zIndex:D,closable:l},h.createElement(zce,{...e,confirmPrefixCls:x,okButtonProps:{...b,..._},cancelButtonProps:{...y,...v}}))},Vce=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return h.createElement(Uu,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},h.createElement(Bce,{...e}))},_x=[],Hce=``;function Uce(){return Hce}var Wce=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=Zc(),a=(0,h.useContext)(Br),o=Uce()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),h.createElement(Vce,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function vx(e){let t=Vu(),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<_x.length;e++)if(_x[e]===s){_x.splice(e,1);break}xn(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,Uce()),i=t.getIconPrefixCls(),a=t.getTheme(),o=h.createElement(Wce,{...e});bn(h.createElement(Uu,{prefixCls:r,iconPrefixCls:i,theme:a},Sr(t.holderRender)?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{Sr(e.afterClose)&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=Sr(e)?e(r):{...r,...e},o(r)}return o(r),_x.push(s),{destroy:s,update:c}}function Gce(e){return{...e,type:`warning`}}function Kce(e){return{...e,type:`info`}}function qce(e){return{...e,type:`success`}}function Jce(e){return{...e,type:`error`}}function Yce(e){return{...e,type:`confirm`}}function Xce({rootPrefixCls:e}){Hce=e}var Zce=wg(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(Br),{className:p,style:g,classNames:_,styles:v}=Ur(`modal`),y=f(),b=t||f(`modal`),x=og(y),[S,C]=Fce(b,x),[w,T]=Nr([_,l],[v,u],{props:e}),E=`${b}-confirm`,D={};return D=a?{closable:i??!1,title:``,footer:``,children:h.createElement(zce,{...e,prefixCls:b,confirmPrefixCls:E,rootPrefixCls:y,content:s})}:{closable:i??!0,title:o,footer:c!==null&&h.createElement(Dce,{...e}),children:s},h.createElement(mce,{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:Ece(b,r),closable:i,classNames:w,styles:T,...D})}),Qce=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(Br),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=Sr(e)?e(t):e;return{...t,...n}})}}));let g=s.okCancel??s.type===`confirm`,[_]=$c(`Modal`,Kc.Modal);return h.createElement(Vce,{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})}),$ce=0,ele=h.memo(h.forwardRef((e,t)=>{let[n,r]=gd();return h.useImperativeHandle(t,()=>({patchElement:r}),[r]),h.createElement(h.Fragment,null,n)}));function tle(){let e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(gr(t).forEach(e=>{e()}),n([]))},[t]);let r=h.useCallback(t=>function(r){$ce+=1;let i=h.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=h.createElement(Qce,{key:`modal-${$ce}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&_x.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(gr(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(gr(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[h.useMemo(()=>({info:r(Kce),success:r(qce),error:r(Jce),warning:r(Gce),confirm:r(Yce)}),[r]),h.createElement(ele,{key:`modal-holder`,ref:e})]}function nle(e){return vx(Gce(e))}var yx=Ice;yx.useModal=tle,yx.info=function(e){return vx(Kce(e))},yx.success=function(e){return vx(qce(e))},yx.error=function(e){return vx(Jce(e))},yx.warning=nle,yx.warn=nle,yx.confirm=function(e){return vx(Yce(e))},yx.destroyAll=function(){for(;_x.length;){let e=_x.pop();e&&e()}},yx.config=Xce,yx._InternalPanelDoNotUseOrYouWillBeFired=Zce;var bx=e=>vr(e)?Sr(e)?e():e:null,rle=`50%`,ile=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]=Tc(g,`tooltip`);return[{[t]:{...io(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`,rle),`var(--arrow-y, ${rle})`].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}}},gy(e,v(`arrow-background-color`),{arrowShadow:!1}),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},ale=e=>{let{componentCls:t,antCls:n}=e,[r]=Tc(n,`tooltip`);return{[t]:ns.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},ole=Sc(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=Go(e,{popoverBg:t,popoverColor:n});return[ile(r),ale(r),Of(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,...Cv(e),...hy({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`]]}),sle=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!vr(t)&&!vr(n)?null:h.createElement(h.Fragment,null,vr(t)&&h.createElement(`div`,{className:m(`${r}-title`,i?.title),style:a?.title},t),vr(n)&&h.createElement(`div`,{className:m(`${r}-content`,i?.content),style:a?.content},n))},cle=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=bx(o),f=bx(s),p={...e,placement:a},[g,_]=Nr([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(uy,{...e,className:t,prefixCls:n,classNames:g,styles:_},c||h.createElement(sle,{prefixCls:n,title:d,content:f,classNames:g,styles:_})))},lle=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=h.useContext(Br),a=i(`popover`,t),[o,s]=ole(a);return h.createElement(cle,{...r,prefixCls:a,hashId:o,className:m(n,s)})},ule=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}=Ur(`popover`),D=b(`popover`,n),[O,k]=ole(D),A=b(),j=by(v,T),M=s||E||`hover`,N={...e,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:g},[P,F]=Nr([C,g],[w,p],{props:N}),I=m(a,O,k,x,P.root),[L,R]=ye(e.defaultOpen??!1,e.open),z=e=>{R(e),d?.(e)},B=bx(r),V=bx(i);return h.createElement(Ty,{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:vr(B)||vr(V)?h.createElement(sle,{prefixCls:D,title:B,content:V,classNames:P,styles:F}):null,motion:{motionName:Kf(A,`zoom-big`,typeof _?.motionName==`string`?_?.motionName:void 0)},"data-popover-inject":!0},c)});ule._InternalPanelDoNotUseOrYouWillBeFired=lle;var dle=Sc(`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}),fle=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=h.createElement(le,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:g,classNames:_,styles:v}=e,{getPrefixCls:y}=h.useContext(Br),[b]=$c(`Popconfirm`,Kc.Popconfirm),x=bx(i),S=bx(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`},vr(x)&&h.createElement(`div`,{className:m(`${t}-title`,_?.title),style:v?.title},x),vr(S)&&h.createElement(`div`,{className:m(`${t}-description`,_?.content),style:v?.content},S))),h.createElement(`div`,{className:`${t}-buttons`},u&&h.createElement(gp,{onClick:p,size:`small`,...r},o||b?.cancelText),h.createElement(ix,{buttonProps:{size:`small`,...Id(c),...n},actionFn:f,close:d,prefixCls:y(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||b?.okText)))},ple=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=h.useContext(Br),s=o(`popconfirm`,t);return dle(s),h.createElement(lle,{placement:n,className:m(s,r),style:i,content:h.createElement(fle,{prefixCls:s,...a})})},xx=h.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=h.createElement(le,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}=Ur(`popconfirm`),[w,T]=ye(e.defaultOpen??!1,e.open),E=by(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]=Nr([b,p],[x,d],{props:P}),L=m(N,v,c,F.root);return dle(N),h.createElement(ule,{arrow:E,...Wt(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(fle,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});xx._InternalPanelDoNotUseOrYouWillBeFired=ple;var mle=h.createContext(void 0),hle=mle.Provider,gle=h.createContext(void 0),_le=gle.Provider;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 vle=(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,_]=ye(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`,Sx({},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})))});function yle(e){let t=h.useRef(null),n=()=>{nn.cancel(t.current),t.current=null};return[()=>{n(),t.current=nn(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var ble=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]:{...io(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)}}}}},xle=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`]:{...io(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]:{...io(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:`${q(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)`]:co(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}}}},Sle=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:q(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${q(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:`${q(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:q(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:q(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)":co(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`}}}},Cle=Sc(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${q(n)} ${t}`,i=Go(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[ble(i),xle(i),Sle(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}}),Cx=h.forwardRef((e,t)=>{let n=h.useContext(mle),r=h.useContext(gle),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=Ur(`radio`),u=Ie(t,h.useRef(null)),{isFormItemInput:d}=h.useContext(_m),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=og(T),[k,A]=Cle(T,O),j={...w},M=h.useContext(Cu),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=jr(s),L=jr(y),[R,z]=Nr([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]=yle(j.onClick);return h.createElement($u,{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(vle,{...j,className:m(R.icon,{[Gu]:!E}),style:z.icon,type:`radio`,prefixCls:D,ref:u,onClick:H}),vr(v)?h.createElement(`span`,{className:m(`${D}-label`,R.label),style:z.label},v):null))}),wle=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Br),{name:i}=h.useContext(_m),a=we(ay(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]=ye(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=og(P),[L,R]=Cle(P,I),z=f;l&&l.length>0&&(z=l.map(e=>typeof e==`string`||yr(e)?h.createElement(Cx,{key:e.toString(),prefixCls:P,disabled:d,value:e,checked:j===e},e):h.createElement(Cx,{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=ed(p),[,V]=hd(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`,{...Yt(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(hle,{value:U},z))}),Tle=h.memo(wle),Ele=h.forwardRef((e,t)=>{let{getPrefixCls:n}=h.useContext(Br),{prefixCls:r,...i}=e,a=n(`radio`,r);return h.createElement(_le,{value:`button`},h.createElement(Cx,{prefixCls:a,...i,type:`radio`,ref:t}))}),Tx=Cx;Tx.Button=Ele,Tx.Group=Tle,Tx.__ANT_RADIO=!0;var Dle=yg,Ole=(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}},Ex=e=>e===void 0?void 0:`${e}px`;function kle(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);ge(()=>{if(d!==r){let e=p(d),t=p(r),n=Ole(e,l),i=Ole(t,l);f(r),_(n),y(i),e&&t?o():s()}},[r]);let b=h.useMemo(()=>Ex(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]),x=h.useMemo(()=>Ex(l?v?.top??0:c===`rtl`?-v?.right:v?.left),[l,c,v]);return!g||!v?null:h.createElement(ur,{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":Ex(g?.width),"--thumb-active-left":x,"--thumb-active-width":Ex(v?.width),"--thumb-start-top":b,"--thumb-start-height":Ex(g?.height),"--thumb-active-top":x,"--thumb-active-height":Ex(v?.height)},a={ref:Ie(u,r),style:i,className:m(`${t}-thumb`,e)};return h.createElement(`div`,a)})}function Ale(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function jle(e){return e.map(e=>{if(typeof e==`object`&&e){let t=Ale(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var Mle=({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})},Nle=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(()=>Ie(b,t),[b,t]),S=h.useMemo(()=>jle(a),[a]),[C,w]=ye(s??S[0]?.value,c),[T,E]=h.useState(!1),D=(e,t)=>{w(t),u?.(t)},O=Wt(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(Mle,Bf({},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`,Bf({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(kle,{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 Ple(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var Fle=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),Ile={overflow:`hidden`,...ro},Lle=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]:{...io(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...lo(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 ${q(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":{...Fle(e),color:e.itemSelectedColor},"&-focused":co(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:q(a),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,...Ile},"&-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`]:{...Fle(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${q(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:q(o),padding:`0 ${q(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:q(s),padding:`0 ${q(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...Ple(`&-disabled ${t}-item`,e),...Ple(`${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}}}}},Rle=Sc(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return Lle(Go(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 zle(e){return xr(e)&&!!e?.icon}var Ble=h.forwardRef((e,t)=>{let n=we(),{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}=Ur(`segmented`),T={...e,options:s,size:c,shape:f},E=jr(S),D=jr(l),[O,k]=Nr([C,_],[w,E,g,D],{props:T}),A=y(`segmented`,r),[j,M]=Rle(A),N=ed(c),P=h.useMemo(()=>s.map(e=>{if(zle(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]=hd(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=xr(t.tooltip)?t.tooltip:{title:t.tooltip};return h.createElement(Ty,{...n},e)};return h.createElement(Nle,{...v,name:p,className:I,style:k.root,classNames:O,styles:k,itemRender:L,options:P,ref:t,prefixCls:A,direction:b,vertical:F})}),Vle=(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])},Hle=h.createContext(null);function Dx(){return h.useContext(Hle)}function Ule(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 Wle(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function Gle(e,t,n,r){let i=pe(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&&!Wle(e(),a)&&n(!1)});h.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}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 Kle=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`}}},qle=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||Kle(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(hu,Ox({},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 Jle(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function kx(e){return e!==void 0&&!Number.isNaN(e)}function Yle(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 Xle(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=Yle(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:Jle(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:Jle(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function Ax(e){let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return Rt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Zle=(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 Qle(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 $le=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},jx=(e,t=1)=>{if(t<=0){e();return}$le(()=>{jx(e,t-1)})};function eue(e,t,n,r){let[i,a]=(0,h.useState)(!1);(0,h.useEffect)(()=>{a(!0)},[]);let[o,s]=ye(e,t),[c,l]=(0,h.useState)(!1),u=i?o:!1,d=r(u),f=(0,h.useRef)(0),p=pe(e=>{n&&d!==e&&n(e),s(e)});return[u,d,pe((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():jx(()=>{a()})}),c]}function Mx(e){let{children:t,...n}=e;return t?h.createElement(`div`,n,t):null}var tue=h.createContext(null);function Nx(){return h.useContext(tue)}var nue=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`}}=Nx(),{id:S,classNames:C,styles:w,open:T,activeDescendantId:E,role:D,disabled:O}=Dx()||{},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);ge(()=>{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=Ie(x.ref,V.ref),h.cloneElement(x,n)}let H=x;return h.createElement(H,V)});function rue(e){let{prefixCls:t,placeholder:n,displayValues:r}=Nx(),{classNames:i,styles:a}=Dx(),{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 Px=h.createContext(null);function iue(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function aue(e){return e!=null}function oue(e){return!e&&e!==0}function sue(e){return[`string`,`number`].includes(typeof e)}function Fx(e){let t;return e&&(sue(e.title)?t=e.title.toString():sue(e.label)&&(t=e.label.toString())),t}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)}var cue=h.forwardRef(({inputProps:e},t)=>{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=Nx(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=Dx(),g=h.useContext(Px),[_,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=Fx(r.data))}return b&&!n&&(n=Fx(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(rue,{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(nue,Ix({ref:t},e,{value:x,maxLength:s===`combobox`?o:void 0,onChange:t=>{v(!0),e.onChange?.(t)}})))}),lue=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 Lx(){return Lx=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},Lx.apply(this,arguments)}function uue(e){return e.key??e.value}var due=e=>{e.preventDefault(),e.stopPropagation()},fue=h.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=Nx(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:g,maxTagPlaceholder:_,maxTagTextLength:v,maxTagCount:y,classNames:b,styles:x}=Dx(),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:Fx(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(lue,{className:m(`${S}-remove`,b?.itemRemove),style:x?.itemRemove,onMouseDown:due,onClick:i,customizeIcon:E},`×`)),M=(e,t,n,r,i,a,o)=>h.createElement(`span`,{onMouseDown:e=>{due(e),k(!u)}},O({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return h.createElement(th,{prefixCls:`${n}-content`,className:b?.content,style:x?.content,prefix:!r.length&&!w&&h.createElement(rue,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(nue,Lx({ref:t,disabled:c,readOnly:!T},e,{value:w||``,syncWidth:!0})),itemKey:uue,maxCount:y})}),pue=h.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=Nx(),a=Dx(),{showSearch:o}=a,s={...Yt(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?h.createElement(fue,{ref:t,inputProps:s}):h.createElement(cue,{ref:t,inputProps:s})});function mue(e){return e&&![Et.ESC,Et.SHIFT,Et.BACKSPACE,Et.TAB,Et.WIN_KEY,Et.ALT,Et.META,Et.WIN_KEY_RIGHT,Et.CTRL,Et.SEMICOLON,Et.EQUALS,Et.CAPS_LOCK,Et.CONTEXT_MENU,Et.UP,Et.LEFT,Et.RIGHT,Et.F1,Et.F2,Et.F3,Et.F4,Et.F5,Et.F6,Et.F7,Et.F8,Et.F9,Et.F10,Et.F11,Et.F12].includes(e)}function Rx(){return Rx=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},Rx.apply(this,arguments)}var hue=[`value`,`onChange`,`removeIcon`,`placeholder`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`,`activeValue`,`onSelectorRemove`,`focused`],gue=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}=Dx(),F=h.useRef(null),I=h.useRef(null),L=pe(e=>{let{which:t}=e,n=I.current instanceof HTMLTextAreaElement;!n&&O&&(t===Et.UP||t===Et.DOWN)&&e.preventDefault(),C&&C(e),!(n&&!O&&~[Et.UP,Et.DOWN,Et.LEFT,Et.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&mue(t)&&k(!0)});h.useImperativeHandle(t,()=>({focus:e=>{(I.current||F.current).focus?.(e)},blur:()=>{(I.current||F.current).blur?.()},nativeElement:rt(F.current)}));let R=pe(e=>{if(!j){let t=rt(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=Wt(D,hue),V=Yt(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:Ie(z.ref,F)}):h.createElement(z,Rx({},t,{ref:F}))}return h.createElement(tue.Provider,{value:U},h.createElement(`div`,Rx({},Wt(B,H),{ref:F,className:r,style:i,onMouseDown:R}),h.createElement(Mx,{className:m(`${n}-prefix`,N?.prefix),style:P?.prefix},a),h.createElement(pue,{ref:I}),h.createElement(Mx,{className:m(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&h.createElement(Mx,{className:m(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},s),c))});function _ue(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 zx(){return zx=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},zx.apply(this,arguments)}var Bx=e=>e===`tags`||e===`multiple`,vue=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:ee,popupMatchSelectWidth:K,popupRender:te,popupAlign:ne,placement:re,builtinPlacements:ie,getPopupContainer:ae,showAction:oe=[],onFocus:se,onBlur:ce,onKeyUp:le,onKeyDown:ue,onMouseDown:de,components:fe,...me}=e,he=Bx(x),ge=h.useRef(null),_e=h.useRef(null),ve=h.useRef(null),[ye,be]=h.useState(!1);h.useImperativeHandle(t,()=>({focus:ge.current?.focus,blur:ge.current?.blur,scrollTo:e=>ve.current?.scrollTo(e),nativeElement:rt(ge.current)}));let xe=_ue(fe,w,T),Se=h.useMemo(()=>{if(x!==`combobox`)return M;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[M,x,f]),Ce=x===`combobox`&&typeof w==`function`&&w()||null,we=!_&&g,[Te,Ee,De,Oe]=eue(D||!1,E,O,e=>S||we?!1:e),ke=h.useMemo(()=>typeof I==`function`||(I||[]).some(e=>[`
`,`\r
`].includes(e)),[I]),Ae=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)=>Zle(e,I,t),[I]),je=(e,t,n)=>{if(he&&kx(y)&&f.length>=y)return;let r=!0,i=e;A?.(null);let a=kx(y)?y-f.length:void 0,o=n?null:Ae(e,a);return x!==`combobox`&&o&&(i=``,F?.(o),De(!1),r=!1),P&&Se!==i&&P(i,{source:t?`typing`:`effect`}),e&&t&&r&&De(!0),r},Me=e=>{!e||!e.trim()||P(e,{source:`submit`})};h.useEffect(()=>{!Te&&!he&&x!==`combobox`&&je(``,!1,!1)},[Te]),h.useEffect(()=>{S&&(De(!1),be(!1))},[S,Ee]);let[Ne,Pe]=Ule(),Fe=h.useRef(!1),Ie=e=>{let t=Ne(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=x===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),Ee||De(!0)}if(Pe(!!Se),n===`Backspace`&&!t&&he&&!Se&&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]})}Ee&&(!r||!Fe.current)&&!i&&(r&&(Fe.current=!0),ve.current?.onKeyDown(e)),ue?.(e)},Le=(e,...t)=>{Ee&&ve.current?.onKeyUp(e,...t),e.key===`Enter`&&(Fe.current=!1),le?.(e,...t)},Re=pe(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),ze=()=>{Fe.current=!1},Be=()=>[rt(ge.current),_e.current?.getPopupElement()];Gle(Be,Ee,De,!!xe.root);let Ve=h.useRef(!1),He=e=>{be(!0),S||(oe.includes(`focus`)&&De(!0),se?.(e))},Ue=()=>{Ee&&!Ve.current&&De(!1,{cancelFun:()=>Wle(Be(),document.activeElement)})},We=e=>{be(!1),Se&&(x===`tags`?P(Se,{source:`submit`}):x===`multiple`&&P(``,{source:`blur`})),Ue(),S||ce?.(e)},Ge=(e,...t)=>{let{target:n}=e;(_e.current?.getPopupElement())?.contains(n)&&De&&De(!0),de?.(e,...t),Ve.current=!0,jx(()=>{Ve.current=!1})},[,Ke]=h.useState({});function qe(){Ke({})}let Je;xe.root&&(Je=e=>{De(e)});let Ye=h.useMemo(()=>({...e,notFoundContent:_,open:Ee,triggerOpen:Ee,rawOpen:Te,id:n,showSearch:s,multiple:he,toggleOpen:De,showScrollBar:l,styles:a,classNames:o,lockOptions:Oe}),[e,_,De,n,s,he,Ee,Te,l,a,o,Oe]),Xe=h.useMemo(()=>{let e=z??B;return typeof e==`function`?e({searchValue:Se,open:Ee,focused:ye,showSearch:s,loading:C}):e},[z,B,Se,Ee,ye,s,C]),Ze=()=>{v?.(),ge.current?.focus(),p([],{type:`clear`,values:f}),je(``,!1,!1)},{allowClear:Qe,clearIcon:$e}=Vle(r,f,L,V,S,Se,x),et=h.createElement(H,{ref:ve}),tt=m(r,i,{[`${r}-focused`]:ye,[`${r}-multiple`]:he,[`${r}-single`]:!he,[`${r}-allow-clear`]:Qe,[`${r}-show-arrow`]:Xe!=null,[`${r}-disabled`]:S,[`${r}-loading`]:C,[`${r}-open`]:Ee,[`${r}-customize-input`]:Ce,[`${r}-show-search`]:s}),nt=h.createElement(gue,zx({},me,{ref:ge,prefixCls:r,className:tt,focused:ye,prefix:R,suffix:Xe,clearIcon:$e,multiple:he,mode:x,displayValues:f,placeholder:b,searchValue:Se,activeValue:k,onSearch:je,onSearchSubmit:Me,onInputBlur:ze,onFocus:He,onBlur:We,onClearMouseDown:Ze,onKeyDown:Ie,onKeyUp:Le,onSelectorRemove:Re,tokenWithEnter:ke,onMouseDown:Ge,components:xe}));return nt=h.createElement(qle,{ref:_e,disabled:S,prefixCls:r,visible:Ee,popupElement:et,animation:U,transitionName:W,popupStyle:G,popupClassName:ee,direction:u,popupMatchSelectWidth:K,popupRender:te,popupAlign:ne,placement:re,builtinPlacements:ie,getPopupContainer:ae,empty:g,onPopupVisibleChange:Je,onPopupMouseEnter:qe,onPopupMouseDown:Ge,onPopupBlur:Ue},nt),h.createElement(Hle.Provider,{value:Ye},h.createElement(Qle,{visible:ye&&!Ee,values:f}),nt)}),Vx=()=>null;Vx.isSelectOptGroup=!0;var Hx=()=>null;Hx.isSelectOption=!0;var Ux=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(Fl,{onResize:({offsetHeight:e})=>{e&&a&&a()}},h.createElement(`div`,Bf({style:d,className:m({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});Ux.displayName=`Filler`;function yue({children:e,setRef:t}){let n=h.useCallback(e=>{t(e)},[]);return h.cloneElement(e,{ref:n})}function bue(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(yue,{key:l,setRef:t=>a(e,t)},c)})}function xue(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 Sue(e,t,n){let[r,i]=h.useState(e),[a,o]=h.useState(null);return h.useEffect(()=>{let a=xue(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var Wx=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),Cue=((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 wue(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=Cue(t,n,r,i);function f(e,t){if(nn.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,Wx||n.preventDefault(),c.current=nn(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),Wx||e.preventDefault()}let m=(0,h.useRef)(null),g=(0,h.useRef)(null);function _(t){if(!e)return;nn.cancel(g.current),g.current=nn(()=>{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 Tue(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 Eue=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 Due(e){let t=parseFloat(e);return isNaN(t)?0:t}function Oue(e,t,n){let[r,i]=h.useState(0),a=(0,h.useRef)(new Map),o=(0,h.useRef)(new Eue),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=Due(i),c=Due(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 Gx=14/15;function kue(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*=Gx:c*=Gx;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))},ge(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function Kx(e){return Math.floor(e**.5)}function qx(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function Aue(e,t,n){h.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{nn.cancel(t)},o=()=>{a(),t=nn(()=>{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=qx(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-Kx(n-e),o()):e>=s?(i=Kx(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 jue=10;function Mue(e,t){let n=typeof e==`function`?e(t):e;return Number.isFinite(n)?n:0}function Nue(e,t,n,r,i,a,o,s,c){let l=h.useRef(),[u,d]=h.useState(null);return ge(()=>{if(u&&u.times<jue){if(!e.current){d(e=>({...e}));return}o();let{targetAlign:c,originAlign:l,index:f,offset:p}=u,m=Mue(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(nn.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 Jx=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(qx(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;nn.cancel(e);let a=w.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(qx(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=nn(()=>{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),nn.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}))}),Pue=20;function Yx(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Pue),Math.floor(n)}var Fue=[],Iue={overflowY:`auto`,overflowAnchor:`none`};function Xx(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]=Oue(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||Fue,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)},ee=()=>{W(!1)},K={getKey:T};function te(e){B(t=>{let n;n=typeof e==`function`?e(t):e;let r=be(n);return I.current.scrollTop=r,r})}let ne=(0,h.useRef)({start:0,end:F.length}),re=(0,h.useRef)(),[ie]=Sue(F,T);re.current=ie;let{scrollHeight:ae,start:oe,end:se,offset:ce}=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]);ne.current.start=oe,ne.current.end=se,h.useLayoutEffect(()=>{let e=O.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=F[oe];if(r&&n===void 0&&T(r)===t){let e=O.get(t)-a;te(t=>t+e)}}O.resetRecord()},[ae]);let[le,ue]=h.useState({width:0,height:i}),de=e=>{ue({width:e.offsetWidth,height:e.offsetHeight})},fe=(0,h.useRef)(),me=(0,h.useRef)(),he=h.useMemo(()=>Yx(le.width,p),[le.width,p]),_e=h.useMemo(()=>Yx(le.height,ae),[le.height,ae]),ve=ae-i,ye=(0,h.useRef)(ve);ye.current=ve;function be(e){let t=e;return Number.isNaN(ye.current)||(t=Math.min(t,ye.current)),t=Math.max(t,0),t}let xe=z<=0,Se=z>=ve,Ce=V<=0,we=V>=p,Te=Cue(xe,Se,Ce,we),Ee=()=>({x:N?-V:V,y:z}),De=(0,h.useRef)(Ee()),Oe=pe(e=>{if(v){let t={...Ee(),...e};(De.current.x!==t.x||De.current.y!==t.y)&&(v(t),De.current=t)}});function ke(e,t){let n=e;t?((0,Sn.flushSync)(()=>{H(n)}),Oe()):te(n)}function Ae(e){let{scrollTop:t}=e.currentTarget;t!==z&&te(t),_?.(e),Oe()}let je=e=>{let t=e,n=p?p-le.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Me=pe((e,t)=>{t?((0,Sn.flushSync)(()=>{H(t=>je(t+(N?-e:e)))}),Oe()):te(t=>t+e)}),[Ne,Pe]=wue(A,xe,Se,Ce,we,!!p,Me);kue(A,I,(e,t,n,r)=>{let i=r;return Te(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ne({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),Aue(M,I,e=>{te(t=>t+e)}),ge(()=>{function e(e){let t=xe&&e.detail<0,n=Se&&e.detail>0;A&&!t&&!n&&e.preventDefault()}let t=I.current;return t.addEventListener(`wheel`,Ne,{passive:!1}),t.addEventListener(`DOMMouseScroll`,Pe,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Ne),t.removeEventListener(`DOMMouseScroll`,Pe),t.removeEventListener(`MozMousePixelScroll`,e)}},[A,xe,Se]),ge(()=>{if(p){let e=je(V);H(e),Oe({x:e})}},[le.width,p]);let Fe=()=>{fe.current?.delayHidden(),me.current?.delayHidden()},Ie=Tue(F,T,O,a),Le=Nue(I,F,O,a,T,Ie,()=>D(!0),te,Fe);h.useImperativeHandle(t,()=>({nativeElement:R.current,getScrollInfo:Ee,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&H(je(e.left)),Le(e.top)):Le(e)}})),ge(()=>{y&&y(F.slice(oe,se+1),F)},[oe,se,F]);let Re=x?.({start:oe,end:se,virtual:M,offsetX:V,scrollTop:z,offsetY:ce,rtl:N,getSize:Ie}),ze=bue(F,oe,se,p,V,E,l,K),Be=null;i&&(Be={[o?`height`:`maxHeight`]:i,...Iue},A&&(Be.overflowY=`hidden`,p&&(Be.overflowX=`hidden`),U&&(Be.pointerEvents=`none`)));let Ve={};return N&&(Ve.dir=`rtl`),h.createElement(`div`,Bf({ref:R,style:{...s,position:`relative`},className:P},Ve,w),h.createElement(Fl,{onResize:de},h.createElement(g,{className:`${n}-holder`,style:Be,ref:I,onScroll:Ae,onMouseEnter:Fe},h.createElement(Ux,{prefixCls:n,height:ae,offsetX:V,offsetY:ce,scrollWidth:p,onInnerResize:D,ref:L,innerProps:b,rtl:N,extra:Re},ze))),M&&ae>i&&h.createElement(Jx,{ref:fe,prefixCls:n,scrollOffset:z,scrollRange:ae,rtl:N,onScroll:ke,onStartMove:G,onStopMove:ee,spinSize:_e,containerSize:le.height,style:S?.verticalScrollBar,thumbStyle:S?.verticalScrollBarThumb,showScrollBar:C}),M&&p>le.width&&h.createElement(Jx,{ref:me,prefixCls:n,scrollOffset:V,scrollRange:p,rtl:N,onScroll:ke,onStartMove:G,onStopMove:ee,spinSize:he,containerSize:le.width,horizontal:!0,style:S?.horizontalScrollBar,thumbStyle:S?.horizontalScrollBarThumb,showScrollBar:C}))}var Zx=h.forwardRef(Xx);Zx.displayName=`List`;var Lue=h.forwardRef((e,t)=>Xx({...e,virtual:!1},t));Lue.displayName=`List`;var Qx=Zx;function Rue(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}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 zue(e){return typeof e==`string`||typeof e==`number`}var Bue=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}=Dx(),{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(Px),A=`${n}-item`,j=Te(()=>g,[i,f],(e,t)=>t[0]&&!t[1]),M=h.useRef(null),N=h.useMemo(()=>a&&kx(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 Et.N:case Et.P:case Et.UP:case Et.DOWN:{let e=0;if(t===Et.UP?e=-1:t===Et.DOWN?e=1:Rue()&&n&&(t===Et.N?e=1:t===Et.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case Et.TAB:case Et.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 Et.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 ee=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=Yt(n,!0),s=W(t);return t?h.createElement(`div`,$x({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},G(t,e),{"aria-selected":V(r),"aria-disabled":i}),r):null},K={role:`listbox`,id:`${r}_list`};return h.createElement(h.Fragment,null,C&&h.createElement(`div`,$x({},K,{style:{height:0,width:0,overflow:`hidden`}}),ee(R-1),ee(R),ee(R+1)),h.createElement(Qx,{itemKey:`key`,ref:M,data:j,height:T,itemHeight:E,fullHeight:!1,onMouseDown:P,onScroll:u,virtual:C,direction:w,innerProps:C?null:K,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??(zue(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=Wt(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=zue(T)?T.toString():void 0;return l!==void 0&&(E=l),h.createElement(`div`,$x({},Yt(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(lue,{className:`${A}-option-state`,customizeIcon:b,customizeIconProps:{value:o,disabled:v,isSelected:_}},_?`✓`:null))}))}),Vue=((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 eS(e,t){return iue(e).join(``).toUpperCase().includes(t)}var Hue=((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=>eS(t[e],u)):t[a]?eS(t[o===`children`?`label`:o],u):eS(t[s],u),f=l?e=>Ax(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 Uue(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function Wue(e,t=!1){return rn(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?Uue(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:Wue(a)}}).filter(e=>e)}var Gue=(e,t,n,r,i)=>h.useMemo(()=>{let a=e;e||(a=Wue(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 tS(e){let t=h.useRef();return t.current=e,h.useCallback((...e)=>t.current(...e),[])}function Kue(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 nS(){return nS=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},nS.apply(this,arguments)}var que=[`inputValue`];function Jue(e){return!e||typeof e!=`object`}var rS=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]=Kue(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,ee=h.useMemo(()=>H?Array.isArray(H)?H:[H]:[],[H]),K=we(n),te=Bx(r),ne=!!(!b&&S),re=h.useMemo(()=>B===void 0&&r===`combobox`?!1:B,[B,r]),ie=h.useMemo(()=>Yle(o,ne),[JSON.stringify(o),ne]),[ae,oe]=ye(``,V),se=ae||``,ce=Gue(b,S,ie,ee,y),{valueOptions:le,labelOptions:ue,options:de}=ce,fe=h.useCallback(e=>iue(e).map(e=>{let t,n,r,i;Jue(e)?t=e:(n=e.label,t=e.value);let a=le.get(t);return a&&(n===void 0&&(n=a?.[y||ie.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[ie,y,le]),[pe,me]=ye(j,A),[he,ge]=Vue(h.useMemo(()=>{let e=fe(te&&pe===null?[]:pe);return r===`combobox`&&oue(e[0]?.value)?[]:e},[pe,fe,r,te]),le),_e=h.useMemo(()=>{if(!r&&he.length===1){let e=he[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return he.map(e=>({...e,label:(typeof k==`function`?k(e):e.label)??e.value}))},[r,he,k]),ve=h.useMemo(()=>new Set(he.map(e=>e.value)),[he]);h.useEffect(()=>{if(r===`combobox`){let e=he[0]?.value;oe(aue(e)?String(e):``)}},[he]);let be=tS((e,t)=>{let n=t??e;return{[ie.value]:e,[ie.label]:n}}),xe=Hue(h.useMemo(()=>{if(r!==`tags`)return de;let e=[...de],t=e=>le.has(e);return[...he].sort((e,t)=>e.value<t.value?-1:1).forEach(n=>{let r=n.value;t(r)||e.push(be(r,n.label))}),e},[be,de,le,he,r]),ie,se,re,ee),Se=h.useMemo(()=>{let e=e=>ee.length?ee.some(t=>e?.[t]===se):e?.value===se;return r!==`tags`||!se||xe.some(t=>e(t))||xe.some(e=>e[ie.value]===se)||le.get(se)?.disabled?xe:[be(se),...xe]},[be,ee,r,xe,se,ie,le]),Ce=e=>[...e].sort((e,t)=>U(e,t,{searchValue:se})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?Ce(e.options):e.options}:e),Te=h.useMemo(()=>U?Ce(Se):Se,[Se,U,se]),Ee=h.useMemo(()=>Xle(Te,{fieldNames:ie,childrenAsData:ne}),[Te,ie,ne]),De=e=>{let t=fe(e);if(me(t),N&&(t.length!==he.length||t.some((e,t)=>he[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=>Ax(ge(e.value)));N(te?e:e[0],te?n:n[0])}},[Oe,ke]=h.useState(null),[Ae,je]=h.useState(0),Me=C===void 0?r!==`combobox`:C,Ne=h.useRef(),Pe=h.useCallback((e,t,{source:n=`keyboard`}={})=>{je(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&ke(String(e));let i=Promise.resolve().then(()=>{Ne.current===i&&_?.(e)});Ne.current=i},[a,r,_]),Fe=(e,t,n)=>{let r=()=>{let t=ge(e);return[M?{label:t?.[ie.label],value:e}:e,Ax(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&g&&n!==`clear`){let[e,t]=r();g(e,t)}},Ie=tS((e,t)=>{let n,i=te?t.selected:!0;n=i?te?[...he,e]:[e]:he.filter(t=>t.value!==e),De(n),Fe(e,i),r===`combobox`?ke(``):(!Bx||G)&&(oe(``),ke(``))}),Le=(e,t)=>{De(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Fe(e.value,!1,n)})},Re=(e,t)=>{if(oe(e),ke(null),t.source===`submit`){let t=(e||``).trim();if(t){if(le.get(t)?.disabled){oe(``);return}De(Array.from(new Set([...ve,t]))),Fe(t,!0),oe(``)}return}t.source!==`blur`&&(r===`combobox`&&De(e),W?.(e))},ze=e=>{let t=e;r!==`tags`&&(t=e.map(e=>ue.get(e)?.value).filter(e=>e!==void 0)),r===`tags`&&(t=t.filter(e=>!le.get(e)?.disabled));let n=Array.from(new Set([...ve,...t]));De(n),n.forEach(e=>{Fe(e,!0)})},Be=h.useMemo(()=>{let e=T!==!1&&v!==!1;return{...ce,flattenOptions:Ee,onActiveValue:Pe,defaultActiveFirstOption:Me,onSelect:Ie,menuItemSelectedIcon:w,rawValues:ve,fieldNames:ie,virtual:e,direction:E,listHeight:D,listItemHeight:O,childrenAsData:ne,maxCount:P,optionRender:x,classNames:F,styles:I}},[P,ce,Ee,Pe,Me,Ie,w,ve,ie,T,v,E,D,O,ne,x,F,I]);return h.createElement(Px.Provider,{value:Be},h.createElement(vue,nS({},L,{id:K,prefixCls:i,ref:t,omitDomProps:que,mode:r,classNames:F,styles:I,displayValues:_e,onDisplayValuesChange:Le,maxCount:P,direction:E,showSearch:R,searchValue:se,onSearch:Re,autoClearSearchValue:G,onSearchSplit:ze,popupMatchSelectWidth:v,OptionList:Bue,emptyOptions:!Ee.length,activeValue:Oe,activeDescendantId:`${K}_list_${Ae}`})))});rS.Option=Hx,rS.OptGroup=Vx;var Yue=rS;function iS(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}var aS=(e,t)=>e?.startsWith(`var(`)||t?.startsWith(`var(`)?e:new ps(e).onBackground(t).toHexString(),Xue=()=>{let[,e]=xc(),[t]=$c(`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:aS(a,n),borderColor:aS(o,n),detailColor:aS(r,n),shadowColor:aS(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`}))))},Zue=()=>{let[,e]=xc(),[t]=$c(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,h.useMemo)(()=>({borderColor:aS(n,a),shadowColor:aS(r,a),contentColor:aS(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}))))},Que=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}}}}},$ue=Sc(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return Que(Go(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),oS=h.createElement(Xue,null),sS=h.createElement(Zue,null),cS=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}=Ur(`empty`),x=f(`empty`,r),[S,C]=$ue(x),w=jr(_),T=jr(c),[E,D]=Nr([v,l],[y,w,u,T],{props:e}),[O]=$c(`Empty`),k=a===void 0?O?.description:a,A=typeof k==`string`?k:`empty`,j=i??b??oS,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===sS,[`${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))};cS.PRESENTED_IMAGE_DEFAULT=oS,cS.PRESENTED_IMAGE_SIMPLE=sS;var lS=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,h.useContext)(Br),r=n(`empty`);switch(t){case`Table`:case`List`:return h.createElement(cS,{image:cS.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return h.createElement(cS,{image:cS.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return h.createElement(cS,null)}},ede=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 tde(e,t){return e||ede(t)}var uS=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`}},nde=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`]:{...io(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:lf},[`
${i}${s}topLeft,
${a}${s}topLeft,
${i}${s}topRight,
${a}${s}topRight
`]:{animationName:df},[`${o}${s}bottomLeft`]:{animationName:uf},[`
${o}${s}topLeft,
${o}${s}topRight
`]:{animationName:ff},"&-hidden":{display:`none`},[r]:{...uS(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`,...ro},"&-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":{...uS(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},vf(e,`slide-up`),vf(e,`slide-down`),cf(e,`move-up`),cf(e,`move-down`)]},rde=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}}}},dS=4,ide=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]=Tc(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% - ${dS}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":{...ro,marginInlineEnd:a},"&-remove":{...ao(),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:dS,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`}}}}},fS=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=Tc(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 ${q(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},pS=(e,t,n,r,i,a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[fS(e,n),{[`&${o}-status-error`]:fS(e,{...n,...r}),[`&${o}-status-warning`]:fS(e,{...n,...i})},a]}},mS=(e,t)=>({outline:`${q(e.lineWidth)} ${e.lineType} ${t}`,outlineOffset:q(e.calc(e.lineWidth).mul(-1).equal()),transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),ade=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:a,iconCls:o,antCls:s,max:c,calc:l}=e,[u,d]=Tc(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`)})`,...io(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`]:{...ro,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`]:{...ro,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`}},ide(e),pS(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}),pS(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}),pS(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)`]:mS(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:mS(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:mS(e,e.colorWarning)}),pS(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`}),rde(e)]}},ode=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}},sde=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...io(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...ro,[`> ${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()}}}}}},cde=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},sde(e),nde(e),{[`${t}-rtl`]:{direction:`rtl`}},cp(e,{focusElCls:`${t}-focused`})]},lde=Sc(`Select`,(e,{rootPrefixCls:t})=>{let n=Go(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[cde(n),ade(n)]},ode,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function ude(e){return h.useMemo(()=>{if(e)return(...t)=>h.createElement(Y_,{space:!0},e.apply(void 0,t))},[e])}function dde(e,t){return t===void 0?e!==null:t}var hS=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,gS=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:ee}=h.useContext(Br),{showSearch:K,allowClear:te,style:ne,styles:re,className:ie,classNames:ae,clearIcon:oe,loadingIcon:se,menuItemSelectedIcon:ce,removeIcon:le,suffixIcon:ue}=Ur(`select`),[,de]=xc(),fe=d??de?.controlHeight,pe=V(`select`,n),me=V(),he=x??U,{compactSize:ge,compactItemClassnames:_e}=Od(pe,he),[ve,ye]=bm(`select`,w,r),be=og(pe),[xe,Se]=lde(pe,be),Ce=h.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===hS?`combobox`:t},[e.mode]),we=Ce===`multiple`||Ce===`tags`,Te=dde(e.suffixIcon,e.showArrow),Ee=b??y??G,De=ude(M||j),Oe=P||N,{status:ke,hasFeedback:Ae,isFormItemInput:je,feedbackIcon:Me}=h.useContext(_m),Ne=Z_(ke,_),Pe;Pe=g===void 0?Ce===`combobox`?null:H?.(`Select`)||h.createElement(lS,{componentName:`Select`}):g;let{suffixIcon:Fe,itemIcon:Ie,removeIcon:Le,clearIcon:Re}=Pv({...z,multiple:we,hasFeedback:Ae,feedbackIcon:Me,showSuffixIcon:Te,prefixCls:pe,componentName:`Select`,clearIcon:L,searchIcon:iS(R,`searchIcon`),contextClearIcon:oe,contextLoadingIcon:se,contextMenuItemSelectedIcon:ce,contextRemoveIcon:le,contextSearchIcon:iS(K,`searchIcon`),contextSuffixIcon:ue}),ze=C??te,Be=ze===!0?{clearIcon:Re}:ze,Ve=R??K,He=Wt(z,[`suffixIcon`,`itemIcon`]),Ue=ed(e=>f??ge??e),We=h.useContext(Cu),Ge=p??We,Ke={...e,variant:ve,status:Ne,disabled:Ge,size:Ue},qe=jr(ne),Je=jr(S),[Ye,Xe]=Nr([ae,I],[re,qe,F,Je],{props:Ke},{popup:{_default:`root`}}),Ze=m(Ye.popup.root,s,c,{[`${pe}-dropdown-${he}`]:he===`rtl`},a,Se,be,xe),Qe={...Xe.popup?.root,...T??E},$e=m({[`${pe}-lg`]:Ue===`large`,[`${pe}-sm`]:Ue===`small`,[`${pe}-rtl`]:he===`rtl`,[`${pe}-${ve}`]:ye,[`${pe}-in-form-item`]:je},X_(pe,Ne,Ae),_e,ie,i,Ye.root,a,Se,be,xe),et=h.useMemo(()=>u===void 0?he===`rtl`?`bottomRight`:`bottomLeft`:u,[u,he]),[tt]=Ed(`SelectLike`,Xe.popup.root?.zIndex??Qe.zIndex);return h.createElement(Yue,{ref:t,virtual:W,classNames:Ye,styles:Xe,showSearch:Ve,...He,style:Xe.root,popupMatchSelectWidth:Ee,transitionName:Kf(me,`slide-up`,D),builtinPlacements:tde(v,ee),listHeight:l,listItemHeight:fe,mode:Ce,prefixCls:pe,placement:et,direction:he,prefix:A,suffixIcon:Fe,menuItemSelectedIcon:Ie,removeIcon:Le,allowClear:Be,notFoundContent:Pe,className:$e,getPopupContainer:o||B,popupClassName:Ze,disabled:Ge,popupStyle:{...Xe.popup.root,...Qe,zIndex:tt},maxCount:we?k:void 0,tagRender:we?O:void 0,popupRender:De,onPopupVisibleChange:Oe})}),fde=Tg(gS,`popupAlign`);gS.SECRET_COMBOBOX_MODE_DO_NOT_USE=hS,gS.Option=Hx,gS.OptGroup=Vx,gS._InternalPanelDoNotUseOrYouWillBeFired=fde;function pde(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 mde(e,t,n){var r=(n||{}).atBegin;return pde(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var _S=100,vS=_S/5,yS=_S/2-vS/2,bS=yS*2*Math.PI,xS=50,SS=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return h.createElement(`circle`,{className:m(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:yS,cx:xS,cy:xS,strokeWidth:vS,style:n})},hde=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=h.useState(!1);ge(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${bS/4}`,strokeDasharray:`${bS*s/100} ${bS*(100-s)/100}`};return h.createElement(`span`,{className:m(r,`${n}-progress`,{[i]:s<=0})},h.createElement(`svg`,{viewBox:`0 0 ${_S} ${_S}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},h.createElement(SS,{dotClassName:n,hasCircleCls:!0}),h.createElement(SS,{dotClassName:n,style:c})))};function gde(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(hde,{prefixCls:t,percent:n}))}function _de(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&h.isValidElement(n)?vu(n,e=>({className:m(e.className,o,i),style:{...e.style,...a},percent:r})):h.createElement(gde,{prefixCls:t,percent:r,className:i,style:a})}var vde=new to(`antSpinMove`,{to:{opacity:1}}),yde=new to(`antRotate`,{to:{transform:`rotate(405deg)`}}),bde=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...io(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}}}}}},xde=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Tc(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:yde,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:vde,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}}}}},Sde=e=>{let{componentCls:t}=e,[n]=Tc(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},Cde=Sc(`Spin`,e=>{let t=Go(e,{spinDotDefault:e.colorTextDescription});return[bde(t),xde(t),Sde(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),wde=200,CS=[[30,.05],[70,.03],[96,.01]];function Tde(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<CS.length;n+=1){let[r,i]=CS[n];if(e<=r)return e+t*i}return e})},wde)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var wS;function Ede(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var TS=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}=Ur(`spin`),D=b(`spin`,t),[O,k]=Cde(D),[A,j]=h.useState(()=>n&&!Ede(n,r)),M=Tde(A,g);h.useEffect(()=>{if(n){let e=mde(r,()=>{j(!0)});return e(),()=>{e?.cancel?.()}}j(!1)},[r,n]);let N=ed(e=>o??e),P=c??s,F={...e,size:N,spinning:A,tip:P,description:P,fullscreen:f,children:d,percent:M},[I,L]=Nr([T,_],[E,v],{props:F}),R=p??S??wS,z=d!==void 0,B=z||f,V=h.createElement(h.Fragment,null,h.createElement(_de,{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))};TS.setDefaultIndicator=e=>{wS=e};function ES(){return ES=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},ES.apply(this,arguments)}var DS=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]=ye(r??!1,n);function y(e,t){let n=_;return i||(n=e,v(n),l?.(n,t)),n}function b(e){e.which===Et.LEFT?y(!1,e):e.which===Et.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`,ES({},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)))});DS.displayName=`Switch`;var Dde=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=q(c(s).add(c(r).mul(2)).equal()),d=q(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:q(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% - ${q(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()}}}}}}},Ode=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}}}},kde=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`,...yf(),"&::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:`""`,...yf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${q(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}}}}},Ade=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=q(c(o).add(c(r).mul(2)).equal()),d=q(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(`, `),...yf(),[`${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(`, `),...yf()},[`${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()}}}}}},jde=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...io(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:q(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...yf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...lo(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`}}}},Mde=Sc(`Switch`,e=>{let t=Go(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[jde(t),Ade(t),kde(t),Ode(t),Dde(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 ps(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),Nde=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]=ye(d??f??!1,l??u),{getPrefixCls:x,direction:S,className:C,style:w,classNames:T,styles:E}=Ur(`switch`),D=h.useContext(Cu),O=(i??D)||a,k=x(`switch`,n),[A,j]=Mde(k),M=ed(r),N={...e,size:M,disabled:O},P=jr(w),F=jr(c),[I,L]=Nr([T,_],[E,P,g,F],{props:N}),R=h.createElement(`div`,{className:m(`${k}-handle`,I.indicator),style:L.indicator},a&&h.createElement(Hd,{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($u,{component:`Switch`,disabled:O},h.createElement(DS,{...v,classNames:I,styles:L,checked:y,onChange:B,prefixCls:k,className:z,style:L.root,disabled:O,ref:t,loadingIcon:R}))});Nde.__ANT_SWITCH=!0;var OS={},kS=`rc-table-internal-hook`;function AS(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 ge(()=>{(0,Sn.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),h.createElement(t.Provider,{value:i},n)},defaultValue:e}}function jS(e,t){let n=pe(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 ge(()=>{if(!r)return;function e(e){let t=n(e);Bt(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function MS(){return MS=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},MS.apply(this,arguments)}function Pde(){let e=h.createContext(null);function t(){return h.useContext(e)}function n(n,r){let i=Re(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,MS({},a,s)))):h.createElement(n,MS({},a,s))};return i?h.forwardRef(a):a}function r(e,n){let r=Re(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),h.createElement(e,MS({},n,a))};return h.memo(r?h.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:Fde,responseImmutable:Ide,useImmutableMark:Lde}=Pde(),{makeImmutable:Rde,responseImmutable:NS,useImmutableMark:zde}=Pde(),PS=AS(),Bde=h.createContext({renderWithProps:!1}),Vde=`RC_TABLE_KEY`;function Hde(e){return e==null?[]:Array.isArray(e)?e:[e]}function FS(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||Hde(i).join(`-`)||Vde;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function IS(e){return e!=null}function Ude(e){return typeof e==`number`&&!Number.isNaN(e)}function Wde(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!h.isValidElement(e)}function Gde(e,t,n,r,i,a){let o=h.useContext(Bde);return Te(()=>{if(IS(r))return[r];let a=on(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);Wde(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[zde(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!Bt(e,t,!0)})}function Kde(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function qde(e,t){return jS(PS,n=>[Kde(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function LS(){return LS=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},LS.apply(this,arguments)}var Jde=({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},RS=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}=jS(PS,[`allColumnsFixedLeft`,`rowHoverable`]),[P,F]=Gde(l,d,f,n,u,p),I={},L=typeof b==`number`&&!M,R=typeof x==`number`&&!M,[z,B]=jS(PS,({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]=qde(g,H),G=pe(e=>{l&&W(g,g+H-1),k?.onMouseEnter?.(e)}),ee=pe(e=>{l&&W(-1,-1),k?.onMouseLeave?.(e)});if(V===0||H===0)return null;let K=k.title??Jde({rowType:_,ellipsis:r,children:P}),te=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),ne={};c&&(ne.textAlign=c);let re={...F?.style,...I,...ne,...k.style,...s},ie=P;return typeof ie==`object`&&!Array.isArray(ie)&&!h.isValidElement(ie)&&(ie=null),r&&(S||C)&&(ie=h.createElement(`span`,{className:`${j}-content`},ie)),h.createElement(t,LS({},F,k,{className:te,style:re,title:K,scope:i,onMouseEnter:N?G:void 0,onMouseLeave:N?ee:void 0,colSpan:V===1?null:V,rowSpan:H===1?null:H}),O,ie)});function zS(e){return e.fixed===`start`}function BS(e){return e.fixed===`end`}function VS(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;zS(i)&&zS(a)?o=r.start[e]:BS(a)&&BS(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!zS(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!BS(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;t<e;t+=1)zS(n[t])||(f+=r.widths[t]||0);if(l)for(let e=n.length-1;e>t;--e)BS(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 HS=h.createContext({});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 Yde=e=>{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=jS(PS,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=h.useContext(HS),d=n+i-1+1===c?i+1:i,f=h.useMemo(()=>VS(n,n+d-1,u,l),[n,d,u,l]);return h.createElement(RS,US({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},Xde=e=>{let{children:t,...n}=e;return h.createElement(`tr`,n,t)},WS=e=>{let{children:t}=e;return t};WS.Row=Xde,WS.Cell=Yde;var GS=NS(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=jS(PS,`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(HS.Provider,{value:s},h.createElement(`tfoot`,{className:`${i}-summary`},t))}),KS=WS;function Zde(e){return null}function Qde(e){return null}function qS(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)qS(e,t[r][o],n+1,r,i,a,o)}function JS(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];qS(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 YS(e,t,n,r){let i=jS(PS,[`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=pe(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=FS(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 XS=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}=jS(PS,[`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(RS,{component:i,prefixCls:t,colSpan:s},g))};function $de({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 efe(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 ZS(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function QS(){return QS=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},QS.apply(this,arguments)}function $S(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 tfe=NS(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,_=YS(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=ZS(b,a,o,u),D=h.createElement(d,QS({},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}=$S(_,e,t,u,o,l,g?.offset);return h.createElement(RS,QS({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(XS,{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)}),nfe=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=h.useRef(null);return ge(()=>{i.current&&n(t,i.current.offsetWidth)},[]),h.createElement(Fl,{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`)))},rfe=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=h.useRef(null),{measureRowRender:a}=jS(PS,[`measureRowRender`]),o=h.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},h.createElement(Fl.Collection,{onBatchResize:e=>{it(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(nfe,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},ife=NS(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}=jS(PS,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:_={}}=d||{},{body:v={}}=f||{},y=JS(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(tfe,{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(XS,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:w,cellComponent:T,colSpan:o.length,isEmpty:!0},u);let O=FS(o);return h.createElement(Bde.Provider,{value:x.current},h.createElement(C,{style:v.wrapper,className:m(`${r}-tbody`,_.wrapper)},n&&h.createElement(rfe,{prefixCls:r,columnsKey:O,onColumnResize:a,columns:o}),D))}),eC=`RC_TABLE_INTERNAL_COL_DEFINE`;function afe(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function tC(){return tC=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},tC.apply(this,arguments)}var nC=e=>{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=jS(PS,[`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[eC],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(h.createElement(`col`,tC({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?h.createElement(`colgroup`,null,a):null};function ofe(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 sfe=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}=jS(PS,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),O=D([`header`,`table`],`table`),k=E&&!f?0:T,A=h.useRef(null),j=h.useCallback(e=>{Fe(t,e),Fe(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=ofe(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(nC,{colWidths:[...L,k],columCount:l+1,columns:F}),S({...C,stickyOffsets:I,columns:P,flattenColumns:F})))}),rC=h.memo(sfe);function iC(){return iC=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},iC.apply(this,arguments)}var cfe=e=>{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=jS(PS,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=FS(t.map(e=>e.column));return h.createElement(i,iC({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=VS(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return h.createElement(RS,iC({},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 lfe(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 aC=NS(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=jS(PS,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=h.useMemo(()=>lfe(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(cfe,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:g,onHeaderRow:i,index:n})))});function oC(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function ufe(e,t,n){return h.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=oC(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=oC(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 sC(e){return rn(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=sC(r)),a})}function cC(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:cC(t)}:e})}function lC(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,...lC(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function dfe({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(()=>cC((t||sC(n)||[]).slice()),[t,n]),x=h.useMemo(()=>{if(r){let t=b.slice();if(!t.includes(OS)){let e=u||0,n=e===0&&(g===`right`||g===`end`)?b.length:e;n>=0&&t.splice(n,0,OS)}let n=t.indexOf(OS);t=t.filter((e,t)=>e!==OS||t===n);let r=b[n],f;f=g||(r?r.fixed:null);let _={[eC]:{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===OS?_:e;return t<d?{...n,fixed:n.fixed||`start`}:n})}return b.filter(e=>e!==OS)},[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]=ufe(h.useMemo(()=>lC(S),[S,f,_]),_,v);return[S,C,w]}function ffe(e,t,n){let r=afe(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||$de,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?efe(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 pfe(e,t){let n=h.useMemo(()=>e.map((n,r)=>VS(r,r,e,t)),[e,t]);return Te(()=>n,[n],(e,t)=>!Bt(e,t))}function mfe(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 hfe(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 gfe(){let[e,t]=h.useState(-1),[n,r]=h.useState(-1);return[e,n,h.useCallback((e,n)=>{t(e),r(n)},[])]}var uC=me()?window:null;function _fe(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>uC}=typeof e==`object`?e:{},o=a()||uC,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 vfe(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 dC=e=>{let{children:t,className:n,style:r}=e;return h.createElement(`div`,{className:n,style:r},t)};function fC(e){let t=rt(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 pC=`mouseup`,mC=`mousemove`,hC=`scroll`,gC=`resize`,yfe=h.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=jS(PS,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=h.useRef(null),[f,p]=mfe({scrollLeft:0,isHiddenScrollBar:!0}),g=h.useRef({delta:0,x:0}),[_,v]=h.useState(!1),y=h.useRef(null);h.useEffect(()=>()=>{nn.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=()=>{nn.cancel(y.current),y.current=nn(()=>{if(!n.current)return;let e=fC(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:fC(a).top+a.clientHeight;t-kt()<=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(pC,b,!1),document.body.addEventListener(mC,S,!1),C(),()=>{document.body.removeEventListener(pC,b),document.body.removeEventListener(mC,S)}),[u,_]),h.useEffect(()=>{if(n.current){let e=[],t=rt(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(hC,C,!1)}),window.addEventListener(gC,C,!1),window.addEventListener(hC,C,!1),a.addEventListener(hC,C,!1),()=>{e.forEach(e=>{e.removeEventListener(hC,C)}),window.removeEventListener(gC,C),window.removeEventListener(hC,C),a.removeEventListener(hC,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:kt(),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 _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)}var vC=`rc-table`,bfe=[],xfe={};function Sfe(){return`No Data`}var Cfe=h.forwardRef((e,t)=>{let n={rowKey:`key`,prefixCls:vC,emptyText:Sfe,...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||bfe,I=!!F.length,L=O===kS,R=h.useCallback((e,t)=>on(S,e)||t,[S]),z=h.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),B=R([`body`]),[V,H,U]=gfe(),[W,G,ee,K,te,ne]=ffe(n,F,z),re=d?.x,[ie,ae]=h.useState(0),[oe,se,ce]=dfe({...n,...W,expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:ee,getRowKey:z,onTriggerExpand:ne,expandIcon:K,expandIconColumnIndex:W.expandIconColumnIndex,direction:p,scrollWidth:L&&j&&typeof re==`number`?re:null,clientWidth:ie},L?k:null),le=ce??re,ue=h.useMemo(()=>({columns:oe,flattenColumns:se}),[oe,se]),de=h.useRef(null),fe=h.useRef(null),me=h.useRef(null),he=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:de.current,scrollTo:e=>{if(me.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i,align:a=`nearest`}=e;if(Ude(n))me.current?.scrollTo({top:n});else{let e=r??z(F[t]),n=me.current.querySelector(`[data-row-key="${e}"]`);if(n&&(n.scrollIntoView({block:a}),i)){let e=me.current;e.scrollTo({top:e.scrollTop+i})}}}else me.current?.scrollTo&&me.current.scrollTo(e)}}));let _e=h.useRef(null),[ve,ye]=h.useState(!1),[be,xe]=h.useState(!1),[Se,Ce]=h.useState(new Map),we=FS(se).map(e=>Se.get(e)),Te=h.useMemo(()=>we,[we.join(`_`)]),Ee=vfe(Te,se),De=d&&IS(d.y),Oe=d&&IS(le)||!!W.fixed,ke=Oe&&se.some(({fixed:e})=>e),Ae=h.useRef(null),{isSticky:je,offsetHeader:Me,offsetSummary:Ne,offsetScroll:Pe,stickyClassName:Fe,container:Ie}=_fe(N,r),Le=h.useMemo(()=>v?.(F),[v,F]),Re=(De||je)&&h.isValidElement(Le)&&Le.type===WS&&Le.props.fixed,ze,Be,Ve;De&&(Be={overflowY:I?`scroll`:`auto`,maxHeight:d.y}),Oe&&(ze={overflowX:`auto`},De||(Be={overflowY:`hidden`}),Ve={width:le===!0?`auto`:le,minWidth:`100%`});let He=h.useCallback((e,t)=>{Ce(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[Ue,We]=hfe(null);function Ge(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[Ke,qe]=h.useState([0,0]),Je=pe(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||xfe;(!We()||We()===r)&&(Ue(r),Ge(n,fe.current),Ge(n,me.current),Ge(n,_e.current),Ge(n,Ae.current?.setScrollLeft));let i=e||fe.current;if(i){let e=L&&j&&typeof le==`number`?le:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(qe(n=>{let i=[r,e-t];return Bt(n,i)?n:i}),e===t){ye(!1),xe(!1);return}ye(r>0),xe(r<e-t-1)}}),Ye=pe(e=>{Je(e),D?.(e)}),Xe=()=>{Oe&&me.current?Je({currentTarget:rt(me.current),scrollLeft:me.current?.scrollLeft}):(ye(!1),xe(!1))},Ze=e=>{Ae.current?.checkScrollBarVisible();let t=e??de.current?.offsetWidth??0;L&&M&&de.current&&(t=M(de.current,t)||t),t!==ie&&(Xe(),ae(t))};ge(()=>{Oe&&Ze()},[Oe]);let Qe=h.useRef(!1);h.useEffect(()=>{Qe.current&&Xe()},[Oe,l,oe.length]),h.useEffect(()=>{Qe.current=!0},[]);let[$e,et]=h.useState(0);ge(()=>{(!j||!L)&&(me.current instanceof Element?et(At(me.current).width):et(At(he.current).width))},[]),h.useEffect(()=>{L&&A&&(A.body.current=me.current)});let tt=h.useCallback(e=>h.createElement(h.Fragment,null,h.createElement(aC,e),Re===`top`&&h.createElement(GS,e,Le)),[Re,Le]),nt=h.useCallback(e=>h.createElement(GS,e,Le),[Le]),it=R([`table`],`table`),at=h.useMemo(()=>f||(ke?le===`max-content`?`auto`:`fixed`:De||je||se.some(({ellipsis:e})=>e)?`fixed`:`auto`),[De,ke,se,f,je]),ot,st={colWidths:Te,columCount:se.length,stickyOffsets:Ee,onHeaderRow:T,fixHeader:De,scroll:d},ct=h.useMemo(()=>I?null:typeof C==`function`?C():C,[I,C]),lt=h.createElement(ife,{data:F,measureColumnWidth:De||Oe||je}),ut=h.createElement(nC,{colWidths:se.map(({width:e})=>e),columns:se}),dt=y==null?void 0:h.createElement(`caption`,{className:`${r}-caption`},y),ft=Yt(n,{data:!0}),pt=Yt(n,{aria:!0});if(De||je){let e;typeof B==`function`?(e=B(F,{scrollbarSize:$e,ref:me,onScroll:Je}),st.colWidths=se.map(({width:e},t)=>{let n=t===se.length-1?e-$e:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=h.createElement(`div`,{style:{...ze,...Be},onScroll:Ye,ref:me,className:`${r}-body`},h.createElement(it,_C({style:{...Ve,tableLayout:at}},pt),dt,ut,lt,!Re&&Le&&h.createElement(GS,{stickyOffsets:Ee,flattenColumns:se},Le)));let t={noData:!F.length,maxContentScroll:Oe&&le===`max-content`,...st,...ue,direction:p,stickyClassName:Fe,scrollX:le,tableLayout:at,onScroll:Je};ot=h.createElement(h.Fragment,null,x!==!1&&h.createElement(rC,_C({},t,{stickyTopOffset:Me,className:`${r}-header`,ref:fe,colGroup:ut}),tt),e,Re&&Re!==`top`&&h.createElement(rC,_C({},t,{stickyBottomOffset:Ne,className:`${r}-summary`,ref:_e,colGroup:ut}),nt),je&&me.current&&me.current instanceof Element&&h.createElement(yfe,{ref:Ae,offsetScroll:Pe,scrollBodyRef:me,onScroll:Je,container:Ie,direction:p}))}else ot=h.createElement(`div`,{style:{...ze,...Be,...c?.content},className:m(`${r}-content`,s?.content),onScroll:Je,ref:me},h.createElement(it,_C({style:{...Ve,tableLayout:at}},pt),dt,ut,x!==!1&&h.createElement(aC,_C({},st,ue)),lt,Le&&h.createElement(GS,{stickyOffsets:Ee,flattenColumns:se},Le)));let mt={...o};je&&(mt[`--columns-count`]=se.length);let ht=h.createElement(`div`,_C({className:m(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:Oe,[`${r}-fix-end-shadow`]:Oe,[`${r}-fix-start-shadow-show`]:Oe&&ve,[`${r}-fix-end-shadow-show`]:Oe&&be,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:De,[`${r}-fixed-column`]:ke,[`${r}-scroll-horizontal`]:Oe,[`${r}-has-fix-start`]:se[0]?.fixed,[`${r}-has-fix-end`]:se[se.length-1]?.fixed===`end`}),style:mt,id:b,ref:de},ft),g&&h.createElement(dC,{className:m(`${r}-title`,s?.title),style:c?.title},g(F)),h.createElement(`div`,{ref:he,className:m(`${r}-container`,s?.section),style:c?.section},ot),_&&h.createElement(dC,{className:m(`${r}-footer`,s?.footer),style:c?.footer},_(F)));Oe&&(ht=h.createElement(Fl,{onResize:({offsetWidth:e})=>Ze(e)},ht));let gt=pfe(se,Ee),_t=h.useMemo(()=>({scrollX:le,scrollInfo:Ke,classNames:s,styles:c,prefixCls:r,getComponent:R,scrollbarSize:$e,direction:p,fixedInfoList:gt,isSticky:je,componentWidth:ie,fixHeader:De,fixColumn:ke,horizonScroll:Oe,tableLayout:at,rowClassName:a,expandedRowClassName:W.expandedRowClassName,expandIcon:K,expandableType:G,expandRowByClick:W.expandRowByClick,expandedRowRender:W.expandedRowRender,expandedRowOffset:W.expandedRowOffset,onTriggerExpand:ne,expandIconColumnIndex:W.expandIconColumnIndex,indentSize:W.indentSize,allColumnsFixedLeft:se.every(e=>e.fixed===`start`),emptyNode:ct,columns:oe,flattenColumns:se,onColumnResize:He,colWidths:Te,hoverStartRow:V,hoverEndRow:H,onHover:U,rowExpandable:W.rowExpandable,onRow:w,getRowKey:z,expandedKeys:ee,childrenColumnName:te,rowHoverable:P,measureRowRender:E}),[le,Ke,s,c,r,R,$e,p,gt,je,ie,De,ke,Oe,at,a,W.expandedRowClassName,K,G,W.expandRowByClick,W.expandedRowRender,W.expandedRowOffset,ne,W.expandIconColumnIndex,W.indentSize,ct,oe,se,He,Te,V,H,U,W.rowExpandable,w,z,ee,te,P,E]);return h.createElement(PS.Provider,{value:_t},ht)}),yC=e=>Rde(Cfe,e),bC=yC();bC.EXPAND_COLUMN=OS,bC.INTERNAL_HOOKS=kS,bC.Column=Zde,bC.ColumnGroup=Qde,bC.Summary=KS;var xC=AS(null),SC=AS(null);function CC(){return CC=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},CC.apply(this,arguments)}function wfe(e,t,n){return n[e+(t||1)]-(n[e]||0)}var Tfe=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}=jS(SC,[`columnsOffset`]),{key:b,fixedInfo:x,appendCellNode:S,additionalCellProps:C}=$S(t,n,r,i,a),{style:w,colSpan:T=1,rowSpan:E=1}=C,D=wfe(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(RS,CC({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 wC(){return wC=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},wC.apply(this,arguments)}var TC=NS(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}=jS(PS,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`,`classNames`,`styles`]),{getComponent:S}=jS(xC,[`getComponent`]),C=YS(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=ZS(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(RS,{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,wC({},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(Tfe,{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})),Efe={start:`top`,end:`bottom`,nearest:`auto`},Dfe=NS(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}=jS(PS,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:g,onScroll:_}=jS(xC),v=h.useRef(null),y=JS(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=Efe[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(TC,{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(SC.Provider,{value:w},h.createElement(Qx,{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(TC,{data:e,rowKey:r,index:t,style:n.style})}))}));function EC(){return EC=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},EC.apply(this,arguments)}var Ofe=(e,t)=>{let{ref:n,onScroll:r}=t;return h.createElement(Dfe,{ref:n,data:e,onScroll:r})},kfe=h.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=vC,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=pe((e,t)=>on(l,e)||t),g=pe(u),_=h.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:g}),[a,f,c,p,g]);return h.createElement(xC.Provider,{value:_},h.createElement(bC,EC({},e,{className:m(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?Ofe:void 0},columns:r,internalHooks:kS,tailor:!0,ref:t})))}),DC=e=>Rde(kfe,e);DC();var Afe=e=>null,jfe=e=>null,OC=h.createContext(null),Mfe=h.createContext({}),Nfe=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})},Pfe=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 kC(e,t){return e[t]}function AC(e,t){return`${e}-${t}`}function Ffe(e){return e&&e.type&&e.type.isTreeNode}function jC(e,t){return e??t}function MC(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 NC(e){function t(e){return rn(e).map(e=>{if(!Ffe(e))return Rt(!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 PC(e,t,n){let{_title:r,key:i,children:a}=MC(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=AC(n?n.pos:`0`,u),f=jC(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(Wt(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 Ife(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}=MC(o),l=i||c,u;a?typeof a==`string`?u=e=>e[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>jC(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?AC(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 FC(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),Ife(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=jC(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 IC(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function LC(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=kC(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 RC(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 Rt(!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 zC(){return zC=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},zC.apply(this,arguments)}var BC=`open`,VC=`close`,Lfe=`---`,HC=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=Se(S,t),T=h.useContext(OC),{classNames:E,styles:D}=T||{},O=h.useContext(Mfe),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,RC(e))},F=t=>{M||!N||e.disableCheckbox||T.onNodeCheck(t,RC(e),!f)},I=h.useMemo(()=>typeof x==`boolean`?x:T.selectable,[x,T.selectable]),L=t=>{T.onNodeClick(t,RC(e)),I?P(t):F(t)},R=t=>{T.onNodeDoubleClick(t,RC(e))},z=t=>{T.onNodeMouseEnter(t,RC(e))},B=t=>{T.onNodeMouseLeave(t,RC(e))},V=t=>{T.onNodeContextMenu(t,RC(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)},ee=t=>{t.stopPropagation(),T.onNodeDragLeave(t,e)},K=t=>{t.stopPropagation(),j(!1),T.onNodeDragEnd(t,e)},te=t=>{t.preventDefault(),t.stopPropagation(),j(!1),T.onNodeDrop(t,e)},ne=t=>{g||T.onNodeExpand(t,RC(e))},re=h.useMemo(()=>{let{children:e}=kC(T.keyEntities,t)||{};return!!(e||[]).length},[T.keyEntities,t]),ie=h.useMemo(()=>IC(s,T.loadData,re,e.loaded),[s,T.loadData,re,e.loaded]);h.useEffect(()=>{g||typeof T.loadData==`function`&&u&&!ie&&!e.loaded&&T.onNodeLoad(RC(e))},[g,T.loadData,T.onNodeLoad,u,ie,e]);let ae=h.useMemo(()=>T.draggable?.icon?h.createElement(`span`,{className:`${T.prefixCls}-draggable-icon`},T.draggable.icon):null,[T.draggable]),oe=t=>{let n=e.switcherIcon||T.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},se=()=>{if(ie){let e=oe(!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=oe(!1);return e===!1?null:h.createElement(`span`,{onClick:ne,className:m(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher_${u?BC:VC}`,E?.itemSwitcher),style:D?.itemSwitcher},e)},ce=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]),le=h.useMemo(()=>ie?null:u?BC:VC,[ie,u]),ue=h.useMemo(()=>h.createElement(`span`,{className:m(E?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__${le||`docu`}`,{[`${T.prefixCls}-icon_loading`]:g}),style:D?.itemIcon}),[T.prefixCls,le,g]),de=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]),fe=h.useMemo(()=>{let{title:t=Lfe}=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):ue}else T.loadData&&g&&(r=ue);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}-${le||`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),de)},[T.prefixCls,T.showIcon,e,T.icon,ue,T.titleRender,y,le,z,B,V,L,R]),pe=Yt(C,{aria:!0,data:!0}),{level:me}=kC(T.keyEntities,t)||{},he=l[l.length-1],ge=!M&&H,_e=T.draggingNodeKey===t;return h.createElement(`div`,zC({ref:_,role:`treeitem`,id:w,"aria-expanded":ie?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`]:he,[`${T.prefixCls}-treenode-draggable`]:H,dragging:_e,"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?.(RC(e)),[`${T.prefixCls}-treenode-leaf`]:ie}),style:{...r,...D?.item},draggable:ge,onDragStart:ge?U:void 0,onDragEnter:H?W:void 0,onDragOver:H?G:void 0,onDragLeave:H?ee:void 0,onDrop:H?te:void 0,onDragEnd:H?K:void 0,onMouseMove:b},pe),h.createElement(Pfe,{prefixCls:T.prefixCls,level:me,isStart:c,isEnd:l}),ae,se(),ce,fe)};HC.isTreeNode=1;function Rfe(e,t){let[n,r]=h.useState(!1);ge(()=>{if(n)return e(),()=>{t()}},[n]),ge(()=>(r(!0),()=>{r(!1)}),[])}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 zfe=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(OC),_=a&&o!==`hide`;ge(()=>{a&&_!==f&&p(_)},[a]);let v=()=>{a&&s()},y=h.useRef(!1),b=()=>{a&&!y.current&&(y.current=!0,c())};return Rfe(v,b),a?h.createElement(ur,UC({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=LC(r,u);return h.createElement(HC,UC({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):h.createElement(HC,UC({domRef:t,className:n,style:r},d,{active:l}))});function Bfe(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 WC(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 GC(){return GC=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},GC.apply(this,arguments)}var KC=`RC_TREE_MOTION_${Math.random()}`,qC={key:KC},JC={key:KC,level:0,index:0,pos:`0`,node:qC,nodes:[qC]},YC={parent:null,children:[],pos:JC.pos,data:qC,title:null,key:KC,isStart:[],isEnd:[]};function XC(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function ZC(e){let{key:t,pos:n}=e;return jC(t,n)}var Vfe=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=we(),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,ee]=h.useState(null),K=h.useRef(r);K.current=r;function te(){let e=K.current;B(e),H(e),W([]),ee(null),M()}ge(()=>{R(o);let e=Bfe(L,o);if(e.key!==null)if(e.add){let t=z.findIndex(({key:t})=>t===e.key),n=XC(WC(z,r,e.key),x,y,b),i=z.slice();i.splice(t+1,0,YC),H(i),W(n),ee(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=XC(WC(r,z,e.key),x,y,b),i=r.slice();i.splice(t+1,0,YC),H(i),W(n),ee(`hide`)}else z!==r&&(B(r),H(r))},[o,r]),h.useEffect(()=>{m||te()},[m]);let ne=v?V:r,re={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(Qx,GC({},N,{data:ne,itemKey:ZC,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?Se(P,w.key):void 0,onKeyDown:E,onFocus:D,onBlur:O,onMouseDown:k,onVisibleChange:e=>{e.every(e=>ZC(e)!==KC)&&te()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=jC(i,t);delete n.key,delete n.children;let c=LC(s,re);return h.createElement(zfe,GC({},n,c,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:v,motionNodes:i===KC?U:null,motionType:G,onMotionStart:j,onMotionEnd:te,treeNodeRequiredProps:re,treeId:P,onMouseMove:()=>{A(null)}}))}))});function QC(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function $C(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function ew(e){return e.split(`-`)}function Hfe(e,t){let n=[],r=kC(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function Ufe(e){if(e.parent){let t=ew(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Wfe(e){let t=ew(e.pos);return Number(t[t.length-1])===0}function tw(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=kC(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=kC(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e<m&&Ufe(g);e+=1)g=g.parent,x+=1;let S=t.data,C=g.node,w=!0;return Wfe(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 nw(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function rw(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 Rt(!1,"`checkedKeys` is not an array or an object"),null;return t}function iw(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=kC(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 aw(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Gfe(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Kfe(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(aw(a,i))}}function qfe(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(aw(o,a))}}function ow(e,t,n,r){let i=[],a;a=r||Gfe;let o=new Set(e.filter(e=>{let t=!!kC(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)}),Rt(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?Kfe(o,s,c,a):qfe(o,t.halfCheckedKeys,s,c,a),l}function sw(){return sw=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},sw.apply(this,arguments)}var Jfe=10,Yfe=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:Nfe,allowDrop:()=>!0,expandAction:!1};static TreeNode=HC;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:MC()};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=MC(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(Rt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=NC(e.children)),a){r.treeData=a;let e=FC(a,{fieldNames:o});r.keyEntities={[KC]:JC,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?iw(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[KC];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?iw(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=PC(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=nw(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=nw(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=rw(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=rw(e.defaultCheckedKeys)||{}:a&&(o=rw(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=ow(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=QC(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:Hfe(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:RC(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}=tw(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=kC(r,t.eventKey);a&&(a.children||[]).length&&(i=$C(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:RC(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:RC(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}=tw(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:RC(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:RC(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:RC(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={...LC(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:kC(this.state.keyEntities,a).node};Rt(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=ew(o),d={event:e,node:RC(l),dragNode:this.dragNodeProps?RC(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=RC({...LC(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?QC(n,a):$C(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?$C(n,c):[c]:QC(n,c);let u=n.map(e=>{let t=kC(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?$C(i,c):QC(i,c);l={checked:e,halfChecked:QC(a,c)},u.checkedNodes=e.map(e=>kC(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=ow([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=ow(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=kC(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(kC(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=$C(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:QC(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:QC(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=Jfe){let{loadedKeys:e}=this.state;Rt(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:$C(e,t)}),n()}r(e)}),{loadingKeys:$C(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=PC(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(Rt(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?$C(n,c):QC(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=PC(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=QC(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=RC({...LC(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!kC(a,t)?.children?.length,l=!IC(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=Yt(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(OC.Provider,{value:U},h.createElement(`div`,{className:m(l,u,z,{[`${l}-show-line`]:g}),style:B},h.createElement(Vfe,sw({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))))}},cw=h.createContext(null),Xfe=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`,a=`@media (hover: hover) and (pointer: fine)`;return[{[`${t}-group`]:{...io(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...io(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0}},[t]:{...io(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:`${q(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...yf(),"&: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:`${q(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}`,...yf()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:co(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}`,...yf()},[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 lw(e,t){return Xfe(Go(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var uw=Sc(`Checkbox`,(e,{prefixCls:t})=>[lw(t,e)]),Zfe=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}=Ur(`checkbox`),O=h.useContext(cw),{isFormItemInput:k}=h.useContext(_m),A=h.useContext(Cu),j=(O?.disabled||c)??A,[M,N]=ye(y,v),P=M,F=pe(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=Le(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=og(R),[B,V]=uw(R,z),H={...x},U={...e,indeterminate:i,disabled:j,checked:P},W=jr(T),G=jr(d),[ee,K]=Nr([E,f],[D,W,p,G],{props:U}),te=m(`${R}-wrapper`,{[`${R}-rtl`]:C===`rtl`,[`${R}-wrapper-checked`]:P,[`${R}-wrapper-disabled`]:j,[`${R}-wrapper-in-form-item`]:k},w,u,ee.root,l,V,z,B),ne=m(ee.icon,{[`${R}-indeterminate`]:i},Gu,B),[re,ie]=yle(H.onClick);return h.createElement($u,{component:`Checkbox`,disabled:j},h.createElement(`label`,{className:te,style:K.root,onMouseEnter:a,onMouseLeave:o,onClick:re},h.createElement(vle,{...H,name:!s&&O?O.name:g,checked:P,onClick:ie,onChange:F,prefixCls:R,className:ne,style:K.icon,disabled:j,ref:L,value:_}),vr(r)&&h.createElement(`span`,{className:m(`${R}-label`,ee.label),style:K.label},r)))}),Qfe=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(Br),[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`||yr(e)?{label:e,value:e}:e),[i]),x=e=>{y(t=>t.filter(t=>t!==e))},S=e=>{y(t=>[].concat(gr(t),[e]))},C=e=>{let t=g.indexOf(e.value),n=gr(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=og(w),[D,O]=uw(w,E),k=Wt(d,[`value`,`disabled`]),A=i.length?b.map(e=>h.createElement(Zfe,{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(cw.Provider,{value:j},A))}),dw=Zfe;dw.Group=Qfe,dw.__ANT_CHECKBOX=!0;var $fe=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 fw(){return fw=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},fw.apply(this,arguments)}var pw=h.forwardRef((e,t)=>h.createElement(W,fw({},e,{ref:t,icon:$fe.default}))),epe=h.createContext({});(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})();var mw=(0,h.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),tpe=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=h.useContext(Br),o=m({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return h.createElement(Uh,{className:o,...i})},npe=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(mw),_=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(epe),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=rn(n).length,w=h.createElement(Ph,{...Wt(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}},vu(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=Sr(b?.classNames)?e=>n(b.classNames(e)):n(b?.classNames);w=h.createElement(Ty,{...S,placement:e,classNames:r},w)}return w},hw=h.createContext(null),rpe=h.forwardRef((e,t)=>{let{children:n,...r}=e,i=h.useContext(hw),a=h.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=Be(n),s=Le(t,o?Ve(n):null);return h.createElement(hw.Provider,{value:a},h.createElement(Y_,{space:!0},o?h.cloneElement(n,{ref:s}):n))}),ipe=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:`${q(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`}}}},ape=({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(${q(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${q(t)})`}}}}),ope=e=>co(e),spe=(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`]:{...ope(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`]:{...ope(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:`${q(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:`${q(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${q(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(`,`)}}}}}},cpe=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:q(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:q(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:u}}},lpe=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:q(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...cpe(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...cpe(e),boxShadow:h}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${q(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% - ${q(e.calc(_).div(2).equal())} - ${q(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:q(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`]:{...ro,paddingInline:m}}}]},upe=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`]:{...ao()},[`&${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`}}}},dpe=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(${q(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${q(o)})`}}}}},fpe=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]:{...so(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...io(e),...so(),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:`${q(s)} ${q(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,...ro},[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% - ${q(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`}},...upe(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${q(e.calc(r).mul(2).equal())} ${q(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,...upe(e),...dpe(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}},...dpe(e),[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${q(h)})`},"&::after":{transform:`rotate(45deg) translateX(${q(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${q(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${q(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${q(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},ppe=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 ps(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 ps(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)`}},mpe=(e,t=e,n=!0)=>Sc(`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=Go(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=Go(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[fpe(x),ipe(x),lpe(x),spe(x,`light`),spe(S,`dark`),ape(x),Jd(x),vf(x,`slide-up`),vf(x,`slide-down`),Of(x,`zoom-big`)]},ppe,{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),hpe=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=h.useContext(mw),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=uh(),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,vu(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]=Ed(`Menu`);return h.createElement(mw.Provider,{value:p},h.createElement(Hh,{...Wt(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 gw(e){return e===null||e===!1}var gpe={item:npe,submenu:hpe,divider:tpe},_pe=(0,h.forwardRef)((e,t)=>{let n=h.useContext(hw),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(Br),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=Ur(`menu`),j=w(),M=Wt(S,[`collapsedWidth`]);r.validator?.({mode:g});let N=pe((...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=jr(O),z=jr(o),[B,V]=Nr([k,b],[A,R,x,z],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),H={horizontal:{motionName:`${j}-slide-up`},inline:Gf(j),other:{motionName:`${j}-zoom-big`}},U=w(`menu`,i||r.prefixCls),W=og(U),[G,ee]=mpe(U,W,!n),K=m(`${U}-${s}`,D,a),te=h.useMemo(()=>{if(Sr(c)||gw(c))return c||null;if(Sr(r.expandIcon)||gw(r.expandIcon))return r.expandIcon||null;if(Sr(C?.expandIcon)||gw(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return vu(e,{className:m(`${U}-submenu-expand-icon`,h.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,U]),ne=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(hw.Provider,{value:null},h.createElement(mw.Provider,{value:ne},h.createElement(Zh,{getPopupContainer:T,overflowedIndicator:h.createElement(jm,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:K,prefixCls:U,direction:E,defaultMotions:H,expandIcon:te,ref:t,rootClassName:m(p,G,r.rootClassName,ee,W,B.root),_internalComponents:gpe})))}),_w=(0,h.forwardRef)((e,t)=>{let n=(0,h.useRef)(null),r=h.useContext(epe);return(0,h.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),h.createElement(_pe,{ref:n,...e,...r})});_w.Item=npe,_w.SubMenu=hpe,_w.Divider=tpe,_w.ItemGroup=Gh;var vpe=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}}}}}},ype=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 - ${q(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:lf},[`&${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:df},[`&${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:uf},[`&${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:ff},[`&${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:pf},[`&${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:hf},[`&${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:mf},[`&${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:gf}}},gy(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`]:{...io(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...lo(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${q(l)} ${q(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:`${q(l)} ${q(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...lo(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:`${q(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 ${q(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}}}},[vf(e,`slide-up`),vf(e,`slide-down`),vf(e,`slide-left`),vf(e,`slide-right`),cf(e,`move-up`),cf(e,`move-down`),Of(e,`zoom-big`)]]},bpe=Sc(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Go(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[ype(a),vpe(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...hy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Cv(e)}),{resetStyle:!1}),vw=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}=Ur(`dropdown`),P={...e,mouseEnterDelay:v,mouseLeaveDelay:y,autoAdjustOverflow:b},[F,I]=Nr([M,C],[N,w],{props:P}),L={...j,...p,...I.root},R=l||c;Lr(`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=og(V),[U,W]=bpe(V,H),[,G]=xc(),ee=h.Children.only(wr(a)?h.createElement(`span`,null,a):a),K=Le(t,Ve(ee)),te=vu(ee,{className:m(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},ee.props.className),disabled:ee.props.disabled??s,ref:K}),ne=s?[]:o,re=!!ne?.includes(`contextMenu`),[ie,ae]=ye(!1,g),oe=pe(e=>{_?.(e,{source:`trigger`}),ae(e)}),se=m(d,f,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),ce=vy({arrowPointAtCenter:xr(r)&&r.pointAtCenter,autoAdjustOverflow:b,offset:G.marginXXS,arrowWidth:r?G.sizePopupArrow:0,borderRadius:G.borderRadius}),le=pe(()=>{n?.selectable&&n?.multiple||(_?.(!1,{source:`menu`}),ae(!1))}),ue=()=>{let e=Wt(F,[`root`]),t=Wt(I,[`root`]),r;return n?.items&&(r=h.createElement(_w,{...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(rpe,{prefixCls:`${V}-menu`,rootClassName:m(W,H),expandIcon:h.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?h.createElement(pw,{className:`${V}-menu-submenu-arrow-icon`}):h.createElement(zf,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:le,validator:({mode:e})=>{}},r)},[de,fe]=Ed(`Dropdown`,L.zIndex),me=h.createElement(qm,{alignPoint:re,...Wt(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:v,mouseLeaveDelay:y,visible:ie,builtinPlacements:ce,arrow:!!r,overlayClassName:se,prefixCls:V,getPopupContainer:u||k,transitionName:z,trigger:ne,overlay:ue,placement:B,onVisibleChange:oe,overlayStyle:{...L,zIndex:de},autoDestroy:E??T},te);return de&&(me=h.createElement(bd.Provider,{value:fe},me)),me}),xpe=Tg(vw,`align`,void 0,`dropdown`,e=>e);vw._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(xpe,{...e},h.createElement(`span`,null));var Spe=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(Br),{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(jm,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}=Od(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(_p,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:w,title:E},d),h.createElement(_p,{type:a,danger:o,icon:T})]);return h.createElement(Py.Compact,{className:H,size:B,block:!0,...I},U,h.createElement(vw,{...z},W))};Spe.__ANT_BUTTON=!0;var yw=vw;yw.Button=Spe;var bw={},Cpe=`SELECT_ALL`,wpe=`SELECT_INVERT`,Tpe=`SELECT_NONE`,xw=[],Epe=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),xr(t)&&e in t&&Epe(e,t[e],n)}),n),Dpe=(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=Lr(`Table`),[M,N]=pd(e=>e),[P,F]=ye(i||xw,r),I=P??xw,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)(()=>Epe(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(gr(e),gr(n))}return FC(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}=ow(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]),ee=(0,h.useMemo)(()=>g===`radio`?new Set:new Set(W),[W,g]);h.useEffect(()=>{t||F(xw)},[!!t]);let K=(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]),te=(0,h.useCallback)((e,t,n,r)=>{if(c){let i=n.map(T);c(T(e),t,i,r)}K(n,`single`)},[c,T,K]),ne=(0,h.useMemo)(()=>!_||b?null:(_===!0?[Cpe,wpe,Tpe]:_).map(e=>{let t;return t=e===`SELECT_ALL`?{key:`all`,text:k.selectionAll,onSelect(){K(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)),K(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:k.selectNone,onSelect(){d?.(),K(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,K]);return[(0,h.useCallback)(e=>{if(!t)return e.filter(e=>e!==bw);let n=gr(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)),K(t,`all`),N(null)},u,d;if(g!==`radio`){let e;if(ne){let t={getPopupContainer:A,items:ne.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(yw,{menu:t,getPopupContainer:A},h.createElement(`span`,null,h.createElement(jv,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(dw,{"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(Tx,{"aria-label":s,...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||te(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=E(t,n),o=r.has(a),s=ee.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(dw,{"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)),K(t,`multiple`)}else{let e=U;if(x){let n=o?QC(e,a):$C(e,a);te(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=ow([].concat(gr(e),[a]),!0,B,H),i=n;if(o){let e=new Set(n);e.delete(a),i=ow(Array.from(e),{checked:!1,halfCheckedKeys:r},B,H).checkedKeys}te(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(bw))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,bw].concat(gr(t))}else n=[bw].concat(gr(n));let O=n.indexOf(bw);n=n.filter((e,t)=>e!==bw||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?Sr(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:w,onCell:t.onCell,align:t.align,[eC]:{className:F}};return n.map(e=>e===bw?I:e)},[E,z,t,U,G,ee,p,ne,D,V,f,te,H]),G]};function Ope(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 Sw=e=>_r(e)&&e===e.window,kpe=e=>{if(typeof window>`u`)return 0;let t=0;return Sw(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Sw(e)&&!yr(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function Ape(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=kpe(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=Ope(t>i?i:t,o,e,i);Sw(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t<i?c=nn(l):Sr(r)&&r()};return c=nn(l),()=>{nn.cancel(c)}}var jpe=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 Cw(){return Cw=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},Cw.apply(this,arguments)}var ww=h.forwardRef((e,t)=>h.createElement(W,Cw({},e,{ref:t,icon:jpe.default}))),Mpe=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 Tw(){return Tw=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},Tw.apply(this,arguments)}var Ew=h.forwardRef((e,t)=>h.createElement(W,Tw({},e,{ref:t,icon:Mpe.default}))),Npe={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:`页码`},Ppe=[10,20,50,100],Fpe=e=>{let{pageSizeOptions:t=Ppe,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===Et.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)},Dw=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 Ow(){return Ow=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},Ow.apply(this,arguments)}var Ipe=(e,t,n)=>n;function kw(){}function Aw(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function jw(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var Lpe=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=kw,hideOnSinglePage:f,align:p,showPrevNextJumpers:g=!0,showQuickJumper:_,showLessItems:v,showTitle:y=!0,onShowSizeChange:b=kw,locale:x=Npe,style:S,totalBoundaryShowSizeChanger:C=50,disabled:w,simple:T,showTotal:E,showSizeChanger:D=c>C,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=Ipe,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=h.useRef(null),[I,L]=ye(u,l),[R,z]=ye(s,o),B=Math.max(1,Math.min(R,jw(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(jw(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 ee(e){let t=e.target.value,n=jw(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function K(e){return Aw(e)&&e!==B&&Aw(c)&&c>0}let te=c>I?_:!1;function ne(e){(e.keyCode===Et.UP||e.keyCode===Et.DOWN)&&e.preventDefault()}function re(e){let t=ee(e);switch(t!==V&&H(t),e.keyCode){case Et.ENTER:oe(t);break;case Et.UP:oe(t-1);break;case Et.DOWN:oe(t+1);break;default:break}}function ie(e){oe(ee(e))}function ae(e){let t=jw(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),b?.(B,e),z(n),d?.(n,e)}function oe(e){if(K(e)&&!w){let t=jw(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 se=B>1,ce=B<jw(void 0,I,c);function le(){se&&oe(B-1)}function ue(){ce&&oe(B+1)}function de(){oe(U)}function fe(){oe(W)}function pe(e,t,...n){(e.key===`Enter`||e.charCode===Et.ENTER||e.keyCode===Et.ENTER)&&t(...n)}function me(e){pe(e,le)}function he(e){pe(e,ue)}function ge(e){pe(e,de)}function _e(e){pe(e,fe)}function ve(e){let t=A(e,`prev`,G(N,`prev page`));return h.isValidElement(t)?h.cloneElement(t,{disabled:!se}):t}function be(e){let t=A(e,`next`,G(P,`next page`));return h.isValidElement(t)?h.cloneElement(t,{disabled:!ce}):t}function xe(e){(e.type===`click`||e.keyCode===Et.ENTER)&&oe(V)}let Se=null,Ce=Yt(e,{aria:!0,data:!0}),we=E&&h.createElement(`li`,{className:`${t}-total-text`},E(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),Te=null,Ee=jw(void 0,I,c);if(f&&c<=I)return null;let De=[],Oe={rootPrefixCls:t,onClick:oe,onKeyPress:pe,showTitle:y,itemRender:A,page:-1,className:i?.item,style:a?.item},ke=B-1>0?B-1:0,Ae=B+1<Ee?B+1:Ee,je=_&&_.goButton,Me=typeof T==`object`?T.readOnly:!T,Ne=je,Pe=null;T&&(je&&(Ne=typeof je==`boolean`?h.createElement(`button`,{type:`button`,onClick:xe,onKeyUp:xe},x.jump_to_confirm):h.createElement(`span`,{onClick:xe,onKeyUp:xe},je),Ne=h.createElement(`li`,{title:y?`${x.jump_to}${B}/${Ee}`:null,className:`${t}-simple-pager`},Ne)),Pe=h.createElement(`li`,{title:y?`${B}/${Ee}`:null,className:m(`${t}-simple-pager`,i?.item),style:a?.item},Me?V:h.createElement(`input`,{type:`text`,"aria-label":x.jump_to,value:V,disabled:w,onKeyDown:ne,onKeyUp:re,onChange:re,onBlur:ie,size:3}),h.createElement(`span`,{className:`${t}-slash`},`/`),Ee));let Fe=v?1:2;if(Ee<=3+Fe*2){Ee||De.push(h.createElement(Dw,Ow({},Oe,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=Ee;e+=1)De.push(h.createElement(Dw,Ow({},Oe,{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&&(Se=r?h.createElement(`li`,{title:y?e:null,key:`prev`,onClick:de,tabIndex:0,onKeyDown:ge,className:m(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,Te=i?h.createElement(`li`,{title:y?n:null,key:`next`,onClick:fe,tabIndex:0,onKeyDown:_e,className:m(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Fe),o=Math.min(B+Fe,Ee);B-1<=Fe&&(o=1+Fe*2),Ee-B<=Fe&&(a=Ee-Fe*2);let s=!!Se&&B-1>=Fe*2&&B!==3,c=!!Te&&Ee-B>=Fe*2&&B!==Ee-2;!v&&s&&o!==Ee&&(a+=1),!v&&c&&a!==1&&--o;for(let e=a;e<=o;e+=1)De.push(h.createElement(Dw,Ow({},Oe,{key:e,page:e,active:B===e})));if(s&&(De[0]=h.cloneElement(De[0],{className:m(`${t}-item-after-jump-prev`,De[0].props.className)}),De.unshift(Se)),c){let e=De[De.length-1];De[De.length-1]=h.cloneElement(e,{className:m(`${t}-item-before-jump-next`,e.props.className)}),De.push(Te)}a!==1&&De.unshift(h.createElement(Dw,Ow({},Oe,{key:1,page:1}))),o!==Ee&&De.push(h.createElement(Dw,Ow({},Oe,{key:Ee,page:Ee})))}let Ie=ve(ke);if(Ie){let e=!se||!Ee;Ie=h.createElement(`li`,{title:y?x.prev_page:null,onClick:le,tabIndex:e?null:0,onKeyDown:me,className:m(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ie)}let Le=be(Ae);if(Le){let e,n;T?(e=!ce,n=se?0:null):(e=!ce||!Ee,n=e?null:0),Le=h.createElement(`li`,{title:y?x.next_page:null,onClick:ue,tabIndex:n,onKeyDown:he,className:m(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Le)}let Re=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`,Ow({className:Re,style:S,ref:F},Ce),we,Ie,T?Pe:De,Le,h.createElement(Fpe,{locale:x,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ae,pageSize:I,pageSizeOptions:k,quickGo:te?oe:null,goButton:Ne,showSizeChanger:D,sizeChangerRender:O}))},Rpe=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}}}}},zpe=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...yv(e),width:e.paginationMiniQuickJumperInputWidth}}}}},Bpe=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...vv(e)}}}}},Vpe=e=>{let{componentCls:t,antCls:n}=e,[,r]=Tc(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 ${q(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${q(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:`${q(e.inputOutlineOffset)} 0 ${q(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}}}}}},Hpe=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]":{...tv(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:`${q(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`}}}}},Upe=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=Tc(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:`${q(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:{...bv(e),...nv(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...tv(e)},width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)}}}}},Wpe=e=>{let{componentCls:t,antCls:n}=e,[,r]=Tc(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:q(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${q(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}}}}},Gpe=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Tc(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:q(e.itemSize),[r(`item-spacing-actual`)]:q(e.marginXS),"&-small":{[r(`item-size-actual`)]:q(e.itemSizeSM),[r(`item-spacing-actual`)]:q(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:q(e.itemSizeLG),[r(`item-spacing-actual`)]:q(e.marginSM)},...io(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:q(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...Wpe(e),...Upe(e),...Vpe(e),...Hpe(e),...zpe(e),...Bpe(e),...Rpe(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`}}},Kpe=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...lo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...co(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:co(e)}}}},Mw=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,...ev(e)}),Nw=e=>Go(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`},$_(e)),qpe=Sc(`Pagination`,e=>{let t=Nw(e);return[Gpe(t),Kpe(t)]},Mw),Jpe=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:`${q(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}}}}},Ype=wc([`Pagination`,`bordered`],e=>Jpe(Nw(e)),Mw);function Pw(e){return(0,h.useMemo)(()=>typeof e==`boolean`?[e,{}]:xr(e)?[!0,e]:[void 0,void 0],[e])}var Xpe=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}=_g(l),[,y]=xc(),{getPrefixCls:b,direction:x,showSizeChanger:S,className:C,style:w,classNames:T,styles:E,totalBoundaryShowSizeChanger:D}=Ur(`pagination`),O=b(`pagination`,n),[k,A]=qpe(O),j=ed(s),M=j===`small`||!!(v&&!j&&l),[N,P]=bm(`input`),F={...e,size:j},I=jr(w),L=jr(o),[R,z]=Nr([T,g],[E,I,p,L],{props:F}),[B]=$c(`Pagination`,Bc),V={...B,...c},[H,U]=Pw(u),[W,G]=Pw(S),ee=H??W,K=U??G,te=d||gS,ne=h.useMemo(()=>f?f.map(Number):void 0,[f]),re=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=K||{},l=o.find(e=>String(e.value)===String(n))?.value;return h.createElement(te,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...K,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:j,className:m(a,s)})},ie=h.useMemo(()=>{let e=h.createElement(`span`,{className:`${O}-item-ellipsis`},h.createElement(jm,null));return{prevIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(zf,null):h.createElement(pw,null)),nextIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(pw,null):h.createElement(zf,null)),jumpPrevIcon:h.createElement(`a`,{className:`${O}-item-link`},h.createElement(`div`,{className:`${O}-item-container`},x===`rtl`?h.createElement(Ew,{className:`${O}-item-link-icon`}):h.createElement(ww,{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(ww,{className:`${O}-item-link-icon`}):h.createElement(Ew,{className:`${O}-item-link-icon`}),e))}},[x,O]),ae=b(`select`,r),oe=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),se={...z.root};return h.createElement(h.Fragment,null,y.wireframe&&h.createElement(Ype,{prefixCls:O}),h.createElement(Lpe,{...ie,..._,styles:z,classNames:R,style:se,prefixCls:O,selectPrefixCls:ae,className:oe,locale:V,pageSizeOptions:ne,showSizeChanger:ee,totalBoundaryShowSizeChanger:_.totalBoundaryShowSizeChanger??D,sizeChangerRender:re}))};function Zpe(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 Qpe(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 $pe=(e,t)=>h.useMemo(()=>{if(!t)return e;let n=e=>e.map(e=>e===bw||e===OS?e:`children`in e&&Array.isArray(e.children)?{...an(t,e),children:n(e.children)}:an(Wt(t,[`children`]),e));return n(e)},[e,t]),Fw=(e,t)=>`key`in e&&_r(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function Iw(e,t){return t?`${t}-${e}`:`${e}`}var Lw=(e,t)=>Sr(e)?e(t):e,eme=(e,t)=>{let n=Lw(e,t);return xr(n)||Array.isArray(n)?``:n},tme=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 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)}var nme=h.forwardRef((e,t)=>h.createElement(W,Rw({},e,{ref:t,icon:tme.default}))),rme=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 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)}var Bw=h.forwardRef((e,t)=>h.createElement(W,zw({},e,{ref:t,icon:rme.default}))),ime=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 Vw(){return Vw=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},Vw.apply(this,arguments)}var ame=h.forwardRef((e,t)=>h.createElement(W,Vw({},e,{ref:t,icon:ime.default}))),ome=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 Hw(){return Hw=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},Hw.apply(this,arguments)}var sme=h.forwardRef((e,t)=>h.createElement(W,Hw({},e,{ref:t,icon:ome.default}))),cme=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 Uw(){return Uw=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},Uw.apply(this,arguments)}var lme=h.forwardRef((e,t)=>h.createElement(W,Uw({},e,{ref:t,icon:cme.default}))),ume=({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}}}}}),dme=new to(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),fme=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),pme=(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:`${q(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),mme=(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]:{...io(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`]:{...co(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:dme,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:q(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`]:{...fme(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(`, `),...pme(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:`${q(t.calc(a).div(2).equal())} !important`}}}},hme=(e,t,n=!0)=>{let r=`.${e}`,i=Go(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[mme(e,i),n&&ume(i)].filter(Boolean)},gme=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}},_me=Sc(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:lw(`${t}-checkbox`,e)},hme(t,e),Jd(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...gme(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),vme=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`})},yme=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 Ww(){return Ww=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},Ww.apply(this,arguments)}var bme=h.forwardRef((e,t)=>h.createElement(W,Ww({},e,{ref:t,icon:yme.default}))),xme=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 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 Sme=h.forwardRef((e,t)=>h.createElement(W,Gw({},e,{ref:t,icon:xme.default}))),Cme=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 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 wme=h.forwardRef((e,t)=>h.createElement(W,Kw({},e,{ref:t,icon:Cme.default}))),Tme=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(Hd,{className:`${t}-switcher-loading-icon`});let l;if(xr(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=Sr(l)?l(r):l,n=`${t}-switcher-line-custom-icon`;return h.isValidElement(e)?vu(e,{className:m(e.props?.className,n)}):e}return l?h.createElement(Bw,{className:`${t}-switcher-line-icon`}):h.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=Sr(n)?n(r):n;return h.isValidElement(d)?vu(d,{className:m(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?h.createElement(Sme,{className:`${t}-switcher-line-icon`}):h.createElement(wme,{className:`${t}-switcher-line-icon`}):h.createElement(bme,{className:u}):d},qw=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=Ur(`tree`),{virtual:c}=h.useContext(Br),{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(Cu),A=S??k,j=n(`tree`,l),M=n(),N=C??{...Gf(M),motionAppear:!1},P={...e,showIcon:d,blockNode:_,checkable:y,selectable:b,disabled:A,motion:N},[F,I]=Nr([o,E],[s,D],{props:P}),L={...P,showLine:!!f,icon:O,dropIndicatorRender:vme},[R,z]=_me(j),[,B]=xc(),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(lme,null)),e},[x]),U=e=>h.createElement(Tme,{prefixCls:j,switcherIcon:p,switcherLoadingIcon:g,treeNodeProps:e,showLine:f});return h.createElement(Yfe,{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)}),Jw=0,Yw=1,Xw=2;function Zw(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&Zw(o||[],t,n)}e.forEach(a)}function Eme({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=Jw;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return Zw(e,e=>{if(o===Xw)return!1;if(s(e)){if(a.push(e),o===Jw)o=Yw;else if(o===Yw)return o=Xw,!1}else o===Yw&&a.push(e);return t.includes(e)},MC(i)),a}function Qw(e,t,n){let r=gr(t),i=[];return Zw(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},MC(n)),i}function Dme(e){let{isLeaf:t,expanded:n}=e;return t?h.createElement(Bw,null):n?h.createElement(ame,null):h.createElement(sme,null)}function $w({treeData:e,children:t}){return e||NC(t)}var Ome=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}=FC($w(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?iw(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=$w(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=Qw(f,g,r)):n&&h?(g=Array.from(new Set([].concat(gr(s.current||[]),gr(Eme({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=Qw(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=Qw(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:_,direction:v}=h.useContext(Br),{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(qw,{icon:Dme,ref:t,blockNode:!0,...C,showIcon:x,expandAction:S,prefixCls:w,className:T,defaultExpandParent:r,expandedKeys:d,selectedKeys:l,onSelect:g,onExpand:p})}),eT=qw;eT.DirectoryTree=Ome,eT.TreeNode=HC;var tT=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(Qy,{prefix:h.createElement(Nv,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},kme=e=>{let{keyCode:t}=e;t===Et.ENTER&&e.stopPropagation()},Ame=h.forwardRef((e,t)=>h.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:kme,ref:t,role:`presentation`},e.children));function nT(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(gr(t),gr(nT(n))))}),t}function jme(e){return e.some(({children:e})=>e)}var rT=(e,t)=>typeof t==`string`||yr(t)?t.toString().toLowerCase().includes(e):!1,iT=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:iT({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?dw:Tx,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?Sr(s)?s(o,e)?u:null:rT(o,e.text)?u:null:u})};function aT(e){return e||[]}var Mme=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(yy),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]=yd(aT(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:aT(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)||Bt(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(aT(k)),D(e),!e&&!r.filterDropdown&&o&&H())},ee=m({[`${i}-menu-without-submenu`]:!jme(r.filters||[])}),K=e=>{e.target.checked?j(nT(r?.filters).map(String)):j([])},te=({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=te({filters:e.children})),r}),ne=e=>({...e,text:e.title,value:e.key,children:e.children?.map(ne)||[]}),re,{direction:ie,renderEmpty:ae}=h.useContext(Br);if(Sr(r.filterDropdown))re=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)re=r.filterDropdown;else{let e=A()||[];re=h.createElement(h.Fragment,null,(()=>{let a=ae?.(`Table.filter`)??h.createElement(cS,{image:cS.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(tT,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),h.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?h.createElement(dw,{checked:e.length===nT(r.filters).length,indeterminate:e.length>0&&e.length<nT(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:K},f?.filterCheckall??f?.filterCheckAll):null,h.createElement(eT,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${i}-menu`,onCheck:N,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:te({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:z?e=>Sr(l)?l(L,ne(e)):rT(z,e.title):void 0})));let o=iT({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(tT,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),u?a:h.createElement(_w,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:ee,onSelect:M,onDeselect:M,selectedKeys:e,getPopupContainer:g,openKeys:P,onOpenChange:I,items:o}))})(),h.createElement(`div`,{className:`${n}-dropdown-btns`},h.createElement(gp,{type:`link`,size:`small`,disabled:v?Bt((y||[]).map(String),e,!0):e.length===0,onClick:()=>U()},f.filterReset),h.createElement(gp,{type:`primary`,size:`small`,onClick:H},f.filterConfirm)))}r.filterDropdown&&(re=h.createElement(rpe,{selectable:void 0},re)),re=h.createElement(Ame,{className:`${n}-dropdown`},re);let oe=(()=>{let e;return e=Sr(r.filterIcon)?r.filterIcon(E):r.filterIcon?r.filterIcon:h.createElement(nme,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),oe);let se=an({trigger:[`click`],placement:ie===`rtl`?`bottomLeft`:`bottomRight`,children:oe,getPopupContainer:g},{...b,rootClassName:m(_,b.rootClassName),open:O,onOpenChange:G,popupRender:()=>Sr(b?.dropdownRender)?b.dropdownRender(re):re});return h.createElement(`div`,{className:`${n}-column`},h.createElement(`span`,{className:`${t}-column-title`},p),h.createElement(yw,{...se}))},oT=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=Iw(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:Fw(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:Fw(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(gr(r),gr(oT(e.children,t,a))))}),r};function sT(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=Iw(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,g=n;if(g.filters||g.filterDropdown){let s=Fw(g,u),l=r.find(({key:e})=>s===e);g={...g,title:r=>h.createElement(Mme,{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},Lw(n.title,r))}}return`children`in g&&(g={...g,children:sT(e,t,g.children,r,i,a,o,u,c)}),g})}var cT=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]=nT(a).filter(e=>n.includes(String(e))):t[i]=null}),t},lT=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=nT(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]=lT(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),uT=e=>e.flatMap(e=>`children`in e?[e].concat(gr(uT(e.children||[]))):[e]),Nme=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Lr(`Table`);let c=h.useMemo(()=>uT(r||[]),[r]),[l,u]=h.useState(()=>oT(c,!0)),d=h.useMemo(()=>{let e=oT(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)=>Fw(e,Iw(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(()=>cT(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(cT(t),t)};return[e=>sT(t,n,e,d,o,p,a,void 0,s),d,f]},Pme=(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),xr(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=xr(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];Sr(r)||(n[t]=r)}),n}function Ime(e,t,n){let{total:r=0,...i}=xr(n)?n:{},[a,o]=(0,h.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=an(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 Lme=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 dT(){return dT=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},dT.apply(this,arguments)}var Rme=h.forwardRef((e,t)=>h.createElement(W,dT({},e,{ref:t,icon:Lme.default}))),zme=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 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 Bme=h.forwardRef((e,t)=>h.createElement(W,fT({},e,{ref:t,icon:zme.default}))),pT=`ascend`,mT=`descend`,hT=e=>xr(e.sorter)&&yr(e.sorter.multiple)?e.sorter.multiple:!1,gT=e=>Sr(e)?e:xr(e)&&e.compare?e.compare:!1,Vme=(e,t)=>t?e[e.indexOf(t)+1]:e[0],_T=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:Fw(e,t),multiplePriority:hT(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=Iw(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(gr(r),gr(_T(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:Fw(e,o),multiplePriority:hT(e),sortOrder:e.defaultSortOrder}))}),r},vT=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=Iw(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=Fw(d,u),p=n.find(({key:e})=>e===f),g=p?p.sortOrder:null,_=Vme(s,g),v;if(t.sortIcon)v=t.sortIcon({sortOrder:g});else{let t=s.includes(pT)&&h.createElement(Bme,{className:m(`${e}-column-sorter-up`,{active:g===pT})}),n=s.includes(mT)&&h.createElement(Rme,{className:m(`${e}-column-sorter-down`,{active:g===mT})});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;_===mT?S=x:_===pT&&(S=b);let C=xr(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`},Lw(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(Ty,{...C},v)):h.createElement(Ty,{...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:hT(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===Et.ENTER&&(r({column:t,key:f,sortOrder:_,multiplePriority:hT(t)}),o?.(e))};let s=eme(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:vT(e,d.children,n,r,i,a,o,u,c)}),d}),yT=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},bT=e=>{let t=e.reduce((e,t)=>(t.sortOrder&&e.push(yT(t)),e),[]);return t.length===0&&e.length?{...yT(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},xT=(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})=>gT(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=gT(r);if(o&&i){let n=o(e,t,i);if(n!==0)return i===pT?n:-n}}return 0}).map(e=>{let r=e[n];return r?{...e,[n]:xT(r,t,n)}:e}):i},Hme=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(()=>_T(l,!0)),f=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=Iw(r,t);if(n.push(Fw(e,i)),Array.isArray(e.children)){let t=f(e.children,i);n.push.apply(n,gr(t))}}),n},p=h.useMemo(()=>{let e=!0,t=_T(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(gr(p.filter(({key:t})=>t!==e.key)),[e]),d(t),s(bT(t),t)};return[e=>vT(t,e,p,g,i,a,o,void 0,c),p,m,()=>bT(p)]},ST=(e,t)=>e.map(e=>{let n={...e};return n.title=Lw(e.title,t),`children`in n&&(n.children=ST(n.children,t)),n}),Ume=e=>[h.useCallback(t=>ST(t,e),[e])],Wme=yC((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Gme=DC((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Kme=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${q(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:`${q(c(r).mul(-1).equal())}
${q(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:`${q(c(o).mul(-1).equal())} ${q(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 ${q(n)} 0 ${q(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},qme=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...ro,wordBreak:`keep-all`,[`
&${t}-cell-fix-start-shadow,
&${t}-cell-fix-end-shadow
`]:{overflow:`visible`,[`${t}-cell-content`]:{...ro,display:`block`}},[`${t}-column-title`]:{...ro,wordBreak:`keep-all`}}}}},Jme=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}}}}},Yme=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=`${q(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`]:{...po(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:q(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:`${q(y(d).mul(-1).equal())} ${q(y(f).mul(-1).equal())}`,padding:`${q(d)} ${q(f)}`}}}},Xme=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=`${q(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:`${q(o)} ${q(D(m).div(2).mul(-1).equal())}`,padding:`0 ${q(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...io(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:`${q(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${q(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:`${q(D(s).sub(l).equal())} ${q(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 CT({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var Zme=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]=CT(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}}},Qme=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${q(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},$me=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${q(n)} ${q(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 ${q(n)} ${q(n)}`}}}}},ehe=e=>{let{componentCls:t}=e,[n,r]=CT(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}}},the=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:q(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}}}}}},nhe=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:`${q(i)} ${q(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:q(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${q(r(i).mul(-1).equal())} ${q(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:q(r(i).mul(-1).equal()),marginInline:`${q(r(n).sub(a).equal())} ${q(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:q(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},rhe=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}}}},ihe=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=`${q(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:`${q(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}}}}}}},wT=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${q(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 ${q(i(n).mul(-1).equal())} 0 ${r}`}}}},ahe=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${q(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) - ${q(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}}}}}},ohe=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=`${q(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...so(),[t]:{...io(e),fontSize:l,background:u,borderRadius:`${q(d)} ${q(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${q(d)} ${q(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:`${q(r)} ${q(i)}`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${q(r)} ${q(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:q(v(r).mul(-1).equal()),marginInline:`${q(v(a).sub(i).equal())}
${q(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:`${q(r)} ${q(i)}`,color:g,background:_}}}},she=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 ps(i).onBackground(n).toHexString(),w=new ps(a).onBackground(n).toHexString(),T=new ps(t).onBackground(n).toHexString(),E=new ps(y),D=new ps(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}},che=2,lhe=Sc(`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=Go(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:che,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[ohe(F),Qme(F),wT(F),rhe(F),Xme(F),Kme(F),$me(F),Yme(F),wT(F),Jme(F),the(F),Zme(F),ihe(F),qme(F),nhe(F),ehe(F),ahe(F)]},she,{resetFont:!1,unitless:{expandIconScale:!0}}),TT=[],ET=h.createContext({}),uhe=e=>{let{ariaProps:t,component:n=`table`}=h.useContext(ET);return h.createElement(n,{...t,...e})},dhe=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;Lr(`Table`);let F=$pe(h.useMemo(()=>y||sC(b),[y,b]),v),I=_g(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=Wt(e,[`className`,`style`,`column`,`columns`]),z=R.components,B=Yt(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:uhe}}:z,[z,V]),{locale:W=Kc,table:G}=h.useContext(Br),{getPrefixCls:ee,direction:K,renderEmpty:te,getPopupContainer:ne,className:re,style:ie,classNames:ae,styles:oe}=Ur(`table`),se=ed(e=>c===`middle`?`medium`:c??e),ce={...e,size:se,bordered:l},le=jr(ie),ue=jr(a),[de,fe]=Nr([ae,o],[oe,le,s,ue],{props:ce},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),pe={...W.Table,...M},[me]=$c(`global`,Kc.global),he=d||TT,ge=ee(`table`,n),_e=ee(`dropdown`,u),[,ve]=xc(),ye=h.useMemo(()=>xr(p)?{columnWidth:ve.Table?.selectionColumnWidth,...p}:p,[p,ve.Table?.selectionColumnWidth]),be=og(ge),[xe,Se]=lhe(ge,be),Ce={childrenColumnName:x,expandIconColumnIndex:O,...E,expandIcon:E?.expandIcon??G?.expandable?.expandIcon},{childrenColumnName:we=`children`}=Ce,Te=h.useMemo(()=>he.some(e=>e?.[we])?`nest`:D||E?.expandedRowRender?`row`:null,[we,he]),Ee={body:h.useRef(null)},De=Qpe(ge),Oe=h.useRef(null),ke=h.useRef(null);vd(t,()=>({...ke.current,nativeElement:Oe.current}));let Ae=g||G?.rowKey||`key`,je=A??G?.scroll,Me=h.useMemo(()=>Sr(Ae)?Ae:e=>e?.[Ae],[Ae]),[Ne]=Pme(he,we,Me),Pe={},Fe=(e,t,n=!1)=>{let r={...Pe,...e};n&&(Pe.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),A&&A.scrollToFirstRowOnChange!==!1&&Ee.body.current&&Ape(0,{getContainer:()=>Ee.body.current}),S?.(r.pagination,r.filters,r.sorter,{currentDataSource:lT(xT(he,r.sorterStates,we),r.filterStates,we),action:t})},[Ie,Le,Re,ze]=Hme({prefixCls:ge,mergedColumns:L,baseColumns:F,onSorterChange:(e,t)=>{Fe({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:j||[`ascend`,`descend`],tableLocale:pe,showSorterTooltip:N,globalLocale:me}),Be=h.useMemo(()=>xT(he,Le,we),[we,he,Le]);Pe.sorter=ze(),Pe.sorterStates=Le;let[Ve,He,Ue]=Nme({prefixCls:ge,locale:pe,dropdownPrefixCls:_e,mergedColumns:L,onFilterChange:(e,t)=>{Fe({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:C||ne,rootClassName:m(i,be)}),We=lT(Be,He,we);Pe.filters=Ue,Pe.filterStates=He;let[Ge]=Ume(h.useMemo(()=>{let e={};return Object.keys(Ue).forEach(t=>{Ue[t]!==null&&(e[t]=Ue[t])}),{...Re,filters:e}},[Re,Ue])),[Ke,qe]=Ime(We.length,(e,t)=>{Fe({pagination:{...Pe.pagination,current:e,pageSize:t}},`paginate`)},f);Pe.pagination=f===!1?{}:Fme(Ke,f),Pe.resetPagination=qe;let Je=h.useMemo(()=>{if(f===!1||!Ke.pageSize)return We;let{current:e=1,total:t,pageSize:n=10}=Ke;return We.length<t?We.length>n?We.slice((e-1)*n,e*n):We:We.slice((e-1)*n,e*n)},[!!f,We,Ke?.current,Ke?.pageSize,Ke?.total]),[Ye,Xe]=Dpe({prefixCls:ge,data:We,pageData:Je,getRowKey:Me,getRecordByKey:Ne,expandType:Te,childrenColumnName:we,locale:pe,getPopupContainer:C||ne},ye),Ze=(e,t,n)=>m({[`${ge}-row-selected`]:Xe.has(Me(e,t))},Sr(_)?_(e,t,n):_);Ce.__PARENT_RENDER_ICON__=Ce.expandIcon,Ce.expandIcon=Ce.expandIcon||T||Zpe(pe),Te===`nest`&&Ce.expandIconColumnIndex===void 0?Ce.expandIconColumnIndex=+!!ye:Ce.expandIconColumnIndex>0&&ye&&--Ce.expandIconColumnIndex,yr(Ce.indentSize)||(Ce.indentSize=yr(k)?k:15);let Qe=h.useCallback(e=>Ge(Ye(Ve(Ie(e)))),[Ie,Ve,Ye]),$e,et;if(f!==!1&&Ke?.total){let e;e=Ke.size?Ke.size:se===`small`||se===`medium`?`small`:void 0;let t=(t=`end`)=>h.createElement(Xpe,{...Ke,classNames:de.pagination,styles:fe.pagination,className:m(`${ge}-pagination ${ge}-pagination-${t}`,Ke.className),size:e}),{placement:n,position:r}=Ke,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&&(et=t()),e&&($e=t(a(e))),n&&(et=t(a(n)))}else et=t()}let tt=h.useMemo(()=>{if(typeof w==`boolean`)return{spinning:w};if(xr(w))return{spinning:!0,...w}},[w]),nt=m(Se,be,`${ge}-wrapper`,re,{[`${ge}-wrapper-rtl`]:K===`rtl`},r,i,de.root,xe),rt=h.useMemo(()=>tt?.spinning&&he===TT?null:M?.emptyText===void 0?te?.(`Table`)||h.createElement(lS,{componentName:`Table`}):M.emptyText,[tt?.spinning,he,M?.emptyText,te]),it=P?Gme:Wme,at={},ot=h.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=ve,o=Math.floor(e*t);switch(se){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[ve,se]);return P&&(at.listItemHeight=ot),h.createElement(`div`,{ref:Oe,className:nt,style:fe.root},h.createElement(TS,{spinning:!1,...tt},$e,h.createElement(ET.Provider,{value:H},h.createElement(it,{...at,...R,components:U,scroll:je,classNames:de,styles:fe,ref:ke,columns:L,direction:K,expandable:Ce,prefixCls:ge,className:m({[`${ge}-medium`]:se===`medium`,[`${ge}-small`]:se===`small`,[`${ge}-bordered`]:l,[`${ge}-empty`]:he.length===0},Se,be,xe),data:Je,rowKey:Me,rowClassName:Ze,emptyText:rt,internalHooks:kS,internalRefs:Ee,transformColumns:Qe,getContainerWidth:De,measureRowRender:e=>h.createElement(yy.Provider,{value:!0},h.createElement(Uu,{getPopupContainer:e=>e},e))})),et))}),DT=h.forwardRef((e,t)=>{let n=h.useRef(0);return n.current+=1,h.createElement(dhe,{...e,ref:t,_renderTimes:n.current})});DT.SELECTION_COLUMN=bw,DT.EXPAND_COLUMN=OS,DT.SELECTION_ALL=Cpe,DT.SELECTION_INVERT=wpe,DT.SELECTION_NONE=Tpe,DT.Column=Afe,DT.ColumnGroup=jfe,DT.Summary=KS;var OT=DT,fhe=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]:{...io(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${q(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}}}}},kT=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Go(e,{tagFontSize:i,tagLineHeight:q(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},AT=e=>{let t=Jf(new If(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new ps(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},jT=Sc(`Tag`,e=>fhe(kT(e)),AT),MT=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(Br),_=h.useContext(Cu),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]=jT(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))}),phe=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}=Ur(`tag`),w=v(`tag`,r),T=`${w}-checkable-group`,[E,D]=jT(w,og(w)),O=jr(x),k=jr(o),[A,j]=Nr([S,s],[C,O,c,k],{props:e}),M=(0,h.useMemo)(()=>Array.isArray(u)?u.map(e=>xr(e)?e:{value:e,label:e}):[],[u]),[N,P]=ye(f,d),F=(e,t)=>{let n=null;if(g){let r=N||[];n=e?[].concat(gr(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=Yt(_,{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(MT,{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 mhe(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=Cy(o),c=Xae(o),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new ps(o).toHsl();e.l=.95,l.backgroundColor=new ps(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var hhe=e=>Ec(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}}})),ghe=wc([`Tag`,`preset`],e=>hhe(kT(e)),AT);function _he(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var NT=(e,t,n)=>{let r=_he(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}`]}}}},vhe=wc([`Tag`,`status`],e=>{let t=kT(e);return[NT(t,`success`,`Success`),NT(t,`processing`,`Info`),NT(t,`error`,`Error`),NT(t,`warning`,`Warning`)]},AT),PT=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}=Ur(`tag`),[D,O,k,A,j]=mhe(e,C),M=k||A,N=h.useContext(Cu),P=f??N,{tag:F}=h.useContext(Br),[I,L]=h.useState(!0),R=Wt(y,[`closeIcon`,`closable`]),z={...e,color:O,variant:D,disabled:P},[B,V]=Nr([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]=jT(U),ee=m(U,S,B.root,`${U}-${D}`,{[`${U}-${O}`]:M,[`${U}-hidden`]:!I,[`${U}-rtl`]:x===`rtl`,[`${U}-disabled`]:P},r,i,W,G),K=e=>{P||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&L(!1))},te=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())},[,ne]=ld(rd(e),rd(F),{closable:!1,closeIconRender:e=>_u(e,h.createElement(`span`,{role:`button`,tabIndex:P?-1:0,"aria-disabled":P||void 0,className:m(`${U}-close-icon`,B.close),onClick:K,onKeyDown:te,style:V.close},e),e=>({onClick:t=>{e?.onClick?.(t),K(t)},onKeyDown:t=>{e?.onKeyDown?.(t),t.defaultPrevented||te(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}}))}),re=Sr(y.onClick)||o&&o.type===`a`,ie=vu(s,{className:m(h.isValidElement(s)?s.props?.className:void 0,B.icon),style:V.icon}),ae=ie?h.createElement(h.Fragment,null,ie,o&&h.createElement(`span`,{className:B.content,style:V.content},o)):o,oe=p?`a`:`span`,se=h.createElement(oe,{...R,ref:t,className:ee,style:H,href:P?void 0:p,target:g,onClick:P?void 0:R.onClick,...p&&P?{"aria-disabled":!0}:{}},ae,ne,k&&h.createElement(ghe,{key:`preset`,prefixCls:U}),A&&h.createElement(vhe,{key:`status`,prefixCls:U}));return re?h.createElement($u,{component:`Tag`},se):se});PT.CheckableTag=MT,PT.CheckableTagGroup=phe;var yhe=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 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 IT=h.forwardRef((e,t)=>h.createElement(W,FT({},e,{ref:t,icon:yhe.default}))),bhe=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 LT(){return LT=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},LT.apply(this,arguments)}var xhe=h.forwardRef((e,t)=>h.createElement(W,LT({},e,{ref:t,icon:bhe.default}))),She=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Che=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}
`]=She(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},whe=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...po(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},The=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:As[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:q(e.padding),overflowWrap:`break-word`,borderBottom:`${q(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}}}}),Ehe=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`}}}},Dhe=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Ohe=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{...ro,"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`}}),RT=Sc(`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`},...Che(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}},...The(e),...whe(e),[`${t}-actions`]:{display:`inline`},[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
`]:{...po(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}},...Ehe(e),...Dhe(e),...Ohe(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),khe=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(xhe,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===Et.ENTER?(D(),p?.()):e===Et.ESC&&f())},k=()=>{D()},[A,j]=RT(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(rb,{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:vu(_,{className:`${t}-edit-content-confirm`}))},Ahe=(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})}},jhe=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 Mhe(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await jhe(e,n)||Ahe(e,n))}var zT=(e,t={})=>!_r(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],Nhe=({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:pe(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await Mhe((Sr(e.text)?await e.text():e.text)||zT(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}})}},BT=(e,t)=>{let n=!!e;return h.useMemo(()=>[n,{...t,...n&&xr(e)?e:null}],[n,e,t])},Phe=e=>{let t=(0,h.useRef)(void 0);return(0,h.useEffect)(()=>{t.current=e}),t.current},Fhe=(e,t,n)=>(0,h.useMemo)(()=>e===!0?{title:t??n}:(0,h.isValidElement)(e)?{title:e}:xr(e)?{title:t??n,...e}:{title:e},[e,t,n]),VT=(e,t,n,r,i)=>{let{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=Ur(`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]=Nr([m,l,t],[g,u,n],{props:p});return[_,v,f,d]},HT=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]=RT(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)}),Ihe=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s,...c}=e,[l,u,d,f]=VT(n,o,s,a,e);return h.createElement(HT,{ref:t,className:m(r,i),direction:f,classNames:l,styles:u,prefixCls:d,...c})}),Lhe=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 UT(){return UT=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},UT.apply(this,arguments)}var Rhe=h.forwardRef((e,t)=>h.createElement(W,UT({},e,{ref:t,icon:Lhe.default}))),WT=e=>e===!1?[!1,!1]:zT(e);function GT(e,t,n){return e===!0||e===void 0?t:e||n&&t}function zhe(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 KT=e=>[`string`,`number`].includes(typeof e),Bhe=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=WT(a),p=WT(o),{copied:g,copy:_}=r??{},v=n?g:_,y=GT(f[+!!n],v),b=typeof y==`string`?y:v;return h.createElement(Ty,{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?GT(p[1],h.createElement(kv,null),!0):GT(p[0],l?h.createElement(Hd,null):h.createElement(Rhe,null),!0)))},qT=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)}),Vhe=e=>e.reduce((e,t)=>e+(KT(t)?String(t).length:1),0);function JT(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=KT(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 YT=0,XT=1,ZT=2,QT=3,$T=4,eE={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Hhe(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,measureDeps:s,miscDeps:c,onEllipsis:l}=e,u=h.useMemo(()=>rn(r),[r]),d=h.useMemo(()=>Vhe(u),[r]),f=h.useMemo(()=>i(u,!1),[r].concat(gr(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(YT),[T,E]=h.useState(0),[D,O]=h.useState(null);ge(()=>{w(t&&n&&d?XT:YT)},[n,r,a,t,u].concat(gr(s))),ge(()=>{if(C===XT)w(ZT),O(_.current&&getComputedStyle(_.current).whiteSpace);else if(C===ZT){let e=!!v.current?.isExceed();w(e?QT:$T),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;ge(()=>{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!==QT||!p||p[0]!==p[1]){let e=i(u,!1);return[$T,YT].includes(C)?e:h.createElement(`span`,{style:{...eE,WebkitLineClamp:a}},e)}return i(o?u:JT(u,p[0]),x)},[o,C,p,u].concat(gr(c))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return h.createElement(h.Fragment,null,A,C===ZT&&h.createElement(h.Fragment,null,h.createElement(qT,{style:{...j,...eE,WebkitLineClamp:a},ref:v},f),h.createElement(qT,{style:{...j,...eE,WebkitLineClamp:a-1},ref:y},f),h.createElement(qT,{style:{...j,...eE,WebkitLineClamp:1},ref:b},i([],!0))),C===QT&&p&&p[0]!==p[1]&&h.createElement(qT,{style:{...j,top:400},ref:g},i(JT(u,k),!0)),C===XT&&h.createElement(`span`,{style:{whiteSpace:`inherit`},ref:_}))}var Uhe=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return h.createElement(Ty,{open:a,...i},r)};function Whe({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 Ghe=`...`,tE=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],nE=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]=$c(`Text`),C=h.useRef(null),w=h.useRef(null),[T,E,D,O]=VT(n,a,o,s,e),k=Wt(x,tE),[A,j]=BT(f),[M,N]=ye(!1,j.editing),{triggerType:P=[`icon`]}=j,F=e=>{e&&j.onStart?.(),N(e)},I=Phe(M);ge(()=>{!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]=BT(p),{placement:H=`end`}=g??{},{copied:U,copyLoading:W,onClick:G}=Nhe({copyConfig:V,children:u}),[ee,K]=h.useState(!1),[te,ne]=h.useState(!1),[re,ie]=h.useState(!1),[ae,oe]=h.useState(!1),[se,ce]=h.useState(!0),[le,ue]=BT(d,{expandable:!1,symbol:e=>e?S?.collapse:S?.expand}),[de,fe]=ye(ue.defaultExpanded||!1,ue.expanded),pe=le&&(!de||ue.expandable===`collapsible`),{rows:me=1}=ue,he=h.useMemo(()=>pe&&(ue.suffix!==void 0||ue.onEllipsis||ue.expandable||A||B),[pe,ue,A,B]);ge(()=>{le&&!he&&(K(Tt(`webkitLineClamp`)),ne(Tt(`textOverflow`)))},[he,le]);let[_e,ve]=h.useState(pe),be=h.useMemo(()=>he?!1:me===1?te:ee,[he,te,ee]);ge(()=>{ve(be&&pe)},[be,pe]);let xe=Fhe(ue.tooltip,j.text,u),Se=_e&&!!xe.title,Ce=pe&&(_e?Se&&ae:re),we=pe&&me===1&&_e,Te=pe&&me>1&&_e,Ee=(e,t)=>{fe(t.expanded),ue.onExpand?.(e,t)},[De,Oe]=h.useState(0),[ke,Ae]=h.useState(!1),[je,Me]=h.useState(!1),Ne=({offsetWidth:e})=>{Oe(e)},Pe=e=>{ie(e),re!==e&&ue.onEllipsis?.(e)};h.useEffect(()=>{let e=C.current;if(le&&Se&&e){let t=zhe(e);ae!==t&&oe(t)}},[le,Se,u,Te,se,De]),h.useEffect(()=>{let e=C.current;if(typeof IntersectionObserver>`u`||!e||!Se||!pe)return;let t=new IntersectionObserver(()=>{ce(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[Se,pe]);let Fe=h.useMemo(()=>{if(!(!le||_e))return[j.text,u,v,xe.title].find(KT)},[le,_e,v,xe.title,Ce]);if(M)return h.createElement(khe,{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 Le=()=>{let{expandable:e,symbol:t}=ue;return e?h.createElement(`button`,{type:`button`,key:`expand`,className:m(`${D}-${de?`collapse`:`expand`}`,T.action),style:E.action,onClick:e=>Ee(e,{expanded:!de}),"aria-label":de?S.collapse:S?.expand},Sr(t)?t(de):t):null},Re=()=>{if(!A)return;let{icon:e,tooltip:t,tabIndex:n}=j,r=rn(t)[0]||S?.edit,i=typeof r==`string`?r:``;return P.includes(`icon`)?h.createElement(Ty,{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(IT,{role:`button`}))):null},ze=()=>B?h.createElement(Bhe,{key:`copy`,...V,prefixCls:D,copied:U,locale:S,onCopy:G,loading:W,iconOnly:!vr(u),className:T.action,style:E.action}):null,Be=e=>{let t=e&&Le(),n=Re(),r=ze();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:()=>Ae(!0),onMouseLeave:()=>Ae(!1)},t,n,r)},Ve=e=>[e&&!de&&h.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},Ghe),ue.suffix];return h.createElement(Fl,{onResize:Ne,disabled:!pe},n=>h.createElement(Uhe,{tooltipProps:xe,enableEllipsis:pe,isEllipsis:Ce,open:je&&!ke},h.createElement(HT,{onMouseEnter:e=>{Me(!0),y?.(e)},onMouseLeave:e=>{Me(!1),b?.(e)},className:m({[`${D}-${c}`]:c,[`${D}-disabled`]:l,[`${D}-ellipsis`]:le,[`${D}-ellipsis-single-line`]:we,[`${D}-ellipsis-multiple-line`]:Te,[`${D}-link`]:_===`a`},r),classNames:T,styles:E,prefixCls:D,style:{...i,WebkitLineClamp:Te?me:void 0},component:_,ref:Ie(n,C,t),direction:O,onClick:P.includes(`text`)?L:void 0,"aria-label":Fe?.toString(),title:v,...k},h.createElement(Hhe,{enableMeasure:pe&&!_e,text:u,rows:me,width:De,onEllipsis:Pe,expanded:de,measureDeps:[H],miscDeps:[U,de,W,A,B,H,S].concat(gr(tE.map(t=>e[t])))},(t,n)=>Whe(e,h.createElement(h.Fragment,null,H===`start`?Be(n):null,t.length>0&&n&&!de&&Fe?h.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Ve(n),H===`start`?null:Be(n)))))))}),Khe=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(nE,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),qhe=h.forwardRef((e,t)=>{let{children:n,...r}=e;return h.createElement(nE,{ref:t,...r,component:`div`},n)}),Jhe=h.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=h.useMemo(()=>xr(n)?Wt(n,[`expandable`,`rows`]):n,[n]);return h.createElement(nE,{ref:t,...i,ellipsis:a,component:`span`},r)}),Yhe=[1,2,3,4,5],Xhe=h.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=Yhe.includes(n)?`h${n}`:`h1`;return h.createElement(nE,{ref:t,...i,component:a},r)}),rE=Ihe;rE.Text=Jhe,rE.Link=Khe,rE.Title=Xhe,rE.Paragraph=qhe;var Zhe=((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)?(Rt(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function Qhe(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 iE(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function aE(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(Qhe(e,t),iE(t)):e.onSuccess(iE(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 $he=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},ege=+new Date,tge=0;function oE(){return`rc-upload-${ege}-${++tge}`}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 nge=class extends h.Component{state={uid:oE()};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=>Zhe(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 $he(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=oE(),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||aE,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:aE})}reset(){this.setState({uid:oE()})}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,sE({},w,{className:S,role:y?void 0:`button`,style:s}),h.createElement(`input`,sE({},Yt(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 cE(){return cE=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},cE.apply(this,arguments)}function lE(){}var uE=class extends h.Component{static defaultProps={component:`span`,prefixCls:`rc-upload`,data:{},headers:{},name:`file`,multipart:!1,onStart:lE,onError:lE,onSuccess:lE,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(nge,cE({},this.props,{ref:this.saveUploader}))}},rge=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${q(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:`${q(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 ${q(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}}}}}},ige=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`]:{...so(),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`]:{...ro,padding:`0 ${q(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:`""`}}}}}},age=e=>{let{componentCls:t}=e,n=new to(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new to(`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`]:$d(e)},n,r]},oge=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:`${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${s}-thumbnail`]:{...ro,width:r,height:r,lineHeight:q(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% - ${q(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%`}}}}},sge=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
`]:{...so(),display:`block`,[`${t}${t}-select`]:{width:c,height:c,textAlign:`center`,verticalAlign:`top`,backgroundColor:e.colorFillAlter,border:`${q(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% - ${q(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${q(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 ${q(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% - ${q(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% - ${q(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:`50%`}}}},cge=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},lge=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...io(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`}}}},uge=Sc(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=Go(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[lge(o),rge(o),oge(o),sge(o),ige(o),age(o),cge(o),Jd(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),dge=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 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 fge=h.forwardRef((e,t)=>h.createElement(W,dE({},e,{ref:t,icon:dge.default}))),pge=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 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 pE=h.forwardRef((e,t)=>h.createElement(W,fE({},e,{ref:t,icon:pge.default})));function mE(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 hE(e,t){let n=gr(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function gE(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]},_E=e=>e.indexOf(`image/`)===0,gge=[`.avif`,`.bmp`,`.dpg`,`.gif`,`.heic`,`.heif`,`.ico`,`.jfif`,`.jpg`,`.jpeg`,`.png`,`.svg`,`.tif`,`.tiff`,`.webp`],_ge=e=>{if(e.type&&!e.thumbUrl)return _E(e.type);let t=e.thumbUrl||e.url||``,n=hge(t||e.name);return/^data:image\//.test(t)||gge.includes(n?.toLowerCase()||``)?!0:!(/^data:/.test(t)||n)},vE=200;function vge(e){return new Promise(t=>{if(!e.type||!_E(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=vE,n.height=vE,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${vE}px; height: ${vE}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=vE,s=vE,c=0,l=0;e>a?(s=vE/e*a,l=-(s-o)/2):(o=vE/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 yge=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 yE(){return yE=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},yE.apply(this,arguments)}var bE=h.forwardRef((e,t)=>h.createElement(W,yE({},e,{ref:t,icon:yge.default}))),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:`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 xE(){return xE=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},xE.apply(this,arguments)}var SE=h.forwardRef((e,t)=>h.createElement(W,xE({},e,{ref:t,icon:bge.default}))),xge={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},Sge=()=>{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},CE=({bg:e,children:t})=>h.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function wE(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var Cge=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=wE(r,(360-f)/360),S=wE(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(CE,{bg:w},h.createElement(CE,{bg:C}))))}),TE=(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}},wge=(({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 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)}function DE(e){let t=e??[];return Array.isArray(t)?t:[t]}var Tge=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}={...xge,...e},b=we(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=DE(_),k=DE(g),A=k.find(e=>e&&typeof e==`object`),j=A&&typeof A==`object`?`butt`:d,{indeterminateStyleProps:M,indeterminateStyleAnimation:N}=wge({id:b,loading:v}),P=TE(C,T,0,100,w,c,l,u,j,o),F=Sge(),I=()=>{let e=0;return O.map((t,a)=>{let s=k[a]||k[k.length-1],u=TE(C,T,e,t,w,c,l,s,j,o);return e+=t,h.createElement(Cge,{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=TE(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`,EE({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 OE(e){return!e||e<0?0:e>100?100:e}function kE({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var Ege=({percent:e,success:t})=>{let n=OE(kE({success:t}));return[n,OE(OE(e)-n)]},Dge=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||Es.green,t||null]},AE=(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):yr(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):yr(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]:yr(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},Oge=3,kge=e=>Oge/e*100,jE=[`root`,`body`,`indicator`],Age=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}=Ur(`progress`),y=i??a,[b,x]=AE(g,`circle`),{strokeWidth:S}=e;S===void 0&&(S=Math.max(kge(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=Ege(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=xr(e.strokeColor),O=Dge({success:p,strokeColor:e.strokeColor}),k=m(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),A=h.createElement(Tge,{steps:_,percent:_?T[1]:T,strokeWidth:S,railWidth:S,strokeColor:_?O[1]:O,strokeLinecap:o,railColor:y,prefixCls:t,gapDegree:w,gapPosition:E,classNames:Wt(n,jE),styles:Wt(r,jE)}),j=b<=20,M=h.createElement(`div`,{className:k,style:{...C,...r.body}},A,!j&&f);return j?h.createElement(Ty,{title:f},M):M},ME=`--progress-line-stroke-color`,jge=e=>{let t=e?`100%`:`-100%`;return new to(`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}})},Mge=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...io(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}}}}},Nge=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:jge(),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)`}}}}},Pge=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`}}}},Fge=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}}}}}},Ige=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},Lge=Sc(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=Go(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[Mge(n),Nge(n),Pge(n),Fge(n),Ige(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),Rge=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(`, `)},zge=(e,t)=>{let{from:n=Es.blue,to:r=Es.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${Rge(a)})`;return{background:e,[ME]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[ME]:o}},Bge=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]=AE(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`?zge(c,i):{[ME]:c,background:c},E={width:`${OE(a)}%`,height:S,borderRadius:b,...T},D=kE(e),O={width:`${OE(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)},Vge=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,_]=AE(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)},Hge=[`normal`,`exception`,`active`,`success`],Uge=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 ps(typeof S==`string`?S:Object.values(S)[0]).isLight():!1,[c]),T=h.useMemo(()=>{let t=kE(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),E=h.useMemo(()=>!Hge.includes(p)&&T>=100?`success`:p||`normal`,[p,T]),{getPrefixCls:D,direction:O,className:k,style:A,classNames:j,styles:M}=Ur(`progress`),N=D(`progress`,n),[P,F]=Lge(N),I={...e,percent:l,type:f,size:u,showInfo:d,percentPosition:v},L=jr(A),R=jr(_),[z,B]=Nr([j,a],[M,L,o,R],{props:I}),V=f===`line`,H=V&&!s,U=h.useMemo(()=>{if(!d)return null;let t=kE(e),n,r=g||(e=>`${e}%`),i=V&&w&&x===`inner`;return x===`inner`||g||E!==`exception`&&E!==`success`?n=r(OE(l),OE(t)):E===`exception`?n=V?h.createElement(re,null):h.createElement(oe,null):E===`success`&&(n=V?h.createElement(K,null):h.createElement(kv,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(Vge,{...W,strokeColor:C,prefixCls:N,steps:xr(s)?s.count:s},U):h.createElement(Bge,{...W,strokeColor:S,prefixCls:N,direction:O,percentPosition:{align:b,type:x}},U):(f===`circle`||f===`dashboard`)&&(G=h.createElement(Age,{...W,strokeColor:S,prefixCls:N,progressStatus:E},U));let ee=m(N,`${N}-status-${E}`,{[`${N}-${f===`dashboard`&&`circle`||f}`]:f!==`line`,[`${N}-inline-circle`]:f===`circle`&&AE(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:ee,role:`progressbar`,"aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100,...Wt(y,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},G)}),Wge=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=(Sr(_)?_(s):_)?d((Sr(b)?b(s):b)||h.createElement(bE,null),()=>T(s),e,a.removeFile,!0):null,L=(Sr(v)?v(s):v)&&O===`done`?d((Sr(x)?x(s):x)||h.createElement(SE,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=Sr(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=(Sr(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},Sr(y)?y(s):y||h.createElement(nb,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(Br),ee=G(),K=h.createElement(`div`,{className:P,style:i?.item},N,H,R,W,A&&h.createElement(ur,{motionName:`${ee}-fade`,visible:O===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?h.createElement(Uge,{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)})),te=s.response&&typeof s.response==`string`?s.response:s.error?.statusText||s.error?.message||a.uploadError,ne=O===`error`?h.createElement(Ty,{title:te,getPopupContainer:e=>e.parentNode},K):K;return h.createElement(`div`,{className:m(`${e}-list-item-container`,t),style:n,ref:E},f?f(ne,s,c,{download:w.bind(null,s),preview:C.bind(null,s),remove:T.bind(null,s)}):ne)}),Gge=h.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=vge,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=_ge,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]=ud(),[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=>{Sr(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(Hd,null):s.uploading,i=l?.(e)?h.createElement(pE,null):h.createElement(Bw,null);return t?r:i}return t?h.createElement(Hd,null):h.createElement(fge,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(gp,{...a,icon:vu(e,{...e.props,onClick:()=>{}})}):h.createElement(gp,{...a},h.createElement(`span`,null,e))};h.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:N}));let{getPrefixCls:L}=h.useContext(Br),R=L(`upload`,u),z=L(),B=m(`${R}-list`,`${R}-list-${n}`,E?.list),V=h.useMemo(()=>Wt(Gf(z),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[z]),H={...j?{}:V,motionDeadline:2e3,motionName:`${R}-${j?`animate-inline`:`animate`}`,keys:gr(d.map(e=>({key:e.uid,file:e}))),motionAppear:k};return h.createElement(`div`,{className:B,style:D?.list},h.createElement(lr,{...H,component:!1},({key:e,file:t,className:r,style:i})=>h.createElement(Wge,{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(ur,{...H,visible:C,forceRender:!0},({className:e,style:t})=>vu(S,n=>({className:m(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),NE=`__LIST_IGNORE_${Date.now()}__`,PE=h.forwardRef((e,t)=>{let n=Ur(`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(Cu),L=p??I,R=e.customRequest||n.customRequest,z=n.progress||y?{...n.progress,...y}:void 0,B=td(j,n.accept,``),[V,H]=ye(i,r),U=V||[],[W,G]=h.useState(`drop`),ee=h.useRef(null),K=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 te=(e,t,n)=>{let r=gr(t),i=!1;E===1?r=r.slice(-1):E&&(i=r.length>E,r=r.slice(0,E)),(0,Sn.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,Sn.flushSync)(()=>{u?.(a)})},ne=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[NE],e===NE)return Object.defineProperty(t,NE,{value:!0,configurable:!0}),!1;xr(e)&&(i=e)}return i},re=e=>{let t=e.filter(e=>!e.file[NE]);if(!t.length)return;let n=t.map(e=>mE(e.file)),r=gr(U);n.forEach(e=>{r=hE(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}te(i,r)})},ie=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!gE(t,U))return;let r=mE(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n,te(r,hE(r,U))},ae=(e,t)=>{if(!gE(t,U))return;let n=mE(t);n.status=`uploading`,n.percent=e.percent,te(n,hE(n,U),e)},oe=(e,t,n)=>{if(!gE(n,U))return;let r=mE(n);r.error=e,r.response=t,r.status=`error`,te(r,hE(r,U))},se=e=>{let t;Promise.resolve(Sr(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`)}),ee.current?.abort(t),te(t,r))})},ce=e=>{G(e.type),e.type===`drop`&&d?.(e)};h.useImperativeHandle(t,()=>({onBatchStart:re,onSuccess:ie,onProgress:ae,onError:oe,fileList:U,upload:ee.current,nativeElement:K.current}));let{getPrefixCls:le,direction:ue,className:de,style:fe,classNames:pe,styles:me}=Ur(`upload`),he=le(`upload`,b),ge={...e,listType:s,showUploadList:o,type:S,multiple:O,hasControlInside:k,supportServerRender:M,disabled:L},[_e,ve]=Nr([pe,F],[me,P],{props:ge}),be={onBatchStart:re,onError:oe,onProgress:ae,onSuccess:ie,...e,customRequest:R,data:D,multiple:O,action:A,accept:B,supportServerRender:M,prefixCls:he,disabled:L,beforeUpload:ne,onChange:void 0,hasControlInside:k};delete be.className,delete be.style,(!C||L)&&delete be.id;let xe=`${he}-wrapper`,[Se,Ce]=uge(he,xe),[we]=$c(`Upload`,Kc.Upload),{showRemoveIcon:Te,showPreviewIcon:Ee,showDownloadIcon:De,removeIcon:Oe,previewIcon:ke,downloadIcon:Ae,extra:je}=typeof o==`boolean`?{}:o,Me=Te===void 0?!L:Te,Ne=(e,t)=>o?h.createElement(Gge,{classNames:_e,styles:ve,prefixCls:he,listType:s,items:U,previewFile:f,onPreview:c,onDownload:l,onRemove:se,showRemoveIcon:Me,showPreviewIcon:Ee,showDownloadIcon:De,removeIcon:Oe,previewIcon:ke,downloadIcon:Ae,iconRender:_,extra:je,locale:{...we,...g},isImageUrl:v,progress:z,appendAction:e,appendActionVisible:t,itemRender:T,disabled:L}):e,Pe=m(xe,x,N,Se,Ce,de,_e.root,{[`${he}-rtl`]:ue===`rtl`,[`${he}-picture-card-wrapper`]:s===`picture-card`,[`${he}-picture-circle-wrapper`]:s===`picture-circle`}),Fe={...ve.root},Ie={...fe,...w};if(S===`drag`){let e=m(Se,he,`${he}-drag`,{[`${he}-drag-uploading`]:U.some(e=>e.status===`uploading`),[`${he}-drag-hover`]:W===`dragover`,[`${he}-disabled`]:L,[`${he}-rtl`]:ue===`rtl`},_e.trigger);return h.createElement(`span`,{className:Pe,ref:K,style:Fe},h.createElement(`div`,{className:e,style:{...Ie,...ve.trigger},onDrop:ce,onDragOver:ce,onDragLeave:ce},h.createElement(uE,{...be,ref:ee,className:`${he}-btn`},h.createElement(`div`,{className:`${he}-drag-container`},C))),Ne())}let Le=m(he,`${he}-select`,{[`${he}-disabled`]:L,[`${he}-hidden`]:!C},_e.trigger),Re=h.createElement(`div`,{className:Le,style:{...Ie,...ve.trigger}},h.createElement(uE,{...be,ref:ee}));return s===`picture-card`||s===`picture-circle`?h.createElement(`span`,{className:Pe,ref:K,style:Fe},Ne(Re,!!C)):h.createElement(`span`,{className:Pe,ref:K,style:Fe},Re,Ne())}),Kge=h.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return h.createElement(PE,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),FE=PE;FE.Dragger=Kge,FE.LIST_IGNORE=NE;var IE=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})),qge=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:`页码`}})),Jge=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.commonLocale=void 0,e.commonLocale={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0}})),Yge=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={...Jge().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}})),LE=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]}})),RE=o((e=>{var t=IE().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Yge()),r=t(LE()),i={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...n.default},timePickerLocale:{...r.default}};i.lang.ok=`确定`,e.default=i})),Xge=o((e=>{var t=IE().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=t(RE()).default})),Zge=o((e=>{var t=IE().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(qge()),r=t(Xge()),i=t(RE()),a=t(LE()),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:`渐变色`}}})),Qge=o(((e,t)=>{t.exports=Zge()})),$ge=`modulepreload`,e_e=function(e){return`/`+e},zE={},t_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=e_e(t,n),t=s(t),t in zE)return;zE[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`:$ge,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)})},BE=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,VE=/^[\\/]{2}/;function n_e(e,t){return t+e.replace(/\\/g,`/`)}var HE=`popstate`;function UE(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function r_e(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return qE(``,{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:JE(t)}return a_e(t,n,null,e)}function WE(e,t){if(e===!1||e==null)throw Error(t)}function GE(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function i_e(){return Math.random().toString(36).substring(2,10)}function KE(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 qE(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?YE(t):t,state:n,key:t&&t.key||r||i_e(),mask:i}}function JE({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 YE(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 a_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=UE(e)?e:qE(h.location,e,t);n&&n(r,e),l=u()+1;let d=KE(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=UE(e)?e:qE(h.location,e,t);n&&n(r,e),l=u();let i=KE(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 o_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(HE,d),c=e,()=>{i.removeEventListener(HE,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 o_e(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),WE(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:JE(t);return i=i.replace(/ $/,`%20`),!n&&VE.test(i)&&(i=r+i),new URL(i,r)}function XE(e,t,n=`/`){return s_e(e,t,n,!1)}function s_e(e,t,n,r,i){let a=rD((typeof t==`string`?YE(t):t).pathname||`/`,n);if(a==null)return null;let o=i??l_e(e),s=null,c=b_e(a);for(let e=0;s==null&&e<o.length;++e)s=y_e(o[e],c,r);return s}function c_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 l_e(e){let t=ZE(e);return u_e(t),t}function ZE(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;WE(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=cD([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(WE(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ZE(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:__e(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=nD(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 QE(e.path))a(e,t,!0,n)}),t}function QE(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=QE(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 u_e(e){e.sort((e,t)=>e.score===t.score?v_e(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var d_e=/^:[\w-]+$/,f_e=3,p_e=2,m_e=1,h_e=10,g_e=-2,$E=e=>e===`*`;function __e(e,t){let n=e.split(`/`),r=n.length;return n.some($E)&&(r+=g_e),t&&(r+=p_e),n.filter(e=>!$E(e)).reduce((e,t)=>e+(d_e.test(t)?f_e:t===``?m_e:h_e),r)}function v_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 y_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?tD(u,l,s.matcher,s.compiledParams):eD(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=eD({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:cD([a,d.pathname]),pathnameBase:w_e(cD([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=cD([a,d.pathnameBase]))}return o}function eD(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=nD(e.path,e.caseSensitive,e.end);return tD(e,t,n,r)}function tD(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 nD(e,t=!1,n=!0){GE(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 b_e(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return GE(!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 rD(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 x_e(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?YE(e):e,a;return n?(n=C_e(n),a=n.startsWith(`/`)?iD(n.substring(1),`/`):iD(n,t)):a=t,{pathname:a,search:T_e(r),hash:E_e(i)}}function iD(e,t){let n=lD(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function aD(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 S_e(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function oD(e){let t=S_e(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function sD(e,t,n,r=!1){let i;typeof e==`string`?i=YE(e):(i={...e},WE(!i.pathname||!i.pathname.includes(`?`),aD(`?`,`pathname`,`search`,i)),WE(!i.pathname||!i.pathname.includes(`#`),aD(`#`,`pathname`,`hash`,i)),WE(!i.search||!i.search.includes(`#`),aD(`#`,`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=x_e(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var C_e=e=>e.replace(/[\\/]{2,}/g,`/`),cD=e=>C_e(e.join(`/`)),lD=e=>e.replace(/\/+$/,``),w_e=e=>lD(e).replace(/^\/*/,`/`),T_e=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,E_e=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,D_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 O_e(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function k_e(e){return cD(e.map(e=>e.route.path).filter(Boolean))||`/`}var A_e=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function j_e(e,t){let n=e;if(typeof n!=`string`||!BE.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(A_e)try{let e=new URL(window.location.href),r=VE.test(n)?new URL(n_e(n,e.protocol)):new URL(n),a=rD(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{GE(!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 M_e=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(M_e);var N_e=[`GET`,...M_e];new Set(N_e);var P_e=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function F_e(e){try{return P_e.includes(new URL(e).protocol)}catch{return!1}}var uD=h.createContext(null);uD.displayName=`DataRouter`;var dD=h.createContext(null);dD.displayName=`DataRouterState`;var I_e=h.createContext(!1);function L_e(){return h.useContext(I_e)}var R_e=h.createContext({isTransitioning:!1});R_e.displayName=`ViewTransition`;var z_e=h.createContext(new Map);z_e.displayName=`Fetchers`;var B_e=h.createContext(null);B_e.displayName=`Await`;var fD=h.createContext(null);fD.displayName=`Navigation`;var pD=h.createContext(null);pD.displayName=`Location`;var mD=h.createContext({outlet:null,matches:[],isDataRoute:!1});mD.displayName=`Route`;var hD=h.createContext(null);hD.displayName=`RouteError`;var V_e=`REACT_ROUTER_ERROR`,H_e=`REDIRECT`,U_e=`ROUTE_ERROR_RESPONSE`;function W_e(e){if(e.startsWith(`${V_e}:${H_e}:{`))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 G_e(e){if(e.startsWith(`${V_e}:${U_e}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new D_e(t.status,t.statusText,t.data)}catch{}}function K_e(e,{relative:t}={}){WE(gD(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=h.useContext(fD),{hash:i,pathname:a,search:o}=yD(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:cD([n,a])),r.createHref({pathname:s,search:o,hash:i})}function gD(){return h.useContext(pD)!=null}function _D(){return WE(gD(),`useLocation() may be used only in the context of a <Router> component.`),h.useContext(pD).location}var q_e=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function J_e(e){h.useContext(fD).static||h.useLayoutEffect(e)}function vD(){let{isDataRoute:e}=h.useContext(mD);return e?dve():Y_e()}function Y_e(){WE(gD(),`useNavigate() may be used only in the context of a <Router> component.`);let e=h.useContext(uD),{basename:t,navigator:n}=h.useContext(fD),{matches:r}=h.useContext(mD),{pathname:i}=_D(),a=JSON.stringify(oD(r)),o=h.useRef(!1);return J_e(()=>{o.current=!0}),h.useCallback((r,s={})=>{if(GE(o.current,q_e),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=sD(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:cD([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}h.createContext(null);function X_e(){let{matches:e}=h.useContext(mD);return e[e.length-1]?.params??{}}function yD(e,{relative:t}={}){let{matches:n}=h.useContext(mD),{pathname:r}=_D(),i=JSON.stringify(oD(n));return h.useMemo(()=>sD(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Z_e(e,t){return Q_e(e,t)}function Q_e(e,t,n){WE(gD(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=h.useContext(fD),{matches:i}=h.useContext(mD),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||``;pve(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=_D(),d;if(t){let e=typeof t==`string`?YE(t):t;WE(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})):XE(e,{pathname:p});GE(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),GE(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=ive(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:cD([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:cD([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(pD.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},g):g}function $_e(){let e=uve(),t=O_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 eve=h.createElement($_e,null),tve=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=G_e(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:h.createElement(mD.Provider,{value:this.props.routeContext},h.createElement(hD.Provider,{value:e,children:this.props.component}));return this.context?h.createElement(nve,{error:e},t):t}};tve.contextType=I_e;var bD=new WeakMap;function nve({children:e,error:t}){let{basename:n}=h.useContext(fD);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=W_e(t.digest);if(e){let r=bD.get(t);if(r)throw r;let i=j_e(e.location,n),a=i.absoluteURL||i.to;if(F_e(a))throw Error(`Invalid redirect location`);if(A_e&&!bD.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 bD.set(t,n),n}return h.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function rve({routeContext:e,match:t,children:n}){let r=h.useContext(uD);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),h.createElement(mD.Provider,{value:e},n)}function ive(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);WE(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:k_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||eve,o&&(s<0&&c===0?(pve(`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(rve,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?h.createElement(tve,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):g()},null)}function xD(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ave(e){let t=h.useContext(uD);return WE(t,xD(e)),t}function SD(e){let t=h.useContext(dD);return WE(t,xD(e)),t}function ove(e){let t=h.useContext(mD);return WE(t,xD(e)),t}function CD(e){let t=ove(e),n=t.matches[t.matches.length-1];return WE(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function sve(){return CD(`useRouteId`)}function cve(){let e=SD(`useNavigation`);return h.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function lve(){let{matches:e,loaderData:t}=SD(`useMatches`);return h.useMemo(()=>e.map(e=>c_e(e,t)),[e,t])}function uve(){let e=h.useContext(hD),t=SD(`useRouteError`),n=CD(`useRouteError`);return e===void 0?t.errors?.[n]:e}function dve(){let{router:e}=ave(`useNavigate`),t=CD(`useNavigate`),n=h.useRef(!1);return J_e(()=>{n.current=!0}),h.useCallback(async(r,i={})=>{GE(n.current,q_e),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var fve={};function pve(e,t,n){!t&&!fve[e]&&(fve[e]=!0,GE(!1,n))}h.memo(mve);function mve({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Q_e(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function wD({to:e,replace:t,state:n,relative:r}){WE(gD(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=h.useContext(fD);GE(!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(mD),{pathname:o}=_D(),s=vD(),c=sD(e,oD(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 TD(e){WE(!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 hve({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){WE(!gD(),`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=YE(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,g=h.useMemo(()=>{let e=rD(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 GE(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(fD.Provider,{value:c},h.createElement(pD.Provider,{children:t,value:g}))}function gve({children:e,location:t}){return Z_e(ED(e),t)}h.Component;function ED(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,ED(e.props.children,i));return}WE(e.type===TD,`[${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>`),WE(!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=ED(e.props.children,i)),n.push(a)}),n}var DD=`get`,OD=`application/x-www-form-urlencoded`;function kD(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function _ve(e){return kD(e)&&e.tagName.toLowerCase()===`button`}function vve(e){return kD(e)&&e.tagName.toLowerCase()===`form`}function yve(e){return kD(e)&&e.tagName.toLowerCase()===`input`}function bve(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xve(e,t){return e.button===0&&(!t||t===`_self`)&&!bve(e)}function AD(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 Sve(e,t){let n=AD(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var jD=null;function Cve(){if(jD===null)try{new FormData(document.createElement(`form`),0),jD=!1}catch{jD=!0}return jD}var wve=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function MD(e){return e!=null&&!wve.has(e)?(GE(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${OD}"`),null):e}function Tve(e,t){let n,r,i,a,o;if(vve(e)){let o=e.getAttribute(`action`);r=o?rD(o,t):null,n=e.getAttribute(`method`)||DD,i=MD(e.getAttribute(`enctype`))||OD,a=new FormData(e)}else if(_ve(e)||yve(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?rD(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||DD,i=MD(e.getAttribute(`formenctype`))||MD(o.getAttribute(`enctype`))||OD,a=new FormData(o,e),!Cve()){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(kD(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=DD,r=null,i=OD,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 Eve={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Dve=/[&><\u2028\u2029]/g;function Ove(e){return e.replace(Dve,e=>Eve[e])}function ND(e,t){if(e===!1||e==null)throw Error(t)}function kve(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&&rD(i.pathname,t)===`/`?i.pathname=`${lD(t)}/_root.${r}`:i.pathname=`${lD(i.pathname)}.${r}`,i}async function Ave(e,t){if(e.id in t)return t[e.id];try{let n=await t_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 jve(e){return e!=null&&typeof e.page==`string`}function Mve(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 Nve(e,t,n){return Rve((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Ave(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Mve).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Pve(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 Fve(e,t,{includeHydrateFallback:n}={}){return Ive(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 Ive(e){return[...new Set(e)]}function Lve(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Rve(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!jve(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Lve(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function PD(){let e=h.useContext(uD);return ND(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function zve(){let e=h.useContext(dD);return ND(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var FD=h.createContext(void 0);FD.displayName=`FrameworkContext`;function ID(){let e=h.useContext(FD);return ND(e,`You must render this element inside a <HydratedRouter> element`),e}function Bve(e,t){let n=h.useContext(FD),[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:LD(s,p),onBlur:LD(c,m),onMouseEnter:LD(l,p),onMouseLeave:LD(u,m),onTouchStart:LD(d,p)}]:[a,f,{}]:[!1,f,{}]}function LD(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Vve({page:e,...t}){let n=L_e(),{nonce:r}=ID(),{router:i}=PD(),a=h.useMemo(()=>XE(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?h.createElement(Uve,{page:e,matches:a,...t}):h.createElement(Wve,{page:e,matches:a,...t})):null}function Hve(e){let{manifest:t,routeModules:n}=ID(),[r,i]=h.useState([]);return h.useEffect(()=>{let r=!1;return Nve(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Uve({page:e,matches:t,...n}){let r=_D(),{future:i}=ID(),{basename:a}=PD(),o=h.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=kve(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 Wve({page:e,matches:t,...n}){let r=_D(),{future:i,manifest:a,routeModules:o}=ID(),{basename:s}=PD(),{loaderData:c,matches:l}=zve(),u=h.useMemo(()=>Pve(e,t,l,a,r,`data`),[e,t,l,a,r]),d=h.useMemo(()=>Pve(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=kve(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(()=>Fve(d,a),[d,a]),m=Hve(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 Gve(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}h.Component;var Kve=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Kve&&(window.__reactRouterVersion=`7.18.0`)}catch{}function qve({basename:e,children:t,useTransitions:n,window:r}){let i=h.useRef();i.current??=r_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(hve,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Jve({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(hve,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}Jve.displayName=`unstable_HistoryRouter`;var RD=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(fD),y=typeof l==`string`&&BE.test(l),b=j_e(l,g);l=b.to;let x=K_e(l,{relative:r}),S=_D(),C=null;if(o){let e=sD(o,[],S.mask?S.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:cD([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=Bve(n,p),D=eye(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:Gve(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?h.createElement(h.Fragment,null,A,h.createElement(Vve,{page:x})):A});RD.displayName=`Link`;var Yve=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=yD(a,{relative:c.relative}),d=_D(),f=h.useContext(dD),{navigator:p,basename:m}=h.useContext(fD),g=f!=null&&cye(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=rD(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(RD,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Yve.displayName=`NavLink`;var Xve=h.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=DD,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:g}=h.useContext(fD),_=iye(),v=aye(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&BE.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})});Xve.displayName=`Form`;function Zve({getKey:e,storageKey:t,...n}){let r=h.useContext(FD),{basename:i}=h.useContext(fD),a=_D(),o=lve();oye({getKey:e,storageKey:t});let s=h.useMemo(()=>{if(!r||!e)return null;let t=HD(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})(${Ove(JSON.stringify(t||BD))}, ${Ove(JSON.stringify(s))})`}})}Zve.displayName=`ScrollRestoration`;function Qve(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zD(e){let t=h.useContext(uD);return WE(t,Qve(e)),t}function $ve(e){let t=h.useContext(dD);return WE(t,Qve(e)),t}function eye(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=vD(),d=_D(),f=yD(e,{relative:o});return h.useCallback(p=>{if(xve(p,t)){p.preventDefault();let t=n===void 0?JE(d)===JE(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 tye(e){GE(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(AD(e)),n=h.useRef(!1),r=_D(),i=h.useMemo(()=>Sve(r.search,n.current?null:t.current),[r.search]),a=vD();return[i,h.useCallback((e,t)=>{let r=AD(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var nye=0,rye=()=>`__${String(++nye)}__`;function iye(){let{router:e}=zD(`useSubmit`),{basename:t}=h.useContext(fD),n=sve(),r=e.fetch,i=e.navigate;return h.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Tve(e,t);a.navigate===!1?await r(a.fetcherKey||rye(),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 aye(e,{relative:t}={}){let{basename:n}=h.useContext(fD),r=h.useContext(mD);WE(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...yD(e||`.`,{relative:t})},o=_D();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:cD([n,a.pathname])),JE(a)}var BD=`react-router-scroll-positions`,VD={};function HD(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:rD(e.pathname,n)||e.pathname},t)),i??=e.key,i}function oye({getKey:e,storageKey:t}={}){let{router:n}=zD(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=$ve(`useScrollRestoration`),{basename:a}=h.useContext(fD),o=_D(),s=lve(),c=cve();h.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),sye(h.useCallback(()=>{if(c.state===`idle`){let t=HD(o,s,a,e);VD[t]=window.scrollY}try{sessionStorage.setItem(t||BD,JSON.stringify(VD))}catch(e){GE(!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||BD);e&&(VD=JSON.parse(e))}catch{}},[t]),h.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(VD,()=>window.scrollY,e?(t,n)=>HD(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{GE(!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 sye(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 cye(e,{relative:t}={}){let n=h.useContext(R_e);WE(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=zD(`useViewTransitionState`),i=yD(e,{relative:t});if(!n.isTransitioning)return!1;let a=rD(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=rD(n.nextLocation.pathname,r)||n.nextLocation.pathname;return eD(i.pathname,o)!=null||eD(i.pathname,a)!=null}function lye(e,t){return function(){return e.apply(t,arguments)}}var{toString:uye}=Object.prototype,{getPrototypeOf:UD}=Object,{iterator:WD,toStringTag:dye}=Symbol,GD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KD=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),GD(n,t))return!0;n=UD(n)}return!1},fye=(e,t)=>e!=null&&KD(e,t)?e[t]:void 0,qD=(e=>t=>{let n=uye.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),JD=e=>(e=e.toLowerCase(),t=>qD(t)===e),YD=e=>t=>typeof t===e,{isArray:XD}=Array,ZD=YD(`undefined`);function QD(e){return e!==null&&!ZD(e)&&e.constructor!==null&&!ZD(e.constructor)&&$D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var pye=JD(`ArrayBuffer`);function mye(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pye(e.buffer),t}var hye=YD(`string`),$D=YD(`function`),gye=YD(`number`),eO=e=>typeof e==`object`&&!!e,_ye=e=>e===!0||e===!1,tO=e=>{if(!eO(e))return!1;let t=UD(e);return(t===null||t===Object.prototype||UD(t)===null)&&!KD(e,dye)&&!KD(e,WD)},vye=e=>{if(!eO(e)||QD(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yye=JD(`Date`),bye=JD(`File`),xye=e=>!!(e&&e.uri!==void 0),Sye=e=>e&&e.getParts!==void 0,Cye=JD(`Blob`),wye=JD(`FileList`),Tye=e=>eO(e)&&$D(e.pipe);function Eye(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Dye=Eye(),Oye=Dye.FormData===void 0?void 0:Dye.FormData,kye=e=>{if(!e)return!1;if(Oye&&e instanceof Oye)return!0;let t=UD(e);if(!t||t===Object.prototype||!$D(e.append))return!1;let n=qD(e);return n===`formdata`||n===`object`&&$D(e.toString)&&e.toString()===`[object FormData]`},Aye=JD(`URLSearchParams`),[jye,Mye,Nye,Pye]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(JD),Fye=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function nO(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),XD(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(QD(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 Iye(e,t){if(QD(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 rO=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,Lye=e=>!ZD(e)&&e!==rO;function iO(...e){let{caseless:t,skipUndefined:n}=Lye(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&Iye(r,i)||i,o=GD(r,a)?r[a]:void 0;tO(o)&&tO(e)?r[a]=iO(o,e):tO(e)?r[a]=iO({},e):XD(e)?r[a]=e.slice():(!n||!ZD(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||QD(n)||(nO(n,i),typeof n!=`object`||XD(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];Yye.call(n,t)&&i(n[t],t)}}return r}var Rye=(e,t,n,{allOwnKeys:r}={})=>(nO(t,(t,r)=>{n&&$D(t)?Object.defineProperty(e,r,{__proto__:null,value:lye(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),Bye=(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)},Vye=(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&&UD(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Hye=(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},Uye=e=>{if(!e)return null;if(XD(e))return e;let t=e.length;if(!gye(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},Wye=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&UD(Uint8Array)),Gye=(e,t)=>{let n=(e&&e[WD]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Kye=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qye=JD(`HTMLFormElement`),Jye=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:Yye}=Object.prototype,Xye=JD(`RegExp`),Zye=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};nO(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Qye=e=>{Zye(e,(t,n)=>{if($D(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if($D(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},$ye=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return XD(e)?r(e):r(String(e).split(t)),n},ebe=()=>{},tbe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function nbe(e){return!!(e&&$D(e.append)&&e[dye]===`FormData`&&e[WD])}var rbe=e=>{let t=new WeakSet,n=e=>{if(eO(e)){if(t.has(e))return;if(QD(e))return e;if(!(`toJSON`in e)){t.add(e);let r=XD(e)?[]:{};return nO(e,(e,t)=>{let i=n(e);!ZD(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},ibe=JD(`AsyncFunction`),abe=e=>e&&(eO(e)||$D(e))&&$D(e.then)&&$D(e.catch),obe=((e,t)=>e?setImmediate:t?((e,t)=>(rO.addEventListener(`message`,({source:n,data:r})=>{n===rO&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),rO.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,$D(rO.postMessage)),sbe=typeof queueMicrotask<`u`?queueMicrotask.bind(rO):typeof process<`u`&&process.nextTick||obe,cbe=e=>e!=null&&$D(e[WD]),J={isArray:XD,isArrayBuffer:pye,isBuffer:QD,isFormData:kye,isArrayBufferView:mye,isString:hye,isNumber:gye,isBoolean:_ye,isObject:eO,isPlainObject:tO,isEmptyObject:vye,isReadableStream:jye,isRequest:Mye,isResponse:Nye,isHeaders:Pye,isUndefined:ZD,isDate:yye,isFile:bye,isReactNativeBlob:xye,isReactNative:Sye,isBlob:Cye,isRegExp:Xye,isFunction:$D,isStream:Tye,isURLSearchParams:Aye,isTypedArray:Wye,isFileList:wye,forEach:nO,merge:iO,extend:Rye,trim:Fye,stripBOM:zye,inherits:Bye,toFlatObject:Vye,kindOf:qD,kindOfTest:JD,endsWith:Hye,toArray:Uye,forEachEntry:Gye,matchAll:Kye,isHTMLForm:qye,hasOwnProperty:GD,hasOwnProp:GD,hasOwnInPrototypeChain:KD,getSafeProp:fye,reduceDescriptors:Zye,freezeMethods:Qye,toObjectSet:$ye,toCamelCase:Jye,noop:ebe,toFiniteNumber:tbe,findKey:Iye,global:rO,isContextDefined:Lye,isSpecCompliantForm:nbe,toJSONObject:rbe,isAsyncFn:ibe,isThenable:abe,setImmediate:obe,asap:sbe,isIterable:cbe,isSafeIterable:e=>e!=null&&KD(e,WD)&&cbe(e)},lbe=J.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`]),ube=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]&&lbe[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function dbe(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 fbe=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),pbe=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function aO(e,t){return J.isArray(e)?e.map(e=>aO(e,t)):dbe(String(e).replace(t,``))}var mbe=e=>aO(e,fbe),hbe=e=>aO(e,pbe);function oO(e){let t=Object.create(null);return J.forEach(e.toJSON(),(e,n)=>{t[n]=hbe(e)}),t}var sO=Symbol(`internals`);function cO(e){return e&&String(e).trim().toLowerCase()}function lO(e){return e===!1||e==null?e:J.isArray(e)?e.map(lO):mbe(String(e))}function gbe(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 _be=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function uO(e,t,n,r,i){if(J.isFunction(r))return r.call(this,t,n);if(i&&(t=n),J.isString(t)){if(J.isString(r))return t.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(t)}}function vbe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ybe(e,t){let n=J.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 dO=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=cO(t);if(!i)return;let a=J.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=lO(e))}let a=(e,t)=>J.forEach(e,(e,n)=>i(e,n,t));if(J.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(J.isString(e)&&(e=e.trim())&&!_be(e))a(ube(e),t);else if(J.isObject(e)&&J.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!J.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],J.hasOwnProp(n,i)?(r=n[i],n[i]=J.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=cO(e),e){let n=J.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return gbe(e);if(J.isFunction(t))return t.call(this,e,n);if(J.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=cO(e),e){let n=J.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||uO(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=cO(e),e){let i=J.findKey(n,e);i&&(!t||uO(n,n[i],i,t))&&(delete n[i],r=!0)}}return J.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||uO(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return J.forEach(this,(r,i)=>{let a=J.findKey(n,i);if(a){t[a]=lO(r),delete t[i];return}let o=e?vbe(i):String(i).trim();o!==i&&delete t[i],t[o]=lO(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return J.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&J.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[sO]=this[sO]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=cO(e);t[r]||(ybe(n,e),t[r]=!0)}return J.isArray(e)?e.forEach(r):r(e),this}};dO.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),J.reduceDescriptors(dO.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),J.freezeMethods(dO);var bbe=`[REDACTED ****]`;function xbe(e){if(J.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(J.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function Sbe(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||J.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof dO&&(e=e.toJSON()),r.push(e);let t;if(J.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);J.isUndefined(r)||(t[n]=r)});else{if(!J.isPlainObject(e)&&xbe(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?bbe:i(a);J.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var fO=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&&J.hasOwnProp(e,`redact`)?e.redact:void 0,n=J.isArray(t)&&t.length>0?Sbe(e,t):J.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}}};fO.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,fO.ERR_BAD_OPTION=`ERR_BAD_OPTION`,fO.ECONNABORTED=`ECONNABORTED`,fO.ETIMEDOUT=`ETIMEDOUT`,fO.ECONNREFUSED=`ECONNREFUSED`,fO.ERR_NETWORK=`ERR_NETWORK`,fO.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,fO.ERR_DEPRECATED=`ERR_DEPRECATED`,fO.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,fO.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,fO.ERR_CANCELED=`ERR_CANCELED`,fO.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,fO.ERR_INVALID_URL=`ERR_INVALID_URL`,fO.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function pO(e){return J.isPlainObject(e)||J.isArray(e)}function mO(e){return J.endsWith(e,`[]`)?e.slice(0,-2):e}function hO(e,t,n){return e?e.concat(t).map(function(e,t){return e=mO(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Cbe(e){return J.isArray(e)&&!e.some(pO)}var wbe=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});function gO(e,t,n){if(!J.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!J.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&&J.isSpecCompliantForm(t),u=[];if(!J.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(J.isDate(e))return e.toISOString();if(J.isBoolean(e))return e.toString();if(!l&&J.isBlob(e))throw new fO(`Blob is not supported. Use a Buffer instead.`);if(J.isArrayBuffer(e)||J.isTypedArray(e)){if(l&&typeof s==`function`)return new s([e]);if(typeof Buffer<`u`)return Buffer.from(e);throw new fO(`Blob is not supported. Use a Buffer instead.`,fO.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new fO(`Object is too deeply nested (`+e+` levels). Max depth: `+c,fO.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(!J.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(J.isReactNative(t)&&J.isReactNativeBlob(e))return t.append(hO(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(J.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(J.isArray(e)&&Cbe(e)||(J.isFileList(e)||J.endsWith(n,`[]`))&&(s=J.toArray(e)))return n=mO(n),s.forEach(function(e,r){!(J.isUndefined(e)||e===null)&&t.append(o===!0?hO([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return pO(e)?!0:(t.append(hO(i,n,a),d(e)),!1)}let h=Object.assign(wbe,{defaultVisitor:m,convertValue:d,isVisitable:pO});function g(e,n,r=0){if(!J.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),J.forEach(e,function(e,a){(!(J.isUndefined(e)||e===null)&&i.call(t,e,J.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!J.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function _O(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function vO(e,t){this._pairs=[],e&&gO(e,this,t)}var yO=vO.prototype;yO.append=function(e,t){this._pairs.push([e,t])},yO.toString=function(e){let t=e?t=>e.call(this,t,_O):_O;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Tbe(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function bO(e,t,n){if(!t)return e;e||=``;let r=J.isFunction(n)?{serialize:n}:n,i=J.getSafeProp(r,`encode`)||Tbe,a=J.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):J.isURLSearchParams(t)?t.toString():new vO(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var xO=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){J.forEach(this.handlers,function(t){t!==null&&e(t)})}},SO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ebe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:vO,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Dbe=s({hasBrowserEnv:()=>CO,hasStandardBrowserEnv:()=>Obe,hasStandardBrowserWebWorkerEnv:()=>kbe,navigator:()=>wO,origin:()=>Abe}),CO=typeof window<`u`&&typeof document<`u`,wO=typeof navigator==`object`&&navigator||void 0,Obe=CO&&(!wO||[`ReactNative`,`NativeScript`,`NS`].indexOf(wO.product)<0),kbe=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Abe=CO&&window.location.href||`http://localhost`,TO={...Dbe,...Ebe};function jbe(e,t){return gO(e,new TO.classes.URLSearchParams,{visitor:function(e,t,n,r){return TO.isNode&&J.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var EO=100;function DO(e){if(e>EO)throw new fO(`FormData field is too deeply nested (`+e+` levels). Max depth: `+EO,fO.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Mbe(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)DO(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Nbe(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 OO(e){function t(e,n,r,i){DO(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&J.isArray(r)?r.length:a,s?(J.hasOwnProp(r,a)?r[a]=J.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!J.hasOwnProp(r,a)||!J.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&J.isArray(r[a])&&(r[a]=Nbe(r[a])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){let n={};return J.forEachEntry(e,(e,r)=>{t(Mbe(e),r,n,0)}),n}return null}var kO=(e,t)=>e!=null&&J.hasOwnProp(e,t)?e[t]:void 0;function Pbe(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var AO={transitional:SO,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=J.isObject(e);if(i&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return r?JSON.stringify(OO(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=kO(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return jbe(e,t).toString();if((a=J.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=kO(this,`env`),r=n&&n.FormData;return gO(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Pbe(e)):e}],transformResponse:[function(e){let t=kO(this,`transitional`)||AO.transitional,n=t&&t.forcedJSONParsing,r=kO(this,`responseType`),i=r===`json`;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,kO(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?fO.from(e,fO.ERR_BAD_RESPONSE,this,null,kO(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:TO.classes.FormData,Blob:TO.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};J.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{AO.headers[e]={}});function jO(e,t){let n=this||AO,r=t||n,i=dO.from(r.headers),a=r.data;return J.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function MO(e){return!!(e&&e.__CANCEL__)}var NO=class extends fO{constructor(e,t,n){super(e??`canceled`,fO.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function PO(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new fO(`Request failed with status code `+n.status,n.status>=400&&n.status<500?fO.ERR_BAD_REQUEST:fO.ERR_BAD_RESPONSE,n.config,n.request,n))}function Fbe(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Ibe(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 Lbe(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 FO=(e,t,n=3)=>{let r=0,i=Ibe(50,250);return Lbe(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)},IO=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},LO=e=>(...t)=>J.asap(()=>e(...t)),Rbe=TO.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,TO.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(TO.origin),TO.navigator&&/(msie|trident)/i.test(TO.navigator.userAgent)):()=>!0,zbe=TO.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&s.push(`path=${r}`),J.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),J.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 Bbe(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Vbe(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var Hbe=/^https?:(?!\/\/)/i,Ube=/[\t\n\r]/g;function Wbe(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Gbe(e){return Wbe(e).replace(Ube,``)}function RO(e,t){if(typeof e==`string`&&Hbe.test(Gbe(e)))throw new fO(`Invalid URL: missing "//" after protocol`,fO.ERR_INVALID_URL,t)}function zO(e,t,n,r){RO(t,r);let i=!Bbe(t);return e&&(i||n===!1)?(RO(e,r),Vbe(e,t)):t}var BO=e=>e instanceof dO?{...e}:e;function VO(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 J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function i(e,t,n,i){if(!J.isUndefined(t))return r(e,t,n,i);if(!J.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!J.isUndefined(t))return r(void 0,t)}function o(e,t){if(!J.isUndefined(t))return r(void 0,t);if(!J.isUndefined(e))return r(void 0,e)}function s(n){let r=J.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!J.isUndefined(r))if(J.isPlainObject(r)){if(J.hasOwnProp(r,n))return r[n]}else return;let i=J.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(J.isPlainObject(i)&&J.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(J.hasOwnProp(t,a))return r(n,i);if(J.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(BO(e),BO(t),n,!0)};return J.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=J.hasOwnProp(l,r)?l[r]:i,o=a(J.hasOwnProp(e,r)?e[r]:void 0,J.hasOwnProp(t,r)?t[r]:void 0,r);J.isUndefined(o)&&a!==c||(n[r]=o)}),J.hasOwnProp(t,`validateStatus`)&&J.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(J.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var Kbe=[`content-type`,`content-length`];function qbe(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{Kbe.includes(t.toLowerCase())&&e.set(t,n)})}var Jbe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function HO(e){let t=VO({},e),n=e=>J.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=dO.from(s),t.url=bO(zO(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=J.getSafeProp(c,`username`)||``,n=J.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?Jbe(n):``)))}catch(t){throw fO.from(t,fO.ERR_BAD_OPTION_VALUE,e)}}if(J.isFormData(r)&&(TO.hasStandardBrowserEnv||TO.hasStandardBrowserWebWorkerEnv||J.isReactNative(r)?s.setContentType(void 0):J.isFunction(r.getHeaders)&&qbe(s,r.getHeaders(),n(`formDataHeaderPolicy`))),TO.hasStandardBrowserEnv&&(J.isFunction(i)&&(i=i(t)),i===!0||i==null&&Rbe(t.url))){let e=a&&o&&zbe.read(o);e&&s.set(a,e)}return t}var Ybe=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=HO(e),i=r.data,a=dO.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=dO.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());PO(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 fO(`Request aborted`,fO.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new fO(t&&t.message?t.message:`Network Error`,fO.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||SO;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new fO(t,i.clarifyTimeoutError?fO.ETIMEDOUT:fO.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&J.forEach(oO(a),function(e,t){h.setRequestHeader(t,e)}),J.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=FO(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=FO(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new NO(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 _=Fbe(r.url);if(_&&!TO.protocols.includes(_)){n(new fO(`Unsupported protocol `+_+`:`,fO.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},Xbe=(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 fO?t:new NO(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new fO(`timeout of ${t}ms exceeded`,fO.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=()=>J.asap(o),s},Zbe=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},Qbe=async function*(e,t){for await(let n of $be(e))yield*Zbe(n,t)},$be=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()}},UO=(e,t,n,r)=>{let i=Qbe(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})},WO=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,exe=(e,t,n)=>t+2<n&&WO(e.charCodeAt(t+1))&&WO(e.charCodeAt(t+2));function txe(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);WO(t)&&WO(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&&exe(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 GO=`1.18.1`,KO=64*1024,{isFunction:qO}=J,nxe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),JO=e=>{if(!J.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},YO=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rxe=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},ixe=e=>{let t=J.global!==void 0&&J.global!==null?J.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=J.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?qO(i):typeof fetch==`function`,c=qO(a),l=qO(o);if(!s)return!1;let u=s&&qO(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&&YO(()=>{let e=!1,t=new a(TO.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&&YO(()=>J.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 fO(`Response type '${e}' is not supported`,fO.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new a(TO.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e+=``),J.isString(e))return(await d(e)).byteLength},g=async(e,t)=>J.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}=HO(e),E=J.isNumber(w)&&w>-1,D=J.isNumber(T)&&T>-1,O=t=>J.hasOwnProp(e,t)?e[t]:void 0,k=i||fetch;b=b?(b+``).toLowerCase():`text`;let A=Xbe([l,d&&d.toAbortSignal()],_),j=null,M=A&&A.unsubscribe&&(()=>{A.unsubscribe()}),N,P=null,F=()=>new fO(`Request body larger than maxBodyLength limit`,fO.ERR_BAD_REQUEST,e,j);try{let i,l=O(`auth`);if(l&&(i={username:J.getSafeProp(l,`username`)||``,password:J.getSafeProp(l,`password`)||``}),rxe(t)){let e=new URL(t,TO.origin);!i&&(e.username||e.password)&&(i={username:JO(e.username),password:JO(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(nxe((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&txe(t)>w)throw new fO(`maxContentLength size of `+w+` exceeded`,fO.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&&(J.isReadableStream(s)||J.isStream(s)),_=(e,t,n)=>UO(e,KO,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(J.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&IO(N,FO(LO(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 fO(`Stream request bodies are not supported by the current fetch implementation`,fO.ERR_NOT_SUPPORT,e,j);J.isString(S)||(S=S?`include`:`omit`);let I=c&&`credentials`in a.prototype;if(J.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/`+GO,!1);let L={...C,signal:A,method:n.toUpperCase(),headers:oO(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=dO.from(R.headers);if(E){let t=J.toFiniteNumber(z.getContentLength());if(t!=null&&t>w)throw new fO(`maxContentLength size of `+w+` exceeded`,fO.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=J.toFiniteNumber(z.getContentLength()),[r,i]=v&&IO(n,FO(LO(v),!0))||[],a=0;R=new o(UO(R.body,KO,t=>{if(E&&(a=t,a>w))throw new fO(`maxContentLength size of `+w+` exceeded`,fO.ERR_BAD_RESPONSE,e,j);r&&r(t)},()=>{i&&i(),M&&M()}),t)}b||=`text`;let V=await m[J.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 fO(`maxContentLength size of `+w+` exceeded`,fO.ERR_BAD_RESPONSE,e,j)}return!B&&M&&M(),await new Promise((t,n)=>{PO(t,n,{data:V,headers:dO.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:j})})}catch(t){if(M&&M(),A&&A.aborted&&A.reason instanceof fO){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 fO)throw j&&!t.request&&(t.request=j),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new fO(`Network Error`,fO.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 fO.from(t,t&&t.code,e,j,t&&t.response)}}},axe=new Map,XO=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=axe;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:ixe(t)),l=c;return c};XO();var ZO={http:null,xhr:Ybe,fetch:{get:XO}};J.forEach(ZO,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var QO=e=>`- ${e}`,oxe=e=>J.isFunction(e)||e===null||e===!1;function sxe(e,t){e=J.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,!oxe(r)&&(i=ZO[(n=String(r)).toLowerCase()],i===void 0))throw new fO(`Unknown adapter '${n}'`);if(i&&(J.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 fO(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
`+e.map(QO).join(`
`):` `+QO(e[0]):`as no adapter specified`),fO.ERR_NOT_SUPPORT)}return i}var $O={getAdapter:sxe,adapters:ZO};function ek(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new NO(null,e)}function tk(e){return ek(e),e.headers=dO.from(e.headers),e.data=jO.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),$O.getAdapter(e.adapter||AO.adapter,e)(e).then(function(t){ek(e),e.response=t;try{t.data=jO.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=dO.from(t.headers),t},function(t){if(!MO(t)&&(ek(e),t&&t.response)){e.response=t.response;try{t.response.data=jO.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=dO.from(t.response.headers)}return Promise.reject(t)})}var nk={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{nk[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var rk={};nk.transitional=function(e,t,n){function r(e,t){return`[Axios v`+GO+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new fO(r(i,` has been removed`+(t?` in `+t:``)),fO.ERR_DEPRECATED);return t&&!rk[i]&&(rk[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}},nk.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function cxe(e,t,n){if(typeof e!=`object`||!e)throw new fO(`options must be an object`,fO.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 fO(`option `+a+` must be `+n,fO.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new fO(`Unknown option `+a,fO.ERR_BAD_OPTION)}}var ik={assertOptions:cxe,validators:nk},ak=ik.validators,ok=class{constructor(e){this.defaults=e||{},this.interceptors={request:new xO,response:new xO}}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=VO(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ik.assertOptions(n,{silentJSONParsing:ak.transitional(ak.boolean),forcedJSONParsing:ak.transitional(ak.boolean),clarifyTimeoutError:ak.transitional(ak.boolean),legacyInterceptorReqResOrdering:ak.transitional(ak.boolean),advertiseZstdAcceptEncoding:ak.transitional(ak.boolean),validateStatusUndefinedResolves:ak.transitional(ak.boolean)},!1),r!=null&&(J.isFunction(r)?t.paramsSerializer={serialize:r}:ik.assertOptions(r,{encode:ak.function,serialize:ak.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),ik.assertOptions(t,{baseUrl:ak.spelling(`baseURL`),withXsrfToken:ak.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&J.merge(i.common,i[t.method]);i&&J.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=dO.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||SO;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=[tk.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=tk.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=VO(this.defaults,e),bO(zO(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};J.forEach([`delete`,`get`,`head`,`options`],function(e){ok.prototype[e]=function(t,n){return this.request(VO(n||{},{method:e,url:t,data:n&&J.hasOwnProp(n,`data`)?n.data:void 0}))}}),J.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(VO(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}ok.prototype[e]=t(),e!==`query`&&(ok.prototype[e+`Form`]=t(!0))});var lxe=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 NO(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 uxe(e){return function(t){return e.apply(null,t)}}function dxe(e){return J.isObject(e)&&e.isAxiosError===!0}var sk={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(sk).forEach(([e,t])=>{sk[t]=e});function ck(e){let t=new ok(e),n=lye(ok.prototype.request,t);return J.extend(n,ok.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return ck(VO(e,t))},n}var lk=ck(AO);lk.Axios=ok,lk.CanceledError=NO,lk.CancelToken=lxe,lk.isCancel=MO,lk.VERSION=GO,lk.toFormData=gO,lk.AxiosError=fO,lk.Cancel=lk.CanceledError,lk.all=function(e){return Promise.all(e)},lk.spread=uxe,lk.isAxiosError=dxe,lk.mergeConfig=VO,lk.AxiosHeaders=dO,lk.formToJSON=e=>OO(J.isHTMLForm(e)?new FormData(e):e),lk.getAdapter=$O.getAdapter,lk.HttpStatusCode=sk,lk.default=lk;var fxe=l(Qge(),1),uk=lk.create({baseURL:`/api`});uk.interceptors.request.use(e=>{let t=localStorage.getItem(`access_token`);return t&&(e.headers.Authorization=`Bearer ${t}`),e}),uk.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 lk.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}`,uk(t)}catch{localStorage.removeItem(`access_token`),localStorage.removeItem(`refresh_token`),window.location.href=`/login`}}return Promise.reject(e)});var dk={register:(e,t)=>uk.post(`/auth/register`,{username:e,password:t}),login:(e,t)=>uk.post(`/auth/login`,{username:e,password:t}),me:()=>uk.get(`/auth/me`)},pxe={public:()=>uk.get(`/settings/public`)},fk={getSettings:()=>uk.get(`/admin/settings`),updateSettings:e=>uk.patch(`/admin/settings`,e),updateProfile:e=>uk.patch(`/admin/profile`,e),listUsers:()=>uk.get(`/admin/users`),createUser:e=>uk.post(`/admin/users`,e),resetUserPassword:(e,t)=>uk.patch(`/admin/users/${e}`,{password:t}),deleteUser:e=>uk.delete(`/admin/users/${e}`)},pk={list:()=>uk.get(`/students`),create:e=>uk.post(`/students`,e),get:e=>uk.get(`/students/${e}`),update:(e,t)=>uk.patch(`/students/${e}`,t),remove:e=>uk.delete(`/students/${e}`)},mxe={list:()=>uk.get(`/subjects`)},mk={list:e=>uk.get(`/students/${e}/exams`),create:(e,t)=>uk.post(`/students/${e}/exams`,t),update:(e,t)=>uk.patch(`/exams/${e}`,t),remove:e=>uk.delete(`/exams/${e}`),trend:(e,t)=>uk.get(`/students/${e}/scores/trend`,{params:{subject_id:t}}),exportCsv:e=>uk.get(`/students/${e}/scores/export`,{responseType:`blob`})},hk={list:(e,t)=>uk.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),uk.post(`/students/${e}/wrong-questions`,i)},get:e=>uk.get(`/wrong-questions/${e}`),update:(e,t)=>uk.patch(`/wrong-questions/${e}`,t),remove:e=>uk.delete(`/wrong-questions/${e}`),retryOcr:e=>uk.post(`/wrong-questions/${e}/retry-ocr`),regenerate:e=>uk.post(`/wrong-questions/${e}/regenerate-solution`),imageUrl:e=>`/api/wrong-questions/${e}/image`},hxe=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})),Y=o(((e,t)=>{t.exports=hxe()}))(),gk=(0,h.createContext)(null);function gxe({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}dk.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 dk.login(e,t);localStorage.setItem(`access_token`,r.access_token),localStorage.setItem(`refresh_token`,r.refresh_token),n((await dk.me()).data)};return(0,Y.jsx)(gk.Provider,{value:{user:t,loading:r,login:a,register:async(e,t)=>{await dk.register(e,t),await a(e,t)},logout:()=>{localStorage.removeItem(`access_token`),localStorage.removeItem(`refresh_token`),n(null)}},children:e})}function _k(){let e=(0,h.useContext)(gk);if(!e)throw Error(`useAuth must be used within AuthProvider`);return e}var _xe=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 vk(){return vk=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},vk.apply(this,arguments)}var vxe=h.forwardRef((e,t)=>h.createElement(W,vk({},e,{ref:t,icon:_xe.default}))),yxe=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 yk(){return yk=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},yk.apply(this,arguments)}var bxe=h.forwardRef((e,t)=>h.createElement(W,yk({},e,{ref:t,icon:yxe.default}))),xxe=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 bk(){return bk=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},bk.apply(this,arguments)}var xk=h.forwardRef((e,t)=>h.createElement(W,bk({},e,{ref:t,icon:xxe.default}))),Sxe=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 Sk(){return Sk=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},Sk.apply(this,arguments)}var Cxe=h.forwardRef((e,t)=>h.createElement(W,Sk({},e,{ref:t,icon:Sxe.default}))),wxe=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 Ck(){return Ck=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},Ck.apply(this,arguments)}var Txe=h.forwardRef((e,t)=>h.createElement(W,Ck({},e,{ref:t,icon:wxe.default}))),Exe=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 wk(){return wk=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},wk.apply(this,arguments)}var Tk=h.forwardRef((e,t)=>h.createElement(W,wk({},e,{ref:t,icon:Exe.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:`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 Ek(){return Ek=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},Ek.apply(this,arguments)}var Oxe=h.forwardRef((e,t)=>h.createElement(W,Ek({},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:`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 Dk(){return Dk=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},Dk.apply(this,arguments)}var Ok=h.forwardRef((e,t)=>h.createElement(W,Dk({},e,{ref:t,icon:kxe.default})));function kk(e,t){if(lk.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 Axe(){let{user:e,login:t,register:n,loading:r}=_k(),i=vD(),[a]=ky.useForm(),[o]=ky.useForm(),[s,c]=(0,h.useState)(!0),[l,u]=(0,h.useState)(!0);if((0,h.useEffect)(()=>{pxe.public().then(e=>c(e.data.registration_enabled)).catch(()=>c(!0)).finally(()=>u(!1))},[]),!r&&e)return(0,Y.jsx)(wD,{to:`/`,replace:!0});let d=async e=>{try{await t(e.username,e.password),rx.success(`登录成功`),i(`/`)}catch(e){rx.error(kk(e,`用户名或密码错误`))}},f=async e=>{if(e.password!==e.confirm){rx.error(`两次密码不一致`);return}try{await n(e.username,e.password),rx.success(`注册成功`),i(`/`)}catch(e){rx.error(kk(e,`注册失败,请稍后重试`))}},p=[{key:`login`,label:`登录`,children:(0,Y.jsxs)(ky,{form:a,onFinish:d,layout:`vertical`,children:[(0,Y.jsx)(ky.Item,{name:`username`,rules:[{required:!0,message:`请输入用户名`}],children:(0,Y.jsx)(ib,{prefix:(0,Y.jsx)(Ok,{}),placeholder:`用户名`})}),(0,Y.jsx)(ky.Item,{name:`password`,rules:[{required:!0,message:`请输入密码`}],children:(0,Y.jsx)(ib.Password,{prefix:(0,Y.jsx)(xk,{}),placeholder:`密码`})}),(0,Y.jsx)(_p,{type:`primary`,htmlType:`submit`,block:!0,children:`登录`})]})}];return s&&p.push({key:`register`,label:`注册`,children:(0,Y.jsxs)(ky,{form:o,onFinish:f,layout:`vertical`,children:[(0,Y.jsx)(ky.Item,{name:`username`,rules:[{required:!0,message:`请输入用户名`},{min:3,message:`至少3个字符`}],children:(0,Y.jsx)(ib,{prefix:(0,Y.jsx)(Ok,{}),placeholder:`用户名`})}),(0,Y.jsx)(ky.Item,{name:`password`,rules:[{required:!0,message:`请输入密码`},{min:6,message:`至少6个字符`}],children:(0,Y.jsx)(ib.Password,{prefix:(0,Y.jsx)(xk,{}),placeholder:`密码`})}),(0,Y.jsx)(ky.Item,{name:`confirm`,rules:[{required:!0,message:`请确认密码`}],children:(0,Y.jsx)(ib.Password,{prefix:(0,Y.jsx)(xk,{}),placeholder:`确认密码`})}),(0,Y.jsx)(_p,{type:`primary`,htmlType:`submit`,block:!0,children:`注册`})]})}),(0,Y.jsx)(`div`,{style:{minHeight:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`linear-gradient(135deg, #667eea 0%, #764ba2 100%)`,padding:16},children:(0,Y.jsxs)(lg,{style:{width:`100%`,maxWidth:420},title:`中学生成绩档案`,children:[(0,Y.jsx)(rE.Paragraph,{type:`secondary`,style:{textAlign:`center`},children:`成绩录入 · 趋势分析 · 错题管理`}),(0,Y.jsxs)(TS,{spinning:l,children:[!l&&!s&&(0,Y.jsx)(rE.Paragraph,{type:`secondary`,style:{textAlign:`center`,marginBottom:16},children:`注册已关闭,请联系管理员获取账号`}),(0,Y.jsx)(sg,{items:p})]}),(0,Y.jsx)(rE.Paragraph,{type:`secondary`,style:{textAlign:`center`,fontSize:12,marginTop:16,marginBottom:0},children:`© 马建军 · 微信 dekun03 · 18364911125`})]})})}function jxe(){let{user:e}=_k(),[t,n]=(0,h.useState)(null),[r,i]=(0,h.useState)([]),[a,o]=(0,h.useState)(!0),[s]=ky.useForm(),[c]=ky.useForm(),[l,u]=(0,h.useState)(!1),[d,f]=(0,h.useState)(null),[p]=ky.useForm(),[m]=ky.useForm(),g=ky.useWatch(`ai_provider`,m);if(!e?.is_superuser)return(0,Y.jsx)(wD,{to:`/`,replace:!0});let _=async()=>{o(!0);try{let[t,r]=await Promise.all([fk.getSettings(),fk.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 fk.updateSettings({registration_enabled:e});n(t),rx.success(e?`已开放注册`:`已关闭注册`)},y=async t=>{if(t.password&&t.password!==t.confirm){rx.error(`两次密码不一致`);return}await fk.updateProfile({username:t.username===e?.username?void 0:t.username,current_password:t.password?t.current_password:void 0,password:t.password||void 0}),rx.success(`账号信息已更新,若修改了用户名或密码请重新登录`)},b=async e=>{await fk.createUser(e),rx.success(`用户已创建`),u(!1),c.resetFields(),_()},x=async e=>{d&&(await fk.resetUserPassword(d.id,e.password),rx.success(`密码已重置`),f(null),p.resetFields())},S=async e=>{await fk.deleteUser(e),rx.success(`用户已删除`),_()};return(0,Y.jsxs)(`div`,{className:`page-container`,children:[(0,Y.jsxs)(Py,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(rE.Title,{level:3,style:{margin:0},children:`系统设置`}),(0,Y.jsxs)(rE.Text,{type:`secondary`,children:[`超级管理员 · `,(0,Y.jsx)(RD,{to:`/`,children:`返回首页`})]})]}),(0,Y.jsx)(sg,{items:[{key:`general`,label:`基本设置`,children:(0,Y.jsxs)(Py,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,Y.jsx)(lg,{title:`注册开关`,loading:a,children:(0,Y.jsxs)(Py,{children:[(0,Y.jsx)(Nde,{checked:t?.registration_enabled??!0,onChange:v}),(0,Y.jsx)(rE.Text,{children:t?.registration_enabled?`开放注册:用户可在登录页自行注册`:`关闭注册:仅超级管理员可添加用户`})]})}),(0,Y.jsx)(lg,{title:`管理员账号`,children:(0,Y.jsxs)(ky,{form:s,layout:`vertical`,onFinish:y,children:[(0,Y.jsx)(ky.Item,{name:`username`,label:`用户名`,rules:[{required:!0,min:3}],children:(0,Y.jsx)(ib,{prefix:(0,Y.jsx)(Ok,{})})}),(0,Y.jsx)(ky.Item,{name:`current_password`,label:`当前密码(修改密码时必填)`,children:(0,Y.jsx)(ib.Password,{prefix:(0,Y.jsx)(xk,{})})}),(0,Y.jsx)(ky.Item,{name:`password`,label:`新密码(留空则不修改)`,children:(0,Y.jsx)(ib.Password,{prefix:(0,Y.jsx)(xk,{})})}),(0,Y.jsx)(ky.Item,{name:`confirm`,label:`确认新密码`,children:(0,Y.jsx)(ib.Password,{prefix:(0,Y.jsx)(xk,{})})}),(0,Y.jsx)(_p,{type:`primary`,htmlType:`submit`,icon:(0,Y.jsx)(Tk,{}),children:`保存`})]})})]})},{key:`ai`,label:`AI 模型`,children:(0,Y.jsx)(lg,{title:`解题 AI 配置`,loading:a,children:(0,Y.jsxs)(ky,{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 fk.updateSettings(t);n(r),m.setFieldValue(`openai_api_key`,``),rx.success(`AI 模型配置已保存`)},children:[(0,Y.jsx)(ky.Item,{name:`ai_provider`,label:`AI 提供商`,rules:[{required:!0}],children:(0,Y.jsxs)(Tx.Group,{children:[(0,Y.jsx)(Tx.Button,{value:`ollama`,children:`本地 Ollama`}),(0,Y.jsx)(Tx.Button,{value:`openai`,children:`OpenAI 兼容 API`})]})}),(g||t?.ai_provider)===`ollama`&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ky.Item,{name:`ollama_base_url`,label:`Ollama 地址`,children:(0,Y.jsx)(ib,{placeholder:`http://127.0.0.1:11434`})}),(0,Y.jsx)(ky.Item,{name:`ollama_model`,label:`Ollama 模型`,children:(0,Y.jsx)(ib,{placeholder:`qwen2.5:7b`})})]}),(g||t?.ai_provider)===`openai`&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ky.Item,{name:`openai_base_url`,label:`API Base URL`,children:(0,Y.jsx)(ib,{placeholder:`https://api.openai.com/v1`})}),(0,Y.jsx)(ky.Item,{name:`openai_model`,label:`模型名称`,children:(0,Y.jsx)(ib,{placeholder:`gpt-4o-mini`})}),(0,Y.jsx)(ky.Item,{name:`openai_api_key`,label:`API Key`,extra:t?.openai_api_key_set?`已配置 Key,留空则不修改`:`请输入 API Key`,children:(0,Y.jsx)(ib.Password,{placeholder:`sk-...`})})]}),(0,Y.jsx)(ky.Item,{name:`ocr_service_url`,label:`OCR 服务地址(局域网 GPU 机器)`,extra:`留空则在应用服务器本机 CPU 识别。填写后类似 Ollama,例如 http://192.168.8.100:23567`,children:(0,Y.jsx)(ib,{placeholder:`http://192.168.8.100:23567`})}),(0,Y.jsx)(rE.Paragraph,{type:`secondary`,children:`错题/奥数解法将按学生学段(初中/高中)生成,并严格禁止超纲解题。`}),(0,Y.jsx)(_p,{type:`primary`,htmlType:`submit`,children:`保存 AI 配置`})]})})},{key:`users`,label:`用户管理`,children:(0,Y.jsx)(lg,{title:`用户列表`,extra:(0,Y.jsx)(_p,{type:`primary`,onClick:()=>u(!0),children:`添加用户`}),children:(0,Y.jsx)(OT,{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,Y.jsx)(rE.Text,{type:`secondary`,children:`—`}):(0,Y.jsxs)(Py,{children:[(0,Y.jsx)(_p,{size:`small`,onClick:()=>f(t),children:`重置密码`}),(0,Y.jsx)(xx,{title:`确定删除该用户?`,onConfirm:()=>S(t.id),children:(0,Y.jsx)(_p,{size:`small`,danger:!0,children:`删除`})})]})}]})})}]})]}),(0,Y.jsx)(yx,{title:`添加用户`,open:l,onCancel:()=>u(!1),onOk:()=>c.submit(),destroyOnHidden:!0,children:(0,Y.jsxs)(ky,{form:c,layout:`vertical`,onFinish:b,children:[(0,Y.jsx)(ky.Item,{name:`username`,label:`用户名`,rules:[{required:!0,min:3}],children:(0,Y.jsx)(ib,{})}),(0,Y.jsx)(ky.Item,{name:`password`,label:`密码`,rules:[{required:!0,min:6}],children:(0,Y.jsx)(ib.Password,{})})]})}),(0,Y.jsx)(yx,{title:`重置密码 — ${d?.username}`,open:!!d,onCancel:()=>f(null),onOk:()=>p.submit(),destroyOnHidden:!0,children:(0,Y.jsx)(ky,{form:p,layout:`vertical`,onFinish:x,children:(0,Y.jsx)(ky.Item,{name:`password`,label:`新密码`,rules:[{required:!0,min:6}],children:(0,Y.jsx)(ib.Password,{})})})})]})}var Ak={weekly:`周考`,monthly:`月考`,final:`期末`},jk={pending:`处理中`,ocr_done:`已识别`,solved:`已生成解法`,failed:`失败`};function Mxe({studentId:e,subjects:t,exams:n,onRefresh:r}){let[i,a]=(0,h.useState)(!1),[o,s]=(0,h.useState)(null),[c]=ky.useForm(),[l,u]=(0,h.useState)(!1);(0,h.useEffect)(()=>{i&&o?c.setFieldsValue({exam_type:o.exam_type,exam_date:(0,xg.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}:{subject_id:e.id,total_score:void 0,obtained_score:void 0}})}):i&&c.setFieldsValue({exam_type:`weekly`,exam_date:(0,xg.default)(),scores:t.map(e=>({subject_id:e.id}))})},[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})).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)}));if(i.length===0){rx.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 mk.update(o.id,s),rx.success(`已更新`)):(await mk.create(e,s),rx.success(`已添加`)),a(!1),r()}catch{}finally{u(!1)}},m=async e=>{yx.confirm({title:`确认删除该考试记录?`,onOk:async()=>{await mk.remove(e.id),rx.success(`已删除`),r()}})};return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(_p,{type:`primary`,onClick:d,style:{marginBottom:16},children:`录入成绩`}),(0,Y.jsx)(OT,{rowKey:`id`,columns:[{title:`日期`,dataIndex:`exam_date`,key:`exam_date`,width:110},{title:`类型`,dataIndex:`exam_type`,key:`exam_type`,width:80,render:e=>Ak[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,Y.jsxs)(Py,{children:[(0,Y.jsx)(_p,{type:`link`,icon:(0,Y.jsx)(IT,{}),onClick:()=>f(t)}),(0,Y.jsx)(_p,{type:`link`,danger:!0,icon:(0,Y.jsx)(bE,{}),onClick:()=>m(t)})]})}],dataSource:n,pagination:{pageSize:10},scroll:{x:600}}),(0,Y.jsx)(yx,{title:o?`编辑考试`:`录入成绩`,open:i,onCancel:()=>a(!1),onOk:p,confirmLoading:l,width:720,destroyOnHidden:!0,children:(0,Y.jsxs)(ky,{form:c,layout:`vertical`,children:[(0,Y.jsxs)(Py,{style:{width:`100%`},size:`large`,children:[(0,Y.jsx)(ky.Item,{name:`exam_type`,label:`考试类型`,rules:[{required:!0}],children:(0,Y.jsx)(gS,{style:{width:120},options:Object.entries(Ak).map(([e,t])=>({value:e,label:t}))})}),(0,Y.jsx)(ky.Item,{name:`exam_date`,label:`考试日期`,rules:[{required:!0}],children:(0,Y.jsx)(Hv,{})}),(0,Y.jsx)(ky.Item,{name:`title`,label:`备注标题`,children:(0,Y.jsx)(ib,{placeholder:`可选`,style:{width:200}})})]}),(0,Y.jsx)(ky.List,{name:`scores`,children:e=>(0,Y.jsx)(OT,{size:`small`,pagination:!1,dataSource:e.map((e,n)=>({...e,subject:t[n]})),rowKey:`key`,columns:[{title:`科目`,render:(e,t)=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ky.Item,{name:[t.name,`subject_id`],hidden:!0,initialValue:t.subject?.id,children:(0,Y.jsx)(Tb,{})}),t.subject?.name]})},{title:`总分`,render:(e,t)=>(0,Y.jsx)(ky.Item,{name:[t.name,`total_score`],noStyle:!0,children:(0,Y.jsx)(Tb,{min:0,placeholder:`总分`,style:{width:100}})})},{title:`得分`,render:(e,t)=>(0,Y.jsx)(ky.Item,{name:[t.name,`obtained_score`],noStyle:!0,children:(0,Y.jsx)(Tb,{min:0,placeholder:`得分`,style:{width:100}})})},{title:`占比`,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)}%`:`-`}}]})})]})})]})}function Nxe({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,Y.jsx)(PT,{children:Ak[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,Y.jsxs)(`div`,{children:[i.length>0&&(0,Y.jsxs)(`div`,{style:{marginBottom:16,padding:12,background:`#fff7e6`,borderRadius:8},children:[(0,Y.jsx)(`strong`,{children:`波动预警:`}),i.slice(0,5).map(e=>(0,Y.jsxs)(PT,{color:`orange`,style:{marginTop:4},children:[e.exam_date,` `,Ak[e.exam_type]]},e.id))]}),(0,Y.jsx)(OT,{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 Mk=function(e,t){return Mk=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])},Mk(e,t)};function Nk(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Mk(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Pk=function(){return Pk=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},Pk.apply(this,arguments)};function Pxe(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 Fk(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 Ik(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 Lk=function(e,t){return Lk=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])},Lk(e,t)};function X(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Lk(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Fxe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Rk=new(function(){function e(){this.browser=new Fxe,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`?(Rk.wxa=!0,Rk.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?Rk.worker=!0:!Rk.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(Rk.node=!0,Rk.svgSupported=!0):Ixe(navigator.userAgent,Rk);function Ixe(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 Lxe=`12px sans-serif`,Rxe=20,zxe=100,Bxe=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function Vxe(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)-Rxe)/zxe}return t}var Hxe=Vxe(Bxe),zk={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=zk.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=Hxe[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 Bk(e){for(var t in zk)zk.hasOwnProperty(t)&&e[t]&&(zk[t]=e[t])}var Uxe=s({EPSILON:()=>Qxe,HashMap:()=>RA,RADIAN_TO_DEGREE:()=>GA,assert:()=>MA,assignProps:()=>tA,bind:()=>fA,clone:()=>Qk,concatArray:()=>BA,createCanvas:()=>Jxe,createHashMap:()=>zA,createObject:()=>VA,curry:()=>pA,defaults:()=>nA,disableUserSelect:()=>HA,each:()=>Q,eqNaN:()=>EA,extend:()=>Z,filter:()=>lA,find:()=>uA,guid:()=>Xk,hasOwn:()=>UA,indexOf:()=>rA,inherits:()=>iA,isArray:()=>mA,isArrayLike:()=>oA,isBuiltInObject:()=>bA,isDom:()=>SA,isFunction:()=>hA,isGradientObject:()=>CA,isImagePatternObject:()=>wA,isNumber:()=>vA,isObject:()=>yA,isPrimitive:()=>IA,isRegExp:()=>TA,isString:()=>gA,isStringSafe:()=>_A,isTypedArray:()=>xA,keys:()=>dA,logError:()=>Zk,map:()=>sA,merge:()=>$k,mergeAll:()=>eA,mixin:()=>aA,noop:()=>WA,normalizeCssArray:()=>jA,reduce:()=>cA,retrieve:()=>DA,retrieve2:()=>OA,retrieve3:()=>kA,setAsPrimitive:()=>FA,slice:()=>AA,trim:()=>NA}),Vk=cA([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),Hk=cA([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),Uk=Object.prototype.toString,Wk=Array.prototype,Wxe=Wk.forEach,Gxe=Wk.filter,Gk=Wk.slice,Kxe=Wk.map,Kk=function(){}.constructor,qk=Kk?Kk.prototype:null,Jk=`__proto__`,Yk=2311,qxe=2**53-1;function Xk(){return Yk>=qxe&&(Yk=0),Yk++}function Zk(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function Qk(e){if(typeof e!=`object`||!e)return e;var t=e,n=Uk.call(e);if(n===`[object Array]`){if(!IA(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=Qk(e[r])}}else if(Hk[n]){if(!IA(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(!Vk[n]&&!IA(e)&&!SA(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Jk&&(t[o]=Qk(e[o]));return t}function $k(e,t,n){if(!yA(t)||!yA(e))return n?Qk(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Jk){var i=e[r],a=t[r];yA(a)&&yA(i)&&!mA(a)&&!mA(i)&&!SA(a)&&!SA(i)&&!bA(a)&&!bA(i)&&!IA(a)&&!IA(i)?$k(i,a,n):(n||!(r in e))&&(e[r]=Qk(t[r]))}return e}function eA(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=$k(n,e[r],t);return n}function Z(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Jk&&(e[n]=t[n]);return e}function tA(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function nA(e,t,n){for(var r=dA(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 Jxe=zk.createCanvas;function rA(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 iA(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 aA(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 nA(e,t,n)}function oA(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function Q(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Wxe)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 sA(e,t,n){if(!e)return[];if(!t)return AA(e);if(e.map&&e.map===Kxe)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 cA(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 lA(e,t,n){if(!e)return[];if(!t)return AA(e);if(e.filter&&e.filter===Gxe)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 uA(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 dA(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 Yxe(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(Gk.call(arguments)))}}var fA=qk&&hA(qk.bind)?qk.call.bind(qk.bind):Yxe;function pA(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(Gk.call(arguments)))}}function mA(e){return Array.isArray?Array.isArray(e):Uk.call(e)===`[object Array]`}function hA(e){return typeof e==`function`}function gA(e){return typeof e==`string`}function _A(e){return Uk.call(e)===`[object String]`}function vA(e){return typeof e==`number`}function yA(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function bA(e){return!!Vk[Uk.call(e)]}function xA(e){return!!Hk[Uk.call(e)]}function SA(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function CA(e){return e.colorStops!=null}function wA(e){return e.image!=null}function TA(e){return Uk.call(e)===`[object RegExp]`}function EA(e){return e!==e}function DA(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function OA(e,t){return e??t}function kA(e,t,n){return e??t??n}function AA(e){var t=[...arguments].slice(1);return Gk.apply(e,t)}function jA(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 MA(e,t){if(!e)throw Error(t)}function NA(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var PA=`__ec_primitive__`;function FA(e){e[PA]=!0}function IA(e){return e[PA]}var Xxe=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 dA(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),LA=typeof Map==`function`;function Zxe(){return LA?new Map:new Xxe}var RA=function(){function e(t){var n=mA(t);this.data=Zxe();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 LA?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function zA(e){return new RA(e)}function BA(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 VA(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Z(n,t),n}function HA(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function UA(e,t){return e.hasOwnProperty(t)}function WA(){}var GA=180/Math.PI,Qxe=2**-52||2**-52,KA=function(e,t){return KA=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])},KA(e,t)};function qA(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);KA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var $xe=s({add:()=>QA,applyTransform:()=>uj,clone:()=>XA,copy:()=>YA,create:()=>JA,dist:()=>oj,distSquare:()=>cj,distance:()=>aj,distanceSquare:()=>sj,div:()=>rSe,dot:()=>iSe,len:()=>tj,lenSquare:()=>nj,length:()=>eSe,lengthSquare:()=>tSe,lerp:()=>lj,max:()=>fj,min:()=>dj,mul:()=>nSe,negate:()=>aSe,normalize:()=>ij,scale:()=>rj,scaleAndAdd:()=>$A,set:()=>ZA,sub:()=>ej});function JA(e,t){return e??=0,t??=0,[e,t]}function YA(e,t){return e[0]=t[0],e[1]=t[1],e}function XA(e){return[e[0],e[1]]}function ZA(e,t,n){return e[0]=t,e[1]=n,e}function QA(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function $A(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function ej(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function tj(e){return Math.sqrt(nj(e))}var eSe=tj;function nj(e){return e[0]*e[0]+e[1]*e[1]}var tSe=nj;function nSe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function rSe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function iSe(e,t){return e[0]*t[0]+e[1]*t[1]}function rj(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function ij(e,t){var n=tj(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function aj(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var oj=aj;function sj(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var cj=sj;function aSe(e,t){return e[0]=-t[0],e[1]=-t[1],e}function lj(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 uj(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 dj(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function fj(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var pj=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),oSe=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 pj(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 pj(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 pj(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new pj(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new pj(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new pj(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),mj=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}(),sSe=Math.log(2);function hj(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)/sSe);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]*hj(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function gj(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=hj(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)*hj(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 _j=`___zrEVENTSAVED`,vj=[];function cSe(e,t,n,r,i){return yj(vj,t,r,i,!0)&&yj(e,n,vj[0],vj[1])}function lSe(e,t){e&&n(e),t&&n(t);function n(e){var t=e[_j];t&&(t.clearMarkers&&t.clearMarkers(),delete e[_j])}}function yj(e,t,n,r,i){if(t.getBoundingClientRect&&Rk.domSupported&&!bj(t)){var a=t[_j]||(t[_j]={}),o=dSe(uSe(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function uSe(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 dSe(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?gj(s,o):gj(o,s))}function bj(e){return e.nodeName.toUpperCase()===`CANVAS`}var fSe=/([&<>"'])/g,pSe={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function xj(e){return e==null?``:(e+``).replace(fSe,function(e,t){return pSe[t]})}var mSe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Sj=[],hSe=Rk.browser.firefox&&+Rk.browser.version.split(`.`)[0]<39;function Cj(e,t,n,r){return n||={},r?wj(e,t,n):hSe&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?wj(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function wj(e,t,n){if(Rk.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(bj(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(yj(Sj,e,r,i)){n.zrX=Sj[0],n.zrY=Sj[1];return}}n.zrX=n.zrY=0}function Tj(e){return e||window.event}function Ej(e,t,n){if(t=Tj(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&&Cj(e,i,t,n)}else{Cj(e,t,t,n);var a=gSe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&mSe.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function gSe(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 Dj(e,t,n,r){e.addEventListener(t,n,r)}function _Se(e,t,n,r){e.removeEventListener(t,n,r)}var Oj=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function kj(e){return e.which===2||e.which===3}var vSe=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=Cj(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 jj)if(jj.hasOwnProperty(t)){var n=jj[t](this._track,e);if(n)return n}},e}();function Aj(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function ySe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var jj={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=Aj(r)/Aj(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=ySe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},bSe=s({clone:()=>Bj,copy:()=>Pj,create:()=>Mj,identity:()=>Nj,invert:()=>zj,mul:()=>Fj,rotate:()=>Lj,scale:()=>Rj,translate:()=>Ij});function Mj(){return[1,0,0,1,0,0]}function Nj(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Pj(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 Fj(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 Ij(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 Lj(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 Rj(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 zj(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 Bj(e){var t=Mj();return Pj(t,e),t}var Vj=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}(),Hj=Math.min,Uj=Math.max,Wj=Math.abs,Gj=[`x`,`y`],xSe=[`width`,`height`],Kj=new Vj,qj=new Vj,Jj=new Vj,Yj=new Vj,Xj=cM(),Zj=Xj.minTv,Qj=Xj.maxTv,$j=[0,0],eM=function(){function e(e,t,n,r){nM(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=Hj(e.x,this.x),n=Hj(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Uj(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Uj(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 iM(Mj(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Vj.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=nM(CSe,t.x,t.y,t.width,t.height)),n instanceof e||(n=nM(wSe,n.x,n.y,n.width,n.height));var s=!!r;Xj.reset(i,s);var c=Xj.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)&&($j[0]=1/0,$j[1]=0,sM(l,u,p,m,0,s,a,o),sM(d,f,h,g,1,s,a,o),s&&Vj.copy(r,_?Xj.useDir?Xj.dirMinTv:Zj:Qj)),_},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){rM(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&&rM(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}Kj.x=Jj.x=t.x,Kj.y=Yj.y=t.y,qj.x=Yj.x=t.x+t.width,qj.y=Jj.y=t.y+t.height,Kj.transform(n),Yj.transform(n),qj.transform(n),Jj.transform(n),e.x=Hj(Kj.x,qj.x,Jj.x,Yj.x),e.y=Hj(Kj.y,qj.y,Jj.y,Yj.y);var s=Uj(Kj.x,qj.x,Jj.x,Yj.x),c=Uj(Kj.y,qj.y,Jj.y,Yj.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=Nj(e||[]),Ij(e,e,ZA(oM,-t.x,-t.y)),Rj(e,e,ZA(oM,r,i)),Ij(e,e,ZA(oM,n.x,n.y)),e},e}(),tM=eM.create,nM=eM.set,rM=eM.copy,iM=eM.calculateTransform,aM=eM.applyTransform,SSe=eM.contain,CSe=new eM(0,0,0,0),wSe=new eM(0,0,0,0),oM=[];function sM(e,t,n,r,i,a,o,s){var c=Wj(t-n),l=Wj(r-e),u=Hj(c,l),d=Gj[i],f=Gj[1-i],p=xSe[i];t<n||r<e?c<l?(a&&(Qj[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Qj[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=Uj(e,n),o[p]=Hj(t,r)-o[d]),a&&(u<$j[0]||Xj.useDir)&&($j[0]=Hj(u,$j[0]),(c<l||!Xj.bidirectional)&&(Zj[d]=c,Zj[f]=0,Xj.useDir&&Xj.calcDirMTV()),(c>=l||!Xj.bidirectional)&&(Zj[d]=-l,Zj[f]=0,Xj.useDir&&Xj.calcDirMTV())))}function cM(){var e=0,t=new Vj,n=new Vj,r={minTv:new Vj,maxTv:new Vj,useDir:!1,dirMinTv:new Vj,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Uj(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 Wj(e)<1e-10}return r}var lM=`silent`;function TSe(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:ESe}}function ESe(){Oj(this.event)}var DSe=function(e){qA(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}(mj),uM=function(){function e(e,t){this.x=e,this.y=t}return e}(),OSe=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],dM=new eM(0,0,0,0),fM=function(e){qA(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new uM(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new DSe,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new oSe(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Q(OSe,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=mM(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 uM(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 uM(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=TSe(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 uM(e,t);if(pM(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new eM(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)&&(dM.copy(u.getBoundingRect()),u.transform&&dM.applyTransform(u.transform),dM.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(pM(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 vSe;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 uM;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(mj);Q([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){fM.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=mM(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||oj(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function kSe(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?lM:!0}return!1}function pM(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=kSe(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==lM)){t.target=o;break}}}function mM(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var hM=32,gM=7;function ASe(e){for(var t=0;e>=hM;)t|=e&1,e>>=1;return e+t}function _M(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++;jSe(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function jSe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function vM(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 yM(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 bM(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 MSe(e,t){var n=gM,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=bM(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=yM(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=bM(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=yM(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>=gM||m>=gM);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-bM(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-yM(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>=gM||g>=gM);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 xM(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<hM){a=_M(e,n,r,t),vM(e,n,r,n+a,t);return}var o=MSe(e,t),s=ASe(i);do{if(a=_M(e,n,r,t),a<s){var c=i;c>s&&(c=s),vM(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 SM=!1;function CM(){SM||(SM=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function wM(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var NSe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wM}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,xM(n,wM)},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)&&(CM(),p.z=0),isNaN(p.z2)&&(CM(),p.z2=0),isNaN(p.zlevel)&&(CM(),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=rA(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}(),TM=Rk.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},EM={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-EM.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?EM.bounceIn(e*2)*.5:EM.bounceOut(e*2-1)*.5+.5}},DM=Math.pow,OM=Math.sqrt,kM=1e-8,AM=1e-4,jM=OM(3),MM=1/3,NM=JA(),PM=JA(),FM=JA();function IM(e){return e>-kM&&e<kM}function LM(e){return e>kM||e<-kM}function RM(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 zM(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function BM(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(IM(u)&&IM(d))if(IM(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(IM(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=OM(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-DM(-y,MM):DM(y,MM),b=b<0?-DM(-b,MM):DM(b,MM);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*OM(u*u*u)),S=Math.acos(x)/3,C=OM(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+jM*Math.sin(S)))/(3*o),T=(-s+C*(w-jM*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 VM(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(IM(o)){if(LM(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(IM(u))i[0]=-a/(2*o);else if(u>0){var d=OM(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 HM(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 UM(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;NM[0]=c,NM[1]=l;for(var v=0;v<1;v+=.05)PM[0]=RM(e,n,i,o,v),PM[1]=RM(t,r,a,s,v),g=cj(NM,PM),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<AM);y++)m=d-f,h=d+f,PM[0]=RM(e,n,i,o,m),PM[1]=RM(t,r,a,s,m),g=cj(PM,NM),m>=0&&g<p?(d=m,p=g):(FM[0]=RM(e,n,i,o,h),FM[1]=RM(t,r,a,s,h),_=cj(FM,NM),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=RM(e,n,i,o,d),u[1]=RM(t,r,a,s,d)),OM(p)}function PSe(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=RM(e,n,i,o,m),g=RM(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function WM(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function GM(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function FSe(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(IM(a)){if(LM(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(IM(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=OM(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 KM(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function qM(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 JM(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;NM[0]=o,NM[1]=s;for(var f=0;f<1;f+=.05){PM[0]=WM(e,n,i,f),PM[1]=WM(t,r,a,f);var p=cj(NM,PM);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<AM);m++){var h=l-u,g=l+u;PM[0]=WM(e,n,i,h),PM[1]=WM(t,r,a,h);var p=cj(PM,NM);if(h>=0&&p<d)l=h,d=p;else{FM[0]=WM(e,n,i,g),FM[1]=WM(t,r,a,g);var _=cj(FM,NM);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=WM(e,n,i,l),c[1]=WM(t,r,a,l)),OM(d)}function ISe(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=WM(e,n,i,f),m=WM(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var LSe=/cubic-bezier\(([0-9,\.e ]+)\)/;function YM(e){var t=e&&LSe.exec(e);if(t){var n=t[1].split(`,`),r=+NA(n[0]),i=+NA(n[1]),a=+NA(n[2]),o=+NA(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:BM(0,r,a,1,e,s)&&RM(0,i,o,1,s[0])}}}var RSe=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||WA,this.ondestroy=e.ondestroy||WA,this.onrestart=e.onrestart||WA,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=hA(e)?e:EM[e]||YM(e)},e}(),XM=function(){function e(e){this.value=e}return e}(),zSe=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new XM(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}(),ZM=function(){function e(e){this._list=new zSe,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 XM(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}(),BSe=s({fastLerp:()=>pN,fastMapToColor:()=>WSe,lerp:()=>mN,lift:()=>fN,liftColor:()=>bN,lum:()=>vN,mapToColor:()=>GSe,modifyAlpha:()=>gN,modifyHSL:()=>hN,parse:()=>uN,parseCssFloat:()=>nN,parseCssInt:()=>tN,random:()=>KSe,stringify:()=>_N,toHex:()=>USe}),QM={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 $M(e){return e=Math.round(e),e<0?0:e>255?255:e}function VSe(e){return e=Math.round(e),e<0?0:e>360?360:e}function eN(e){return e<0?0:e>1?1:e}function tN(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?$M(parseFloat(t)/100*255):$M(parseInt(t,10))}function nN(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?eN(parseFloat(t)/100):eN(parseFloat(t))}function rN(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 iN(e,t,n){return e+(t-e)*n}function aN(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function oN(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var sN=new ZM(20),cN=null;function lN(e,t){cN&&oN(cN,t),cN=sN.put(e,cN||t.slice())}function uN(e,t){if(e){t||=[];var n=sN.get(e);if(n)return oN(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in QM)return oN(t,QM[r]),lN(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)){aN(t,0,0,0,1);return}return aN(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),lN(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){aN(t,0,0,0,1);return}return aN(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),lN(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?aN(t,+l[0],+l[1],+l[2],1):aN(t,0,0,0,1);u=nN(l.pop());case`rgb`:if(l.length>=3)return aN(t,tN(l[0]),tN(l[1]),tN(l[2]),l.length===3?u:nN(l[3])),lN(e,t),t;aN(t,0,0,0,1);return;case`hsla`:if(l.length!==4){aN(t,0,0,0,1);return}return l[3]=nN(l[3]),dN(l,t),lN(e,t),t;case`hsl`:if(l.length!==3){aN(t,0,0,0,1);return}return dN(l,t),lN(e,t),t;default:return}}aN(t,0,0,0,1)}}function dN(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=nN(e[1]),i=nN(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],aN(t,$M(rN(o,a,n+1/3)*255),$M(rN(o,a,n)*255),$M(rN(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function HSe(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 fN(e,t){var n=uN(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 _N(n,n.length===4?`rgba`:`rgb`)}}function USe(e){var t=uN(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function pN(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]=$M(iN(o[0],s[0],c)),n[1]=$M(iN(o[1],s[1],c)),n[2]=$M(iN(o[2],s[2],c)),n[3]=eN(iN(o[3],s[3],c)),n}}var WSe=pN;function mN(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=uN(t[i]),s=uN(t[a]),c=r-i,l=_N([$M(iN(o[0],s[0],c)),$M(iN(o[1],s[1],c)),$M(iN(o[2],s[2],c)),eN(iN(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var GSe=mN;function hN(e,t,n,r){var i=uN(e);if(e)return i=HSe(i),t!=null&&(i[0]=VSe(hA(t)?t(i[0]):t)),n!=null&&(i[1]=nN(hA(n)?n(i[1]):n)),r!=null&&(i[2]=nN(hA(r)?r(i[2]):r)),_N(dN(i),`rgba`)}function gN(e,t){var n=uN(e);if(n&&t!=null)return n[3]=eN(t),_N(n,`rgba`)}function _N(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 vN(e,t){var n=uN(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function KSe(){return _N([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var yN=new ZM(100);function bN(e){if(gA(e)){var t=yN.get(e);return t||(t=fN(e,-.1),yN.put(e,t)),t}else if(CA(e)){var n=Z({},e);return n.colorStops=sA(e.colorStops,function(e){return{offset:e.offset,color:fN(e.color,-.1)}}),n}return e}var xN=Math.round;function SN(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=uN(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var CN=1e-4;function wN(e){return e<CN&&e>-CN}function TN(e){return xN(e*1e3)/1e3}function EN(e){return xN(e*1e4)/1e4}function qSe(e){return`matrix(`+TN(e[0])+`,`+TN(e[1])+`,`+TN(e[2])+`,`+TN(e[3])+`,`+EN(e[4])+`,`+EN(e[5])+`)`}var JSe={left:`start`,right:`end`,center:`middle`,middle:`middle`};function YSe(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function XSe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function ZSe(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 DN(e){return e&&!!e.image}function QSe(e){return e&&!!e.svgElement}function ON(e){return DN(e)||QSe(e)}function kN(e){return e.type===`linear`}function AN(e){return e.type===`radial`}function jN(e){return e&&(e.type===`linear`||e.type===`radial`)}function MN(e){return`url(#`+e+`)`}function NN(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 PN(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*GA,i=OA(e.scaleX,1),a=OA(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(`+xN(o*GA)+`deg, `+xN(s*GA)+`deg)`),c.join(` `)}var $Se=(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}})(),FN=Array.prototype.slice;function IN(e,t,n){return(t-e)*n+e}function LN(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=IN(t[a],n[a],r);return e}function eCe(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]=IN(t[o][s],n[o][s],r)}return e}function RN(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function zN(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 tCe(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 nCe(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]:FN.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 BN(e){if(oA(e)){var t=e.length;if(oA(e[0])){for(var n=[],r=0;r<t;r++)n.push(FN.call(e[r]));return n}return FN.call(e)}return e}function VN(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 rCe(e){return oA(e&&e[0])?2:1}var HN=0,UN=1,WN=2,GN=3,KN=4,qN=5,JN=6;function YN(e){return e===KN||e===qN}function XN(e){return e===UN||e===WN}var ZN=[0,0,0,0],iCe=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=JN,s=t;if(oA(t)){var c=rCe(t);o=c,(c===1&&!vA(t[0])||c===2&&!vA(t[0][0]))&&(a=!0)}else if(vA(t)&&!EA(t))o=HN;else if(gA(t))if(!isNaN(+t))o=HN;else{var l=uN(t);l&&(s=l,o=GN)}else if(CA(t)){var u=Z({},s);u.colorStops=sA(t.colorStops,function(e){return{offset:e.offset,color:uN(e.color)}}),kN(t)?o=KN:AN(t)&&(o=qN),s=u}i===0?this.valType=o:(o!==this.valType||o===JN)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=hA(n)?n:EM[n]||YM(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=XN(r),c=YN(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?nCe(d,f,r):c&&tCe(d.colorStops,f.colorStops))}if(!o&&r!==qN&&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===HN?n[l].additiveValue=n[l].value-p:r===GN?n[l].additiveValue=RN([],n[l].value,p,-1):XN(r)&&(n[l].additiveValue=r===UN?RN([],n[l].value,p,-1):zN([],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===GN,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?ZN:e[s];if((XN(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(XN(i))i===UN?LN(g,f[r],p[r],h):eCe(g,f[r],p[r],h);else if(YN(i)){var _=f[r],v=p[r],y=i===KN;e[s]={type:y?`linear`:`radial`,x:IN(_.x,v.x,h),y:IN(_.y,v.y,h),colorStops:sA(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:IN(e.offset,n.offset,h),color:VN(LN([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=IN(_.x2,v.x2,h),e[s].y2=IN(_.y2,v.y2,h)):e[s].r=IN(_.r,v.r,h)}else if(c)LN(g,f[r],p[r],h),n||(e[s]=VN(g));else{var b=IN(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===HN?e[n]=e[n]+r:t===GN?(uN(e[n],ZN),RN(ZN,ZN,r,1),e[n]=VN(ZN)):t===UN?RN(e[n],e[n],r,1):t===WN&&zN(e[n],e[n],r,1)},e}(),QN=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){Zk(`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,dA(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 iCe(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===GN&&c&&(c=VN(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,BN(c),r),this._trackKeys.push(o)}s.addKeyframe(e,BN(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 RSe({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 sA(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]=BN(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=dA(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 $N(){return new Date().getTime()}var aCe=function(e){qA(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=$N()-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&&(TM(t),!e._paused&&e.update())}TM(t)},t.prototype.start=function(){this._running||(this._time=$N(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=$N(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=$N()-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 QN(e,t.loop);return this.addAnimator(n),n},t}(mj),oCe=300,eP=Rk.domSupported,tP=(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:sA(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),nP={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},rP=!1;function iP(e){var t=e.pointerType;return t===`pen`||t===`touch`}function sCe(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 aP(e){e&&(e.zrByTouch=!0)}function cCe(e,t){return Ej(e.dom,new lCe(e,t),!0)}function oP(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 lCe=function(){function e(e,t){this.stopPropagation=WA,this.stopImmediatePropagation=WA,this.preventDefault=WA,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),sP={mousedown:function(e){e=Ej(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Ej(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=Ej(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Ej(this.dom,e);var t=e.toElement||e.relatedTarget;oP(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){rP=!0,e=Ej(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){rP||(e=Ej(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Ej(this.dom,e),aP(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),sP.mousemove.call(this,e),sP.mousedown.call(this,e)},touchmove:function(e){e=Ej(this.dom,e),aP(e),this.handler.processGesture(e,`change`),sP.mousemove.call(this,e)},touchend:function(e){e=Ej(this.dom,e),aP(e),this.handler.processGesture(e,`end`),sP.mouseup.call(this,e),new Date-+this.__lastTouchMoment<oCe&&sP.click.call(this,e)},pointerdown:function(e){sP.mousedown.call(this,e)},pointermove:function(e){iP(e)||sP.mousemove.call(this,e)},pointerup:function(e){sP.mouseup.call(this,e)},pointerout:function(e){iP(e)||sP.mouseout.call(this,e)}};Q([`click`,`dblclick`,`contextmenu`],function(e){sP[e]=function(t){t=Ej(this.dom,t),this.trigger(e,t)}});var cP={pointermove:function(e){iP(e)||cP.mousemove.call(this,e)},pointerup:function(e){cP.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 uCe(e,t){var n=t.domHandlers;Rk.pointerEventsSupported?Q(tP.pointer,function(r){lP(t,r,function(t){n[r].call(e,t)})}):(Rk.touchEventsSupported&&Q(tP.touch,function(r){lP(t,r,function(i){n[r].call(e,i),sCe(t)})}),Q(tP.mouse,function(r){lP(t,r,function(i){i=Tj(i),t.touching||n[r].call(e,i)})}))}function dCe(e,t){Rk.pointerEventsSupported?Q(nP.pointer,n):Rk.touchEventsSupported||Q(nP.mouse,n);function n(n){function r(r){r=Tj(r),oP(e,r.target)||(r=cCe(e,r),t.domHandlers[n].call(e,r))}lP(t,n,r,{capture:!0})}}function lP(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Dj(e.domTarget,t,n,r)}function uP(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&_Se(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var dP=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),fCe=function(e){qA(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 dP(t,sP),eP&&(r._globalHandlerScope=new dP(document,cP)),uCe(r,r._localHandlerScope),r}return t.prototype.dispose=function(){uP(this._localHandlerScope),eP&&uP(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,eP&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?dCe(this,t):uP(t)}},t}(mj),fP=1;Rk.hasGlobalWindow&&(fP=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var pP=fP,mP=.4,hP=`#333`,gP=`#ccc`,pCe=`#eee`,_P=Nj,vP=5e-5;function yP(e){return e>vP||e<-vP}var bP=[],xP=[],SP=Mj(),CP=Math.abs,wP=function(){function e(){}return e.prototype.getLocalTransform=function(e){return TP(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 yP(this.rotation)||yP(this.x)||yP(this.y)||yP(this.scaleX-1)||yP(this.scaleY-1)||yP(this.skewX)||yP(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(_P(n),this.invTransform=null);return}n||=Mj(),t?this.getLocalTransform(n):_P(n),e&&(t?Fj(n,e,n):Pj(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Mj(),zj(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(bP);var n=bP[0]<0?-1:1,r=bP[1]<0?-1:1,i=((bP[0]-n)*t+n)/bP[0]||0,a=((bP[1]-r)*t+r)/bP[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||Mj(),Fj(xP,e.invTransform,t),t=xP);var n=this.originX,r=this.originY;(n||r)&&(SP[4]=n,SP[5]=r,Fj(xP,t,SP),xP[4]-=n,xP[5]-=r,t=xP),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&&uj(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&uj(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&CP(e[0]-1)>1e-10&&CP(e[3]-1)>1e-10?Math.sqrt(CP(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){OP(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&&Lj(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}(),TP=wP.getLocalTransform;function EP(){return new wP}var DP=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function OP(e,t){return tA(e,t,DP)}function kP(e){AP||=new ZM(100),e||=`12px sans-serif`;var t=AP.get(e);return t||(t={font:e,strWidthCache:new ZM(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:zk.measureText(`国`,e).width,asciiCharWidth:zk.measureText(`a`,e).width},AP.put(e,t)),t}var AP;function mCe(e){if(!(jP>=MP)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=zk.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?jP=MP:i>2&&jP++,t}}var jP=0,MP=5;function NP(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=mCe(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function PP(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=zk.measureText(t,e.font).width,n.put(t,r)),r}function FP(e,t,n,r){var i=PP(kP(t),e),a=zP(t);return new eM(LP(0,i,n),RP(0,a,r),i,a)}function IP(e,t,n,r){var i=((e||``)+``).split(`
`);if(i.length===1)return FP(i[0],t,n,r);for(var a=new eM(0,0,0,0),o=0;o<i.length;o++){var s=FP(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function LP(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function RP(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function zP(e){return kP(e).stWideCharWidth}function BP(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function VP(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+=BP(r[0],n.width),l+=BP(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 hCe=`__zr_normal__`,HP=DP.concat([`ignore`]),gCe=cA(DP,function(e,t){return e[t]=!0,e},{ignore:!1}),UP={},_Ce=new eM(0,0,0,0),WP=[],GP=function(){function e(e){this.id=Xk(),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=_Ce,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(UP,n,d):VP(UP,n,d),i.x=UP.x,i.y=UP.y,a=UP.align,o=UP.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=BP(f[0],d.width),m=BP(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 eM(0,0,0,0);i.getLocalTransform(WP),zj(WP,WP),eM.copy(_,d),_.applyTransform(WP)}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()?gP:hP},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&uN(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,_N(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||{},Z(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(yA(e))for(var n=dA(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,HP)},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(hCe,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===hCe;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(rA(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){Zk(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=YP(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,ZP(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=YP(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,ZP(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=rA(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=rA(r,e),a=rA(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];Z(t,i),i.textConfig&&(n||={},Z(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=Z({},r?this.textConfig:n.textConfig),Z(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<HP.length;l++){var u=HP[l],d=i&&gCe[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 wP,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},Z(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 QN(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=rA(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){KP(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){KP(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=KP(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}();aA(GP,mj),aA(GP,wP);function KP(e,t,n,r,i){n||={};var a=[];JP(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 qP(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function vCe(e){return oA(e[0])}function yCe(e,t,n){if(oA(t[n]))if(oA(e[n])||(e[n]=[]),xA(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),qP(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(vCe(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?qP(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else qP(a,i,o);a.length=i.length}else e[n]=t[n]}function bCe(e,t){return e===t||oA(e)&&oA(t)&&xCe(e,t)}function xCe(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 JP(e,t,n,r,i,a,o,s){for(var c=dA(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!yA(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(yA(v)&&!oA(v)&&!CA(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}JP(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=rA(m,x);m.splice(S,1)}}if(i.force||(h=lA(h,function(e){return!bCe(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[_]=BN(n[_]),yCe(n,r,_)}}var x=new QN(n,!1,!1,d?lA(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 YP(e,t,n,r){return!(n&&n.hoverLayer||r)||XP(e)||t&&XP(t)?0:1}function XP(e){return e.type===`text`||e.type===`tspan`}function ZP(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var QP=function(e){qA(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=rA(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=rA(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 eM(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?(eM.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(GP);QP.prototype.type=`group`;var SCe=s({dispose:()=>ECe,disposeAll:()=>DCe,getElementSSRData:()=>iF,getInstance:()=>OCe,init:()=>tF,registerPainter:()=>nF,registerSSRDataGetter:()=>aF,version:()=>kCe}),$P={},eF={};function CCe(e){delete eF[e]}function wCe(e){if(!e)return!1;if(typeof e==`string`)return vN(e,1)<mP;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=vN(t[i].color,1);return n/=r,n<mP}return!1}var TCe=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 NSe,a=n.renderer||`canvas`;$P[a]||(a=dA($P)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new $P[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!Rk.node&&!Rk.worker&&!s?new fCe(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?Rk.touchEventsSupported:!!l,d=44,f;u&&(f=OA(n.pointerSize,d)),this.handler=new fM(i,o,c,o.root,f),this.animation=new aCe({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=wCe(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=$N(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=$N();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 QP&&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,CCe(this.id))},e}();function tF(e,t){var n=new TCe(Xk(),e,t);return eF[n.id]=n,n}function ECe(e){e.dispose()}function DCe(){for(var e in eF)eF.hasOwnProperty(e)&&eF[e].dispose();eF={}}function OCe(e){return eF[e]}function nF(e,t){$P[e]=t}var rF;function iF(e){if(typeof rF==`function`)return rF(e)}function aF(e){rF=e}var kCe=`6.1.0`,oF=1e-4,sF=20;function ACe(e){return e.replace(/^\s+|\s+$/g,``)}var cF=Math.min,lF=Math.max,uF=Math.abs,dF=Math.round,fF=Math.floor,pF=Math.ceil,mF=Math.pow,hF=Math.log,gF=Math.LN10,_F=Math.PI,jCe=Math.random;function vF(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 yF=MCe;function MCe(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 bF(e,t,n)}function bF(e,t,n){return gA(e)?xF(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function NCe(e){return gA(e)&&xF(e)}function xF(e){return!!ACe(e).match(/%$/)}function SF(e,t,n){return isNaN(t)?n?``+e:+e:(t=cF(lF(0,t),sF),e=(+e).toFixed(t),n?e:+e)}function PCe(e,t,n){return t??=10,SF(e,t,n)}function CF(e){return e.sort(function(e,t){return e-t}),e}function wF(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(dF(e*t)/t===e)return n}return TF(e)}function TF(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 lF(0,(a<0?0:i-1-a)-r)}function FCe(e,t){var n=fF(hF(e[1]-e[0])/gF),r=dF(hF(uF(t[1]-t[0]))/gF),i=cF(lF(-n+r,0),sF);return isFinite(i)?i:sF}function EF(e,t,n){var r=uF(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=hF(2*uF(n||1)*uF(r))/gF,a=hF(uF(t))/gF,o=lF(0,pF(-i+a));return isFinite(o)||(o=NaN),o}function ICe(e,t,n){return e[t]&&DF(e,n)[t]||0}function DF(e,t){var n=cA(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=mF(10,t),i=sA(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=sA(i,function(e){return fF(e)}),s=cA(o,function(e,t){return e+t},0),c=sA(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 sA(o,function(e){return e/r})}function OF(e,t){var n=lF(wF(e),wF(t)),r=e+t;return n>sF?r:SF(r,n)}var kF=mF(2,53)-1;function AF(e){var t=_F*2;return(e%t+t)%t}function jF(e){return e>-oF&&e<oF}var LCe=/^(?:(\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 MF(e){if(e instanceof Date)return e;if(gA(e)){var t=LCe.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(dF(e))}function NF(e){return mF(10,PF(e))}function PF(e){if(e===0)return 0;var t=fF(hF(e)/gF);return e/mF(10,t)>=10&&t++,t}function FF(e,t){var n=PF(e),r=mF(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,SF(e,-n)}function IF(e,t){var n=(e.length-1)*t+1,r=fF(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function LF(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 RF(e){var t=parseFloat(e);return t==e&&(t!==0||!gA(e)||e.indexOf(`x`)<=0)?t:NaN}function zF(e){return!isNaN(RF(e))}function BF(){return dF(jCe()*9)}function VF(e,t){return t===0?e:VF(t,e%t)}function HF(e,t){return e==null?t:t==null?e:e*t/VF(e,t)}function UF(e){return e!=null&&isFinite(e)}var RCe=`[ECharts] `,WF={},zCe=typeof console<`u`&&console.warn&&console.log;function BCe(e,t,n){if(zCe){if(n){if(WF[t])return;WF[t]=!0}console[e](RCe+t)}}function VCe(e,t){BCe(`error`,e,t)}function GF(e){throw Error(e)}function HCe(e,t,n){return(t-e)*n+e}var UCe=`series\0`,WCe=`\0_ec_\0`;function KF(e){return e instanceof Array?e:e==null?[]:[e]}function qF(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 GCe=`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 JF(e){return yA(e)&&!mA(e)&&!(e instanceof Date)?e.value:e}function KCe(e){return yA(e)&&!(e instanceof Array)}function qCe(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=zA();Q(t,function(e,n){if(!yA(e)){t[n]=null;return}});var s=JCe(e,o,n);return(r||i)&&YCe(s,e,o,t),r&&XCe(s,t),r||i?ZCe(s,t,i):a&&QCe(s,t),$Ce(s),s}function JCe(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`||QF(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function YCe(e,t,n,r){Q(r,function(i,a){if(!(!i||i.id==null)){var o=YF(i.id),s=n.get(o);if(s!=null){var c=e[s];MA(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function XCe(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)&&!QF(n)&&!QF(a)&&ewe(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function ZCe(e,t,n){Q(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||QF(r.existing)||r.existing&&t.id!=null&&!ewe(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function QCe(e,t){Q(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function $Ce(e){var t=zA();Q(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),Q(e,function(e){var n=e.newOption;MA(!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(yA(i)){if(a.name=i.name==null?r?r.name:UCe+n:YF(i.name),r)a.id=YF(r.id);else if(i.id!=null)a.id=YF(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 ewe(e,t,n){var r=XF(t[e],null),i=XF(n[e],null);return r!=null&&i!=null&&r===i}function YF(e){return XF(e,``)}function XF(e,t){return e==null?t:gA(e)?e:vA(e)||_A(e)?e+``:t}function ZF(e){var t=e.name;return!!(t&&t.indexOf(UCe))}function QF(e){return e&&e.id!=null&&YF(e.id).indexOf(WCe)===0}function twe(e){return WCe+e}function nwe(e,t,n){Q(e,function(e){var r=e.newOption;yA(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=XF(e[r].seriesId,null);if(a==null)return;for(var o=KF(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 $F(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return mA(t.dataIndex)?sA(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return mA(t.name)?sA(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function eI(){var e=`__ec_inner_`+awe++;return function(t){return t[e]||(t[e]={})}}var awe=BF();function tI(e,t,n){var r=nI(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=iI(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 nI(e,t){var n;if(gA(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=zA(),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&&rA(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var rI={useDefault:!0,enableAll:!1,enableNone:!1},owe={useDefault:!1,enableAll:!0,enableNone:!0};function iI(e,t,n,r){r||=rI;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 aI(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 swe(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function cwe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function lwe(e){return e===`auto`?Rk.domSupported?`html`:`richText`:e||`html`}function oI(e,t){var n=zA(),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 uwe(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(vA(r)){var o=HCe(n||0,r,i);return SF(o,a?Math.max(wF(n||0),wF(r)):t)}else if(gA(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=HCe(p,m,i);s[d]=SF(o,a?Math.max(wF(p),wF(m)):t)}}return s}}var sI=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 cI(e){e.option=e.parentModel=e.ecModel=null}function lI(){return[1/0,-1/0]}function uI(e,t){dI(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function dwe(e,t){dI(t)&&t<e[0]&&(e[0]=t)}function fwe(e,t){dI(t)&&t>e[1]&&(e[1]=t)}function pwe(e,t){fI(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function dI(e){return e!=null&&isFinite(e)}function fI(e,t){return dI(e)&&dI(t)&&e<=t}function mwe(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function pI(e){fI(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function mI(){var e=`__ec_once_`+hwe++;return function(t,n){UA(t,e)||(t[e]=1,n())}}var hwe=BF();function hI(e,t,n){var r=zA(),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 gwe(e){return e.value+``}function _we(e){return e+``}function gI(e,t){return OA(t,!0)?e.seriesIndex+2:0}function vwe(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 _I(e,t){return{seriesType:e,overallReset:t}}function vI(e){return{overallReset:e}}var ywe=`.`,yI=`___EC__COMPONENT__CONTAINER___`,bwe=`___EC__EXTENDED_CLASS___`;function bI(e){var t={main:``,sub:``};if(e){var n=e.split(ywe);t.main=n[0]||``,t.sub=n[1]||``}return t}function xwe(e){MA(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Swe(e){return!!(e&&e[bwe])}function xI(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Cwe(t)?n=function(e){X(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},iA(n,this)),Z(n.prototype,e),n[bwe]=!0,n.extend=this.extend,n.superCall=Dwe,n.superApply=Owe,n.superClass=t,n}}function Cwe(e){return hA(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function wwe(e,t){e.extend=t.extend}var Twe=Math.round(Math.random()*10);function Ewe(e){var t=[`__\0is_clz`,Twe++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Dwe(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Owe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function SI(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){xwe(r),e.prototype.type=r;var i=bI(r);if(!i.sub)t[i.main]=e;else if(i.sub!==yI){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[yI]&&(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=bI(e),r=[],i=t[n.main];return i&&i[yI]?Q(i,function(e,t){t!==yI&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[bI(e).main]},e.getAllClassMainTypes=function(){var e=[];return Q(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[bI(e).main];return n&&n[yI]};function n(e){var n=t[e.main];return(!n||!n[yI])&&(n=t[e.main]={},n[yI]=!0),n}}function CI(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&&rA(r,s)>=0||i&&rA(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var kwe=CI([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Awe=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return kwe(this,e,t)},e}(),wI=new ZM(50);function jwe(e){if(typeof e==`string`){var t=wI.get(e);return t&&t.image}else return e}function TI(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=wI.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!EI(t)&&a.pending.push(o)):(t=zk.loadImage(e,Mwe,Mwe),t.__zrImageSrc=e,wI.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function Mwe(){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 EI(e){return e&&e.width&&e.height}var DI=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Nwe(e,t,n,r,i){var a={};return Pwe(a,e,t,n,r,i),a.text}function Pwe(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
`);a=Fwe(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)Iwe(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
`),e.isTruncated=s}function Fwe(e,t,n,r){r||={};var i=Z({},r);n=OA(n,`...`),i.maxIterations=OA(r.maxIterations,2);var a=i.minChar=OA(r.minChar,0),o=i.fontMeasureInfo=kP(t),s=o.asciiCharWidth;i.placeholder=OA(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=PP(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 Iwe(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=PP(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?Lwe(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=PP(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Lwe(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=NP(n,e.charCodeAt(i));return i}function Rwe(e,t,n,r){var i=kI(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=zP(l),f=OA(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?Kwe(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=Fwe(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Iwe(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=kP(l),S=0;S<_.length;S++)w=Math.max(PP(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 zwe=function(){function e(){}return e}(),Bwe=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Vwe=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 Hwe(e,t,n,r,i){var a=new Vwe,o=kI(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=DI.lastIndex=0,h;(h=DI.exec(o))!=null;){var g=h.index;g>m&&OI(a,o.substring(m,g),t,p),OI(a,h[2],t,p,h[1]),m=DI.lastIndex}m<o.length&&OI(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=zP(N);var P=OA(A.height,k.contentHeight);if(k.innerHeight=P,j&&(P+=j[0]+j[2]),k.height=P,k.lineHeight=kA(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=PP(kP(N),k.text);else{if(L){var R=A.backgroundColor,z=R&&R.image;z&&(z=jwe(z),EI(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):(Pwe(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=PP(kP(N),k.text)):k.contentWidth=PP(kP(N),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=OA(u,y),a.outerHeight=a.height=OA(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 OI(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=BP(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
`),l=!0),r.accumWidth=m}else{var h=Kwe(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=kP(c),_=0;_<u.length;_++){var v=u[_],y=new zwe;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:PP(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Bwe)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Bwe([y]))}}function Uwe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Wwe=cA(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Gwe(e){return Uwe(e)?!!Wwe[e]:!0}function Kwe(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=kP(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=NP(d,p.charCodeAt(0)),h=r?!1:!Gwe(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 qwe(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;eM.set(Jwe,LP(n,o,i),RP(r,s,a),o,s),eM.intersect(t,Jwe,null,Ywe);var c=Ywe.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=LP(c.x,c.width,i,!0),e.baseY=RP(c.y,c.height,a,!0)}}var Jwe=new eM(0,0,0,0),Ywe={outIntersectRect:{},clamp:!0};function kI(e){return e==null?e=``:e+=``}function Xwe(e){var t=kI(e.text),n=e.font;return AI(e,PP(kP(n),t),zP(n),null)}function AI(e,t,n,r){var i=new eM(LP(e.x||0,t,e.textAlign),RP(e.y||0,n,e.textBaseline),t,n),a=r??(Zwe(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Zwe(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var jI=`__zr_style_`+Math.round(Math.random()*10),MI={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},NI={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};MI[jI]=!0;var Qwe=[`z`,`z2`,`invisible`],$we=[`invisible`],PI=function(e){qA(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=dA(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&&eTe(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 eM(0,0,0,0),t?eM.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 eM(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:Z(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 VA(MI,e)},t.prototype.useStyle=function(e){e[jI]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[jI]},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,Qwe)},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=dA(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=dA(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?$we:Qwe,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 Z(e,t),e},t.prototype.getAnimationStyleProps=function(){return NI},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}(GP),FI=new eM(0,0,0,0),II=new eM(0,0,0,0);function eTe(e,t,n){return FI.copy(e.getBoundingRect()),e.transform&&FI.applyTransform(e.transform),II.width=t,II.height=n,!FI.intersect(II)}var LI=Math.min,RI=Math.max,zI=Math.sin,BI=Math.cos,VI=Math.PI*2,HI=JA(),UI=JA(),WI=JA();function GI(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=LI(i,r[0]),a=RI(a,r[0]),o=LI(o,r[1]),s=RI(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function tTe(e,t,n,r,i,a){i[0]=LI(e,n),i[1]=LI(t,r),a[0]=RI(e,n),a[1]=RI(t,r)}var nTe=[],rTe=[];function iTe(e,t,n,r,i,a,o,s,c,l){var u=VM,d=RM,f=u(e,n,i,o,nTe);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,nTe[p]);c[0]=LI(m,c[0]),l[0]=RI(m,l[0])}f=u(t,r,a,s,rTe);for(var p=0;p<f;p++){var h=d(t,r,a,s,rTe[p]);c[1]=LI(h,c[1]),l[1]=RI(h,l[1])}c[0]=LI(e,c[0]),l[0]=RI(e,l[0]),c[0]=LI(o,c[0]),l[0]=RI(o,l[0]),c[1]=LI(t,c[1]),l[1]=RI(t,l[1]),c[1]=LI(s,c[1]),l[1]=RI(s,l[1])}function aTe(e,t,n,r,i,a,o,s){var c=KM,l=WM,u=RI(LI(c(e,n,i),1),0),d=RI(LI(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=LI(e,i,f),o[1]=LI(t,a,p),s[0]=RI(e,i,f),s[1]=RI(t,a,p)}function oTe(e,t,n,r,i,a,o,s,c){var l=dj,u=fj,d=Math.abs(i-a);if(d%VI<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(HI[0]=BI(i)*n+e,HI[1]=zI(i)*r+t,UI[0]=BI(a)*n+e,UI[1]=zI(a)*r+t,l(s,HI,UI),u(c,HI,UI),i%=VI,i<0&&(i+=VI),a%=VI,a<0&&(a+=VI),i>a&&!o?a+=VI:i<a&&o&&(i+=VI),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(WI[0]=BI(p)*n+e,WI[1]=zI(p)*r+t,l(s,WI,s),u(c,WI,c))}var KI={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qI=[],JI=[],YI=[],XI=[],ZI=[],QI=[],$I=Math.min,eL=Math.max,tL=Math.cos,nL=Math.sin,rL=Math.abs,iL=Math.PI,aL=iL*2,oL=typeof Float32Array<`u`,sL=[];function cL(e){return Math.round(e/iL*1e8)/1e8%2*iL}function lL(e,t){var n=cL(e[0]);n<0&&(n+=aL);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=aL?i=n+aL:t&&n-i>=aL?i=n-aL:!t&&n>i?i=n+(aL-cL(n-i)):t&&n<i&&(i=n-(aL-cL(i-n))),e[0]=n,e[1]=i}var uL=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=rL(n/pP/e)||0,this._uy=rL(n/pP/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(KI.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=rL(e-this._xi),r=rL(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(KI.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(KI.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(KI.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(),sL[0]=r,sL[1]=i,lL(sL,a),r=sL[0],i=sL[1];var o=i-r;return this.addData(KI.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=tL(i)*n+e,this._yi=nL(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(KI.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(KI.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)&&oL&&(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(oL&&(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,oL&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){YI[0]=YI[1]=ZI[0]=ZI[1]=Number.MAX_VALUE,XI[0]=XI[1]=QI[0]=QI[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 KI.M:t=r=e[a++],n=i=e[a++],ZI[0]=r,ZI[1]=i,QI[0]=r,QI[1]=i;break;case KI.L:tTe(t,n,e[a],e[a+1],ZI,QI),t=e[a++],n=e[a++];break;case KI.C:iTe(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],ZI,QI),t=e[a++],n=e[a++];break;case KI.Q:aTe(t,n,e[a++],e[a++],e[a],e[a+1],ZI,QI),t=e[a++],n=e[a++];break;case KI.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=tL(f)*u+c,i=nL(f)*d+l),oTe(c,l,u,d,f,p,m,ZI,QI),t=tL(p)*u+c,n=nL(p)*d+l;break;case KI.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];tTe(r,i,r+h,i+g,ZI,QI);break;case KI.Z:t=r,n=i;break}dj(YI,YI,ZI),fj(XI,XI,QI)}return a===0&&(YI[0]=YI[1]=XI[0]=XI[1]=0),new eM(YI[0],YI[1],XI[0]-YI[0],XI[1]-YI[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 KI.M:i=o=e[d++],a=s=e[d++];break;case KI.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(rL(_)>n||rL(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case KI.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=PSe(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case KI.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=ISe(i,a,y,b,h,g,10),i=h,a=g;break;case KI.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=tL(D)*T+C,s=nL(D)*E+w),m=eL(T,E)*$I(aL,Math.abs(O)),i=tL(k)*T+C,a=nL(k)*E+w;break;case KI.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case KI.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!==KI.L&&v>0&&(e.lineTo(y,b),v=0),S){case KI.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case KI.L:u=n[x++],d=n[x++];var w=rL(u-c),T=rL(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 KI.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;HM(c,k,j,N,D,qI),HM(l,A,M,P,D,JI),e.bezierCurveTo(qI[1],JI[1],qI[2],JI[2],qI[3],JI[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case KI.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;qM(c,k,j,D,qI),qM(l,A,M,D,JI),e.quadraticCurveTo(qI[1],JI[1],qI[2],JI[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case KI.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=rL(L-R)>.001,G=z+B,ee=!1;if(f){var E=p[g++];h+E>_&&(G=z+B*(_-h)/E,ee=!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),ee)break lo;C&&(o=tL(z)*L+F,s=nL(z)*R+I),c=tL(G)*L+F,l=nL(G)*R+I;break;case KI.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var K=n[x++],te=n[x++];if(f){var E=p[g++];if(h+E>_){var ne=_-h;e.moveTo(u,d),e.lineTo(u+$I(ne,K),d),ne-=K,ne>0&&e.lineTo(u+K,d+$I(ne,te)),ne-=te,ne>0&&e.lineTo(u+eL(K-ne,0),d+te),ne-=K,ne>0&&e.lineTo(u,d+eL(te-ne,0));break lo}h+=E}e.rect(u,d,K,te);break;case KI.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=KI,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function dL(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 sTe(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:UM(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function cTe(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:JM(e,t,n,r,i,a,s,c,null)<=l/2}var lTe=Math.PI*2;function fL(e){return e%=lTe,e<0&&(e+=lTe),e}var pL=Math.PI*2;function uTe(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)%pL<1e-4)return!0;if(a){var d=r;r=fL(i),i=fL(d)}else r=fL(r),i=fL(i);r>i&&(i+=pL);var f=Math.atan2(c,s);return f<0&&(f+=pL),f>=r&&f<=i||f+pL>=r&&f+pL<=i}function mL(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 hL=uL.CMD,gL=Math.PI*2,dTe=1e-4;function fTe(e,t){return Math.abs(e-t)<dTe}var _L=[-1,-1,-1],vL=[-1,-1];function pTe(){var e=vL[0];vL[0]=vL[1],vL[1]=e}function mTe(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=BM(t,r,a,s,l,_L);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=_L[h],_=g===0||g===1?.5:1;RM(e,n,i,o,g)<c||(f<0&&(f=VM(t,r,a,s,vL),vL[1]<vL[0]&&f>1&&pTe(),p=RM(t,r,a,s,vL[0]),f>1&&(m=RM(t,r,a,s,vL[1]))),f===2?g<vL[0]?d+=p<t?_:-_:g<vL[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<vL[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function hTe(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=FSe(t,r,a,s,_L);if(c===0)return 0;var l=KM(t,r,a);if(l>=0&&l<=1){for(var u=0,d=WM(t,r,a,l),f=0;f<c;f++){var p=_L[f]===0||_L[f]===1?.5:1,m=WM(e,n,i,_L[f]);m<o||(_L[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=_L[0]===0||_L[0]===1?.5:1,m=WM(e,n,i,_L[0]);return m<o?0:a<t?p:-p}}function gTe(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);_L[0]=-c,_L[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=gL-1e-4){r=0,i=gL;var u=a?1:-1;return o>=_L[0]+e&&o<=_L[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=gL,i+=gL);for(var f=0,p=0;p<2;p++){var m=_L[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=gL+h),(h>=r&&h<=i||h+gL>=r&&h+gL<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function _Te(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===hL.M&&m>1&&(n||(s+=mL(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case hL.M:u=a[m++],d=a[m++],c=u,l=d;break;case hL.L:if(n){if(dL(c,l,a[m],a[m+1],t,r,i))return!0}else s+=mL(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case hL.C:if(n){if(sTe(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=mTe(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 hL.Q:if(n){if(cTe(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=hTe(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case hL.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+=mL(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(uTe(_,v,b,x,x+S,C,t,w,i))return!0}else s+=gTe(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case hL.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(dL(u,d,f,d,t,r,i)||dL(f,d,f,p,t,r,i)||dL(f,p,u,p,t,r,i)||dL(u,p,u,d,t,r,i))return!0}else s+=mL(f,d,f,p,r,i),s+=mL(u,p,u,d,r,i);break;case hL.Z:if(n){if(dL(c,l,u,d,t,r,i))return!0}else s+=mL(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!fTe(l,d)&&(s+=mL(c,l,u,d,r,i)||0),s!==0}function vTe(e,t,n){return _Te(e,0,!1,t,n)}function yTe(e,t,n,r){return _Te(e,t,!0,n,r)}var yL=nA({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},MI),bTe={style:nA({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},NI.style)},bL=DP.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),xL=function(e){qA(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<bL.length;++s)i[bL[s]]=this[bL[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=dA(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?Z(this.style,o):this.useStyle(o):a===`shape`?Z(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(gA(e)){var t=vN(e,0);return t>.5?hP:t>.2?pCe:gP}else if(e)return gP}return hP},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(gA(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==vN(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 uL(!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)),yTe(a,o/s,e,t)))return!0}if(this.hasFill())return vTe(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:Z(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return VA(yL,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Z({},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=Z({},r.shape),Z(c,n.shape)):(c=Z({},i?this.shape:r.shape),Z(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=Z({},this.shape);for(var l={},u=dA(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 bTe},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){qA(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 Qk(e.style)},n.prototype.getDefaultShape=function(){return Qk(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}(PI),xTe=nA({strokeFirst:!0,font:Lxe,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},yL),SL=function(e){qA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Zwe(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return VA(xTe,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Xwe(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(PI);SL.prototype.type=`tspan`;var STe=nA({x:0,y:0},MI),CTe={style:nA({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},NI.style)};function wTe(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var CL=function(e){qA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return VA(STe,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=wTe(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 CTe},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new eM(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(PI);CL.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 wL=Math.round;function TL(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?(wL(r*2)===wL(i*2)&&(e.x1=e.x2=EL(r,s,!0)),wL(a*2)===wL(o*2)&&(e.y1=e.y2=EL(a,s,!0)),e):e}}function ETe(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=EL(r,s,!0),e.y=EL(i,s,!0),e.width=Math.max(EL(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(EL(i+o,s,!1)-e.y,o===0?0:1),e):e}}function EL(e,t,n){if(!t)return e;var r=wL(e*2);return(r+wL(t))%2==0?r/2:(r+(n?1:-1))/2}var DTe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),OTe={},DL=function(e){qA(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new DTe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=ETe(OTe,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}(xL);DL.prototype.type=`rect`;var kTe={fill:`#000`},ATe=2,OL={},jTe={style:nA({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},NI.style)},kL=function(e){qA(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=kTe,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,RTe(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 eM(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||kTe},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Z(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=dA(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},Z(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return jTe},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`;qwe(OL,r.overflowRect,i,a,o,s),i=OL.baseX,a=OL.baseY;var c=Rwe(UTe(e),e,OL.outerWidth,OL.outerHeight),l=AL(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=RP(a,c.contentHeight,s);if(l||n){var _=LP(i,f,o),v=RP(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=HTe(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=VTe(`fill`in e?e.fill:(x=!0,r.fill)),C=BTe(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=ATe,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(SL),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,ITe(D,e),g+=m,E.setBoundingRect(AI(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;qwe(OL,t.overflowRect,i,a,n,r),i=OL.baseX,a=OL.baseY;var o=Hwe(UTe(e),e,OL.outerWidth,OL.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=LP(i,c,n),f=RP(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;AL(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&&AL(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=HTe(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(SL),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=VTe(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=BTe(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=ATe,_=!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=kA(s.opacity,t.opacity,1),ITe(p,s),y&&(p.lineWidth=kA(s.lineWidth,t.lineWidth,g),p.lineDash=OA(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(AI(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(DL),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=OA(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(CL),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=OA(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=kA(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return LTe(e)&&(t=[e.fontStyle,e.fontWeight,FTe(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&NA(t)||e.textFont||e.font},t}(PI),MTe={left:!0,right:1,center:1},NTe={top:1,bottom:1,middle:1},PTe=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function FTe(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function ITe(e,t){for(var n=0;n<PTe.length;n++){var r=PTe[n],i=t[r];i!=null&&(e[r]=i)}}function LTe(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function RTe(e){return zTe(e),Q(e.rich,zTe),e}function zTe(e){if(e){e.font=kL.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||MTe[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||NTe[n]?n:`top`,e.padding&&=jA(e.padding)}}function BTe(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function VTe(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function HTe(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function UTe(e){var t=e.text;return t!=null&&(t+=``),t}function AL(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var jL=eI(),ML=function(e,t,n,r){if(r){var i=jL(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=jL(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},NL=`series`,WTe=zA([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),PL=`original`,FL=`arrayRows`,IL=`objectRows`,LL=`keyedColumns`,RL=`typedArray`,GTe=`unknown`,zL=`column`,KTe=`Roam`,qTe=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],JTe=function(){function e(e){Q(qTe,function(t){this[t]=fA(e[t],e)},this)}return e}();function YTe(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var XTe=1,ZTe={},QTe=eI(),BL=eI(),VL=[`emphasis`,`blur`,`select`],HL=[`normal`,`emphasis`,`blur`,`select`],UL=`highlight`,WL=`downplay`,$Te=`select`,eEe=`unselect`,tEe=`toggleSelect`,GL=`selectchanged`;function KL(e){return e!=null&&e!==`none`}function qL(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function nEe(e){qL(e,`emphasis`,2)}function rEe(e){e.hoverState===2&&qL(e,`normal`,0)}function JL(e){qL(e,`blur`,1)}function iEe(e){e.hoverState===1&&qL(e,`normal`,0)}function aEe(e){e.selected=!0}function oEe(e){e.selected=!1}function sEe(e,t,n){t(e,n)}function YL(e,t,n){sEe(e,t,n),e.isGroup&&e.traverse(function(e){sEe(e,t,n)})}function XL(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 cEe(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 lEe(e,t,n,r){var i=n&&rA(n,`select`)>=0,a=!1;if(e instanceof xL){var o=QTe(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(KL(s)||KL(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=Z({},r),l=Z({},l),l.fill=s):!KL(l.fill)&&KL(s)?(a=!0,r=Z({},r),l=Z({},l),l.fill=bN(s)):!KL(l.stroke)&&KL(c)&&(a||(r=Z({},r),l=Z({},l)),l.stroke=bN(c)),r.style=l}}if(r&&r.z2==null){a||(r=Z({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function uEe(e,t,n){if(n&&n.z2==null){n=Z({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function dEe(e,t,n){var r=rA(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:cEe(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=Z({},n),o=Z({opacity:r?i:a.opacity*.1},o),n.style=o),n}function ZL(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return lEe(this,e,t,n);if(e===`blur`)return dEe(this,e,n);if(e===`select`)return uEe(this,e,n)}return n}function QL(e){e.stateProxy=ZL;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=ZL),n&&(n.stateProxy=ZL)}function fEe(e,t){!iR(e,t)&&!e.__highByOuter&&YL(e,nEe)}function pEe(e,t){!iR(e,t)&&!e.__highByOuter&&YL(e,rEe)}function $L(e,t){e.__highByOuter|=1<<(t||0),YL(e,nEe)}function eR(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&YL(e,rEe)}function mEe(e){YL(e,JL)}function tR(e){YL(e,iEe)}function nR(e){YL(e,aEe)}function rR(e){YL(e,oEe)}function iR(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function aR(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=BL(i),o=YTe(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){iEe(e)}),s&&n.push(i)),a.isBlured=!1}),Q(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function oR(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&&tR(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`||JL(e)}),oA(t))a(e.getData(),t);else if(yA(t))for(var u=dA(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),BL(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 sR(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){BL(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){JL(e)})}}}function hEe(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=$F(i,t);a=(mA(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=jL(o);oR(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&oR(r,u,d,n)}}}function cR(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(jL(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function gEe(e,t,n){var r=jL(e),i=cR(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&sR(r.componentMainType,r.componentIndex,n),Q(a,function(e){return fEe(e,t)})):(oR(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&sR(r.componentMainType,r.componentIndex,n),fEe(e,t))}function _Ee(e,t,n){aR(n);var r=jL(e),i=cR(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Q(i,function(e){return pEe(e,t)}):pEe(e,t)}function vEe(e,t,n){if(_R(t)){var r=t.dataType,i=$F(e.getData(r),t);mA(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function lR(e){Q(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?nR(t):rR(t)})})}function yEe(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 uR(e,t,n){hR(e,!0),YL(e,QL),fR(e,t,n)}function bEe(e){hR(e,!1)}function dR(e,t,n,r){r?bEe(e):uR(e,t,n)}function fR(e,t,n){var r=jL(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var pR=[`emphasis`,`blur`,`select`],xEe={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function mR(e,t,n,r){n||=`itemStyle`;for(var i=0;i<pR.length;i++){var a=pR[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[xEe[n]]()}}function hR(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 gR(e){return!!(e&&e.__highDownDispatcher)}function SEe(e,t,n){var r=jL(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function CEe(e){var t=ZTe[e];return t==null&&XTe<=32&&(t=ZTe[e]=XTe++),t}function _R(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function vR(e){var t=e.type;return t===`highlight`||t===`downplay`}function wEe(e){var t=QTe(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 yR=uL.CMD,TEe=[[],[],[]],bR=Math.sqrt,EEe=Math.atan2;function xR(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=yR.M,d=yR.C,f=yR.L,p=yR.R,m=yR.A,h=yR.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=bR(t[0]*t[0]+t[1]*t[1]),y=bR(t[2]*t[2]+t[3]*t[3]),b=EEe(-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++],uj(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],uj(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=TEe[c];x[0]=n[o++],x[1]=n[o++],uj(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var SR=Math.sqrt,CR=Math.sin,wR=Math.cos,TR=Math.PI;function ER(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function DR(e,t){return(e[0]*t[0]+e[1]*t[1])/(ER(e)*ER(t))}function OR(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(DR(e,t))}function kR(e,t,n,r,i,a,o,s,c,l,u){var d=TR/180*c,f=wR(d)*(e-n)/2+CR(d)*(t-r)/2,p=-1*CR(d)*(e-n)/2+wR(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=SR(m),s*=SR(m));var h=(i===a?-1:1)*SR((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+wR(d)*g-CR(d)*_,y=(t+r)/2+CR(d)*g+wR(d)*_,b=OR([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=OR(x,S);if(DR(x,S)<=-1&&(C=TR),DR(x,S)>=1&&(C=0),C<0){var w=Math.round(C/TR*1e6)/1e6;C=TR*2+w%2*TR}u.addData(l,v,y,o,s,b,C,d,a)}var DEe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,OEe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kEe(e){var t=new uL;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=uL.CMD,c=e.match(DEe);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(OEe)||[],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,kR(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,kR(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 AR=function(e){qA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(xL);function jR(e){return e.setData!=null}function MR(e,t){var n=kEe(e),r=Z({},t);return r.buildPath=function(e){var t=jR(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){xR(n,e),this.dirtyShape()},r}function NR(e,t){return new AR(MR(e,t))}function AEe(e,t){var n=MR(e,t);return function(e){qA(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(AR)}function jEe(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 xL(t);return o.createPathProxy(),o.buildPath=function(e){if(jR(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function PR(e,t){t||={};var n=new xL;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?xR(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 MEe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),FR=function(e){qA(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new MEe},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}(xL);FR.prototype.type=`circle`;var NEe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),IR=function(e){qA(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new NEe},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}(xL);IR.prototype.type=`ellipse`;var LR=Math.PI,RR=LR*2,zR=Math.sin,BR=Math.cos,PEe=Math.acos,VR=Math.atan2,HR=Math.abs,UR=Math.sqrt,WR=Math.max,GR=Math.min,KR=1e-4;function FEe(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<KR))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function qR(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/UR(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)*UR(WR(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 IEe(e){var t;if(mA(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 LEe(e,t){var n,r=WR(t.r,0),i=WR(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=HR(c-s),p=f>RR&&f%RR;if(p>KR&&(f=p),!(r>KR))e.moveTo(l,u);else if(f>RR-KR)e.moveTo(l+r*BR(s),u+r*zR(s)),e.arc(l,u,r,s,c,!d),i>KR&&(e.moveTo(l+i*BR(c),u+i*zR(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*BR(s),j=r*zR(s),M=i*BR(c),N=i*zR(c),P=f>KR;if(P){var F=t.cornerRadius;F&&(n=IEe(F),m=n[0],h=n[1],g=n[2],_=n[3]);var I=HR(r-i)/2;if(v=GR(I,g),y=GR(I,_),b=GR(I,m),x=GR(I,h),w=S=WR(v,y),T=C=WR(b,x),(S>KR||C>KR)&&(E=r*BR(c),D=r*zR(c),O=i*BR(s),k=i*zR(s),f<LR)){var L=FEe(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/zR(PEe((R*B+z*V)/(UR(R*R+z*z)*UR(B*B+V*V)))/2),U=UR(L[0]*L[0]+L[1]*L[1]);w=GR(S,(r-U)/(H+1)),T=GR(C,(i-U)/(H-1))}}}if(!P)e.moveTo(l+A,u+j);else if(w>KR){var W=GR(g,w),G=GR(_,w),ee=qR(O,k,A,j,r,W,d),K=qR(E,D,M,N,r,G,d);e.moveTo(l+ee.cx+ee.x0,u+ee.cy+ee.y0),w<S&&W===G?e.arc(l+ee.cx,u+ee.cy,w,VR(ee.y0,ee.x0),VR(K.y0,K.x0),!d):(W>0&&e.arc(l+ee.cx,u+ee.cy,W,VR(ee.y0,ee.x0),VR(ee.y1,ee.x1),!d),e.arc(l,u,r,VR(ee.cy+ee.y1,ee.cx+ee.x1),VR(K.cy+K.y1,K.cx+K.x1),!d),G>0&&e.arc(l+K.cx,u+K.cy,G,VR(K.y1,K.x1),VR(K.y0,K.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>KR)||!P)e.lineTo(l+M,u+N);else if(T>KR){var W=GR(m,T),G=GR(h,T),ee=qR(M,N,E,D,i,-G,d),K=qR(A,j,O,k,i,-W,d);e.lineTo(l+ee.cx+ee.x0,u+ee.cy+ee.y0),T<C&&W===G?e.arc(l+ee.cx,u+ee.cy,T,VR(ee.y0,ee.x0),VR(K.y0,K.x0),!d):(G>0&&e.arc(l+ee.cx,u+ee.cy,G,VR(ee.y0,ee.x0),VR(ee.y1,ee.x1),!d),e.arc(l,u,i,VR(ee.cy+ee.y1,ee.cx+ee.x1),VR(K.cy+K.y1,K.cx+K.x1),d),W>0&&e.arc(l+K.cx,u+K.cy,W,VR(K.y1,K.x1),VR(K.y0,K.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var REe=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}(),JR=function(e){qA(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new REe},t.prototype.buildPath=function(e,t){LEe(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(xL);JR.prototype.type=`sector`;var zEe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),YR=function(e){qA(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new zEe},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}(xL);YR.prototype.type=`ring`;function BEe(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++)dj(u,u,e[f]),fj(d,d,e[f]);dj(u,u,r[0]),fj(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(XA(e[f]));continue}else c=e[f-1],l=e[f+1];ej(a,l,c),rj(a,a,t);var h=aj(m,c),g=aj(m,l),_=h+g;_!==0&&(h/=_,g/=_),rj(o,a,-h),rj(s,a,g);var v=QA([],m,o),y=QA([],m,s);r&&(fj(v,v,u),dj(v,v,d),fj(y,y,u),dj(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function XR(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=BEe(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 VEe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),ZR=function(e){qA(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new VEe},t.prototype.buildPath=function(e,t){XR(e,t,!0)},t}(xL);ZR.prototype.type=`polygon`;var HEe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),QR=function(e){qA(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 HEe},t.prototype.buildPath=function(e,t){XR(e,t,!1)},t}(xL);QR.prototype.type=`polyline`;var UEe={},WEe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),$R=function(e){qA(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 WEe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=TL(UEe,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}(xL);$R.prototype.type=`line`;var ez=[],GEe=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 tz(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?zM:RM)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?zM:RM)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?GM:WM)(e.x1,e.cpx1,e.x2,t),(n?GM:WM)(e.y1,e.cpy1,e.y2,t)]}var nz=function(e){qA(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 GEe},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&&(qM(n,o,i,u,ez),o=ez[1],i=ez[2],qM(r,s,a,u,ez),s=ez[1],a=ez[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(HM(n,o,c,i,u,ez),o=ez[1],c=ez[2],i=ez[3],HM(r,s,l,a,u,ez),s=ez[1],l=ez[2],a=ez[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return tz(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=tz(this.shape,e,!0);return ij(t,t)},t}(xL);nz.prototype.type=`bezier-curve`;var KEe=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}(),rz=function(e){qA(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 KEe},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}(xL);rz.prototype.type=`arc`;var iz=function(e){qA(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),xL.prototype.getBoundingRect.call(this)},t}(xL),az=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),oz=function(e){qA(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}(az),sz=function(e){qA(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}(az),cz=Math.min,qEe=Math.max,lz=Math.abs,uz=[0,0],dz=[0,0],fz=cM(),pz=fz.minTv,mz=fz.maxTv,hz=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Vj;for(var n=0;n<2;n++)this._axes[n]=new Vj;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);Vj.sub(r[0],n[1],n[0]),Vj.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&&Vj.set(t,0,0),fz.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!fz.negativeSize&&Vj.copy(t,r?fz.useDir?fz.dirMinTv:pz:mz),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,uz),e._getProjMinMaxOnAxis(a,t._corners,dz),fz.negativeSize||uz[1]<dz[0]||uz[0]>dz[1]){if(i=!1,fz.negativeSize||n)return i;var s=lz(dz[0]-uz[1]),c=lz(uz[0]-dz[1]);cz(s,c)>mz.len()&&(s<c?Vj.scale(mz,o,-s*r):Vj.scale(mz,o,c*r))}else if(!n){var s=lz(dz[0]-uz[1]),c=lz(uz[0]-dz[1]);(fz.useDir||cz(s,c)<pz.len())&&((s<c||!fz.bidirectional)&&(Vj.scale(pz,o,s*r),fz.useDir&&fz.calcDirMTV()),(s>=c||!fz.bidirectional)&&(Vj.scale(pz,o,-c*r),fz.useDir&&fz.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=cz(l,o),s=qEe(l,s)}n[0]=o+fz.touchThreshold,n[1]=s-fz.touchThreshold,fz.negativeSize=n[1]<n[0]},e}(),JEe=[],gz=function(e){qA(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 eM(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(JEe)),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}(PI),_z=eI();function vz(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=OA(r.duration,200),u=OA(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)),hA(d)&&(d=d(n,i)),hA(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function yz(e,t,n,r,i,a,o){var s=!1,c;hA(i)?(o=a,a=i,i=null):yA(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=vz(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 bz(e,t,n,r,i,a){yz(`update`,e,t,n,r,i,a)}function xz(e,t,n,r,i,a){yz(`enter`,e,t,n,r,i,a)}function Sz(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 Cz(e,t,n,r,i,a){Sz(e)||yz(`leave`,e,t,n,r,i,a)}function wz(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Cz(e,{style:{opacity:0}},t,n,r)}function Tz(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||wz(e,t,n,r)}):wz(e,t,n,r)}function Ez(e){_z(e).oldStyle=e.style}function YEe(e){return _z(e).oldStyle}var Dz=s({Arc:()=>rz,BezierCurve:()=>nz,BoundingRect:()=>eM,Circle:()=>FR,CompoundPath:()=>iz,Ellipse:()=>IR,Group:()=>QP,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>CL,IncrementalDisplayable:()=>gz,Line:()=>$R,LinearGradient:()=>oz,OrientedBoundingRect:()=>hz,Path:()=>xL,Point:()=>Vj,Polygon:()=>ZR,Polyline:()=>QR,RadialGradient:()=>sz,Rect:()=>DL,Ring:()=>YR,Sector:()=>JR,Text:()=>kL,WH:()=>Az,XY:()=>kz,applyTransform:()=>Uz,calcZ2Range:()=>uB,clipPointsByRect:()=>qz,clipRectByRect:()=>Jz,createIcon:()=>Yz,decomposeTransform:()=>mB,ensureCopyRect:()=>sB,ensureCopyTransform:()=>cB,expandOrShrinkRect:()=>$z,extendPath:()=>Mz,extendShape:()=>jz,getCurrentCanvasPainter:()=>gB,getShapeClass:()=>Pz,getTransform:()=>Hz,groupTransition:()=>Kz,initProps:()=>xz,isBoundingRectAxisAligned:()=>aB,isElementRemoved:()=>Sz,lineLineIntersect:()=>Zz,linePolygonIntersect:()=>Xz,makeImage:()=>Iz,makePath:()=>Fz,mergePath:()=>Rz,payloadDisableAnimation:()=>pB,registerShape:()=>Nz,removeElement:()=>Cz,removeElementWithFadeOut:()=>Tz,resizePath:()=>zz,retrieveZInfo:()=>lB,setTooltipConfig:()=>nB,subPixelOptimize:()=>Vz,subPixelOptimizeLine:()=>Bz,subPixelOptimizeRect:()=>ZEe,transformDirection:()=>Wz,traverseElements:()=>iB,traverseUpdateZ:()=>dB,updateProps:()=>bz}),Oz={},kz=[`x`,`y`],Az=[`width`,`height`];function jz(e){return xL.extend(e)}var XEe=AEe;function Mz(e,t){return XEe(e,t)}function Nz(e,t){Oz[e]=t}function Pz(e){if(Oz.hasOwnProperty(e))return Oz[e]}function Fz(e,t,n,r){var i=NR(e,t);return n&&(r===`center`&&(n=Lz(n,i.getBoundingRect())),zz(i,n)),i}function Iz(e,t,n){var r=new CL({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(Lz(t,i))}}});return r}function Lz(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 Rz=jEe;function zz(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Bz(e,t){return TL(e,e,{lineWidth:t}),e}function ZEe(e,t){return ETe(e,e,t),e}var Vz=EL;function Hz(e,t){for(var n=Nj([]);e&&e!==t;)Fj(n,e.getLocalTransform(),n),e=e.parent;return n}function Uz(e,t,n){return t&&!oA(t)&&(t=wP.getLocalTransform(t)),n&&(t=zj([],t)),uj([],e,t)}function Wz(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:uF(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:uF(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Uz(a,t,n),uF(a[0])>uF(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Gz(e){return!e.isGroup}function QEe(e){return e.shape!=null}function Kz(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Gz(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return QEe(e)&&(t.shape=Qk(e.shape)),t}var a=r(e);t.traverse(function(e){if(Gz(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),bz(e,r,n,jL(e).dataIndex)}}})}function qz(e,t){return sA(e,function(e){var n=e[0];n=lF(n,t.x),n=cF(n,t.x+t.width);var r=e[1];return r=lF(r,t.y),r=cF(r,t.y+t.height),[n,r]})}function Jz(e,t){var n=lF(e.x,t.x),r=cF(e.x+e.width,t.x+t.width),i=lF(e.y,t.y),a=cF(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 Yz(e,t,n){var r=Z({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),nA(i,n),new CL(r)):Fz(e.replace(`path://`,``),r,n,`center`)}function Xz(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Zz(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Zz(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Qz(u,d,c,l);if($Ee(f))return!1;var p=e-i,m=t-a,h=Qz(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Qz(p,m,u,d)/f;return!(g<0||g>1)}function Qz(e,t,n,r){return e*r-n*t}function $Ee(e){return e<=1e-6&&e>=-1e-6}function $z(e,t,n,r,i){return t==null?e:(vA(t)?eB[0]=eB[1]=eB[2]=eB[3]=t:(eB[0]=t[0],eB[1]=t[1],eB[2]=t[2],eB[3]=t[3]),r&&(eB[0]=lF(0,eB[0]),eB[1]=lF(0,eB[1]),eB[2]=lF(0,eB[2]),eB[3]=lF(0,eB[3])),n&&(eB[0]=-eB[0],eB[1]=-eB[1],eB[2]=-eB[2],eB[3]=-eB[3]),tB(e,eB,`x`,`width`,3,1,i&&i[0]||0),tB(e,eB,`y`,`height`,0,2,i&&i[1]||0),e)}var eB=[0,0,0,0];function tB(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=lF(0,cF(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:uF(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function nB(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=gA(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(dA(c),function(e){UA(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=jL(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:nA({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function rB(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function iB(e,t){if(e)if(mA(e))for(var n=0;n<e.length;n++)rB(e[n],t);else rB(e,t)}function aB(e){return!e||uF(e[1])<oB&&uF(e[2])<oB||uF(e[0])<oB&&uF(e[3])<oB}var oB=1e-5;function sB(e,t){return e?eM.copy(e,t):t.clone()}function cB(e,t){return t?Pj(e||Mj(),t):void 0}function lB(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function uB(e){var t=-1/0,n=1/0;rB(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 dB(e,t,n){fB(e,t,n,-1/0)}function fB(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=lF(fB(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=lF(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 pB(e){return e.animation={duration:0},e}function mB(e,t){return t?Pj(hB.transform,t):Nj(hB.transform),hB.decomposeTransform(),OP(e,hB),e}var hB=new wP;hB.transform=Mj();function gB(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Nz(`circle`,FR),Nz(`ellipse`,IR),Nz(`sector`,JR),Nz(`ring`,YR),Nz(`polygon`,ZR),Nz(`polyline`,QR),Nz(`rect`,DL),Nz(`line`,$R),Nz(`bezierCurve`,nz),Nz(`arc`,rz);var _B={};function vB(e,t){for(var n=0;n<VL.length;n++){var r=VL[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 yB(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??=hA(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<VL.length;l++){var u=VL[l],d=t[u];c[u]=OA(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function bB(e,t,n,r){n||=_B;for(var i=e instanceof kL,a=!1,o=0;o<HL.length;o++){var s=t[HL[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new kL,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=yB(n,t),u=t.normal,d=!!u.getShallow(`show`),f=SB(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(CB(u,n,!1));for(var o=0;o<VL.length;o++){var p=VL[o],s=t[p];if(s){var m=c.ensureState(p),h=!!OA(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=SB(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=CB(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&&(kB(c).setLabelText=function(e){var r=yB(n,t,e);vB(c,r)})}else c&&(c.ignore=!0);e.dirty()}function xB(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<VL.length;r++){var i=VL[r];n[i]=e.getModel([i,t])}return n}function SB(e,t,n,r,i){var a={};return eDe(a,e,n,r,i),t&&Z(a,t),a}function CB(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=OA(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 eDe(e,t,n,r,i){n||=_B;var a=t.ecModel,o=a&&a.option.textStyle,s=tDe(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=OA(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);DB(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=vA(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=MB.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=jA(_),h.__marginType=MB.textMargin)}DB(e,t,o,null,null,n,r,i,!0,!1)}function tDe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||_B).rich;if(n){t||={};for(var r=dA(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var wB=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],TB=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],EB=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function DB(e,t,n,r,i,a,o,s,c,l){n=!o&&n||_B;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=OA(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=OA(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=OA(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=OA(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;_<wB.length;_++){var v=wB[_],y=i!==!1&&r?kA(t.getShallow(v),r.getShallow(v),n[v]):OA(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<TB.length;_++){var v=TB[_],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;_<EB.length;_++){var v=EB[_],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 OB(e,t){var n=t&&t.getModel(`textStyle`);return NA([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 kB=eI();function AB(e,t,n,r){if(e){var i=kB(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 jB(e,t,n,r,i){var a=kB(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=OA(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=uwe(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,vB(e,yB({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?xz:bz)(e,{percent:1},r,t,null,l)}var MB={minMargin:1,textMargin:2},nDe=[`textStyle`,`color`],NB=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],PB=new kL,rDe=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(nDe):null)},e.prototype.getFont=function(){return OB({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<NB.length;n++)t[NB[n]]=this.getShallow(NB[n]);return PB.useStyle(t),PB.update(),PB.getBoundingRect()},e}(),FB=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],iDe=CI(FB),aDe=function(){function e(){}return e.prototype.getLineStyle=function(e){return iDe(this,e)},e}(),IB=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],oDe=CI(IB),sDe=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return oDe(this,e,t)},e}(),LB=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){$k(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(Qk(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(!Rk.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}();xI(LB),Ewe(LB),aA(LB,aDe),aA(LB,sDe),aA(LB,Awe),aA(LB,rDe);var cDe=Math.round(Math.random()*10);function RB(e){return[e||``,cDe++].join(`_`)}function lDe(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=bI(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=bI(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function uDe(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){rA(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);rA(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){rA(t,e)>=0&&n.push(e)}),n}}function zB(e,t){return $k($k({},e,!0),t,!0)}var dDe={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:`. `}}}},fDe={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:``}}}},BB=`ZH`,VB=`EN`,HB=VB,UB={},WB={},GB=Rk.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||HB).toUpperCase().indexOf(BB)>-1?BB:HB}():HB;function KB(e,t){e=e.toUpperCase(),WB[e]=new LB(t),UB[e]=t}function pDe(e){if(gA(e)){var t=UB[e.toUpperCase()]||{};return e===BB||e===VB?Qk(t):$k(Qk(t),Qk(UB[HB]),!1)}else return $k(Qk(e),Qk(UB[HB]),!1)}function qB(e){return WB[e]}function mDe(){return WB[HB]}KB(VB,dDe),KB(BB,fDe);var JB=null;function hDe(e){JB||=e}function YB(){return JB}function XB(e,t){var n=YB(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function ZB(e){var t=e.brk;return t?t.breaks:[]}function QB(e){var t=e.brk;return t?t.hasBreaks():!1}var $B=1e3,eV=$B*60,tV=eV*60,nV=tV*24,rV=nV*365,gDe={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})/},iV={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},_De=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,aV=`{yyyy}-{MM}-{dd}`,oV={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:aV,hour:aV+` `+iV.hour,minute:aV+` `+iV.minute,second:aV+` `+iV.second,millisecond:_De},sV=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],vDe=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function yDe(e){return!gA(e)&&!hA(e)?bDe(e):e}function bDe(e){e||={};var t={},n=!0;return Q(sV,function(t){n&&=e[t]==null}),Q(sV,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=sV[s],l=yA(a)&&!mA(a)?a[c]:a,u=void 0;mA(l)?(u=l.slice(),o=u[0]||``):gA(l)?(o=l,u=[o]):(o==null?o=iV[r]:gDe[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function cV(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function lV(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 xDe(e){return e===lV(e)}function SDe(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function uV(e,t,n,r){var i=MF(e),a=i[pV(n)](),o=i[mV(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[hV(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[gV(n)](),d=(u-1)%12+1,f=i[_V(n)](),p=i[vV(n)](),m=i[yV(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof LB?r:qB(r||GB)||mDe()).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,cV(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,cV(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,cV(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,cV(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,cV(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,cV(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,cV(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,cV(m,3)).replace(/{S}/g,m+``)}function CDe(e,t,n,r,i){var a=null;if(gA(n))a=n;else if(hA(n)){var o={time:e.time,level:e.time?e.time.level:0},s=YB();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=dV(e.value,i);a=n[u][u][0]}}return uV(new Date(e.value),a,i,r)}function dV(e,t){var n=MF(e),r=n[mV(t)]()+1,i=n[hV(t)](),a=n[gV(t)](),o=n[_V(t)](),s=n[vV(t)](),c=n[yV(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 fV(e,t,n){switch(t){case`year`:e[bV(n)](0);case`month`:e[xV(n)](1);case`day`:e[SV(n)](0);case`hour`:e[CV(n)](0);case`minute`:e[wV(n)](0);case`second`:e[TV(n)](0)}return e}function pV(e){return e?`getUTCFullYear`:`getFullYear`}function mV(e){return e?`getUTCMonth`:`getMonth`}function hV(e){return e?`getUTCDate`:`getDate`}function gV(e){return e?`getUTCHours`:`getHours`}function _V(e){return e?`getUTCMinutes`:`getMinutes`}function vV(e){return e?`getUTCSeconds`:`getSeconds`}function yV(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function wDe(e){return e?`setUTCFullYear`:`setFullYear`}function bV(e){return e?`setUTCMonth`:`setMonth`}function xV(e){return e?`setUTCDate`:`setDate`}function SV(e){return e?`setUTCHours`:`setHours`}function CV(e){return e?`setUTCMinutes`:`setMinutes`}function wV(e){return e?`setUTCSeconds`:`setSeconds`}function TV(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function TDe(e,t,n,r,i,a,o,s){return new kL({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}function EV(e){if(!zF(e))return gA(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function DV(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 OV=jA;function kV(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&NA(e)?e:`-`}function a(e){return UF(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?MF(e):e;if(!isNaN(+c))return uV(c,r,n);if(s)return`-`}if(t===`ordinal`)return _A(e)?i(e):vA(e)&&a(e)?e+``:`-`;var l=RF(e);return a(l)?EV(l):_A(e)?i(e):typeof e==`boolean`?e+``:`-`}var AV=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],jV=function(e,t){return`{`+e+(t??``)+`}`};function MV(e,t,n){mA(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=AV[a];e=e.replace(jV(o),jV(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(jV(AV[c],s),n?xj(l):l)}return e}function NV(e,t,n){return Q(t,function(t,r){e=e.replace(`{`+r+`}`,n?xj(t):t)}),e}function PV(e,t){var n=gA(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:`+xj(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+xj(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 EDe(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
yyyy`);var r=MF(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`,cV(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,cV(a%100+``,2)).replace(`dd`,cV(s,2)).replace(`d`,s).replace(`hh`,cV(c,2)).replace(`h`,c).replace(`mm`,cV(l,2)).replace(`m`,l).replace(`ss`,cV(u,2)).replace(`s`,u).replace(`SSS`,cV(d,3)),e}function DDe(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function FV(e,t){return t||=`transparent`,gA(e)?e:yA(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function IV(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var LV={},RV={},zV=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(LV,!0),this._normalMasterList=n(RV,!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`){LV[e]=t;return}RV[e]=t},e.get=function(e){return RV[e]||LV[e]},e}();function ODe(e){return!!LV[e]}function kDe(e){BV.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var BV=zA();function VV(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=BV.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function HV(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&&!ODe(n)&&(i=0))}return{coordSysType:n,kind:i}}function UV(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=HV(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 WV=function(e,t){var n=t.getReferringComponents(e,rI).models[0];return n&&n.coordinateSystem},GV=Q,KV=[`left`,`right`,`top`,`bottom`,`width`,`height`],qV=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function JV(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 YV=JV;pA(JV,`vertical`),pA(JV,`horizontal`);function XV(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 ADe(e,t){var n=tH(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===eH.point)a=n.refPoint,i=QV(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=mA(o)?o:[o,o];i=QV(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[yF(s[0],i.width)+i.x,yF(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function ZV(e,t){var n=ADe(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);mA(a)||(a=[0,a]);var o=yF(r.width,t.getWidth()),s=yF(r.height,t.getHeight()),c=Math.min(o,s),l=yF(a[0],c/2),u=yF(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function QV(e,t,n){n=OV(n||0);var r=t.width,i=t.height,a=yF(e.left,r),o=yF(e.top,i),s=yF(e.right,r),c=yF(e.bottom,i),l=yF(e.width,r),u=yF(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 eM((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function $V(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`),QV(s,t)}var eH={rect:1,point:2};function tH(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=VV(e),l=c.coord,u=c.from;if(o.dataToLayout){a=eH.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=eH.point,s=u,i=o.dataToPoint(l))}return a??=eH.rect,a===eH.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 nH(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 eM(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=QV(nA({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 jDe(e,t){return e[qV[t][0]]!=null||e[qV[t][1]]!=null&&e[qV[t][2]]!=null}function rH(e){var t=e.layoutMode||e.constructor.layoutMode;return yA(t)?t:t?{type:t}:null}function iH(e,t,n){var r=n&&n.ignoreSize;!mA(r)&&(r=[r,r]);var i=o(qV[0],0),a=o(qV[1],1);c(qV[0],e,i),c(qV[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(GV(n,function(t){c[t]=e[t]}),GV(n,function(e){UA(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(!UA(a,f)&&UA(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){GV(e,function(e){t[e]=n[e]})}}function aH(e){return oH({},e)}function oH(e,t){return t&&e&&GV(KV,function(n){UA(t,n)&&(e[n]=t[n])}),e}var MDe=eI(),sH=function(e){X(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=RB(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=rH(this),r=n?aH(e):{};$k(e,t.getTheme().get(this.mainType)),$k(e,this.getDefaultOption()),n&&iH(e,r,n)},t.prototype.mergeOption=function(e,t){$k(this.option,e,!0);var n=rH(this);n&&iH(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Swe(e))return e.defaultOption;var t=MDe(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=$k(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return iI(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return XV(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}(LB);wwe(sH,LB),SI(sH),lDe(sH),uDe(sH,NDe);function NDe(e){var t=[];return Q(sH.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=sA(t,function(e){return bI(e).main}),e!==`dataset`&&rA(t,`dataset`)<=0&&t.unshift(`dataset`),t}var $={color:{},darkColor:{},size:{}},cH=$.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 lH in Z(cH,{primary:cH.neutral80,secondary:cH.neutral70,tertiary:cH.neutral60,quaternary:cH.neutral50,disabled:cH.neutral20,border:cH.neutral30,borderTint:cH.neutral20,borderShade:cH.neutral40,background:cH.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:cH.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:cH.neutral70,axisLineTint:cH.neutral40,axisTick:cH.neutral70,axisTickMinor:cH.neutral60,axisLabel:cH.neutral70,axisSplitLine:cH.neutral15,axisMinorSplitLine:cH.neutral05}),cH)if(cH.hasOwnProperty(lH)){var uH=cH[lH];lH===`theme`?$.darkColor.theme=cH.theme.slice():lH===`highlight`?$.darkColor.highlight=`rgba(255,231,130,0.4)`:lH.indexOf(`accent`)===0?$.darkColor[lH]=hN(uH,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):$.darkColor[lH]=hN(uH,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 dH=``;typeof navigator<`u`&&(dH=navigator.platform||``);var fH=`rgba(0, 0, 0, 0.2)`,pH=$.color.theme[0],PDe=hN(pH,null,null,.9),mH={darkMode:`auto`,colorBy:`series`,color:$.color.theme,gradientColor:[PDe,pH],aria:{decal:{decals:[{color:fH,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fH,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fH,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fH,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fH,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fH,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:dH.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},hH={Must:1,Might:2,Not:3},gH=eI();function FDe(e){gH(e).datasetMap=zA()}function _H(e,t,n){var r={},i=yH(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=gH(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),Q(e,function(t,n){var i=yA(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 vH(e,t,n){var r={};if(!yH(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&Q(a,function(e,t){(yA(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=xH(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===hH.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===hH.Not)&&(e.n=c),f(e)&&s[e.n]!==hH.Not)return e;d||(u===hH.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 yH(e){if(!e.get(`data`,!0))return iI(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},rI).models[0]}function IDe(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:iI(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},rI).models}function bH(e,t){return xH(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function xH(e,t,n,r,i,a){var o,s=5;if(xA(e))return hH.Not;var c,l;if(r){var u=r[a];yA(u)?(c=u.name,l=u.type):gA(u)&&(c=u)}if(l!=null)return l===`ordinal`?hH.Must:hH.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 hH.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 hH.Not;var f=_[c];if(!f||xA(f))return hH.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=JF(g);if(!mA(y))return hH.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=gA(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?hH.Might:hH.Not;if(t&&e!==`-`)return hH.Must}return hH.Not}var SH=zA();function LDe(e,t){MA(SH.get(e)==null&&t),SH.set(e,t)}function RDe(e,t,n){var r=SH.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var CH=eI(),zDe=eI(),wH=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=KF(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return EH(this,CH,r,i,e,t,n)},e.prototype.clearColorPalette=function(){VDe(this,CH)},e}();function TH(e,t,n,r){return EH(e,zDe,KF(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function BDe(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 EH(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:BDe(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 VDe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var DH,OH,kH,AH=`\0_ec_inner`,HDe=1,jH=function(e){X(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 LB(r),this._locale=new LB(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=PH(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,PH(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`?kH(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=zA(),s=t&&t.replaceMergeMainTypeMap;FDe(this),Q(e,function(e,t){e!=null&&(sH.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?Qk(e):$k(n[t],e,!0))}),s&&s.each(function(e,t){sH.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),sH.topologicalTravel(a,sH.getAllClassMainTypes(),c,this);function c(t){var a=RDe(this,t,KF(e[t])),o=r.get(t),c=qCe(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);nwe(c,t,sH),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=sH.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=Z({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),Z(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`&&DH(this)}this._seriesIndices||DH(this)},t.prototype.getOption=function(){var e=Qk(this.option);return Q(e,function(t,n){if(sH.hasClass(n)){for(var r=KF(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!QF(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[AH],e},t.prototype.setTheme=function(e){this._theme=new LB(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?lA(a,function(e){return!!e}):MH(`name`,i,a):MH(`id`,r,a):(o=[],Q(KF(n),function(e){a[e]&&o.push(a[e])})),NH(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(NH(r?this.queryComponents(r):lA(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?lA(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(hA(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=gA(e)?r.get(e):yA(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=XF(e,null);return lA(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 lA(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return lA(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){OH(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){OH(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 OH(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){OH(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=zA(n)},t.prototype.restoreData=function(e){DH(this);var t=this._componentsMap,n=[];t.each(function(e,t){sH.hasClass(t)&&n.push(t)}),sH.topologicalTravel(n,sH.getAllClassMainTypes(),function(n){Q(t.get(n),function(t){t&&(n!==`series`||!UDe(t,e))&&t.restoreData()})})},t.internalField=function(){DH=function(e){var t=e._seriesIndices=[];Q(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=zA(t)},OH=function(e){},kH=function(e,t){e.option={},e.option[AH]=HDe,e._componentsMap=zA({series:[]}),e._componentsCount=zA();var n=t.aria;yA(n)&&n.enabled==null&&(n.enabled=!0),WDe(t,e._theme.option),$k(t,mH,!1),e._mergeOption(t,null)}}(),t}(LB);function UDe(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 WDe(e,t){var n=e.color&&!e.colorLayer;Q(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||sH.hasClass(r)||(typeof t==`object`?e[r]=e[r]?$k(e[r],t,!1):Qk(t):e[r]??(e[r]=t))})}function MH(e,t,n){if(mA(t)){var r=zA();return Q(t,function(e){e!=null&&XF(e,null)!=null&&r.set(e,!0)}),lA(n,function(t){return t&&r.get(t[e])})}else{var i=XF(t,null);return lA(n,function(t){return t&&i!=null&&t[e]===i})}}function NH(e,t){return t.hasOwnProperty(`subType`)?lA(e,function(e){return e&&e.subType===t.subType}):e}function PH(e){var t=zA();return e&&Q(KF(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}aA(jH,wH);var GDe=/^(min|max)?(.+)$/,KDe=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Q(KF(e.series),function(e){e&&e.data&&xA(e.data)&&FA(e.data)}),Q(KF(e.dataset),function(e){e&&e.source&&xA(e.source)&&FA(e.source)})),e=Qk(e);var r=this._optionBackup,i=qDe(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=[],Qk(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=Qk(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++)JDe(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!XDe(a,this._currentMediaIndices)&&(o=sA(a,function(e){return Qk(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function qDe(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&&mA(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 JDe(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Q(e,function(e,t){var n=t.match(GDe);if(!(!n||!n[1]||!n[2])){var a=n[1];YDe(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function YDe(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function XDe(e,t){return e.join(`,`)===t.join(`,`)}var FH=Q,IH=yA,LH=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function RH(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=LH.length;n<r;n++){var i=LH[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?$k(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?$k(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function zH(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,nA(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 BH(e){zH(e,`itemStyle`),zH(e,`lineStyle`),zH(e,`areaStyle`),zH(e,`label`),zH(e,`labelLine`),zH(e,`upperLabel`),zH(e,`edgeLabel`)}function VH(e,t){var n=IH(e)&&e[t],r=IH(n)&&n.textStyle;if(r)for(var i=0,a=GCe.length;i<a;i++){var o=GCe[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function HH(e){e&&(BH(e),VH(e,`label`),e.emphasis&&VH(e.emphasis,`label`))}function ZDe(e){if(IH(e)){RH(e),BH(e),VH(e,`label`),VH(e,`upperLabel`),VH(e,`edgeLabel`),e.emphasis&&(VH(e.emphasis,`label`),VH(e.emphasis,`upperLabel`),VH(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(RH(t),HH(t));var n=e.markLine;n&&(RH(n),HH(n));var r=e.markArea;r&&HH(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!xA(a))for(var o=0;o<a.length;o++)HH(a[o]);Q(e.categories,function(e){BH(e)})}if(i&&!xA(i))for(var o=0;o<i.length;o++)HH(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)HH(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)mA(c[o])?(HH(c[o][0]),HH(c[o][1])):HH(c[o]);e.type===`gauge`?(VH(e,`axisLabel`),VH(e,`title`),VH(e,`detail`)):e.type===`treemap`?(zH(e.breadcrumb,`itemStyle`),Q(e.levels,function(e){BH(e)})):e.type===`tree`&&BH(e.leaves)}}function UH(e){return mA(e)?e:e?[e]:[]}function WH(e){return(mA(e)?e[0]:e)||{}}function QDe(e,t){FH(UH(e.series),function(e){IH(e)&&ZDe(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),FH(n,function(t){FH(UH(e[t]),function(e){e&&(VH(e,`axisLabel`),VH(e.axisPointer,`label`))})}),FH(UH(e.parallel),function(e){var t=e&&e.parallelAxisDefault;VH(t,`axisLabel`),VH(t&&t.axisPointer,`label`)}),FH(UH(e.calendar),function(e){zH(e,`itemStyle`),VH(e,`dayLabel`),VH(e,`monthLabel`),VH(e,`yearLabel`)}),FH(UH(e.radar),function(e){VH(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)}),FH(UH(e.geo),function(e){IH(e)&&(HH(e),FH(UH(e.regions),function(e){HH(e)}))}),FH(UH(e.timeline),function(e){HH(e),zH(e,`label`),zH(e,`itemStyle`),zH(e,`controlStyle`,!0);var t=e.data;mA(t)&&Q(t,function(e){yA(e)&&(zH(e,`label`),zH(e,`itemStyle`))})}),FH(UH(e.toolbox),function(e){zH(e,`iconStyle`),FH(e.feature,function(e){zH(e,`iconStyle`)})}),VH(WH(e.axisPointer),`label`),VH(WH(e.tooltip).axisPointer,`label`)}function $De(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function eOe(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 GH(e){e&&Q(tOe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var tOe=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],nOe=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],KH=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function qH(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<KH.length;n++){var r=KH[n][1],i=KH[n][0];t[r]!=null&&(t[i]=t[r])}}function JH(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function YH(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function rOe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function XH(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&XH(e[n].children,t)}function ZH(e,t){QDe(e,t),e.series=KF(e.series),Q(e.series,function(e){if(yA(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),JH(e.label);var n=e.data;if(n&&!xA(n))for(var r=0;r<n.length;r++)JH(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=$De(e,`pointer.color`);i!=null&&eOe(e,`itemStyle.color`,i)}else if(t===`bar`){qH(e),qH(e.backgroundStyle),qH(e.emphasis);var n=e.data;if(n&&!xA(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(qH(n[r]),qH(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)),YH(e),XH(e.data,YH)}else t===`graph`||t===`sankey`?rOe(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&nA(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),GH(e)}}),e.dataRange&&(e.visualMap=e.dataRange),Q(nOe,function(t){var n=e[t];n&&(mA(n)||(n=[n]),Q(n,function(e){GH(e)}))})}var iOe=vI(aOe);function aOe(e){var t=zA();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)}),oOe(e))})}function oOe(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=OF(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var QH=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&&bH(this,n)===hH.Must&&(r.type=`ordinal`)}}return e}();function $H(e){return e instanceof QH}function eU(e,t,n){n||=nU(e);var r=t.seriesLayoutBy,i=cOe(e,n,r,t.sourceHeader,t.dimensions);return new QH({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Qk(t)})}function tU(e){return new QH({data:e,sourceFormat:xA(e)?RL:PL})}function sOe(e){return new QH({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Qk(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function nU(e){var t=GTe;if(xA(e))t=RL;else if(mA(e)){e.length===0&&(t=FL);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(mA(i)||xA(i)){t=FL;break}else if(yA(i)){t=IL;break}}}}else if(yA(e)){for(var a in e)if(UA(e,a)&&oA(e[a])){t=LL;break}}return t}function cOe(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:rU(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?iU(function(e){e!=null&&e!==`-`&&(gA(e)?o??=1:o=0)},n,s,10):o=vA(r)?r:+!!r,!i&&o===1&&(i=[],iU(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||=lOe(e);else if(t===`keyedColumns`)i||(i=[],Q(e,function(e,t){i.push(t)}));else if(t===`original`){var c=JF(e[0]);a=mA(c)&&c.length||1}return{startIndex:o,dimensionsDefine:rU(i),dimensionsDetectedCount:a}}function lOe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return dA(n)}function rU(e){if(e){var t=zA();return sA(e,function(e,n){e=yA(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 iU(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 aU(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var oU,sU,cU,lU,uU,dU,fU=function(){function e(e,t){var n=$H(e)?e:tU(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),dU(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;dU=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=uU[bU(o,s)];Z(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=fA(hU(o,s),null,i,c,l),e.count=fA(_U(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};uU=(e={},e[FL+`_`+zL]={pure:!0,appendData:i},e[FL+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[IL]={pure:!0,appendData:i},e[LL]={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[PL]={appendData:i},e[RL]={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}(),pU=function(e){mA(e)||VCe(`series.data or dataset.source must be an array.`)};oU={},oU[FL+`_`+zL]=pU,oU[FL+`_row`]=pU,oU[IL]=pU,oU[LL]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??VCe(`dimension name must not be null/undefined.`)},oU[PL]=pU;var mU=function(e,t,n,r){return e[r]},uOe=(sU={},sU[FL+`_`+zL]=function(e,t,n,r){return e[r+t]},sU[FL+`_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},sU[IL]=mU,sU[LL]=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},sU[PL]=mU,sU);function hU(e,t){return uOe[bU(e,t)]}var gU=function(e,t,n){return e.length},dOe=(cU={},cU[FL+`_`+zL]=function(e,t,n){return Math.max(0,e.length-t)},cU[FL+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},cU[IL]=gU,cU[LL]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},cU[PL]=gU,cU);function _U(e,t){return dOe[bU(e,t)]}var vU=function(e,t,n){return e[t]},fOe=(lU={},lU[FL]=vU,lU[IL]=function(e,t,n){return e[n]},lU[LL]=vU,lU[PL]=function(e,t,n){var r=JF(e);return r instanceof Array?r[t]:r},lU[RL]=vU,lU);function yU(e){return fOe[e]}function bU(e,t){return e===`arrayRows`?e+`_`+t:e}function xU(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 yU(a)(r,o,s)}else{var c=r;return a===`original`&&(c=JF(r)),c}}}}var pOe=/\{@(.+?)\}/g,SU=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&&mA(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),hA(i))return s.status=t,s.dimensionIndex=r,i(s);if(gA(i))return MV(i,s).replace(pOe,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=xU(o,e,i);if(a&&mA(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return xU(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function CU(e){var t,n;return yA(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function wU(e){return new mOe(e)}var mOe=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(mA(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){TU.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:TU.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),mA(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}(),TU=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 EU(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!vA(e)&&e!=null&&e!==`-`&&(e=+MF(e)),e==null||e===``?NaN:Number(e))}var hOe=zA({number:function(e){return parseFloat(e)},time:function(e){return+MF(e)},trim:function(e){return gA(e)?NA(e):e}});function DU(e){return hOe.get(e)}var OU={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}},gOe=function(){function e(e,t){vA(t)||GF(``),this._opFn=OU[e],this._rvalFloat=RF(t)}return e.prototype.evaluate=function(e){return vA(e)?this._opFn(e,this._rvalFloat):this._opFn(RF(e),this._rvalFloat)},e}(),kU=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=vA(e)?e:RF(e),r=vA(t)?t:RF(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=gA(e),s=gA(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),_Oe=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=RF(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=RF(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function vOe(e,t){return e===`eq`||e===`ne`?new _Oe(e===`eq`,t):UA(OU,e)?new gOe(e,t):null}function AU(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 jU(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var yOe=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 EU(e,t)},e}();function bOe(e,t){var n=new yOe,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&GF(``);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&&(UA(s,n)&&GF(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=hU(i,zL);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=fA(xOe,null,e)),n.cloneRawData=fA(SOe,null,e),n.count=fA(_U(i,zL),null,r,a,o);var d=yU(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=fA(COe,null,o,s),n.cloneAllDimensionInfo=fA(wOe,null,o),n}function xOe(e){var t=e.sourceFormat;return NU(t)||GF(``),e.data}function SOe(e){var t=e.sourceFormat,n=e.data;if(NU(t)||GF(``),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(Z({},n[i]));return r}}function COe(e,t,n){if(n!=null){if(vA(n)||!isNaN(n)&&!UA(t,n))return e[n];if(UA(t,n))return t[n]}}function wOe(e){return Qk(e)}var MU=zA();function TOe(e){e=Qk(e);var t=e.type,n=``;t||GF(n);var r=t.split(`:`);r.length!==2&&GF(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,MU.set(t,e)}function EOe(e,t,n){var r=KF(e),i=r.length;i||GF(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=DOe(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function DOe(e,t,n,r){var i=``;t.length||GF(i),yA(e)||GF(i);var a=e.type,o=MU.get(a);o||GF(i);var s=sA(t,function(e){return bOe(e,o)});return sA(KF(o.transform({upstream:s[0],upstreamList:s,config:Qk(e.config)})),function(e,n){var r=``;yA(e)||GF(r),e.data||GF(r),NU(nU(e.data))||GF(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:zL,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:zL,sourceHeader:0,dimensions:e.dimensions};return eU(e.data,i,null)})}function NU(e){return e===`arrayRows`||e===`objectRows`}var OOe=typeof Uint32Array>`u`?Array:Uint32Array,kOe=typeof Uint16Array>`u`?Array:Uint16Array,PU=typeof Int32Array>`u`?Array:Int32Array,FU=typeof Float64Array>`u`?Array:Float64Array,IU={float:FU,int:PU,ordinal:Array,number:Array,time:FU},LU;function RU(e){return e>65535?OOe:kOe}function AOe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function zU(e,t,n,r,i){var a=IU[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 BU=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=zA()}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=LU[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],aU(r),this._dimensions=sA(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 IU[t||`float`](this._rawCount),this._rawExtent[i]=lI(),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]=lI());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];zU(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=LU.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=sA(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=lI()),zU(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)}),CF(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=RU(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(RU(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=dA(e),i=r.length;if(!i)return this;var a=t.count(),o=new(RU(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]]=lI();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(RU(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(RU(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]=lI(),d=new(RU(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=lI();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=AU(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||jU(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&&cA(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?AOe(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=Qk(this._extent),e._rawExtent=Qk(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 EU(e[r],this._dimensions[r])}LU={arrayRows:e,objectRows:function(e,t,n,r){return EU(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return EU(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),VU=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(UU(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=xA(o)?RL:PL,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=OA(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=OA(u.sourceHeader,d.sourceHeader),m=OA(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[eU(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=[eU(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&&WU(``);var i,a=[],o=[];return Q(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&WU(``),a.push(t),o.push(e._getVersionSign())}),n?i=EOe(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[sOe(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];UU(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new BU,o.initData(new fU(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(UU(e)){var t=yH(e);return t?[t.getSourceManager()]:[]}else return sA(IDe(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(UU(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 HU(e){e.option.transform&&FA(e.option.transform)}function UU(e){return e.mainType===`series`}function WU(e){throw Error(e)}var jOe=`line-height:1`;function GU(e){var t=e.lineHeight;return t==null?jOe:`line-height:`+xj(t+``)+`px`}function KU(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:`+xj(r+``)+`px;color:`+xj(n)+`;font-weight:`+xj(i+``),valueStyle:`font-size:`+xj(o+``)+`px;color:`+xj(a)+`;font-weight:`+xj(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var MOe=[0,10,20,30],NOe=[``,`
`,`
`,`
`];function qU(e,t){return t.type=e,t}function JU(e){return e.type===`section`}function YU(e){return JU(e)?POe:FOe}function XU(e){if(JU(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Q(e.blocks,function(e){var n=XU(e);n>=t&&(t=n+ +(r&&(!n||JU(e)&&!e.noHeader)))}),t}return 0}function POe(e,t,n,r){var i=t.noHeader,a=IOe(XU(t)),o=[],s=t.blocks||[];MA(!s||mA(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(UA(l,c)){var u=new kU(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=YU(n)(s?Z(Z({},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):QU(r,o.join(``),i?n:a.html);if(i)return d;var f=kV(t.header,`ordinal`,e.useUTC),p=KU(r,e.renderMode).nameStyle,m=GU(r);return e.renderMode===`richText`?$U(e,f,p)+a.richText+d:QU(r,`<div style="`+p+`;`+m+`;">`+xj(f)+`</div>`+d,n)}function FOe(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=mA(e)?e:[e],sA(e,function(e,t){return kV(e,mA(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||$.color.secondary,i),f=a?``:kV(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=KU(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:$U(e,f,v))+(o?``:zOe(e,m,h,g,y)):QU(r,(s?``:d)+(a?``:LOe(f,!s,v))+(o?``:ROe(m,h,g,y)),n)}}function ZU(e,t,n,r,i,a){if(e)return YU(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function IOe(e){return{html:MOe[e],richText:NOe[e]}}function QU(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=GU(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function LOe(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+xj(e)+`</span>`}function ROe(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=mA(e)?e:[e],`<span style="`+i+`;`+r+`">`+sA(e,function(e){return xj(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function $U(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function zOe(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(mA(t)?t.join(` `):t,a)}function eW(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return FV(n)}function tW(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var nW=function(){function e(){this.richTextStyles={},this._nextStyleNameId=BF()}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=PV({color:t,type:e,renderMode:n,markerId:r});return gA(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};mA(t)?Q(t,function(e){return Z(n,e)}):Z(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function rW(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=mA(s),l=eW(t,n),u,d,f,p;if(o>1||c&&!o){var m=BOe(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=xU(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=ZF(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return qU(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[qU(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!NA(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function BOe(e,t,n,r,i){var a=t.getData(),o=cA(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(xU(a,n,e),e)}):Q(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(qU(`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 iW=eI();function aW(e,t){return e.getName(t)||e.getId(t)}var oW=`__universalTransitionEnabled`,sW=function(e){X(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=wU({count:HOe,reset:UOe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(iW(this).sourceManager=new VU(this)).prepareSource();var r=this.getInitialData(e,n);lW(r,this),this.dataTask.context.data=r,iW(this).dataBeforeProcessed=r,cW(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=rH(this),r=n?aH(e):{},i=this.subType;sH.hasClass(i)&&(i+=`Series`),$k(e,t.getTheme().get(this.subType)),$k(e,this.getDefaultOption()),qF(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&iH(e,r,n)},t.prototype.mergeOption=function(e,t){e=$k(this.option,e,!0),this.fillDataTextStyle(e.data);var n=rH(this);n&&iH(this.option,e,n);var r=iW(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);lW(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,iW(this).dataBeforeProcessed=i,cW(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!xA(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&qF(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=uW(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return iW(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=uW(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}iW(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return zA(e)},t.prototype.getSourceManager=function(){return iW(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return iW(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 rW({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Rk.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=wH.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=aW(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=dA(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[aW(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`){yA(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=aW(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=aW(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 sH.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}(sH);aA(sW,SU),aA(sW,wH),wwe(sW,sH);function cW(e){var t=e.name;ZF(e)||(e.name=VOe(e)||t)}function VOe(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 HOe(e){return e.model.getRawData().count()}function UOe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),WOe}function WOe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function lW(e,t){Q(BA(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,pA(GOe,t))})}function GOe(e,t){var n=uW(e);return n&&n.setOutputEnd((t||this).count()),t}function uW(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 dW=function(){function e(){this.group=new QP,this.uid=RB(`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}();xI(dW),SI(dW);function fW(){var e=eI();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 pW=eI(),KOe=fW(),mW=function(){function e(){this.group=new QP,this.uid=RB(`viewChart`),this.renderTask=wU({plan:qOe,reset:JOe}),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&&gW(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&gW(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){iB(this.group,e)},e.markUpdateMethod=function(e,t){pW(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function hW(e,t,n){e&&gR(e)&&(t===`emphasis`?$L:eR)(e,n)}function gW(e,t,n){var r=$F(e,t),i=t&&t.highlightKey!=null?CEe(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){hW(e,n,i)}):Q(KF(r),function(t){hW(e.getItemGraphicEl(t),n,i)})}xI(mW,[`dispose`]),SI(mW);function qOe(e){return KOe(e.model)}function JOe(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&pW(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),YOe[c]}var YOe={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)}}},_W=`\0__throttleOriginMethod`,vW=`\0__throttleRate`,yW=`\0__throttleType`;function bW(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 xW(e,t,n,r){var i=e[t];if(i){var a=i[_W]||i,o=i[yW];if(i[vW]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=bW(a,n,r===`debounce`),i[_W]=a,i[yW]=r,i[vW]=n}return i}}function SW(e,t){var n=e[t];n&&n[_W]&&(n.clear&&n.clear(),e[t]=n[_W])}var CW=eI(),wW={itemStyle:CI(IB,!0),lineStyle:CI(FB,!0)},XOe={lineStyle:`stroke`,itemStyle:`fill`};function TW(e,t){return e.visualStyleMapper||wW[t]||(console.warn(`Unknown style type '`+t+`'.`),wW.itemStyle)}function EW(e,t){return e.visualDrawType||XOe[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var ZOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=TW(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=EW(e,r),c=a[s],l=hA(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`||hA(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||hA(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=Z({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},DW=new LB,QOe={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=TW(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){DW.option=n[r];var o=i(DW);Z(e.ensureUniqueItemVisual(t,`style`),o),DW.option.decal&&(e.setItemVisual(t,`decal`,DW.option.decal),DW.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},$Oe={performRawSeries:!0,overallReset:function(e){var t=zA();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();CW(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=CW(e).scope,a=EW(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)}})}})}},OW=Math.PI;function eke(e,t){t||={},nA(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 QP,r=new DL({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new kL({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 DL({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 rz({shape:{startAngle:-OW/2,endAngle:-OW/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:OW*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:OW*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 kW=function(){function e(e,t,n,r){this._stageTaskMap=zA(),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):vwe(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=zA();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,{});MA(!(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=zA(),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)||wU({plan:ake,reset:oke,count:cke}));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||wU({reset:tke});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=zA(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;MA(!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,wU({reset:nke,onDirty:ike})));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 hA(e)&&(e={overallReset:e,seriesType:lke(e)}),e.uid=RB(`stageHandler`),t&&(e.visualType=t),e},e}();function tke(e){e.overallReset(e.ecModel,e.api,e.payload)}function nke(e){return e.dirtyOnOverallProgress&&rke}function rke(){this.agent.dirty(),this.getDownstream().dirty()}function ike(){this.agent&&this.agent.dirty()}function ake(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function oke(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=KF(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?sA(t,function(e,t){return AW(t)}):ske}var ske=AW(0);function AW(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 cke(e){return e.data.count()}function lke(e){NW=null;try{e(jW,MW)}catch{}return NW}var jW={},MW={},NW;PW(jW,jH),PW(MW,JTe),jW.eachSeriesByType=jW.eachRawSeriesByType=function(e){NW=e},jW.eachComponent=function(e){e.mainType===`series`&&e.subType&&(NW=e.subType)};function PW(e,t){for(var n in t.prototype)e[n]=WA}var FW=$.darkColor,IW=FW.background,LW=function(){return{axisLine:{lineStyle:{color:FW.axisLine}},splitLine:{lineStyle:{color:FW.axisSplitLine}},splitArea:{areaStyle:{color:[FW.backgroundTint,FW.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:FW.axisMinorSplitLine}},axisLabel:{color:FW.axisLabel},axisName:{}}},RW={label:{color:FW.secondary},itemStyle:{borderColor:FW.borderTint},dividerLineStyle:{color:FW.border}},zW={darkMode:!0,color:FW.theme,backgroundColor:IW,axisPointer:{lineStyle:{color:FW.border},crossStyle:{color:FW.borderShade},label:{color:FW.tertiary}},legend:{textStyle:{color:FW.secondary},pageTextStyle:{color:FW.tertiary}},textStyle:{color:FW.secondary},title:{textStyle:{color:FW.primary},subtextStyle:{color:FW.quaternary}},toolbox:{iconStyle:{borderColor:FW.accent50},feature:{dataView:{backgroundColor:IW,textColor:FW.primary,textareaColor:FW.background,textareaBorderColor:FW.border,buttonColor:FW.accent50,buttonTextColor:FW.neutral00}}},tooltip:{backgroundColor:FW.neutral20,defaultBorderColor:FW.border,textStyle:{color:FW.tertiary}},dataZoom:{borderColor:FW.accent10,textStyle:{color:FW.tertiary},brushStyle:{color:FW.backgroundTint},handleStyle:{color:FW.neutral00,borderColor:FW.accent20},moveHandleStyle:{color:FW.accent40},emphasis:{handleStyle:{borderColor:FW.accent50}},dataBackground:{lineStyle:{color:FW.accent30},areaStyle:{color:FW.accent20}},selectedDataBackground:{lineStyle:{color:FW.accent50},areaStyle:{color:FW.accent30}}},visualMap:{textStyle:{color:FW.secondary},handleStyle:{borderColor:FW.neutral30}},timeline:{lineStyle:{color:FW.accent10},label:{color:FW.tertiary},controlStyle:{color:FW.accent30,borderColor:FW.accent30}},calendar:{itemStyle:{color:FW.neutral00,borderColor:FW.neutral20},dayLabel:{color:FW.tertiary},monthLabel:{color:FW.secondary},yearLabel:{color:FW.secondary}},matrix:{x:RW,y:RW,backgroundColor:{borderColor:FW.axisLine},body:{itemStyle:{borderColor:FW.borderTint}}},timeAxis:LW(),logAxis:LW(),valueAxis:LW(),categoryAxis:LW(),line:{symbol:`circle`},graph:{color:FW.theme},gauge:{title:{color:FW.secondary},axisLine:{lineStyle:{color:[[1,FW.neutral05]]}},axisLabel:{color:FW.axisLabel},detail:{color:FW.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:FW.background}},radar:function(){var e=LW();return e.axisName={color:FW.axisLabel},e.axisLine.lineStyle.color=FW.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:FW.neutral20,textStyle:{color:FW.secondary}},emphasis:{itemStyle:{color:FW.neutral30}}}},sunburst:{itemStyle:{borderColor:FW.background}},map:{itemStyle:{borderColor:FW.border,areaColor:FW.neutral10},label:{color:FW.tertiary},emphasis:{label:{color:FW.primary},itemStyle:{areaColor:FW.highlight}},select:{label:{color:FW.primary},itemStyle:{areaColor:FW.highlight}}},geo:{itemStyle:{borderColor:FW.border,areaColor:FW.neutral10},emphasis:{label:{color:FW.primary},itemStyle:{areaColor:FW.highlight}},select:{label:{color:FW.primary},itemStyle:{color:FW.highlight}}}};zW.categoryAxis.splitLine.show=!1;var uke=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(gA(e)){var i=bI(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}(),BW=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],VW=BW.concat([`symbolKeepAspect`]),dke={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<BW.length;o++){var s=BW[o],c=e.get(s);hA(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Z({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=dA(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}}},fke={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<VW.length;r++){var i=VW[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function HW(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 UW(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 WW(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 GW(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=Z({},t),i.dispatchAction(Z(t,{type:e[1],seriesIndex:n(r,t)}))})})}function KW(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=$F(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:mA(l)?c.getName(l[0]):c.getName(l),selected:gA(r)?r:Z({},r)})}})}function pke(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(KW(`map`,`selectchanged`,t,r,e),KW(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(KW(`map`,`selected`,t,r,e),KW(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(KW(`map`,`unselected`,t,r,e),KW(`pie`,`unselected`,t,r,e))})}function qW(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var JW=new mj,YW={};function mke(e,t){YW[e]=t}function XW(e){return YW[e]}var ZW={};function QW(e,t){ZW[e]=t}function hke(e){return ZW[e]}var $W=eI();function gke(e){$W(e).prepare={}}function _ke(e){$W(e).fullUpdate={}}function eG(e){return $W(e).prepare}function tG(e){return $W(e).fullUpdate}var vke=Math.round(Math.random()*9),yke=typeof Object.defineProperty==`function`,bke=function(){function e(){this._id=`__ec_inner_`+vke++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return yke?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}(),xke=xL.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()}}),Ske={line:$R,rect:DL,roundRect:DL,square:DL,circle:FR,diamond:xL.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:xL.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:xL.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:xke},Cke={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}},nG={};Q(Ske,function(e,t){nG[t]=new e});var wke=xL.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=VP(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=nG[r];i||=(r=`rect`,nG[r]),Cke[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Tke(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 rG(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?Iz(e.slice(8),new eM(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Fz(e.slice(7),{},new eM(t,n,r,i),o?`center`:`cover`):new wke({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Tke,a&&c.setColor(a),c}function iG(e){return mA(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function aG(e,t){if(e!=null)return mA(e)||(e=[e,e]),[yF(e[0],t[0])||0,yF(OA(e[1],e[0]),t[1])||0]}function oG(e){return isFinite(e)}function Eke(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=oG(r)?r:0,i=oG(i)?i:1,a=oG(a)?a:0,o=oG(o)?o:0,e.createLinearGradient(r,a,i,o)}function Dke(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=oG(o)?o:.5,s=oG(s)?s:.5,c=c>=0&&oG(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function sG(e,t,n){for(var r=t.type===`radial`?Dke(e,t,n):Eke(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Oke(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 cG(e){return parseInt(e,10)}function lG(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]||cG(s[r])||cG(e.style[r]))-(cG(s[a])||0)-(cG(s[o])||0)||0}function kke(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:vA(e)?[e]:mA(e)?e:null}function uG(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&kke(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=sA(n,function(e){return e/i}),r/=i)}return[n,r]}var Ake=new uL(!0);function dG(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function fG(e){return typeof e==`string`&&e!==`none`}function pG(e){var t=e.fill;return t!=null&&t!==`none`}function mG(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 hG(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 gG(e,t,n){var r=TI(t.image,t.__image,n);if(EI(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)*GA),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function jke(e,t,n,r,i){var a,o=dG(n),s=pG(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||Ake,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?sG(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?sG(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?gG(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?gG(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=uG(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&&hG(e,n),s&&mG(e,n)):(s&&mG(e,n),o&&hG(e,n)),T&&e.setLineDash([])}function Mke(e,t,n){var r=t.__image=TI(n.image,t.__image,t,t.onload);if(!(!r||!EI(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 Nke(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=uG(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(dG(n)&&e.strokeText(i,n.x,n.y),pG(n)&&e.fillText(i,n.x,n.y)):(pG(n)&&e.fillText(i,n.x,n.y),dG(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var _G=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],vG=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function yG(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){EG(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?MI.opacity:o}(r||t.blend!==n.blend)&&(a||=(EG(e,i),!0),e.globalCompositeOperation=t.blend||MI.blend);for(var s=0;s<_G.length;s++){var c=_G[s];(r||t[c]!==n[c])&&(a||=(EG(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(EG(e,i),!0),e.shadowColor=t.shadowColor||MI.shadowColor),a}function bG(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=yG(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(EG(e,i),!0),fG(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(EG(e,i),!0),fG(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(EG(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||=(EG(e,i),!0),e.lineWidth=c)}for(var l=0;l<vG.length;l++){var u=vG[l],d=u[0];(r||a[d]!==o[d])&&(s||=(EG(e,i),!0),e[d]=a[d]||u[1])}return s}function Pke(e,t,n,r,i){return yG(e,t.style,n&&n.style,r,i)}function xG(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 Fke(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),xG(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Ike(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 SG=1,CG=2,wG=3,TG=4;function Lke(e){var t=pG(e),n=dG(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 EG(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function DG(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};OG(e,t,n),kG(e,n)}function OG(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||Oke(i,a))&&(a&&(EG(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(EG(e,n),e.save(),Fke(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 xL&&t.autoBatch&&Lke(o);s||Ike(r,l.transform)?(EG(e,n),xG(e,t)):u||EG(e,n),t instanceof xL?(n.lastDrawType!==SG&&(c=!0,n.lastDrawType=SG),bG(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),jke(e,t,o,u,n)):t instanceof SL?(n.lastDrawType!==wG&&(c=!0,n.lastDrawType=wG),bG(e,t,l,c,n),Nke(e,t,o)):t instanceof CL?(n.lastDrawType!==CG&&(c=!0,n.lastDrawType=CG),Pke(e,t,l,c,n),Mke(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==TG&&(c=!0,n.lastDrawType=TG),Rke(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&EG(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function kG(e,t){EG(e,t),t.prevElClipPaths&&e.restore()}function Rke(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(),OG(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}kG(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),OG(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}kG(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var AG=new bke,jG=new ZM(100),MG=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function NG(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&AG.delete(e);var a=AG.get(e);if(a)return a;var o=nA(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,AG.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<MG.length;++s){var c=o[MG[s]];if(c!=null&&!mA(c)&&!gA(c)&&!vA(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=jG.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=FG(o.dashArrayX),f=zke(o.dashArrayY),p=PG(o.symbol),m=Bke(d),h=IG(f),g=!i&&zk.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&&jG.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=HF(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=HF(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=rG(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 DG(y,u)}}}}function PG(e){if(!e||e.length===0)return[[`rect`]];if(gA(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!gA(e[n])){t=!1;break}if(t)return PG([e]);for(var r=[],n=0;n<e.length;++n)gA(e[n])?r.push([e[n]]):r.push(e[n]);return r}function FG(e){if(!e||e.length===0)return[[0,0]];if(vA(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!vA(e[r])){n=!1;break}if(n)return FG([e]);for(var i=[],r=0;r<e.length;++r)if(vA(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=sA(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function zke(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(vA(e)){var t=Math.ceil(e);return[t,t]}var n=sA(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Bke(e){return sA(e,function(e){return IG(e)})}function IG(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var Vke=vI(Hke);function Hke(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=NG(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=NG(i,t)}}})}var Uke=`6.1.0`,Wke={zrender:`6.1.0`},Gke=1,Kke=800,qke=900,Jke=920,Yke=1e3,Xke=2e3,LG=5e3,RG=1e3,Zke=1100,zG=2e3,BG=3e3,Qke=4e3,VG=4500,$ke=4600,eAe=5e3,tAe=6e3,HG=7e3,UG={PROCESSOR:{SERIES_FILTER:Kke,AXIS_STATISTICS:Jke,FILTER:Yke,STATISTIC:LG,STATISTICS:LG},VISUAL:{LAYOUT:RG,PROGRESSIVE_LAYOUT:Zke,GLOBAL:zG,CHART:BG,POST_CHART_LAYOUT:$ke,COMPONENT:Qke,BRUSH:eAe,CHART_ITEM:VG,ARIA:tAe,DECAL:HG}},WG=`__flagInMainProcess`,GG=`__mainProcessVersion`,KG=`__pendingUpdate`,qG=`__needsUpdateStatus`,JG=/^[a-zA-Z0-9_]+$/,YG=`__connectUpdateStatus`,XG=0,nAe=1,rAe=2;function ZG(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return $G(this,e,t)}}function QG(e){return function(){var t=[...arguments];return $G(this,e,t)}}function $G(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),mj.prototype[t].apply(e,n)}var eK=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(mj),tK=eK.prototype;tK.on=QG(`on`),tK.off=QG(`off`);var nK,rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK=function(e){X(t,e);function t(t,n,r){var i=e.call(this,new uke)||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[GG]=1,r.ssr&&aF(function(e){var t=jL(e),n=t.dataIndex;if(n!=null){var r=zA();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=tF(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:OA(r.useDirtyRect,s),useCoarsePointer:OA(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=bW(fA(c.flush,c),17),i._updateTheme(n),i._locale=pDe(r.locale||GB),i._coordSysMgr=new zV;var l=i._api=gK(i);function u(e,t){return e.__prio-t.__prio}return xM(OK,u),xM(EK,u),i._scheduler=new kW(i,l,EK,OK),i._messageCenter=new eK,i._initEvents(),i.resize=fA(i.resize,i),c.animation.on(`frame`,i._onframe,i),dK(c,i),fK(c,i),FA(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(yK(this),this[KG]){var r=this[KG].silent;this[WG]=!0,bK(this);try{nK(this),aK.update.call(this,null,this[KG].updateParams)}catch(e){throw this[WG]=!1,this[KG]=null,e}this._zr.flush(),this[WG]=!1,this[KG]=null,lK.call(this,r),uK.call(this,r)}else if(e.unfinished){var i=Gke;do{e.unfinished=!1;var a=zk.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),sK(this,t),e.performVisualTasks(t),hK(this,this._model,n,`remain`,{}),i-=zk.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[WG]){if(this._disposed){this.id;return}var r,i,a;if(yA(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[WG]=!0,bK(this),!this._model||t){var o=new KDe(this._api),s=this._theme,c=this._model=new jH;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},DK);var l={seriesTransition:a,optionChanged:!0};if(n)this[KG]={silent:r,updateParams:l},this[WG]=!1,this.getZr().wakeUp();else{try{nK(this),aK.update.call(this,null,l)}catch(e){throw this[KG]=null,this[WG]=!1,e}this._ssr||this._zr.flush(),this[KG]=null,this[WG]=!1,lK.call(this,r),uK.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[WG]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[KG]&&(r??=this[KG].silent,i=this[KG].updateParams,this[KG]=null),this[WG]=!0,bK(this);try{this._updateTheme(e),n.setTheme(this._theme),nK(this),aK.update.call(this,{type:`setTheme`},i)}catch(e){throw this[WG]=!1,e}this[WG]=!1,lK.call(this,r),uK.call(this,r)}}},t.prototype._updateTheme=function(e){gA(e)&&(e=kK[e]),e&&(e=Qk(e),e&&ZH(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||Rk.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(MK[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Q(jK,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(Qk(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=zk.createCanvas(),h=tF(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 DL({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),Q(u,function(e){var t=new CL({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 oK(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return oK(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return oK(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return Q(tI(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=tI(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?UW(i,t):HW(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(iAe,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&qW(i,function(e){var t=jL(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=Z({},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(TK,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),pke(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()&&swe(this.getDom(),NK,``);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 jK[e.id]},t.prototype.resize=function(e){if(!this[WG]){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[KG]&&(r??=this[KG].silent,n=!0,this[KG]=null),this[WG]=!0,bK(this);try{n&&nK(this),aK.update.call(this,{type:`resize`,animation:Z({duration:0},e&&e.animation)})}catch(e){throw this[WG]=!1,e}this[WG]=!1,lK.call(this,r),uK.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(yA(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),AK[e]){var n=AK[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=Z({},e);return t.type=wK[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(yA(t)||(t={silent:!!t}),CK[e.type]&&this._model){if(this[WG]){this._pendingActions.push(e);return}var n=t.silent;cK.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Rk.browser.weChat&&this._throttledZrFlush(),lK.call(this,n),uK.call(this,n)}},t.prototype.updateLabelLayout=function(){JW.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(){nK=function(e){gke(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),rK(e,!0),rK(e,!1),t.plan()},rK=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=bI(e.type);u=new(t?dW.getClass(d.main,d.sub):mW.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)}},iK=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=aI(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=zA(),Q(KF(s),function(e){var t=XF(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null))if(vR(n))if(t instanceof sW)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&hEe(t,n,e._api);else{var r=cR(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&sR(t.mainType,t.componentIndex,e._api),a&&Q(a,function(e){n.type===`highlight`?$L(e):eR(e)})}else _R(n)&&t instanceof sW&&(vEe(t,n,e._api),lR(t),vK(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)}},aK={prepareAndUpdate:function(e){nK(this),aK.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){_ke(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),JW.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),sK(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),pK(this,r,i,e,n),JW.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=zA();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}),hK(t,n,r,e,{},a),JW.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),mW.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),pK(this,n,this._api,e,{}),JW.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()}),mW.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)}),JW.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){aK.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=tI(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}}oK=e,sK=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},cK=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=CK[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&bI(s[0]);this[WG]=!0,bK(this);var u=[e],d=!1;e.batch&&(d=!0,u=sA(e.batch,function(t){return t=nA(Z({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=_R(e),_=vR(e);if(_&&aR(this._api),Q(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=Z({},t),p.type=h,f.push(p),_){var a=nI(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;iK(n,c,t,u),vK(n)}else g?(iK(n,c,t,`series`),vK(n)):l&&iK(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[KG]?(nK(this),aK.update.call(this,e),this[KG]=null):aK[c].call(this,e)}catch(e){throw this[WG]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[WG]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;MA(yA(y)),v=nA({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)}},lK=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();cK.call(this,n,e)}},uK=function(e){!e&&this.trigger(`updated`)},dK=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[KG]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},fK=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=qW(n,gR);r&&(gEe(r,e,t._api),vK(t))}).on(`mouseout`,function(e){var n=e.target,r=qW(n,gR);r&&(_Ee(r,e,t._api),vK(t))}).on(`click`,function(e){var n=e.target,r=qW(n,function(e){return jL(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=jL(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;xM(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)})}}pK=function(e,t,r,i,a){n(t),mK(e,t,r,i,a),Q(e._chartsViews,function(e){e.__alive=!1}),hK(e,t,r,i,a),Q(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},mK=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)})},hK=function(e,t,n,r,l,u){var d=e._scheduler;l=Z(l||{},{updatedSeries:t.getSeries()}),JW.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),lR(t)}),d.unfinished=f||d.unfinished,JW.trigger(`series:layoutlabels`,t,n,l),JW.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),JW.trigger(`series:afterupdate`,t,n,l)},vK=function(e){e[qG]=!0,e.getZr().wakeUp()},bK=function(e){e[GG]=(e[GG]+1)%1e6},yK=function(e){e[qG]&&(e.getZr().storage.traverse(function(e){Sz(e)||r(e)}),e[qG]=!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>OA(t.get(`hoverLayerThreshold`),mH.hoverLayerThreshold)&&!Rk.node&&!Rk.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=lB(e);t.eachRendered(function(e){return dB(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Sz(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(Sz(e))return;if(e instanceof xL&&wEe(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)}})}gK=function(e){return new(function(t){X(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){$L(t,n),vK(e)},n.prototype.leaveEmphasis=function(t,n){eR(t,n),vK(e)},n.prototype.enterBlur=function(t){mEe(t),vK(e)},n.prototype.leaveBlur=function(t){tR(t),vK(e)},n.prototype.enterSelect=function(t){nR(t),vK(e)},n.prototype.leaveSelect=function(t){rR(t),vK(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[GG]},n.prototype.usingTHL=function(){return e._usingTHL},n}(JTe))(e)},_K=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[YG]=t}}Q(wK,function(n,r){e._messageCenter.on(r,function(n){if(MK[e.group]&&e[YG]!==XG){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Q(jK,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,XG),Q(i,function(e){e[YG]!==nAe&&e.dispatchAction(r)}),t(i,rAe)}})})}}(),t}(mj),SK=xK.prototype;SK.on=ZG(`on`),SK.off=ZG(`off`),SK.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 iAe=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],CK={},wK={},TK={},EK=[],DK=[],OK=[],kK={},AK={},jK={},MK={},aAe=new Date-0,oAe=new Date-0,NK=`_echarts_instance_`;function sAe(e,t,n){var r=!(n&&n.ssr);if(r){var i=FK(e);if(i)return i}var a=new xK(e,t,n);return a.id=`ec_`+aAe++,jK[a.id]=a,r&&swe(e,NK,a.id),_K(a),JW.trigger(`afterinit`,a),a}function cAe(e){if(mA(e)){var t=e;e=null,Q(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+oAe++,Q(t,function(t){t.group=e})}return MK[e]=!0,e}function PK(e){MK[e]=!1}var lAe=PK;function uAe(e){gA(e)?e=jK[e]:e instanceof xK||(e=FK(e)),e instanceof xK&&!e.isDisposed()&&e.dispose()}function FK(e){return jK[cwe(e,NK)]}function dAe(e){return jK[e]}function IK(e,t){kK[e]=t}function LK(e){rA(DK,e)<0&&DK.push(e)}function RK(e,t){qK(EK,e,t,Xke)}function zK(e){VK(`afterinit`,e)}function BK(e){VK(`afterupdate`,e)}function VK(e,t){JW.on(e,t)}function HK(e,t,n){var r,i,a,o,s;hA(t)&&(n=t,t=``),yA(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;CK[r]||(MA(JG.test(r)&&JG.test(i)),a&&MA(i!==r),CK[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},TK[i]=1,a&&s&&(TK[l]=1),wK[l]=r)}function UK(e,t){zV.register(e,t)}function fAe(e){var t=zV.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function pAe(e,t){QW(e,t)}function WK(e,t){qK(OK,e,t,RG,`layout`,!0)}function GK(e,t){qK(OK,e,t,BG,`visual`,!0)}var KK=[];function qK(e,t,n,r,i,a){if((hA(t)||yA(t))&&(n=t,t=r),!(rA(KK,n)>=0)){KK.push(n);var o=kW.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function JK(e,t){AK[e]=t}function mAe(e){Bk({createCanvas:e})}function YK(e,t,n){var r=XW(`registerMap`);r&&r(e,t,n)}function hAe(e){var t=XW(`getMap`);return t&&t(e)}var XK=TOe;GK(zG,ZOe),GK(VG,QOe),GK(VG,$Oe),GK(zG,dke),GK(VG,fke),GK(HG,Vke),LK(ZH),RK(qke,iOe),JK(`default`,eke),HK({type:UL,event:UL,update:UL},WA),HK({type:WL,event:WL,update:WL},WA),HK({type:$Te,event:GL,update:$Te,action:WA,refineEvent:ZK,publishNonRefinedEvent:!0}),HK({type:eEe,event:GL,update:eEe,action:WA,refineEvent:ZK,publishNonRefinedEvent:!0}),HK({type:tEe,event:GL,update:tEe,action:WA,refineEvent:ZK,publishNonRefinedEvent:!0});function ZK(e,t,n,r){return{eventContent:{selected:yEe(n),isFromClick:t.isFromClick||!1}}}IK(`default`,{}),IK(`dark`,zW);var gAe={},QK=[],_Ae={registerPreprocessor:LK,registerProcessor:RK,registerPostInit:zK,registerPostUpdate:BK,registerUpdateLifecycle:VK,registerAction:HK,registerCoordinateSystem:UK,registerLayout:WK,registerVisual:GK,registerTransform:XK,registerLoading:JK,registerMap:YK,registerImpl:mke,PRIORITY:UG,ComponentModel:sH,ComponentView:dW,SeriesModel:sW,ChartView:mW,registerComponentModel:function(e){sH.registerClass(e)},registerComponentView:function(e){dW.registerClass(e)},registerSeriesModel:function(e){sW.registerClass(e)},registerChartView:function(e){mW.registerClass(e)},registerCustomSeries:function(e,t){QW(e,t)},registerSubTypeDefaulter:function(e,t){sH.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){nF(e,t)}};function $K(e){if(mA(e)){Q(e,function(e){$K(e)});return}rA(QK,e)>=0||(QK.push(e),hA(e)&&(e={install:e}),e.install(_Ae))}function eq(e){return e==null?0:e.length||1}function tq(e){return e}var nq=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||tq,this._newKeyGetter=r||tq,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=eq(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=eq(c),d=eq(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=eq(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=eq(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),vAe=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 yAe(e,t){var n={},r=n.encode={},i=zA(),a=[],o=[],s={};Q(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;rq(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),bAe(n.type)&&(a[0]=t),rq(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}WTe.each(function(e,t){var i=rq(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=sA(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 vAe(s,t),n}function rq(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function iq(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function bAe(e){return!(e===`ordinal`||e===`time`)}var aq=function(){function e(e){this.otherDims={},e!=null&&Z(this,e)}return e}(),xAe=eI(),SAe={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},oq=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||=lq(this.source))},e.prototype.getSourceDimensionIndex=function(e){return OA(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=aU(this.source),n=!uq(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+=SAe[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 sq(e){return e instanceof oq}function cq(e){for(var t=zA(),n=0;n<(e||[]).length;n++){var r=e[n],i=yA(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function lq(e){var t=xAe(e);return t.dimNameMap||=cq(e.dimensionsDefine)}function uq(e){return e>30}var dq=yA,fq=sA,CAe=typeof Int32Array>`u`?Array:Int32Array,wAe=`e\0\0`,pq=-1,TAe=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],EAe=[`_approximateExtent`],mq,hq,gq,_q,vq,yq,bq,xq=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;sq(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=gA(u)?new aq({name:u}):u instanceof aq?u:new aq(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=zA();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(vA(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 BU&&(i=e),!i){var a=this.dimensions,o=$H(e)||oA(e)?new fU(e,a.length):e;i=new BU;var s=fq(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=yAe(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&&bq(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&&KCe(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=XF(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=XF(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)bq(this,o);mq(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){dq(e)?Z(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=gq(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 hq(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 mA(e)?r.getValues(fq(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)?pq:r},e.prototype.each=function(e,t,n){hA(e)&&(n=t,t=e,e=[]);var r=n||this,i=fq(_q(e),this._getStoreDimIndex,this);this._store.each(i,r?fA(t,r):t)},e.prototype.filterSelf=function(e,t,n){hA(e)&&(n=t,t=e,e=[]);var r=n||this,i=fq(_q(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?fA(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=dA(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){hA(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=fq(_q(e),this._getStoreDimIndex,this),o=yq(this);return o._store=this._store.map(a,i?fA(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=fq(_q(e),this._getStoreDimIndex,this);this._store.modify(a,i?fA(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=yq(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=yq(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=yq(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 LB(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new nq(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return hq(e,t)},function(e){return hq(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||{},dq(e)?Z(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),mA(i)?i=i.slice():dq(i)&&(i=Z({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,dq(t)?Z(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){dq(e)?Z(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?Z(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){ML(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:fq(this.dimensions,this._getDimInfo,this),this.hostModel),vq(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];hA(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(AA(arguments)))})},e.internalField=function(){mq=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 CAe(a.categories.length);for(var s=0;s<n.length;s++)n[s]=pq;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},gq=function(e,t,n){return XF(e._getCategory(t,n),null)},hq=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=gq(e,e._idDimIdx,t)),n??=wAe+t,n},_q=function(e){return mA(e)||(e=e==null?[]:[e]),e},yq=function(t){var n=new e(t._schema?t._schema:fq(t.dimensions,t._getDimInfo,t),t.hostModel);return vq(n,t),n},vq=function(e,t){Q(TAe.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,Q(EAe,function(n){e[n]=Qk(t[n])}),e._calculationInfo=Z({},t._calculationInfo)},bq=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=gq(e,i,t)),s==null&&a!=null&&(r[t]=s=gq(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 DAe(e,t){return Sq(e,t).dimensions}function Sq(e,t){$H(e)||(e=tU(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=zA(),a=[],o=OAe(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&uq(o),c=r===e.dimensionsDefine,l=c?lq(e):cq(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=zA(u),f=new PU(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=yA(n)?n:{name:n},o=new aq,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=KF(e).slice();if(n.length===1&&!gA(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);Q(n,function(e,n){var i=gA(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(gA(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=Z({},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=KF(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(nA(o,i),t,a),o.name==null&&n){var s=n[a];!yA(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&nA(o.otherDims,r)})}});function g(e,t,n){WTe.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=kAe(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(bH(e,S)===hH.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return hI(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new oq({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function OAe(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Q(t,function(e){var t;yA(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function kAe(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 AAe=function(){function e(e){this.coordSysDims=[],this.axisMap=zA(),this.categoryAxisMap=zA(),this.coordSysName=e}return e}();function jAe(e){var t=e.get(`coordinateSystem`),n=new AAe(t),r=MAe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var MAe={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,rI).models[0],a=e.getReferringComponents(`yAxis`,rI).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),Cq(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),Cq(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,rI).models[0];t.coordSysDims=[`single`],n.set(`single`,i),Cq(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,rI).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),Cq(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),Cq(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),Cq(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,rI).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 Cq(e){return e.get(`type`)===`category`}function wq(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;NAe(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){gA(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 NAe(e){return!sq(e.schema)}function Tq(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function Eq(e,t){return Tq(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function PAe(e,t){var n=e.get(`coordinateSystem`),r=zV.get(n),i;return t&&t.coordSysDims&&(i=sA(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=iq(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function FAe(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 Dq(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=tU(e)):(i=r.getSource(),a=i.sourceFormat===PL);var o=jAe(t),s=PAe(t,o),c=n.useEncodeDefaulter,l=hA(c)?c:c?pA(_H,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Sq(i,u),f=FAe(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=wq(t,{schema:d,store:p}),h=new xq(d,t);h.setCalculationInfo(m);var g=f!=null&&IAe(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 IAe(e){if(e.sourceFormat===`original`)return!mA(JF(LAe(e.data||[])))}function LAe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Oq=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();SI(Oq);var RAe=0,kq=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++RAe,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&sA(r,zAe);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(!gA(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||=zA(this.categories)},e}();function zAe(e){return yA(e)&&e.value!=null?e.value:e+``}var Aq=dA({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 jq(e,t,n){var r;e||={};var i=YB();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(Q(Aq,function(t){a[t]&&(e[t]=fA(a[t],a))}),r=a)}return r??Lq(e,n),{brk:r,mapper:e}}function Mq(e,t){Q(Aq,function(n){e[n]=t[n]})}function Nq(e,t){e.freeze=WA}function Pq(e){return e.getExtentUnsafe(0,2)}function Fq(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function BAe(e){var t=Fq(e,3);return t[1]-t[0]}function Iq(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Lq(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():lI(),Z(n,VAe),n}var VAe={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=Fq(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){Rq(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),Rq(r,e,t,n)},freeze:function(){}};function Rq(e,t,n,r){fI(n,r)&&(e[t][0]=n,e[t][1]=r)}function zq(e){return Bq(e)||Hq(e)}function Bq(e){return e.type===`interval`}function Vq(e){return e.type===`time`}function Hq(e){return e.type===`log`}function Uq(e){return e.type===`ordinal`}function HAe(e){var t=PF(e),n=mF(10,t),r=dF(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,SF(r*n,-t)}function Wq(e){return wF(e)+2}function Gq(e,t){return hF(e)/hF(t)}function Kq(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 mF(t,e)}function qq(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=uF(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!dI(r[0])||!dI(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function UAe(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Jq(e,t){return e||=t,dF(lF(e,1))}function Yq(e,t,n){var r=Pq(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 Xq=function(e){X(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Mq(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new kq({}),mA(i)&&(i=new kq({categories:sA(i,function(e){return yA(e)?e.value:e})})),r._ordinalMeta=i;var a=jq(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Nq(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:gA(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=dF(e),e},t.prototype.getTicks=function(){var e=[];return Yq(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=cF(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=Pq(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(dF(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}(Oq);Oq.registerClass(Xq);function Zq(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=Wq(f);u<t-1;){var m=SF(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=YB();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Qq=function(e){X(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=jq(r,XB(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 Qk(this._cfg)},t.prototype.setConfig=function(e){var t=Pq(this);this._cfg=e=Qk(e),e.niceExtent??=t.slice(),e.intervalPrecision??=Wq(e.interval)},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Pq(this),i=t.niceExtent,a=t.intervalPrecision,o=YB(),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?SF(i[0]-n,a):r[0]});for(var d=function(e,t){return dF((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=cF(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=SF(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=SF(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?SF(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 Zq(this,e,ZB(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=wF(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),EV(SF(e.value,n,!0))},t.type=`interval`,t}(Oq);Oq.registerClass(Qq);var WAe=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},$q=function(e){X(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=jq(r,XB(r,n),null).brk,r}return t.prototype.getLabel=function(e){return uV(e.value,oV[SDe(lV(this._minLevelUnit))]||oV.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return CDe(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Pq(this),r=YB(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return YB().addBreaksToTicks(o,i.breaks,n),o;o=ZAe(this._minLevelUnit,this._approxInterval,s,n,Iq(this),i);var c=sV.length-1,l=0;return Q(o,function(e){e.time&&(c=Math.min(c,rA(sV,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&YB().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&YB().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(rA(sV,dV(e.vmin,s)),rA(sV,dV(e.vmax,s))),n=0,r=0;r<sV.length;r++)if(!tJ(sV[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:sV[Math.max(i,t)],upperTimeUnit:sV[i]}}),o},t.prototype.getMinorTicks=function(e){return Zq(this,e,ZB(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 vA(e)?Math.round(e):+MF(e)},t.type=`time`,t}(Oq),eJ=[[`second`,$B],[`minute`,eV],[`hour`,tV],[`quarter-day`,tV*6],[`half-day`,tV*12],[`day`,nV*1.2],[`half-week`,nV*3.5],[`week`,nV*7],[`month`,nV*31],[`quarter`,nV*95],[`half-year`,rV/2],[`year`,rV]];function tJ(e,t,n,r){return fV(new Date(t),e,r).getTime()===fV(new Date(n),e,r).getTime()}function GAe(e,t){return e/=nV,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function KAe(e){var t=30*nV;return e/=t,e>6?6:e>3?3:e>2?2:1}function qAe(e){return e/=tV,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function nJ(e,t){return e/=t?eV:$B,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function JAe(e){return lF(FF(e,!0),1)}function YAe(e,t,n){var r=Math.max(0,rA(sV,t)-1);return fV(new Date(e),sV[r],n).getTime()}function XAe(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 ZAe(e,t,n,r,i,a){var o=vDe,s=0;function c(e,t,n,i,o,c,l){for(var u=XAe(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(!tJ(lV(e),r[0],r[1],n)){s&&(i=[{value:YAe(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/nV/365)),p=pV(n),m=wDe(n);break;case`half-year`:case`quarter`:case`month`:f=KAe(t),p=mV(n),m=bV(n);break;case`week`:case`half-week`:case`day`:f=GAe(t,31),p=hV(n),m=xV(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=qAe(t),p=gV(n),m=SV(n);break;case`minute`:f=nJ(t,!0),p=_V(n),m=CV(n);break;case`second`:f=nJ(t,!1),p=vV(n),m=wV(n);break;case`millisecond`:f=JAe(t),p=yV(n),m=TV(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=lV(o[m]);if(xDe(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?lV(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=lA(sA(u,function(e){return lA(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=dV(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}hI(S,gwe,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=dV(r[0],n),k=dV(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 QAe=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=nV,n[1]+=nV),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]-nV}e.setExtent(n[0],n[1]);var i=Jq(t.splitNumber,10),a=Iq(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=eJ.length,l=Math.min(WAe(eJ,a,0,c),c-1),u=eJ[l][1],d=eJ[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};Oq.registerClass($q);var rJ=0,iJ=1,$Ae=2,aJ=function(e){X(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Qq.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[rJ]=i[iJ]=a[rJ]=a[iJ]=NaN,Mq(r,t.mapperMethods);var s=YB(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},$Ae,l),r.powStub=new Qq({breakParsed:l.original}),r.intervalStub=new Qq({breakParsed:l.transformed}),Nq(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=YB(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return sA(i.getTicks(e||{}),function(e){var i=e.value,o=Kq(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,ZB(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Zq(this,e,ZB(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(Gq(e,this.base))},scale:function(e){return Kq(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Gq(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return oJ.depth=n,sJ.lookup=this._lookup,Kq(n===2?e:this.intervalStub.transformOut(e,oJ),this.base,sJ)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!fI(t,n)||t<=0||n<=0)){var r=cJ,i=cJ;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[rJ]=t,r[iJ]=n);var o=this.base;this.intervalStub.setExtent2(e,i[rJ]=Gq(t,o),i[iJ]=Gq(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return fI(t[0],t[1])&&UF(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}(Oq);Oq.registerClass(aJ);var oJ={},sJ={},cJ=[],lJ={value:1,category:1,time:1,log:1},uJ=eI();function dJ(e){var t=e.get(`type`);return(t==null||!UA(lJ,t)&&!Oq.getClass(t))&&(t=`value`),t}function fJ(e,t,n){var r=YB(),i;switch(r&&(i=vJ(e,t,n)),t){case`category`:return new Xq({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:lI()});case`time`:return new $q({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new aJ({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Qq({breakOption:i});default:return new((Oq.getClass(t))||Qq)({})}}function eje(e,t,n){var r=n?Fq(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return fI(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function tje(e){uJ(e).noOnMyZero=!0}function nje(e){return uJ(e).noOnMyZero}function pJ(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=yDe(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(gA(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(hA(t)){if(e.type===`category`)return function(n,r){return t(mJ(e,n),n.value-e.scale.getExtent()[0],null)};var r=YB();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(mJ(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function mJ(e,t){var n=e.scale;return Uq(n)?n.getLabel(t):t.value}function hJ(e){return e.get(`interval`)??`auto`}function rje(e){return e.type===`category`&&hJ(e.getLabelModel())===0}function ije(e,t){var n={};return Q(e.mapDimensionsAll(t),function(t){n[Eq(e,t)]=!0}),dA(n)}function gJ(e){return e===`middle`||e===`center`}function _J(e){return e.getShallow(`show`)}function vJ(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!YB()||!n||!aje(t)?void 0:r}function aje(e){return e!==`category`}function yJ(e,t,n,r,i,a){var o=Hq(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=UAe(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function bJ(e,t){return Uq(e)?e.getRawOrdinalNumber(t.value):t.value}function xJ(e,t){return Uq(e)&&!!t.get(`boundaryGap`)}var SJ=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),oje=mI(),CJ=eI(),sje=eI();function wJ(e,t){var n=e.model,r=CJ(tG(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function cje(e,t){return EJ(wJ(e,t))}function lje(e,t){var n=[];return TJ(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(EJ(e))}),n}function TJ(e,t){var n=CJ(tG(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function EJ(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function uje(e,t){var n=e.model.ecModel,r=CJ(tG(n)).axSer;r&&OJ(n,r.get(e.model.uid),t)}function DJ(e,t,n){var r=wJ(e,t);r&&OJ(e.model.ecModel,r.sers,n)}function OJ(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function dje(e,t){var n=wJ(e,t);if(!n||!n.sers.length)return 0;var r=0;return OJ(e.model.ecModel,n.sers,function(){r++}),r}function kJ(e,t,n){var r=CJ(tG(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function AJ(e,t){var n=e.model,r=CJ(tG(n.ecModel)).keys;r&&Q(r.get(n.uid),function(e){t(e)})}function fje(e){var t=sje(eG(e)),n=t.keyed||=zA();TJ(e,function(t,r,i){var a=n.get(r)||n.set(r,zA()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&jJ.liPosMinGap(e,t,o)})}function pje(e,t){jJ[e]=t}var jJ={};function MJ(e,t,n){if(e){var r=t.ecModel,i=CJ(tG(r)),a=e.model.uid,o=i.axSer||=zA();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=FJ.get(NJ(s,c,n))||FJ.get(NJ(s,c,null));if(l){var u=i.keyed||=zA(),d=i.keys||=zA(),f=l.key,p=u.get(f)||u.set(f,zA()),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 NJ(e,t,n){return e+`|&`+OA(t,!0)+`|&`+(n||``)}function PJ(e,t){var n=NJ(t.seriesType,t.baseAxis,t.coordSysType);FJ.set(n,t),oje(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:fje})})}var FJ=zA(),mje=eI(),hje=3,IJ=function(){function e(e,t,n,r,i){var a=Uq(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(Bq(e)||Hq(e)||Vq(e))&&(dwe(l,RJ(e,t.get(`dataMin`,!0))),fwe(l,RJ(e,t.get(`dataMax`,!0)))),mwe(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]=RJ(e,hA(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]=RJ(e,hA(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=gje(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,!dI(u[0])&&(u[0]=NaN),!dI(u[1])&&(u[1]=NaN);var g=s||EA(u[0])||EA(u[1])||a&&!o,_=Bq(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=RJ(e,t.get(`startValue`,!0)),x=b!=null;!UF(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),UF(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)),LJ(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),LJ(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 LJ(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),pI(t))}function RJ(e,t){return t==null?null:EA(t)?NaN:e.parse(t)}function gje(e,t){var n;if(Uq(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=mA(r)?r:[r,r]}return[zJ(n[0]),zJ(n[1])]}function zJ(e){return BP(typeof e==`boolean`?0:e,1)||0}function BJ(e){var t=mje(e.scale);return t.extent||=lI(),t}function _je(e,t){BJ(e).dimIdxInCoord=t.get(e.dim)}function VJ(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||vje(n,e,i,r,t)}function vje(e,t,n,r,i){var a=BJ(t),o=a.extent,s=!1;uje(t,function(r){if(r.boxCoordinateSystem){var i=VV(r).coord,c=a.dimIdxInCoord;if(c>=0&&mA(i)){var l=i[c];l!=null&&!mA(l)&&uI(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;Q(ije(u,n),function(e){pwe(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=bje(e,t,r);HJ(e,new IJ(e,r,o,s,c),i),a.extent=null}function yje(e,t){var n=e.scale;HJ(n,new IJ(n,e.model,t,!1,!1),hje)}function HJ(e,t,n){e.rawExtentInfo=t,t.from=n}function UJ(e,t){WJ.set(e,t)}var WJ=zA();function GJ(e,t,n,r,i){e.rawExtentInfo||yje({scale:e,model:t},i||lI());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 bje(e,t,n){var r=xJ(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return AJ(t,function(e){a=!!WJ.get(e)||a}),a}function xje(e,t,n,r){if(n.ctnShp){var i;if(AJ(e,function(t){var n=WJ.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],dwe(i,a[0]),fwe(i,a[1]),tje(e))}}),i){var a=t.getExtent();if(Uq(t))e.onBand||t.setExtent2(1,cF(a[0],a[0]+i[0]),lF(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=cF(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=lF(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 KJ(e,t){var n=Hq(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=qq(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?Cje(r,t):Sje(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=Wq(d)),i[0]||(s[0]=SF(fF(s[0]/u)*u,l)),i[1]||(s[1]=SF(pF(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),yJ(e,i,o,s,a,c)}function Sje(e,t){var n=Jq(t.splitNumber,5),r=Iq(e),i=t.minInterval,a=t.maxInterval,o=FF(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Wq(o),c=e.getExtent(),l=[SF(pF(c[0]/o)*o,s),SF(fF(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function Cje(e,t){var n=Jq(t.splitNumber,10),r=e.getExtent(),i=Iq(e),a=lF(NF(i),1);n/i*a<=.5&&(a*=10);var o=Wq(a),s=[SF(pF(r[0]/a)*a,o),SF(fF(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function qJ(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;JJ(t,n,r,i,null)}function JJ(e,t,n,r,i){var a=GJ(e,t,r,n,i),o=Bq(e)||Vq(e);YJ(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&&xje(n,e,a,r)}function YJ(e,t){wje[e.type](e,t)}var wje={interval:KJ,log:KJ,time:QAe,ordinal:WA},Tje=s({createDimensions:()=>DAe,createList:()=>Eje,createScale:()=>Oje,createSymbol:()=>rG,createTextStyle:()=>Aje,dataStack:()=>Dje,enableHoverEmphasis:()=>uR,getECData:()=>jL,getLayoutRect:()=>QV,mixinAxisModelCommonMethods:()=>kje});function Eje(e){return Dq(null,e)}var Dje={isDimensionStacked:Tq,enableDataStack:wq,getStackedDimension:Eq};function Oje(e,t){var n=t;t instanceof LB||(n=new LB(t));var r=dJ(n),i=fJ(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),JJ(i,n,null,null,e),i}function kje(e){aA(e,SJ)}function Aje(e,t){return t||={},SB(e,null,null,t.state!==`normal`)}var jje=1e-8;function XJ(e,t){return Math.abs(e-t)<jje}function ZJ(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+=mL(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!XJ(i[0],s[0])||!XJ(i[1],s[1]))&&(r+=mL(i[0],i[1],s[0],s[1],t,n)),r!==0}var Mje=[];function QJ(e,t){for(var n=0;n<e.length;n++)uj(e[n],e[n],t)}function $J(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])&&(dj(t,t,a),fj(n,n,a))}}function Nje(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 eY=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}(),tY=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),nY=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),rY=function(e){X(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 Nje(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`?$J(t.exterior,n,r,e):Q(t.points,function(t){$J(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 eM(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(ZJ(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(ZJ(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 eM(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(QJ(u.exterior,s),Q(u.interiors,function(e){QJ(e,s)})):Q(u.points,function(e){QJ(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}(eY),Pje=function(e){X(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=Nj(Mje),i=e;i&&!i.isGeoSVGGraphicRoot;)Fj(r,i.getLocalTransform(),r),i=i.parent;return zj(r,r),uj(n,n,r),n},t}(eY);function Fje(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=aY(i,r,n);break;case`Polygon`:iY(i,r,n);break;case`MultiLineString`:iY(i,r,n);break;case`MultiPolygon`:Q(i,function(e,t){return iY(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function iY(e,t,n){for(var r=0;r<e.length;r++)e[r]=aY(e[r],t[r],n)}function aY(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 oY(e,t){return e=Fje(e),sA(lA(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 tY(a[0],a.slice(1)));break;case`MultiPolygon`:Q(r.coordinates,function(e){e[0]&&i.push(new tY(e[0],e.slice(1)))});break;case`LineString`:i.push(new nY([r.coordinates]));break;case`MultiLineString`:i.push(new nY(r.coordinates))}var o=new rY(n[t||`name`],i,n.cp);return o.properties=n,o})}var Ije=s({MAX_SAFE_INTEGER:()=>kF,asc:()=>CF,getPercentWithPrecision:()=>ICe,getPixelPrecision:()=>FCe,getPrecision:()=>wF,getPrecisionSafe:()=>TF,isNumeric:()=>zF,isRadianAroundZero:()=>jF,linearMap:()=>vF,nice:()=>FF,numericToNumber:()=>RF,parseDate:()=>MF,parsePercent:()=>yF,quantile:()=>IF,quantity:()=>NF,quantityExponent:()=>PF,reformIntervals:()=>LF,remRadian:()=>AF,round:()=>PCe}),Lje=s({format:()=>uV,parse:()=>MF,roundTime:()=>fV}),Rje=s({Arc:()=>rz,BezierCurve:()=>nz,BoundingRect:()=>eM,Circle:()=>FR,CompoundPath:()=>iz,Ellipse:()=>IR,Group:()=>QP,Image:()=>CL,IncrementalDisplayable:()=>gz,Line:()=>$R,LinearGradient:()=>oz,Polygon:()=>ZR,Polyline:()=>QR,RadialGradient:()=>sz,Rect:()=>DL,Ring:()=>YR,Sector:()=>JR,Text:()=>kL,clipPointsByRect:()=>qz,clipRectByRect:()=>Jz,createIcon:()=>Yz,extendPath:()=>Mz,extendShape:()=>jz,getShapeClass:()=>Pz,getTransform:()=>Hz,initProps:()=>xz,makeImage:()=>Iz,makePath:()=>Fz,mergePath:()=>Rz,registerShape:()=>Nz,resizePath:()=>zz,updateProps:()=>bz}),zje=s({addCommas:()=>EV,capitalFirst:()=>DDe,encodeHTML:()=>xj,formatTime:()=>EDe,formatTpl:()=>MV,getTextRect:()=>TDe,getTooltipMarker:()=>PV,normalizeCssArray:()=>OV,toCamelCase:()=>DV,truncateText:()=>Nwe}),Bje=s({bind:()=>fA,clone:()=>Qk,curry:()=>pA,defaults:()=>nA,each:()=>Q,extend:()=>Z,filter:()=>lA,indexOf:()=>rA,inherits:()=>iA,isArray:()=>mA,isFunction:()=>hA,isObject:()=>yA,isString:()=>gA,map:()=>sA,merge:()=>$k,reduce:()=>cA}),Vje=eI(),sY=eI(),cY={estimate:1,determine:2};function lY(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function Hje(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:sA(uY(n,r),function(t,n){return{formattedLabel:pJ(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?Wje(e,t):Kje(e)}function Uje(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:uY(i,r)}:e.type===`category`?Gje(e,t):{ticks:r.getTicks(n)}}function uY(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)}),hI(r,_we,null),CF(r),sA(r,function(e){return{value:e}})}function Wje(e,t){var n=e.getLabelModel(),r=dY(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function dY(e,t,n){var r=Jje(e),i=hJ(t),a=n.kind===cY.estimate;if(!a){var o=pY(r,i);if(o)return o}var s,c;hA(i)?s=gY(e,i,!1):(c=i===`auto`?Yje(e,n):i,s=gY(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return mY(r,i,l),!0}):mY(r,i,l),l}function Gje(e,t){var n=qje(e),r=hJ(t),i=pY(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),hA(r))a=gY(e,r,!0);else if(r===`auto`){var s=dY(e,e.getLabelModel(),lY(cY.determine));o=s.labelCategoryInterval,a=sA(s.labels,function(e){return e.tick})}else o=r,a=gY(e,o,!0);return mY(n,r,{ticks:a,tickCategoryInterval:o})}function Kje(e){var t=e.scale.getTicks(),n=pJ(e);return{labels:sA(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var qje=fY(`axisTick`),Jje=fY(`axisLabel`);function fY(e){return function(t){return sY(t)[e]||(sY(t)[e]={list:[]})}}function pY(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function mY(e,t,n){return e.list.push({key:t,value:n}),n}function Yje(e,t){if(t.kind===cY.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return sY(e).autoInterval=n,!0}),n}return sY(e).autoInterval??(sY(e).autoInterval=e.calculateCategoryInterval(t))}function Xje(e,t){var n=t.kind,r=Qje(e),i=pJ(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=IP(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===cY.estimate?(t.out.noPxChangeTryDetermine.push(fA(Zje,null,e,S,c)),S):hY(e,S,c)??S}function Zje(e,t,n){return hY(e,t,n)==null}function hY(e,t,n){var r=Vje(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 Qje(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 gY(e,t,n){var r=pJ(e),i=e.scale,a=[],o=hA(t);return Yq(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 $je=.8;function _Y(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=BAe(r);UF(o)||(o=NaN);var s=e.getExtent(),c=uF(s[1]-s[0]);return Uq(r)?eMe(n,e,o,c):i&&tMe(n,e,o,c,i),a!=null&&(n.w=UF(n.w)?lF(a,n.w):a),n}function eMe(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 tMe(e,t,n,r,i){var a=!1,o=-1/0;Q(i.key?[cje(t,i.key)]:lje(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),UF(n)&&n>0&&UF(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*$je,e.w2=e.w*n/r)}var vY=[0,1],yY=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)),vF(e,vY,bY(this),t)},e.prototype.coordToData=function(e,t){var n=vF(e,bY(this),vY,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=sA(Uje(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(bJ(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=nMe(this,n,r);return sA(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Uq(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),sA(this.scale.getMinorTicks(e),function(e){return sA(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=lY(cY.determine),Hje(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 _Y(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=lY(cY.determine),Xje(this,e)},e}();function bY(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 nMe(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=_Y(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 rMe(e){var t=sH.extend(e);return sH.registerClass(t),t}function iMe(e){var t=dW.extend(e);return dW.registerClass(t),t}function aMe(e){var t=sW.extend(e);return sW.registerClass(t),t}function oMe(e){var t=mW.extend(e);return mW.registerClass(t),t}var xY=Math.PI*2,SY=uL.CMD,sMe=[`top`,`right`,`bottom`,`left`];function cMe(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 lMe(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)%xY<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=fL(i),i=fL(f)}else r=fL(r),i=fL(i);r>i&&(i+=xY);var p=Math.atan2(s,o);if(p<0&&(p+=xY),p>=r&&p<=i||p+xY>=r&&p+xY<=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 CY(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 wY(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 TY=[];function uMe(e,t,n){var r=wY(t.x,t.y,t.width,t.height,e.x,e.y,TY);return n.set(TY[0],TY[1]),r}function dMe(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 SY.M:a=u[p++],o=u[p++],r=a,i=o;break;case SY.L:h=CY(r,i,u[p],u[p+1],d,f,TY,!0),r=u[p++],i=u[p++];break;case SY.C:h=UM(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,TY),r=u[p++],i=u[p++];break;case SY.Q:h=JM(r,i,u[p++],u[p++],u[p],u[p+1],d,f,TY),r=u[p++],i=u[p++];break;case SY.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=lMe(g,_,y,b,b+x,S,C,f,TY),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case SY.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=wY(a,o,w,T,d,f,TY);break;case SY.Z:h=CY(r,i,a,o,d,f,TY,!0),r=a,i=o;break}h<l&&(l=h,n.set(TY[0],TY[1]))}return l}var EY=new Vj,DY=new Vj,OY=new Vj,kY=new Vj,AY=new Vj;function jY(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||sMe,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&zj([],u),f=t.get(`length2`)||0;l&&OY.copy(l);for(var p=0;p<o.length;p++){var m=o[p];cMe(m,0,s,EY,kY),Vj.scaleAndAdd(DY,EY,kY,f),DY.transform(d);var h=e.getBoundingRect(),g=l?l.distance(DY):e instanceof xL?dMe(DY,e.path,OY):uMe(DY,h,OY);g<c&&(c=g,DY.transform(u),OY.transform(u),OY.toArray(a[0]),DY.toArray(a[1]),EY.toArray(a[2]))}PY(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var MY=[],NY=new Vj;function PY(e,t){if(t<=180&&t>0){t=t/180*Math.PI,EY.fromArray(e[0]),DY.fromArray(e[1]),OY.fromArray(e[2]),Vj.sub(kY,EY,DY),Vj.sub(AY,OY,DY);var n=kY.len(),r=AY.len();if(!(n<.001||r<.001)){kY.scale(1/n),AY.scale(1/r);var i=kY.dot(AY);if(Math.cos(t)<i){var a=CY(DY.x,DY.y,OY.x,OY.y,EY.x,EY.y,MY,!1);NY.fromArray(MY),NY.scaleAndAdd(AY,a/Math.tan(Math.PI-t));var o=OY.x===DY.x?(NY.y-DY.y)/(OY.y-DY.y):(NY.x-DY.x)/(OY.x-DY.x);if(isNaN(o))return;o<0?Vj.copy(NY,DY):o>1&&Vj.copy(NY,OY),NY.toArray(e[1])}}}}function fMe(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,EY.fromArray(e[0]),DY.fromArray(e[1]),OY.fromArray(e[2]),Vj.sub(kY,DY,EY),Vj.sub(AY,OY,DY);var r=kY.len(),i=AY.len();if(!(r<.001||i<.001)&&(kY.scale(1/r),AY.scale(1/i),kY.dot(t)<Math.cos(n))){var a=CY(DY.x,DY.y,OY.x,OY.y,EY.x,EY.y,MY,!1);NY.fromArray(MY);var o=Math.PI/2,s=o+Math.acos(AY.dot(t))-n;if(s>=o)Vj.copy(NY,OY);else{NY.scaleAndAdd(AY,a/Math.tan(Math.PI/2-s));var c=OY.x===DY.x?(NY.y-DY.y)/(OY.y-DY.y):(NY.x-DY.x)/(OY.x-DY.x);if(isNaN(c))return;c<0?Vj.copy(NY,DY):c>1&&Vj.copy(NY,OY)}NY.toArray(e[1])}}}function FY(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 pMe(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=oj(r[0],r[1]),a=oj(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=lj([],r[1],r[0],o/i),c=lj([],r[1],r[2],o/a),l=lj([],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 IY(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<HL.length;c++){var l=HL[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:OA(i.states[l]&&i.states[l].ignore,s))||!OA(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&FY(r,!0,l,u);continue}r||(r=new QR,e.setTextGuideLine(r),!d&&(s||!o)&&FY(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),FY(r,!1,l,u)}}if(r){nA(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=pMe}}function LY(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<VL.length;r++){var i=VL[r];n[i]=e.getModel([i,t])}return n}var RY=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],mMe=1,zY=2,BY=mMe|zY;function VY(e,t,n){n||=BY,t?e.dirty|=n:e.dirty&=~n}function HY(e,t){return t||=BY,e.dirty==null||!!(e.dirty&t)}function UY(e){if(e)return HY(e)&&WY(e,e.label,e),e}function WY(e,t,n){var r=t.getComputedTransform();e.transform=cB(e.transform,r);var i=e.localRect=sB(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=MB.textMargin);for(var d=0;d<4;d++)GY[d]=u===MB.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===MB.textMargin&&$z(i,GY,!1,!1);var f=e.rect=sB(e.rect,i);return r&&f.applyTransform(r),u===MB.minMargin&&$z(f,GY,!1,!1),e.axisAligned=aB(r),(e.label=e.label||{}).ignore=t.ignore,VY(e,!1),VY(e,!0,zY),e}var GY=[0,0,0,0];function hMe(e,t,n){return e.transform=cB(e.transform,n),e.localRect=sB(e.localRect,t),e.rect=sB(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=aB(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function KY(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 qY(e,t){for(var n=0;n<RY.length;n++){var r=RY[n];e[r]??(e[r]=t[r])}return UY(e)}function JY(e){var t=e.obb;return(!t||HY(e,zY))&&(e.obb=t||=new hz,t.fromBoundingRect(e.localRect,e.transform),VY(e,!1,zY)),t}function YY(e,t,n,r,i){var a=e.length,o=kz[t],s=Az[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 gMe(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 XY(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=UY(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(ZY(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function ZY(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:JY(e).intersect(JY(t),n,r)}function _Me(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function vMe(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:_Me(r&&r.shape.points)}}var QY=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],$Y=new wP,eX=eI(),yMe=eI();function tX(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var nX=[`x`,`y`,`rotation`],bMe=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();eM.applyTransform(c,c,s),s?$Y.setLocalTransform(s):($Y.x=$Y.y=$Y.rotation=$Y.originX=$Y.originY=0,$Y.scaleX=$Y.scaleY=1),$Y.rotation=fL($Y.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();eM.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:$Y.x,y:$Y.y,scaleX:$Y.scaleX,scaleY:$Y.scaleY,rotation:$Y.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`);(hA(r)||dA(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=jL(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(){jY(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=hA(a.layoutOptionOrCb)?a.layoutOptionOrCb(vMe(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=yF(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=yF(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=eX(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<QY.length;m++){var h=QY[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(qY({},e))});var i=lA(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=lA(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});YY(i,0,0,t),YY(a,1,0,n);var o=lA(r,function(e){return e.layoutOption.hideOverlap});gMe(o),XY(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=eX(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=jL(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`);IY(e,LY(o),s),jY(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&&!Sz(e))){var i=eX(n),a=i.oldLayout,o=jL(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&&(rA(u,`select`)>=0&&n.attr(i.oldLayoutSelect),rA(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),bz(n,c,t,s)}else if(n.attr(c),!kB(n).valueAnimation){var d=OA(n.style.opacity,1);n.style.opacity=0,xz(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};tX(f,c,nX),tX(f,n.states.select,nX)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};tX(p,c,nX),tX(p,n.states.emphasis,nX)}jB(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=yMe(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),bz(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,xz(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),rX=eI();function xMe(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=rX(t).labelManager;r||=rX(t).labelManager=new bMe,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=rX(t).labelManager;Q(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var iX=Math.sin,aX=Math.cos,oX=Math.PI,sX=Math.PI*2,SMe=180/oX,cX=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=wN(u-sX)||(l?c>=sX:-c>=sX),f=c>0?c%sX:c%sX+sX,p=!1;p=d?!0:wN(u)?!1:f>=oX==!!l;var m=e+n*aX(a),h=t+r*iX(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*SMe);if(d){var _=1/this._p,v=(l?1:-1)*(sX-_);this._add(`A`,n,r,g,1,+l,e+n*aX(a+v),t+r*iX(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*aX(o),b=t+r*iX(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}(),lX=`none`,CMe=Math.round;function wMe(e){var t=e.fill;return t!=null&&t!==lX}function TMe(e){var t=e.stroke;return t!=null&&t!==lX}var uX=[`lineCap`,`miterLimit`,`lineJoin`],EMe=sA(uX,function(e){return`stroke-`+e.toLowerCase()});function DMe(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof CL){e(`opacity`,i);return}if(wMe(t)){var a=SN(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`,lX);if(TMe(t)){var s=SN(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=uG(n),p=f[0],m=f[1];p&&(m=CMe(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,lX);for(var h=0;h<uX.length;h++){var g=uX[h];if(r||t[g]!==yL[g]){var _=t[g]||yL[g];_&&e(EMe[h],_)}}}else r&&e(`stroke`,lX)}var dX=`http://www.w3.org/2000/svg`,fX=`http://www.w3.org/1999/xlink`,OMe=`http://www.w3.org/2000/xmlns/`,kMe=`http://www.w3.org/XML/1998/namespace`,AMe=`ecmeta_`;function pX(e){return document.createElementNS(dX,e)}function mX(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function jMe(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 MMe(e){return`</`+e+`>`}function hX(e,t){t||={};var n=t.newline?`
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return jMe(i,a)+(i===`style`?o||``:xj(o))+(t?``+n+sA(t,function(e){return r(e)}).join(n)+n:``)+MMe(i)}return r(e)}function NMe(e,t,n){n||={};var r=n.newline?`
`:``,i=` {`+r,a=r+`}`,o=sA(dA(e),function(t){return t+i+sA(dA(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=sA(dA(t),function(e){return`@keyframes `+e+i+sA(dA(t[e]),function(n){return n+i+sA(dA(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 gX(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function _X(e,t,n,r){return mX(`svg`,`root`,{width:e,height:t,xmlns:dX,"xmlns:xlink":fX,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var PMe=0;function vX(){return PMe++}var yX={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`},bX=`transform-origin`;function FMe(e,t,n){var r=Z({},e.shape);Z(r,t),e.buildPath(n,r);var i=new cX;return i.reset(NN(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function IMe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[bX]=n+`px `+r+`px`)}var LMe={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function xX(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function RMe(e,t,n){var r=e.shape.paths,i={},a,o;if(Q(r,function(e){var t=gX(n.zrId);t.animation=!0,CX(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=dA(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=xX(i,n);return a.replace(o,s)}}function SX(e){return gA(e)?yX[e]?`cubic-bezier(`+yX[e]+`)`:YM(e)?e:``:``}function CX(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof iz){var s=RMe(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=SX(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=SX(d.easing),m=d.rawValue;(gA(m)||vA(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={};OP(g,e),Z(g,s[h]);var _=PN(g),v=s[h][u];l[h]=_?{transform:_}:{},IMe(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 uL);var S=y.len();y.reset(),l[h].d=FMe(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 LMe[e]})}for(var w=dA(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][bX]!==l[O][bX]){T=!1;break}E=l[D][bX]}if(T&&E){for(var h in l)l[h][bX]&&delete l[h][bX];t[bX]=E}if(lA(w,function(e){return dA(l[e]).length>0}).length)return xX(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-`+vX();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function zMe(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};wX(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=bN(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),wX(r,t,n,!0)}}function wX(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+vX(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var TX=Math.round;function EX(e){return e&&gA(e.src)}function DX(e){return e&&hA(e.toDataURL)}function OX(e,t,n,r){DMe(function(i,a){var o=i===`fill`||i===`stroke`;o&&jN(a)?IX(t,e,i,r):o&&ON(a)?LX(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),KMe(n,e,r)}function kX(e,t){var n=iF(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[AMe+`silent`]=`true`))}function AX(e){return wN(e[0]-1)&&wN(e[1])&&wN(e[2])&&wN(e[3]-1)}function BMe(e){return wN(e[4])&&wN(e[5])}function jX(e,t,n){if(t&&!(BMe(t)&&AX(t))){var r=n?10:1e4;e.transform=AX(t)?`translate(`+TX(t[4]*r)/r+` `+TX(t[5]*r)/r+`)`:qSe(t)}}function MX(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(TX(r[a][0]*n)/n),i.push(TX(r[a][1]*n)/n);t.points=i.join(` `)}function NX(e){return!e.smooth}function VMe(e){var t=sA(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]]=TX(o*r)/r)}}}var HMe={circle:[VMe([`cx`,`cy`,`r`])],polyline:[MX,NX],polygon:[MX,NX]};function UMe(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function PX(e,t){var n=e.style,r=e.shape,i=HMe[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&NN(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&UMe(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 cX,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return jX(a,e.transform),OX(a,n,e,t),kX(a,e),t.animation&&CX(e,a,t),t.emphasis&&zMe(e,a,t),mX(s,e.id+``,a)}function WMe(e,t){var n=e.style,r=n.image;if(r&&!gA(r)&&(EX(r)?r=r.src:DX(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),jX(c,e.transform),OX(c,n,e,t),kX(c,e),t.animation&&CX(e,c,t),mX(`image`,e.id+``,c)}}function GMe(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=YSe(n.y||0,zP(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":JSe[n.textAlign]||n.textAlign};if(LTe(n)){var c=``,l=n.fontStyle,u=FTe(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),jX(s,e.transform),OX(s,n,e,t),kX(s,e),t.animation&&CX(e,s,t),mX(`text`,e.id+``,s,void 0,r)}}function FX(e,t){if(e instanceof xL)return PX(e,t);if(e instanceof CL)return WMe(e,t);if(e instanceof SL)return GMe(e,t)}function KMe(e,t,n){var r=e.style;if(XSe(r)){var i=ZSe(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=SN(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]=mX(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[mX(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=MN(o)}}function IX(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(kN(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(AN(i))a=`radialGradient`,o.cx=OA(i.x,.5),o.cy=OA(i.y,.5),o.r=OA(i.r,.5);else return;for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=EN(s[l].offset)*100+`%`,f=s[l].color,p=SN(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(mX(`stop`,l+``,g))}var _=hX(mX(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=mX(a,y,o,c)),t[n]=MN(y)}function LX(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(DN(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(gA(h)?m=h:EX(h)?m=h.src:DX(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;MA(f,g),MA(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=TI(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=mX(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=Qk(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=PN(i);x&&(o.patternTransform=x);var S=mX(`pattern`,``,o,[d]),C=hX(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=mX(`pattern`,T,o,[d])),t[n]=MN(T)}}function qMe(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]=mX(`clipPath`,a,o,[PX(e,n)])}t[`clip-path`]=MN(a)}function RX(e){return document.createTextNode(e)}function zX(e,t,n){e.insertBefore(t,n)}function BX(e,t){e.removeChild(t)}function VX(e,t){e.appendChild(t)}function HX(e){return e.parentNode}function UX(e){return e.nextSibling}function WX(e,t){e.textContent=t}var GX=58,JMe=120,YMe=mX(``,``);function KX(e){return e===void 0}function qX(e){return e!==void 0}function XMe(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 JX(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function YX(e){var t,n=e.children,r=e.tag;if(qX(r)){var i=e.elm=pX(r);if(QX(YMe,e),mA(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&VX(i,YX(a))}else qX(e.text)&&!yA(e.text)&&VX(i,RX(e.text))}else e.elm=RX(e.text);return e.elm}function XX(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&zX(e,YX(a),t)}}function ZX(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(qX(i.tag)?BX(HX(i.elm),i.elm):BX(e,i.elm))}}function QX(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)===JMe?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(OMe,n,o):n.charCodeAt(3)===GX?r.setAttributeNS(kMe,n,o):n.charCodeAt(5)===GX?r.setAttributeNS(fX,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function ZMe(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]:JX(o,l)?($X(o,l),o=t[++r],l=n[++i]):JX(s,u)?($X(s,u),s=t[--a],u=n[--c]):JX(o,u)?($X(o,u),zX(e,o.elm,UX(s.elm)),o=t[++r],u=n[--c]):JX(s,l)?($X(s,l),zX(e,s.elm,o.elm),s=t[--a],l=n[++i]):(KX(d)&&(d=XMe(t,r,a)),f=d[l.key],KX(f)?zX(e,YX(l),o.elm):(p=t[f],p.tag===l.tag?($X(p,l),t[f]=void 0,zX(e,p.elm,o.elm)):zX(e,YX(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,XX(e,m,n,i,c)):ZX(e,t,r,a))}function $X(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(QX(e,t),KX(t.text)?qX(r)&&qX(i)?r!==i&&ZMe(n,r,i):qX(i)?(qX(e.text)&&WX(n,``),XX(n,null,i,0,i.length-1)):qX(r)?ZX(n,r,0,r.length-1):qX(e.text)&&WX(n,``):e.text!==t.text&&(qX(r)&&ZX(n,r,0,r.length-1),WX(n,t.text)))}function QMe(e,t){if(JX(e,t))$X(e,t);else{var n=e.elm,r=HX(n);YX(t),r!==null&&(zX(r,t.elm,UX(n)),ZX(r,[e],0,0))}return t}var $Me=0,eNe=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=tNe(`configLayer`),this.storage=t,this._opts=n=Z({},n),this.root=e,this._id=`zr`+$Me++,this._oldVNode=_X(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=pX(`svg`);QX(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`,QMe(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return FX(e,gX(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=gX(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=nNe(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=mX(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=sA(dA(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(mX(`defs`,`defs`,{},c)),e.animation){var l=NMe(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=mX(`style`,`stl`,{},[],l);a.push(u)}}return _X(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},hX(this.renderToVNode({animation:OA(e.cssAnimation,!0),emphasis:OA(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:OA(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 _={};qMe(d[g],_,t);var v=mX(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=FX(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=lG(r,0,n),t=lG(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(ON(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=$Se(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function tNe(e){return function(){}}function nNe(e,t,n,r){var i;if(n&&n!==`none`)if(i=mX(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),jN(n))IX({fill:n},i.attrs,`fill`,r);else if(ON(n))LX({style:{fill:n},dirty:WA,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=SN(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}return i}function rNe(e){e.registerPainter(`svg`,eNe)}function eZ(e,t,n){var r=zk.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 tZ(e){return!e.__cursors.get(0)}function nZ(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var rZ=function(e){qA(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||=pP,typeof t==`string`?a=eZ(t,n,r):yA(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(HA(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=nZ(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=eZ(`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 eM(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new eM(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 eM(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 eM(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=nZ(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;CA(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||sG(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):wA(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=gG(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}(mj),iZ=1e5,aZ=314159,oZ=void 0,iNe=1,sZ=2;function aNe(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function oNe(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 cZ(e,t,n,r){var i=new rZ(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,lZ(i),i}function lZ(e){e.__cursorStack=[],e.__cursors=zA()}function sNe(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function cNe(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,sNe({key:r})))}function uZ(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function dZ(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function fZ(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&pZ)||s.__builtin__)&&(!(n&mZ)||!s.__builtin__)&&(!(n&hZ)||s!==e.hoverlayer))&&t(s,a,o,i)}}var pZ=1,mZ=2,hZ=4,gZ=pZ|hZ,lNe=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=Z({},n||{}),this.dpr=n.devicePixelRatio||pP,this._singleCanvas=i,this.root=e,e.style&&(HA(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=cZ(a,this,aZ,0);c.initContext(),this._insertLayer(c,aZ,0,!0),this._domRoot=e}else{this._width=lG(e,0,n),this._height=lG(e,1,n);var l=this._domRoot=oNe(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&&!yA(e)?{paintAll:!!e}:e||{},n=OA(t.refresh,!0),r=OA(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=sZ),!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 fZ(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},mZ),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=oZ,n!==oZ&&(!t&&n===sZ&&(t=this._i.hoverlayer=this._ensureLayer(iZ)),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),OG(i,s,r),c&&(s.style=l)}}i&&(kG(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(iZ)},e.prototype.paintOne=function(e,t){DG(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)fZ(this._i,function(e){e.afterBrush&&e.afterBrush()},gZ),this._paintHoverList(e);else{var i=this;TM(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(aZ).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),fZ(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},pZ)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return fZ(this._i,function(i){var a=!1;if(uZ(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!tZ(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)}uZ(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},gZ),Rk.wxa&&fZ(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=tZ(e),c=s&&zk.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=sZ),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(OG(o,f,a),f.setPrevPaintRect(p))}else OG(o,f,a);if(s&&zk.getTime()-c>15){d++;break}}}kG(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=aZ,t=0);var i=dZ(this._i,e)[t];return i||(i=cZ(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&$k(i,this._layerConfig[e],!0),(n||r&&e!==aZ)&&(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])&&aNe(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=dZ(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),dZ(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 fZ(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return fZ(this._i,function(n,r){e.call(t,n,r)},pZ)},e.prototype.eachOtherLayer=function(e,t){return fZ(this._i,function(n,r){e.call(t,n,r)},mZ)},e.prototype.getLayers=function(){var e={};return fZ(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}}fZ(n._i,function(e){e.__dirty=!1,uZ(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},gZ);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__)){Zk(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=cNe(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))}fZ(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;(tZ(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&&(uZ(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===oZ&&(n._hoverLayerDirty=iNe))},gZ)},e.prototype.clear=function(){return fZ(this._i,function(e){e.clear(),lZ(e)},pZ),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,fZ(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?$k(n[e],t,!0):n[e]=t,fZ(this._i,function(e,t){$k(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=lG(i,0,r),t=lG(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,fZ(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(aZ).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[aZ][0].dom;var t=new rZ(`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;fZ(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];OG(n,l,a)}kG(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function uNe(e){e.registerPainter(`canvas`,lNe)}var dNe=function(e){X(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 Dq(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new QP,n=rG(`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=rG(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}(sW);function _Z(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=xU(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(xU(e,t,n[o]));return a.join(` `)}}function vZ(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!mA(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 yZ=function(e){X(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=rG(e,-1,-1,2,2,null,a);o.attr({z2:OA(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=fNe,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(){$L(this.childAt(0))},t.prototype.downplay=function(){eR(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):bz(f,p,o,n),Ez(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,xz(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=xB(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=aG(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 CL){var S=a.style;a.useStyle(Z({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(Z({},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;bB(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):_Z(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),dR(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=jL(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Cz(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Cz(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return iG(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(QP);function fNe(e,t){this.parent.drift(e,t)}function bZ(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 xZ(e){return e!=null&&!yA(e)&&(e={isIgnore:e}),e||{}}function SZ(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:xB(t),cursorStyle:t.get(`cursor`)}}function CZ(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 wZ=function(){function e(e){this.group=new QP,this._SymbolCtor=e||yZ}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=xZ(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=SZ(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);bZ(e,i,r,t)&&CZ(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!bZ(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):bz(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);bZ(t,s,i,e)?(o||=CZ(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=SZ(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=xZ(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(bZ(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){iB(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 TZ(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=pNe(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=sA(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return Tq(t,d[0])&&(f=!0,d[0]=p),Tq(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 pNe(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:vA(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function EZ(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 DZ(e,t){return!isFinite(e)||!isFinite(t)}var mNe=typeof Float32Array<`u`?Float32Array:void 0,hNe=typeof Float64Array<`u`?Float64Array:void 0;function OZ(e){return kZ({ctor:mNe},e).arr}function kZ(e,t){var n=e.arr,r=e.ctor;if(t>kF&&(t=kF),!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 gNe(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 _Ne(e,t,n,r,i,a,o,s){for(var c=gNe(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=TZ(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=EZ(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=OZ(M),P=OZ(M),F=OZ(M),I=OZ(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 AZ=Math.min,jZ=Math.max;function MZ(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(DZ(_,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(;DZ(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||DZ(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=AZ(O,jZ(S,_)),k=AZ(k,jZ(C,v)),O=jZ(O,AZ(S,_)),k=jZ(k,AZ(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=AZ(p,jZ(l,_)),m=AZ(m,jZ(u,v)),p=jZ(p,AZ(l,_)),m=jZ(m,AZ(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 NZ=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),vNe=function(e){X(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 NZ},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&DZ(n[i*2-2],n[i*2-1]);i--);for(;r<i&&DZ(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=MZ(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=uL.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?BM(i,u,f,m,e,s):BM(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?RM(a,d,p,h,b):RM(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(xL),yNe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(NZ),PZ=function(e){X(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 yNe},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&&DZ(n[a*2-2],n[a*2-1]);a--);for(;i<a&&DZ(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=MZ(e,n,i,a,a,1,t.smooth,o,t.connectNulls);MZ(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(xL);function FZ(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 DL({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=hA(i)?function(e){i(e,d)}:null;xz(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function IZ(e,t,n){var r=e.getArea(),i=SF(r.r0,1),a=SF(r.r,1),o=new JR({shape:{cx:SF(e.cx,1),cy:SF(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,xz(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function LZ(e,t,n,r,i){return e?e.type===`polar`?IZ(e,t,n):e.type===`cartesian2d`?FZ(e,t,n,r,i):null:null}function RZ(e,t,n){e?t.setClipPath(n):t.removeClipPath()}function zZ(e){var t=e.coordinateSystem;if(e.get(`clip`,!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function BZ(e,t){return e.type===t}function VZ(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`&&!!e.getViewRect}function HZ(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||UA(e,`text`)))}function UZ(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},UA(r,`text`)&&(o.text=r.text),UA(r,`rich`)&&(o.rich=r.rich),UA(r,`textFill`)&&(o.fill=r.textFill),UA(r,`textStroke`)&&(o.stroke=r.textStroke),UA(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),UA(r,`fontSize`)&&(o.fontSize=r.fontSize),UA(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),UA(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=UA(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),UA(r,`textPosition`)&&(i.position=r.textPosition),UA(r,`textOffset`)&&(i.offset=r.textOffset),UA(r,`textRotation`)&&(i.rotation=r.textRotation),UA(r,`textDistance`)&&(i.distance=r.textDistance)}return WZ(o,e),Q(o.rich,function(e){WZ(e,e)}),{textConfig:i,textContent:a}}function WZ(e,t){t&&(t.font=t.textFont||t.font,UA(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),UA(t,`textAlign`)&&(e.align=t.textAlign),UA(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),UA(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),UA(t,`textWidth`)&&(e.width=t.textWidth),UA(t,`textHeight`)&&(e.height=t.textHeight),UA(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),UA(t,`textPadding`)&&(e.padding=t.textPadding),UA(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),UA(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),UA(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),UA(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),UA(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),UA(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),UA(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function GZ(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;KZ(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){KZ(e,e)}),r}function KZ(e,t){t&&(UA(t,`fill`)&&(e.textFill=t.fill),UA(t,`stroke`)&&(e.textStroke=t.fill),UA(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),UA(t,`font`)&&(e.font=t.font),UA(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),UA(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),UA(t,`fontSize`)&&(e.fontSize=t.fontSize),UA(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),UA(t,`align`)&&(e.textAlign=t.align),UA(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),UA(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),UA(t,`width`)&&(e.textWidth=t.width),UA(t,`height`)&&(e.textHeight=t.height),UA(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),UA(t,`padding`)&&(e.textPadding=t.padding),UA(t,`borderColor`)&&(e.textBorderColor=t.borderColor),UA(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),UA(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),UA(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),UA(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),UA(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),UA(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),UA(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),UA(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),UA(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),UA(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function qZ(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function JZ(e){for(var t=lI(),n=lI(),r=0;r<e.length;){var i=e[r++],a=e[r++];DZ(i,a)||(uI(t,i),uI(n,a))}return[t,n]}function YZ(e,t){var n=JZ(e),r=n[0],i=n[1],a=JZ(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 XZ(e){return vA(e)?e:e?.5:0}function bNe(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=OZ(r*2),a=0;a<r;a++){var o=EZ(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function ZZ(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;DZ(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 xNe(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:mN((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 SNe(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=sA(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=xNe(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 oz(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function CNe(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&wNe(a,t))){var o=t.mapDimension(a.dim),s={};return Q(a.getViewLabels(),function(e){e.tick.offInterval||(s[bJ(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function wNe(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(yZ.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function TNe(e){for(var t=e.length/2;t>0&&DZ(e[t*2-2],e[t*2-1]);t--);return t-1}function QZ(e,t){return[e[t*2],e[t*2+1]]}function ENe(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],!DZ(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<VL.length;t++)if(e.get([VL[t],`endLabel`,`show`]))return!0;return!1}function eQ(e,t,n,r){if(BZ(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=FZ(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 IZ(t,n,r)}function DNe(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 ONe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new QP,t=new wZ;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=fA(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=TZ(r,a,_),y=g&&bNe(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&CNe(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=SNe(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&&=ZZ(y,c,r,w,x),c=ZZ(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,FV(E)),m.setClipPath(eQ(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,FV(E));var D=m.getClipPath();D?xz(D,{shape:eQ(this,r,!1,e).shape},e):m.setClipPath(eQ(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]]}}),(!qZ(this._stackedOnPoints,y)||!qZ(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=ZZ(y,c,r,w,x),c=ZZ(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(nA(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),mR(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}jL(f).seriesIndex=e.seriesIndex,dR(f,k,A,j);var N=XZ(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(nA(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(I=XZ(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:P,connectNulls:x}),mR(p,e,`areaStyle`),jL(p).seriesIndex=e.seriesIndex,dR(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){jL(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=$F(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(DZ(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new yZ(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 mW.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=$F(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 mW.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;XL(this._polyline,e),t&&XL(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new vNe({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 PZ({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`);hA(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=hA(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=hA(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 kL({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=TNe(o);c>=0&&(bB(a,xB(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?_Z(i,e):vZ(i,n)},enableTextSetter:!0},DNe(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=ENe(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=QZ(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=uwe(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=QZ(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=kB(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=_Ne(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=ZZ(u.stackedOnCurrent,u.current,n,i,o),d=ZZ(u.current,null,n,i,o),m=ZZ(u.stackedOnNext,u.next,n,i,o),p=ZZ(u.next,null,n,i,o)),YZ(d,p)>3e3||c&&YZ(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(),bz(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),bz(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}(mW);function tQ(e,t){return{seriesType:e,plan:fW(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=sA(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);Tq(n,o[0])&&(o[0]=c),Tq(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&&OZ(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 kNe={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]}},ANe=function(e){return Math.round(e.length/2)};function nQ(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;gA(i)?p=kNe[i]:hA(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,ANe))}}}}}function jNe(e){e.registerChartView(ONe),e.registerSeriesModel(dNe),e.registerLayout(tQ(`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,nQ(`line`))}var rQ=function(e){X(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}(yY),iQ=null;function MNe(e){iQ||=e}function aQ(){return iQ}var oQ=`expandAxisBreak`,NNe=`collapseAxisBreak`,PNe=`toggleAxisBreak`,sQ=`axisbreakchanged`,FNe={type:oQ,event:sQ,update:`update`,refineEvent:cQ},INe={type:NNe,event:sQ,update:`update`,refineEvent:cQ},LNe={type:PNe,event:sQ,update:`update`,refineEvent:cQ};function cQ(e,t,n,r){var i=[];return Q(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function RNe(e){e.registerAction(FNe,t),e.registerAction(INe,t),e.registerAction(LNe,t);function t(e,t){var n=[],r=tI(t,e);function i(t,i){Q(r[t],function(t){Q(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(nA((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var lQ=Math.PI,zNe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],BNe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],uQ=eI(),dQ=eI(),fQ=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 VNe(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=EQ(e.axisName)&&gJ(e.nameLocation);Q(r,function(e){var t=UY(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?zj(pQ,n.transform):Nj(pQ),t.transform&&Fj(pQ,pQ,t.transform),eM.copy(mQ,t.localRect),mQ.applyTransform(pQ),s?s.union(mQ):eM.copy(s=new eM(0,0,0,0),mQ))}});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 eM(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var pQ=Mj(),mQ=new eM(0,0,0,0),hQ=function(e,t,n,r,i,a){if(gJ(e.nameLocation)){var o=a.stOccupiedRect;o&&gQ(hMe({},o,a.transGroup.transform),r,i)}else _Q(a.labelInfoList,a.dirVec,r,i)};function gQ(e,t,n){var r=new Vj;ZY(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&KY(t,r)}function _Q(e,t,n,r){for(var i=Vj.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||gQ(s,n,r)}}var vQ=function(){function e(e,t,n,r){this.group=new QP,this._axisModel=e,this._api=t,this._local={},this._shared=r||new fQ(hQ),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=OA(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=OA(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:OA(e.nameDirection,1),tickDirection:OA(e.tickDirection,1),labelDirection:OA(e.labelDirection,1),labelOffset:OA(e.labelOffset,0),silent:OA(e.silent,!0),axisName:r,nameLocation:kA(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:EQ(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new QP({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 Vj(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(HNe,function(r){e[r]&&UNe[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=AF(t-e),i,a;return jF(r)?(a=n>0?`top`:`bottom`,i=`center`):jF(r-lQ)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<lQ?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}(),HNe=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],UNe={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&&(uj(u,u,l),uj(d,d,l));var p=Z({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&QB(r.axis.scale))aQ().buildAxisBreakLine(r,i,a,m);else{var h=new $R(Z({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));Bz(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`]);gA(g)&&(g=[g,g]),(gA(_)||vA(_))&&(_=[_,_]);var v=aG(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=rG(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){SQ(t,i,s)&&yQ(e,t,n,r,i,a,o,cY.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){SQ(t,i,s)&&yQ(e,t,n,r,i,a,o,cY.determine);var c=qNe(e,i,a,r);KNe(e,t.labelLayoutList,c),JNe(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(EQ(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 Vj(0,0),_=new Vj(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=Mj();_.transform(Lj(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*lQ/180);var b,x;gJ(u)?b=vQ.innerTextLayout(e.rotation,y??e.rotation,d):(b=WNe(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=DA(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new kL({x:g.x,y:g.y,rotation:b.rotation,silent:vQ.isLabelSilent(r),style:SB(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(nB({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=vQ.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,jL(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=UY({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:gJ(u)?zNe[E]:BNe[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 yQ(e,t,n,r,i,a,o,s){CQ(t)||YNe(e,t,i,s,r,o);var c=t.labelLayoutList;XNe(e,r,c,a),$Ne(r,e.rotation,c);var l=e.optionHideOverlap;GNe(r,c,l),l&&XY(lA(c,function(e){return e&&!e.label.ignore})),VNe(e,n,r,c)}function WNe(e,t,n,r){var i=AF(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return jF(i-lQ/2)?(o=c?`bottom`:`top`,a=`center`):jF(i-lQ*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<lQ*1.5&&i>lQ/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function GNe(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(rje(r))return;function a(e,a,o){var s=UY(t[a]),c=UY(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=uQ(s.label).labelInfo.tick;if(Vq(l)&&u.notNice||Uq(l)&&u.offInterval){bQ(s.label);return}}if(e===!1||s.suggestIgnore){bQ(s.label);return}if(c.suggestIgnore){bQ(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=qY({marginForce:f},s),c=qY({marginForce:f},c)}ZY(s,c,null,{touchThreshold:d})&&bQ(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 KNe(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=dQ(r),a=uQ(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){bQ(r);return}}})}function bQ(e){e&&(e.ignore=!0)}function xQ(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&&(uj(o,o,t),uj(s,s,t));var u=new $R({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Bz(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=dQ(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function qNe(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=xQ(i.getTicksCoords(),n.transform,c,nA(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function JNe(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=nA(c.getLineStyle(),nA(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=xQ(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function SQ(e,t,n){if(CQ(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),wQ(e,null,null,null))}return!0}function YNe(e,t,n,r,i,a){var o=i.axis,s=DA(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new QP;n.add(c);var l=lY(r);if(!s||o.scale.isBlank()){wQ(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(DA(e.raw.labelRotate,u.get(`rotate`))||0)*lQ/180,p=vQ.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=bJ(o.scale,n);if(m&&m[f]){var y=m[f];yA(y)&&y.textStyle&&(l=new LB(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=OA(l.getShallow(`alignMinLabel`,!0),x),C=OA(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=OA(l.getShallow(`verticalAlignMinLabel`,!0),w),E=OA(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new kL({x:0,y:0,rotation:0,silent:vQ.isLabelSilent(i),z2:D,style:SB(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:hA(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=uQ(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,nB({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=vQ.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),jL(O).eventData=A,j&&QNe(i,a,O,j)}h.push(O),c.add(O)}),wQ(t,sA(h,function(e){return{label:e,priority:uQ(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function CQ(e){return!!e.labelLayoutList}function wQ(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function XNe(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);Q(n,function(n,a){var o=UY(n);if(o){var s=o.label,c=uQ(s);o.suggestIgnore=s.ignore,s.ignore=!1,OP(TQ,ZNe);var l=t.axis;TQ.x=l.dataToCoord(bJ(l.scale,c.labelInfo.tick)),TQ.y=e.labelOffset+e.labelDirection*i,TQ.rotation=c.layoutRotation,r.add(TQ),TQ.updateTransform(),r.remove(TQ),TQ.decomposeTransform(),OP(s,TQ),s.markRedraw(),VY(o,!0),UY(o)}})}var TQ=new DL,ZNe=new DL;function EQ(e){return!!e}function QNe(e,t,n,r){n.on(`click`,function(n){var i={type:oQ,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function $Ne(e,t,n){var r=YB();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&uQ(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&Q(i,function(r){aQ().adjustBreakLabelPair(e.axis.inverse,t,[UY(n[r[0]]),UY(n[r[1]])])})}}function DQ(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),DA(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 ePe(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function tPe(e){var t={xAxisModel:null,yAxisModel:null};return Q(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,rI).models[0]}),t}function nPe(e,t,n,r,i,a){for(var o=DQ(e,n),s=!1,c=!1,l=0;l<t.length;l++)zq(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 vQ(n,r,o,i)}function rPe(e,t,n){var r=DQ(t,n);e.updateCfg(r)}function iPe(e){return e.dim+`_`+e.index}function aPe(){pje(`liPosMinGap`,oPe)}function oPe(e,t,n){var r=zA(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=AU(u);function f(n){OJ(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}kZ(OQ,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||jU(d,a))&&(l&&(a=c.transformIn(a,null)),OQ.arr[m++]=a)}});var h=OQ.typed?OQ.arr.subarray(0,m):(OQ.arr.length=m,OQ.arr);OQ.typed?h.sort():CF(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=UF(g)?g:m>0?-2:-1,n.serUids=r}var OQ=kZ({ctor:hNe},50);function kQ(e){return function(t,n){var r=_Y(t,{fromStat:{key:e}});if(UF(r.w2))return[-r.w2/2,r.w2/2]}}function AQ(e){return e+`|&`}function jQ(e,t){return e+`|&`+t}function MQ(e){return aPe(),{liPosMinGap:!Uq(e.scale)}}var NQ=`pictorialBar`;function PQ(e,t,n,r){PJ(e,{key:t,seriesType:n,coordSysType:r,getMetrics:MQ})}function FQ(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var IQ={left:0,right:0,top:0,bottom:0},LQ=[`25%`,`25%`],RQ=`cartesian2d`,sPe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=aH(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&iH(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&iH(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:IQ,outerBoundsContain:`all`,outerBoundsClampWidth:LQ[0],outerBoundsClampHeight:LQ[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},t}(sH),cPe=mI(),zQ=`__ec_stack_`;function BQ(e){return e.get(`stack`)||zQ+e.seriesIndex}function lPe(e){if(Uq(e.axis.scale)){for(var t=_Y(e.axis),n=[],r=0;r<e.count;r++)n.push(nA({stackId:zQ+r},e));for(var i=VQ({bandWidthResult:t,seriesInfo:n}),a=[],r=0;r<e.count;r++){var o=i[zQ+r];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function uPe(e,t){var n=dPe(e,t);return n.columnMap=VQ(n),n}function dPe(e,t){var n=jQ(t,RQ),r=[],i=_Y(e,{fromStat:{key:n},min:1});return DJ(e,n,function(e){r.push({barWidth:yF(e.get(`barWidth`),i.w),barMaxWidth:yF(e.get(`barMaxWidth`),i.w),barMinWidth:yF(e.get(`barMinWidth`)||(WQ(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:BQ(e)})}),{bandWidthResult:i,seriesInfo:r}}function VQ(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;UA(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=cF(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??=lF(35-o.length*4,15)+`%`;var c=yF(i,t),l=yF(a,1),u=(n-c)/(r+(r-1)*l);u=lF(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=cF(o,i)),a&&(o=lF(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=cF(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=lF(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 HQ(e){return{seriesType:e,overallReset:function(t){var n=jQ(e,RQ);kJ(t,n,function(t){var r=uPe(t,e);DJ(t,n,function(e){var t=r.columnMap[BQ(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function UQ(e){return{seriesType:e,plan:fW(),reset:function(e){if(ePe(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=Tq(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(FQ(i))),p=WQ(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&&OZ(r*3),c=p&&s&&OZ(r*3),l=p&&OZ(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,uF(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,uF(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 WQ(e){return e.pipelineContext&&e.pipelineContext.large}function fPe(e){return kQ(jQ(e,RQ))}function GQ(e){cPe(e,function(){function t(t){var n=jQ(t,RQ);PQ(e,n,t,RQ),UJ(n,fPe(t))}t(`bar`),t(`pictorialBar`)})}var KQ=function(e){X(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 Dq(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}(sW);sW.registerClass(KQ);var pPe=function(e){X(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 Dq(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=vwe(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=zB(KQ.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}(KQ),mPe=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}(),qQ=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new mPe},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}(xL);function hPe(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return VP(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)+JQ(m,s+_,!1),x=u+p*y(m)+YQ(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+JQ(m,-s+_,!1),x=u+p*y(m)+YQ(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)+JQ(h,s+_,!0),x=u+p*y(h)+YQ(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+JQ(h,-s+_,!0),x=u+p*y(h)+YQ(h,-s+_,!0),S=`right`,C=`middle`;break;default:return VP(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function gPe(e,t,n,r){if(vA(r)){e.setTextConfig({rotation:r});return}else if(mA(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 JQ(e,t,n){return t*Math.sin(e)*(n?-1:1)}function YQ(e,t,n){return t*Math.cos(e)*(n?1:-1)}function XQ(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;mA(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:sA(r,function(e){return BP(e,i)})}}var ZQ=Math.max,QQ=Math.min,_Pe=function(e){X(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){iB(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=vPe(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=i$[s.type](a,e);if(!t)return null;var n=TPe(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=i$[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!r$[s.type](r)))){var o=!1;f&&(o=$Q[s.type](p,r));var g=e$[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),o$(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?t$(d,u,g,r,t,l,!1,!1):xz(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=i$[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=i$[s.type](a,t),E=u$(l,T,s);bz(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!r$[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=$Q[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&Tz(D,e,n),D=null),D?Ez(D):D=e$[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=kB(k);A.prevValue!=null&&(A.prevValue=A.value)}}else o$(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?t$(d,u,D,C,t,l,!0,x):bz(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&&Tz(n,e,t)}).execute();var C=this._backgroundGroup||=new QP;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(),c$(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),c$(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&LZ(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:sA(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){Tz(t,e,jL(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}(mW),$Q={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=ZQ(t.x,e.x),s=QQ(t.x+t.width,i),c=ZQ(t.y,e.y),l=QQ(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=QQ(t.r,e.r),a=ZQ(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}},e$={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new DL({shape:Z({},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?qQ:JR,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=hPe(a$(i),{isRoundCap:l===qQ}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?bz:xz)(u,{shape:p},a)}return u}};function vPe(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 t$(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?bz:xz)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?bz:xz)(n,{shape:l},u,i)}function n$(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var yPe=[`x`,`y`,`width`,`height`],bPe=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],r$={cartesian2d:function(e){return!n$(e,yPe)},polar:function(e){return!n$(e,bPe)}},i$={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?SPe(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 xPe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function a$(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 o$(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;Z(u,XQ(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?EPe(i,a.coordinateSystem):DPe(i,a.coordinateSystem),p=xB(r);bB(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:_Z(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,gPe(e,h===`outside`?f:h,a$(o),r.get([`label`,`rotate`]))}AB(m,p,a.getRawValue(n),function(e){return vZ(t,e)});var g=r.getModel([`emphasis`]);dR(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),mR(e,r),xPe(i)&&(e.style.fill=`none`,e.style.stroke=`none`,Q(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function SPe(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 CPe=function(){function e(){}return e}(),s$=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new CPe},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}(xL);function c$(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?gI(e):0;if(l){var d=new s$({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 s$({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,jL(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,l$),f.on(`mousemove`,l$)),n&&n.push(f)}var l$=bW(function(e){var t=this,n=wPe(t,e.offsetX,e.offsetY);jL(t).dataIndex=n>=0?n:null},30,!1);function wPe(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 u$(e,t,n){if(BZ(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 TPe(e,t,n){return new(e.type===`polar`?JR:DL)({shape:u$(t,n,e),silent:!0,z2:0})}function EPe(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function DPe(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function OPe(e){e.registerChartView(_Pe),e.registerSeriesModel(pPe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,HQ(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,UQ(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,nQ(`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)})}),GQ(e)}function d$(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 f$(e,t,n){t=mA(t)&&{coordDimensions:t}||Z({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Sq(r,t).dimensions,a=new xq(i,e);return a.initData(r,n),a}var p$=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}(),kPe=eI(),m$=function(e){X(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 p$(fA(this.getData,this),fA(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return f$(this,{coordDimensions:[`value`],encodeDefaulter:pA(vH,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=kPe(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=DF(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){qF(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}(sW);kDe({fullType:m$.type,getCoord2:function(e){return e.getShallow(`center`)}});var APe=Math.PI/180;function h$(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;g$(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}YY(e,1,c,c+o)&&d(e)}function jPe(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;y$(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(!y$(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,g$(m,g,!1)}}h$(l,t,n,r,1,i,a,o,s,d),h$(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!y$(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 g$(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)}_$(a,r)}}}function _$(e,t){v$.rect=e,WY(v$,t,MPe)}var MPe={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},v$={};function y$(e){return e.position===`center`}function NPe(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*APe,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=yF(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=yF(T,l);var E=w.get(`length2`);if(E=yF(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(vA(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 ee=new eM(0,0,0,0);_$(ee,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new Vj(O,k),linePoints:M,textAlign:N,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:ee,unconstrainedWidth:ee.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}}),!a&&e.get(`avoidLabelOverlap`)&&jPe(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):(PY(x,g.minTurnAngle),fMe(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new Vj(x[0][0],x[0][1])})}}}var b$=Math.PI*2,x$=Math.PI/180,PPe=_I(`pie`,FPe);function FPe(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=ZV(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*x$,d=e.get(`endAngle`),f=e.get(`padAngle`)*x$;d=d===`auto`?u-b$:-d*x$;var p=e.get(`minAngle`)*x$+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;lL(S,!_),u=S[0],d=S[1];var w=S$(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?vF(e,b,[c,s]):s}),O=i}),E<b$&&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 S$=eI(),IPe=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new kL;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=Z(XQ(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?(xz(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,xz(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,bz(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),xz(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else Ez(i),bz(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),mR(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=Z({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},XQ(s.getModel(`itemStyle`),c)),Z(i.ensureState(`select`),{x:p,y:m,shape:XQ(o.getModel([`select`,`itemStyle`]),c)}),Z(i.ensureState(`blur`),{shape:XQ(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&Z(g.ensureState(`select`),{x:p,y:m}),Z(_.ensureState(`select`),{x:p,y:m}),dR(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;bB(r,xB(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 QR,this.setTextGuideLine(d)),IY(this,LY(i),{stroke:s,opacity:kA(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(JR),LPe=function(e){X(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 JR({shape:Qk(S$(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new IPe(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){Tz(a.getItemGraphicEl(t),e,t)}).execute(),NPe(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}(mW);function RPe(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!(vA(r)&&!isNaN(r)&&r<0)})}}}function zPe(e){e.registerChartView(LPe),e.registerSeriesModel(m$),GW(`pie`,e.registerAction),e.registerLayout(PPe),e.registerProcessor(d$(`pie`)),e.registerProcessor(RPe(`pie`))}var BPe=function(e){X(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 Dq(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}(sW),C$=4,VPe=function(){function e(){}return e}(),HPe=function(e){X(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 VPe},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]<C$,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 eM(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(xL),UPe=function(){function e(){this.group=new QP}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 HPe({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=rG(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<C$;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=jL(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}(),WPe=function(e){X(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,w$(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(),gI(t),w$(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=tQ(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(w$(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 UPe:new wZ,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}(mW);function w$(e){return{clipShape:zZ(e)}}var T$=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,rI).models[0]},t.type=`cartesian2dAxis`,t}(sH);aA(T$,SJ);var E$={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`}},GPe=$k({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},E$),D$=$k({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}}},E$),O$={category:GPe,value:D$,time:$k({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},D$),log:nA({logBase:10},D$)};function k$(e,t,n,r){Q(lJ,function(i,a){var o=$k($k({},O$[a],!0),r,!0),s=function(e){X(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=rH(this),r=n?aH(e):{};$k(e,t.getTheme().get(a+`Axis`)),$k(e,this.getDefaultOption()),e.type=A$(e),n&&iH(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=kq.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=aQ();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,A$)}function A$(e){return e.type||(e.data?`category`:`value`)}var KPe=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 sA(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),lA(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}(),j$=[`x`,`y`];function M$(e){return(e.type===`interval`||e.type===`time`)&&!QB(e)}var qPe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=RQ,t.dimensions=j$,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!M$(e)||!M$(t))){var n=Fq(e,null),r=Fq(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=zj([],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 eM(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 uj(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 uj(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 eM(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(KPe);function N$(e,t){var n=e.scale,r=e.model,i=GJ(n,r,r.ecModel,e,null),a=Hq(n),o=Hq(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=uF(l[0].value-l[1].value),g=uF(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=qq(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*lF(c,2):HAe(E),D=Wq(E)}function j(){w=SF(k-E*f,D)}function M(){T=SF(O+E*p,D)}function N(){k=f?SF(w+E*f,D):w}function P(){O=p?SF(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=uF(F[1]-F[0]);D=EF([T,w],I,.5/m),N(),P(),UF(D)&&(E=SF(E,D))}else{var L=C[1]-C[0];E=a?lF(NF(L),1):FF(L/m,2),D=Wq(E),b[0]?(w=C[0],A(function(){if(N(),O=SF(k+E*m,D),M(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(P(),k=SF(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=SF(pF(C[0]/E)*E,D),O=SF(fF(C[1]/E)*E,D);var e=dF((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=fF(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=SF(k-E*n[0],D),O=SF(O+E*n[1],D),j(),M(),w<=C[0]&&T>=C[1])return!0}})}yJ(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var P$=[[3,1],[0,2]],JPe=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=j$,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){VJ(e,1);var t=e.scale;Uq(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=dA(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):qJ(i)}Q(n,function(e){XPe(e,e.__alignTo)?qJ(e):N$(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};Q(n.x,function(e){F$(n,`y`,e,i)}),Q(n.y,function(e){F$(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=tH(e,t),i=this._rect=QV(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(R$(a,i),!n){var c=$Pe(i,o,a,s,t),l=void 0;if(s)B$?(B$(this._axesList,i),R$(a,i)):l=V$(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=eFe(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=V$(d,f,p,i,a,c,r))}H$(i,a,cY.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]}yA(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`,rI).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,rI).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,rA(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 qPe(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),L$(o.x),L$(o.y);function c(t){return function(n,r){if(YPe(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=dJ(n),u=new rQ(t,fJ(n,l,!0),[0,0],l,c);u.onBand=xJ(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);rA(t,i)<0&&t.push(i),rA(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){_je(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;UV({targetModel:e,coordSysType:RQ,coordSysProvider:r});function r(){var r=tPe(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(MJ(t,e,RQ),MJ(n,e,RQ))},this),r},e.dimensions=j$,e.dimIdxMap=cq(j$),e}();function YPe(e,t){return e.getCoordSysModel()===t}function F$(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)I$(s,i[c])&&(a=i[c]);else for(var l in i)if(UA(i,l)&&I$(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 I$(e,t){if(!t)return!1;var n=t.scale,r=eje(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&nje(t)&&(i=!1),i}function L$(e){for(var t=dA(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];zq(a.scale)&&vJ(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 XPe(e,t){return QB(e.scale)||QB(t.scale)||t.scale.getTicks().length<2}function ZPe(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 R$(e,t){Q(e.x,function(e){return z$(e,t.x,t.width)}),Q(e.y,function(e){return z$(e,t.y,t.height)})}function z$(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),ZPe(e,t)}var B$;function QPe(e){B$=e}function V$(e,t,n,r,i,a,o){H$(r,i,cY.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=uA(s,function(e){return e>0})==null;return $z(r,s,!0,!0,n),R$(i,r),c;function l(e){Q(i[kz[e]],function(t){if(_J(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(bJ(t.scale,uQ(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=gJ(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[kz[n]]-t[kz[n]],a=t[Az[n]]+t[kz[n]]-(e[Az[n]]+e[kz[n]]);i=d(i,1-r),a=d(a,r);var o=P$[n][0],c=P$[n][1];s[o]=lF(s[o],i),s[c]=lF(s[c],a)}function d(e,t){return e>0&&!EA(t)&&t>1e-4&&(e/=t),e}}function $Pe(e,t,n,r,i){var a=new fQ(tFe);return Q(n,function(n){return Q(n,function(n){if(_J(n.model)){var o=!r;n.axisBuilder=nPe(e,t,n.model,i,a,o)}})}),a}function H$(e,t,n,r,i,a){var o=n===cY.determine;Q(t,function(t){return Q(t,function(t){_J(t.model)&&(rPe(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[kz[1-t]]=e[Az[t]]<=a.refContainer[Az[t]]*.5?0:1-t==1?2:1}Q(t,function(e,t){return Q(e,function(e){_J(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function eFe(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=QV(e.get(`outerBounds`,!0)||IQ,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||rA([`all`,`axisLabel`],a)<0?`all`:a,s=[bF(OA(e.get(`outerBoundsClampWidth`,!0),LQ[0]),t.width),bF(OA(e.get(`outerBoundsClampHeight`,!0),LQ[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var tFe=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;hQ(e,t,n,r,i,a),gJ(e.nameLocation)||Q(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&_Q(e.labelInfoList,e.dirVec,r,i)})};function nFe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return rFe(n,e,t),n.seriesInvolved&&aFe(n,e),n}function rFe(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=K$(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(Q(n.getAxes(),pA(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,pA(p,d?`cross`:!0,u)),d&&Q(f.otherAxes,pA(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!G$(d))){s??=d.get(`triggerTooltip`),d=r?iFe(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=K$(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:G$(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=oFe(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function iFe(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]=Qk(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&&nA(l,u.textStyle)}return e.model.getModel(`axisPointer`,new LB(c,n,r))}function aFe(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[K$(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 oFe(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(U$(a[r+`AxisId`],n.id)||U$(a[r+`AxisIndex`],n.componentIndex)||U$(a[r+`AxisName`],n.name))return i}}function U$(e,t){return e===`all`||mA(e)&&rA(e,t)>=0||e===t}function sFe(e){var t=W$(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=G$(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 W$(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[K$(e)]}function cFe(e){var t=W$(e);return t&&t.axisPointerModel}function G$(e){return!!e.get([`handle`,`show`])}function K$(e){return e.type+`||`+e.id}var q$={},J$=function(e){X(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&&sFe(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=cFe(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){q$[e]=t},t.getAxisPointerClass=function(e){return e&&q$[e]},t.type=`axis`,t}(dW),Y$=eI();function X$(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=Y$(e).splitAreaColors,f=zA(),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=mA(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 DL({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:nA({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}Y$(e).splitAreaColors=f}}}function Z$(e){Y$(e).splitAreaColors=null}var lFe=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],Q$=function(e){X(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 QP,this.group.add(this._axisGroup),_J(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),Q(lFe,function(e){t.get([e,`show`])&&uFe[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Kz(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){Z$(this)},t.type=`cartesianAxis`,t}(J$),uFe={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=mA(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 $R({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:nA({stroke:c[x]},_),silent:!0});Bz(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 $R({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});Bz(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){X$(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=aQ(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},$$=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(Q$),dFe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=$$.type,t}return t.type=`yAxis`,t}(Q$),fFe=function(e){X(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 DL({shape:e.coordinateSystem.getRect(),style:nA({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(dW),e1={offset:0};function t1(e){e.registerComponentView(fFe),e.registerComponentModel(sPe),e.registerCoordinateSystem(`cartesian2d`,JPe),k$(e,`x`,T$,e1),k$(e,`y`,T$,e1),e.registerComponentView($$),e.registerComponentView(dFe),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var n1=`single`,r1=`singleAxis`,i1=function(e){X(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=r1,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}(sH);aA(i1,SJ.prototype);function pFe(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 mFe=eI();function a1(e,t,n,r){if(e instanceof rQ&&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=Uq(e.scale)?_Y(e).w:null;return o?o1(n,a,c,r):hFe(e,t,n,r,a,s)}function o1(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 hFe(e,t,n,r,i,a){var o=mFe(e);o.items||=[];var s=o.items,c=s1(s,t,n,r,i,a,1),l=s1(s,t,n,r,i,a,-1),u=Math.abs(c-n)<Math.abs(l-n)?c:l,d=Uq(e.scale)?_Y(e).w:null,f=Math.abs(u-n);return f>i/2||d&&f>d/2-r?o1(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function s1(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 gFe(){return{seriesType:`scatter`,plan:fW(),reset:function(e){var t=e.coordinateSystem;if(!(!t||t.type!==`cartesian2d`&&t.type!==`single`)){var n=t.getBaseAxis&&t.getBaseAxis();if(n&&pFe(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=a1(n,l[0],l[1],d/2);i?r[c+1]=f:l[1]=f}else if(s){var f=a1(n,l[1],l[0],d/2);i?r[c]=f:l[0]=f}}}}}}}}}}function _Fe(e){$K(t1),e.registerSeriesModel(BPe),e.registerChartView(WPe),e.registerLayout(tQ(`scatter`))}function vFe(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,gFe())}function yFe(e){var t=e.polar;if(t){mA(t)||(t=[t]);var n=[];Q(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],mA(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 c1=`radar`,bFe=function(e){X(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 p$(fA(this.getData,this),fA(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return f$(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=eW(this,e);return qU(`section`,{header:o,sortBlocks:!0,blocks:sA(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return qU(`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(sA(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.`+c1,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}(sW),xFe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=c1,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=iG(e.getItemVisual(t,`symbolSize`)),i=rG(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]),Dz[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 sA(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new ZR,i=new QR,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),xz(r,o,e,t),xz(i,o,e,t);var s=new QP,u=new QP;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),Ez(s),Ez(i),bz(i,u,e),bz(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(nA(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),mR(r,n,`lineStyle`),mR(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=Qk(l)})}),o.useStyle(nA(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof CL){var r=e.style;e.useStyle(Z({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=``),bB(e,xB(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),dR(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=c1,t}(mW),l1=O$.value,u1=`radar`,d1=u1,SFe=u1;function f1(e,t){return nA({show:t},e)}var CFe=function(e){X(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=sA(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=nA({color:f.color},s));var m=$k(Qk(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(gA(l)){var h=m.name;m.name=l.replace(`{value}`,h??``)}else hA(l)&&(m.name=l(m.name,m));var g=new LB(m,null,this.ecModel);return aA(g,SJ.prototype),g.mainType=`radar`,g.componentIndex=this.componentIndex,g.uid=RB(`ec_radar`),g},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=d1,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:$k({lineStyle:{color:$.color.neutral20}},l1.axisLine),axisLabel:f1(l1.axisLabel,!1),axisTick:f1(l1.axisTick,!1),splitLine:f1(l1.splitLine,!0),splitArea:f1(l1.splitArea,!0),indicator:[]},t}(sH),wFe=function(e){X(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(sA(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new vQ(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=mA(u)?u:[u],p=mA(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 FR({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new YR({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=sA(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),sA(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 QR({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new ZR({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();Q(h,function(e,t){this.group.add(Rz(e,{style:nA({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),Q(m,function(e,t){this.group.add(Rz(e,{style:nA({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(dW),TFe=function(e){X(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}(yY),EFe=function(){function e(e,t,n){this.type=u1,this.dimensions=[],this._model=e,this._indicatorAxes=sA(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new TFe(n,new Qq);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=tH(e,t).refContainer,r=e.get(`center`),i=e.get(`clockwise`)||!1,a=Math.min(n.width,n.height)/2;this.cx=yF(r[0],n.width)+n.x,this.cy=yF(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var o=e.get(`radius`);(gA(o)||vA(o))&&(o=[0,o]),this.r0=yF(o[0],a),this.r=yF(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=Jq(r.get(`splitNumber`),5),a=new Qq;a.setExtent(0,i),a.setConfig({interval:1}),Q(n,function(e){VJ(e,1),N$(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(d1,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(SFe,function(e){if(e.get(`coordinateSystem`)===`radar`){var t=e.coordinateSystem=r[e.get(`radarIndex`)||0];t&&Q(t.getIndicatorAxes(),function(t){MJ(t,e,u1)})}}),r},e.dimensions=[],e}();function DFe(e){e.registerCoordinateSystem(`radar`,EFe),e.registerComponentModel(CFe),e.registerComponentView(wFe),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 OFe=_I(c1,kFe);function kFe(e){e.eachSeriesByType(c1,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]=p1(i)?i:m1(r)})}),t.each(function(e){var i=uA(n[e],function(e){return p1(e)})||m1(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function p1(e){return!isNaN(e[0])&&!isNaN(e[1])}function m1(e){return[e.cx,e.cy]}function AFe(e){$K(DFe),e.registerChartView(xFe),e.registerSeriesModel(bFe),e.registerLayout(OFe),e.registerProcessor(d$(`radar`)),e.registerPreprocessor(yFe)}var h1=eI();function jFe(e,t,n){h1(e)[t]=n}function MFe(e,t,n){var r=h1(e);r[t]===n&&(r[t]=null)}function g1(e,t){return!!h1(e)[t]}HK({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},WA);var NFe={axisPointer:1,tooltip:1,brush:1};function _1(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||NFe.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=lB(r),o=lB(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var v1=function(e){X(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=fA(n._mousedownHandler,n),i=fA(n._mousemoveHandler,n),a=fA(n._mouseupHandler,n),o=fA(n._mousewheelHandler,n),s=fA(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=lB(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:OA(c.z2,-1/0)},p=Z({},n.triggerInfo);this._opt=nA(Z({},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`)&&(x1(t,`mousedown`,r,f),x1(t,`mousemove`,i,f),x1(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(x1(t,`mousewheel`,o,f),x1(t,`pinch`,s,f)))},n.disable=function(){this._enabled&&(this._enabled=!1,S1(t,`mousedown`,r),S1(t,`mousemove`,i),S1(t,`mouseup`,a),S1(t,`mousewheel`,o),S1(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(_1(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(!(kj(e)||y1(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`||g1(t,`globalPan`)||y1(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!w1(`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&&Oj(e.event),e.__ecRoamConsumed=!0,C1(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!y1(e)){var t=this._zr;if(!kj(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!y1(e)){var t=w1(`zoomOnMouseWheel`,e,this._opt),n=w1(`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(!(g1(this._zr,`globalPan`)||y1(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)&&(Oj(r.event),r.__ecRoamConsumed=!0,C1(e,t,n,r,i))},t}(mj);function y1(e){return e.__ecRoamConsumed}var PFe=eI();function b1(e){var t=PFe(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function x1(e,t,n,r){for(var i=b1(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}),FFe(e,t)}function S1(e,t,n){for(var r=b1(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||IFe(e,t);return}}function FFe(e,t){var n=b1(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 IFe(e,t){var n=b1(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function C1(e,t,n,r,i){i.isAvailableBehavior=fA(w1,null,n,r),e.trigger(t,i)}function w1(e,t,n){var r=n[e];return!e||r&&(!gA(r)||t.event[r+`Key`])}function T1(e){gA(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 E1,D1={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`},O1=dA(D1),k1={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},A1=dA(k1),LFe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t||={};var n=T1(e);this._defsUsePending=[];var r=new QP;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),I1(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;BFe(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=R1(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=H1(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new QP,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 DL({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=E1[o];if(l&&UA(E1,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=j1[o];if(f&&UA(j1,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 SL({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});P1(t,n),I1(e,n,this._defsUsePending,!1,!1),RFe(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(){E1={g:function(e,t){var n=new QP;return P1(t,n),I1(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new DL;return P1(t,n),I1(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 FR;return P1(t,n),I1(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 $R;return P1(t,n),I1(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 IR;return P1(t,n),I1(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=F1(n));var i=new ZR({shape:{points:r||[]},silent:!0});return P1(t,i),I1(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=F1(n));var i=new QR({shape:{points:r||[]},silent:!0});return P1(t,i),I1(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new CL;return P1(t,n),I1(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 QP;return P1(t,o),I1(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 QP;return P1(t,o),I1(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=NR(e.getAttribute(`d`)||``);return P1(t,n),I1(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),j1={lineargradient:function(e){var t=new oz(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 M1(e,t),N1(e,t),t},radialgradient:function(e){var t=new sz(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return M1(e,t),N1(e,t),t}};function M1(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function N1(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={};V1(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=uN(o);c&&c[3]&&(c[3]*=nN(s),o=_N(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function P1(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},nA(t.__inheritedStyle,e.__inheritedStyle))}function F1(e){for(var t=R1(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 I1(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(UFe(e,t),V1(e,o,s),r||WFe(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=L1(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=L1(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=sA(R1(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function RFe(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 zFe=/^url\(\s*#(.*?)\)/;function L1(e,t,n,r){var i=n&&n.match(zFe);if(i){var a=NA(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function BFe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var VFe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function R1(e){return e.match(VFe)||[]}var HFe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,z1=Math.PI/180;function UFe(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(HFe,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=R1(o);switch(i||=Mj(),s){case`translate`:Ij(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:Rj(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:Lj(i,i,-parseFloat(c[0])*z1,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*z1);Fj(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*z1);Fj(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 B1=/([^\s:;]+)\s*:\s*([^:;]+)/g;function V1(e,t,n){var r=e.getAttribute(`style`);if(r){B1.lastIndex=0;for(var i;(i=B1.exec(r))!=null;){var a=i[1],o=UA(D1,a)?D1[a]:null;o&&(t[o]=i[2]);var s=UA(k1,a)?k1[a]:null;s&&(n[s]=i[2])}}}function WFe(e,t,n){for(var r=0;r<O1.length;r++){var i=O1[r],a=e.getAttribute(i);a!=null&&(t[D1[i]]=a)}for(var r=0;r<A1.length;r++){var i=A1[r],a=e.getAttribute(i);a!=null&&(n[k1[i]]=a)}}function H1(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 GFe(e,t){return new LFe().parse(e,t)}var KFe=zA([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),qFe=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=zA(),this._freedGraphics=[],this._mapName=e,this._parsedXML=T1(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=YFe(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&&GFe(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,MA(n!=null)}catch(e){throw Error(`Invalid svg format
`+e.message)}var r=new QP;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 eM(c,l,u,d)}if(o){var p=H1(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new DL({shape:s.plain()}));var m=[];return Q(t.named,function(e){KFe.get(e.svgNodeTagLower)!=null&&(m.push(e),JFe(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 JFe(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function YFe(e){var t=[],n=zA();return Q(e,function(e){if(e.namedFrom==null){var r=new Pje(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}for(var U1=[126,25],W1=`南海诸岛`,G1=[[[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]]],K1=0;K1<G1.length;K1++)for(var q1=0;q1<G1[K1].length;q1++)G1[K1][q1][0]/=10.5,G1[K1][q1][1]/=-10.5/.75,G1[K1][q1][0]+=U1[0],G1[K1][q1][1]+=U1[1];function XFe(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===W1)return;t.push(new rY(W1,sA(G1,function(e){return{type:`polygon`,exterior:e}}),U1))}}var ZFe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function QFe(e,t){if(e===`china`){var n=ZFe[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 eIe(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:$Fe[0]})}var tIe=`name`,nIe=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=zA(),this._mapName=e,this._specialAreas=n,this._geoJSON=iIe(t)}return e.prototype.load=function(e,t){t||=tIe;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:rIe(r)})}var i=zA(),a=[];return Q(n.regions,function(t){var n=t.name;e&&UA(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new eM(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?oY(n,e):[]}catch(e){throw Error(`Invalid geoJson format
`+e.message)}return XFe(t,r),Q(r,function(e){var n=e.name;QFe(t,e),eIe(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 rIe(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function iIe(e){return gA(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var J1=zA(),Y1={registerMap:function(e,t,n){if(t.svg){var r=new qFe(e,t.svg);J1.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new nIe(e,i,n);J1.set(e,r)}},getGeoResource:function(e){return J1.get(e)},getMapForUser:function(e){var t=J1.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=J1.get(e);if(r)return r.load(t,n)}};function X1(e){return e}var aIe=`view`,Z1=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=aIe,i.dimensions=[`x`,`y`];var a=X1(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=EP(),o[1]=EP(),o[2]=EP(),a.mtRaw=Mj(),a.mtRawInv=Mj(),a.mtOverall=Mj(),a.mtOverallInv=Mj(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return e0(null,this)},t.prototype.getViewRect=function(){return t0(null,this)},t.prototype.getRoamTransform=function(){return TP(X1(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?X1(this).mtRaw:X1(this).mtOverall;return n||=[],r?uj(n,e,r):YA(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=X1(this).mtOverallInv;return r?uj(n,e,r):YA(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=g0(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=g0(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=X1(this);return rM(Q1,t.dataRect),aM(Q1,Q1,t.mtOverall),SSe(Q1,e[0],e[1])},t.dimensions=[`x`,`y`],t}(wP),Q1=tM();function $1(e,t){return Pj(e||[],X1(t).mtOverall)}function oIe(e){return X1(e).zoom}function e0(e,t){return rM(e||tM(),X1(t).dataRect)}function t0(e,t){return rM(e||tM(),X1(t).viewRect)}function n0(e,t,n){return OP(e||EP(),X1(t).trans[n])}function r0(e){return!!(e.dataRect&&e.viewRect)}function sIe(e,t,n,r){r===1?p0(e,t.trans[0],n):OP(e,n)}function i0(e,t,n){TP(n,a0),Fj(a0,a0,t.mtRawInv),mB(e,a0)}var a0=Mj();function o0(e,t){var n=X1(e);n.centerOption=t.getShallow(`center`);var r=n.zoomLimit=t.getShallow(`scaleLimit`);n.zoom=j0(t.getShallow(`zoom`)||1,r)||1,r0(n)&&l0(n)}function s0(e,t,n,r,i){var a=X1(e);a.dataRect=new eM(t,n,r,i),r0(a)&&l0(a)}function c0(e,t,n,r,i){var a=X1(e);a.viewRect=new eM(t,n,r,i),r0(a)&&l0(a)}function l0(e){cIe(e),uIe(e),dIe(e)}function cIe(e){var t=e.dataRect,n=e.viewRect,r=e.trans[0],i=e.invertY;i&&(t=rM(lIe,t),t.y=-t.y-t.height),iM(u0,t,n),mB(r,u0),i&&(r.scaleY=-r.scaleY);var a=TP(r,e.mtRaw);zj(e.mtRawInv,a)}var u0=Mj(),lIe=tM();function uIe(e){var t=_0(e),n=mIe(d0,e,e.centerOption)?uj(d0,d0,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 d0=[];function dIe(e){var t=e.trans,n=t[1],r=t[0],i=t[2];p0(i,r,n);var a=TP(i,e.mtOverall),o=zj(e.mtOverallInv,a);f0(e,i,a,o),f0(e.lgGeo,i,a,o)}function f0(e,t,n,r){e&&(OP(e,t),Pj(e.transform||=[],n),Pj(e.invTransform||=[],r))}function p0(e,t,n){TP(t,m0),TP(n,h0),Fj(h0,h0,m0),mB(e,h0)}var m0=Mj(),h0=Mj();function g0(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function _0(e){var t=e.viewRect;return v0[0]=t.x+t.width/2,v0[1]=t.y+t.height/2,v0}var v0=[];function y0(e){return e&&e.type===`view`}function b0(e,t,n,r){var i=X1(n);i.syncBackEl=e,i.syncBackType=t,r?bz(e,n0(null,n,t),r):(n0(e,n,t),e.dirty())}function fIe(e,t,n,r){var i=X1(e),a=i.syncBackEl;a?(a.stopAnimation(),sIe(x0,i,a,i.syncBackType)):OP(x0,i.trans[2]),i0(S0,i,x0),r?pIe(x0,S0,i,r):OP(x0,S0),i0(x0,i,x0),gIe(i,t,n,x0)}var x0=EP(),S0=EP();function C0(e,t,n){var r=w0(t);r&&(fIe(r,t,n,e),o0(r,t))}function w0(e){return e.__ownRoamView?e.__ownRoamView():null}function T0(e,t,n,r){n.setUpdatePayload(pB(e));var i=YTe(r,t);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(e,t,r)}function pIe(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=E0(t),o=j0(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 E0(e){return e.scaleX}function mIe(e,t,n){var r=t.dataRect;if(!n)return!1;var i=t.lgCt;return i?ZA(e,yF(n[0],i.w),yF(n[1],i.h)):r&&ZA(e,yF(n[0],r.width,r.x),yF(n[1],r.height,r.y)),!0}function hIe(e,t){var n=e.centerOption,r=e.dataRect;return!n||e.lgCt?t.slice():[D0(0,t,n,r),D0(1,t,n,r)]}function D0(e,t,n,r){return n&&r&&r[Az[e]]&&NCe(n[e])?(t[e]-r[kz[e]])/r[Az[e]]*100+`%`:t[e]}function O0(e,t){return t&&e&&e.getShallow(`legacyViewCoordSysCenterBase`)?{w:t.getWidth(),h:t.getHeight()}:null}function gIe(e,t,n,r){var i=_0(e),a=E0(r),o=uF(a)>1e-6;k0[0]=o?(i[0]-r.x)/a:i[0],k0[1]=o?(i[1]-r.y)/a:i[1],uj(k0,k0,e.mtRawInv);var s=hIe(e,k0);A0(t,s,a),Q(n,function(e){e!==t&&A0(e,s.slice(),a)})}var k0=[];function A0(e,t,n){var r=e.option;r.center=t,r.zoom=n}function j0(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 M0(e,t){var n=t.getShallow(`nodeScaleRatio`,!0)||1,r=X1(e);return((r.zoom-1)*n+1)/(r.trans[2].scaleX||1)}function N0(e,t,n,r,i,a,o,s){if(!w0(e)){n.disable();return}n.enable(OA(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=pB(nA({type:L0(r,e.subType,KTe)},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 P0(e){return function(t,n,r){return F0.copy(e.getBoundingRect()),F0.applyTransform(e.getComputedTransform()),F0.contain(n,r)}}var F0=new eM(0,0,0,0);function I0(e,t,n){var r=L0(t,n,KTe);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(aI(e,t,n),function(t){C0(e,t),T0(e,t,r,i)})})}function L0(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function R0(e){return e.zoom!=null}function z0(e,t,n,r,i,a,o){var s=new Z1(null,O0(e.ecModel,t));return s0(s,n,r,i,a),o?c0(s,o.x,o.y,o.width,o.height):c0(s,n,r,i,a),o0(s,e),s}var B0=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],_Ie=zA(B0),vIe=zA(B0.concat([`g`])),yIe=zA(B0.concat([`g`])),V0=eI();function H0(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function U0(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var W0=function(){function e(e){var t=this.group=new QP,n=this._transformGroup=new QP;t.add(n),this.uid=RB(`ec_map_draw`),this._controller=new v1(e.getZr()),n.add(this._regionsGroup=new QP),n.add(this._svgGroup=new QP)}return e.prototype.draw=function(e,t,n,r,i){var a=this,o=e.getData&&e.getData();Z0(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=t0(null,c),this.group.setClipPath(new DL({shape:f.clone()}))):this.group.removeClipPath(),b0(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),N0(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){b0(this._transformGroup,1,e.coordinateSystem.view,null)},e.prototype._buildGeoJSON=function(e,t,n,r,i,a){var o=this._regionsGroupByName=zA(),s=zA(),c=this._regionsGroup,l=n.projection,u=l&&l.stream,d=TP(n0(null,e,0));function f(e,t){return t&&(e=t(e)),e&&uj([],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 QP),c.add(d),h=i?i.indexOfName(n):null,g=Z0(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=X0(t,u)),Q(t,function(e){v.push(new ZR(m(e)))})}else{var n=e.points;u&&(n=X0(n,u,!0)),Q(n,function(e){y.push(new QR(m(e)))})}});var b=f(e.getCenter(),l&&l.project);function x(e,o){if(e.length){var s=new iz({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(s),G0(t,i,a,s,h,g),K0(r,i,s,n,g,h,b),o&&(U0(s),Q(s.states,U0))}}x(v),x(y,!0)}),o.each(function(e,t){var n=s.get(t),a=n.dataIdx,o=n.regionModel;q0(r,i,e,t,o,a),J0(r,i,e,t,o),Y0(r,e,t,o)},this)},e.prototype._buildSVG=function(e,t,n,r,i,a){var o=n.map;n0(this._svgGroup,e,0),this._svgResourceChanged(o)&&(this._freeSVG(),this._useSVG(o));var s=this._svgDispatcherMap=zA(),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);_Ie.get(o)!=null&&l instanceof PI&&G0(t,i,a,l,u,d),l instanceof PI&&(l.culling=!0);var f=d.get(`silent`,!0);f!=null&&(l.silent=f),l.z2EmphasisLift=0,e.namedFrom||(yIe.get(o)!=null&&K0(r,i,l,n,d,u,null),q0(r,i,l,n,d,u),J0(r,i,l,n,d),vIe.get(o)!=null&&(Y0(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&&Z0(t)){var n=t.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){QL(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=Y1.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=Y1.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=V0(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 G0(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=H0(o),d=H0(s),f=H0(l),p=H0(c);if(t){var m=t.getItemVisual(i,`style`),h=t.getItemVisual(i,`decal`);n&&m.fill&&(u.fill=m.fill),h&&(u.decal=NG(h,e))}r.setStyle(u),r.style.strokeNoScale=!0,r.ensureState(`emphasis`).style=d,r.ensureState(`select`).style=f,r.ensureState(`blur`).style=p,QL(r)}function K0(e,t,n,r,i,a,o){var s=t&&isNaN(t.get(t.mapDimension(`value`),a)),c=t&&t.getItemLayout(a);if(Z0(e)||s||c&&c.showLabel){var l=Z0(e)?r:a,u=void 0;(!t||a>=0)&&(u=e);var d=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;bB(n,xB(i),{labelFetcher:u,labelDataIndex:l,defaultText:r},d);var f=n.getTextContent();if(f&&(V0(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 q0(e,t,n,r,i,a){t?t.setItemGraphicEl(a,n):jL(n).eventData={componentType:`geo`,componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:r,region:i&&i.option||{}}}function J0(e,t,n,r,i){t||nB({el:n,componentModel:e,itemName:r,itemTooltipOption:i.get(`tooltip`)})}function Y0(e,t,n,r){t.highDownSilentOnTouch=!!e.get(`selectedMode`);var i=r.getModel(`emphasis`),a=i.get(`focus`);return dR(t,a,i.get(`blurScope`),i.get(`disabled`)),Z0(e)&&SEe(t,e,n),a}function X0(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 Z0(e){return e.mainType===`geo`}var bIe=function(e){X(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=f$(this,{coordDimensions:[`value`],encodeDefaulter:pA(vH,this)}),n=zA(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return Q(Y1.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&&$k(s,o)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){if(HV(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)}),qU(`section`,{header:o.join(`, `),noHeader:!o.length,blocks:[qU(`nameValue`,{name:a,value:i})]})},t.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=rG(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 $0(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}(sW);function Q0(e){return e.indexOf(`i`)===0}function $0(e){return e2(e.seriesGroup)===e&&!e.getHostGeoModel()}function e2(e){return e.f[0]}function t2(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 xIe=function(e){X(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):$0(e)?(a||=this._mapDraw=new W0(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;$0(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 FR({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=e2(e.seriesGroup).getData(),u=t.getName(i),d=l.indexOfName(u),f=t.getItemModel(i),p=f.getModel(`label`),m=l.getItemGraphicEl(d);bB(c,xB(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){XL(c,e)}}n.add(c)}}})},t.type=`map`,t}(mW),SIe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},n2=[`lng`,`lat`],r2=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;i.dimensions=n2,i.type=`geo`,i._nameCoordMap=zA(),i.name=t;var a=r.projection,o=Y1.load(n,r.nameMap,r.nameProperty),s=Y1.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=SIe[s.type];i._clip=r.clip,i.view=new Z1(a?!1:l.invertLongitute,O0(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 s0(i.view,u.x,u.y,u.width,u.height),i.aspectScale=a?1:OA(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(gA(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=i2(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=i2(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=t0(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}(wP);function i2(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,rI).models[0]||{}).coordinateSystem:null}function a2(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]);dj(i,i,d),fj(a,a,d)}};d(s,c,l,c),d(l,c,l,u),d(l,u,s,u),d(s,u,l,c)}s0(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=tH(e,t).refContainer,g=f.width/f.height*this.aspectScale,_=!1,v,y;p&&m&&(v=[yF(p[0],h.width)+h.x,yF(p[1],h.height)+h.y],y=yF(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=QV(x,h),b=$V(e,b,g)}c0(n,b.x,b.y,b.width,b.height),o0(n,e)}function CIe(e,t){Q(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var o2=new(function(){function e(){this.dimensions=n2}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 r2(o+a,o,Z({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));n.push(s),i.coordinateSystem=s,s.model=i,s.resize=a2,s.resize(i,t)}),e.eachSeries(function(e){UV({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,rI).models[0];return t&&t.coordinateSystem},allowNotFound:!0})}),Q(t2(e,!0),function(i,a){if(Q0(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 r2(c,c,Z({nameMap:eA(s),api:t,ecModel:e},r(o))),u;Q(i.r,function(e){u=OA(u,e.get(`scaleLimit`))}),n.push(l),l.resize=a2,l.resize(o,t),Q(i.r,function(e){e.coordinateSystem=l,CIe(l,e)})}}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=zA(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return Q(Y1.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&&$k(n,r)}),i},e}()),wIe=function(e){X(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=Y1.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=e.defaultItemStyleColor||$.color.backgroundTint)}qF(e,`label`,[`show`])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=o2.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=cA(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new LB(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},zA()),t.selectedMap||=n},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new LB(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(hA(r))return i.status=t,r(i);if(gA(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}(sH),TIe=function(e){X(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 W0(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;qW(e.target,function(e){return(t=jL(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=jL(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}(dW);function EIe(e,t,n){Y1.registerMap(e,t,n)}function s2(e){e.registerCoordinateSystem(`geo`,o2),e.registerComponentModel(wIe),e.registerComponentView(TIe),e.registerImpl(`registerMap`,EIe),e.registerImpl(`getMap`,function(e){return Y1.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===NL;if(!(r!==`geo`&&!i)){var a=i?`map`:null;t.eachComponent(aI(e,r,a),function(r){i&&!$0(r)||(C0(e,r,i?r.seriesGroup.r:null),T0(e,r,t,n))})}})}var DIe=_I(`map`,OIe);function OIe(e){Q(t2(e),function(t,n){if(!(!e2(t)||!Q0(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=e2(t).getData();i.each(function(e){var t=i.getName(e),n=i.getItemLayout(e)||{};n.showLabel=!r[t],i.setItemLayout(e,n)})}})}function kIe(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 AIe=_I(`map`,jIe);function jIe(e){Q(t2(e),function(e){var t=e2(e);if(t){var n=kIe(sA(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 MIe(e){$K(s2),e.registerChartView(xIe),e.registerSeriesModel(bIe),e.registerLayout(DIe),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,AIe),GW(`map`,e.registerAction)}function NIe(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 PIe(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 FIe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function c2(e){return arguments.length?e:BIe}function l2(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=u2(s),a=d2(a),s&&a;){i=u2(i),o=d2(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&&!u2(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!d2(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function u2(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function d2(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 f2=eI();function p2(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,m2(t,n,e),Q(n,function(n){Q(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,pA(VIe,e))})}),t.wrapMethod(`cloneShallow`,pA(UIe,e)),Q(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,pA(HIe,e))}),MA(n[t.dataType]===t)}function VIe(e,t){if(KIe(this)){var n=Z({},f2(this).datas);n[this.dataType]=t,m2(t,n,e)}else h2(t,this.dataType,f2(this).mainData,e);return t}function HIe(e,t){return e.struct&&e.struct.update(),t}function UIe(e,t){return Q(f2(t).datas,function(n,r){n!==t&&h2(n.cloneShallow(),r,t,e)}),t}function WIe(e){var t=f2(this).mainData;return e==null||t==null?t:f2(t).datas[e]}function GIe(){var e=f2(this).mainData;return e==null?[{data:e}]:sA(dA(f2(e).datas),function(t){return{type:t,data:f2(e).datas[t]}})}function KIe(e){return f2(e).mainData===e}function m2(e,t,n){f2(e).datas={},Q(t,function(t,r){h2(t,r,e,n)})}function h2(e,t,n,r){f2(n).datas[t]=e,f2(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=WIe,e.getLinkedDataAll=GIe}var qIe=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){hA(e)&&(n=t,t=e,e=null),e||={},gA(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}(),g2=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,mA(n)?n.length:1),a.push(e);var r=new qIe(XF(e.name,``),i);t?JIe(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=Sq(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new xq(c,n);return l.initData(a),r&&r(l),p2({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function JIe(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}function _2(e,t,n){if(e&&rA(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(gA(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 v2(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function y2(e,t){return rA(v2(e),t)>=0}function b2(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 x2=`tree`,YIe=function(e){X(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 LB(e.leaves||{},this,this.ecModel),r=g2.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 qU(`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=b2(r,this),n.collapsed=!r.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+x2,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}(sW),XIe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),ZIe=function(e){X(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 XIe},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=yF(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}(xL),QIe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=x2,t._mainGroup=new QP,t}return t.prototype.init=function(e,t){this._controller=new v1(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),N0(e,n,this._controller,P0(this.group),null);var o=this._data;r.diff(o).add(function(t){S2(r,t)&&C2(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);if(!S2(r,t)){i&&E2(o,n,i,a,e);return}C2(r,t,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&E2(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){b0(this.group,2,t.coordinateSystem,null),R0(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=[];GI(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=z0(e,t,i[0],i[1],a[0]-i[0],a[1]-i[1]);b0(this.group,2,c,this._firstRender?null:e),this._min=i,this._max=a},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=M0(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=x2,t}(mW);function S2(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function C2(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 yZ(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,bz(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`?BA(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(jL(n).focus=k),$Ie(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||XL(n.__edge,t)}})}function $Ie(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 nz({shape:D2(u,d,f,i,i)}),bz(h,{shape:D2(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 ZIe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:p}}),bz(h,{shape:{parentPoint:[o.x,o.y],childPoints:_}},e)}h&&!(l===`polyline`&&!t.isExpand)&&(h.useStyle(nA({strokeNoScale:!0,fill:null},m)),mR(h,c,`lineStyle`),QL(h),s.add(h))}function w2(e,t,n,r,i){var a=t.tree.root,o=T2(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`?Cz(d,{shape:D2(p,m,h,c,c),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):f===`polyline`&&r.get(`layout`)===`orthogonal`&&Cz(d,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function T2(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 E2(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=T2(o,a).sourceLayout,c={duration:i.get(`animationDurationUpdate`),easing:i.get(`animationEasingUpdate`)};Cz(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){w2(t,e,r,i,c)}),w2(a,e,r,i,c)}function D2(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=l2(l,d),m=l2(l,d+(f-d)*n),h=l2(u,f+(d-f)*n),g=l2(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 eLe(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 O2(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 tLe(e,t){e.eachSeriesByType(`tree`,function(e){nLe(e,t)})}function nLe(e,t){var n=tH(e,t).refContainer,r=QV(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=c2(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=c2());var c=e.getData().tree.root,l=c.children[0];if(l){NIe(c),eLe(l,PIe,s),c.hierNode.modifier=-l.hierNode.prelim,O2(l,FIe);var u=l,d=l,f=l;O2(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),O2(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=l2(_,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),O2(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),O2(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 rLe(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:NL,subType:x2,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),I0(e,NL,x2)}var iLe=_I(x2,aLe);function aLe(e){e.eachSeriesByType(x2,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();Z(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function oLe(e){e.registerChartView(QIe),e.registerSeriesModel(YIe),e.registerLayout(tLe),e.registerVisual(iLe),rLe(e)}var k2=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function sLe(e){for(var t=0;t<k2.length;t++)e.registerAction({type:k2[t],update:`updateView`},WA);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=_2(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=y2(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function A2(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=TH(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var cLe=function(e){X(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};j2(n);var r=e.levels||[],i=new LB({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=lLe(r,t);var a=sA(r||[],function(e){return new LB(e,i,t)},this),o=g2.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 qU(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=b2(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Z(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=zA(),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(){A2(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}(sW);function j2(e){var t=0;Q(e.children,function(e){j2(e);var n=e.value;mA(n)&&(n=n[0]),t+=n});var n=e.value;mA(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),mA(e.value)?e.value[0]=n:e.value=n}function lLe(e,t){var n=KF(t.get(`color`)),r=KF(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;Q(e,function(e){var t=new LB(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 uLe=8,M2=8,N2=5,dLe=function(){function e(e){this.group=new QP,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=tH(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=QV(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),nH(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=XF(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+uLe*2,t.emptyItemWidth);t.totalWidth+=o+M2,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 ZR({shape:{points:fLe(c,0,_,u,m===f.length-1,m===0)},style:nA(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new kL({style:SB(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:pA(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=SB(o,{text:v}),y.ensureState(`emphasis`).style=p,dR(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),pLe(y,e,g),c+=_+M2}},e.prototype.remove=function(){this.group.removeAll()},e}();function fLe(e,t,n,r,i,a){var o=[[i?e:e-N2,t],[e+n,t],[e+n,t+r],[i?e:e-N2,t+r]];return!a&&o.splice(2,0,[e+n+N2,t+r/2]),!i&&o.push([e,t+r/2]),o}function pLe(e,t,n){jL(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&&b2(n,t)}}var mLe=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 hLe(){return new mLe}var P2=Math.max,F2=Math.min,I2=Q,L2=[`itemStyle`,`borderWidth`],gLe=[`itemStyle`,`gapWidth`],_Le=[`upperLabel`,`show`],vLe=[`upperLabel`,`height`],yLe={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=tH(e,n).refContainer,o=QV(e.getBoxLayoutParams(),a),s=r&&r.type,c=_2(r,[`treemapZoomToNode`,`treemapRootToNode`],e),l=s===`treemapRender`||s===`treemapMove`?r.rootRect:null,u=e.getViewRoot(),d=v2(u);if(s!==`treemapMove`){var f=!1,p=s===`treemapZoomToNode`?(f=!0,TLe(e,c,u,o)):l?(f=!0,Z({},l)):Z({},o);if(f){var m=H2(o,p);m=U2(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(_),R2(u,g,!1,0),_=u.getLayout(),I2(d,function(e,t){var n=(d[t+1]||u).getValue();e.setLayout(Z({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))})}var v=e.getData().tree.root;v.setLayout(ELe(o,l,c),!0),e.setLayoutInfo(o),B2(v,new eM(-o.x,-o.y,n.getWidth(),n.getHeight()),d,u,0)}};function R2(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(L2),l=s.get(gLe)/2,u=V2(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=P2(i-2*f,0),a=P2(a-f-p,0);var m=i*a,h=bLe(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=F2(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=wLe(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,z2(y,_,g,l,!1),_=F2(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&z2(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++)R2(h[b],t,n,r+1)}}}function bLe(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=lA(o,function(e){return!e.isRemoved()}),SLe(o,s);var l=CLe(t,o,s);if(l.sum===0||(l.sum=xLe(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 xLe(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 SLe(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 CLe(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=lI(),I2(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 wLe(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?P2(l*r/c,c/(l*i)):1/0}function z2(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]]=P2(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=P2(v-2*r,0);m[s[o]]=n[s[o]]+F2(r,g/2),m[s[a]]=l+F2(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function TLe(e,t,n,r){var i=(t||{}).node,a=r.width,o=r.height,s=Z({},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(L2),v=Math.max(_,V2(g));u+=4*_*_+(3*_+v)*u**.5,u>kF&&(u=kF),i=c}u<l&&(u=l);var y=(u/l)**.5;return{width:a*y,height:o*y}}function ELe(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 B2(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 eM(t.x-a.x,t.y-a.y,t.width,t.height);I2(e.viewChildren||[],function(e){B2(e,c,n,r,i+1)})}}function V2(e){return e.get(_Le)?e.get(vLe):0}function H2(e,t){return t.width/e.width||t.height/e.height||1}function U2(e,t){return j0(e,t.get(`scaleLimit`,!0))}var W2=QP,G2=DL,K2=3,q2=`label`,J2=`upperLabel`,DLe=100,OLe=20,kLe=30,Y2=CI([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),X2=function(e){var t=Y2(e);return t.stroke=t.fill=t.lineWidth=null,t},Z2=eI(),ALe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=Q2(),n}return t.prototype.render=function(e,t,n,r){if(!(rA(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=_2(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 W2,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=Q2(),o=Q2(),s=this._storage,c=[];function l(e,r,i,l){return jLe(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 nq(t,e,a,a).add(o).update(o).remove(pA(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=Q2();return e&&Q(e,function(e,n){var r=t[n];Q(e,function(e){e&&(r.push(e),Z2(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=(hA(i)?0:i)||0,s=(hA(a)?null:a)||`cubicOut`,c=hLe();Q(t.willDeleteEls,function(e,t){Q(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=Z2(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 QP?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=Z({},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(fA(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 v1(e.getZr()),r.on(`pan`,fA(this._onPan,this)),r.on(`zoom`,fA(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)>K2||Math.abs(e.dy)>K2)){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 eM(o.x,o.y,o.width,o.height),c=i.layoutInfo,l=H2(c,o),u=l*r;u=U2(u,i);var d=u/l;t-=c.x,n-=c.y;var f=Mj();Ij(f,f,[-t,-n]),Rj(f,f,[d,d]),Ij(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&&IV(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 dLe(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(y2(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Q2(),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}(mW);function Q2(){return{nodeGroup:[],background:[],content:[]}}function jLe(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`,W2);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),Z2(D).nodeWidth=p,Z2(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=V(`background`,G2,l,OLe);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)gR(D)&&hR(D,!1),O&&(hR(O,!M),d.setItemGraphicEl(o.dataIndex,O),fR(O,N,j));else{var P=V(`content`,G2,l,kLe);P&&L(D,P),O.disableMorphing=!0,O&&gR(O)&&hR(O,!1),hR(D,!M),d.setItemGraphicEl(o.dataIndex,D);var F=f.getShallow(`cursor`);F&&P.attr(`cursor`,F),fR(D,N,j)}return D;function I(t,n,r){var i=jL(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=X2(S);c.fill=s;var l=Y2(C);l.fill=C.get(`borderColor`);var u=Y2(w);u.fill=w.get(`borderColor`);var d=Y2(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,QL(n)}t.add(n)}function L(t,n){var r=jL(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=X2(S);l.fill=c,l.decal=s.decal;var u=Y2(C),d=Y2(w),f=Y2(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,QL(n)}t.add(n)}function R(e){!e.invisible&&a.push(e)}function z(t,n,r,i){var a=f.getModel(i?J2:q2),s=XF(f.get(`name`),null),c=a.getShallow(`show`);bB(t,xB(f,i?J2:q2),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=jA(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 PI&&(s.z2=MLe(a,o)),U(c,s)),t[e][_]=s}function H(e,t){var n=e[_]={};t instanceof W2?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Z({},t.shape)}function U(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof QP;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 MLe(e,t){return e*DLe+t}var $2=Q,NLe=yA,e4=-1,t4=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=Qk(t);this.type=r,this.mappingMethod=n,this._normalizeData=ILe[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(n4(i),PLe(i)):n===`category`?i.categories?FLe(i):n4(i,!0):(MA(n!==`linear`||i.dataExtent),n4(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return fA(this._normalizeData,this)},e.listVisualTypes=function(){return dA(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){yA(e)?Q(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=mA(t)?[]:yA(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&&$2(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(mA(e))e=e.slice();else if(NLe(e)){var t=[];$2(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||gA(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(d4(u[1],e,l[1]))return a}else if(l[1]===1/0){if(d4(u[0],l[0],e))return a}else if(d4(u[0],l[0],e)&&d4(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:a4(`color`),getColorMapper:function(){var e=this.option;return fA(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),o4.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=pN(t,e.parsedVisual,r),i?r:_N(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return _N(pN(e,this.option.parsedVisual),`rgba`)},category:o4,piecewise:function(e,t){var n=l4.call(this,t);return n??=_N(pN(e,this.option.parsedVisual),`rgba`),n},fixed:s4}},colorHue:r4(function(e,t){return hN(e,t)}),colorSaturation:r4(function(e,t){return hN(e,null,t)}),colorLightness:r4(function(e,t){return hN(e,null,null,t)}),colorAlpha:r4(function(e,t){return gN(e,t)}),decal:{applyVisual:a4(`decal`),_normalizedToVisual:{linear:null,category:o4,piecewise:null,fixed:null}},opacity:{applyVisual:a4(`opacity`),_normalizedToVisual:c4([0,1])},liftZ:{applyVisual:a4(`liftZ`),_normalizedToVisual:{linear:s4,category:s4,piecewise:s4,fixed:s4}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:i4,category:o4,piecewise:function(e,t){var n=l4.call(this,t);return n??=i4.call(this,e),n},fixed:s4}},symbolSize:{applyVisual:a4(`symbolSize`),_normalizedToVisual:c4([0,1])}},e}();function PLe(e){var t=e.pieceList;e.hasSpecialVisual=!1,Q(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function FLe(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if($2(t,function(e,t){n[e]=t}),!mA(r)){var i=[];yA(r)?$2(r,function(e,t){var r=n[t];i[r??e4]=e}):i[e4]=r,r=u4(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function n4(e,t){var n=e.visual,r=[];yA(n)?$2(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]),u4(e,r)}function r4(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:c4([0,1])}}function i4(e){var t=this.option.visual;return t[Math.round(vF(e,[0,1],[0,t.length-1],!0))]||{}}function a4(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function o4(e){var t=this.option.visual;return t[this.option.loop&&e!==e4?e%t.length:e]}function s4(){return this.option.visual[0]}function c4(e){return{linear:function(t){return vF(t,e,this.option.visual,!0)},category:o4,piecewise:function(t,n){var r=l4.call(this,n);return r??=vF(t,e,this.option.visual,!0),r},fixed:s4}}function l4(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[t4.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function u4(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=sA(t,function(e){return uN(e)||[0,0,0,1]})),t}var ILe={linear:function(e){return vF(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=t4.findPieceIndex(e,t,!0);if(n!=null)return vF(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??e4},fixed:WA};function d4(e,t,n){return e?t<=n:t<n}var LLe=`itemStyle`,f4=eI(),RLe={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||p4(t,{},e.getViewRoot().getAncestors(),e)}};function p4(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(LLe),c=zLe(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=m4(c),u=BLe(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=m4(c),l.fill=f;else{var m=VLe(e,i,a,s,c,p);Q(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&p4(e,HLe(i,c,e,t,m,r),n,r)})}}}function zLe(e,t,n){var r=Z({},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 m4(e){var t=h4(e,`color`);if(t){var n=h4(e,`colorAlpha`),r=h4(e,`colorSaturation`);return r&&(t=hN(t,null,null,r)),n&&(t=gN(t,n)),t}}function BLe(e,t){return t==null?null:hN(t,null,null,e)}function h4(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function VLe(e,t,n,r,i,a){if(!(!a||!a.length)){var o=g4(t,`color`)||i.color!=null&&i.color!==`none`&&(g4(t,`colorAlpha`)||g4(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 t4(d);return f4(f).drColorMappingBy=u,f}}}function g4(e,t){var n=e.get(t);return mA(n)&&n.length?{name:t,range:n}:null}function HLe(e,t,n,r,i,a){var o=Z({},t);if(i){var s=i.type,c=s===`color`&&f4(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 ULe(e){e.registerSeriesModel(cLe),e.registerChartView(ALe),e.registerVisual(RLe),e.registerLayout(yLe),sLe(e)}function _4(e){return`_EC_`+e}var WLe=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[_4(e)]){var r=new v4(e,t);return r.hostGraph=this,this.nodes.push(r),n[_4(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[_4(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(vA(e)&&(e=this.nodes[e]),vA(t)&&(t=this.nodes[t]),e instanceof v4||(e=r[_4(e)]),t instanceof v4||(t=r[_4(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new y4(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 v4&&(e=e.id),t instanceof v4&&(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 v4||(t=this._nodesMap[_4(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}(),v4=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=zA(),t=zA(),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}(),y4=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=zA(),t=zA();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 b4(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)}}}aA(v4,b4(`hostGraph`,`data`)),aA(y4,b4(`hostGraph`,`edgeData`));function x4(e,t,n,r,i){for(var a=new WLe(r),o=0;o<e.length;o++)a.addNode(DA(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(DA(XF(u.id,null),d+` > `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=Dq(e,n);else{var h=zV.get(p),g=h&&h.dimensions||[];rA(g,`value`)<0&&g.concat([`value`]);var _=Sq(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new xq(_,n),m.initData(e)}var v=new xq([`value`],n);return v.initData(c,s),i&&i(m,v),p2({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var S4=`-->`,C4=function(e){return e.get(`autoCurveness`)||null},w4=function(e,t){var n=C4(e),r=20,i=[];if(vA(n))r=n;else if(mA(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},T4=function(e,t,n){var r=[e.id,e.dataIndex].join(`.`),i=[t.id,t.dataIndex].join(`.`);return[n.uid,r,i].join(S4)},E4=function(e){var t=e.split(S4);return[t[0],t[2],t[1]].join(S4)},GLe=function(e,t){var n=T4(e.node1,e.node2,t);return t.__edgeMap[n]},KLe=function(e,t){return D4(T4(e.node1,e.node2,t),t)+D4(T4(e.node2,e.node1,t),t)},D4=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function qLe(e){C4(e)&&(e.__curvenessList=[],e.__edgeMap={},w4(e))}function JLe(e,t,n,r){if(C4(n)){var i=T4(e,t,n),a=n.__edgeMap,o=a[E4(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 O4(e,t,n,r){var i=C4(t),a=mA(i);if(!i)return null;var o=GLe(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=KLe(e,t);w4(t,l),e.lineStyle=e.lineStyle||{};var u=T4(e.node1,e.node2,t),d=t.__curvenessList,f=a||l%2?0:1;if(o.isForward)return d[f+s];var p=D4(E4(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 k4=`graph`,YLe=function(e){X(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 p$(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),qF(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){qLe(this);var a=x4(r,n,this,!0,o);return Q(a.edges,function(e){JLe(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=LB.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),qU(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return rW({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=sA(this.option.categories||[],function(e){return e.value==null?Z({value:0},e):e}),t=new xq([`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 y0(e)&&e},t.type=`series.`+k4,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}(sW);function A4(e){return e instanceof Array||(e=[e,e]),e}var XLe=_I(k4,ZLe);function ZLe(e){e.eachSeriesByType(k4,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=A4(e.get(`edgeSymbol`)),i=A4(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=A4(r.getShallow(`symbol`,!0)),o=A4(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(Z(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 j4(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`)])}),M4(n,e)}}function M4(e,t){e.eachEdge(function(e,n){var r=kA(e.getModel().get([`lineStyle`,`curveness`]),-O4(e,t,n,!0),0),i=XA(e.node1.getLayout()),a=XA(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 QLe=_I(k4,$Le);function $Le(e,t){e.eachSeriesByType(k4,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])}M4(r.graph,e)}else(!t||t===`none`)&&j4(e)})}function N4(e){var t=e.coordinateSystem;return y0(t)?M0(t,e):1}function P4(e){var t=e.getVisual(`symbolSize`);return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var F4=Math.PI,I4=[];function L4(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];ij(h,h),rj(h,h,u),n.setLayout([c+h[0],l+h[1]],!0),R4(n,e.get([`circular`,`rotateLabel`]),c,l)}eRe[t](e,s,o,u,c,l,d),s.eachEdge(function(t,n){var r=kA(t.getModel().get([`lineStyle`,`curveness`]),O4(t,e,n),0),i=XA(t.node1.getLayout()),a=XA(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 eRe={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;I4.length=o;var c=N4(e);t.eachNode(function(e){var t=P4(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=c;var n=Math.asin(t/2/r);isNaN(n)&&(n=F4/2),I4[e.dataIndex]=n,s+=n*2});var l=(2*F4-s)/o/2,u=0;t.eachNode(function(e){var t=l+I4[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function R4(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`);Z(d.textConfig||={},{position:u})}else o.setTextConfig({rotation:a*=Math.PI/180})}}var tRe=_I(k4,nRe);function nRe(e){e.eachSeriesByType(`graph`,function(e){e.get(`layout`)===`circular`&&L4(e,`symbolSize`)})}var z4=$A;function rRe(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||=JA(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1]),d.pp=XA(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;ej(t,u.p,s.p);var d=tj(t)-o.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),ij(t,t),!s.fixed&&z4(s.p,s.p,t,f*d*p),!u.fixed&&z4(u.p,u.p,t,-(1-f)*d*p)}}for(var a=0;a<n;a++){var g=r[a];g.fixed||(ej(t,c,g.p),z4(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[_];ej(t,u.p,s.p);var d=tj(t);d===0&&(ZA(t,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&z4(s.pp,s.pp,t,v),!u.fixed&&z4(u.pp,u.pp,t,-v)}for(var y=[],a=0;a<n;a++){var g=r[a];g.fixed||(ej(y,g.p,g.pp),z4(g.p,g.p,y,p),YA(g.pp,g.p))}p*=.992;var b=p<.01;h&&h(r,i,b),e&&e(b)}}}var iRe=_I(k4,aRe);function aRe(e){e.eachSeriesByType(k4,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`?j4(e):s===`circular`&&L4(e,`value`);var c=i.getDataExtent(`value`),l=a.getDataExtent(`value`),u=o.get(`repulsion`),d=o.get(`edgeLength`),f=mA(u)?u:[u,u],p=mA(d)?d:[d,d];p=[p[1],p[0]];var m=i.mapArray(`value`,function(e,t){var n=i.getItemLayout(t),r=vF(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=rRe(m,a.mapArray(`value`,function(t,n){var i=r.getEdgeByIndex(n),a=vF(t,l,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),s=kA(i.getModel().get([`lineStyle`,`curveness`]),-O4(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&&YA(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]||[],YA(f[0],u),YA(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 oRe(e,t,n){var r=tH(e,t);return $V(e,QV(Z(e.getBoxLayoutParams(),{aspect:n}),r.refContainer),n)}function sRe(e,t){var n=[];return e.eachSeriesByType(`graph`,function(e){UV({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=[];GI(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=oRe(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=z0(e,t,a[0],a[1],l,u,c);return n.push(d),d}}),n}var B4=$R.prototype,V4=nz.prototype,H4=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(H4);function U4(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var W4=function(e){X(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 H4},t.prototype.buildPath=function(e,t){U4(t)?B4.buildPath.call(this,e,t):V4.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return U4(this.shape)?B4.pointAt.call(this,e):V4.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=U4(t)?[t.x2-t.x1,t.y2-t.y1]:V4.tangentAt.call(this,e);return ij(n,n)},t}(xL),G4=[`fromSymbol`,`toSymbol`];function K4(e){return`_`+e+`Type`}function q4(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=iG(i),l=aG(o||0,c);return r+c+l+(a||``)+(s||``)}function J4(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=iG(i),l=aG(o||0,c),u=rG(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 cRe(e){var t=new W4({name:`line`,subPixelOptimize:!0});return Y4(t.shape,e),t}function Y4(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 X4=function(e){X(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=cRe(i);o.shape.percent=0,xz(o,{z2:OA(a,0),shape:{percent:1}},r,t),this.add(o),Q(G4,function(n){var r=J4(n,e,t);this.add(r),this[K4(n)]=q4(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:{}};Y4(o.shape,a),bz(i,o,r,t),Q(G4,function(n){var r=q4(n,e,t),i=K4(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=J4(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=xB(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(G4,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<VL.length;n++){var r=VL[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);bB(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)?SF(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`);mA(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),dR(this,u,d,l)},t.prototype.highlight=function(){$L(this)},t.prototype.downplay=function(){eR(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`);Y4(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=ej([],l,c);ij(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}(QP),Z4=function(){function e(e){this.group=new QP,this._LineCtor=e||X4}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=Q4(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=Q4(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!lRe(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i<e.end;i++)if(e3(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){iB(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(e3(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(!e3(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 lRe(e){return e.animators&&e.animators.length>0}function Q4(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:xB(t)}}function $4(e){return isNaN(e[0])||isNaN(e[1])}function e3(e){return e&&!$4(e[0])&&!$4(e[1])}var t3=[],n3=[],r3=[],i3=WM,a3=cj,o3=Math.abs;function s3(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){t3[0]=i3(r[0],i[0],a[0],u),t3[1]=i3(r[1],i[1],a[1],u);var d=o3(a3(t3,t)-c);d<o&&(o=d,s=u)}for(var f=0;f<32;f++){var p=s+l;n3[0]=i3(r[0],i[0],a[0],s),n3[1]=i3(r[1],i[1],a[1],s),r3[0]=i3(r[0],i[0],a[0],p),r3[1]=i3(r[1],i[1],a[1],p);var d=a3(n3,t)-c;if(o3(d)<.01)break;var m=a3(r3,t)-c;l/=2,d<0?m>=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function c3(e,t){var n=[],r=qM,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=[XA(c[0]),XA(c[1])],c[2]&&c.__original.push(XA(c[2])));var d=c.__original;if(c[2]!=null){if(YA(i[0],d[0]),YA(i[1],d[2]),YA(i[2],d[1]),l&&l!==`none`){var f=P4(e.node1),p=s3(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=P4(e.node2),p=s3(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]}YA(c[0],i[0]),YA(c[1],i[2]),YA(c[2],i[1])}else{if(YA(a[0],d[0]),YA(a[1],d[1]),ej(o,a[1],a[0]),ij(o,o),l&&l!==`none`){var f=P4(e.node1);$A(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=P4(e.node2);$A(a[1],a[1],o,-f*t)}YA(c[0],a[0]),YA(c[1],a[1])}})}var l3=eI();function uRe(e){if(e)return l3(e).bridge}function u3(e,t){e&&(l3(e).bridge=t)}var dRe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=k4,t}return t.prototype.init=function(e,t){var n=new wZ,r=new Z4,i=this.group,a=new QP;this._controller=new v1(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=w0(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&&b0(o,2,i,this._firstRender?null:e),c3(e.getGraph(),N4(e));var u=e.getData();c.updateData(u);var d=e.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),i&&N0(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),L4(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),M4(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`&&(jL(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(jL(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){R4(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=w0(t);!this._active||!r||(b0(this._mainGroup,2,r,null),R0(e)&&(this._updateNodeAndLinkScale(),c3(t.getGraph(),N4(t)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=N4(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(c3(e.getGraph(),N4(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=uRe(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow($1(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new QP,o=n.group.children(),s=r.group.children(),c=new QP,l=new QP;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=Z(Qk(f.shape),{width:f.scaleX,height:f.scaleY,x:p-f.scaleX/2,y:m-f.scaleY/2}),g=Qk(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=Qk(v.style),h=Qk(v.shape),y=new W4({style:g,shape:h,z2:151});c.add(y)}i.bridge.renderContent({api:t,roamType:e.get(`roam`),viewportRect:null,group:a,targetTrans:$1(null,i.coordSys)})}},t.type=k4,t}(mW),fRe=_I(k4,pRe);function pRe(e){var t=e.findComponents({mainType:`legend`});!t||!t.length||e.eachSeriesByType(k4,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){vA(n)&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}var mRe=_I(k4,hRe);function hRe(e){var t={};e.eachSeriesByType(k4,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){gA(t)&&(t=i[`ec-`+t]);var a=n.getItemVisual(t,`style`);Z(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 gRe(e){e.registerChartView(dRe),e.registerSeriesModel(YLe),e.registerProcessor(fRe),e.registerVisual(mRe),e.registerVisual(XLe),e.registerLayout(QLe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,tRe),e.registerLayout(iRe),e.registerCoordinateSystem(`graphView`,{dimensions:Z1.dimensions,create:sRe}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},WA),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},WA),I0(e,NL,k4)}var d3=`chord`,_Re=function(e){X(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 p$(fA(this.getData,this),fA(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 x4(r,n,this,!0,i).data;function i(e,t){var n=LB.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),qU(`nameValue`,{name:c.join(` > `),value:r.value,noValue:r.value==null})}return qU(`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.`+d3,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}(sW),f3=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;jL(i).dataType=`node`,i.z2=2;var a=new kL;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=Z(XQ(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):bz(d,{shape:u},o,t);var f=Z(XQ(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),mR(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),mR(d,s,`itemStyle`);var p=c.get(`focus`);dR(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=xB(t),u=n.getVisual(`style`);bB(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,kA(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}(JR);(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 vRe=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;return jL(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=Z(XQ(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),p3(m,o,e,u)):(Ez(m),p3(m,o,e,u),bz(m,{shape:p},a,n)),dR(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),mR(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(xL);function p3(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(gA(s)&&gA(c)){var l=e.shape;o.fill=new oz((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 yRe=Math.PI/180,bRe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=d3,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`)*yRe;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new f3(r,e,o);jL(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&Tz(s,e,n);return}s?s.updateData(r,t,o):s=new f3(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&Tz(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=yF(s[0],n.getWidth()),this.group.originY=yF(s[1],n.getHeight()),xz(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 vRe(n,r,e,t);jL(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&&Tz(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=d3,t}(mW),m3=Math.PI/180,xRe=_I(d3,SRe);function SRe(e,t){e.eachSeriesByType(d3,function(e){CRe(e,t)})}function CRe(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=ZV(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*m3,0),d=Math.max((e.get(`minAngle`)||0)*m3,0),f=-e.get(`startAngle`)*m3,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];lL(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 wRe(e){e.registerChartView(bRe),e.registerSeriesModel(_Re),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,xRe),e.registerProcessor(d$(`chord`))}var TRe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),ERe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new TRe},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}(xL);function DRe(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:yF(n[0],t.getWidth()),cy:yF(n[1],t.getHeight()),r:yF(e.get(`radius`),a/2)}}function h3(e,t){var n=e==null?``:e+``;return t&&(gA(t)?n=t.replace(`{value}`,n):hA(t)&&(n=t(e))),n}var ORe=function(e){X(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=DRe(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`)?qQ:JR,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];lL(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=yF(h.get(`length`),f),x=yF(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 $R({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=h3(SF(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:vA(L)&&(R=L*Math.PI/180),R===0?l.add(new kL({style:SB(_,{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 kL({style:SB(_,{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 $R({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=yF(r.get(`width`),i.r),o=yF(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=yF(c[0],i.r),u=yF(c[1],i.r),d=r.get(`keepAspect`),f=s?rG(s,l-a/2,u-o,a,o,null,d):new ERe({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`)?qQ:JR,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=vF(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);xz(r,{rotation:-((isNaN(+n)?x[0]:vF(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);xz(i,{shape:{endAngle:vF(n,b,x,m.get(`clip`))}},e),l.add(i),ML(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,bz(s,{rotation:-((isNaN(+r)?x[0]:vF(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);bz(v,{shape:{endAngle:vF(r,b,x,m.get(`clip`))}},e),l.add(v),ML(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(vF(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 CL){var d=c.style;c.useStyle(Z({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,mR(c,t),dR(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,mR(m,t),dR(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=rG(i,t.cx-r/2+yF(a[0],t.r),t.cy-r/2+yF(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 QP,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new kL({silent:!0}),f[e]=new kL({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 QP,g=r(vF(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+yF(v[0],i.r),b=i.cy+yF(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:SB(_,{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+yF(C[0],i.r),T=i.cy+yF(C[1],i.r),E=yF(S.get(`width`),i.r),D=yF(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:SB(S,{x:w,y:T,text:h3(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),AB(x,{normal:S},a,function(e){return h3(e,k)}),p&&jB(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return h3(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}(mW),kRe=function(e){X(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 f$(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}(sW);function ARe(e){e.registerChartView(ORe),e.registerSeriesModel(kRe)}var g3=`funnel`,jRe=function(e){X(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 p$(fA(this.getData,this),fA(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return f$(this,{coordDimensions:[`value`],encodeDefaulter:pA(vH,this)})},t.prototype._defaultLabelLine=function(e){qF(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.`+g3,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}(sW),MRe=[`itemStyle`,`opacity`],NRe=function(e){X(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new QR,o=new kL;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(MRe);c??=1,n||Ez(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,xz(r,{style:{opacity:c}},i,t)):bz(r,{style:{opacity:c},shape:{points:o.points}},i,t),mR(r,a),this._updateLabel(e,t),dR(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;bB(i,xB(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 Vj(d[0][0],d[0][1]):null},bz(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),IY(n,LY(o),{stroke:l})},t}(ZR),PRe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=g3,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 NRe(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){Tz(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=g3,t}(mW);function FRe(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 hA(t)?i.sort(t):t!==`none`&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}function IRe(e){var t=e.hostModel,n=_3(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`);gA(i)&&(!n&&rA([`top`,`bottom`],i)>-1&&(i=`left`),n&&rA([`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 LRe=_I(g3,RRe);function RRe(e,t){e.eachSeriesByType(g3,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=tH(e,t),o=QV(e.getBoxLayoutParams(),a.refContainer),s=_3(e),c=o.width,l=o.height,u=FRe(n,i),d=o.x,f=o.y,p=s?[yF(e.get(`minSize`),l),yF(e.get(`maxSize`),l)]:[yF(e.get(`minSize`),c),yF(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=vF(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=vF(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=yF(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=yF(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())})}}IRe(n)})}function _3(e){return e.get(`orient`)===`horizontal`}function zRe(e){e.registerChartView(PRe),e.registerSeriesModel(jRe),e.registerLayout(LRe),e.registerProcessor(d$(g3))}var BRe=.3,VRe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new QP,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=b3(e);a.diff(o).add(u).update(d).remove(f).execute();function u(e){x3(y3(a,i,e,c,s),a,e,l)}function d(t,n){var r=o.getItemGraphicEl(n);i.add(r);var u=v3(a,t,c,s);a.setItemGraphicEl(t,r),bz(r,{shape:{points:u}},e,t),Ez(r),x3(r,a,t,l)}function f(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(!this._initialized){this._initialized=!0;var p=HRe(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=y3(r,this._dataGroup,o,i.dimensions,i);s.incremental=gI(t),x3(s,r,o,b3(t)),a.push(s)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type=`parallel`,t}(mW);function HRe(e,t,n){var r=e.model,i=e.getRect(),a=new DL({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),xz(a,{shape:{width:i.width,height:i.height}},t,n),a}function v3(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);URe(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function y3(e,t,n,r,i){var a=new QR({shape:{points:v3(e,n,r,i)},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function b3(e){var t=e.get(`smooth`,!0);return t===!0&&(t=BRe),t=RF(t),EA(t)&&(t=0),{smooth:t}}function x3(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`);mR(e,i,`lineStyle`),dR(e,a.get(`focus`),a.get(`blurScope`),a.get(`disabled`))}function URe(e,t){return t===`category`?e==null:e==null||isNaN(e)}var WRe=function(e){X(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 Dq(null,this,{useEncodeDefaulter:fA(GRe,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}(sW);function GRe(e){var t=e.ecModel.getComponent(`parallel`,e.get(`parallelIndex`));if(t){var n={};return Q(t.dimensions,function(e){n[e]=KRe(e)}),n}}function KRe(e){return+e.replace(`dim`,``)}var qRe=[`lineStyle`,`opacity`],JRe={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(qRe,!0);a!=null&&(i=a)}var o=t.ensureUniqueItemVisual(n,`style`);o.opacity=i},e.start,e.end)}}}};function YRe(e){XRe(e),ZRe(e)}function XRe(e){if(!e.parallel){var t=!1;Q(e.series,function(e){e&&e.type===`parallel`&&(t=!0)}),t&&(e.parallel=[{}])}}function ZRe(e){Q(KF(e.parallelAxis),function(t){if(yA(t)){var n=t.parallelIndex||0,r=KF(e.parallel)[n];r&&r.parallelAxisDefault&&$k(t,r.parallelAxisDefault,!1)}})}var QRe=5,$Re=function(e){X(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(eze,function(e,t){n.getZr().on(t,this._handlers[t]=fA(e,this))},this)),xW(this,`_throttledDispatchExpand`,e.get(`axisExpandRate`),`fixRate`)},t.prototype.dispose=function(e,t){SW(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(Z({type:`parallelAxisExpand`},e))},t.type=`parallel`,t}(dW),eze={mousedown:function(e){S3(this,`click`)&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(S3(this,`click`)&&t){var n=[e.offsetX,e.offsetY];if((t[0]-n[0])**2+(t[1]-n[1])**2>QRe)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||!S3(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 S3(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var C3=`parallel`,w3=C3,tze=function(e){X(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&&$k(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(lA(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=w3,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}(sH),nze=function(e){X(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}(yY);function T3(e,t,n,r,i,a){e||=0;var o=OF(n[1],-n[0]);if(i!=null&&(i=D3(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(OF(t[1],-t[0]));s=D3(s,[0,o]),i=a=D3(s,[i,a]),r=0}t[0]=D3(t[0],n),t[1]=D3(t[1],n);var c=E3(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=OF(u[0],l):u[1]=OF(u[1],-l),t[r]=D3(t[r],u);var d=E3(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=OF(t[r],c.sign*i)),d=E3(t,r),a!=null&&d.span>a&&(t[1-r]=OF(t[r],d.sign*a)),t}function E3(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 D3(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var rze=function(){function e(e,t,n){this.type=C3,this._axesMap=zA(),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=dJ(a),s=this._axesMap.set(e,new nze(e,fJ(a,o,!1),[0,0],o,r));s.onBand=xJ(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);VJ(t,1),qJ(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=tH(e,t).refContainer;this._rect=QV(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=O3(e.get(`axisExpandWidth`),s),u=O3(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=O3(f[1]-f[0],s),f[1]=f[0]+p):(p=O3(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||fF(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[fF(SF(f[0]/l,1))+1,pF(SF(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?aze:ize)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:_F/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=Mj();Lj(u,u,l),Ij(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 Uz([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return Qk(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?T3(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[lF(0,a[1]*o/f-f/2)],r[1]=cF(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function O3(e,t){return cF(lF(e,t[0]),t[1])}function ize(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function aze(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 oze(e,t){var n=[];return e.eachComponent(w3,function(r,i){var a=new rze(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(w3,rI).models[0].coordinateSystem;t&&Q(t.dimensions,function(n){MJ(t.getAxis(n),e,C3)})}}),n}var sze={create:oze},k3=function(e){X(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 CI([[`fill`,`color`],[`lineWidth`,`borderWidth`],[`stroke`,`borderColor`],[`width`,`width`],[`opacity`,`opacity`]])(this.getModel(`areaSelectStyle`))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=Qk(e);if(t)for(var n=t.length-1;n>=0;n--)CF(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}(sH);aA(k3,SJ);var A3=!0,j3=Math.min,M3=Math.max,cze=Math.pow,lze=1e4,uze=6,dze=6,N3=`globalPan`,fze={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},pze={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},P3={brushStyle:{lineWidth:2,stroke:$.color.backgroundTint,fill:$.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},mze=0,F3=function(e){X(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new QP,n._uid=`brushController_`+mze++,Q(Dze,function(e,t){this._handlers[t]=fA(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||jFe(t,N3,this._uid),Q(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=$k(Qk(P3),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;MFe(e,N3,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]=Qk(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=sA(e,function(e){return $k(Qk(P3),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new nq(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]:B3(i,r[t]=o==null?L3(i,I3(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),W3(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(mj);function I3(e,t){var n=t6[t.brushType].createCover(e,t);return n.__brushOption=t,z3(n,t),e.group.add(n),n}function L3(e,t){var n=V3(t);return n.endCreating&&(n.endCreating(e,t),z3(t,t.__brushOption)),t}function R3(e,t){var n=t.__brushOption;V3(t).updateCoverShape(e,t,n.range,n)}function z3(e,t){var n=t.z;n??=lze,e.traverse(function(e){e.z=n,e.z2=n})}function B3(e,t){V3(t).updateCommon(e,t),R3(e,t)}function V3(e){return t6[e.__brushOption.brushType]}function H3(e,t,n){var r=e._panels;if(!r)return A3;var i,a=e._transform;return Q(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function U3(e,t){var n=e._panels;if(!n)return A3;var r=t.__brushOption.panelId;return r==null?A3:n[r]}function W3(e){var t=e._covers,n=t.length;return Q(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function G3(e,t){var n=sA(e._covers,function(e){var t=e.__brushOption,n=Qk(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function hze(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 cze(i*i+a*a,.5)>uze}function K3(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function q3(e,t,n,r){var i=new QP;return i.add(new DL({name:`main`,style:X3(n),silent:!0,draggable:!0,cursor:`move`,drift:pA(bze,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:pA(G3,t,{isEnd:!0})})),Q(r,function(n){i.add(new DL({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:pA(bze,e,t,i,n),ondragend:pA(G3,t,{isEnd:!0})}))}),i}function gze(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=M3(i,dze),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;Y3(e,t,`main`,o,s,m,h),r.transformable&&(Y3(e,t,`w`,c,l,a,_),Y3(e,t,`e`,f,l,a,_),Y3(e,t,`n`,c,l,g,a),Y3(e,t,`s`,c,p,g,a),Y3(e,t,`nw`,c,l,a,a),Y3(e,t,`ne`,f,l,a,a),Y3(e,t,`sw`,c,p,a,a),Y3(e,t,`se`,f,p,a,a))}function J3(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(X3(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?Z3(e,n[0]):yze(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?pze[a]+`-resize`:null})})}function Y3(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(Cze(Q3(e,t,[[r,i],[r+a,i+o]])))}function X3(e){return nA({strokeNoScale:!0},e.brushStyle)}function _ze(e,t,n,r){var i=[j3(e,n),j3(t,r)],a=[M3(e,n),M3(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function vze(e){return Hz(e.group)}function Z3(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[Wz({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],vze(e))]}function yze(e,t){var n=[Z3(e,t[0]),Z3(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function bze(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=Sze(t,i,a);Q(r,function(e){var t=fze[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(_ze(s[0][0],s[1][0],s[0][1],s[1][1])),B3(t,n),G3(t,{isEnd:!1})}function xze(e,t,n,r){var i=t.__brushOption.range,a=Sze(e,n,r);Q(i,function(e){e[0]+=a[0],e[1]+=a[1]}),B3(e,t),G3(e,{isEnd:!1})}function Sze(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 Q3(e,t,n){var r=U3(e,t);return r&&r!==A3?r.clipPath(n,e._transform):Qk(n)}function Cze(e){var t=j3(e[0][0],e[1][0]),n=j3(e[0][1],e[1][1]),r=M3(e[0][0],e[1][0]),i=M3(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function wze(e,t,n){if(!(!e._brushType||kze(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=H3(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===A3||s.panelId===a.panelId)&&t6[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function $3(e){var t=e.event;t.preventDefault&&t.preventDefault()}function e6(e,t,n){return e.childOfName(`main`).contain(t,n)}function Tze(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),hze(e)||i){if(a&&!i){o.brushMode===`single`&&W3(e);var c=Qk(o);c.brushType=Eze(c.brushType,a),c.panelId=a===A3?null:a.panelId,i=e._creatingCover=I3(e,c),e._covers.push(i)}if(i){var l=t6[Eze(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(Q3(e,i,e._track)),r&&(L3(e,i),l.updateCommon(e,i)),R3(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&H3(e,t,n)&&W3(e)&&(s={isEnd:r,removeOnClick:!0});return s}function Eze(e,t){return e===`auto`?t.defaultBrushType:e}var Dze={mousedown:function(e){if(this._dragging)Oze(this,e);else if(!e.target||!e.target.draggable){$3(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=H3(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(wze(this,e,r),this._dragging){$3(e);var i=Tze(this,e,r,!1);i&&G3(this,i)}},mouseup:function(e){Oze(this,e)}};function Oze(e,t){if(e._dragging){$3(t);var n=t.offsetX,r=t.offsetY,i=Tze(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&G3(e,i)}}function kze(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var t6={lineX:Aze(0),lineY:Aze(1),rect:{createCover:function(e,t){function n(e){return e}return q3({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=K3(e);return _ze(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){gze(e,t,n,r)},updateCommon:J3,contain:e6},polygon:{createCover:function(e,t){var n=new QP;return n.add(new QR({name:`main`,style:X3(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ZR({name:`main`,draggable:!0,drift:pA(xze,e,t),ondragend:pA(G3,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:Q3(e,t,n)})},updateCommon:J3,contain:e6}};function Aze(e){return{createCover:function(t,n){return q3({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=K3(t);return[j3(n[0][e],n[1][e]),M3(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=U3(t,n);if(o!==A3&&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(),gze(t,n,c,i)},updateCommon:J3,contain:e6}}function jze(e){return e=n6(e),function(t){return qz(t,e)}}function Mze(e,t){return e=n6(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 Nze(e,t,n){var r=n6(e);return function(e,i){return r.contain(i[0],i[1])&&!_1(e,t,n)}}function n6(e){return eM.create(e)}var Pze=function(e){X(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 F3(n.getZr())).on(`brush`,fA(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!Fze(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new QP,this.group.add(this._axisGroup),e.get(`show`)){var a=Lze(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=Z({strokeContainThreshold:c},u),f=new vQ(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),Kz(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=eM.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:jze(l),isTargetByCursor:Nze(l,a,r),getLinearBrushOtherExtent:Mze(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(Ize(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=sA(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}(dW);function Fze(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function Ize(e){var t=e.axis;return sA(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function Lze(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var Rze={type:`axisAreaSelect`,event:`axisAreaSelected`};function zze(e){e.registerAction(Rze,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 Bze={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function Vze(e){e.registerComponentView($Re),e.registerComponentModel(tze),e.registerCoordinateSystem(`parallel`,sze),e.registerPreprocessor(YRe),e.registerComponentModel(k3),e.registerComponentView(Pze),k$(e,`parallel`,k3,Bze),zze(e)}function Hze(e){$K(Vze),e.registerChartView(VRe),e.registerSeriesModel(WRe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,JRe)}var r6=`sankey`,Uze=function(e){X(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 LB(i[o],this,t));return x4(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 qU(`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 qU(`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.`+r6,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}(sW),Wze=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}(),Gze=function(e){X(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Wze},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(){$L(this)},t.prototype.downplay=function(){eR(this)},t}(xL),Kze=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=r6,t._mainGroup=new QP,t}return t.prototype.init=function(e,t){this._controller=new v1(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),N0(e,n,this._controller,P0(i),null),r.eachEdge(function(t){var n=new Gze,r=jL(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()),qze(n.style,u,t);var k=``+a.get(`value`),A=xB(a,`edgeLabel`);bB(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,kA(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=a.getModel(`emphasis`);mR(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return qze(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);dR(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 DL({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});bB(f,xB(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),mR(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),jL(f).dataType=`node`;var p=u.get(`focus`);dR(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(Jze(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){b0(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=z0(e,t,n.x,n.y,n.width,n.height);b0(this.group,2,r,this._firstRender?null:e)},t.type=r6,t}(mW);function qze(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`);gA(r)&&gA(i)&&(e.fill=new oz(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function Jze(e,t,n){var r=new DL({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return xz(r,{shape:{width:e.width+20}},t,n),r}var Yze=_I(r6,Xze);function Xze(e,t){e.eachSeriesByType(r6,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=tH(e,t).refContainer,a=QV(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;Qze(l),Zze(l,u,n,r,o,s,lA(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function Zze(e,t,n,r,i,a,o,s,c){$ze(e,t,n,i,a,s,c),iBe(e,t,a,i,r,o,s),pBe(e,s)}function Qze(e){Q(e,function(e){var t=s6(e.outEdges,o6),n=s6(e.inEdges,o6),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function $ze(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=rA(t,y);s[b]=0;var x=y.node2,S=rA(e,x);--c[S]===0&&rA(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`&&tBe(e,o,a,C),rBe(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function eBe(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function tBe(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];rA(i,u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}Q(e,function(e){eBe(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else t===`justify`&&nBe(e,r)}function nBe(e,t){Q(e,function(e){!eBe(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function rBe(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 iBe(e,t,n,r,i,a,o){var s=aBe(e,o);oBe(s,t,n,r,i,o),i6(s,i,n,r,o);for(var c=1;a>0;a--)c*=.99,sBe(s,c,o),i6(s,i,n,r,o),fBe(s,c,o),i6(s,i,n,r,o)}function aBe(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=oI(e,function(e){return e.getLayout()[r]});return CF(i.keys),Q(i.keys,function(e){n.push(i.buckets.get(e))}),n}function oBe(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 i6(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 sBe(e,t,n){Q(e.slice().reverse(),function(e){Q(e,function(e){if(e.outEdges.length){var r=s6(e.outEdges,cBe,n)/s6(e.outEdges,o6);if(isNaN(r)){var i=e.outEdges.length;r=i?s6(e.outEdges,lBe,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-a6(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-a6(e,n))*t;e.setLayout({y:o},!0)}}})})}function cBe(e,t){return a6(e.node2,t)*e.getValue()}function lBe(e,t){return a6(e.node2,t)}function uBe(e,t){return a6(e.node1,t)*e.getValue()}function dBe(e,t){return a6(e.node1,t)}function a6(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function o6(e){return e.getValue()}function s6(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 fBe(e,t,n){Q(e,function(e){Q(e,function(e){if(e.inEdges.length){var r=s6(e.inEdges,uBe,n)/s6(e.inEdges,o6);if(isNaN(r)){var i=e.inEdges.length;r=i?s6(e.inEdges,dBe,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-a6(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-a6(e,n))*t;e.setLayout({y:o},!0)}}})})}function pBe(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 mBe=_I(r6,hBe);function hBe(e){e.eachSeriesByType(r6,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 t4({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 gBe(e){e.registerChartView(Kze),e.registerSeriesModel(Uze),e.registerLayout(Yze),e.registerVisual(mBe),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:NL,subType:r6,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),I0(e,NL,r6)}var _Be=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;mA(e)?(n=e.slice(),e.unshift(t)):mA(e.value)?(n=Z({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,_.push(n)}),e.data=_}var v=this.defaultValueDimensions,y=[{name:d,type:iq(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:f,type:iq(h),dimsDef:v.slice()}];return f$(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:pA(_H,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 c6(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 l6=`boxplot`,vBe=function(e){X(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.`+l6,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}(sW);aA(vBe,_Be,!0);var yBe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=l6,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&&LZ(c,!1,e);r.diff(a).add(function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=s?c6(l,t):0;if(n===2)return;var a=SBe(t,r,e,o,!0);RZ(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?c6(l,c):0;if(d===2){i.remove(n);return}n?(Ez(n),CBe(c,n,r,e)):n=SBe(c,r,e,o),RZ(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=l6,t}(mW),bBe=function(){function e(){}return e}(),xBe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`boxplotBoxPath`,n}return t.prototype.getDefaultShape=function(){return new bBe},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}(xL);function SBe(e,t,n,r,i){var a=e.ends,o=new xBe({shape:{points:i?wBe(a,r,e):a}});return CBe(e,o,t,n,i),o}function CBe(e,t,n,r,i){var a=n.hostModel,o=Dz[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`);mR(t,s),dR(t,c.get(`focus`),c.get(`blurScope`),c.get(`disabled`))}function wBe(e,t,n){return sA(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}var TBe=mI(),EBe=_I(l6,DBe);function DBe(e){var t=AQ(l6);kJ(e,t,function(e){var n=dje(e,t);if(n){var r=OBe(e,n);DJ(e,t,function(e){var t=e.seriesIndex;kBe(e,r.boxOffsetList[t],r.boxWidthList[t])})}})}function OBe(e,t){var n=[],r=[],i=[],a=_Y(e,{fromStat:{key:AQ(l6)},min:1}).w;DJ(e,AQ(l6),function(e){var t=e.get(`boxWidth`);mA(t)||(t=[t,t]),i[e.seriesIndex]=[yF(t[0],a)||0,yF(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 DJ(e,AQ(l6),function(e){var t=e.seriesIndex;r[t]=l,l+=s+c,n[t]=cF(lF(c,i[t][0]),i[t][1])}),{boxOffsetList:r,boxWidthList:n}}function kBe(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 ABe(e){TBe(e,function(){var t=AQ(l6);PJ(e,{key:t,seriesType:l6,getMetrics:MQ}),UJ(t,kQ(t))})}function jBe(e,t){t||={};for(var n=[],r=[],i=t.boundIQR,a=i===`none`||i===0,o=0;o<e.length;o++){var s=CF(e[o].slice()),c=IF(s,.25),l=IF(s,.5),u=IF(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,_=hA(g)?g({value:o}):gA(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 MBe={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&GF(``);var n=jBe(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function NBe(e){e.registerSeriesModel(vBe),e.registerChartView(yBe),e.registerLayout(EBe),e.registerTransform(MBe),ABe(e)}var u6=`candlestick`,PBe=function(e){X(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.`+u6,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}(sW);aA(PBe,_Be,!0);var FBe=[`itemStyle`,`borderColor`],IBe=[`itemStyle`,`borderColor0`],LBe=[`itemStyle`,`borderColorDoji`],RBe=[`itemStyle`,`color`],zBe=[`itemStyle`,`color0`];function d6(e,t){return t.get(e>0?RBe:zBe)}function f6(e,t){return t.get(e===0?LBe:e>0?FBe:IBe)}var BBe={seriesType:u6,plan:fW(),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=d6(i,r),a.stroke=f6(i,r)||a.fill,Z(t.ensureUniqueItemVisual(n,`style`),a)}}}}},VBe=[`color`,`borderColor`],HBe=function(e){X(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){iB(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&&LZ(o,!1,e);this._data||r.removeAll();var l=KBe(e);t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n),u=a?c6(s,o):0;if(u===2)return;var d=p6(o,n,l,!0);xz(d,{shape:{points:o.ends}},e,n),RZ(u===1,d,c),m6(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?c6(s,f):0;if(p===2){r.remove(d);return}d?(bz(d,{shape:{points:f.ends}},e,o),Ez(d)):d=p6(f,o,l),m6(d,t,o,i),RZ(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(),JBe(e,this.group);var t=e.get(`clip`,!0)?LZ(e.coordinateSystem,!1,e):null;RZ(!!t,this.group,t)},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i=KBe(t),a;(a=e.next())!=null;){var o=p6(n.getItemLayout(a),a,i);m6(o,n,a,r),o.incremental=gI(t),this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){JBe(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),RZ(!1,this.group,null),this._data=null},t.type=u6,t}(mW),UBe=function(){function e(){}return e}(),WBe=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new UBe},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}(xL);function p6(e,t,n,r){var i=e.ends;return new WBe({shape:{points:r?GBe(i,n,e):i},z2:100})}function m6(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,mR(e,i);var o=t.getItemLayout(n).sign;Q(e.states,function(e,t){var n=i.getModel(t),r=d6(o,n),a=f6(o,n)||r,s=e.style||={};r&&(s.fill=r),a&&(s.stroke=a)});var s=i.getModel(`emphasis`);dR(e,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}function GBe(e,t,n){return sA(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function KBe(e){return+(e.getWhiskerBoxesLayout()===`horizontal`)}var qBe=function(){function e(){}return e}(),h6=function(e){X(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new qBe},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}(xL);function JBe(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new h6({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new h6({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new h6({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),g6(1,o,e,i),g6(-1,s,e,i),g6(0,c,e,i),r&&(o.incremental=gI(e),s.incremental=gI(e),c.incremental=gI(e)),n&&n.push(o,s,c)}function g6(e,t,n,r){var i=f6(e,n)||d6(e,n),a=n.getModel(`itemStyle`).getItemStyle(VBe);t.useStyle(a),t.style.fill=null,t.style.stroke=i;var o=n.get(`cursor`);o&&t.attr(`cursor`,o)}function YBe(e){!e||!mA(e.series)||Q(e.series,function(e){yA(e)&&e.type===`k`&&(e.type=u6)})}var XBe=mI(),ZBe={seriesType:u6,plan:fW(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=$Be(e,n),i=e.getWhiskerBoxesLayout()===`horizontal`?0:1,a=1-i,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=sA(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=cF(m,h),y=lF(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:QBe(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]=Vz(a[i]+r/2,1,!1),o[i]=Vz(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]=Vz(e[i],1),e}}function m(n,r){for(var o=OZ(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++]=QBe(_,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 QBe(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 $Be(e,t){var n=_Y(e.getBaseAxis(),{fromStat:{key:AQ(u6)},min:1}).w,r=yF(OA(e.get(`barMaxWidth`),n),n),i=yF(OA(e.get(`barMinWidth`),1),n),a=e.get(`barWidth`);return a==null?lF(cF(n/2,r),i):yF(a,n)}function eVe(e){XBe(e,function(){var t=AQ(u6);PJ(e,{key:t,seriesType:u6,getMetrics:MQ}),UJ(t,kQ(t))})}function tVe(e){e.registerChartView(HBe),e.registerSeriesModel(PBe),e.registerPreprocessor(YBe),e.registerVisual(BBe),e.registerLayout(ZBe),eVe(e)}function nVe(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 rVe=function(e){X(t,e);function t(t,n){var r=e.call(this)||this,i=new yZ(t,n),a=new QP;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=rG(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)}nVe(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}}nVe(n,e)},t.prototype.highlight=function(){$L(this)},t.prototype.downplay=function(){eR(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=iG(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=aG(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,dR(this,u.get(`focus`),u.get(`blurScope`),u.get(`disabled`))},t.prototype.fadeOut=function(e){e&&e()},t}(QP),iVe=function(e){X(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 wZ(rVe)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,aVe(e)),this.group.add(i.group)},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=tQ(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(aVe(e))},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Bj(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type=`effectScatter`,t}(mW);function aVe(e){return{clipShape:zZ(e)}}var oVe=function(e){X(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 Dq(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}(sW);function sVe(e){e.registerChartView(iVe),e.registerSeriesModel(oVe),e.registerLayout(tQ(`effectScatter`))}var cVe=function(e){X(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 X4(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel(`effect`),r=n.get(`symbolSize`),i=n.get(`symbol`);mA(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=rG(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=DA(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=hA(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 oj(e.__p1,e.__cp1)+oj(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=WM,c=GM;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=oj(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*oj(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}(QP),lVe=function(e){X(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 QR({shape:{points:e.getItemLayout(t)}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;bz(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,dR(this,o,s,c)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.stopAnimation(),n.setShape(`points`,e.getItemLayout(t))},t}(QP),uVe=function(e){X(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 lVe(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+=oj(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}(cVe),dVe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),fVe=function(e){X(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 dVe},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(dL(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(cTe(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(dL(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 eM(n,r,i,a)}return e},t}(xL),pVe=function(){function e(){this.group=new QP}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 fVe({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=jL(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}(),mVe={seriesType:`lines`,plan:fW(),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)}}}}}},hVe=function(e){X(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=!!gB(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)&&LZ(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(),gI(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=mVe.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 pVe:new Z4(i?r?uVe:lVe:r?cVe:X4),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=gB(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}(mW),gVe=typeof Uint32Array>`u`?Array:Uint32Array,_Ve=typeof Float64Array>`u`?Array:Float64Array;function vVe(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=sA(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),eA([t,e[0],e[1]])}))}var yVe=function(e){X(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||[],vVe(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(vVe(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=BA(this._flatCoords,t.flatCoords),this._flatCoordsOffset=BA(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),vA(e[0])){for(var n=e.length,r=new gVe(n),i=new _Ve(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 xq([`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 qU(`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}(sW);function _6(e){return e instanceof Array||(e=[e,e]),e}var bVe={seriesType:`lines`,reset:function(e){var t=_6(e.get(`symbol`)),n=_6(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=_6(n.getShallow(`symbol`,!0)),i=_6(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 xVe(e){e.registerChartView(hVe),e.registerSeriesModel(yVe),e.registerLayout(mVe),e.registerVisual(bVe)}var SVe=256,CVe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=zk.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*(SVe-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||=zk.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 wVe(e,t,n){var r=e[1]-e[0];t=sA(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 TVe(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 EVe=function(e){X(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()):VZ(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&&(VZ(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){iB(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=BZ(a,`cartesian2d`),s=BZ(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=_Y(f).w+.5,l=_Y(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=xB(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 DL({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(EA(M.x))continue;D=new DL({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(EA(M.x)||EA(M.y))continue;D=new DL({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=xB(P)}D.shape.r=y;var I=e.getRawValue(E),L=`-`;I&&I[2]!=null&&(L=I[2]+``),bB(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,dR(D,S,C,w),D.incremental=gI(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 CVe;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`?TVe(v,n.option.range):wVe(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 CL({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(mW),DVe=function(e){X(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 Dq(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=zV.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}(sW);function OVe(e){e.registerChartView(EVe),e.registerSeriesModel(DVe)}var kVe=[`itemStyle`,`borderWidth`],AVe=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],v6=new FR,jVe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=NQ,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:AVe[+s],categoryDim:AVe[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=MVe(i,e,HVe(i,e),l),n=GVe(i,l,t);i.setItemGraphicEl(e,n),r.add(n),YVe(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=MVe(i,e,HVe(i,e),l),s=JVe(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?KVe(n,l,o):n=GVe(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),YVe(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&qVe(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?LZ(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){qVe(r,jL(t).dataIndex,e,t)}):n.removeAll()},t.type=NQ,t}(mW);function MVe(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};NVe(n,a,i,r,d),PVe(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),FVe(n,d.symbolScale,c,r,d);var f=d.symbolSize;return IVe(n,f,i,a,o,aG(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function NVe(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(mA(o)){var d=[y6(s,o[0])-c,y6(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]:y6(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 y6(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function PVe(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=mA(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=yF(m[d.index],f),m[u.index]=yF(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 FVe(e,t,n,r,i){var a=e.get(kVe)||0;a&&(v6.attr({scaleX:t[0],scaleY:t[1],rotation:n}),v6.updateTransform(),a/=v6.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function IVe(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=DA(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=yF(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=zF(r),w=C?r:XVe((_+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?XVe((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=Z({},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 LVe(e){var t=e.symbolPatternSize,n=rG(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function RVe(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(b6(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?x6(e,null,m(u),n,r):x6(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<l;u++){var f=LVe(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var p=m(u);x6(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 zVe(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?x6(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=LVe(n),i.add(a),x6(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 BVe(e,t,n){var r=Z({},t.barRectShape),i=e.__pictorialBarRect;i?x6(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new DL({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function VVe(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=Z({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)bz(i,{shape:a},s,c);else{a[o.wh]=0,i=new DL({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],Dz[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function HVe(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=UVe,n.isAnimationEnabled=WVe,n}function UVe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function WVe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function GVe(e,t,n,r){var i=new QP,a=new QP;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?RVe(i,t,n):zVe(i,t,n),BVe(i,n,r),VVe(i,t,n,r),i.__pictorialShapeStr=JVe(e,n),i.__pictorialSymbolMeta=n,i}function KVe(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;bz(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?RVe(e,t,n,!0):zVe(e,t,n,!0),BVe(e,n,!0),VVe(e,t,n,!0)}function qVe(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];b6(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Q(a,function(e){Cz(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function JVe(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function b6(e,t,n){Q(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function x6(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&Dz[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function YVe(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`);b6(e,function(e){if(e instanceof CL){var t=e.style;e.useStyle(Z({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,bB(m,xB(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:_Z(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),dR(e,u,d,a.get(`disabled`))}function XVe(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var ZVe=function(e){X(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.`+NQ,t.dependencies=[`grid`],t.defaultOption=zB(KQ.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}(KQ);function QVe(e){e.registerChartView(jVe),e.registerSeriesModel(ZVe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,HQ(NQ)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,UQ(NQ)),GQ(e)}var S6=2,C6=`themeRiver`,$Ve=function(e){X(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 p$(fA(this.getData,this),fA(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=oI(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`,rI).models[0].get(`type`),r=lA(e.data,function(e){return e[2]!==void 0}),i=this.fixData(r||[]),a=[],o=this.nameMap=zA(),s=0,c=0;c<i.length;++c)a.push(i[c][S6]),o.get(i[c][S6])||(o.set(i[c][S6],s),s++);var l=Sq(i,{coordDimensions:[`single`],dimensionsDefine:[{name:`time`,type:iq(n)},{name:`value`,type:`float`},{name:`name`,type:`ordinal`}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new xq(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=oI(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){mA(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 qU(`nameValue`,{name:r.getName(e),value:r.get(r.mapDimension(`value`),e)})},t.type=`series.`+C6,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}(sW),eHe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=C6,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 nq(this._layersSeries||[],o,u,u),f=[];d.add(fA(p,this,`add`)).update(fA(p,this,`update`)).remove(fA(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 QP;y=new PZ({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(y),a.add(C),e.isAnimationEnabled()&&y.setClipPath(tHe(y.getBoundingRect(),e,function(){y.removeClipPath()}))}else{var C=c[s];y=C.childAt(0),a.add(C),f[n]=C,bz(y,{shape:{points:l,stackedOnPoints:u}},e),Ez(y)}bB(y,xB(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),mR(y,e),dR(y,S.get(`focus`),S.get(`blurScope`),S.get(`disabled`))}this._layersSeries=o,this._layers=f},t.type=C6,t}(mW);function tHe(e,t,n){var r=new DL({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return xz(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var nHe=_I(C6,rHe);function rHe(e,t){e.eachSeriesByType(C6,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]=yF(a[0],i.height),a[1]=yF(a[1],i.height),iHe(t,e,i.height-a[0]-a[1])):(a[0]=yF(a[0],i.width),a[1]=yF(a[1],i.width),iHe(t,e,i.width-a[0]-a[1])),t.setLayout(`layoutInfo`,r)})}function iHe(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension(`single`),o=e.mapDimension(`value`),s=sA(i,function(t){return sA(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(o,t),n})}),c=aHe(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 aHe(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 oHe(e){e.registerChartView(eHe),e.registerSeriesModel($Ve),e.registerLayout(nHe),e.registerProcessor(d$(C6))}var sHe=2,cHe=4,lHe=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=sHe,a.textConfig={inside:!0},jL(a).seriesIndex=n.seriesIndex;var o=new kL({z2:cHe,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;jL(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=Z({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=NG(d,i)),Z(l,XQ(o.getModel(`itemStyle`),l,!0)),Q(VL,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=XQ(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,xz(a,{shape:{r:c.r}},n,t.dataIndex)):(bz(a,{shape:l},n),Ez(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`?BA(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;dR(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(HL,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=SB(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=fL(w===`tangential`?Math.PI/2-o:o),O=D>T&&!jF(D-T)&&D<E;v===`outside`?(x=i.r+S,C=O?`right`:`left`):!C||C===`center`?(x=i.r0===0&&jF(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=fL(-o)+(O?Math.PI:0):w===`tangential`?k=fL(Math.PI/2-o)+(O?Math.PI:0):vA(w)&&(k=w*Math.PI/180),h.rotation=fL(k)});function p(e,t){return e.get(t)??r.get(t)}u.dirtyStyle()},t}(JR),w6=`sunburst`,uHe=function(e){X(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};dHe(n);var r=this._levelModels=sA(e.levels||[],function(e){return new LB(e,this,t)},this),i=g2.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=b2(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(){A2(this)},t.type=`series.`+w6,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}(sW);function dHe(e){var t=0;Q(e.children,function(e){dHe(e);var n=e.value;mA(n)&&(n=n[0]),t+=n});var n=e.value;mA(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),mA(e.value)?e.value[0]=n:e.value=n}var T6=`sunburstRootToNode`,fHe=`sunburstHighlight`,pHe=`sunburstUnhighlight`;function mHe(e){e.registerAction({type:T6,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},n);function n(t,n){var r=_2(e,[T6],t);if(r){var i=t.getViewRoot();i&&(e.direction=y2(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}}),e.registerAction({type:fHe,update:`none`},function(e,t,n){e=Z({},e),t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},r);function r(t){var n=_2(e,[fHe],t);n&&(e.dataIndex=n.node.dataIndex)}n.dispatchAction(Z(e,{type:`highlight`}))}),e.registerAction({type:pHe,update:`updateView`},function(e,t,n){e=Z({},e),n.dispatchAction(Z(e,{type:`downplay`}))})}var hHe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=w6,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 nq(t,e,n,n).add(r).update(r).remove(pA(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 lHe(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 lHe(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&&IV(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:T6,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=w6,t}(mW),gHe=_I(w6,_He);function _He(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&&gA(a)&&(a=fN(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(w6,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),Z(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}var vHe=Math.PI/180,yHe=_I(w6,bHe);function bHe(e,t){e.eachSeriesByType(w6,function(e){var n=e.get(`center`),r=e.get(`radius`);mA(r)||(r=[0,r]),mA(n)||(n=[n,n]);var i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a),s=yF(n[0],i),c=yF(n[1],a),l=yF(r[0],o/2),u=yF(r[1],o/2),d=-e.get(`startAngle`)*vHe,f=e.get(`minAngle`)*vHe,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&xHe(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=yF(_,o/2)),x!=null&&(m=yF(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 xHe(e,t){var n=e.children||[];e.children=SHe(n,t),n.length&&Q(e.children,function(e){xHe(e,t)})}function SHe(e,t){if(hA(t)){var n=sA(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)}),sA(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 CHe(e){e.registerChartView(hHe),e.registerSeriesModel(uHe),e.registerLayout(yHe),e.registerVisual(gHe),mHe(e)}var wHe={color:`fill`,borderColor:`stroke`},THe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},E6=eI(),EHe=function(e){X(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 Dq(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=E6(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}(sW);function DHe(e,t){return t||=[0,0],sA([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?_Y(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function OHe(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:fA(DHe,e)}}}function kHe(e,t){return t||=[0,0],sA([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 AHe(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:oIe(t)},api:{coord:function(t){return e.dataToPoint(t)},size:fA(kHe,e)}}}function jHe(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`?_Y(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function MHe(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:fA(jHe,e)}}}function NHe(e,t){return t||=[0,0],sA([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?_Y(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function PHe(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:fA(NHe,e)}}}function FHe(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 IHe(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 LHe={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},RHe=dA(LHe);cA(DP,function(e,t){return e[t]=1,e},{}),DP.join(`, `);var D6=[``,`style`,`shape`,`extra`],O6=eI();function k6(e,t,n,r,i){var a=e+`Animation`,o=vz(e,r,i)||{},s=O6(t).userDuring;return o.duration>0&&(o.during=s?fA(WHe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Z(o,n[a]),o}function A6(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=O6(e),l=t.style;c.userDuring=t.during;var u={},d={};if(qHe(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];P6(`shape`,h,f[m])}else P6(`shape`,t,d),P6(`extra`,t,d);if(!a&&s&&(KHe(e,t,u),GHe(`shape`,e,t,u),GHe(`extra`,e,t,u),JHe(e,t,l,u)),d.style=l,BHe(e,d,o),HHe(e,t),s)if(a){var g={};Q(D6,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),Z(e?g[e]:g,n.enterFrom))});var _=k6(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else VHe(e,t,i||0,n,u);zHe(e,t),l?e.dirty():e.markRedraw()}function zHe(e,t){for(var n=O6(e).leaveToProps,r=0;r<D6.length;r++){var i=D6[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=O6(e).leaveToProps={},i&&(n[i]=n[i]||{}),Z(i?n[i]:n,a.leaveTo))}}function j6(e,t,n,r){if(e){var i=e.parent,a=O6(e).leaveToProps;if(a){var o=k6(`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 M6(e){return e===`all`}function BHe(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 VHe(e,t,n,r,i){if(i){var a=k6(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function HHe(e,t){UA(t,`silent`)&&(e.silent=t.silent),UA(t,`ignore`)&&(e.ignore=t.ignore),e instanceof PI&&UA(t,`invisible`)&&(e.invisible=t.invisible),e instanceof xL&&UA(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var N6={},UHe={setTransform:function(e,t){return N6.el[e]=t,this},getTransform:function(e){return N6.el[e]},setShape:function(e,t){var n=N6.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=N6.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=N6.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=N6.el.style;if(t)return t[e]},setExtra:function(e,t){var n=N6.el.extra||(N6.el.extra={});return n[e]=t,this},getExtra:function(e){var t=N6.el.extra;if(t)return t[e]}};function WHe(){var e=this,t=e.el;if(t){var n=O6(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}N6.el=t,r(UHe)}}function GHe(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]={}),M6(c))Z(o,a);else for(var l=KF(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(M6(s)||rA(s,e)>=0){!o&&(o=r[e]={});for(var p=dA(a),u=0;u<p.length;u++){var d=p[u],f=a[d];YHe(i[d],f)&&(o[d]=f)}}}}}function P6(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=dA(r),o=0;o<a.length;o++){var s=a[o];i[s]=BN(r[s])}}function KHe(e,t,n){for(var r=t.transition,i=M6(r)?DP:KF(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function qHe(e,t,n){for(var r=0;r<RHe.length;r++){var i=RHe[r],a=LHe[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<DP.length;r++){var s=DP[r];t[s]!=null&&(n[s]=t[s])}}function JHe(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!M6(o)){var c=KF(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&&(M6(s)||M6(o)||rA(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=dA(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function YHe(e,t){return oA(e)?e!==t:e!=null&&isFinite(e)}var XHe=eI(),ZHe=[`percent`,`easing`,`shape`,`style`,`extra`];function QHe(e){e.stopAnimation(`keyframe`),e.attr(XHe(e))}function F6(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(mA(t)){Q(t,function(t){F6(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=vz(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=XHe(e);Q(D6,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=dA(c);if(n||(l=lA(l,function(e){return rA(ZHe,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 I6=`emphasis`,L6=`normal`,R6=`blur`,z6=`select`,B6=[L6,I6,R6,z6],V6={normal:[`itemStyle`],emphasis:[I6,`itemStyle`],blur:[R6,`itemStyle`],select:[z6,`itemStyle`]},H6={normal:[`label`],emphasis:[I6,`label`],blur:[R6,`label`],select:[z6,`label`]},$He=[`x`,`y`],eUe=`e\0\0`,U6={normal:{},emphasis:{},blur:{},select:{}},tUe={cartesian2d:OHe,geo:AHe,single:MHe,polar:PHe,calendar:FHe,matrix:IHe};function W6(e){return e instanceof xL}function G6(e){return e instanceof PI}function nUe(e,t){t.copyTransform(e),G6(t)&&G6(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,W6(t)&&W6(e)&&t.setShape(e.shape))}var rUe=function(e){X(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=sUe(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){J6(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&j6(n,E6(n).option,e)}).update(function(t,c){J6(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?LZ(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=sUe(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=gI(t),e.ensureState(`emphasis`).hoverLayer=2)}for(var l=e.start;l<e.end;l++){var u=J6(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){iB(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}(mW);function K6(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=yUe(r);n=Fz(a,null,i,r.layout||`center`),E6(n).customPathData=a}else if(t===`image`)n=new CL({}),E6(n).customImagePath=e.style.image;else if(t===`text`)n=new kL({});else if(t===`group`)n=new QP;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;GF(o)}n=new iz({shape:{paths:sA(r.paths,function(e){if(e.type===`path`)return Fz(e.shape.pathData,e,null);var t=Pz(e.type);return t||GF(``),new t})}})}else{var s=Pz(t);if(!s){var o=``;GF(o)}n=new s}return E6(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function q6(e,t,n,r,i,a,o){QHe(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=$He);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;UA(l,`textFill`)&&(l.fill=l.textFill),UA(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=W6(t)?c.decal:null;e&&d&&(d.dirty=!0,u=NG(d,e)),c.__decalPattern=u}if(G6(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}A6(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),F6(t,r.keyframeAnimation,a)}function iUe(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),QL(a)}}function aUe(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<B6.length;s++)oUe(r,t,B6[s])}}function oUe(e,t,n){var r=n===L6,i=r?t:X6(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function sUe(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=hke(i);a&&(i=a)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):tUe[o.type](o));for(var c=nA({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:cUe(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<B6.length;g++){var _=B6[g];m[_]=e.getModel(V6[_]),h[_]=e.getModel(H6[_])}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(V6[n])):v(e).getModel(V6[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(H6[n])):v(e).getModel(H6[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(nA({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,L6).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:gA(a)?a:$.color.neutral99},l=b(r,L6),d=SB(l,null,c,!1,!0);d.text=l.getShallow(`show`)?OA(e.getFormattedLabel(r,L6),_Z(t,r)):null;var f=CB(l,c,!1);return E(n,s),s=GZ(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,I6).getItemStyle(),a=b(r,I6),o=SB(a,null,null,!0,!0);o.text=a.getShallow(`show`)?kA(e.getFormattedLabel(r,I6),e.getFormattedLabel(r,L6),_Z(t,r)):null;var s=CB(a,null,!0);return E(n,i),i=GZ(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)UA(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,UA(wHe,e)){var r=t.getItemVisual(n,`style`);return r?r[wHe[e]]:null}if(UA(THe,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return lPe(nA({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return OB(e,n)}}function cUe(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 J6(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=Y6(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&dR(s,r.focus,r.blurScope,r.emphasisDisabled),s}function Y6(e,t,n,r,i,a){var o=-1,s=t;t&&lUe(t,r,i)&&(o=rA(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=K6(r),s&&nUe(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),U6.normal.cfg=U6.normal.conOpt=U6.emphasis.cfg=U6.emphasis.conOpt=U6.blur.cfg=U6.blur.conOpt=U6.select.cfg=U6.select.conOpt=null,U6.isLegacy=!1,dUe(l,n,r,i,c,U6),uUe(l,n,r,i,c),q6(e,l,n,r,U6,i,c),UA(r,`info`)&&(E6(l).info=r.info);for(var u=0;u<B6.length;u++){var d=B6[u];if(d!==L6){var f=X6(r,d),p=Z6(r,f,d);iUe(d,l,f,p,U6)}}return aUe(l,r,i),r.type===`group`&&pUe(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function lUe(e,t,n){var r=E6(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&bUe(a)&&yUe(a)!==r.customPathData||i===`image`&&UA(o,`image`)&&o.image!==r.customImagePath}function uUe(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&&lUe(o,a,r)&&(o=null),o||(o=K6(a),e.setClipPath(o)),q6(null,o,t,a,null,r,i)}}function dUe(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){fUe(n,null,a),fUe(n,I6,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=K6(o),e.setTextContent(u)),q6(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<B6.length;f++){var p=B6[f];if(p!==L6){var m=a[p].conOpt;iUe(p,u,m,Z6(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function fUe(e,t,n){var r=t?X6(e,t):e,i=t?Z6(e,r,I6):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?X6(s,t):s:null;if(i&&(n.isLegacy||HZ(i,a,!!o,!!c))){n.isLegacy=!0;var l=UZ(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 X6(e,t){return t?e?e[t]:null:e}function Z6(e,t,n){var r=t&&t.style;return r==null&&n===I6&&e&&(r=e.styleEmphasis),r}function pUe(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){hUe({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,Y6(e,f,n,d,i,t)):f.ignore=!0}for(var p=t.childCount()-1;p>=u;p--)mUe(t,t.childAt(p),i)}}function mUe(e,t,n){t&&j6(t,E6(e).option,n)}function hUe(e){new nq(e.oldChildren,e.newChildren,gUe,gUe,e).add(_Ue).update(_Ue).remove(vUe).execute()}function gUe(e,t){return(e&&e.name)??eUe+t}function _Ue(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];Y6(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function vUe(e){var t=this.context,n=t.oldChildren[e];n&&j6(n,E6(n).option,t.seriesModel)}function yUe(e){return e&&(e.pathData||e.d)}function bUe(e){return e&&(UA(e,`pathData`)||UA(e,`d`))}function xUe(e){e.registerChartView(rUe),e.registerSeriesModel(EHe)}var Q6=eI(),SUe=Qk,$6=fA,e8=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 QP,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=pA(CUe,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}EUe(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&&_Y(r).w>o)return!0;if(a){var s=W$(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=Q6(e).pointerEl=new Dz[i.type](SUe(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=Q6(e).labelEl=new kL(SUe(t.label));e.add(i),TUe(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=Q6(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=Q6(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),TUe(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=Yz(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Oj(e.event)},onmousedown:$6(this._onHandleDragMove,this,0,0),drift:$6(this._onHandleDragMove,this),ondragend:$6(this._onHandleDragEnd,this)}),n.add(r)),EUe(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);mA(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,xW(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){CUe(this._axisPointerModel,!t&&this._moveAnimation,this._handle,t8(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(t8(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(t8(r)),Q6(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),SW(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 CUe(e,t,n,r){wUe(Q6(n).lastProp,r)||(Q6(n).lastProp=r,t?bz(n,r,e):(n.stopAnimation(),n.attr(r)))}function wUe(e,t){if(yA(e)&&yA(t)){var n=!0;return Q(t,function(t,r){n&&=wUe(e[r],t)}),!!n}else return e===t}function TUe(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function t8(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function EUe(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 n8(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 DUe(e,t,n,r,i){var a=kUe(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=OV(o.get(`padding`)||0),c=o.getFont(),l=IP(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),OUe(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:SB(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function OUe(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 kUe(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:mJ(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)}),gA(o)?a=o.replace(`{value}`,a):hA(o)&&(a=o(s))}return a}function r8(e,t,n){var r=Mj();return Lj(r,r,n.rotation),Ij(r,r,n.position),Uz([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function AUe(e,t,n,r,i,a){var o=vQ.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),DUe(t,r,i,a,{position:r8(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function i8(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function jUe(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function MUe(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}function a8(e,t,n){return _Y(e,{fromStat:{sers:sA(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function o8(e,t,n){return[lF(cF(t[0],t[1]),e-n/2),cF(e+n/2,lF(t[0],t[1]))]}var NUe=function(e){X(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=PUe(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=n8(r),f=FUe[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}AUe(t,e,DQ(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=DQ(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=r8(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=PUe(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=cF(o[1],l[c]),l[c]=lF(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}(e8);function PUe(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var FUe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:i8([t,r[0]],[t,r[1]],IUe(e))}},shadow:function(e,t,n,r,i,a){var o=a8(e,i,a),s=r[1]-r[0],c=o8(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:jUe([l,r[0]],[u-l,s],IUe(e))}}};function IUe(e){return e.dim===`x`?0:1}var LUe=function(e){X(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}(sH),s8=eI(),RUe=Q;function zUe(e,t,n){if(!Rk.node){var r=t.getZr();s8(r).records||(s8(r).records={}),BUe(r,t);var i=s8(r).records[e]||(s8(r).records[e]={});i.handler=n}}function BUe(e,t){if(s8(e).initialized)return;s8(e).initialized=!0,n(`click`,pA(c8,`click`)),n(`mousemove`,pA(c8,`mousemove`)),n(`mousewheel`,pA(c8,`mousewheel`)),n(`globalout`,HUe);function n(n,r){e.on(n,function(n){var i=UUe(t);RUe(s8(e).records,function(e){e&&r(e,n,i.dispatchAction)}),VUe(i.pendings,t)})}}function VUe(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 HUe(e,t,n){e.handler(`leave`,null,n)}function c8(e,t,n,r){t.handler(e,n,r)}function UUe(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 l8(e,t){if(!Rk.node){var n=t.getZr();(s8(n).records||{})[e]&&(s8(n).records[e]=null)}}var WUe=function(e){X(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`;zUe(`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){l8(`axisPointer`,t)},t.prototype.dispose=function(e,t){l8(`axisPointer`,t)},t.type=`axisPointer`,t}(dW);function GUe(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=$F(a,e);if(o==null||o<0||mA(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(sA(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 KUe=eI();function qUe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||fA(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){u8(i)&&(i=GUe({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=u8(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||u8(i),f={},p={},m={list:[],map:{}},h={showPointer:pA(XUe,p),showTooltip:pA(ZUe,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=tWe(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&JUe(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,nWe(t),nWe(e)))),g[e.key]=a}})}),Q(g,function(e,t){JUe(u[t],e,h,!0,f)}),QUe(p,u,f),$Ue(m,i,e,o),eWe(u,o,n),f}}function JUe(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=YUe(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&Z(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function YUe(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(UF(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 XUe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function ZUe(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=K$(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 QUe(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 $Ue(e,t,n,r){if(u8(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 eWe(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=KUe(r)[i]||{},o=KUe(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 tWe(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 nWe(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 u8(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function d8(e){J$.registerAxisPointerClass(`CartesianAxisPointer`,NUe),e.registerComponentModel(LUe),e.registerComponentView(WUe),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!mA(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=nFe(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},qUe)}function rWe(e){$K(t1),$K(d8)}var iWe=function(e){X(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=n8(r),f=oWe[u](a,o,l,s,c,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}DUe(e,n,r,i,aWe(t,n,r,o,r.get([`label`,`margin`])))},t}(e8);function aWe(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=Mj();Lj(f,f,s),Ij(f,f,[r.cx,r.cy]),l=Uz([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=vQ.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 oWe={line:function(e,t,n,r,i){return e.dim===`angle`?{type:`Line`,shape:i8(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=a8(e,a,o),l;if(e.dim===`angle`)l=MUe(t.cx,t.cy,i[0],i[1],(-n-c/2)*s,(-n+c/2)*s);else{var u=o8(n,r,c),d=u[0],f=u[1];l=MUe(t.cx,t.cy,d,f,0,Math.PI*2)}return{type:`Sector`,shape:l}}},f8=`polar`,sWe=f8,cWe=function(e){X(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=f8,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(sH),p8=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,rI).models[0]},t.type=`polarAxis`,t}(sH);aA(p8,SJ);var lWe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(p8),uWe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(p8),m8=function(e){X(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}(yY);m8.prototype.dataToRadius=yY.prototype.dataToCoord,m8.prototype.radiusToData=yY.prototype.coordToData;var dWe=eI(),h8=function(e){X(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=IP(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=dWe(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}(yY);h8.prototype.dataToAngle=yY.prototype.dataToCoord,h8.prototype.angleToData=yY.prototype.coordToData;var fWe=[`radius`,`angle`],pWe=function(){function e(e){this.dimensions=fWe,this.type=f8,this.cx=0,this.cy=0,this._radiusAxis=new m8,this._angleAxis=new h8,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 mWe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return mWe(t)===this?this.pointToData(n):null},e}();function mWe(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function hWe(e,t,n){var r=t.get(`center`),i=tH(t,n).refContainer;e.cx=yF(r[0],i.width)+i.x,e.cy=yF(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%`]:mA(s)||(s=[0,s]);var c=[yF(s[0],o),yF(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function gWe(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(VJ(r,1),VJ(i,1),qJ(r),qJ(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 _We(e){return e.mainType===`angleAxis`}function vWe(e,t){if(e.type=dJ(t),e.scale=fJ(t,e.type,!1),e.onBand=xJ(e.scale,t),e.inverse=t.get(`inverse`),_We(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 yWe={dimensions:fWe,create:function(e,t){var n=[];return e.eachComponent(sWe,function(e,r){var i=new pWe(r+``);i.update=gWe;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);vWe(a,s),vWe(o,c),hWe(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(sWe,rI).models[0].coordinateSystem;t&&(MJ(t.getRadiusAxis(),e,f8),MJ(t.getAngleAxis(),e,f8))}}),n}},bWe=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function g8(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 _8(e){return+!e.getRadiusAxis().inverse}function xWe(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 SWe=function(e){X(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=Qk(e);var t=n.scale;e.coord=n.dataToCoord(bJ(t,e.tick)),s.push(e)}}),xWe(s),xWe(a),Q(bWe,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&CWe[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(J$),CWe={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=_8(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new Dz[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 YR({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[_8(n)],l=sA(r,function(e){return new $R({shape:g8(n,[c,c+s],e.coord)})});e.add(Rz(l,{style:nA(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[_8(n)],u=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)u.push(new $R({shape:g8(n,[l,l+c],i[d][f].coord)}));e.add(Rz(u,{style:nA(s.getModel(`lineStyle`).getLineStyle(),nA(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[_8(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];yA(v)&&v.textStyle&&(o=new LB(v.textStyle,c,c.ecModel))}var y=new kL({silent:vQ.isLabelSilent(t),style:SB(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),nB({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=vQ.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,jL(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 $R({shape:g8(n,a,r[u].coord)}))}for(var u=0;u<l.length;u++)e.add(Rz(l[u],{style:nA({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 $R({shape:g8(n,a,i[c][l].coord)}));e.add(Rz(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 JR({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(Rz(l[h],{style:nA({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},wWe=[`splitLine`,`splitArea`,`minorSplitLine`],TWe=function(e){X(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 QP;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 vQ(e,n,DWe(o,e,u));f.build(),i.add(f.group),Kz(r,i,e),Q(wWe,function(t){e.get([t,`show`])&&!a.scale.isBlank()&&EWe[t](this.group,e,o,u,d,c,l)},this)}},t.type=`radiusAxis`,t}(J$),EWe={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 Dz[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(Rz(p[m],{style:nA({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 FR({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(Rz(c,{style:nA({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 JR({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(Rz(l[d],{style:nA({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function DWe(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 OWe=mI();function kWe(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}var AWe=_I(`bar`,jWe);function jWe(e){var t=jQ(`bar`,f8);kJ(e,t,function(e){var n=NWe(e,`bar`),r={};DJ(e,t,function(t){MWe(e,t,n,r)})})}function MWe(e,t,n,r){var i=t.getData(),a=kWe(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),_=Tq(i,h),v=e.dim!==`radius`||!t.get(`roundCap`,!0),y=u.dataToCoord(FQ(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);uF(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);uF(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*_F/180,endAngle:-k*_F/180,clockwise:O>=k})}}function NWe(e,t){var n=jQ(t,f8),r=_Y(e,{fromStat:{key:n},min:1}).w,i=r,a=0,o=`20%`,s=`30%`,c={};DJ(e,n,function(e){var t=kWe(e);c[t]||a++,c[t]=c[t]||{width:0,maxWidth:0};var n=yF(e.get(`barWidth`),r),l=yF(e.get(`barMaxWidth`),r),u=e.get(`barGap`),d=e.get(`barCategoryGap`);n&&!c[t].width&&(n=cF(i,n),c[t].width=n,i-=n),l&&(c[t].maxWidth=l),u!=null&&(s=u),d!=null&&(o=d)});var l={},u=yF(o,r),d=yF(s,1),f=(i-u)/(a+(a-1)*d);f=lF(f,0),Q(c,function(e,t){var n=e.maxWidth;n&&n<f&&(n=cF(n,i),e.width&&(n=cF(n,e.width)),i-=n,e.width=n,a--)}),f=(i-u)/(a+(a-1)*d),f=lF(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 PWe(e,t){OWe(e,function(){var n=jQ(t,f8);PQ(e,n,t,f8),UJ(n,kQ(n))})}var FWe={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},IWe={splitNumber:5},LWe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`polar`,t}(dW);function RWe(e){$K(d8),J$.registerAxisPointerClass(`PolarAxisPointer`,iWe),e.registerCoordinateSystem(`polar`,yWe),e.registerComponentModel(cWe),e.registerComponentView(LWe),k$(e,`angle`,lWe,FWe),k$(e,`radius`,uWe,IWe),e.registerComponentView(SWe),e.registerComponentView(TWe),e.registerLayout(AWe),PWe(e,`bar`)}function v8(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),DA(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 zWe=[`splitArea`,`splitLine`,`breakArea`],BWe=function(e){X(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 QP;var s=new vQ(t,r,v8(t));s.build(),a.add(this._axisGroup),a.add(s.group),Q(zWe,function(e){t.get([e,`show`])&&VWe[e](this,this.group,this._axisGroup,t,r)},this),Kz(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){Z$(this)},t.type=`singleAxis`,t}(J$),VWe={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 $R({shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},silent:!0});Bz(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(Rz(f[_],{style:nA({stroke:c[_%c.length]},x),silent:!0}))}},splitArea:function(e,t,n,r,i){X$(e,n,r,r)},breakArea:function(e,t,n,r,i){var a=aQ(),o=r.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,r,r.coordinateSystem.getRect(),i)}},HWe=function(e){X(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}(yY),UWe=[`single`],WWe=function(){function e(e,t,n){this.type=n1,this.dimension=`single`,this.dimensions=UWe,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=dJ(e),a=new HWe(r,fJ(e,i,!0),[0,0],i,e.get(`position`));a.onBand=xJ(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;VJ(n,1),qJ(n)},e.prototype.resize=function(e,t){var n=tH(e,t).refContainer;this._rect=QV(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 GWe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return GWe(t)===this?this.pointToData(n):null},e}();function GWe(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function KWe(e,t){var n=[];return e.eachComponent(r1,function(r,i){var a=new WWe(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(r1,rI).models[0],n=e.coordinateSystem=t&&t.coordinateSystem;n&&MJ(n.getAxis(),e,n1)}}),n}var qWe={create:KWe,dimensions:UWe},JWe=[`x`,`y`],YWe=[`width`,`height`],XWe=function(e){X(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=y8(a),c=b8(o,s),l=b8(o,1-s),u=o.dataToPoint(t)[0],d=r.get(`type`);if(d&&d!==`none`){var f=n8(r),p=ZWe[d](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);p.style=f,e.graphicKey=p.type,e.pointer=p}AUe(t,e,v8(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=v8(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=r8(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=y8(i),s=b8(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=b8(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}(e8),ZWe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:i8([t,r[0]],[t,r[1]],y8(e))}},shadow:function(e,t,n,r,i,a){var o=a8(e,i,a),s=r[1]-r[0],c=o8(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:jUe([l,r[0]],[u-l,s],y8(e))}}};function y8(e){return+!e.isHorizontal()}function b8(e,t){var n=e.getRect();return[n[JWe[t]],n[JWe[t]]+n[YWe[t]]]}var QWe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(dW);function $We(e){$K(d8),J$.registerAxisPointerClass(`SingleAxisPointer`,XWe),e.registerComponentView(QWe),e.registerComponentView(BWe),e.registerComponentModel(i1),k$(e,`single`,i1,i1.defaultOption),e.registerCoordinateSystem(`single`,qWe)}var eGe=function(e){X(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=aH(t);e.prototype.init.apply(this,arguments),tGe(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),tGe(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}(sH);function tGe(e,t){var n=e.cellSize,r=mA(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),iH(e,t,{type:`box`,ignoreSize:sA([0,1],function(e){return jDe(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var nGe=function(e){X(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 DL({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 QR({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 gA(e)&&e?NV(e,t):hA(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 kL({z2:30,style:SB(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||gA(a))&&(a&&(t=qB(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 kL({z2:30,style:Z(SB(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||gA(c))&&(c&&(t=qB(c)||t),c=t.get([`time`,`dayOfWeekShort`])||sA(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=yF(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 kL({z2:30,style:Z(SB(a,{text:c[_]}),this._weekTextPositionControl(g,r,s,l,f)),silent:p});i.add(v)}}},t.type=`calendar`,t}(dW),x8=864e5,rGe=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=MF(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=QV(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||=[],mA(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+x8))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,eM.copy(i,r),$z(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=S8(t);return r===this?r.dataToPoint(n):null},e.prototype.convertToLayout=function(e,t,n){var r=S8(t);return r===this?r.dataToLayout(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=S8(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(mA(e)&&e.length===1&&(e=e[0]),mA(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/x8)-Math.floor(t[0].time/x8)+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){UV({targetModel:t,coordSysType:`calendar`,coordSysProvider:WV})}),r},e.dimensions=[`time`,`value`],e}();function S8(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function iGe(e){e.registerComponentModel(eGe),e.registerComponentView(nGe),e.registerCoordinateSystem(`calendar`,rGe)}var C8={level:1,leaf:2,nonLeaf:3},w8={none:0,all:1,body:2,corner:3};function T8(e,t,n){var r=t[kz[n]].getCell(e);return!r&&vA(e)&&e<0&&(r=t[kz[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function aGe(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 oGe(e,t,n,r,i){sGe(e[0],t,i,n,r,0),sGe(e[1],t,i,n,r,1)}function sGe(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=mA(o)?o:[o],c=s.length,l=!!n;if(c>=1?(cGe(e,t,s,l,i,a,0),c>1&&cGe(e,t,s,l,i,a,c-1)):e[0]=e[1]=NaN,l){var u=-i[kz[1-a]].getLocatorCount(a),d=i[kz[a]].getLocatorCount(a)-1;n===w8.body?u=lF(0,u):n===w8.corner&&(d=cF(-1,d)),d<u&&(u=d=NaN),EA(e[0])&&(e[0]=u),EA(e[1])&&(e[1]=d),e[0]=lF(cF(e[0],d),u),e[1]=lF(cF(e[1],d),u)}}function cGe(e,t,n,r,i,a,o){var s=T8(n[o],i,a);if(!s){e[0]=e[1]=NaN;return}var c=s.id[kz[a]],l=c,u=gGe(s);u&&(l+=u.span[kz[a]]-1),e[0]=cF(e[0],c,l),e[1]=lF(e[1],c,l)}function E8(e,t){return EA(e[t][0])||EA(e[t][1])}function lGe(e,t,n,r){t||=uGe;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&&dGe(e,o.locatorRange)&&(t[i]=!0,a=!0)}if(!a)break}}var uGe=[];function dGe(e,t){return!fGe(e[0],t[0])||!fGe(e[1],t[1])?!1:(e[0][0]=cF(e[0][0],t[0][0]),e[0][1]=lF(e[0][1],t[0][1]),e[1][0]=cF(e[1][0],t[1][0]),e[1][1]=lF(e[1][1],t[1][1]),!0)}function fGe(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function pGe(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 mGe(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 hGe(e,t,n,r){var i=T8(t[r][0],n,r),a=T8(t[r][1],n,r);e[kz[r]]=e[Az[r]]=NaN,i&&a&&(e[kz[r]]=i.xy,e[Az[r]]=a.xy+a.wh-i.xy)}function D8(e,t,n,r){return e[kz[t]]=n,e[kz[1-t]]=r,e}function gGe(e){return e&&(e.type===C8.leaf||e.type===C8.nonLeaf)?e:null}function O8(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var _Ge=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=vGe(e);var n=t.get(`data`,!0),r=t.get(`length`,!0);if(n!=null&&!mA(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;gA(e)?u={value:e}:yA(e)?(u=e,e.value!=null&&!gA(e.value)&&(u={value:null})):u={value:null};var d={type:C8.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new Vj,span:D8(new Vj,t.dimIdx,1,1),option:u,xy:NaN,wh:NaN,dim:t,rect:O8()};a++,(i[n]||(i[n]=[])).push(d),r[s]||(r[s]={type:C8.level,xy:NaN,wh:NaN,option:null,id:new Vj,dim:t});var f=o(u.children,n,s+1),p=Math.max(1,f);d.span[kz[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 Xq({ordinalMeta:t._ordinalMeta=new kq({categories:e,needCollect:!1,deduplication:!1})});for(var c=0;c<t._leavesCount;c++){var l=t._cells[c];l.type=C8.leaf,l.span[kz[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:C8.level,xy:NaN,wh:NaN,option:null,id:new Vj,dim:e}],e._initLevelIdOptions(),e._scale=new Xq({ordinalMeta:e._ordinalMeta=new kq({needCollect:!0,deduplication:!0,onCollect:function(t,n){var r=e._cells[n]={type:C8.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new Vj,span:D8(new Vj,e.dimIdx,1,1),option:{value:t+``},xy:NaN,wh:NaN,dim:e,rect:O8()};e._leavesCount++,e._setCellId(r)}})})},e.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;D8(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){D8(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=mA(n)?n:[],Q(this._levels,function(r,i){D8(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 sI,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 sI).reset(this._cells,0)},e.prototype.resetLevelIterator=function(e){return(e||new sI).reset(this._levels,0)},e.prototype.getLayout=function(e,t,n){var r=this.getUnitLayoutInfo(t,n);e[kz[t]]=r?r.xy:NaN,e[Az[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 EA(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 vGe(e){var t=e.toUpperCase(),n=RegExp(`^`+t+`([0-9]+)$`),r=0;function i(e){var t;e!=null&&(t=e.match(n))&&(r=lF(r,+t[1]+1))}function a(){return``+t+r++}function o(e,t){for(var n=zA(),r=0;r<e.length;r++){var i=e[r];(i==null||n.get(i)!=null)&&(e[r]=i=a(),t[r].option=nA({value:i},t[r].option)),n.set(i,!0)}}return{calcDupBase:i,ensureValueUnique:o}}var yGe=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=zA(),n()),t;function n(){var t=[],n=e._model.getShallow(`data`);n&&!mA(n)&&(n=null),Q(n,function(n,r){if(!(!yA(n)||!mA(n.coord))){var i=aGe([]);if(oGe(i,null,n.coord,e._dims,n.coordClamp?w8[e._kind]:w8.none),!(E8(i,0)||E8(i,1))){var a=n&&n.mergeCells,o={id:new Vj,span:new Vj,locatorRange:i,option:n,cellMergeOwner:a};pGe(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;lGe(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=Z({},o.option);l.coord=null;var u={id:new Vj,span:new Vj,locatorRange:s,option:l,cellMergeOwner:!0};pGe(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=O8(),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=bGe(e,n),i=t.get(r);return i||=t.set(r,{id:new Vj(e,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1}),i}},e.prototype.getCell=function(e){return this._ensureCellMap().get(bGe(e[0],e[1]))},e.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},e.prototype.expandRangeByCellMerge=function(e){if(!E8(e,0)&&!E8(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){k8[0]=e[0][0],k8[1]=e[1][0];var t=this.getCell(k8),n=t&&t.inSpanOf;if(n){mGe(e,n.locatorRange);return}}var r=this._cellMergeOwnerList;lGe(e,null,r,r.length)},e}(),k8=[];function bGe(e,t){return e+`|`+t}var A8={show:!0,color:$.color.secondary,overflow:`break`,lineOverflow:`truncate`,padding:[2,3,2,3],distance:0};function j8(e){return{color:`none`,borderWidth:1,borderColor:e?`none`:$.color.borderTint}}var xGe={show:!0,label:A8,itemStyle:j8(!1),silent:void 0,dividerLineStyle:{width:1,color:$.color.border}},SGe={z:-50,left:`10%`,top:`10%`,right:`10%`,bottom:`10%`,x:xGe,y:xGe,body:{label:A8,itemStyle:j8(!1),silent:void 0},corner:{label:A8,itemStyle:j8(!0),silent:void 0},backgroundStyle:{color:`none`,borderColor:$.color.axisLine,borderWidth:1},triggerEvent:!1},CGe=function(e){X(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 wGe(this.get(`x`,!0)||{}),y:new wGe(this.get(`y`,!0)||{})};e.x.option.type=e.y.option.type=`category`;var t={x:e.x.dim=new _Ge(`x`,e.x),y:e.y.dim=new _Ge(`y`,e.y)};this._body=new yGe(`body`,new LB(this.getShallow(`body`)),t),this._corner=new yGe(`corner`,new LB(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=SGe,t}(sH),wGe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(LB),M8=Math.round,TGe=0,EGe=99,DGe={normal:25,special:100},OGe={normal:50,special:125},kGe=function(e){X(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;AGe(n,e,t),jGe(n,e,o,s,t);var c=OA(e.getShallow(`borderZ2`,!0),EGe),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=L8(r.clone(),u,TGe),p=L8(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(NGe({x1:r.x,y1:h.xy,x2:r.x+r.width,y2:h.xy},i.getModel(`dividerLineStyle`).getLineStyle(),l)),s.shouldShow()&&n.add(NGe({x1:m.xy,y1:r.y,x2:m.xy,y2:r.y+r.height},a.getModel(`dividerLineStyle`).getLineStyle(),l)))},t.type=`matrix`,t}(dW);function AGe(e,t,n){r(0),r(1);function r(r){var i=t.getDimensionModel(kz[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={};eM.copy(f,d.rect),ZA(l,d.id.x,d.id.y),MGe(l,t,e,n,d.option,o,s,i,f,d.option.value,OGe,c,r===0?`x`:`y`)}}}function jGe(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 LB(t.getShallow(n,!0)),c=s.getModel(`itemStyle`),l=s.getModel(`label`),u=new sI,d=new sI,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;ZA(f,m.id.x,h.id.y);var g=r.getCell(f);if(!(g&&g.inSpanOf&&g.inSpanOf!==g)){var _={};g&&g.span?eM.copy(_,g.spanRect):(m.dim.getLayout(_,0,f[0]),h.dim.getLayout(_,1,f[1]));var v=g?g.option:null;MGe(f,t,e,i,v,c,l,s,_,v?v.value:null,DGe,p,n)}}}}function MGe(e,t,n,r,i,a,o,s,c,l,u,d,f){P8.option=i?i.itemStyle:null,P8.parentModel=a,N8.option=i,N8.parentModel=s;var p=OA(N8.getShallow(`z2`),i&&i.itemStyle?u.special:u.normal),m=d&&d.show,h=L8(c,P8.getItemStyle(),p);n.add(h);var g=N8.get(`cursor`);g!=null&&h.attr(`cursor`,g);var _;if(l!=null){var v=l+``;F8.option=i?i.label:null,F8.parentModel=o,F8.ecModel=r;var y=F8.getShallow(`formatter`);if(y){var b={componentType:`matrix`,componentIndex:t.componentIndex,name:v,value:l,coord:e.slice(),$vars:[`name`,`value`,`coord`]};if(gA(y))v=NV(y,b);else if(hA(y)){var x=y(b);x!=null&&(v=x+``)}}if(bB(h,{normal:F8},{defaultText:v,autoOverflowArea:!0,layoutRect:Qk(h.shape)}),_=h.getTextContent(),_){_.z2=p+1;var S=_.style;if(S&&S.overflow&&S.overflow!==`none`&&S.lineOverflow){var C={};eM.copy(C,c),$z(C,(h.style?.lineWidth||0)/2,!0,!0),h.updateInnerText(),_.getLocalTransform(I8),zj(I8,I8),eM.applyTransform(C,C,I8),_.setClipPath(new DL({shape:C}))}}nB({el:h,componentModel:t,itemName:v,itemTooltipOption:d,formatterParamsExtra:{xyLocator:e.slice()}})}var w=t.get(`triggerEvent`,!0);if(_){var T=F8.get(`silent`);T??=!(w||m),_.silent=T,_.ignoreHostSilent=!0}var E=N8.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()};jL(h).eventData=D}cI(N8),cI(P8),cI(F8)}var N8=new LB,P8=new LB,F8=new LB,I8=[];function L8(e,t,n){var r=t.lineWidth;if(r){var i=e.x+e.width,a=e.y+e.height;e.x=EL(e.x,r,!0),e.y=EL(e.y,r,!0),e.width=EL(i,r,!0)-e.x,e.height=EL(a,r,!0)-e.y}return new DL({shape:e,style:t,z2:n})}function NGe(e,t,n){var r=t.lineWidth;return r&&(M8(e.x1*2)===M8(e.x2*2)&&(e.x1=e.x2=EL(e.x1,r,!0)),M8(e.y1*2)===M8(e.y2*2)&&(e.y1=e.y2=EL(e.y1,r,!0))),new $R({shape:e,style:t,silent:!0,z2:n})}var PGe=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){UV({targetModel:t,coordSysType:`matrix`,coordSysProvider:WV})}),r},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(e,t){var n=this._dims,r=this._dimModels,i=this._rect=QV(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});FGe(r,n,i,0),FGe(r,n,i,1),IGe(0,n),IGe(1,n),LGe(this._model.getBody(),n),LGe(this._model.getCorner(),n)},e.prototype.dataToPoint=function(e,t,n){return n||=[],this.dataToLayout(e,t,R8),n[0]=R8.rect.x+R8.rect.width/2,n[1]=R8.rect.y+R8.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=aGe(n.matrixXYLocatorRange);return mA(e)?(oGe(a,null,e,r,OA(t&&t.clamp,w8.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==w8.corner)&&this._model.getBody().expandRangeByCellMerge(a),(!t||t.clamp!==w8.body)&&this._model.getCorner().expandRangeByCellMerge(a)),hGe(i,a,r,0),hGe(i,a,r,1),n):n},e.prototype.pointToData=function(e,t,n){var r=this._dims;return zGe(G8,0,r,e,t&&t.clamp),zGe(G8,1,r,e,t&&t.clamp),n||=[],n[0]=n[1]=NaN,G8.y===W8.inCorner&&G8.x===W8.inBody?BGe(G8,n,0,r):G8.x===W8.inCorner&&G8.y===W8.inBody?BGe(G8,n,1,r):(VGe(G8,n,0,r),VGe(G8,n,1,r)),n},e.prototype.convertToPixel=function(e,t,n,r){var i=U8(t);return i===this?i.dataToPoint(n,r):void 0},e.prototype.convertToLayout=function(e,t,n,r){var i=U8(t);return i===this?i.dataToLayout(n,r):void 0},e.prototype.convertFromPixel=function(e,t,n,r){var i=U8(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}(),R8={rect:O8()},z8=new sI,B8=new sI;function FGe(e,t,n,r){for(var i=1-r,a=t[kz[r]],o=t[kz[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[Az[r]],d=a.getLocatorCount(r)+o.getLocatorCount(r),f=new LB,p=o.resetLevelIterator();p.next();)f.option=p.item.option,f.parentModel=e[kz[i]],g(p.item,s?f.get(`levelSize`):0);for(var m=new LB,h=a.resetCellIterator();h.next();)h.item.type===C8.leaf&&(m.option=h.item.option,m.parentModel=void 0,g(h.item,m.get(`size`)));function g(e,t){var i=RGe(t,r,n);EA(i)||(e.wh=H8(i,u),u=H8(u-e.wh),d--)}var _=d?u/d:0,v=!d&&u>=1,y=n[kz[r]],b=a.getLocatorCount(r)-1,x=new sI;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){EA(e.wh)&&(e.wh=_),e.xy=y,e.id[kz[r]]===b&&!v&&(e.wh=n[kz[r]]+n[Az[r]]-e.xy),y+=e.wh}}function IGe(e,t){for(var n=t[kz[e]].resetCellIterator();n.next();){var r=n.item;V8(r.rect,e,r.id,r.span,t),V8(r.rect,1-e,r.id,r.span,t),r.type===C8.nonLeaf&&(r.xy=r.rect[kz[e]],r.wh=r.rect[Az[e]])}}function LGe(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;V8(r,0,i,n,t),V8(r,1,i,n,t)}})}function V8(e,t,n,r,i){e[Az[t]]=0;var a=n[kz[t]]<0?i[kz[1-t]]:i[kz[t]],o=a.getUnitLayoutInfo(t,n[kz[t]]);if(e[kz[t]]=o.xy,e[Az[t]]=o.wh,r[kz[t]]>1){var s=a.getUnitLayoutInfo(t,n[kz[t]]+r[kz[t]]-1);e[Az[t]]=s.xy+s.wh-o.xy}}function RGe(e,t,n){return H8(bF(e,n[Az[t]]),n[Az[t]])}function H8(e,t){return Math.max(Math.min(e,OA(t,1/0)),0)}function U8(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var W8={inBody:1,inCorner:2,outside:3},G8={x:null,y:null,point:[]};function zGe(e,t,n,r,i){var a=n[kz[t]],o=n[kz[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[kz[t]]=W8.outside;return}if(i===w8.body){c?(e[kz[t]]=W8.inBody,d=cF(s.xy+s.wh,lF(c.xy,d)),e.point[t]=d):e[kz[t]]=W8.outside;return}else if(i===w8.corner){u?(e[kz[t]]=W8.inCorner,d=cF(u.xy+u.wh,lF(l.xy,d)),e.point[t]=d):e[kz[t]]=W8.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[kz[t]]=W8.outside;return}d=p}else if(d>m){if(!i){e[kz[t]]=W8.outside;return}d=m}e.point[t]=d,e[kz[t]]=f<=d&&d<=m?W8.inBody:p<=d&&d<=f?W8.inCorner:W8.outside}function BGe(e,t,n,r){var i=1-n;if(e[kz[n]]!==W8.outside)for(r[kz[n]].resetCellIterator(B8);B8.next();){var a=B8.item;if(UGe(e.point[n],a.rect,n)&&UGe(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[kz[i]];return}}}function VGe(e,t,n,r){if(e[kz[n]]!==W8.outside){for((e[kz[n]]===W8.inCorner?r[kz[1-n]]:r[kz[n]]).resetLayoutIterator(z8,n);z8.next();)if(HGe(e.point[n],z8.item)){t[n]=z8.item.id[kz[n]];return}}}function HGe(e,t){return t.xy<=e&&e<=t.xy+t.wh}function UGe(e,t,n){return t[kz[n]]<=e&&e<=t[kz[n]]+t[Az[n]]}function WGe(e){e.registerComponentModel(CGe),e.registerComponentView(kGe),e.registerCoordinateSystem(`matrix`,PGe)}function GGe(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 KGe(e,t){var n;return Q(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function qGe(e,t,n){var r=Z({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?($k(i,r,!0),iH(i,r,{ignoreSize:!0}),oH(n,i),K8(n,i),K8(n,i,`shape`),K8(n,i,`style`),K8(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var JGe=[`transition`,`enterFrom`,`leaveTo`],YGe=JGe.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function K8(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?JGe:YGe,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function XGe(e,t){if(e&&(e.hv=t.hv=[KGe(t,[`left`,`right`]),KGe(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var ZGe=function(e){X(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=qCe(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];Q(o,function(e,t){var n=e.newOption;n&&(s.push(n),GGe(e,n),qGe(i,t,n),XGe(i[t],n))},this),n.elements=lA(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}(sH),QGe={path:null,compoundPath:null,group:QP,image:CL,text:kL},q8=eI(),$Ge=function(e){X(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=zA()},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=XF(t.id,null),s=o==null?null:n.get(o),c=XF(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&&HZ(d,u,!!p,!!f)){var m=UZ(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=nKe(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=eKe(o,l,t.type,n):(b&&(q8(b).isNew=!1),QHe(b)),b&&(A6(b,h,e,{isInit:y}),tKe(b,t,i,a))}else if(v){Y8(s,t,n,e);var x=eKe(o,l,t.type,n);x&&(A6(x,h,e,{isInit:!0}),tKe(x,t,i,a))}else g===`remove`&&(zHe(s,t),Y8(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new kL(f))}else v&&S.setTextContent(new kL(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||q8(D).type!==T,E=y?J8(T):D}else v&&(y=!0,E=J8(T));S.setClipPath(E),A6(E,w,e,{isInit:y}),F6(E,w.keyframeAnimation,e)}var O=q8(S);S.setTextConfig(p),O.option=t,rKe(S,e,t),nB({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),F6(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=XF(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=q8(d),h=q8(f);m.width=yF(m.option.width,p?a:h.width)||0,m.height=yF(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=XF(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=q8(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=nH(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!q8(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(M6(y)||rA(y,S)>=0)?b[S]=C:d[S]=C}bz(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){Y8(n,q8(n).option,t,e._lastGraphicModel)}),this._elMap=zA()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(dW);function J8(e){var t=new(UA(QGe,e)?QGe[e]:Pz(e))({});return q8(t).type=e,t}function eKe(e,t,n,r){var i=J8(n);return t.add(i),r.set(e,i),q8(i).id=e,q8(i).isNew=!0,i}function Y8(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){Y8(e,t,n,r)}),j6(e,t,r),n.removeKey(q8(e).id))}function tKe(e,t,n,r){e.isGroup||Q([[`cursor`,PI.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];UA(t,r)?e[r]=OA(t[r],n[1]):e[r]??(e[r]=n[1])}),Q(dA(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=hA(r)?r:null}}),UA(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function nKe(e){return e=Z({},e),Q([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(KV),function(t){delete e[t]}),e}function rKe(e,t,n){var r=jL(e).eventData;!e.silent&&!e.ignore&&!r&&(r=jL(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function iKe(e){e.registerComponentModel(ZGe),e.registerComponentView($Ge),e.registerPreprocessor(function(e){var t=e.graphic;mA(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var aKe=[`x`,`y`,`radius`,`angle`,`single`],oKe=eI(),sKe=[`cartesian2d`,`polar`,`singleAxis`];function cKe(e){return rA(sKe,e.get(`coordinateSystem`))>=0}function X8(e){return e+`Axis`}function lKe(e,t){var n=zA(),r=[],i=zA();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 uKe(e){var t=e.ecModel,n={infoList:[],infoMap:zA()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(X8(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 dKe(e){var t=oKe(eG(e));return t.axisProxyMap||=zA()}function Z8(e){if(e)return dKe(e.ecModel).get(e.uid)}function fKe(e,t){dKe(e.ecModel).set(e.uid,t)}function pKe(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?Z8(n.model):null}var Q8=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}(),$8=function(e){X(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=mKe(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=mKe(e);$k(this.option,e,!0),$k(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=zA();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(aKe,function(n){var r=this.getReferringComponents(X8(n),owe);if(r.specified){t=!0;var i=new Q8;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 Q8;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,rI).models[0];o&&Q(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,rI).models[0]&&a.add(e.componentIndex)})}}}r&&Q(aKe,function(t){if(r){var i=n.findComponents({mainType:X8(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new Q8;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(X8(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 Z8(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(X8(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 Z8(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}(sH);function mKe(e){var t={};return Q([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var hKe=function(e){X(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}($8),e5=function(e){X(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}(dW),gKe=function(e){X(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}(e5),_Ke=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 Qk(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(cKe(t)){var n=X8(this._dimName),r=t.getReferringComponents(n,rI).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 Qk(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=vF(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=vF(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),CF(s),CF(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`;T3(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=vF(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);pI(t)}var f=Uq(r)||Vq(r),p=n.getExtent(),m=uF(p[1]-p[0]),h=f?0:EF(s,m,.5);Q([[0,pF],[1,fF]],function(e){var n=e[0],r=e[1];!l[n]||!isFinite(h)||(s[n]=SF(s[n],h),s[n]=cF(t[1],lF(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),pI(s);var g=[vF(s[0],t,a,!0),vF(s[1],t,a,!0)];return pI(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;VJ(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=nA({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=sA(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=vF(i,[0,100],n,!0)-n[0]):i=vF(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),vKe={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(X8(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!Z8(i)){var o=new _Ke(t,r,a,e);n.push(o),fKe(i,o)}});var r=zA();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=pKe(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 yKe(e){e.registerAction(`dataZoom`,function(e,t){Q(lKe(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var bKe=mI();function t5(e){bKe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,vKe),yKe(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function xKe(e){e.registerComponentModel(hKe),e.registerComponentView(gKe),t5(e)}var n5=function(){function e(){}return e}(),SKe={};function r5(e,t){SKe[e]=t}function CKe(e){return SKe[e]}var wKe=function(e){X(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=Z({},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=CKe(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&($k(e,n[t]),n[t]=null),$k(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}(sH);function TKe(e,t){var n=OV(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new DL({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 EKe=function(e){X(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||=zA(),l=[];Q(s,function(e,t){l.push(t)}),new nq(this._featureNames||[],l).add(u).update(u).remove(pA(u,null)).execute(),this._featureNames=lA(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 LB(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(DKe(p))_={onclick:h.option.onclick,featureName:p};else{var v=CKe(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){OKe(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=RB(`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`?$L:eR)(r[e])},OKe(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof n5&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;gA(d)?(p={},p[c]=d):p=d,gA(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};Q(p,function(c,d){var f=Yz(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 kL({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:OB({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),nB({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`?$L:eR)(f),i.add(f),f.on(`click`,fA(s.onclick,s,t,n,d)),h[d]=f})}var f=tH(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=QV(p,f,m);YV(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),nH(i,p,f,m),i.add(TKe(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&&!hA(c)&&t){var l=c.style||={},u=IP(t,kL.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 n5&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){Q(this._features,function(n){n&&n instanceof n5&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(dW);function DKe(e){return e.indexOf(`my`)===0}function OKe(e){return e instanceof n5}var kKe=function(e){X(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=Rk.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}(n5),AKe=`__ec_magicType_stack__`,jKe=[[`line`,`bar`],[`stack`]],MKe=function(e){X(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(NKe[n]){var a={series:[]};Q(jKe,function(e){rA(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=NKe[n](t,i,e,r);o&&(nA(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,rI).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=$k({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}(n5),NKe={line:function(e,t,n,r){if(e===`bar`)return $k({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 $k({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`)===AKe;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),$k({id:t,stack:i?``:AKe},r.get([`option`,`stack`])||{},!0)}};HK({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var i5=Array(60).join(`-`),a5=` `;function PKe(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=iPe(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 FKe(e){var t=[];return Q(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(sA(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(a5)],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(a5))}t.push(s.join(`
`))}),t.join(`
`+i5+`
`)}function IKe(e){return sA(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+a5:``)+r.join(a5))}),n.join(`
`)}).join(`
`+i5+`
`)}function LKe(e){var t=PKe(e);return{value:lA([FKe(t.seriesGroupByCategoryAxis),IKe(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
`+i5+`
`),meta:t.meta}}function o5(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function RKe(e){if(e.slice(0,e.indexOf(`
`)).indexOf(a5)>=0)return!0}var s5=RegExp(`[`+a5+`]+`,`g`);function zKe(e){for(var t=e.split(/\n+/g),n=o5(t.shift()).split(s5),r=[],i=sA(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=o5(t[a]).split(s5);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 BKe(e){for(var t=e.split(/\n+/g),n=o5(t.shift()),r=[],i=0;i<t.length;i++){var a=o5(t[i]);if(a){var o=a.split(s5),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 VKe(e,t){var n=e.split(RegExp(`
*`+i5+`
*`,`g`)),r={series:[]};return Q(n,function(e,n){if(RKe(e)){var i=zKe(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=BKe(e);r.series.push(i)}}),r}var HKe=function(e){X(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=LKe(e);if(hA(l)){var f=l(t.getOption());gA(f)?s.innerHTML=f:SA(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}Dj(_,`click`,b),Dj(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=hA(u)?u(s,t.getOption()):VKe(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}(n5);function UKe(e,t){return sA(e,function(e,n){var r=t&&t[n];if(yA(r)&&!mA(r)){yA(e)&&!mA(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=nA(e,r),i&&delete e.name,e}else return e})}HK({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(Z({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:UKe(e.data,i)})}}),t.mergeOption(nA({series:n},e.newOption))});var WKe=Q,GKe=eI();function KKe(e,t){var n=c5(e);WKe(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 qKe(e){var t=c5(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return WKe(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 JKe(e){GKe(e).snapshots=null}function YKe(e){return c5(e).length}function c5(e){var t=GKe(e);return t.snapshots||=[{}],t.snapshots}var XKe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){JKe(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}(n5);HK({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var ZKe=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],l5=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=QKe(t,e);Q($Ke,function(e,t){(!n||!n.include||rA(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=d5[e.brushType](0,n,t);e.__rangeOffset={offset:rqe[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,d5[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=d5[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?rqe[e.brushType](r.values,i.offset,aqe(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return sA(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:jze(r),isTargetByCursor:Nze(r,e,n.coordSysModel),getLinearBrushOtherExtent:Mze(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&rA(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=QKe(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<eqe.length;s++)if(eqe[s](r,a))return a}return!0},e}();function u5(e){return e[0]>e[1]&&e.reverse(),e}function QKe(e,t){return tI(e,t,{includeMainTypes:ZKe})}var $Ke={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=zA(),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){(rA(n,e.getAxis(`x`).model)>=0||rA(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:tqe.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:tqe.geo})})}},eqe=[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}],tqe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=e0(null,e);return aM(t,t,$1(null,e)),t}},d5={lineX:pA(nqe,0),lineY:pA(nqe,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=[u5([i[0],a[0]]),u5([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[lI(),lI()];return{values:sA(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 nqe(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=u5(sA([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 rqe={lineX:pA(iqe,0),lineY:pA(iqe,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 sA(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function iqe(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function aqe(e,t){var n=oqe(e),r=oqe(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 oqe(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var f5=Q,sqe=twe(`toolbox-dataZoom_`),cqe={x:`width`,y:`height`},lqe=function(e){X(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 F3(n.getZr()),this._brushController.on(`brush`,fA(this._onBrush,this)).mount()),fqe(e,t,this,r,n),dqe(e,t)},t.prototype.onclick=function(e,t,n){uqe[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 l5(p5(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)}}),KKe(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=T3(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=EF(d,i[cqe[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?SF(o[0],f):o[0],endValue:isFinite(f)?SF(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=[];f5(e,function(e,n){t.push(Qk(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}(n5),uqe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(qKe(this.ecModel))}};function p5(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 dqe(e,t){e.setIconStatus(`back`,YKe(t)>1?`emphasis`:`normal`)}function fqe(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 l5(p5(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)}LDe(`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=tI(e,p5(r));f5(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),f5(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:sqe+t+a};o[n]=a,i.push(o)}return i});function pqe(e){e.registerComponentModel(wKe),e.registerComponentView(EKe),r5(`saveAsImage`,kKe),r5(`magicType`,MKe),r5(`dataView`,HKe),r5(`dataZoom`,lqe),r5(`restore`,XKe),$K(xKe)}var mqe=function(e){X(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}(sH);function hqe(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function gqe(e){if(Rk.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var _qe=gqe([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),vqe=gqe([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function yqe(e,t){if(!e)return t;t=DV(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function bqe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var xqe=yqe(vqe,`transition`),m5=yqe(_qe,`transform`),Sqe=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(Rk.transform3dSupported?`will-change:transform;`:``);function Cqe(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function wqe(e,t,n){if(!gA(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=FV(t);var a=Cqe(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=m5+`:`,l;rA([`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 Tqe(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?`,`:``)+(Rk.transformSupported?``+m5+i:`,left`+i+`,top`+i)),xqe+`:`+a}function Eqe(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Rk.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Rk.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+m5+`:`+o+`;`:[[`top`,0],[`left`,0],[_qe,o]]}function Dqe(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=OA(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 Oqe(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=tW(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(Tqe(a,n,r)),o&&i.push(`background-color:`+o),Q([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=DV(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(Dqe(d)),f!=null&&i.push(`padding:`+OV(f).join(`px `)+`px`),i.join(`;`)+`;`}function kqe(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&cSe(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 Aqe=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,Rk.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&&(gA(i)?document.querySelector(i):SA(i)?i:hA(i)&&i(e.getDom()));kqe(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;Ej(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=bqe(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=Sqe+Oqe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Eqe(i[0],i[1],!0)+(`border-color:`+FV(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(gA(i)&&n.get(`trigger`)===`item`&&!hqe(n)&&(o=wqe(n,r,i)),gA(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,mA(e)||(e=[e]);for(var s=0;s<e.length;s++)SA(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(kqe(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;Q(Eqe(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`,Rk.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(fA(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;lSe(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}(),jqe=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Nqe(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;yA(e)&&GF(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new kL({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:tW(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=Mqe(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;Nqe(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=h5(i.borderWidth||0),o=Mqe(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(fA(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function h5(e){return Math.max(0,e)}function Mqe(e){var t=h5(e.shadowBlur||0),n=h5(e.shadowOffsetX||0),r=h5(e.shadowOffsetY||0);return{left:h5(t-n),right:h5(t+n),top:h5(t-r),bottom:h5(t+r)}}function Nqe(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Pqe=new DL({shape:{x:-1,y:-1,width:2,height:2}}),Fqe=function(e){X(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(!(Rk.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=lwe(n.get(`renderMode`));this._tooltipContent=r===`richText`?new jqe(t):new Aqe(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(Rk.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`)?xW(this,`_updatePosition`,50,`fixRate`):SW(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);zUe(`itemTooltip`,this._api,fA(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||Rk.node||!n.getDom())){var i=Iqe(r,n);this._ticket=``;var a=r.dataByCoordSys,o=Vqe(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=Pqe;c.x=r.x,c.y=r.y,c.update(),jL(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=GUe(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(Iqe(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&&g5([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(jL(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;qW(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(jL(e).dataIndex==null?jL(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=fA(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=g5([t.tooltipOption],r),o=this._renderMode,s=[],c=qU(`section`,{blocks:[],noHeader:!0}),l=[],u=new nW;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=kUe(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=qU(`section`,{header:f,noHeader:!NA(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=mJ(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,FV(m.color),o);var h=CU(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=g5([a],r).get(`valueFormatter`);p.blocks.push(_?Z({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=ZU(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=jL(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=g5([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 nW;h.marker=g.makeTooltipMarker(`item`,FV(h.color),d);var _=CU(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?ZU(y?Z({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=jL(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(gA(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=Qk(a),a.content=xj(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=g5(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new nW;this._showOrMove(d,function(){var n=Qk(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(gA(u)){var p=e.ecModel.get(`useUTC`),m=mA(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=uV(m.axisValue,d,p)),d=MV(d,n,!0)}else if(hA(u)){var g=fA(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`||mA(t))return{color:r||i};if(!mA(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),hA(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),mA(t))n=yF(t[0],s),r=yF(t[1],c);else if(yA(t)){var p=t;p.width=l[0],p.height=l[1];var m=QV(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(gA(t)&&o){var h=zqe(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=Lqe(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=Bqe(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=Bqe(d)?l[1]/2:d===`bottom`?l[1]:0),hqe(e)){var h=Rqe(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){Rk.node||!t.getDom()||(SW(this,`_updatePosition`),this._tooltipContent.dispose(),l8(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(dW);function g5(e,t,n){var r=t.ecModel,i;n?(i=new LB(n,r,r),i=new LB(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof LB&&(o=o.get(`tooltip`,!0)),gA(o)&&(o={formatter:o}),o&&(i=new LB(o,i,r)))}return i}function Iqe(e,t){return e.dispatchAction||fA(t.dispatchAction,t)}function Lqe(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 Rqe(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 zqe(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 Bqe(e){return e===`center`||e===`middle`}function Vqe(e,t,n){var r=nI(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=iI(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=jL(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function Hqe(e){$K(d8),e.registerComponentModel(mqe),e.registerComponentView(Fqe),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},WA),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},WA)}var Uqe=[`rect`,`polygon`,`keep`,`clear`];function Wqe(e,t){var n=KF(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;mA(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),hI(s,function(e){return e+``},null),t&&!s.length&&s.push.apply(s,Uqe)}}var Gqe=Q;function Kqe(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function _5(e,t,n){var r={};return Gqe(t,function(t){var a=r[t]=i();Gqe(e[t],function(e,r){if(t4.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new t4(i),r===`opacity`&&(i=Qk(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new t4(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function qqe(e,t,n){var r;Q(n,function(e){t.hasOwnProperty(e)&&Kqe(t[e])&&(r=!0)}),r&&Q(n,function(n){t.hasOwnProperty(n)&&Kqe(t[n])?e[n]=Qk(t[n]):delete e[n]})}function Jqe(e,t,n,r,i,a){var o={};Q(e,function(e){o[e]=t4.prepareVisualTypes(t[e])});var s;function c(e){return HW(n,s,e)}function l(e,t){WW(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 Yqe(e,t,n,r){var i={};return Q(e,function(e){i[e]=t4.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return HW(a,l,e)}function c(e,t){WW(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 Xqe(e){var t=e.brushType,n={point:function(r){return Zqe[t].point(r,n,e)},rect:function(r){return Zqe[t].rect(r,n,e)}};return n}var Zqe={lineX:Qqe(0),lineY:Qqe(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])&&ZJ(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(ZJ(r,i,a)||ZJ(r,i+o,a)||ZJ(r,i,a+s)||ZJ(r,i+o,a+s)||eM.create(e).contain(c[0],c[1])||Xz(i,a,i+o,a,r)||Xz(i,a,i,a+s,r)||Xz(i+o,a,i+o,a+s,r)||Xz(i,a+s,i+o,a+s,r))return!0}}};function Qqe(e){var t=[`x`,`y`],n=[`width`,`height`];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return v5(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(),v5(s[0],o)||v5(s[1],o)||v5(o[0],s)||v5(o[1],s)}}}}function v5(e,t){return t[0]<=e&&e<=t[1]}var $qe=[`inBrush`,`outOfBrush`],y5=`__ecBrushSelect`,b5=`__ecInBrushSelectEvent`;function eJe(e){e.eachComponent({mainType:`brush`},function(t){(t.brushTargetManager=new l5(t.option,e)).setInputRanges(t.areas,e)})}var tJe=vI(nJe);function nJe(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})}),eJe(e),e.eachComponent({mainType:`brush`},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:Qk(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=sA(t.areas,function(e){var t=sJe[e.brushType],n=nA({boundingRect:t?t(e):void 0},e);return n.selectors=Xqe(n),n}),m=_5(t.option,$qe,function(e){e.mappingMethod=`fixed`});mA(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||oJe(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){aJe(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 aJe(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),`inBrush`):`outOfBrush`};(h(t)?f:g(r))&&Jqe($qe,m,i,a)})}),rJe(t,i,a,r,n)}function rJe(e,t,n,r,i){if(i){var a=e.getZr();a[b5]||(a[y5]||(a[y5]=iJe),xW(a,y5,n,t)(e,r))}}function iJe(e,t){if(!e.isDisposed()){var n=e.getZr();n[b5]=!0,e.dispatchAction({type:`brushSelect`,batch:t}),n[b5]=!1}}function aJe(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 oJe(e,t){var n=e.option.seriesIndex;return n!=null&&n!==`all`&&(mA(n)?rA(n,t)<0:t!==n)}var sJe={rect:function(e){return cJe(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t||=[lI(),lI()];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&&cJe(t)}};function cJe(e){return new eM(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var lJe=function(e){X(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 F3(t.getZr())).on(`brush`,fA(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){eJe(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:Qk(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:Qk(n),$from:t})},t.type=`brush`,t}(dW),uJe=function(e){X(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&&qqe(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=sA(e,function(e){return dJe(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=dJe(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}(sH);function dJe(e,t){return $k({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new LB(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var fJe=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],pJe=function(e){X(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:fJe.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}(n5);function mJe(e){e.registerComponentView(lJe),e.registerComponentModel(uJe),e.registerPreprocessor(Wqe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,tJe),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`},WA),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},WA),r5(`brush`,pJe)}var hJe=function(e){X(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}(sH),gJe=function(e){X(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=OA(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new kL({style:SB(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new kL({style:SB(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(){IV(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){IV(p,`_`+e.get(`subtarget`))}),jL(c).eventData=jL(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 _=QV(g,tH(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 DL({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}(dW);function _Je(e){e.registerComponentModel(hJe),e.registerComponentView(gJe)}var vJe=function(e){X(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=XF(JF(e),``),a;yA(e)?(a=Qk(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 xq([{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}(sH),yJe=function(e){X(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=zB(vJe.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}(vJe);aA(yJe,SU.prototype);var bJe=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(dW),xJe=function(e){X(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}(yY),x5=Math.PI,SJe=eI(),CJe=function(e){X(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 qU(`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=wJe(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?`+`:`-`:gA(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:x5/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*x5/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=Mj(),o=i.x,s=i.y+i.height;Ij(a,a,[-o,-s]),Lj(a,a,-x5/2),Ij(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||gA(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=fJ(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]),YJ(i,{fixMinMax:[!0,!0]});var o=new xJe(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new QP;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 $R({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Z({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new $R({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:nA({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=EJe(s,c,t,{x:o,y:0,onclick:fA(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),uR(d);var f=jL(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 kL({x:n.dataToCoord(o),y:0,rotation:e.labelRotation-e.rotation,onclick:fA(i._changeTimeline,i,o),silent:!1,style:SB(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=SB(l),d.ensureState(`progress`).style=SB(u),t.add(d),uR(d),SJe(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`,fA(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,fA(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,fA(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=BP(OA(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=TJe(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),uR(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=fA(s._handlePointerDrag,s),e.ondragend=fA(s._handlePointerDragend,s),DJe(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){DJe(e,s._progressLine,a,n,r)}};this._currentPointer=EJe(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=CF(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 Uz(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`,SJe(n[r]).dataIndex<=e)},t.type=`timeline.slider`,t}(bJe);function wJe(e,t){return QV(e.getBoxLayoutParams(),tH(e,t).refContainer,e.get(`padding`))}function TJe(e,t,n,r){var i=r.style,a=Yz(e.get([`controlStyle`,t]),r||{},new eM(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function EJe(e,t,n,r,i,a){var o=t.get(`color`);i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):(i=rG(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=$k({rectHover:!0,z2:100},r,!0);var c=iG(e.get(`symbolSize`));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var l=aG(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 DJe(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 OJe(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)}),nA({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 kJe(e){var t=e&&e.timeline;mA(t)||(t=t?[t]:[]),Q(t,function(e){e&&AJe(e)})}function AJe(e){var t=e.type,n={number:`value`,time:`time`};if(n[t]&&(e.axisType=n[t],delete e.type),jJe(e),S5(e,`controlPosition`)){var r=e.controlStyle||={};S5(r,`position`)||(r.position=e.controlPosition),r.position===`none`&&!S5(r,`show`)&&(r.show=!1,delete r.position),delete e.controlPosition}Q(e.data||[],function(e){yA(e)&&!mA(e)&&(!S5(e,`value`)&&S5(e,`name`)&&(e.value=e.name),jJe(e))})}function jJe(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]&&!S5(i,t)&&(i[t]=e)}),n.label&&!S5(r,`emphasis`)&&(r.emphasis=n.label,delete n.label)}function S5(e,t){return e.hasOwnProperty(t)}function MJe(e){e.registerComponentModel(yJe),e.registerComponentView(CJe),e.registerSubTypeDefaulter(`timeline`,function(){return`slider`}),OJe(e),e.registerPreprocessor(kJe)}function C5(e,t){if(!e)return!1;for(var n=mA(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function w5(e){qF(e,`label`,[`show`])}var T5=eI(),E5=function(e){X(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(Rk.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=T5(e)[i];if(!n||!n.data){T5(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&w5(n),Q(n.data,function(e){e instanceof Array?(w5(e[0]),w5(e[1])):w5(e)}),a=this.createMarkerModelFromSeries(n,this,t),Z(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),T5(e)[i]=a},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return qU(`section`,{header:this.name,blocks:[qU(`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=SU.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 T5(e)[t]},t.type=`marker`,t.dependencies=[`series`,`grid`,`polar`,`geo`],t}(sH);aA(E5,SU.prototype);var NJe=function(e){X(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}(E5);function D5(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function PJe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function O5(e,t,n,r,i,a,o){var s=[],c=Tq(t,i)?t.getCalculationInfo(`stackResultDimension`):i,l=M5(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=wF(t.get(i,u));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var k5={min:pA(O5,`min`),max:pA(O5,`max`),average:pA(O5,`average`),median:pA(O5,`median`)};function A5(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!PJe(t)&&!mA(t.coord)&&mA(i)){var a=FJe(t,n,r,e);if(t=Qk(t),t.type&&k5[t.type]&&a.baseAxis&&a.valueAxis){var o=rA(i,a.baseAxis.dim),s=rA(i,a.valueAxis.dim),c=k5[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||!mA(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&k5[t.type]){var u=r.getOtherAxis(l);u&&(t.value=M5(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)k5[d[f]]&&(d[f]=M5(n,n.mapDimension(i[f]),d[f]));return t}}function FJe(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(IJe(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 IJe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function j5(e,t){return e&&e.containData&&t.coord&&!D5(t)?e.containData(t.coord):!0}function LJe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!D5(t)&&!D5(n)?e.containZone(t.coord,n.coord):!0}function RJe(e,t){return e?function(e,n,r,i){return EU(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return EU(e.value,t[i])}}function M5(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 N5=eI(),P5=function(e){X(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=zA()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){N5(e).keep=!1}),t.eachSeries(function(e){var i=E5.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!N5(e).keep&&r.group.remove(e.group)}),zJe(t,i,this.type)},t.prototype.markKeep=function(e){N5(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Q(e,function(e){var r=E5.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?mEe(e):tR(e))})})},t.type=`marker`,t}(dW);function zJe(e,t,n){e.eachSeries(function(e){var r=E5.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=lB(r),o=a.z,s=a.zlevel;dB(i.group,o,s)}})}function BJe(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=yF(s.get(`x`),l)+d,h=yF(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 VJe=function(e){X(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=E5.getMarkerModelFromSeries(e,`markPoint`);t&&(BJe(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 wZ),l=HJe(i,e,t);t.setData(l),BJe(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(hA(r)||hA(i)||hA(a)||hA(s)){var u=t.getRawValue(e),d=t.getDataParams(e);hA(r)&&(r=r(u,d)),hA(i)&&(i=i(u,d)),hA(a)&&(a=a(u,d)),hA(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=UW(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:OA(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){jL(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(P5);function HJe(e,t,n){var r=e?sA(e&&e.dimensions,function(e){var n=t.getData();return Z(Z({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new xq(r,n),a=sA(n.get(`data`),pA(A5,t));e&&(a=lA(a,pA(j5,e)));var o=RJe(!!e,r);return i.initData(a,null,o),i}function UJe(e){e.registerComponentModel(NJe),e.registerComponentView(VJe),e.registerPreprocessor(function(e){C5(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var WJe=function(e){X(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}(E5),F5=eI(),GJe=function(e,t,n,r){var i=e.getData(),a;if(mA(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=DA(r.yAxis,r.xAxis);else{var l=FJe(r,i,t,e);s=l.valueAxis,c=M5(i,Eq(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=Qk(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&&vA(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=[A5(e,a[0]),A5(e,a[1]),Z({},a[2])];return h[2].type=h[2].type||null,$k(h[2],h[0]),$k(h[2],h[1]),h};function I5(e){return!isNaN(e)&&!isFinite(e)}function KJe(e,t,n,r){var i=1-e,a=r.dimensions[e];return I5(t[i])&&I5(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function qJe(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(KJe(1,n,r,e)||KJe(0,n,r,e)))return!0}return j5(e,t[0])&&j5(e,t[1])}function L5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=yF(o.get(`x`),i.getWidth()),l=yF(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(BZ(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;I5(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):I5(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 JJe=function(e){X(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=E5.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=F5(t).from,a=F5(t).to;i.each(function(t){L5(i,t,!0,e,n),L5(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 Z4);this.group.add(c.group);var l=YJe(i,e,t),u=l.from,d=l.to,f=l.line;F5(t).from=u,F5(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);mA(p)||(p=[p,p]),mA(m)||(m=[m,m]),mA(h)||(h=[h,h]),mA(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:OA(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){jL(e).dataModel=t,e.traverse(function(e){jL(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);L5(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=UW(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:OA(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:OA(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:OA(a.get(`symbolSize`),m[+!i]),symbol:OA(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(P5);function YJe(e,t,n){var r=e?sA(e&&e.dimensions,function(e){var n=t.getData();return Z(Z({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new xq(r,n),a=new xq(r,n),o=new xq([],n),s=sA(n.get(`data`),pA(GJe,t,e,n));e&&(s=lA(s,pA(qJe,e)));var c=RJe(!!e,r);return i.initData(sA(s,function(e){return e[0]}),null,c),a.initData(sA(s,function(e){return e[1]}),null,c),o.initData(sA(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function XJe(e){e.registerComponentModel(WJe),e.registerComponentView(JJe),e.registerPreprocessor(function(e){C5(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var ZJe=function(e){X(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}(E5),R5=eI(),QJe=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=A5(e,i),s=A5(e,a),c=o.coord,l=s.coord;c[0]=DA(c[0],-1/0),c[1]=DA(c[1],-1/0),l[0]=DA(l[0],1/0),l[1]=DA(l[1],1/0);var u=eA([{},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 z5(e){return!isNaN(e)&&!isFinite(e)}function $Je(e,t,n,r){var i=1-e;return z5(t[i])&&z5(n[i])}function eYe(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 BZ(e,`cartesian2d`)?n&&r&&($Je(1,n,r,e)||$Je(0,n,r,e))?!0:LJe(e,i,a):j5(e,i)||j5(e,a)}function tYe(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=yF(o.get(n[0]),i.getWidth()),l=yF(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(BZ(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);z5(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):z5(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 nYe=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],rYe=function(e){X(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=E5.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=sA(nYe,function(i){return tYe(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 QP});this.group.add(c.group),this.markKeep(c);var l=iYe(i,e,t);t.setData(l),l.each(function(t){var n=sA(nYe,function(n){return tYe(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))];CF(d),CF(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`),_=UW(o,`color`);h.fill||(h.fill=_,gA(h.fill)&&(h.fill=gN(h.fill,.4))),h.stroke||=_,l.setItemVisual(t,`style`,h),l.setItemVisual(t,`z2`,OA(g,0))}),l.diff(R5(c).data).add(function(e){var t=l.getItemLayout(e),n=l.getItemVisual(e,`z2`);if(!t.allClipped){var r=new ZR({z2:OA(n,0),shape:{points:t.points}});l.setItemGraphicEl(e,r),c.group.add(r)}}).update(function(e,n){var r=R5(c).data.getItemGraphicEl(n),i=l.getItemLayout(e),a=l.getItemVisual(e,`z2`);i.allClipped?r&&c.group.remove(r):(r?bz(r,{z2:OA(a,0),shape:{points:i.points}},t,e):r=new ZR({shape:{points:i.points}}),l.setItemGraphicEl(e,r),c.group.add(r))}).remove(function(e){var t=R5(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`)),bB(e,xB(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||``,inheritColor:gA(i.fill)?gN(i.fill,1):$.color.neutral99}),mR(e,r),dR(e,null,null,r.get([`emphasis`,`disabled`])),jL(e).dataModel=t}),R5(c).data=l,c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markArea`,t}(P5);function iYe(e,t,n){var r,i,a=[`x0`,`y0`,`x1`,`y1`];if(e){var o=sA(e&&e.dimensions,function(e){var n=t.getData();return Z(Z({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});i=sA(a,function(e,t){return{name:e,type:o[t%2].type}}),r=new xq(i,n)}else i=[{name:`value`,type:`float`}],r=new xq(i,n);var s=sA(n.get(`data`),pA(QJe,t,e,n));e&&(s=lA(s,pA(eYe,e)));var c=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return EU(a,i[r])}:function(e,t,n,r){return EU(e.value,i[r])};return r.initData(s,null,c),r.hasItemOption=!0,r}function aYe(e){e.registerComponentModel(ZJe),e.registerComponentView(rYe),e.registerPreprocessor(function(e){C5(e.series,`markArea`)&&(e.markArea=e.markArea||{})})}var oYe=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`])}},B5=function(e){X(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`]),mA(t)&&Q(t,function(e,r){gA(e)&&(e={type:e}),t[r]=$k(e,oYe(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&&ZF(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=zA(),a=sA(r,function(e){return(gA(e)||vA(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new LB(e,this,this.ecModel))},this);this._data=lA(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])&&rA(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}(sH),V5=pA,H5=Q,U5=QP,sYe=function(e){X(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 U5),this.group.add(this._selectorGroup=new U5),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=tH(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=QV(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=QV(nA({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=TKe(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=zA(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),H5(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
`)){var p=new U5;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`,V5(uYe,f,null,r,d)).on(`mouseover`,V5(W5,m.name,null,r,d)).on(`mouseout`,V5(G5,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=jL(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`),_=uN(h.fill);_&&_[3]===0&&(_[3]=.2,h=Z(Z({},h),{fill:_N(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,V5(uYe,null,f,r,d)).on(`mouseover`,V5(W5,null,f,r,d)).on(`mouseout`,V5(G5,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=jL(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};jL(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();H5(e,function(e){var r=e.type,i=new kL({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),bB(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),uR(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=cYe(c,r,o,s,d,m,u),y=new U5,b=r.getModel(`textStyle`);if(hA(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(lYe({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;gA(w)&&w?T=w.replace(`{name}`,t??``):hA(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new kL({style:SB(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new DL({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&nB({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),uR(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();YV(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){YV(`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}(dW);function cYe(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),H5(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:NG(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 lYe(e){var t=e.icon||`roundRect`,n=rG(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 uYe(e,t,n,r){G5(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),W5(e,t,n,r)}function W5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function G5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function K5(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),dYe(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){Q(i,function(t,n){e[t?`select`:`unSelect`](n)}),dYe(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function dYe(e,t){var n=t||{};return Q(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
`||r===``)){var i=e.isSelected(r);UA(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function fYe(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,pA(K5,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,pA(K5,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,pA(K5,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,pA(K5,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,pA(K5,`unSelect`))}var pYe=vI(mYe);function mYe(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 hYe(e){e.registerComponentModel(B5),e.registerComponentView(sYe),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,pYe),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),fYe(e)}var gYe=function(e){X(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=aH(t);e.prototype.init.call(this,t,n,r),_Ye(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),_Ye(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=zB(B5.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}(B5);function _Ye(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,iH(t,n,{type:`box`,ignoreSize:!!i})}var vYe=QP,q5=[`width`,`height`],J5=[`x`,`y`],yYe=function(e){X(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 vYe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vYe)},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=mA(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new kL({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=Yz(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:fA(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=q5[s],l=J5[s],u=q5[1-s],d=J5[1-s];i&&YV(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=Qk(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;YV(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),YV(`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],_=OA(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 DL({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&&bz(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`,gA(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=q5[i],o=J5[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}(sYe);function bYe(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 xYe(e){$K(hYe),e.registerComponentModel(gYe),e.registerComponentView(yYe),bYe(e)}function SYe(e){$K(hYe),$K(xYe)}var CYe=function(e){X(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=zB($8.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}($8),Y5=eI();function wYe(e,t,n){Y5(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function TYe(e,t){for(var n=Y5(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||EYe(n,o))}}}function EYe(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function DYe(e,t){var n={model:t,containsPoint:pA(kYe,t),dispatchAction:pA(OYe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new v1(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 OYe(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function kYe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function AYe(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=OA(t.get(`cursorGrab`,!0),s),c=OA(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 jYe(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=Y5(t),r=n.coordSysRecordMap||=zA();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){Q(uKe(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,DYe(t,n.model));(a.dataZoomInfoMap||=zA()).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){EYe(r,e);return}var s=AYe(a,e,t);n.enable(s.controlType,s.opt),xW(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var MYe=function(e){X(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(),wYe(r,t,{pan:fA(X5.pan,this),zoom:fA(X5.zoom,this),scrollMove:fA(X5.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){TYe(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(e5),X5={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=Z5[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(T3(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:NYe(function(e,t,n,r,i,a){var o=Z5[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:NYe(function(e,t,n,r,i,a){return Z5[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function NYe(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(T3(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 Z5={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 PYe(e){t5(e),e.registerComponentModel(CYe),e.registerComponentView(MYe),jYe(e)}var FYe=function(e){X(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=zB($8.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}($8),Q5=DL,IYe=1,$5=30,LYe=7,e7=`horizontal`,RYe=`vertical`,zYe=5,BYe=[`line`,`bar`,`candlestick`,`scatter`],VYe={easing:`cubicOut`,duration:100,delay:0},HYe=function(e){X(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=fA(this._onBrush,this),this._onBrushEnd=fA(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),xW(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(){SW(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 QP;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`)?LYe:0,r=tH(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===e7?{right:r.width-i.x-i.width,top:r.height-$5-a-n,width:i.width,height:$5}:{right:a,top:i.y,width:$5,height:i.height},s=aH(e.option);Q([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=QV(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===RYe&&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===e7&&!i?{scaleY:o?1:-1,scaleX:1}:n===e7&&i?{scaleY:o?1:-1,scaleX:-1}:n===RYe&&!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 Q5({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new Q5({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:fA(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:vF(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 QP,r=new ZR({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new QR({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&&rA(BYe,e.get(`type`))<0)){var o=r.getComponent(X8(i),a).axis,s=WYe(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 Q5({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new Q5({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:IYe,fill:$.color.transparent}})),Q([0,1],function(t){var a=o.get(`handleIcon`);!nG[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=rG(a,-1,0,2,2,null,!0);s.attr({cursor:GYe(this._orient),draggable:!0,drift:fA(this._onDragMove,this,t),ondragend:fA(this._onDragEnd,this),onmouseover:fA(this._onOverDataInfoTriggerArea,this,!0),onmouseout:fA(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=yF(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(),uR(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 kL({silent:!0,invisible:!f,style:SB(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=yF(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new DL({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=rG(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 DL({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:fA(this._onActualMoveZoneDrift,this),ondragstart:fA(this._onActualMoveZoneDragStart,this),ondragend:fA(this._onActualMoveZoneDragEnd,this),onmouseover:fA(this._onOverDataInfoTriggerArea,this,!0),onmouseout:fA(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[vF(e[0],[0,100],t,!0),vF(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];T3(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:vF(a.minSpan,o,i,!0),a.maxSpan==null?null:vF(a.maxSpan,o,i,!0));var s=this._range,c=this._range=CF([vF(r[0],i,o,!0),vF(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=CF(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 DL,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=pKe(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=[UYe(t,0,l,s),UYe(t,1,l,s)]}}var p=CF(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(e){var t=Hz(n.handles[e].parent,this.group),o=Wz(e===0?`right`:`left`,t),s=this._handleWidth/2+zYe,c=Uz([p[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===e7?`middle`:o,align:i===e7?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,Oj(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=Uz([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 Vj(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();T3(0,a,r,0,o.minSpan==null?null:vF(o.minSpan,i,r,!0),o.maxSpan==null?null:vF(o.maxSpan,i,r,!0)),this._range=CF([vF(a[0],r,i,!0),vF(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Oj(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 Q5({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?VYe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=uKe(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}(e5);function UYe(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)?``:Uq(r)||Vq(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?SF(o,a,!0):o+``;return hA(i)?i(o,s):gA(i)?i.replace(`{value}`,s):s}function WYe(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function GYe(e){return e===`vertical`?`ns-resize`:`ew-resize`}function KYe(e){e.registerComponentModel(FYe),e.registerComponentView(HYe),t5(e)}function qYe(e){$K(PYe),$K(KYe)}var JYe={get:function(e,t,n){var r=Qk((YYe[e]||{})[t]);return n&&mA(r)?r[r.length-1]:r}},YYe={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]}},XYe=t4.mapVisual,ZYe=t4.eachVisual,QYe=mA,t7=Q,$Ye=CF,eXe=vF,n7=function(e){X(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&&qqe(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=fA(e,this),this.controllerVisuals=_5(this.option.controller,t,e),this.targetVisuals=_5(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 t7(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=iI(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return sA(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||=[`<`,`>`],mA(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(gA(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(hA(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=$Ye([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=uA(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||={};$k(r,n),$k(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){QYe(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]={},t7(r,function(e,t){if(t4.isValidType(t)){var n=JYe.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`;t7(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&Qk(t)||(a?i:[i]),c.symbolSize??=n&&Qk(n)||(a?s[0]:[s[0],s[0]]),c.symbol=XYe(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;ZYe(l,function(e){e>u&&(u=e)}),c.symbolSize=XYe(l,function(e){return eXe(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}(sH),tXe=[20,140],nXe=function(e){X(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]=tXe[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=tXe[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):mA(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=CF((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=OA(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=rXe(this,`outOfRange`,this.getExtent()),n=rXe(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=zB(n7.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}(n7);function rXe(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 iXe=function(e){X(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=OV(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new DL({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(t4.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),t4.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=tH(t,n).refContainer;nH(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(dW),aXe=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function oXe(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=aXe[o],c=[0,null,10],l={},u=0;u<3;u++)l[aXe[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=QV(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 r7(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 i7=vF,sXe=Q,cXe=Math.min,a7=Math.max,lXe=12,uXe=6,dXe=function(e){X(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=fA(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=fA(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 kL({style:SB(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=oXe(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new QP;s.add(c),c.add(n.outOfRange=fXe()),c.add(n.inRange=fXe(null,a?hXe(this._orient):null,fA(this._dragHandle,this,`all`,!1),fA(this._dragHandle,this,`all`,!0))),c.setClipPath(new DL({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=a7(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=fA(this._dragHandle,this,n,!1),s=fA(this._dragHandle,this,n,!0),c=BP(e.get(`handleSize`),r[0]),l=rG(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=hXe(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){Oj(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(),hR(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new kL({cursor:u,draggable:!0,drift:o,onmousemove:function(e){Oj(e.event)},ondragend:s,style:SB(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=BP(e.get(`indicatorSize`),n[0]),o=rG(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 CL){var c=o.style;o.useStyle(Z({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 kL({silent:!0,invisible:!0,style:SB(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:uXe)+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():mXe(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=[i7(t[0],n,r,!0),i7(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]];T3(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[i7(r[0],i,a,!0),i7(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 oz(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 QP(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);sXe([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=i7(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=Uz(n.handleLabelPoints[l],Hz(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=i7(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=Uz(c.indicatorLabelPoint,Hz(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]=cXe(a7(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=cXe(a7(i[0],e),i[1]);var o=pXe(n,a,i),s=[e-o,e+o],c=i7(e,i,a,!0),l=[i7(s[0],i,a,!0),i7(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||mXe(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=iwe(u,d);this._dispatchHighDown(`downplay`,r7(f[0],n)),this._dispatchHighDown(`highlight`,r7(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(qW(e.target,function(e){var n=jL(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`,r7(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=Hz(t,r?null:this.group);return mA(e)?Uz(e,i,n):Wz(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}(iXe);function fXe(e,t,n,r){return new ZR({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Oj(e.event)},ondragend:r})}function pXe(e,t,n){var r=lXe/2,i=e.get(`hoverLinkDataSize`);return i&&(r=i7(i,t,n,!0)/2),r}function mXe(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function hXe(e){return e===`vertical`?`ns-resize`:`ew-resize`}var gXe={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},_Xe=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},vXe=[{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(Yqe(t.stateList,t.targetVisuals,fA(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(fA(yXe,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function yXe(e,t,n,r){for(var i=t.targetVisuals[r],a=t4.prepareVisualTypes(i),o={color:UW(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 bXe=Q;function xXe(e){var t=e&&e.visualMap;mA(t)||(t=t?[t]:[]),bXe(t,function(e){if(e){o7(e,`splitList`)&&!o7(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&mA(t)&&bXe(t,function(e){yA(e)&&(o7(e,`start`)&&!o7(e,`min`)&&(e.min=e.start),o7(e,`end`)&&!o7(e,`max`)&&(e.max=e.end))})}})}function o7(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var SXe=!1;function CXe(e){SXe||(SXe=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(gXe,_Xe),Q(vXe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(xXe))}function wXe(e){e.registerComponentModel(nXe),e.registerComponentView(dXe),CXe(e)}var TXe=function(e){X(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=[],EXe[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=Qk(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=sA(this._pieceList,function(e){return e=Qk(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=t4.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]=JYe.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=Qk(e)},t.prototype.getValueState=function(e){var t=t4.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){t4.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=zB(n7.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}(n7),EXe={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]}),LF(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),DXe(t,e)},pieces:function(e){var t=this.option;Q(t.pieces,function(t,n){yA(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=t4.retrieveVisuals(t),e.push(r)},this),DXe(t,e),LF(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 DXe(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var OXe=function(e){X(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=DA(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 QP;u.onclick=fA(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 kL({style:SB(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:OA(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),YV(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:r7(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return oXe(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 QP,o=this.visualMapModel.textStyleModel;a.add(new kL({style:SB(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=sA(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=rG(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=Qk(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}(iXe);function kXe(e){e.registerComponentModel(TXe),e.registerComponentView(OXe),CXe(e)}function AXe(e){$K(wXe),$K(kXe)}var jXe=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:uB(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}(),MXe=function(e){X(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 jXe(this);this._target=null,this.ecModel.eachSeries(function(e){u3(e,null)}),this.shouldShow()&&u3(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}(sH),NXe=function(e){X(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 Z1,!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=tH(e,n).refContainer,s=QV(XV(e,!0),o),c=a.lineWidth||0,l=this._contentRect=$z(s.clone(),c/2,!0,!0),u=new QP;r.add(u),u.setClipPath(new DL({shape:l.plain()}));var d=this._targetGroup=new QP;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new DL({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new DL({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),FXe(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),FXe(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,s0(n,a.x,a.y,a.width,a.height);var o=QV({left:`center`,top:`center`,aspect:a.width/a.height},r);c0(n,o.x,o.y,o.width,o.height),n0(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=zj([],e.targetTrans),n=Fj([],$1(null,this._coordSys),t);this._transThisToTarget=zj([],n);var r=e.viewportRect;r=r?r.clone():new eM(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(nA({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new v1(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`,fA(this._onPan,this)).on(`zoom`,fA(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=uj([],[e.oldX,e.oldY],t),r=uj([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(PXe(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=uj([],[e.originX,e.originY],t);this._api.dispatchAction(PXe(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}(dW);function PXe(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,Z(n,t),n}function FXe(e,t){var n=lB(e);dB(t.group,n.z,n.zlevel)}function IXe(e){e.registerComponentModel(MXe),e.registerComponentView(NXe)}var LXe={label:{enabled:!0},decal:{show:!1}},RXe=eI(),zXe=eI(),BXe=vI(VXe);function VXe(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=zXe(e).scope||(zXe(e).scope={}),i=Qk(LXe);$k(i.label,e.getLocaleModel().get(`aria`),!1),$k(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=zA();e.eachSeries(function(e){e.isColorBySeries()||(RXe(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(hA(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=TH(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=RXe(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=TH(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?Z(Z({},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=nA(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?lA(i.getValues(_),function(e,t){return rA(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(!gA(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 HXe(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 UXe(e){e.registerPreprocessor(HXe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,BXe)}var WXe={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},GXe=function(){function e(e){(this._condVal=gA(e)?new RegExp(e):TA(e)?e:null)??GF(``)}return e.prototype.evaluate=function(e){var t=typeof e;return gA(t)?this._condVal.test(e):vA(t)?this._condVal.test(e+``):!1},e}(),KXe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),qXe=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}(),JXe=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}(),YXe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),XXe=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 s7(e,t){if(e===!0||e===!1){var n=new KXe;return n.value=e,n}return eZe(e)||GF(``),e.and?ZXe(`and`,e,t):e.or?ZXe(`or`,e,t):e.not?QXe(e,t):$Xe(e,t)}function ZXe(e,t,n){var r=t[e],i=``;mA(r)||GF(i),r.length||GF(i);var a=e===`and`?new qXe:new JXe;return a.children=sA(r,function(e){return s7(e,n)}),a.children.length||GF(i),a}function QXe(e,t){var n=e.not,r=``;eZe(n)||GF(r);var i=new YXe;return i.child=s7(n,t),i.child||GF(r),i}function $Xe(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=dA(e),o=e.parser,s=o?DU(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=UA(WXe,l)?WXe[l]:l,d=e[l],f=s?s(d):d,p=vOe(u,f)||u===`reg`&&new GXe(f);p||GF(n),i.push(p)}}i.length||GF(n);var m=new XXe;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function eZe(e){return yA(e)&&!oA(e)}var tZe=function(){function e(e,t){this._cond=s7(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function nZe(e,t){return new tZe(e,t)}var rZe={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=nZe(e.config,{valueGetterAttrMap:zA({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;UA(e,`dimension`)||GF(n);var i=t.getDimensionInfo(r);return i||GF(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}}},iZe={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=KF(n);i.length||GF(r);var a=[];Q(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n??GF(r),i!==`asc`&&i!==`desc`&&GF(r),s&&s!==`min`&&s!==`max`&&GF(``),i!==`asc`&&i!==`desc`&&GF(``);var c=t.getDimensionInfo(n);c||GF(r);var l=o?DU(o):null;o&&!l&&GF(r),a.push({dimIdx:c.index,parser:l,comparator:new kU(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&GF(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 aZe(e){e.registerTransform(rZe),e.registerTransform(iZe)}var oZe=function(e){X(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 VU(this),HU(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),HU(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:zL},t}(sH),sZe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(dW);function cZe(e){e.registerComponentModel(oZe),e.registerComponentView(sZe)}var c7=uL.CMD;function l7(e,t){return Math.abs(e-t)<1e-5}function u7(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){l7(e,n)&&l7(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,(_===c7.L||_===c7.C||_===c7.Q)&&(i=[s,c])),_){case c7.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case c7.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case c7.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case c7.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 c7.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 c7.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 c7.Z:i&&u(a,o,s,c),a=s,o=c;break}}return i&&i.length>2&&r.push(i),r}function d7(e,t,n,r,i,a,o,s,c,l){if(l7(e,n)&&l7(t,r)&&l7(i,o)&&l7(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=[];HM(e,n,i,o,.5,T),HM(t,r,a,s,.5,E),d7(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),d7(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function lZe(e,t){var n=u7(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++];d7(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function uZe(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 dZe(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=uZe([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 fZe(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=uZe([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 pZe(e,t,n,r){return e*r-n*t}function mZe(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=pZe(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=pZe(e-i,t-a,u,d)/f;return p<0||p>1?null:new Vj(p*c+e,p*l+t)}function hZe(e,t,n){var r=new Vj;Vj.sub(r,n,t),r.normalize();var i=new Vj;return Vj.sub(i,e,t),i.dot(r)}function f7(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function gZe(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=mZe(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:hZe(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++)f7(m,e[a].slice());f7(m,p),f7(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)f7(h,e[a%r].slice());return f7(h,f),f7(h,p),[{points:m},{points:h}]}function _Ze(e){var t=e.points,n=[],r=[];GI(t,n,r);var i=new eM(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 Vj,u=new Vj;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),gZe(t,l,u)}function p7(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);p7(e,a[0],i,r),p7(e,a[1],n-i,r)}return r}function vZe(e,t){for(var n=[],r=0;r<t;r++)n.push(PR(e));return n}function yZe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function bZe(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function xZe(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:fZe(r,t,n),i=DL;break;case`sector`:dZe(r,t,n),i=JR;break;case`circle`:dZe({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=JR;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=sA(lZe(e.getUpdatedPathProxy(),o),function(e){return bZe(e)}),c=s.length;if(c===0)p7(_Ze,{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=sA(s,function(e){var t=[],n=[];GI(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||(p7(_Ze,{points:p.poly},m,n),f-=m)}}i=ZR;break}if(!i)return vZe(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),yZe(e,g),h.push(g)}return h}function SZe(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;HM(m,g,v,b,w,i),HM(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 CZe(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 wZe(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=SZe(c,l),u=n[0],d=n[1],r=u,i=d):(d=CZe(i||c,c),u=c):(u=CZe(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function TZe(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 EZe(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 DZe(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 OZe(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=TZe(s),u=TZe(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=DZe(s));for(var _=EZe(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 m7(e){return e.__isCombineMorphing}var kZe=`__mOriginal_`;function h7(e,t,n){var r=kZe+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 g7(e,t){var n=kZe+t;e[n]&&(e[t]=e[n],e[n]=null)}function AZe(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 jZe(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=wZe(u7(n),u7(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&AZe(a,s),c&&AZe(o,c),h7(t,`updateTransform`,{replace:l}),t.transform=null;var u=OZe(a,o,10,Math.PI),d=[];h7(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);lj(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 _7(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;jZe(e,t),t.__morphT=0;function a(){g7(t,`buildPath`),g7(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},nA({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function MZe(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 v7(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return sA(sA(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:MZe(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 NZe(e){return xZe(e.path,e.count)}function y7(){return{fromIndividuals:[],toIndividuals:[],count:0}}function PZe(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];m7(n)?i(n.childrenRef()):n instanceof xL&&r.push(n)}}i(e);var a=r.length;if(!a)return y7();var o=(n.dividePath||NZe)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),y7();r=v7(r),o=v7(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new wP,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||jZe(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)}h7(t,`addSelfToZr`,{after:function(e){m(e)}}),h7(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,g7(t,`addSelfToZr`),g7(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?nA({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;_7(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},nA({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++)g7(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function FZe(e,t,n){var r=t.length,i=[],a=n.dividePath||NZe;function o(e){for(var t=0;t<e.length;t++){var n=e[t];m7(n)?o(n.childrenRef()):n instanceof xL&&i.push(n)}}if(m7(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(PR(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`),y7()}i=v7(i),t=v7(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?nA({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;_7(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function IZe(e){return mA(e[0])}function LZe(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 RZe={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=PR(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function b7(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=vz(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Z({setToFinal:!0},o),l,u;IZe(e)&&(l=e,u=t),IZe(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(m7(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?nA({delay:s(r,i)},c):c;_7(f,p,m),a(f,p,f,p,m)}}else for(var h=nA({dividePath:RZe[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?PZe(l,u,h):FZe(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?nA({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?LZe(u,l):LZe(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 x7(e){if(!e)return[];if(mA(e)){for(var t=[],n=0;n<e.length;n++)t.push(x7(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof xL&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var zZe=1e4,BZe=0,VZe=1,HZe=2,UZe=eI();function WZe(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 GZe(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 KZe(e,t,n,r){var i=WZe(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return GZe(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 qZe(e){var t=[];return Q(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>zZe))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:KZe(n,a,r,!1),childGroupId:KZe(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function S7(e,t,n){e.traverse(function(e){e instanceof xL&&xz(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function C7(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function w7(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function JZe(e,t,n){var r=vz(`update`,n,t);r&&e.traverse(function(e){if(e instanceof PI){var t=YEe(e);t&&e.animateFrom({style:t},r)}})}function YZe(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 XZe(e,t,n){var r=qZe(e),i=qZe(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?Z(Z({},n.style),e.style):e.style},i)}var o=!1,s=BZe,c=zA(),l=zA();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=VZe;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=HZe;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===VZe?n.childGroupId:n.groupId:s===HZe?n.childGroupId:n.groupId}}var m=YZe(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&&JZe(u,s.dataIndex,c);return}l&&h[l.id]||u&&(w7(u),l?(w7(l),C7(l),o=!0,b7(x7(l),x7(u),s.divide,c,e,a)):S7(u,c,e))}new nq(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=lA(sA(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(w7(l),u.length?(Q(u,function(e){w7(e),C7(e)}),o=!0,b7(x7(u),x7(l),n.divide,c,e,a)):S7(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=lA(sA(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 w7(e)}),s?(w7(s),C7(s),o=!0,b7(x7(s),x7(c),n.divide,l,e[0],a)):Q(c,function(t){return S7(t,l,e[0])}))}}).updateManyToMany(function(e,t){new nq(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=vz(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof xL&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function ZZe(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function QZe(e){return mA(e)?e.sort().join(`,`):e}function T7(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function $Ze(e,t){var n=zA(),r=zA(),i=zA();return Q(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=ZZe(t),c=QZe(s);r.set(c,{dataGroupId:a,data:o}),mA(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=ZZe(e),s=QZe(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:T7(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:T7(a),data:a}]});else if(mA(o)){var l=[];Q(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:T7(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:T7(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:T7(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:T7(a)})}}}}),n}function eQe(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 tQe(e,t,n,r){var i=[],a=[];Q(KF(e.from),function(e){var n=eQe(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:T7(t.oldData[n]),groupIdDim:e.dimension})}),Q(KF(e.to),function(e){var r=eQe(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:T7(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&XZe(i,a,r)}function nQe(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){Q(KF(n.seriesTransition),function(e){Q(KF(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][oW]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=UZe(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Q(KF(i),function(e){tQe(e,r,n,t)});else{var a=$Ze(r,n);Q(a.keys(),function(e){var n=a.get(e);XZe(n.oldSeries,n.newSeries,t)})}Q(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[oW]=!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()<zZe&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}var rQe=function(){function e(t,n){Mq(this,e.decoratedMethods),this._outOfBrk=Lq(null,n);var r=this._linear=Lq(null,n);Nq(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){fI(t,n)&&(e===0&&sQe(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=aQe,r=oQe,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=aQe,r=oQe,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 iQe(e,t){return new rQe(e,t)}var aQe=0,oQe=0;function sQe(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=E7(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:lF(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function cQe(e,t,n,r,i,a){e!==`no`&&Q(n,function(n){var o=E7(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 lQe(e,t,n,r){Q(t,function(t){var i=E7(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 E7(e,t){var n=lF(e.vmin,t[0]),r=cF(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 D7(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:Qk(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(gA(e.gap)){var s=NA(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:lA(r,function(e){return!!e})}}function O7(e,t){return k7(t)===k7(e)}function k7(e){return e.start+`_\0_`+e.end}function uQe(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=uA(r,function(n){return O7(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 dQe(e,t,n,r){if(t.break){var i=t.break.parsedBreak,a=uA(n,function(e){return O7(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:Qk(a.gapParsed),gapReal:i.gapReal};return{tickVal:s[t.break.type],vBreak:{type:t.break.type,parsedBreak:s}}}}function fQe(e,t,n,r,i){i.original=D7(e,t,n);var a=i.transformed=D7(e,t,n),o=i.lookup;a.breaks=sA(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 pQe={vmin:`start`,vmax:`end`};function mQe(e,t){return t&&(e||={},e.break={type:pQe[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function hQe(){hDe({createBreakScaleMapper:iQe,pruneTicksByBreak:cQe,addBreaksToTicks:lQe,parseAxisBreakOption:D7,identifyAxisBreak:O7,serializeAxisBreakIdentifier:k7,retrieveAxisBreakPairs:uQe,getTicksBreakOutwardTransform:dQe,parseAxisBreakOptionInwardTransform:fQe,makeAxisLabelFormatterParamBreak:mQe})}var gQe=eI();function _Qe(e,t){var n=uA(e,function(e){return YB().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function vQe(e){Q(e,function(e){return e.shouldRemove=!0})}function yQe(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function bQe(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!YB())return;var o=YB().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 QP({ignoreModelZ:!0}),y=a.isHorizontal(),b=gQe(t).visualList||(gQe(t).visualList=[]);vQe(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=_Qe(b,t);s.shouldRemove=!1;var c=new QP;C(s.zigzagRandomList,c,r[0],r[1],y,t),d&&c.on(`click`,function(){var e={type:oQ,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),yQe(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[kz[v]]+r[Az[v]];function b(e){var t=[],n=[];t[d]=n[d]=e,t[v]=r[kz[v]],n[v]=y;var i={x1:t[0],y1:t[1],x2:n[0],y2:n[1]};return TL(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[kz[v]],T=0;;T++){var E=w===r[kz[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=YB().serializeAxisBreakIdentifier(o.breakOption);if(t.add(new QR({anid:`break_a_`+j,shape:{points:x},style:s,z:f})),o.gapReal!==0){t.add(new QR({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 ZR({anid:`break_c_`+j,shape:{points:N},style:{fill:_,opacity:p.opacity},z:f}))}}}function xQe(e,t,n,r){var i=e.axis,a=n.transform;MA(r.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=sA(YB().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:YB().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&&(uj(e,e,a),uj(t,t,a))}function c(e,t){var n={x1:e[0],y1:e[1],x2:t[0],y2:t[1]};TL(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 $R(Z({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 SQe(e,t,n){if(uA(n,function(e){return!e}))return;var r=new Vj;if(!ZY(n[0],n[1],r,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var i=Mj();Lj(i,i,-t);var a=sA(n,function(e){return e.transform?Fj(Mj(),i,e.transform):i});function o(e){var t=n[0].localRect,r=new Vj(t[Az[e]]*a[0][0],t[Az[e]]*a[0][1]);return Math.abs(r.y)<1e-5}var s=.5;if(o(0)||o(1)){var c=sA(n,function(e,t){var n=e.localRect.clone();return n.applyTransform(a[t]),n}),l=new Vj;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 Vj,h=new Vj;Vj.scale(m,r,-s),Vj.scale(h,r,1-s),KY(n[0],m),KY(n[1],h)}function CQe(e,t){var n={breaks:[]};return Q(t.breaks,function(r){if(r){var i=uA(e.get(`breaks`,!0),function(e){return YB().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 wQe(){MNe({adjustBreakLabelPair:SQe,buildAxisBreakLine:xQe,rectCoordBuildBreakAxis:bQe,updateModelAxisBreak:CQe})}function TQe(e){RNe(e),hQe(),wQe()}function EQe(){QPe(DQe)}function DQe(e,t){Q(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=OQe(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 OQe(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof Xq?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=pJ(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 eM(e.x,e.y,a,o)}}var kQe=s({Axis:()=>yY,ChartView:()=>mW,ComponentModel:()=>sH,ComponentView:()=>dW,List:()=>xq,Model:()=>LB,PRIORITY:()=>UG,SeriesModel:()=>sW,color:()=>BSe,connect:()=>cAe,dataTool:()=>gAe,dependencies:()=>Wke,disConnect:()=>lAe,disconnect:()=>PK,dispose:()=>uAe,env:()=>Rk,extendChartView:()=>oMe,extendComponentModel:()=>rMe,extendComponentView:()=>iMe,extendSeriesModel:()=>aMe,format:()=>zje,getCoordinateSystemDimensions:()=>fAe,getInstanceByDom:()=>FK,getInstanceById:()=>dAe,getMap:()=>hAe,graphic:()=>Rje,helper:()=>Tje,init:()=>sAe,innerDrawElementOnCanvas:()=>DG,matrix:()=>bSe,number:()=>Ije,parseGeoJSON:()=>oY,parseGeoJson:()=>oY,registerAction:()=>HK,registerCoordinateSystem:()=>UK,registerCustomSeries:()=>pAe,registerLayout:()=>WK,registerLoading:()=>JK,registerLocale:()=>KB,registerMap:()=>YK,registerPostInit:()=>zK,registerPostUpdate:()=>BK,registerPreprocessor:()=>LK,registerProcessor:()=>RK,registerTheme:()=>IK,registerTransform:()=>XK,registerUpdateLifecycle:()=>VK,registerVisual:()=>GK,setCanvasCreator:()=>mAe,setPlatformAPI:()=>Bk,throttle:()=>bW,time:()=>Lje,use:()=>$K,util:()=>Bje,vector:()=>$xe,version:()=>Uke,zrUtil:()=>Uxe,zrender:()=>SCe});$K([uNe]),$K([rNe]),$K([jNe,OPe,zPe,_Fe,AFe,MIe,oLe,ULe,gRe,wRe,ARe,zRe,Hze,gBe,NBe,tVe,sVe,xVe,OVe,QVe,oHe,CHe,xUe]),$K(rWe),$K(RWe),$K(s2),$K($We),$K(Vze),$K(iGe),$K(WGe),$K(iKe),$K(pqe),$K(Hqe),$K(d8),$K(mJe),$K(_Je),$K(MJe),$K(UJe),$K(XJe),$K(aYe),$K(SYe),$K(qYe),$K(PYe),$K(KYe),$K(AXe),$K(wXe),$K(kXe),$K(IXe),$K(UXe),$K(aZe),$K(cZe),$K(nQe),$K(xMe),$K(TQe),$K(EQe),$K(vFe);var AQe=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return`${t++}`}})),jQe=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)}}})),A7=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`})),MQe=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=r(jQe()),n=A7();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()}}}})),NQe=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=A7(),n=r(jQe());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()}}}})),PQe=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=MQe(),n=NQe();e.createSensor=typeof ResizeObserver<`u`?n.createSensor:t.createSensor})),FQe=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var t=i(AQe()),n=PQe(),r=A7();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)}})),IQe=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var t=FQe();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 LQe(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}function j7(e){return typeof e==`function`}function RQe(e){return typeof e==`string`}var M7=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}}))()),zQe=function(e){Nk(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=kQe,n}return t}(function(e){Nk(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(!(j7(t)&&!t(e,this.props))){if(!(0,M7.default)(e.theme,this.props.theme)||!(0,M7.default)(e.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();(0,M7.default)(e.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var r=[`option`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`];(0,M7.default)(LQe(this.props,r),LQe(e,r))||this.updateEChartsOption(),(!(0,M7.default)(e.style,this.props.style)||!(0,M7.default)(e.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return Fk(this,void 0,void 0,function(){var e=this;return Ik(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=Pk({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,IQe.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return Fk(this,void 0,void 0,function(){var e,t,n,r,i,a,o=this;return Ik(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||{}),j7(n)&&n(a),this.ele&&i&&(0,IQe.bind)(this.ele,function(){o.resize()}),[2]}})})},t.prototype.bindEvents=function(e,t){var n=this,r=function(t,r){if(RQe(t)&&j7(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=Pxe(t,[`style`,`className`,`echarts`,`option`,`theme`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`,`opts`,`onChartReady`,`onEvents`,`shouldSetOption`,`autoResize`]),o=Pk({height:300},n);return h.createElement(`div`,Pk({ref:function(t){e.ele=t},style:o,className:`echarts-for-react ${i}`},a))},t}(h.PureComponent)),N7={up:`#52c41a`,down:`#ff4d4f`,flat:`#8c8c8c`,volatile:`#fa8c16`};function BQe({points:e,subjectName:t,threshold:n}){if(e.length===0)return(0,Y.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=N7.flat;return e.direction===`up`&&(n=N7.up),e.direction===`down`&&(n=N7.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:N7.volatile,borderColor:`#fff`,borderWidth:2},label:{show:!1}}));return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(zQe,{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=Ak[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?N7.volatile:n?.direction===`up`?N7.up:n?.direction===`down`?N7.down:`#1677ff`}},lineStyle:{opacity:0},markPoint:o.length?{data:o}:void 0,z:10},...a],legend:{bottom:0,data:[{name:`上升`,itemStyle:{color:N7.up}},{name:`下降`,itemStyle:{color:N7.down}},{name:`大幅波动`,itemStyle:{color:N7.volatile}}]}},style:{height:400,width:`100%`},notMerge:!0}),(0,Y.jsxs)(`p`,{style:{color:`#888`,fontSize:12,marginTop:8},children:[`波动阈值: `,(n*100).toFixed(0),`%,超过此变化幅度将高亮显示`]})]})}function P7(e){return e.error_message?!1:e.status===`pending`||e.status===`ocr_done`&&!e.question_text}function F7(e){return e.status===`pending`?`正在识别文字(约 1030 秒)…`:e.status===`ocr_done`?`正在标注错题并生成解题思路(约 30–90 秒)…`:`正在识别、标注并生成解题思路…`}function I7({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 uk.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}/image`;return t===`annotated`?i(a,s):i(s),()=>{r=!0,n&&URL.revokeObjectURL(n)}},[e,t]),s?(0,Y.jsx)(`div`,{className:n,style:{...i,background:`#fafafa`,color:`#999`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:12},children:`图片加载失败`}):a?(0,Y.jsx)(`img`,{src:a,alt:r,className:n,style:i}):(0,Y.jsx)(`div`,{className:n,style:{...i,background:`#fafafa`}})}function VQe(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var HQe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,UQe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WQe={};function GQe(e,t){return((t||WQe).jsx?UQe:HQe).test(e)}var KQe=/[ \t\n\f\r]/g;function qQe(e){return typeof e==`object`?e.type===`text`?JQe(e.value):!1:JQe(e)}function JQe(e){return e.replace(KQe,``)===``}var L7=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};L7.prototype.normal={},L7.prototype.property={},L7.prototype.space=void 0;function YQe(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new L7(n,r,t)}function R7(e){return e.toLowerCase()}var z7=class{constructor(e,t){this.attribute=t,this.property=e}};z7.prototype.attribute=``,z7.prototype.booleanish=!1,z7.prototype.boolean=!1,z7.prototype.commaOrSpaceSeparated=!1,z7.prototype.commaSeparated=!1,z7.prototype.defined=!1,z7.prototype.mustUseProperty=!1,z7.prototype.number=!1,z7.prototype.overloadedBoolean=!1,z7.prototype.property=``,z7.prototype.spaceSeparated=!1,z7.prototype.space=void 0;var B7=s({boolean:()=>V7,booleanish:()=>H7,commaOrSpaceSeparated:()=>q7,commaSeparated:()=>K7,number:()=>W7,overloadedBoolean:()=>U7,spaceSeparated:()=>G7}),XQe=0,V7=J7(),H7=J7(),U7=J7(),W7=J7(),G7=J7(),K7=J7(),q7=J7();function J7(){return 2**++XQe}var Y7=Object.keys(B7),X7=class extends z7{constructor(e,t,n,r){let i=-1;if(super(e,t),ZQe(this,`space`,r),typeof n==`number`)for(;++i<Y7.length;){let e=Y7[i];ZQe(this,Y7[i],(n&B7[e])===B7[e])}}};X7.prototype.defined=!0;function ZQe(e,t,n){n&&(e[t]=n)}function Z7(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new X7(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[R7(r)]=r,n[R7(a.attribute)]=r}return new L7(t,n,e.space)}var QQe=Z7({properties:{ariaActiveDescendant:null,ariaAtomic:H7,ariaAutoComplete:null,ariaBusy:H7,ariaChecked:H7,ariaColCount:W7,ariaColIndex:W7,ariaColSpan:W7,ariaControls:G7,ariaCurrent:null,ariaDescribedBy:G7,ariaDetails:null,ariaDisabled:H7,ariaDropEffect:G7,ariaErrorMessage:null,ariaExpanded:H7,ariaFlowTo:G7,ariaGrabbed:H7,ariaHasPopup:null,ariaHidden:H7,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:G7,ariaLevel:W7,ariaLive:null,ariaModal:H7,ariaMultiLine:H7,ariaMultiSelectable:H7,ariaOrientation:null,ariaOwns:G7,ariaPlaceholder:null,ariaPosInSet:W7,ariaPressed:H7,ariaReadOnly:H7,ariaRelevant:null,ariaRequired:H7,ariaRoleDescription:G7,ariaRowCount:W7,ariaRowIndex:W7,ariaRowSpan:W7,ariaSelected:H7,ariaSetSize:W7,ariaSort:null,ariaValueMax:W7,ariaValueMin:W7,ariaValueNow:W7,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function $Qe(e,t){return t in e?e[t]:t}function e$e(e,t){return $Qe(e,t.toLowerCase())}var t$e=Z7({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:K7,acceptCharset:G7,accessKey:G7,action:null,allow:null,allowFullScreen:V7,allowPaymentRequest:V7,allowUserMedia:V7,alpha:V7,alt:null,as:null,async:V7,autoCapitalize:null,autoComplete:G7,autoFocus:V7,autoPlay:V7,blocking:G7,capture:null,charSet:null,checked:V7,cite:null,className:G7,closedBy:null,colorSpace:null,cols:W7,colSpan:W7,command:null,commandFor:null,content:null,contentEditable:H7,controls:V7,controlsList:G7,coords:W7|K7,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V7,defer:V7,dir:null,dirName:null,disabled:V7,download:U7,draggable:H7,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V7,formTarget:null,headers:G7,height:W7,hidden:U7,high:W7,href:null,hrefLang:null,htmlFor:G7,httpEquiv:G7,id:null,imageSizes:null,imageSrcSet:null,inert:V7,inputMode:null,integrity:null,is:null,isMap:V7,itemId:null,itemProp:G7,itemRef:G7,itemScope:V7,itemType:G7,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V7,low:W7,manifest:null,max:null,maxLength:W7,media:null,method:null,min:null,minLength:W7,multiple:V7,muted:V7,name:null,nonce:null,noModule:V7,noValidate:V7,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:V7,optimum:W7,pattern:null,ping:G7,placeholder:null,playsInline:V7,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V7,referrerPolicy:null,rel:G7,required:V7,reversed:V7,rows:W7,rowSpan:W7,sandbox:G7,scope:null,scoped:V7,seamless:V7,selected:V7,shadowRootClonable:V7,shadowRootCustomElementRegistry:V7,shadowRootDelegatesFocus:V7,shadowRootMode:null,shadowRootSerializable:V7,shape:null,size:W7,sizes:null,slot:null,span:W7,spellCheck:H7,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W7,step:null,style:null,tabIndex:W7,target:null,title:null,translate:null,type:null,typeMustMatch:V7,useMap:null,value:H7,width:W7,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:G7,axis:null,background:null,bgColor:null,border:W7,borderColor:null,bottomMargin:W7,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V7,declare:V7,event:null,face:null,frame:null,frameBorder:null,hSpace:W7,leftMargin:W7,link:null,longDesc:null,lowSrc:null,marginHeight:W7,marginWidth:W7,noResize:V7,noHref:V7,noShade:V7,noWrap:V7,object:null,profile:null,prompt:null,rev:null,rightMargin:W7,rules:null,scheme:null,scrolling:H7,standby:null,summary:null,text:null,topMargin:W7,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W7,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:V7,disablePictureInPicture:V7,disableRemotePlayback:V7,exportParts:K7,part:G7,prefix:null,property:null,results:W7,security:null,unselectable:null},space:`html`,transform:e$e}),n$e=Z7({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:q7,accentHeight:W7,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W7,amplitude:W7,arabicForm:null,ascent:W7,attributeName:null,attributeType:null,azimuth:W7,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W7,by:null,calcMode:null,capHeight:W7,className:G7,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:W7,diffuseConstant:W7,direction:null,display:null,dur:null,divisor:W7,dominantBaseline:null,download:V7,dx:null,dy:null,edgeMode:null,editable:null,elevation:W7,enableBackground:null,end:null,event:null,exponent:W7,externalResourcesRequired:null,fill:null,fillOpacity:W7,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:K7,g2:K7,glyphName:K7,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W7,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W7,horizOriginX:W7,horizOriginY:W7,id:null,ideographic:W7,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W7,k:W7,k1:W7,k2:W7,k3:W7,k4:W7,kernelMatrix:q7,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W7,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:W7,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:W7,overlineThickness:W7,paintOrder:null,panose1:null,path:null,pathLength:W7,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:G7,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W7,pointsAtY:W7,pointsAtZ:W7,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:q7,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:q7,rev:q7,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:q7,requiredFeatures:q7,requiredFonts:q7,requiredFormats:q7,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:W7,specularExponent:W7,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W7,strikethroughThickness:W7,string:null,stroke:null,strokeDashArray:q7,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W7,strokeOpacity:W7,strokeWidth:null,style:null,surfaceScale:W7,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:q7,tabIndex:W7,tableValues:null,target:null,targetX:W7,targetY:W7,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:q7,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W7,underlineThickness:W7,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W7,values:null,vAlphabetic:W7,vMathematical:W7,vectorEffect:null,vHanging:W7,vIdeographic:W7,version:null,vertAdvY:W7,vertOriginX:W7,vertOriginY:W7,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W7,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:$Qe}),r$e=Z7({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()}}),i$e=Z7({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:e$e}),a$e=Z7({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),o$e={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`},s$e=/[A-Z]/g,c$e=/-[a-z]/g,l$e=/^data[-\w.:]+$/i;function u$e(e,t){let n=R7(t),r=t,i=z7;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&l$e.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(c$e,f$e);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!c$e.test(e)){let n=e.replace(s$e,d$e);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=X7}return new i(r,t)}function d$e(e){return`-`+e.toLowerCase()}function f$e(e){return e.charAt(1).toUpperCase()}var p$e=YQe([QQe,t$e,r$e,i$e,a$e],`html`),Q7=YQe([QQe,n$e,r$e,i$e,a$e],`svg`);function m$e(e){return e.join(` `).trim()}var h$e=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})),g$e=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(h$e());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}})),_$e=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))}})),v$e=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(g$e()),r=_$e();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})),y$e=b$e(`end`),$7=b$e(`start`);function b$e(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 x$e(e){let t=$7(e),n=y$e(e);if(t&&n)return{start:t,end:n}}function e9(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?S$e(e.position):`start`in e||`end`in e?S$e(e):`line`in e||`column`in e?t9(e):``}function t9(e){return C$e(e&&e.line)+`:`+C$e(e&&e.column)}function S$e(e){return t9(e&&e.start)+`-`+t9(e&&e.end)}function C$e(e){return e&&typeof e==`number`?e:1}var n9=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=e9(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}};n9.prototype.file=``,n9.prototype.name=``,n9.prototype.reason=``,n9.prototype.message=``,n9.prototype.stack=``,n9.prototype.column=void 0,n9.prototype.line=void 0,n9.prototype.ancestors=void 0,n9.prototype.cause=void 0,n9.prototype.fatal=void 0,n9.prototype.place=void 0,n9.prototype.ruleId=void 0,n9.prototype.source=void 0;var w$e=l(v$e(),1),r9={}.hasOwnProperty,T$e=new Map,E$e=/[A-Z]/g,D$e=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),O$e=new Set([`td`,`th`]);function k$e(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=z$e(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=R$e(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`?Q7:p$e,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=A$e(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function A$e(e,t,n){if(t.type===`element`)return j$e(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return M$e(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return P$e(e,t,n);if(t.type===`mdxjsEsm`)return N$e(e,t);if(t.type===`root`)return F$e(e,t,n);if(t.type===`text`)return I$e(e,t)}function j$e(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Q7,e.schema=i),e.ancestors.push(t);let a=W$e(e,t.tagName,!1),o=B$e(e,t),s=a9(e,t);return D$e.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!qQe(e):!0})),L$e(e,o,a,t),i9(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function M$e(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)}o9(e,t.position)}function N$e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);o9(e,t.position)}function P$e(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Q7,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:W$e(e,t.name,!0),o=V$e(e,t),s=a9(e,t);return L$e(e,o,a,t),i9(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function F$e(e,t,n){let r={};return i9(r,a9(e,t)),e.create(t,e.Fragment,r,n)}function I$e(e,t){return t.value}function L$e(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function i9(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function R$e(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 z$e(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=$7(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 B$e(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&r9.call(t.properties,i)){let a=H$e(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&O$e.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 V$e(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 o9(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 o9(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function a9(e,t){let n=[],r=-1,i=e.passKeys?new Map:T$e;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=A$e(e,a,o);s!==void 0&&n.push(s)}return n}function H$e(e,t,n){let r=u$e(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?VQe(n):m$e(n)),r.property===`style`){let t=typeof n==`object`?n:U$e(e,String(n));return e.stylePropertyNameCase===`css`&&(t=G$e(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?o$e[r.property]||r.property:r.attribute,n]}}function U$e(e,t){try{return(0,w$e.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new n9("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 W$e(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=GQe(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=GQe(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return r9.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);o9(e)}function o9(e,t){let n=new n9("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 G$e(e){let t={},n;for(n in e)r9.call(e,n)&&(t[K$e(n)]=e[n]);return t}function K$e(e){let t=e.replace(E$e,q$e);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function q$e(e){return`-`+e.toLowerCase()}var s9={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`]},J$e={};function Y$e(e,t){let n=t||J$e;return X$e(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function X$e(e,t,n){if(Q$e(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 Z$e(e.children,t,n)}return Array.isArray(e)?Z$e(e,t,n):``}function Z$e(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=X$e(e[i],t,n);return r.join(``)}function Q$e(e){return!!(e&&typeof e==`object`)}function c9(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 l9(e,t){return e.length>0?(c9(e,e.length,0,t),e):t}var $$e={}.hasOwnProperty;function e1e(e){let t={},n=-1;for(;++n<e.length;)t1e(t,e[n]);return t}function t1e(e,t){let n;for(n in t){let r=($$e.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){$$e.call(r,a)||(r[a]=[]);let e=i[a];n1e(r[a],Array.isArray(e)?e:e?[e]:[])}}}function n1e(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);c9(e,0,0,r)}var u9=_9(/[A-Za-z]/),d9=_9(/[\dA-Za-z]/),r1e=_9(/[#-'*+\--9=?A-Z^-~]/);function f9(e){return e!==null&&(e<32||e===127)}var p9=_9(/\d/),i1e=_9(/[\dA-Fa-f]/),a1e=_9(/[!-/:-@[-`{-~]/);function m9(e){return e!==null&&e<-2}function h9(e){return e!==null&&(e<0||e===32)}function g9(e){return e===-2||e===-1||e===32}var o1e=_9(/\p{P}|\p{S}/u),s1e=_9(/\s/);function _9(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function v9(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return g9(r)?(e.enter(n),s(r)):t(r)}function s(r){return g9(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var c1e={tokenize:l1e};function l1e(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`),v9(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 m9(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var u1e={tokenize:f1e},d1e={tokenize:p1e};function f1e(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 c9(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(d1e,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(d1e,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 m9(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++;c9(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 p1e(e,t,n){return v9(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function m1e(e){if(e===null||h9(e)||s1e(e))return 1;if(o1e(e))return 2}function y9(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 b9={name:`attention`,resolveAll:h1e,tokenize:g1e};function h1e(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};_1e(d,-c),_1e(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=l9(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=l9(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=l9(l,y9(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=l9(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=l9(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,c9(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 g1e(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=m1e(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=m1e(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 _1e(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var v1e={name:`autolink`,tokenize:y1e};function y1e(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 u9(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||d9(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||d9(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||f9(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):r1e(t)?(e.consume(t),l):n(t)}function u(e){return d9(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||d9(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var x9={partial:!0,tokenize:b1e};function b1e(e,t,n){return r;function r(t){return g9(t)?v9(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||m9(e)?t(e):n(e)}}var x1e={continuation:{tokenize:C1e},exit:w1e,name:`blockQuote`,tokenize:S1e};function S1e(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 g9(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function C1e(e,t,n){let r=this;return i;function i(t){return g9(t)?v9(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(x1e,t,n)(r)}}function w1e(e){e.exit(`blockQuote`)}var T1e={name:`characterEscape`,tokenize:E1e};function E1e(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 a1e(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var D1e=document.createElement(`i`);function S9(e){let t=`&`+e+`;`;D1e.innerHTML=t;let n=D1e.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}var O1e={name:`characterReference`,tokenize:k1e};function k1e(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=d9,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=i1e,u):(e.enter(`characterReferenceValue`),a=7,o=p9,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===d9&&!S9(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 A1e={partial:!0,tokenize:N1e},j1e={concrete:!0,name:`codeFenced`,tokenize:M1e};function M1e(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`),g9(t)?v9(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||m9(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(A1e,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||m9(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):g9(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),v9(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||m9(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||m9(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&&g9(t)?v9(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||m9(t)?e.check(A1e,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||m9(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`),g9(t)?v9(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`),g9(t)?v9(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||m9(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function N1e(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 C9={name:`codeIndented`,tokenize:F1e},P1e={partial:!0,tokenize:I1e};function F1e(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),v9(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):m9(t)?e.attempt(P1e,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||m9(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function I1e(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):m9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):v9(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):m9(e)?i(e):n(e)}}var L1e={name:`codeText`,previous:z1e,resolve:R1e,tokenize:B1e};function R1e(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 z1e(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function B1e(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)):m9(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||m9(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 V1e=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&&w9(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),w9(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),w9(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);w9(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);w9(this.left,t.reverse())}}};function w9(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 H1e(e){let t={},n=-1,r,i,a,o,s,c,l,u=new V1e(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,U1e(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 c9(e,0,1/0,u.slice(0)),!l}function U1e(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 W1e={resolve:K1e,tokenize:q1e},G1e={partial:!0,tokenize:J1e};function K1e(e){return H1e(e),e}function q1e(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):m9(t)?e.check(G1e,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 J1e(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),v9(e,a,`linePrefix`)}function a(i){if(i===null||m9(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 Y1e(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||f9(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||m9(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||h9(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||f9(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 X1e(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):m9(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||m9(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!g9(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Z1e(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):m9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),v9(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||m9(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 T9(e,t){let n;return r;function r(i){return m9(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):g9(i)?v9(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}function E9(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Q1e={name:`definition`,tokenize:e0e},$1e={partial:!0,tokenize:t0e};function e0e(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return X1e.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=E9(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 h9(t)?T9(e,l)(t):l(t)}function l(t){return Y1e(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt($1e,d,d)(t)}function d(t){return g9(t)?v9(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||m9(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function t0e(e,t,n){return r;function r(t){return h9(t)?T9(e,i)(t):n(t)}function i(t){return Z1e(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return g9(t)?v9(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||m9(e)?t(e):n(e)}}var n0e={name:`hardBreakEscape`,tokenize:r0e};function r0e(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return m9(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var i0e={name:`headingAtx`,resolve:a0e,tokenize:o0e};function a0e(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`},c9(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function o0e(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||h9(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||m9(n)?(e.exit(`atxHeading`),t(n)):g9(n)?v9(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||h9(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var s0e=`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(`.`),c0e=[`pre`,`script`,`style`,`textarea`],l0e={concrete:!0,name:`htmlFlow`,resolveTo:f0e,tokenize:p0e},u0e={partial:!0,tokenize:h0e},d0e={partial:!0,tokenize:m0e};function f0e(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 p0e(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):u9(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):u9(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 u9(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||h9(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&c0e.includes(l)?(i=1,r.interrupt?t(s):O(s)):s0e.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||d9(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 g9(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||u9(t)?(e.consume(t),b):g9(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||d9(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):g9(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):g9(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||m9(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||h9(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||g9(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||m9(t)?O(t):g9(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):m9(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(u0e,R,k)(t)):t===null||m9(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(d0e,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||m9(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 c0e.includes(n)?(e.consume(t),L):O(t)}return u9(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||m9(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function m0e(e,t,n){let r=this;return i;function i(t){return m9(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 h0e(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(x9,t,n)}}var g0e={name:`htmlText`,tokenize:_0e};function _0e(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):u9(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):u9(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):m9(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):m9(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):m9(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):m9(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return u9(t)?(e.consume(t),S):n(t)}function S(t){return t===45||d9(t)?(e.consume(t),S):C(t)}function C(t){return m9(t)?(o=C,N(t)):g9(t)?(e.consume(t),C):M(t)}function w(t){return t===45||d9(t)?(e.consume(t),w):t===47||t===62||h9(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||u9(t)?(e.consume(t),E):m9(t)?(o=T,N(t)):g9(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||d9(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):m9(t)?(o=D,N(t)):g9(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):m9(t)?(o=O,N(t)):g9(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):m9(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||h9(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||h9(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 g9(t)?v9(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 D9={name:`labelEnd`,resolveAll:x0e,resolveTo:S0e,tokenize:C0e},v0e={tokenize:w0e},y0e={tokenize:T0e},b0e={tokenize:E0e};function x0e(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&&c9(e,0,e.length,n),e}function S0e(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=l9(s,e.slice(a+1,a+r+3)),s=l9(s,[[`enter`,u,t]]),s=l9(s,y9(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=l9(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=l9(s,e.slice(o+1)),s=l9(s,[[`exit`,c,t]]),c9(e,a,e.length,s),e}function C0e(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(E9(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(v0e,u,o?u:d)(t):t===91?e.attempt(y0e,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(b0e,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function w0e(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 h9(t)?T9(e,a)(t):a(t)}function a(t){return t===41?u(t):Y1e(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return h9(t)?T9(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Z1e(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return h9(t)?T9(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 T0e(e,t,n){let r=this;return i;function i(t){return X1e.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(E9(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function E0e(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 D0e={name:`labelStartImage`,resolveAll:D9.resolveAll,tokenize:O0e};function O0e(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 k0e={name:`labelStartLink`,resolveAll:D9.resolveAll,tokenize:A0e};function A0e(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 O9={name:`lineEnding`,tokenize:j0e};function j0e(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),v9(e,t,`linePrefix`)}}var k9={name:`thematicBreak`,tokenize:M0e};function M0e(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||m9(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),g9(t)?v9(e,s,`whitespace`)(t):s(t))}}var A9={continuation:{tokenize:I0e},exit:R0e,name:`list`,tokenize:F0e},N0e={partial:!0,tokenize:z0e},P0e={partial:!0,tokenize:L0e};function F0e(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:p9(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(k9,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 p9(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(x9,r.interrupt?n:u,e.attempt(N0e,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return g9(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 I0e(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(x9,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,v9(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!g9(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(P0e,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,v9(e,e.attempt(A9,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function L0e(e,t,n){let r=this;return v9(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 R0e(e){e.exit(this.containerState.type)}function z0e(e,t,n){let r=this;return v9(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!g9(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var B0e={name:`setextUnderline`,resolveTo:V0e,tokenize:H0e};function V0e(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 H0e(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`),g9(t)?v9(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||m9(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var U0e={tokenize:W0e};function W0e(e){let t=this,n=e.attempt(x9,r,e.attempt(this.parser.constructs.flowInitial,i,v9(e,e.attempt(this.parser.constructs.flow,i,e.attempt(W1e,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 G0e={resolveAll:Y0e()},K0e=J0e(`string`),q0e=J0e(`text`);function J0e(e){return{resolveAll:Y0e(e===`text`?X0e: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 Y0e(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 X0e(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 Z0e=s({attentionMarkers:()=>a2e,contentInitial:()=>$0e,disable:()=>o2e,document:()=>Q0e,flow:()=>t2e,flowInitial:()=>e2e,insideSpan:()=>i2e,string:()=>n2e,text:()=>r2e}),Q0e={42:A9,43:A9,45:A9,48:A9,49:A9,50:A9,51:A9,52:A9,53:A9,54:A9,55:A9,56:A9,57:A9,62:x1e},$0e={91:Q1e},e2e={[-2]:C9,[-1]:C9,32:C9},t2e={35:i0e,42:k9,45:[B0e,k9],60:l0e,61:B0e,95:k9,96:j1e,126:j1e},n2e={38:O1e,92:T1e},r2e={[-5]:O9,[-4]:O9,[-3]:O9,33:D0e,38:O1e,42:b9,60:[v1e,g0e],91:k0e,92:[n0e,T1e],93:D9,95:b9,96:L1e},i2e={null:[b9,G0e]},a2e={null:[42,95]},o2e={null:[]};function s2e(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=l9(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=y9(a,l.events,l),l.events):[]}function f(e,t){return l2e(p(e),t)}function p(e){return c2e(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){m9(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&&c9(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 c2e(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 l2e(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 u2e(e){let t={constructs:e1e([Z0e,...(e||{}).extensions||[]]),content:n(c1e),defined:[],document:n(u1e),flow:n(U0e),lazy:{},string:n(K0e),text:n(q0e)};return t;function n(e){return n;function n(n){return s2e(t,e,n)}}}function d2e(e){for(;!H1e(e););return e}var f2e=/[\0\t\n\r]/g;function p2e(){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(f2e.lastIndex=u,c=f2e.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 m2e(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 h2e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function g2e(e){return e.replace(h2e,_2e)}function _2e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return m2e(n.slice(t?2:1),t?16:10)}return S9(n)||e}var v2e={}.hasOwnProperty;function y2e(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),b2e(n)(d2e(u2e(n).document().write(p2e()(e,t,!0))))}function b2e(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ie),blockQuote:a(ee),characterEscape:T,characterReference:T,codeFenced:a(K),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(K,o),codeText:a(te,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ne),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(re),hardBreakEscape:a(ae),hardBreakTrailing:a(ae),htmlFlow:a(oe,o),htmlFlowData:T,htmlText:a(oe,o),htmlTextData:T,image:a(se),label:o,link:a(ce),listItem:a(ue),listItemValue:f,listOrdered:a(le,d),listUnordered:a(le),paragraph:a(de),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ie),strong:a(fe),thematicBreak:a(me)},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()}};x2e(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]];v2e.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]||C2e).call(a,void 0,e[0])}for(r.position={start:j9(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:j9(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:j9(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]||C2e).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+e9({start:e.start,end:e.end})+`): its not open`);n.position.end=j9(e.end)}function u(){return Y$e(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=E9(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=pe(),n.position={start:j9(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=j9(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=j9(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=g2e(t),n.identifier=E9(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=E9(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=m2e(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=S9(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=j9(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 ee(){return{type:`blockquote`,children:[]}}function K(){return{type:`code`,lang:null,meta:null,value:``}}function te(){return{type:`inlineCode`,value:``}}function ne(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function re(){return{type:`emphasis`,children:[]}}function ie(){return{type:`heading`,depth:0,children:[]}}function ae(){return{type:`break`}}function oe(){return{type:`html`,value:``}}function se(){return{type:`image`,title:null,url:``,alt:null}}function ce(){return{type:`link`,title:null,url:``,children:[]}}function le(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function ue(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function de(){return{type:`paragraph`,children:[]}}function fe(){return{type:`strong`,children:[]}}function pe(){return{type:`text`,value:``}}function me(){return{type:`thematicBreak`}}}function j9(e){return{line:e.line,column:e.column,offset:e.offset}}function x2e(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?x2e(e,r):S2e(e,r)}}function S2e(e,t){let n;for(n in t)if(v2e.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 C2e(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+e9({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+e9({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+e9({start:t.start,end:t.end})+`) is still open`)}function w2e(e){let t=this;t.parser=n;function n(n){return y2e(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}var T2e=typeof self==`object`?self:globalThis,E2e=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new T2e[e](t)},D2e=(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(E2e(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(E2e(a,o),i)};return r},O2e=e=>D2e(new Map,e)(0),M9=``,{toString:k2e}={},{keys:A2e}=Object,N9=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=k2e.call(e).slice(8,-1);switch(n){case`Array`:return[1,M9];case`Object`:return[2,M9];case`Date`:return[3,M9];case`RegExp`:return[4,M9];case`Map`:return[5,M9];case`Set`:return[6,M9];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},P9=([e,t])=>e===0&&(t===`function`||t===`symbol`),j2e=(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]=N9(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 A2e(r))(e||!P9(N9(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?M9: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||!(P9(N9(n))||P9(N9(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!P9(N9(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},M2e=(e,{json:t,lossy:n}={})=>{let r=[];return j2e(!(t||n),!!t,new Map,r)(e),r},F9=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?O2e(M2e(e,t)):structuredClone(e):(e,t)=>O2e(M2e(e,t));function I9(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&d9(e.charCodeAt(n+1))&&d9(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 N2e(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 P2e(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function F2e(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||N2e,r=e.options.footnoteBackLabel||P2e,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=I9(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:{...F9(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 I2e=(function(e){if(e==null)return B2e;if(typeof e==`function`)return L9(e);if(typeof e==`object`)return Array.isArray(e)?L2e(e):R2e(e);if(typeof e==`string`)return z2e(e);throw Error(`Expected function, string, or object as test`)});function L2e(e){let t=[],n=-1;for(;++n<e.length;)t[n]=I2e(e[n]);return L9(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function R2e(e){let t=e;return L9(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function z2e(e){return L9(t);function t(t){return t&&t.type===e}}function L9(e){return t;function t(t,n,r){return!!(V2e(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function B2e(){return!0}function V2e(e){return typeof e==`object`&&!!e&&`type`in e}function H2e(e){return e}var U2e=[];function W2e(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=I2e(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 (`+H2e(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=U2e,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=G2e(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 G2e(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?U2e:[e]}function K2e(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),W2e(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 q2e(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 J2e(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
`}]}function Y2e(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 X2e(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Z2e(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Q2e(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=I9(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 $2e(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 e4e(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function t4e(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 n4e(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t4e(e,t);let i={src:I9(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 r4e(e,t){let n={src:I9(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 i4e(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 a4e(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t4e(e,t);let i={href:I9(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 o4e(e,t){let n={href:I9(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 s4e(e,t,n){let r=e.all(t),i=n?c4e(n):l4e(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 c4e(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=l4e(n[r])}return t}function l4e(e){return e.spread??e.children.length>1}function u4e(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 d4e(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f4e(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function p4e(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function m4e(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=$7(t.children[1]),o=y$e(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 h4e(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 g4e(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var _4e=9,v4e=32;function y4e(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(b4e(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(b4e(t.slice(i),i>0,!1)),a.join(``)}function b4e(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===_4e||t===v4e;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===_4e||t===v4e;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function x4e(e,t){let n={type:`text`,value:y4e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function S4e(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var C4e={blockquote:q2e,break:J2e,code:Y2e,delete:X2e,emphasis:Z2e,footnoteReference:Q2e,heading:$2e,html:e4e,imageReference:n4e,image:r4e,inlineCode:i4e,linkReference:a4e,link:o4e,listItem:s4e,list:u4e,paragraph:d4e,root:f4e,strong:p4e,table:m4e,tableCell:g4e,tableRow:h4e,text:x4e,thematicBreak:S4e,toml:R9,yaml:R9,definition:R9,footnoteDefinition:R9};function R9(){}var z9={}.hasOwnProperty,w4e={};function T4e(e,t){let n=t||w4e,r=new Map,i=new Map,a={all:s,applyData:D4e,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...C4e,...n.handlers},one:o,options:n,patch:E4e,wrap:k4e};return K2e(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(z9.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=F9(n);return r.children=a.all(e),r}return F9(e)}return(a.options.unknownHandler||O4e)(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=A4e(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=A4e(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function E4e(e,t){e.position&&(t.position=x$e(e))}function D4e(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,F9(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function O4e(e,t){let n=t.data||{},r=`value`in t&&!(z9.call(n,`hProperties`)||z9.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 k4e(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 A4e(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function j4e(e,t){let n=T4e(e,t),r=n.one(e,void 0),i=F2e(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 M4e(e,t){return e&&`run`in e?async function(n,r){let i=j4e(n,{file:r,...t});await e.run(i,r)}:function(n,r){return j4e(n,{file:r,...e||t})}}function N4e(e){if(e)throw e}var P4e=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 B9(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 F4e(){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?I4e(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 I4e(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 V9={basename:L4e,dirname:R4e,extname:z4e,join:B4e,sep:`/`};function L4e(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);H9(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 R4e(e){if(H9(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 z4e(e){H9(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 B4e(...e){let t=-1,n;for(;++t<e.length;)H9(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:V4e(n)}function V4e(e){H9(e);let t=e.codePointAt(0)===47,n=H4e(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function H4e(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 H9(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var U4e={cwd:W4e};function W4e(){return`/`}function U9(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function G4e(e){if(typeof e==`string`)e=new URL(e);else if(!U9(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 K4e(e)}function K4e(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 W9=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],q4e=class{constructor(e){let t;t=e?U9(e)?{path:e}:typeof e==`string`||Y4e(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:U4e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<W9.length;){let e=W9[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)W9.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?V9.basename(this.path):void 0}set basename(e){K9(e,`basename`),G9(e,`basename`),this.path=V9.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?V9.dirname(this.path):void 0}set dirname(e){J4e(this.basename,`dirname`),this.path=V9.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?V9.extname(this.path):void 0}set extname(e){if(G9(e,`extname`),J4e(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=V9.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){U9(e)&&(e=G4e(e)),K9(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?V9.basename(this.path,this.extname):void 0}set stem(e){K9(e,`stem`),G9(e,`stem`),this.path=V9.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 n9(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 G9(e,t){if(e&&e.includes(V9.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+V9.sep+"`")}function K9(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function J4e(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Y4e(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var X4e=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),q9=l(P4e(),1),Z4e={}.hasOwnProperty,Q4e=new class e extends X4e{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=F4e()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,q9.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(X9(`data`,this.frozen),this.namespace[e]=t,this):Z4e.call(this.namespace,e)&&this.namespace[e]||void 0:e?(X9(`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=Z9(e),n=this.parser||this.Parser;return J9(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),J9(`process`,this.parser||this.Parser),Y9(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Z9(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);n3e(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(),J9(`processSync`,this.parser||this.Parser),Y9(`processSync`,this.compiler||this.Compiler),this.process(e,r),e3e(`processSync`,`process`,t),n;function r(e,r){t=!0,N4e(e),n=r}}run(e,t,n){$4e(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=Z9(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),e3e(`runSync`,`run`,n),r;function i(e,t){N4e(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Z9(t),r=this.compiler||this.Compiler;return Y9(`stringify`,r),$4e(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(X9(`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,q9.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];B9(o)&&B9(r)&&(r=(0,q9.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function J9(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Y9(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function X9(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 $4e(e){if(!B9(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function e3e(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Z9(e){return t3e(e)?e:new q4e(e)}function t3e(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function n3e(e){return typeof e==`string`||r3e(e)}function r3e(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var i3e=[],a3e={allowDangerousHtml:!0},o3e=/^(https?|ircs?|mailto|xmpp)$/i,s3e=[{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 c3e(e){let t=l3e(e),n=u3e(e);return d3e(t.runSync(t.parse(n),n),e)}function l3e(e){let t=e.rehypePlugins||i3e,n=e.remarkPlugins||i3e,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...a3e}:a3e;return Q4e().use(w2e).use(n).use(M4e,r).use(t)}function u3e(e){let t=e.children||``,n=new q4e;return typeof t==`string`?n.value=t:``+t,n}function d3e(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||f3e;for(let e of s3e)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return K2e(e,l),k$e(e,{Fragment:Y.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Y.jsx,jsxs:Y.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 s9)if(Object.hasOwn(s9,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=s9[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 f3e(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||o3e.test(e.slice(0,t))?e:``}function p3e({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 hk.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||!P7(a))return;let n=window.setInterval(async()=>{try{let{data:t}=await hk.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`),P7(t)||r()}catch{}},4e3);return()=>window.clearInterval(n)},[t,e,a?.status,a?.question_text,a?.error_message]),(0,Y.jsx)(yx,{title:a?`${a.subject_name}${a.category===`olympiad`?` · 奥数`:``} · 详情`:`详情`,open:t,onCancel:n,width:`90%`,style:{maxWidth:960},footer:(0,Y.jsxs)(Py,{wrap:!0,children:[(0,Y.jsx)(xx,{title:`确定删除该题?`,onConfirm:async()=>{C(!0);try{await hk.remove(e),rx.success(`已删除`),i?.(),n()}catch{rx.error(`删除失败`)}finally{C(!1)}},children:(0,Y.jsx)(_p,{danger:!0,loading:S,children:`删除`})}),(0,Y.jsx)(_p,{onClick:async()=>{await hk.retryOcr(e),rx.info(`已重新识别并标注,请稍后刷新`),r(),n()},children:`重新识别标注`}),(0,Y.jsx)(_p,{loading:b,onClick:async()=>{x(!0);try{let{data:t}=await hk.regenerate(e);o(t),u(t.question_text||t.ocr_raw_text||``),f(t.solution_approach||``),m(t.solution_text||``),rx.success(`解题思路已重新生成`),r()}catch{rx.error(`生成失败,请检查 AI 模型配置`)}finally{x(!1)}},children:`重新生成思路`}),(0,Y.jsx)(_p,{type:`primary`,loading:v,onClick:async()=>{y(!0);try{await hk.update(e,{question_text:l,solution_approach:d,solution_text:p}),rx.success(`已保存`),r()}finally{y(!1)}},children:`保存编辑`})]}),children:(0,Y.jsx)(TS,{spinning:s,children:a&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Py,{wrap:!0,style:{marginBottom:8},children:[(0,Y.jsxs)(rE.Text,{type:`secondary`,children:[`状态:`,jk[a.status]]}),a.has_annotated_image&&!a.error_message&&(0,Y.jsx)(rE.Text,{type:`danger`,children:`红色框为自动标注的错误位置`})]}),a.error_message&&(0,Y.jsx)(Rc,{message:`处理失败`,description:a.error_message,type:`error`,showIcon:!0,style:{marginBottom:12}}),a.status===`pending`&&!a.error_message&&(0,Y.jsx)(Rc,{message:F7(a),type:`info`,showIcon:!0,style:{marginBottom:12}}),a.status===`ocr_done`&&!a.question_text&&!a.error_message&&(0,Y.jsx)(Rc,{message:F7(a),type:`info`,showIcon:!0,style:{marginBottom:12}}),(a.solution_approach||a.solution_text)&&(0,Y.jsx)(Rc,{message:`AI 识别与标注,请核对后再使用`,type:`warning`,showIcon:!0,style:{margin:`12px 0`}}),(0,Y.jsxs)(Dle,{gutter:16,style:{marginTop:12},children:[(0,Y.jsxs)(bg,{xs:24,md:10,children:[a.has_annotated_image&&(0,Y.jsx)(Ble,{block:!0,style:{marginBottom:8},value:g,onChange:e=>_(e),options:[{label:`标注图`,value:`annotated`},{label:`原图`,value:`original`}]}),(0,Y.jsx)(I7,{questionId:a.id,variant:g,alt:`原题`,style:{width:`100%`,borderRadius:8,border:`1px solid #f0f0f0`}}),a.ocr_raw_text&&(0,Y.jsxs)(`div`,{style:{marginTop:12},children:[(0,Y.jsx)(rE.Text,{strong:!0,children:`OCR 原文`}),(0,Y.jsx)(`pre`,{style:{background:`#fafafa`,padding:8,fontSize:12,maxHeight:150,overflow:`auto`,whiteSpace:`pre-wrap`},children:a.ocr_raw_text})]})]}),(0,Y.jsxs)(bg,{xs:24,md:14,children:[(0,Y.jsx)(rE.Text,{strong:!0,children:`识别题目(可编辑)`}),(0,Y.jsx)(ib.TextArea,{rows:5,value:l,onChange:e=>u(e.target.value),style:{marginTop:8,marginBottom:16}}),(0,Y.jsx)(rE.Text,{strong:!0,children:`解题思路`}),(0,Y.jsx)(ib.TextArea,{rows:4,value:d,onChange:e=>f(e.target.value),placeholder:`识别完成后自动生成,类似作业帮「解题思路」`,style:{marginTop:8,marginBottom:16}}),d&&(0,Y.jsxs)(`div`,{style:{background:`#e6f4ff`,padding:12,borderRadius:8,marginBottom:16,border:`1px solid #91caff`},children:[(0,Y.jsx)(rE.Text,{type:`secondary`,style:{fontSize:12},children:`思路预览`}),(0,Y.jsx)(c3e,{children:d})]}),(0,Y.jsx)(rE.Text,{strong:!0,children:`详细解答`}),(0,Y.jsx)(ib.TextArea,{rows:8,value:p,onChange:e=>m(e.target.value),style:{marginTop:8,marginBottom:12}}),p&&(0,Y.jsxs)(`div`,{style:{background:`#fafafa`,padding:12,borderRadius:8},children:[(0,Y.jsx)(rE.Text,{type:`secondary`,style:{fontSize:12},children:`解答预览`}),(0,Y.jsx)(c3e,{children:p})]})]})]})]})})})}function m3e(e){return e.error_message?{tone:`error`,text:e.error_message}:P7(e)?{tone:`pending`,text:F7(e)}:{tone:`normal`,text:e.question_text||e.ocr_raw_text||jk[e.status]}}function h3e({items:e,selectedId:t,onSelect:n,onRefresh:r,emptyText:i=`暂无记录`,pollWhenProcessing:a=!0}){let o=a&&e.some(P7);(0,h.useEffect)(()=>{if(!o)return;let e=window.setInterval(()=>r(),4e3);return()=>window.clearInterval(e)},[o,r]);let s=async e=>{try{await hk.remove(e),rx.success(`已删除`),t===e&&n(null),r()}catch{rx.error(`删除失败`)}};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`wq-grid`,children:e.map(e=>{let t=m3e(e);return(0,Y.jsxs)(`div`,{className:`wq-card`,children:[(0,Y.jsxs)(`div`,{className:`wq-card-click`,onClick:()=>n(e.id),children:[(0,Y.jsx)(I7,{questionId:e.id,variant:`annotated`,alt:`题目`,className:`wq-card-img`}),(0,Y.jsxs)(`div`,{className:`wq-card-body`,children:[(0,Y.jsxs)(Py,{size:4,wrap:!0,children:[(0,Y.jsx)(rE.Text,{strong:!0,children:e.subject_name}),e.category===`olympiad`&&(0,Y.jsx)(PT,{color:`gold`,children:`奥数`}),(0,Y.jsx)(PT,{color:e.error_message||e.status===`failed`?`error`:P7(e)?`processing`:`default`,children:e.error_message?`失败`:jk[e.status]})]}),(0,Y.jsx)(rE.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,Y.jsx)(`div`,{className:`wq-card-actions`,children:(0,Y.jsx)(xx,{title:`确定删除该题?`,onConfirm:()=>s(e.id),children:(0,Y.jsx)(_p,{type:`text`,danger:!0,size:`small`,icon:(0,Y.jsx)(bE,{}),onClick:e=>e.stopPropagation(),children:`删除`})})})]},e.id)})}),e.length===0&&(0,Y.jsx)(rE.Text,{type:`secondary`,children:i}),t&&(0,Y.jsx)(p3e,{questionId:t,open:!!t,onClose:()=>n(null),onUpdated:r,onDeleted:()=>{n(null),r()}})]})}function g3e({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=(0,h.useRef)(null);(0,h.useEffect)(()=>{a.length&&s(a[0].id)},[a]);let d=async t=>{if(!o){rx.warning(i?`未找到数学科目`:`请选择科目`);return}l(!0);try{await hk.upload(e,o,t,n),rx.success(`上传成功,正在识别并生成解法…`),r()}catch{rx.error(`上传失败`)}finally{l(!1)}},f=async e=>(await d(e),!1);return(0,Y.jsxs)(Py,{direction:`vertical`,size:`middle`,style:{width:`100%`,marginBottom:16},children:[i?(0,Y.jsx)(rE.Text,{children:`科目:数学(奥数区仅支持数学)`}):(0,Y.jsx)(gS,{style:{width:`100%`,maxWidth:200},placeholder:`选择科目`,value:o,onChange:s,options:a.map(e=>({value:e.id,label:e.name}))}),(0,Y.jsxs)(Py,{wrap:!0,className:`upload-actions`,children:[(0,Y.jsx)(FE,{beforeUpload:f,showUploadList:!1,accept:`image/*`,children:(0,Y.jsx)(_p,{icon:(0,Y.jsx)(pE,{}),loading:c,type:`primary`,size:`large`,children:`相册选图`})}),(0,Y.jsx)(_p,{icon:(0,Y.jsx)(bxe,{}),loading:c,size:`large`,onClick:()=>u.current?.click(),children:`拍照上传`}),(0,Y.jsx)(`input`,{ref:u,type:`file`,accept:`image/*`,capture:`environment`,style:{display:`none`},onChange:async e=>{let t=e.target.files?.[0];e.target.value=``,t&&await d(t)}}),!i&&(0,Y.jsx)(FE,{beforeUpload:f,showUploadList:!1,accept:`image/*`,children:(0,Y.jsx)(_p,{icon:(0,Y.jsx)(Oxe,{}),loading:c,size:`large`,children:`上传图片`})})]}),i&&(0,Y.jsx)(`span`,{style:{color:`#666`,fontSize:13},children:`奥数区仅数学,按学生学段(初中/高中)生成解题思路,严禁超纲`})]})}function _3e({subjectId:e,onSubjectChange:t,search:n,onSearchChange:r,onRefresh:i,subjects:a,hideSubjectFilter:o}){return(0,Y.jsxs)(Py,{wrap:!0,style:{marginBottom:16,width:`100%`},children:[!o&&(0,Y.jsx)(gS,{allowClear:!0,style:{width:`100%`,maxWidth:140},placeholder:`全部科目`,value:e,onChange:t,options:a.map(e=>({value:e.id,label:e.name}))}),(0,Y.jsx)(ib.Search,{placeholder:`搜索题目/解法`,value:n,onChange:e=>r(e.target.value),onSearch:()=>i(),style:{width:`100%`,maxWidth:260},allowClear:!0}),(0,Y.jsx)(_p,{icon:(0,Y.jsx)(Txe,{}),onClick:i,children:`刷新`})]})}var Q9={junior_high:`初中`,senior_high:`高中`},v3e={junior_high:[`初一`,`初二`,`初三`],senior_high:[`高一`,`高二`,`高三`]};function y3e(e){let t=[Q9[e.school_level],e.grade,e.class_name].filter(Boolean);return t.length?t.join(` · `):`未设置学段年级`}var b3e=[`scores`,`overview`,`trend`,`wrong`,`olympiad`];function x3e(){let{id:e}=X_e(),[t,n]=tye(),r=t.get(`tab`),i=b3e.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 mk.list(e);u(t)},[e]),F=(0,h.useCallback)(async()=>{if(!e||!p)return;let{data:t}=await mk.trend(e,p);f(t)},[e,p]),I=(0,h.useCallback)(async()=>{if(!e)return;let{data:t}=await hk.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 hk.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([pk.get(e),mxe.list()]);if(t)return;o(n.data),c(r.data),r.data.length&&m(r.data[0].id);let i=await mk.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{data:t}=await mk.exportCsv(e),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=`${a?.name||`student`}_scores.csv`,r.click(),URL.revokeObjectURL(n)}catch{rx.error(`导出失败`)}};if(A)return(0,Y.jsx)(`div`,{style:{textAlign:`center`,padding:80},children:(0,Y.jsx)(TS,{size:`large`})});if(!a)return(0,Y.jsx)(rE.Text,{children:`学生不存在`});let B=Q9[a.school_level];return(0,Y.jsxs)(`div`,{className:`page-container`,children:[(0,Y.jsxs)(Py,{className:`page-header`,wrap:!0,children:[(0,Y.jsx)(RD,{to:`/`,children:(0,Y.jsx)(_p,{icon:(0,Y.jsx)(vxe,{}),children:`返回`})}),(0,Y.jsx)(rE.Title,{level:4,style:{margin:0},children:a.name}),(0,Y.jsx)(PT,{color:a.school_level===`senior_high`?`purple`:`blue`,children:B}),(0,Y.jsx)(rE.Text,{type:`secondary`,children:y3e(a)}),(0,Y.jsx)(_p,{icon:(0,Y.jsx)(SE,{}),onClick:z,children:`导出 CSV`})]}),(0,Y.jsx)(sg,{className:`student-tabs`,activeKey:i,onChange:R,destroyInactiveTabPane:!1,items:[{key:`scores`,label:`成绩录入`,children:(0,Y.jsx)(Mxe,{studentId:e,subjects:s,exams:l,onRefresh:P})},{key:`overview`,label:`成绩总览`,children:(0,Y.jsx)(Nxe,{exams:l,subjectNames:N})},{key:`trend`,label:`分科曲线`,children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(gS,{style:{width:`100%`,maxWidth:160,marginBottom:16},value:p,onChange:m,options:s.map(e=>({value:e.id,label:e.name}))}),d&&(0,Y.jsx)(BQe,{points:d.points,subjectName:d.subject_name,threshold:d.threshold})]})},{key:`wrong`,label:`错题库`,children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(rE.Paragraph,{type:`secondary`,style:{marginBottom:12},children:[`上传后自动标注错误位置(红框),并生成解题思路,按`,B,`课内标准解题`]}),(0,Y.jsx)(g3e,{studentId:e,subjects:s,category:`regular`,onUploaded:I}),(0,Y.jsx)(_3e,{subjectId:b,onSubjectChange:x,search:S,onSearchChange:C,onRefresh:I,subjects:s}),(0,Y.jsx)(h3e,{items:g,selectedId:E,onSelect:D,onRefresh:I,emptyText:`暂无错题`})]})},{key:`olympiad`,label:`奥数区`,children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(rE.Paragraph,{type:`secondary`,style:{marginBottom:12},children:[B,`数学奥数,严格限制在`,B,`奥数培优范围内,禁止超纲`]}),(0,Y.jsx)(g3e,{studentId:e,subjects:s,category:`olympiad`,onUploaded:L}),(0,Y.jsx)(_3e,{search:w,onSearchChange:T,onRefresh:L,subjects:s,hideSubjectFilter:!0}),(0,Y.jsx)(h3e,{items:v,selectedId:O,onSelect:k,onRefresh:L,emptyText:`暂无奥数题`})]})}]})]})}function S3e(){let{user:e,logout:t}=_k(),[n,r]=(0,h.useState)([]),[i,a]=(0,h.useState)(!0),[o,s]=(0,h.useState)(!1),[c]=ky.useForm(),l=ky.useWatch(`school_level`,c),u=async()=>{a(!0);try{let{data:e}=await pk.list();r(e)}finally{a(!1)}};return(0,h.useEffect)(()=>{u()},[]),(0,Y.jsxs)(`div`,{className:`page-container`,children:[(0,Y.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:24,flexWrap:`wrap`,gap:12},children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(rE.Title,{level:3,style:{margin:0},children:`学生档案`}),(0,Y.jsxs)(rE.Text,{type:`secondary`,children:[`欢迎,`,e?.username]})]}),(0,Y.jsxs)(Py,{wrap:!0,children:[e?.is_superuser&&(0,Y.jsx)(RD,{to:`/settings`,children:(0,Y.jsx)(_p,{icon:(0,Y.jsx)(Tk,{}),children:`系统设置`})}),(0,Y.jsx)(_p,{type:`primary`,icon:(0,Y.jsx)(Nm,{}),onClick:()=>{c.setFieldsValue({school_level:`junior_high`,grade:void 0}),s(!0)},children:`添加学生`}),(0,Y.jsx)(_p,{icon:(0,Y.jsx)(Cxe,{}),onClick:t,children:`退出`})]})]}),(0,Y.jsx)(TS,{spinning:i,children:(0,Y.jsxs)(Dle,{gutter:[16,16],children:[n.map(e=>(0,Y.jsx)(bg,{xs:24,sm:12,md:8,children:(0,Y.jsx)(RD,{to:`/students/${e.id}`,style:{textDecoration:`none`},children:(0,Y.jsx)(lg,{hoverable:!0,children:(0,Y.jsxs)(Py,{align:`start`,children:[(0,Y.jsx)(Ok,{style:{fontSize:24,color:`#1677ff`}}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(Py,{size:4,children:[(0,Y.jsx)(rE.Text,{strong:!0,children:e.name}),(0,Y.jsx)(PT,{color:e.school_level===`senior_high`?`purple`:`blue`,children:Q9[e.school_level]})]}),(0,Y.jsx)(`br`,{}),(0,Y.jsx)(rE.Text,{type:`secondary`,style:{fontSize:12},children:y3e(e)})]})]})})})},e.id)),!i&&n.length===0&&(0,Y.jsx)(bg,{span:24,children:(0,Y.jsx)(lg,{children:(0,Y.jsx)(rE.Text,{type:`secondary`,children:`暂无学生,点击「添加学生」开始`})})})]})}),(0,Y.jsx)(yx,{title:`添加学生`,open:o,onCancel:()=>s(!1),onOk:async()=>{let e=await c.validateFields();await pk.create(e),rx.success(`学生已添加`),s(!1),c.resetFields(),u()},destroyOnHidden:!0,children:(0,Y.jsxs)(ky,{form:c,layout:`vertical`,initialValues:{school_level:`junior_high`},children:[(0,Y.jsx)(ky.Item,{name:`name`,label:`姓名`,rules:[{required:!0}],children:(0,Y.jsx)(ib,{})}),(0,Y.jsx)(ky.Item,{name:`school_level`,label:`学段`,rules:[{required:!0}],children:(0,Y.jsx)(gS,{options:Object.entries(Q9).map(([e,t])=>({value:e,label:t})),onChange:()=>c.setFieldValue(`grade`,void 0)})}),(0,Y.jsx)(ky.Item,{name:`grade`,label:`年级`,children:(0,Y.jsx)(gS,{allowClear:!0,placeholder:l===`senior_high`?`如:高一`:`如:初二`,options:(v3e[l||`junior_high`]||[]).map(e=>({value:e,label:e}))})}),(0,Y.jsx)(ky.Item,{name:`class_name`,label:`班级`,children:(0,Y.jsx)(ib,{placeholder:`如:3班`})})]})})]})}function $9({children:e}){let{user:t,loading:n}=_k();return n?null:t?(0,Y.jsx)(Y.Fragment,{children:e}):(0,Y.jsx)(wD,{to:`/login`,replace:!0})}function C3e(){return(0,Y.jsxs)(gve,{children:[(0,Y.jsx)(TD,{path:`/login`,element:(0,Y.jsx)(Axe,{})}),(0,Y.jsx)(TD,{path:`/`,element:(0,Y.jsx)($9,{children:(0,Y.jsx)(S3e,{})})}),(0,Y.jsx)(TD,{path:`/students/:id`,element:(0,Y.jsx)($9,{children:(0,Y.jsx)(x3e,{})})}),(0,Y.jsx)(TD,{path:`/settings`,element:(0,Y.jsx)($9,{children:(0,Y.jsx)(jxe,{})})}),(0,Y.jsx)(TD,{path:`*`,element:(0,Y.jsx)(wD,{to:`/`,replace:!0})})]})}(0,vn.createRoot)(document.getElementById(`root`)).render((0,Y.jsx)(h.StrictMode,{children:(0,Y.jsx)(Uu,{locale:fxe.default,children:(0,Y.jsx)(qve,{children:(0,Y.jsx)(gxe,{children:(0,Y.jsx)(C3e,{})})})})}));