f7a761da33
Co-authored-by: Cursor <cursoragent@cursor.com>
525 lines
2.5 MiB
Plaintext
525 lines
2.5 MiB
Plaintext
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 eee(){jt={}}function It(e,t,n){!t&&!jt[n]&&(e(!1,n),jt[n]=!0)}function Lt(e,t){It(Pt,e,t)}function Rt(e,t){It(Ft,e,t)}Lt.preMessage=Nt,Lt.resetWarned=eee,Lt.noteOnce=Rt;function zt(e,t,n=!1){let r=new Set;function i(e,t,a=1){let o=r.has(e);if(Lt(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);let s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n],s))return!1;return!0}if(e&&t&&typeof e==`object`&&typeof t==`object`){let n=Object.keys(e);return n.length===Object.keys(t).length?n.every(n=>i(e[n],t[n],s)):!1}return!1}return i(e,t)}var tee=l(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),Bt,Vt=()=>(Bt===void 0&&(Bt=(0,tee.default)()),Bt);function Ht(e,t){let n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}var Ut=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
||
charSet checked classID className colSpan cols content contentEditable contextMenu
|
||
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),Wt=`aria-`,Gt=`data-`;function Kt(e,t){return e.indexOf(t)===0}function qt(e,t=!1){let n;n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:{...t};let r={};return Object.keys(e).forEach(t=>{(n.aria&&(t===`role`||Kt(t,Wt))||n.data&&Kt(t,Gt)||n.attr&&Ut.includes(t))&&(r[t]=e[t])}),r}function Jt(e,t){return typeof Proxy<`u`&&e?new Proxy(e,{get(e,n){if(t[n])return t[n];let r=e[n];return typeof r==`function`?r.bind(e):r}}):e}var Yt=e=>+setTimeout(e,16),Xt=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(Yt=e=>window.requestAnimationFrame(e),Xt=e=>window.cancelAnimationFrame(e));var Zt=0,Qt=new Map;function $t(e){Qt.delete(e)}var en=(e,t=1)=>{Zt+=1;let n=Zt;function r(t){if(t===0)$t(n),e();else{let e=Yt(()=>{r(t-1)});Qt.set(n,e)}}return r(t),n};en.cancel=e=>{let t=Qt.get(e);return $t(e),Xt(t)};function tn(e,t={}){let n=[];return h.Children.forEach(e,e=>{e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(tn(e)):Me(e)&&e.props?n=n.concat(tn(e.props.children,t)):n.push(e))}),n}function nn(...e){let t={};for(let n of e)if(n)for(let e of Object.keys(n))n[e]!==void 0&&(t[e]=n[e]);return t}function rn(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(n==null)return;n=n[t[e]]}return n}function an(e,t,n,r){if(!t.length)return n;let[i,...a]=t,o;return o=!e&&typeof i==`number`?[]:Array.isArray(e)?[...e]:{...e},r&&n===void 0&&a.length===1?delete o[i][a[0]]:o[i]=an(o[i],a,n,r),o}function on(e,t,n,r=!1){return t.length&&r&&n===void 0&&!rn(e,t.slice(0,-1))?e:an(e,t,n,r)}function sn(e){return typeof e==`object`&&!!e&&Object.getPrototypeOf(e)===Object.prototype}function cn(e){return Array.isArray(e)?[]:{}}var ln=typeof Reflect>`u`?Object.keys:Reflect.ownKeys;function un(e,t={}){let{prepareArray:n}=t,r=n||(()=>[]),i=cn(e[0]);return e.forEach(e=>{function t(n,a){let o=new Set(a),s=rn(e,n),c=Array.isArray(s);if(c||sn(s)){if(!o.has(s)){o.add(s);let e=rn(i,n);c?i=on(i,n,r(e,s)):(!e||typeof e!=`object`)&&(i=on(i,n,cn(s))),ln(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],o)})}}else i=on(i,n,s)}t([])}),i}function dn(...e){return un(e)}var fn=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),nee=o(((e,t)=>{t.exports=fn()})),pn=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.7`})),ree=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=pn()})),mn=o((e=>{var t=nee(),n=d(),r=ree();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)?Nd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nd(t),e=Pd(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=Pd(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),Rf._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:ep(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=tf(e);e!==null;){if(n=e[Xe])return n;e=tf(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 eee=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function It(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||eee.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Lt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&It(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&It(e,o,t[o])}function Rt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var zt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),tee=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Bt(e){return tee.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Vt(){}var Ht=null;function Ut(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wt=null,Gt=null;function Kt(e){var t=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 qt=!1;function Jt(e,t,n){if(qt)return e(t,n);qt=!0;try{return e(t)}finally{if(qt=!1,(Wt!==null||Gt!==null)&&(du(),Wt&&(t=Wt,e=Gt,Gt=Wt=null,Kt(t),e)))for(t=0;t<e.length;t++)Kt(e[t])}}function Yt(e,t){var n=e.stateNode;if(n===null)return null;var r=n[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 Xt=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Zt=!1;if(Xt)try{var Qt={};Object.defineProperty(Qt,"passive",{get:function(){Zt=!0}}),window.addEventListener(`test`,Qt,Qt),window.removeEventListener(`test`,Qt,Qt)}catch{Zt=!1}var $t=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t=en,n=t.length,r,i=`value`in $t?$t.value:$t.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return tn=i.slice(e,1<r?1-r:void 0)}function rn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function an(){return!0}function on(){return!1}function sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?an:on,this.isPropagationStopped=on,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=sn(cn),un=p({},cn,{view:0,detail:0}),dn=sn(un),fn,pn,mn,hn=p({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==mn&&(mn&&e.type===`mousemove`?(fn=e.screenX-mn.screenX,pn=e.screenY-mn.screenY):pn=fn=0,mn=e),fn)},movementY:function(e){return`movementY`in e?e.movementY:pn}}),gn=sn(hn),_n=sn(p({},hn,{dataTransfer:0})),vn=sn(p({},un,{relatedTarget:0})),yn=sn(p({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=sn(p({},cn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),xn=sn(p({},cn,{data:0})),Sn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Cn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},wn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wn[e])?!!t[e]:!1}function En(){return Tn}var Dn=sn(p({},un,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=rn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Cn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return e.type===`keypress`?rn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?rn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),On=sn(p({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=sn(p({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),iee=sn(p({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=sn(p({},hn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),aee=sn(p({},cn,{newState:0,oldState:0})),jn=[9,13,27,32],Mn=Xt&&`CompositionEvent`in window,Nn=null;Xt&&`documentMode`in document&&(Nn=document.documentMode);var Pn=Xt&&`TextEvent`in window&&!Nn,Fn=Xt&&(!Mn||Nn&&8<Nn&&11>=Nn),In=` `,Ln=!1;function Rn(e,t){switch(e){case`keyup`:return jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Bn=!1;function oee(e,t){switch(e){case`compositionend`:return zn(t);case`keypress`:return t.which===32?(Ln=!0,In):null;case`textInput`:return e=t.data,e===In&&Ln?null:e;default:return null}}function Vn(e,t){if(Bn)return e===`compositionend`||!Mn&&Rn(e,t)?(e=nn(),tn=en=$t=null,Bn=!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 Fn&&t.locale!==`ko`?null:t.data;default:return null}}var see={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!see[e.type]:t===`textarea`}function Un(e,t,n,r){Wt?Gt?Gt.push(r):Gt=[r]:Wt=r,t=_d(t,`onChange`),0<t.length&&(n=new ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Gn=null;function Kn(e){ld(e,0)}function qn(e){if(Tt(st(e)))return e}function Jn(e,t){if(e===`change`)return t}var Yn=!1;if(Xt){var Xn;if(Xt){var Zn=`oninput`in document;if(!Zn){var Qn=document.createElement(`div`);Qn.setAttribute(`oninput`,`return;`),Zn=typeof Qn.oninput==`function`}Xn=Zn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function $n(){Wn&&(Wn.detachEvent(`onpropertychange`,er),Gn=Wn=null)}function er(e){if(e.propertyName===`value`&&qn(Gn)){var t=[];Un(t,Gn,e,Ut(e)),Jt(Kn,t)}}function tr(e,t,n){e===`focusin`?($n(),Wn=t,Gn=n,Wn.attachEvent(`onpropertychange`,er)):e===`focusout`&&$n()}function nr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return qn(Gn)}function rr(e,t){if(e===`click`)return qn(t)}function ir(e,t){if(e===`input`||e===`change`)return qn(t)}function ar(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var or=typeof Object.is==`function`?Object.is:ar;function sr(e,t){if(or(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)||!or(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n=cr(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=cr(n)}}function ur(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ur(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dr(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 fr(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 pr=Xt&&`documentMode`in document&&11>=document.documentMode,mr=null,hr=null,gr=null,_r=!1;function vr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_r||mr==null||mr!==Et(r)||(r=mr,`selectionStart`in r&&fr(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}),gr&&sr(gr,r)||(gr=r,r=_d(hr,`onSelect`),0<r.length&&(t=new ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var br={animationend:yr(`Animation`,`AnimationEnd`),animationiteration:yr(`Animation`,`AnimationIteration`),animationstart:yr(`Animation`,`AnimationStart`),transitionrun:yr(`Transition`,`TransitionRun`),transitionstart:yr(`Transition`,`TransitionStart`),transitioncancel:yr(`Transition`,`TransitionCancel`),transitionend:yr(`Transition`,`TransitionEnd`)},xr={},Sr={};Xt&&(Sr=document.createElement(`div`).style,`AnimationEvent`in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),`TransitionEvent`in window||delete br.transitionend.transition);function Cr(e){if(xr[e])return xr[e];if(!br[e])return e;var t=br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Sr)return xr[e]=t[n];return e}var wr=Cr(`animationend`),Tr=Cr(`animationiteration`),Er=Cr(`animationstart`),Dr=Cr(`transitionrun`),Or=Cr(`transitionstart`),kr=Cr(`transitioncancel`),Ar=Cr(`transitionend`),jr=new Map,Mr=`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(` `);Mr.push(`scrollEnd`);function Nr(e,t){jr.set(e,t),ft(t,[e])}var Pr=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)},Fr=[],Ir=0,Lr=0;function Rr(){for(var e=Ir,t=Lr=Ir=0;t<e;){var n=Fr[t];Fr[t++]=null;var r=Fr[t];Fr[t++]=null;var i=Fr[t];Fr[t++]=null;var a=Fr[t];if(Fr[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&&Hr(n,i,a)}}function zr(e,t,n,r){Fr[Ir++]=e,Fr[Ir++]=t,Fr[Ir++]=n,Fr[Ir++]=r,Lr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Br(e,t,n,r){return zr(e,t,n,r),Ur(e)}function Vr(e,t){return zr(e,null,null,t),Ur(e)}function Hr(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 Ur(e){if(50<nu)throw nu=0,ru=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Wr={};function Gr(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 Kr(e,t,n,r){return new Gr(e,t,n,r)}function qr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jr(e,t){var n=e.alternate;return n===null?(n=Kr(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 Yr(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 Xr(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)qr(e)&&(s=1);else if(typeof e==`string`)s=kf(e,n,H.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=Kr(31,n,t,a),e.elementType=D,e.lanes=o,e;case _:return Zr(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=Kr(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=Kr(13,n,t,a),e.elementType=C,e.lanes=o,e;case w:return e=Kr(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=Kr(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Zr(e,t,n,r){return e=Kr(7,e,r,t),e.lanes=n,e}function Qr(e,t,n){return e=Kr(6,e,null,t),e.lanes=n,e}function $r(e){var t=Kr(18,null,null,0);return t.stateNode=e,t}function ei(e,t,n){return t=Kr(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ti=new WeakMap;function ni(e,t){if(typeof e==`object`&&e){var n=ti.get(e);return n===void 0?(t={value:e,source:t,stack:le(t)},ti.set(e,t),t):n}return{value:e,source:t,stack:le(t)}}var ri=[],ii=0,ai=null,oi=0,si=[],ci=0,q=null,li=1,ui=``;function di(e,t){ri[ii++]=oi,ri[ii++]=ai,ai=e,oi=t}function fi(e,t,n){si[ci++]=li,si[ci++]=ui,si[ci++]=q,q=e;var r=li;e=ui;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,li=1<<32-De(t)+i|n<<i|r,ui=a+e}else li=1<<a|n<<i|r,ui=e}function pi(e){e.return!==null&&(di(e,1),fi(e,1,0))}function mi(e){for(;e===ai;)ai=ri[--ii],ri[ii]=null,oi=ri[--ii],ri[ii]=null;for(;e===q;)q=si[--ci],si[ci]=null,ui=si[--ci],si[ci]=null,li=si[--ci],si[ci]=null}function hi(e,t){si[ci++]=li,si[ci++]=ui,si[ci++]=q,li=t.id,ui=t.overflow,q=e}var gi=null,_i=null,vi=!1,yi=null,bi=!1,xi=Error(i(519));function Si(e){throw Oi(ni(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),xi}function Ci(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Xe]=e,t[Ze]=r,n){case`dialog`:ud(`cancel`,t),ud(`close`,t);break;case`iframe`:case`object`:case`embed`:ud(`load`,t);break;case`video`:case`audio`:for(n=0;n<cd.length;n++)ud(cd[n],t);break;case`source`:ud(`error`,t);break;case`img`:case`image`:case`link`:ud(`error`,t),ud(`load`,t);break;case`details`:ud(`toggle`,t);break;case`input`:ud(`invalid`,t),At(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:ud(`invalid`,t);break;case`textarea`:ud(`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||Cd(t.textContent,n)?(r.popover!=null&&(ud(`beforetoggle`,t),ud(`toggle`,t)),r.onScroll!=null&&ud(`scroll`,t),r.onScrollEnd!=null&&ud(`scrollend`,t),r.onClick!=null&&(t.onclick=Vt),t=!0):t=!1,t||Si(e,!0)}function wi(e){for(gi=e.return;gi;)switch(gi.tag){case 5:case 31:case 13:bi=!1;return;case 27:case 3:bi=!0;return;default:gi=gi.return}}function Ti(e){if(e!==gi)return!1;if(!vi)return wi(e),vi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Fd(e.type,e.memoizedProps)),n=!n),n&&_i&&Si(e),wi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));_i=ef(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));_i=ef(e)}else t===27?(t=_i,Hd(e.type)?(e=$d,$d=null,_i=e):_i=t):_i=gi?Qd(e.stateNode.nextSibling):null;return!0}function Ei(){_i=gi=null,vi=!1}function Di(){var e=yi;return e!==null&&(Hl===null?Hl=e:Hl.push.apply(Hl,e),yi=null),e}function Oi(e){yi===null?yi=[e]:yi.push(e)}var ki=z(null),Ai=null,ji=null;function Mi(e,t,n){V(ki,t._currentValue),t._currentValue=n}function Ni(e){e._currentValue=ki.current,B(ki)}function Pi(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 Fi(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),Pi(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),Pi(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 Ii(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;or(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===G.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Rf]:e.push(Rf))}a=a.return}e!==null&&Fi(t,e,n,r),t.flags|=262144}function Li(e){for(e=e.firstContext;e!==null;){if(!or(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ri(e){Ai=e,ji=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function zi(e){return Vi(Ai,e)}function Bi(e,t){return Ai===null&&Ri(e),Vi(e,t)}function Vi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ji===null){if(e===null)throw Error(i(308));ji=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ji=ji.next=t;return n}var Hi=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()})}},Ui=t.unstable_scheduleCallback,Wi=t.unstable_NormalPriority,Gi={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ki(){return{controller:new Hi,data:new Map,refCount:0}}function qi(e){e.refCount--,e.refCount===0&&Ui(Wi,function(){e.controller.abort()})}var Ji=null,Yi=0,Xi=0,Zi=null;function Qi(e,t){if(Ji===null){var n=Ji=[];Yi=0,Xi=rd(),Zi={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Yi++,t.then($i,$i),t}function $i(){if(--Yi===0&&Ji!==null){Zi!==null&&(Zi.status=`fulfilled`);var e=Ji;Ji=null,Xi=0,Zi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ea(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 ta=P.S;P.S=function(e,t){Gl=he(),typeof t==`object`&&t&&typeof t.then==`function`&&Qi(e,t),ta!==null&&ta(e,t)};var na=z(null);function ra(){var e=na.current;return e===null?El.pooledCache:e}function ia(e,t){t===null?V(na,na.current):V(na,t.pool)}function aa(){var e=ra();return e===null?null:{parent:Gi._currentValue,pool:e}}var oa=Error(i(460)),sa=Error(i(474)),ca=Error(i(542)),la={then:function(){}};function ua(e){return e=e.status,e===`fulfilled`||e===`rejected`}function da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Vt,Vt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ha(e),e;default:if(typeof t.status==`string`)t.then(Vt,Vt);else{if(e=El,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,ha(e),e}throw pa=t,oa}}function fa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(pa=e,oa):e}}var pa=null;function ma(){if(pa===null)throw Error(i(459));var e=pa;return pa=null,e}function ha(e){if(e===oa||e===ca)throw Error(i(483))}var ga=null,_a=0;function va(e){var t=_a;return _a+=1,ga===null&&(ga=[]),da(ga,e,t)}function ya(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ba(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 xa(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=Jr(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=Qr(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&&fa(i)===t.type)?(t=a(t,n.props),ya(t,n),t.return=e,t):(t=Xr(n.type,n.key,n.props,null,e.mode,r),ya(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=ei(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=Zr(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=Qr(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=Xr(t.type,t.key,t.props,null,e.mode,n),ya(n,t),n.return=e,n;case g:return t=ei(t,e.mode,n),t.return=e,t;case E:return t=fa(t),f(e,t,n)}if(N(t)||A(t))return t=Zr(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,va(t),n);if(t.$$typeof===x)return f(e,Bi(e,t),n);ba(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=fa(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,va(n),r);if(n.$$typeof===x)return p(e,t,Bi(e,n),r);ba(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=fa(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,va(r),i);if(r.$$typeof===x)return m(e,t,n,Bi(t,r),i);ba(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),vi&&di(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 vi&&di(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)}),vi&&di(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),vi&&di(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 vi&&di(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)}),vi&&di(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&&fa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ya(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=Zr(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=Xr(o.type,o.key,o.props,null,e.mode,c),ya(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=ei(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=fa(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,va(o),c);if(o.$$typeof===x)return b(e,r,Bi(e,o),c);ba(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=Qr(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{_a=0;var i=b(e,t,n,r);return ga=null,i}catch(t){if(t===oa||t===ca)throw t;var a=Kr(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Sa=xa(!0),Ca=xa(!1),wa=!1;function Ta(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ea(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 Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Oa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Tl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ur(e),Hr(e,null,n),t}return zr(e,r,t,n),Ur(e)}function ka(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 Aa(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 ja=!1;function Ma(){if(ja){var e=Zi;if(e!==null)throw e}}function Na(e,t,n,r){ja=!1;var i=e.updateQueue;wa=!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?(Ol&f)===f:(r&f)===f){f!==0&&f===Xi&&(ja=!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:wa=!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),Il|=o,e.lanes=o,e.memoizedState=d}}function Pa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Fa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Pa(n[e],t)}var Ia=z(null),La=z(0);function Ra(e,t){e=Pl,V(La,e),V(Ia,t),Pl=e|t.baseLanes}function za(){V(La,Pl),V(Ia,Ia.current)}function Ba(){Pl=La.current,B(Ia),B(La)}var Va=z(null),Ha=null;function Ua(e){var t=e.alternate;V(Ja,Ja.current&1),V(Va,e),Ha===null&&(t===null||Ia.current!==null||t.memoizedState!==null)&&(Ha=e)}function Wa(e){V(Ja,Ja.current),V(Va,e),Ha===null&&(Ha=e)}function Ga(e){e.tag===22?(V(Ja,Ja.current),V(Va,e),Ha===null&&(Ha=e)):Ka(e)}function Ka(){V(Ja,Ja.current),V(Va,Va.current)}function qa(e){B(Va),Ha===e&&(Ha=null),B(Ja)}var Ja=z(0);function Ya(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yd(n)||Xd(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 Xa=0,Za=null,Qa=null,$a=null,eo=!1,to=!1,no=!1,ro=0,io=0,ao=null,oo=0;function so(){throw Error(i(321))}function co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function lo(e,t,n,r,i,a){return Xa=a,Za=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?ws:Ts,no=!1,a=n(r,i),no=!1,to&&(a=fo(t,n,r,i)),uo(e),a}function uo(e){P.H=Cs;var t=Qa!==null&&Qa.next!==null;if(Xa=0,$a=Qa=Za=null,eo=!1,io=0,ao=null,t)throw Error(i(300));e===null||Hs||(e=e.dependencies,e!==null&&Li(e)&&(Hs=!0))}function fo(e,t,n,r){Za=e;var a=0;do{if(to&&(ao=null),io=0,to=!1,25<=a)throw Error(i(301));if(a+=1,$a=Qa=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=Es,o=t(n,r)}while(to);return o}function cee(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?yo(t):t,e=e.useState()[0],(Qa===null?null:Qa.memoizedState)!==e&&(Za.flags|=1024),t}function po(){var e=ro!==0;return ro=0,e}function mo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ho(e){if(eo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}eo=!1}Xa=0,$a=Qa=Za=null,to=!1,io=ro=0,ao=null}function go(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $a===null?Za.memoizedState=$a=e:$a=$a.next=e,$a}function _o(){if(Qa===null){var e=Za.alternate;e=e===null?null:e.memoizedState}else e=Qa.next;var t=$a===null?Za.memoizedState:$a.next;if(t!==null)$a=t,Qa=e;else{if(e===null)throw Za.alternate===null?Error(i(467)):Error(i(310));Qa=e,e={memoizedState:Qa.memoizedState,baseState:Qa.baseState,baseQueue:Qa.baseQueue,queue:Qa.queue,next:null},$a===null?Za.memoizedState=$a=e:$a=$a.next=e}return $a}function vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yo(e){var t=io;return io+=1,ao===null&&(ao=[]),e=da(ao,e,t),t=Za,($a===null?t.memoizedState:$a.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?ws:Ts),e}function bo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return yo(e);if(e.$$typeof===x)return zi(e)}throw Error(i(438,String(e)))}function xo(e){var t=null,n=Za.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Za.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=vo(),Za.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function So(e,t){return typeof t==`function`?t(e):t}function Co(e){return wo(_o(),Qa,e)}function wo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Xa&f)===f:(Ol&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===Xi&&(d=!0);else if((Xa&p)===p){u=u.next,p===Xi&&(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,Za.lanes|=p,Il|=p;f=u.action,no&&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,Za.lanes|=f,Il|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!or(o,e.memoizedState)&&(Hs=!0,d&&(n=Zi,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function To(e){var t=_o(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);or(o,t.memoizedState)||(Hs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Eo(e,t,n){var r=Za,a=_o(),o=vi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!or((Qa||a).memoizedState,n);if(s&&(a.memoizedState=n,Hs=!0),a=a.queue,Xo(ko.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||$a!==null&&$a.memoizedState.tag&1){if(r.flags|=2048,Go(9,{destroy:void 0},Oo.bind(null,r,a,n,t),null),El===null)throw Error(i(349));o||Xa&127||Do(r,t,n)}return n}function Do(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Za.updateQueue,t===null?(t=vo(),Za.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Oo(e,t,n,r){t.value=n,t.getSnapshot=r,Ao(t)&&jo(e)}function ko(e,t,n){return n(function(){Ao(t)&&jo(e)})}function Ao(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch{return!0}}function jo(e){var t=Vr(e,2);t!==null&&ou(t,e,2)}function Mo(e){var t=go();if(typeof e==`function`){var n=e;if(e=n(),no){Ee(!0);try{n()}finally{Ee(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:e},t}function No(e,t,n,r){return e.baseState=n,wo(e,Qa,typeof r==`function`?r:So)}function lee(e,t,n,r,a){if(bs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Po(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Po(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Fo(e,t,s)}catch(n){Lo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Fo(e,t,a)}catch(n){Lo(e,t,n)}}function Fo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Io(e,t,n)},function(n){return Lo(e,t,n)}):Io(e,t,n)}function Io(e,t,n){t.status=`fulfilled`,t.value=n,Ro(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Po(e,n)))}function Lo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ro(t),t=t.next;while(t!==r)}e.action=null}function Ro(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zo(e,t){return t}function Bo(e,t){if(vi){var n=El.formState;if(n!==null){a:{var r=Za;if(vi){if(_i){b:{for(var i=_i,a=bi;i.nodeType!==8;){if(!a){i=null;break b}if(i=Qd(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){_i=Qd(i.nextSibling),r=i.data===`F!`;break a}}Si(r)}r=!1}r&&(t=n[0])}}return n=go(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:t},n.queue=r,n=_s.bind(null,Za,r),r.dispatch=n,r=Mo(!1),a=ys.bind(null,Za,!1,r.queue),r=go(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=lee.bind(null,Za,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Vo(e){return Ho(_o(),Qa,e)}function Ho(e,t,n){if(t=wo(e,t,zo)[0],e=Co(So)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=yo(t)}catch(e){throw e===oa?ca:e}else r=t;t=_o();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Za.flags|=2048,Go(9,{destroy:void 0},Uo.bind(null,i,n),null)),[r,a,e]}function Uo(e,t){e.action=t}function Wo(e){var t=_o(),n=Qa;if(n!==null)return Ho(t,n,e);_o(),t=t.memoizedState,n=_o();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Go(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Za.updateQueue,t===null&&(t=vo(),Za.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ko(){return _o().memoizedState}function qo(e,t,n,r){var i=go();Za.flags|=e,i.memoizedState=Go(1|t,{destroy:void 0},n,r===void 0?null:r)}function Jo(e,t,n,r){var i=_o();r=r===void 0?null:r;var a=i.memoizedState.inst;Qa!==null&&r!==null&&co(r,Qa.memoizedState.deps)?i.memoizedState=Go(t,a,n,r):(Za.flags|=e,i.memoizedState=Go(1|t,a,n,r))}function Yo(e,t){qo(8390656,8,e,t)}function Xo(e,t){Jo(2048,8,e,t)}function Zo(e){Za.flags|=4;var t=Za.updateQueue;if(t===null)t=vo(),Za.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Qo(e){var t=_o().memoizedState;return Zo({ref:t,nextImpl:e}),function(){if(Tl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function $o(e,t){return Jo(4,2,e,t)}function es(e,t){return Jo(4,4,e,t)}function ts(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ns(e,t,n){n=n==null?null:n.concat([e]),Jo(4,4,ts.bind(null,t,e),n)}function rs(){}function is(e,t){var n=_o();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function as(e,t){var n=_o();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&co(t,r[1]))return r[0];if(r=e(),no){Ee(!0);try{e()}finally{Ee(!1)}}return n.memoizedState=[r,t],r}function os(e,t,n){return n===void 0||Xa&1073741824&&!(Ol&261930)?e.memoizedState=t:(e.memoizedState=n,e=au(),Za.lanes|=e,Il|=e,n)}function ss(e,t,n,r){return or(n,t)?n:Ia.current===null?!(Xa&42)||Xa&1073741824&&!(Ol&261930)?(Hs=!0,e.memoizedState=n):(e=au(),Za.lanes|=e,Il|=e,t):(e=os(e,n,r),or(e,t)||(Hs=!0),e)}function cs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,ys(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?vs(e,t,ea(c,r),iu(e)):vs(e,t,r,iu(e))}catch(n){vs(e,t,{then:function(){},status:`rejected`,reason:n},iu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function ls(){}function us(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ds(e).queue;cs(e,a,t,I,n===null?ls:function(){return fs(e),n(r)})}function ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function fs(e){var t=ds(e);t.next===null&&(t=e.alternate.memoizedState),vs(e,t.next.queue,{},iu())}function ps(){return zi(Rf)}function ms(){return _o().memoizedState}function hs(){return _o().memoizedState}function uee(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=iu();e=Da(n);var r=Oa(t,e,n);r!==null&&(ou(r,t,n),ka(r,t,n)),t={cache:Ki()},e.payload=t;return}t=t.return}}function gs(e,t,n){var r=iu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},bs(e)?xs(t,n):(n=Br(e,t,n,r),n!==null&&(ou(n,e,r),Ss(n,t,r)))}function _s(e,t,n){vs(e,t,n,iu())}function vs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(bs(e))xs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,or(s,o))return zr(e,t,i,0),El===null&&Rr(),!1}catch{}if(n=Br(e,t,i,r),n!==null)return ou(n,e,r),Ss(n,t,r),!0}return!1}function ys(e,t,n,r){if(r={lane:2,revertLane:rd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},bs(e)){if(t)throw Error(i(479))}else t=Br(e,n,r,2),t!==null&&ou(t,e,2)}function bs(e){var t=e.alternate;return e===Za||t!==null&&t===Za}function xs(e,t){to=eo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ss(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ue(e,n)}}var Cs={readContext:zi,use:bo,useCallback:so,useContext:so,useEffect:so,useImperativeHandle:so,useLayoutEffect:so,useInsertionEffect:so,useMemo:so,useReducer:so,useRef:so,useState:so,useDebugValue:so,useDeferredValue:so,useTransition:so,useSyncExternalStore:so,useId:so,useHostTransitionStatus:so,useFormState:so,useActionState:so,useOptimistic:so,useMemoCache:so,useCacheRefresh:so};Cs.useEffectEvent=so;var ws={readContext:zi,use:bo,useCallback:function(e,t){return go().memoizedState=[e,t===void 0?null:t],e},useContext:zi,useEffect:Yo,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),qo(4194308,4,ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qo(4194308,4,e,t)},useInsertionEffect:function(e,t){qo(4,2,e,t)},useMemo:function(e,t){var n=go();t=t===void 0?null:t;var r=e();if(no){Ee(!0);try{e()}finally{Ee(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=go();if(n!==void 0){var i=n(t);if(no){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=gs.bind(null,Za,e),[r.memoizedState,e]},useRef:function(e){var t=go();return e={current:e},t.memoizedState=e},useState:function(e){e=Mo(e);var t=e.queue,n=_s.bind(null,Za,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:rs,useDeferredValue:function(e,t){return os(go(),e,t)},useTransition:function(){var e=Mo(!1);return e=cs.bind(null,Za,e.queue,!0,!1),go().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Za,a=go();if(vi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),El===null)throw Error(i(349));Ol&127||Do(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Yo(ko.bind(null,r,o,e),[e]),r.flags|=2048,Go(9,{destroy:void 0},Oo.bind(null,r,o,n,t),null),n},useId:function(){var e=go(),t=El.identifierPrefix;if(vi){var n=ui,r=li;n=(r&~(1<<32-De(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ro++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=oo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ps,useFormState:Bo,useActionState:Bo,useOptimistic:function(e){var t=go();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ys.bind(null,Za,!0,n),n.dispatch=t,[e,t]},useMemoCache:xo,useCacheRefresh:function(){return go().memoizedState=uee.bind(null,Za)},useEffectEvent:function(e){var t=go(),n={impl:e};return t.memoizedState=n,function(){if(Tl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ts={readContext:zi,use:bo,useCallback:is,useContext:zi,useEffect:Xo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:Co,useRef:Ko,useState:function(){return Co(So)},useDebugValue:rs,useDeferredValue:function(e,t){return ss(_o(),Qa.memoizedState,e,t)},useTransition:function(){var e=Co(So)[0],t=_o().memoizedState;return[typeof e==`boolean`?e:yo(e),t]},useSyncExternalStore:Eo,useId:ms,useHostTransitionStatus:ps,useFormState:Vo,useActionState:Vo,useOptimistic:function(e,t){return No(_o(),Qa,e,t)},useMemoCache:xo,useCacheRefresh:hs};Ts.useEffectEvent=Qo;var Es={readContext:zi,use:bo,useCallback:is,useContext:zi,useEffect:Xo,useImperativeHandle:ns,useInsertionEffect:$o,useLayoutEffect:es,useMemo:as,useReducer:To,useRef:Ko,useState:function(){return To(So)},useDebugValue:rs,useDeferredValue:function(e,t){var n=_o();return Qa===null?os(n,e,t):ss(n,Qa.memoizedState,e,t)},useTransition:function(){var e=To(So)[0],t=_o().memoizedState;return[typeof e==`boolean`?e:yo(e),t]},useSyncExternalStore:Eo,useId:ms,useHostTransitionStatus:ps,useFormState:Wo,useActionState:Wo,useOptimistic:function(e,t){var n=_o();return Qa===null?(n.baseState=e,[e,n.queue.dispatch]):No(n,Qa,e,t)},useMemoCache:xo,useCacheRefresh:hs};Es.useEffectEvent=Qo;function Ds(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Os={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=iu(),i=Da(r);i.payload=t,n!=null&&(i.callback=n),t=Oa(e,i,r),t!==null&&(ou(t,e,r),ka(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=iu(),i=Da(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Oa(e,i,r),t!==null&&(ou(t,e,r),ka(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=iu(),r=Da(n);r.tag=2,t!=null&&(r.callback=t),t=Oa(e,r,n),t!==null&&(ou(t,e,n),ka(t,e,n))}};function ks(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!sr(n,r)||!sr(i,a):!0}function As(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Os.enqueueReplaceState(t,t.state,null)}function js(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ms(e){Pr(e)}function Ns(e){console.error(e)}function Ps(e){Pr(e)}function Fs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Is(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ls(e,t,n){return n=Da(n),n.tag=3,n.payload={element:null},n.callback=function(){Fs(e,t)},n}function Rs(e){return e=Da(e),e.tag=3,e}function zs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Is(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Is(t,n,r),typeof i!=`function`&&(Jl===null?Jl=new Set([this]):Jl.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Bs(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ii(t,n,a,!0),n=Va.current,n!==null){switch(n.tag){case 31:case 13:return Ha===null?vu():n.alternate===null&&Fl===0&&(Fl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===la?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Lu(e,r,a)),!1;case 22:return n.flags|=65536,r===la?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)),Lu(e,r,a)),!1}throw Error(i(435,n.tag))}return Lu(e,r,a),vu(),!1}if(vi)return t=Va.current,t===null?(r!==xi&&(t=Error(i(423),{cause:r}),Oi(ni(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=ni(r,n),a=Ls(e.stateNode,r,a),Aa(e,a),Fl!==4&&(Fl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==xi&&(e=Error(i(422),{cause:r}),Oi(ni(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=ni(o,n),Vl===null?Vl=[o]:Vl.push(o),Fl!==4&&(Fl=2),t===null)return!0;r=ni(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ls(n.stateNode,r,e),Aa(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`&&(Jl===null||!Jl.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Rs(a),zs(a,e,n,r),Aa(n,a),!1}n=n.return}while(n!==null);return!1}var Vs=Error(i(461)),Hs=!1;function Us(e,t,n,r){t.child=e===null?Ca(t,null,n,r):Sa(t,e.child,n,r)}function Ws(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ri(t),r=lo(e,t,n,o,a,i),s=po(),e!==null&&!Hs?(mo(e,t,i),pc(e,t,i)):(vi&&s&&pi(t),t.flags|=1,Us(e,t,r,i),t.child)}function Gs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!qr(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ks(e,t,a,r,i)):(e=Xr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!mc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?sr:n,n(o,r)&&e.ref===t.ref)return pc(e,t,i)}return t.flags|=1,e=Jr(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ks(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref)if(Hs=!1,t.pendingProps=r=a,mc(e,i))e.flags&131072&&(Hs=!0);else return t.lanes=e.lanes,pc(e,t,i)}return $s(e,t,n,r,i)}function qs(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Ys(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ia(t,a===null?null:a.cachePool),a===null?za():Ra(t,a),Ga(t);else return r=t.lanes=536870912,Ys(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ia(t,null),za(),Ka(t)):(ia(t,a.cachePool),Ra(t,a),Ka(t),t.memoizedState=null);return Us(e,t,i,n),t.child}function Js(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ys(e,t,n,r,i){var a=ra();return a=a===null?null:{parent:Gi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ia(t,null),za(),Ga(t),e!==null&&Ii(e,t,r,!0),t.childLanes=i,null}function Xs(e,t){return t=cc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zs(e,t,n){return Sa(t,e.child,null,n),e=Xs(t,t.pendingProps),e.flags|=2,qa(t),t.memoizedState=null,e}function dee(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(vi){if(r.mode===`hidden`)return e=Xs(t,r),t.lanes=536870912,Js(null,e);if(Wa(t),(e=_i)?(e=Jd(e,bi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:q===null?null:{id:li,overflow:ui},retryLane:536870912,hydrationErrors:null},n=$r(e),n.return=t,t.child=n,gi=t,_i=null)):e=null,e===null)throw Si(t);return t.lanes=536870912,null}return Xs(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Wa(t),a)if(t.flags&256)t.flags&=-257,t=Zs(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Hs||Ii(e,t,n,!1),a=(n&e.childLanes)!==0,Hs||a){if(r=El,r!==null&&(s=We(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Vr(e,s),ou(r,e,s),Vs;vu(),t=Zs(e,t,n)}else e=o.treeContext,_i=Qd(s.nextSibling),gi=t,vi=!0,yi=null,bi=!1,e!==null&&hi(t,e),t=Xs(t,r),t.flags|=4096;return t}return e=Jr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function $s(e,t,n,r,i){return Ri(t),n=lo(e,t,n,r,void 0,i),r=po(),e!==null&&!Hs?(mo(e,t,i),pc(e,t,i)):(vi&&r&&pi(t),t.flags|=1,Us(e,t,n,i),t.child)}function ec(e,t,n,r,i,a){return Ri(t),t.updateQueue=null,n=fo(t,r,n,i),uo(e),r=po(),e!==null&&!Hs?(mo(e,t,a),pc(e,t,a)):(vi&&r&&pi(t),t.flags|=1,Us(e,t,n,a),t.child)}function tc(e,t,n,r,i){if(Ri(t),t.stateNode===null){var a=Wr,o=n.contextType;typeof o==`object`&&o&&(a=zi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Os,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ta(t),o=n.contextType,a.context=typeof o==`object`&&o?zi(o):Wr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ds(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Os.enqueueReplaceState(a,a.state,null),Na(t,r,a,i),Ma(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=js(n,s);a.props=c;var l=a.context,u=n.contextType;o=Wr,typeof u==`object`&&u&&(o=zi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&As(t,a,r,o),wa=!1;var f=t.memoizedState;a.state=f,Na(t,r,a,i),Ma(),l=t.memoizedState,s||f!==l||wa?(typeof d==`function`&&(Ds(t,n,d,r),l=t.memoizedState),(c=wa||ks(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ea(e,t),o=t.memoizedProps,u=js(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Wr,typeof l==`object`&&l&&(c=zi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&As(t,a,r,c),wa=!1,f=t.memoizedState,a.state=f,Na(t,r,a,i),Ma();var p=t.memoizedState;o!==d||f!==p||wa||e!==null&&e.dependencies!==null&&Li(e.dependencies)?(typeof s==`function`&&(Ds(t,n,s,r),p=t.memoizedState),(u=wa||ks(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Li(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Qs(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Sa(t,e.child,null,i),t.child=Sa(t,null,n,i)):Us(e,t,n,i),t.memoizedState=a.state,e=t.child):e=pc(e,t,i),e}function nc(e,t,n,r){return Ei(),t.flags|=256,Us(e,t,n,r),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ic(e){return{baseLanes:e,cachePool:aa()}}function ac(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=zl),e}function oc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(Ja.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(vi){if(a?Ua(t):Ka(t),(e=_i)?(e=Jd(e,bi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:q===null?null:{id:li,overflow:ui},retryLane:536870912,hydrationErrors:null},n=$r(e),n.return=t,t.child=n,gi=t,_i=null)):e=null,e===null)throw Si(t);return Xd(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(Ka(t),a=t.mode,c=cc({mode:`hidden`,children:c},a),r=Zr(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=ic(n),r.childLanes=ac(e,s,n),t.memoizedState=rc,Js(null,r)):(Ua(t),sc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Ua(t),t.flags&=-257,t=lc(e,t,n)):t.memoizedState===null?(Ka(t),c=r.fallback,a=t.mode,r=cc({mode:`visible`,children:r.children},a),c=Zr(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Sa(t,e.child,null,n),r=t.child,r.memoizedState=ic(n),r.childLanes=ac(e,s,n),t.memoizedState=rc,t=Js(null,r)):(Ka(t),t.child=e.child,t.flags|=128,t=null);else if(Ua(t),Xd(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Oi({value:r,source:null,stack:null}),t=lc(e,t,n)}else if(Hs||Ii(e,t,n,!1),s=(n&e.childLanes)!==0,Hs||s){if(s=El,s!==null&&(r=We(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Vr(e,r),ou(s,e,r),Vs;Yd(c)||vu(),t=lc(e,t,n)}else Yd(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,_i=Qd(c.nextSibling),gi=t,vi=!0,yi=null,bi=!1,e!==null&&hi(t,e),t=sc(t,r.children),t.flags|=4096);return t}return a?(Ka(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=Jr(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=Zr(c,a,n,null),c.flags|=2):c=Jr(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,Js(null,r),r=t.child,c=e.child.memoizedState,c===null?c=ic(n):(a=c.cachePool,a===null?a=aa():(l=Gi._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=ac(e,s,n),t.memoizedState=rc,Js(e.child,r)):(Ua(t),n=e.child,e=n.sibling,n=Jr(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function sc(e,t){return t=cc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function cc(e,t){return e=Kr(22,e,null,t),e.lanes=0,e}function lc(e,t,n){return Sa(t,e.child,null,n),e=sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pi(e.return,t,n)}function dc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function fc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ja.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,V(Ja,o),Us(e,t,r,n),r=vi?oi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uc(e,n,t);else if(e.tag===19)uc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ya(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),dc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ya(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}dc(t,!0,n,null,a,r);break;case`together`:dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function pc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Il|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ii(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=Jr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Li(e))):!0}function hc(e,t,n){switch(t.tag){case 3:ee(t,t.stateNode.containerInfo),Mi(t,Gi,e.memoizedState.cache),Ei();break;case 27:case 5:te(t);break;case 4:ee(t,t.stateNode.containerInfo);break;case 10:Mi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ua(t),e=pc(e,t,n),e===null?null:e.sibling):oc(e,t,n):(Ua(t),t.flags|=128,null);Ua(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Ii(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return fc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(Ja,Ja.current),r)break;return null;case 22:return t.lanes=0,qs(e,t,n,t.pendingProps);case 24:Mi(t,Gi,e.memoizedState.cache)}return pc(e,t,n)}function gc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Hs=!0;else{if(!mc(e,n)&&!(t.flags&128))return Hs=!1,hc(e,t,n);Hs=!!(e.flags&131072)}else Hs=!1,vi&&t.flags&1048576&&fi(t,oi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=fa(t.elementType),t.type=e,typeof e==`function`)qr(e)?(r=js(e,r),t.tag=1,t=tc(null,t,e,r,n)):(t.tag=0,t=$s(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=Ws(null,t,e,r,n);break a}else if(a===T){t.tag=14,t=Gs(null,t,e,r,n);break a}}throw t=M(e)||e,Error(i(306,t,``))}}return t;case 0:return $s(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=js(r,t.pendingProps),tc(e,t,r,a,n);case 3:a:{if(ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ea(e,t),Na(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Mi(t,Gi,r),r!==o.cache&&Fi(t,[Gi],n,!0),Ma(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=nc(e,t,r,n);break a}else if(r!==a){a=ni(Error(i(424)),t),Oi(a),t=nc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(_i=Qd(e.firstChild),gi=t,vi=!0,yi=null,bi=!0,n=Ca(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ei(),r===a){t=pc(e,t,n);break a}Us(e,t,r,n)}t=t.child}return t;case 26:return Qs(e,t),e===null?(n=hf(t.type,null,t.pendingProps,null))?t.memoizedState=n:vi||(n=t.type,e=t.pendingProps,r=Md(W.current).createElement(n),r[Xe]=t,r[Ze]=e,Ed(r,n,e),lt(r),t.stateNode=r):t.memoizedState=hf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),e===null&&vi&&(r=t.stateNode=nf(t.type,t.pendingProps,W.current),gi=t,bi=!0,a=_i,Hd(t.type)?($d=a,_i=Qd(r.firstChild)):_i=a),Us(e,t,t.pendingProps.children,n),Qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&vi&&((a=r=_i)&&(r=Kd(r,t.type,t.pendingProps,bi),r===null?a=!1:(t.stateNode=r,gi=t,_i=Qd(r.firstChild),bi=!1,a=!0)),a||Si(t)),te(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Fd(a,o)?r=null:s!==null&&Fd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=lo(e,t,cee,null,null,n),Rf._currentValue=a),Qs(e,t),Us(e,t,r,n),t.child;case 6:return e===null&&vi&&((e=n=_i)&&(n=qd(n,t.pendingProps,bi),n===null?e=!1:(t.stateNode=n,gi=t,_i=null,e=!0)),e||Si(t)),null;case 13:return oc(e,t,n);case 4:return ee(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sa(t,null,r,n):Us(e,t,r,n),t.child;case 11:return Ws(e,t,t.type,t.pendingProps,n);case 7:return Us(e,t,t.pendingProps,n),t.child;case 8:return Us(e,t,t.pendingProps.children,n),t.child;case 12:return Us(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Mi(t,t.type,r.value),Us(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ri(t),a=zi(a),r=r(a),t.flags|=1,Us(e,t,r,n),t.child;case 14:return Gs(e,t,t.type,t.pendingProps,n);case 15:return Ks(e,t,t.type,t.pendingProps,n);case 19:return fc(e,t,n);case 31:return dee(e,t,n);case 22:return qs(e,t,n,t.pendingProps);case 24:return Ri(t),r=zi(Gi),e===null?(a=ra(),a===null&&(a=El,o=Ki(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ta(t),Mi(t,Gi,a)):((e.lanes&n)!==0&&(Ea(e,t),Na(t,null,null,n),Ma()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Mi(t,Gi,r),r!==a.cache&&Fi(t,[Gi],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Mi(t,Gi,r))),Us(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function _c(e){e.flags|=4}function vc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(hu())e.flags|=8192;else throw pa=la,sa}else e.flags&=-16777217}function yc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Af(t))if(hu())e.flags|=8192;else throw pa=la,sa}function bc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Re(),e.lanes|=t,Bl|=t)}function xc(e,t){if(!vi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Sc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Cc(e,t,n){var r=t.pendingProps;switch(mi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sc(t),null;case 1:return Sc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ni(Gi),K(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ti(t)?_c(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Di())),Sc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(_c(t),o===null?(Sc(t),vc(t,a,null,r,n)):(Sc(t),yc(t,o))):o?o===e.memoizedState?(Sc(t),t.flags&=-16777217):(_c(t),Sc(t),yc(t,o)):(e=e.memoizedProps,e!==r&&_c(t),Sc(t),vc(t,a,e,r,n)),null;case 27:if(ne(t),n=W.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_c(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Sc(t),null}e=H.current,Ti(t)?Ci(t,e):(e=nf(a,r,n),t.stateNode=e,_c(t))}return Sc(t),null;case 5:if(ne(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&_c(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Sc(t),null}if(o=H.current,Ti(t))Ci(t,o);else{var s=Md(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(Ed(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&_c(t)}}return Sc(t),vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&_c(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=W.current,Ti(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=gi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Cd(e.nodeValue,n)),e||Si(t,!0)}else e=Md(e).createTextNode(r),e[Xe]=t,t.stateNode=e}return Sc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ti(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 Ei(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sc(t),e=!1}else n=Di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(qa(t),t):(qa(t),null);if(t.flags&128)throw Error(i(558))}return Sc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ti(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 Ei(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Sc(t),a=!1}else a=Di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(qa(t),t):(qa(t),null)}return qa(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),bc(t,t.updateQueue),Sc(t),null);case 4:return K(),e===null&&pd(t.stateNode.containerInfo),Sc(t),null;case 10:return Ni(t.type),Sc(t),null;case 19:if(B(Ja),r=t.memoizedState,r===null)return Sc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)xc(r,!1);else{if(Fl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ya(e),o!==null){for(t.flags|=128,xc(r,!1),e=o.updateQueue,t.updateQueue=e,bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Yr(n,e),n=n.sibling;return V(Ja,Ja.current&1|2),vi&&di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&he()>Kl&&(t.flags|=128,a=!0,xc(r,!1),t.lanes=4194304)}else{if(!a)if(e=Ya(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,bc(t,e),xc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!vi)return Sc(t),null}else 2*he()-r.renderingStartTime>Kl&&n!==536870912&&(t.flags|=128,a=!0,xc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Sc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=he(),e.sibling=null,n=Ja.current,V(Ja,a?n&1|2:n&1),vi&&di(t,r.treeForkCount),e);case 22:case 23:return qa(t),Ba(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Sc(t),t.subtreeFlags&6&&(t.flags|=8192)):Sc(t),n=t.updateQueue,n!==null&&bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&B(na),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ni(Gi),Sc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function wc(e,t){switch(mi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ni(Gi),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(qa(t),t.alternate===null)throw Error(i(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Ja),null;case 4:return K(),null;case 10:return Ni(t.type),null;case 22:case 23:return qa(t),Ba(),e!==null&&B(na),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ni(Gi),null;case 25:return null;default:return null}}function Tc(e,t){switch(mi(t),t.tag){case 3:Ni(Gi),K();break;case 26:case 27:case 5:ne(t);break;case 4:K();break;case 31:t.memoizedState!==null&&qa(t);break;case 13:qa(t);break;case 19:B(Ja);break;case 10:Ni(t.type);break;case 22:case 23:qa(t),Ba(),e!==null&&B(na);break;case 24:Ni(Gi)}}function Ec(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){Iu(t,t.return,e)}}function Dc(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){Iu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Iu(t,t.return,e)}}function Oc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Fa(t,n)}catch(t){Iu(e,e.return,t)}}}function kc(e,t,n){n.props=js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Iu(e,t,n)}}function Ac(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){Iu(e,t,n)}}function jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Iu(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){Iu(e,t,n)}else n.current=null}function Mc(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){Iu(e,e.return,t)}}function Nc(e,t,n){try{var r=e.stateNode;Dd(r,e.type,n,t),r[Ze]=t}catch(t){Iu(e,e.return,t)}}function Pc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hd(e.type)||e.tag===4}function Fc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pc(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&&Hd(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 Ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vt));else if(r!==4&&(r===27&&Hd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}function Lc(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&&Hd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Lc(e,t,n),e=e.sibling;e!==null;)Lc(e,t,n),e=e.sibling}function Rc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ed(t,r,n),t[Xe]=e,t[Ze]=n}catch(t){Iu(e,e.return,t)}}var zc=!1,Bc=!1,Vc=!1,Hc=typeof WeakSet==`function`?WeakSet:Set,Uc=null;function Wc(e,t){if(e=e.containerInfo,Ad=qf,e=dr(e),fr(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(jd={focusedElem:e,selectionRange:n},qf=!1,Uc=t;Uc!==null;)if(t=Uc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Uc=e;else for(;Uc!==null;){switch(t=Uc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=js(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Iu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Gd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:Gd(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,Uc=e;break}Uc=t.return}}function Gc(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ol(e,n),r&4&&Ec(5,n);break;case 1:if(ol(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Iu(n,n.return,e)}else{var i=js(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Iu(n,n.return,e)}}r&64&&Oc(n),r&512&&Ac(n,n.return);break;case 3:if(ol(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{Fa(e,t)}catch(e){Iu(n,n.return,e)}}break;case 27:t===null&&r&4&&Rc(n);case 26:case 5:ol(e,n),t===null&&r&4&&Mc(n),r&512&&Ac(n,n.return);break;case 12:ol(e,n);break;case 31:ol(e,n),r&4&&Zc(e,n);break;case 13:ol(e,n),r&4&&Qc(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Bu.bind(null,n),Zd(e,n))));break;case 22:if(r=n.memoizedState!==null||zc,!r){t=t!==null&&t.memoizedState!==null||Bc,i=zc;var a=Bc;zc=r,(Bc=t)&&!a?cl(e,n,(n.subtreeFlags&8772)!=0):ol(e,n),zc=i,Bc=a}break;case 30:break;default:ol(e,n)}}function Kc(e){var t=e.alternate;t!==null&&(e.alternate=null,Kc(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 qc=null,Jc=!1;function Yc(e,t,n){for(n=n.child;n!==null;)Xc(e,t,n),n=n.sibling}function Xc(e,t,n){if(Te&&typeof Te.onCommitFiberUnmount==`function`)try{Te.onCommitFiberUnmount(we,n)}catch{}switch(n.tag){case 26:Bc||jc(n,t),Yc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Bc||jc(n,t);var r=qc,i=Jc;Hd(n.type)&&(qc=n.stateNode,Jc=!1),Yc(e,t,n),rf(n.stateNode),qc=r,Jc=i;break;case 5:Bc||jc(n,t);case 6:if(r=qc,i=Jc,qc=null,Yc(e,t,n),qc=r,Jc=i,qc!==null)if(Jc)try{(qc.nodeType===9?qc.body:qc.nodeName===`HTML`?qc.ownerDocument.body:qc).removeChild(n.stateNode)}catch(e){Iu(n,t,e)}else try{qc.removeChild(n.stateNode)}catch(e){Iu(n,t,e)}break;case 18:qc!==null&&(Jc?(e=qc,Ud(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),gp(e)):Ud(qc,n.stateNode));break;case 4:r=qc,i=Jc,qc=n.stateNode.containerInfo,Jc=!0,Yc(e,t,n),qc=r,Jc=i;break;case 0:case 11:case 14:case 15:Dc(2,n,t),Bc||Dc(4,n,t),Yc(e,t,n);break;case 1:Bc||(jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&kc(n,t,r)),Yc(e,t,n);break;case 21:Yc(e,t,n);break;case 22:Bc=(r=Bc)||n.memoizedState!==null,Yc(e,t,n),Bc=r;break;default:Yc(e,t,n)}}function Zc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gp(e)}catch(e){Iu(t,t.return,e)}}}function Qc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gp(e)}catch(e){Iu(t,t.return,e)}}function $c(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hc),t;default:throw Error(i(435,e.tag))}}function el(e,t){var n=$c(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Vu.bind(null,e,t);t.then(r,r)}})}function tl(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(Hd(c.type)){qc=c.stateNode,Jc=!1;break a}break;case 5:qc=c.stateNode,Jc=!1;break a;case 3:case 4:qc=c.stateNode.containerInfo,Jc=!0;break a}c=c.return}if(qc===null)throw Error(i(160));Xc(o,s,a),qc=null,Jc=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rl(t,e),t=t.sibling}var nl=null;function rl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:tl(t,e),il(e),r&4&&(Dc(3,e,e.return),Ec(3,e),Dc(5,e,e.return));break;case 1:tl(t,e),il(e),r&512&&(Bc||n===null||jc(n,n.return)),r&64&&zc&&(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=nl;if(tl(t,e),il(e),r&512&&(Bc||n===null||jc(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`))),Ed(o,r,n),o[Xe]=e,lt(o),r=o;break a;case`link`:var s=Df(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Ed(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Df(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Ed(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 Of(a,e.type,e.stateNode);else e.stateNode=Sf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Nc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Of(a,e.type,e.stateNode):Sf(a,r,e.memoizedProps))}break;case 27:tl(t,e),il(e),r&512&&(Bc||n===null||jc(n,n.return)),n!==null&&r&4&&Nc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(tl(t,e),il(e),r&512&&(Bc||n===null||jc(n,n.return)),e.flags&32){a=e.stateNode;try{Ft(a,``)}catch(t){Iu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Nc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Vc=!0);break;case 6:if(tl(t,e),il(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Iu(e,e.return,t)}}break;case 3:if(Ef=null,a=nl,nl=sf(t.containerInfo),tl(t,e),nl=a,il(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{gp(t.containerInfo)}catch(t){Iu(e,e.return,t)}Vc&&(Vc=!1,al(e));break;case 4:r=nl,nl=sf(e.stateNode.containerInfo),tl(t,e),il(e),nl=r;break;case 12:tl(t,e),il(e);break;case 31:tl(t,e),il(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,el(e,r)));break;case 13:tl(t,e),il(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Wl=he()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,el(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=zc,d=Bc;if(zc=u||a,Bc=d||l,tl(t,e),Bc=d,zc=u,il(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||zc||Bc||sl(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){Iu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Iu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?Wd(m,!0):Wd(l.stateNode,!1)}catch(e){Iu(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,el(e,n))));break;case 19:tl(t,e),il(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,el(e,r)));break;case 30:break;case 21:break;default:tl(t,e),il(e)}}function il(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Pc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Lc(e,Fc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ft(o,``),n.flags&=-33),Lc(e,Fc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Ic(e,Fc(e),s);break;default:throw Error(i(161))}}catch(t){Iu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function al(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;al(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ol(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Gc(e,t.alternate,t),t=t.sibling}function sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Dc(4,t,t.return),sl(t);break;case 1:jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&kc(t,t.return,n),sl(t);break;case 27:rf(t.stateNode);case 26:case 5:jc(t,t.return),sl(t);break;case 22:t.memoizedState===null&&sl(t);break;case 30:sl(t);break;default:sl(t)}e=e.sibling}}function cl(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:cl(i,a,n),Ec(4,a);break;case 1:if(cl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Iu(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++)Pa(c[i],s)}catch(e){Iu(r,r.return,e)}}n&&o&64&&Oc(a),Ac(a,a.return);break;case 27:Rc(a);case 26:case 5:cl(i,a,n),n&&r===null&&o&4&&Mc(a),Ac(a,a.return);break;case 12:cl(i,a,n);break;case 31:cl(i,a,n),n&&o&4&&Zc(i,a);break;case 13:cl(i,a,n),n&&o&4&&Qc(i,a);break;case 22:a.memoizedState===null&&cl(i,a,n),Ac(a,a.return);break;case 30:break;default:cl(i,a,n)}t=t.sibling}}function ll(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&&qi(n))}function ul(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qi(e))}function dl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fl(e,t,n,r),t=t.sibling}function fl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:dl(e,t,n,r),i&2048&&Ec(9,t);break;case 1:dl(e,t,n,r);break;case 3:dl(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&&qi(e)));break;case 12:if(i&2048){dl(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){Iu(t,t.return,e)}}else dl(e,t,n,r);break;case 31:dl(e,t,n,r);break;case 13:dl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?dl(e,t,n,r):(a._visibility|=2,pl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?dl(e,t,n,r):ml(e,t),i&2048&&ll(o,t);break;case 24:dl(e,t,n,r),i&2048&&ul(t.alternate,t);break;default:dl(e,t,n,r)}}function pl(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:pl(a,o,s,c,i),Ec(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,pl(a,o,s,c,i)):u._visibility&2?pl(a,o,s,c,i):ml(a,o),i&&l&2048&&ll(o.alternate,o);break;case 24:pl(a,o,s,c,i),i&&l&2048&&ul(o.alternate,o);break;default:pl(a,o,s,c,i)}t=t.sibling}}function ml(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:ml(n,r),i&2048&&ll(r.alternate,r);break;case 24:ml(n,r),i&2048&&ul(r.alternate,r);break;default:ml(n,r)}t=t.sibling}}var hl=8192;function gl(e,t,n){if(e.subtreeFlags&hl)for(e=e.child;e!==null;)_l(e,t,n),e=e.sibling}function _l(e,t,n){switch(e.tag){case 26:gl(e,t,n),e.flags&hl&&e.memoizedState!==null&&jf(n,nl,e.memoizedState,e.memoizedProps);break;case 5:gl(e,t,n);break;case 3:case 4:var r=nl;nl=sf(e.stateNode.containerInfo),gl(e,t,n),nl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=hl,hl=16777216,gl(e,t,n),hl=r):gl(e,t,n));break;default:gl(e,t,n)}}function vl(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 yl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Uc=r,Sl(r,e)}vl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bl(e),e=e.sibling}function bl(e){switch(e.tag){case 0:case 11:case 15:yl(e),e.flags&2048&&Dc(9,e,e.return);break;case 3:yl(e);break;case 12:yl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xl(e)):yl(e);break;default:yl(e)}}function xl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Uc=r,Sl(r,e)}vl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Dc(8,t,t.return),xl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,xl(t));break;default:xl(t)}e=e.sibling}}function Sl(e,t){for(;Uc!==null;){var n=Uc;switch(n.tag){case 0:case 11:case 15:Dc(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:qi(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Uc=r;else a:for(n=e;Uc!==null;){r=Uc;var i=r.sibling,a=r.return;if(Kc(r),r===n){Uc=null;break a}if(i!==null){i.return=a,Uc=i;break a}Uc=a}}}var Cl={getCacheForType:function(e){var t=zi(Gi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return zi(Gi).controller.signal}},wl=typeof WeakMap==`function`?WeakMap:Map,Tl=0,El=null,Dl=null,Ol=0,kl=0,Al=null,jl=!1,Ml=!1,Nl=!1,Pl=0,Fl=0,Il=0,Ll=0,Rl=0,zl=0,Bl=0,Vl=null,Hl=null,Ul=!1,Wl=0,Gl=0,Kl=1/0,ql=null,Jl=null,Yl=0,Xl=null,Zl=null,Ql=0,$l=0,eu=null,tu=null,nu=0,ru=null;function iu(){return Tl&2&&Ol!==0?Ol&-Ol:P.T===null?qe():rd()}function au(){if(zl===0)if(!(Ol&536870912)||vi){var e=Me;Me<<=1,!(Me&3932160)&&(Me=262144),zl=e}else zl=536870912;return e=Va.current,e!==null&&(e.flags|=32),zl}function ou(e,t,n){(e===El&&(kl===2||kl===9)||e.cancelPendingCommit!==null)&&(pu(e,0),uu(e,Ol,zl,!1)),Be(e,n),(!(Tl&2)||e!==El)&&(e===El&&(!(Tl&2)&&(Ll|=n),Fl===4&&uu(e,Ol,zl,!1)),Yu(e))}function su(e,t,n){if(Tl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ie(e,t),a=r?xu(e,t):yu(e,t,!0),o=r;do{if(a===0){Ml&&!r&&uu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!lu(n)){a=yu(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=Vl;var l=c.current.memoizedState.isDehydrated;if(l&&(pu(c,s).flags|=256),s=yu(c,s,!1),s!==2){if(Nl&&!l){c.errorRecoveryDisabledLanes|=o,Ll|=o,a=4;break a}o=Hl,Hl=a,o!==null&&(Hl===null?Hl=o:Hl.push.apply(Hl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){pu(e,0),uu(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:uu(r,t,zl,!jl);break a;case 2:Hl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Wl+300-he(),10<a)){if(uu(r,t,zl,!jl),Fe(r,0,!0)!==0)break a;Ql=t,r.timeoutHandle=Rd(cu.bind(null,r,n,Hl,ql,Ul,t,zl,Ll,Bl,jl,o,`Throttled`,-0,0),a);break a}cu(r,n,Hl,ql,Ul,t,zl,Ll,Bl,jl,o,null,-0,0)}}break}while(1);Yu(e)}function cu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Vt},_l(t,a,d);var m=(a&62914560)===a?Wl-he():(a&4194048)===a?Gl-he():0;if(m=Nf(d,m),m!==null){Ql=a,e.cancelPendingCommit=m(Ou.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),uu(e,a,o,!l);return}}Ou(e,t,a,n,r,i,o,s,c)}function lu(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(!or(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 uu(e,t,n,r){t&=~Rl,t&=~Ll,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 du(){return Tl&6?!0:(Xu(0,!1),!1)}function fu(){if(Dl!==null){if(kl===0)var e=Dl.return;else e=Dl,ji=Ai=null,ho(e),ga=null,_a=0,e=Dl;for(;e!==null;)Tc(e.alternate,e),e=e.return;Dl=null}}function pu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,mee(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ql=0,fu(),El=e,Dl=n=Jr(e.current,null),Ol=t,kl=0,Al=null,jl=!1,Ml=Ie(e,t),Nl=!1,Bl=zl=Rl=Ll=Il=Fl=0,Hl=Vl=null,Ul=!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 Pl=t,Rr(),n}function mu(e,t){Za=null,P.H=Cs,t===oa||t===ca?(t=ma(),kl=3):t===sa?(t=ma(),kl=4):kl=t===Vs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Al=t,Dl===null&&(Fl=1,Fs(e,ni(t,e.current)))}function hu(){var e=Va.current;return e===null?!0:(Ol&4194048)===Ol?Ha===null:(Ol&62914560)===Ol||Ol&536870912?e===Ha:!1}function gu(){var e=P.H;return P.H=Cs,e===null?Cs:e}function _u(){var e=P.A;return P.A=Cl,e}function vu(){Fl=4,jl||(Ol&4194048)!==Ol&&Va.current!==null||(Ml=!0),!(Il&134217727)&&!(Ll&134217727)||El===null||uu(El,Ol,zl,!1)}function yu(e,t,n){var r=Tl;Tl|=2;var i=gu(),a=_u();(El!==e||Ol!==t)&&(ql=null,pu(e,t)),t=!1;var o=Fl;a:do try{if(kl!==0&&Dl!==null){var s=Dl,c=Al;switch(kl){case 8:fu(),o=6;break a;case 3:case 2:case 9:case 6:Va.current===null&&(t=!0);var l=kl;if(kl=0,Al=null,Tu(e,s,c,l),n&&Ml){o=0;break a}break;default:l=kl,kl=0,Al=null,Tu(e,s,c,l)}}bu(),o=Fl;break}catch(t){mu(e,t)}while(1);return t&&e.shellSuspendCounter++,ji=Ai=null,Tl=r,P.H=i,P.A=a,Dl===null&&(El=null,Ol=0,Rr()),o}function bu(){for(;Dl!==null;)Cu(Dl)}function xu(e,t){var n=Tl;Tl|=2;var r=gu(),a=_u();El!==e||Ol!==t?(ql=null,Kl=he()+500,pu(e,t)):Ml=Ie(e,t);a:do try{if(kl!==0&&Dl!==null){t=Dl;var o=Al;b:switch(kl){case 1:kl=0,Al=null,Tu(e,t,o,1);break;case 2:case 9:if(ua(o)){kl=0,Al=null,wu(t);break}t=function(){kl!==2&&kl!==9||El!==e||(kl=7),Yu(e)},o.then(t,t);break a;case 3:kl=7;break a;case 4:kl=5;break a;case 7:ua(o)?(kl=0,Al=null,wu(t)):(kl=0,Al=null,Tu(e,t,o,7));break;case 5:var s=null;switch(Dl.tag){case 26:s=Dl.memoizedState;case 5:case 27:var c=Dl;if(s?Af(s):c.stateNode.complete){kl=0,Al=null;var l=c.sibling;if(l!==null)Dl=l;else{var u=c.return;u===null?Dl=null:(Dl=u,Eu(u))}break b}}kl=0,Al=null,Tu(e,t,o,5);break;case 6:kl=0,Al=null,Tu(e,t,o,6);break;case 8:fu(),Fl=6;break a;default:throw Error(i(462))}}Su();break}catch(t){mu(e,t)}while(1);return ji=Ai=null,P.H=r,P.A=a,Tl=n,Dl===null?(El=null,Ol=0,Rr(),Fl):0}function Su(){for(;Dl!==null&&!pe();)Cu(Dl)}function Cu(e){var t=gc(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,t===null?Eu(e):Dl=t}function wu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ec(n,t,t.pendingProps,t.type,void 0,Ol);break;case 11:t=ec(n,t,t.pendingProps,t.type.render,t.ref,Ol);break;case 5:ho(t);default:Tc(n,t),t=Dl=Yr(t,Pl),t=gc(n,t,Pl)}e.memoizedProps=e.pendingProps,t===null?Eu(e):Dl=t}function Tu(e,t,n,r){ji=Ai=null,ho(t),ga=null,_a=0;var i=t.return;try{if(Bs(e,i,t,n,Ol)){Fl=1,Fs(e,ni(n,e.current)),Dl=null;return}}catch(t){if(i!==null)throw Dl=i,t;Fl=1,Fs(e,ni(n,e.current)),Dl=null;return}t.flags&32768?(vi||r===1?e=!0:Ml||Ol&536870912?e=!1:(jl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Va.current,r!==null&&r.tag===13&&(r.flags|=16384))),Du(t,e)):Eu(t)}function Eu(e){var t=e;do{if(t.flags&32768){Du(t,jl);return}e=t.return;var n=Cc(t.alternate,t,Pl);if(n!==null){Dl=n;return}if(t=t.sibling,t!==null){Dl=t;return}Dl=t=e}while(t!==null);Fl===0&&(Fl=5)}function Du(e,t){do{var n=wc(e.alternate,e);if(n!==null){n.flags&=32767,Dl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Dl=e;return}Dl=e=n}while(e!==null);Fl=6,Dl=null}function Ou(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Nu();while(Yl!==0);if(Tl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Lr,Ve(e,n,o,s,c,l),e===El&&(Dl=El=null,Ol=0),Zl=t,Xl=e,Ql=n,$l=o,eu=a,tu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Hu(ye,function(){return Pu(),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=Tl,Tl|=4;try{Wc(e,t,n)}finally{Tl=s,F.p=a,P.T=r}}Yl=1,ku(),Au(),ju()}}function ku(){if(Yl===1){Yl=0;var e=Xl,t=Zl,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=Tl;Tl|=4;try{rl(t,e);var a=jd,o=dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&ur(s.ownerDocument.documentElement,s)){if(c!==null&&fr(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 _=lr(s,h),v=lr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}qf=!!Ad,jd=Ad=null}finally{Tl=i,F.p=r,P.T=n}}e.current=t,Yl=2}}function Au(){if(Yl===2){Yl=0;var e=Xl,t=Zl,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=Tl;Tl|=4;try{Gc(e,t.alternate,t)}finally{Tl=i,F.p=r,P.T=n}}Yl=3}}function ju(){if(Yl===4||Yl===3){Yl=0,me();var e=Xl,t=Zl,n=Ql,r=tu;t.subtreeFlags&10256||t.flags&10256?Yl=5:(Yl=0,Zl=Xl=null,Mu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Jl=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}}Ql&3&&Nu(),Yu(e),i=e.pendingLanes,n&261930&&i&42?e===ru?nu++:(nu=0,ru=e):nu=0,Xu(0,!1)}}function Mu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qi(t)))}function Nu(){return ku(),Au(),ju(),Pu()}function Pu(){if(Yl!==5)return!1;var e=Xl,t=$l;$l=0;var n=Ke(Ql),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=eu,eu=null;var o=Xl,s=Ql;if(Yl=0,Zl=Xl=null,Ql=0,Tl&6)throw Error(i(331));var c=Tl;if(Tl|=4,bl(o.current),fl(o,o.current,s,n),Tl=c,Xu(0,!1),Te&&typeof Te.onPostCommitFiberRoot==`function`)try{Te.onPostCommitFiberRoot(we,o)}catch{}return!0}finally{F.p=a,P.T=r,Mu(e,t)}}function Fu(e,t,n){t=ni(n,t),t=Ls(e.stateNode,t,2),e=Oa(e,t,2),e!==null&&(Be(e,2),Yu(e))}function Iu(e,t,n){if(e.tag===3)Fu(e,e,n);else for(;t!==null;){if(t.tag===3){Fu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Jl===null||!Jl.has(r))){e=ni(n,e),n=Rs(2),r=Oa(t,n,2),r!==null&&(zs(n,r,t,e),Be(r,2),Yu(r));break}}t=t.return}}function Lu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wl;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)||(Nl=!0,i.add(n),e=Ru.bind(null,e,t,n),t.then(e,e))}function Ru(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,El===e&&(Ol&n)===n&&(Fl===4||Fl===3&&(Ol&62914560)===Ol&&300>he()-Wl?!(Tl&2)&&pu(e,0):Rl|=n,Bl===Ol&&(Bl=0)),Yu(e)}function zu(e,t){t===0&&(t=Re()),e=Vr(e,t),e!==null&&(Be(e,t),Yu(e))}function Bu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zu(e,n)}function Vu(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),zu(e,n)}function Hu(e,t){return de(e,t)}var Uu=null,Wu=null,Gu=!1,Ku=!1,qu=!1,Ju=0;function Yu(e){e!==Wu&&e.next===null&&(Wu===null?Uu=Wu=e:Wu=Wu.next=e),Ku=!0,Gu||(Gu=!0,nd())}function Xu(e,t){if(!qu&&Ku){qu=!0;do for(var n=!1,r=Uu;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,td(r,a))}else a=Ol,a=Fe(r,r===El?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ie(r,a)||(n=!0,td(r,a));r=r.next}while(n);qu=!1}}function Zu(){Qu()}function Qu(){Ku=Gu=!1;var e=0;Ju!==0&&Ld()&&(e=Ju);for(var t=he(),n=null,r=Uu;r!==null;){var i=r.next,a=$u(r,t);a===0?(r.next=null,n===null?Uu=i:n.next=i,i===null&&(Wu=n)):(n=r,(e!==0||a&3)&&(Ku=!0)),r=i}Yl!==0&&Yl!==5||Xu(e,!1),Ju!==0&&(Ju=0)}function $u(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=El,n=Ol,n=Fe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(kl===2||kl===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=ed.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 ed(e,t){if(Yl!==0&&Yl!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Nu()&&e.callbackNode!==n)return null;var r=Ol;return r=Fe(e,e===El?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(su(e,r,t),$u(e,he()),e.callbackNode!=null&&e.callbackNode===n?ed.bind(null,e):null)}function td(e,t){if(Nu())return null;su(e,t,!0)}function nd(){Bd(function(){Tl&6?de(_e,Zu):Qu()})}function rd(){if(Ju===0){var e=Xi;e===0&&(e=je,je<<=1,!(je&261888)&&(je=256)),Ju=e}return Ju}function id(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Bt(``+e)}function ad(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 fee(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=id((i[Ze]||null).action),o=r.submitter;o&&(t=(t=o[Ze]||null)?id(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ju!==0){var e=o?ad(i,o):new FormData(i);us(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?ad(i,o):new FormData(i),us(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var od=0;od<Mr.length;od++){var sd=Mr[od];Nr(sd.toLowerCase(),`on`+(sd[0].toUpperCase()+sd.slice(1)))}Nr(wr,`onAnimationEnd`),Nr(Tr,`onAnimationIteration`),Nr(Er,`onAnimationStart`),Nr(`dblclick`,`onDoubleClick`),Nr(`focusin`,`onFocus`),Nr(`focusout`,`onBlur`),Nr(Dr,`onTransitionRun`),Nr(Or,`onTransitionStart`),Nr(kr,`onTransitionCancel`),Nr(Ar,`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 cd=`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(` `),pee=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(cd));function ld(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){Pr(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){Pr(e)}i.currentTarget=null,a=c}}}}function ud(e,t){var n=t[$e];n===void 0&&(n=t[$e]=new Set);var r=e+`__bubble`;n.has(r)||(md(t,e,2,!1),n.add(r))}function dd(e,t,n){var r=0;t&&(r|=4),md(n,e,r,t)}var fd=`_reactListening`+Math.random().toString(36).slice(2);function pd(e){if(!e[fd]){e[fd]=!0,ut.forEach(function(t){t!==`selectionchange`&&(pee.has(t)||dd(t,!1,e),dd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fd]||(t[fd]=!0,dd(`selectionchange`,!1,t))}}function md(e,t,n,r){switch(ep(t)){case 2:var i=Jf;break;case 8:i=Yf;break;default:i=Xf}n=i.bind(null,t,n,e),i=void 0,!Zt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function hd(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}Jt(function(){var r=a,i=Ut(n),s=[];a:{var c=jr.get(e);if(c!==void 0){var l=ln,u=e;switch(e){case`keypress`:if(rn(n)===0)break a;case`keydown`:case`keyup`:l=Dn;break;case`focusin`:u=`focus`,l=vn;break;case`focusout`:u=`blur`,l=vn;break;case`beforeblur`:case`afterblur`:l=vn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=_n;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=kn;break;case wr:case Tr:case Er:l=yn;break;case Ar:l=iee;break;case`scroll`:case`scrollend`:l=dn;break;case`wheel`:l=An;break;case`copy`:case`cut`:case`paste`:l=bn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=On;break;case`toggle`:case`beforetoggle`:l=aee}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Yt(m,p),g!=null&&d.push(gd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Ht&&(u=n.relatedTarget||n.fromElement)&&(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=gn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=On,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=vd,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&&yd(s,c,l,d,!1),u!==null&&f!==null&&yd(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=Jn;else if(Hn(c))if(Yn)v=ir;else{v=nr;var y=tr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Rt(r.elementType)&&(v=Jn):v=rr;if(v&&=v(e,r)){Un(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&jt(c,`number`,c.value)}switch(y=r?st(r):window,e){case`focusin`:(Hn(y)||y.contentEditable===`true`)&&(mr=y,hr=r,gr=null);break;case`focusout`:gr=hr=mr=null;break;case`mousedown`:_r=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:_r=!1,vr(s,n,i);break;case`selectionchange`:if(pr)break;case`keydown`:case`keyup`:vr(s,n,i)}var b;if(Mn)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 Bn?Rn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Fn&&n.locale!==`ko`&&(Bn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Bn&&(b=nn()):($t=i,en=`value`in $t?$t.value:$t.textContent,Bn=!0)),y=_d(r,x),0<y.length&&(x=new xn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=zn(n),b!==null&&(x.data=b)))),(b=Pn?oee(e,n):Vn(e,n))&&(x=_d(r,`onBeforeInput`),0<x.length&&(y=new xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),fee(s,e,r,n,i)}ld(s,t)})}function gd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _d(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Yt(e,n),i!=null&&r.unshift(gd(e,i,a)),i=Yt(e,t),i!=null&&r.push(gd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function vd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function yd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Yt(n,a),l!=null&&o.unshift(gd(n,l,c))):i||(l=Yt(n,a),l!=null&&o.push(gd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var bd=/\r\n?/g,xd=/\u0000|\uFFFD/g;function Sd(e){return(typeof e==`string`?e:``+e).replace(bd,`
|
||
`).replace(xd,``)}function Cd(e,t){return t=Sd(t),Sd(e)===t}function wd(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`:Lt(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=Bt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&wd(e,t,`name`,a.name,a,null),wd(e,t,`formEncType`,a.formEncType,a,null),wd(e,t,`formMethod`,a.formMethod,a,null),wd(e,t,`formTarget`,a.formTarget,a,null)):(wd(e,t,`encType`,a.encType,a,null),wd(e,t,`method`,a.method,a,null),wd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Bt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`onScroll`:r!=null&&ud(`scroll`,e);break;case`onScrollEnd`:r!=null&&ud(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Bt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:ud(`beforetoggle`,e),ud(`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=zt.get(n)||n,vt(e,n,r))}}function Td(e,t,n,r,a,o){switch(n){case`style`:Lt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ft(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ft(e,``+r);break;case`onScroll`:r!=null&&ud(`scroll`,e);break;case`onScrollEnd`:r!=null&&ud(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Vt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!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 Ed(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:ud(`error`,e),ud(`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:wd(e,t,o,s,n,null)}}a&&wd(e,t,`srcSet`,n.srcSet,n,null),r&&wd(e,t,`src`,n.src,n,null);return;case`input`:ud(`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:wd(e,t,r,d,n,null)}}At(e,o,c,l,u,s,a,!1);return;case`select`:for(a in ud(`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:wd(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 ud(`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:wd(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:wd(e,t,l,r,n,null)}return;case`dialog`:ud(`beforetoggle`,e),ud(`toggle`,e),ud(`cancel`,e),ud(`close`,e);break;case`iframe`:case`object`:ud(`load`,e);break;case`video`:case`audio`:for(r=0;r<cd.length;r++)ud(cd[r],e);break;case`image`:ud(`error`,e),ud(`load`,e);break;case`details`:ud(`toggle`,e);break;case`embed`:case`source`:case`link`:ud(`error`,e),ud(`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:wd(e,t,u,r,n,null)}return;default:if(Rt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Td(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&wd(e,t,c,r,n,null))}function Dd(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)||wd(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&&wd(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)||wd(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&&wd(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:wd(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&&wd(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:wd(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:wd(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)&&wd(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:wd(e,t,u,p,r,m)}return;default:if(Rt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Td(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||Td(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&wd(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||wd(e,t,f,p,r,m)}function Od(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function kd(){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&&Od(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&&Od(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 Ad=null,jd=null;function Md(e){return e.nodeType===9?e:e.ownerDocument}function Nd(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 Pd(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 Fd(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 Id=null;function Ld(){var e=window.event;return e&&e.type===`popstate`?e===Id?!1:(Id=e,!0):(Id=null,!1)}var Rd=typeof setTimeout==`function`?setTimeout:void 0,mee=typeof clearTimeout==`function`?clearTimeout:void 0,zd=typeof Promise==`function`?Promise:void 0,Bd=typeof queueMicrotask==`function`?queueMicrotask:zd===void 0?Rd:function(e){return zd.resolve(null).then(e).catch(Vd)};function Vd(e){setTimeout(function(){throw e})}function Hd(e){return e===`head`}function Ud(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),gp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)rf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,rf(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`&&rf(e.ownerDocument.body);n=i}while(n);gp(t)}function Wd(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 Gd(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`:Gd(n),it(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function Kd(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=Qd(e.nextSibling),e===null)break}return null}function qd(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=Qd(e.nextSibling),e===null))return null;return e}function Jd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=Qd(e.nextSibling),e===null))return null;return e}function Yd(e){return e.data===`$?`||e.data===`$~`}function Xd(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function Zd(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function Qd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var $d=null;function ef(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return Qd(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function tf(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 nf(e,t,n){switch(t=Md(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 rf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);it(e)}var af=new Map,of=new Set;function sf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cf=F.d;F.d={f:lf,r:uf,D:pf,C:mf,L:hee,m:gee,X:vee,S:_ee,M:yee};function lf(){var e=cf.f(),t=du();return e||t}function uf(e){var t=ot(e);t!==null&&t.tag===5&&t.type===`form`?fs(t):cf.r(e)}var df=typeof document>`u`?null:document;function ff(e,t,n){var r=df;if(r&&typeof t==`string`&&t){var i=Ot(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),of.has(i)||(of.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ed(t,`link`,e),lt(t),r.head.appendChild(t)))}}function pf(e){cf.D(e),ff(`dns-prefetch`,e,null)}function mf(e,t){cf.C(e,t),ff(`preconnect`,e,t)}function hee(e,t,n){cf.L(e,t,n);var r=df;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=gf(e);break;case`script`:a=bf(e)}af.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),af.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(_f(a))||t===`script`&&r.querySelector(xf(a))||(t=r.createElement(`link`),Ed(t,`link`,e),lt(t),r.head.appendChild(t)))}}function gee(e,t){cf.m(e,t);var n=df;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=bf(e)}if(!af.has(a)&&(e=p({rel:`modulepreload`,href:e},t),af.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(xf(a)))return}r=n.createElement(`link`),Ed(r,`link`,e),lt(r),n.head.appendChild(r)}}}function _ee(e,t,n){cf.S(e,t,n);var r=df;if(r&&e){var i=ct(r).hoistableStyles,a=gf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(_f(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=af.get(a))&&wf(e,n);var c=o=r.createElement(`link`);lt(c),Ed(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Cf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function vee(e,t){cf.X(e,t);var n=df;if(n&&e){var r=ct(n).hoistableScripts,i=bf(e),a=r.get(i);a||(a=n.querySelector(xf(i)),a||(e=p({src:e,async:!0},t),(t=af.get(i))&&Tf(e,t),a=n.createElement(`script`),lt(a),Ed(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function yee(e,t){cf.M(e,t);var n=df;if(n&&e){var r=ct(n).hoistableScripts,i=bf(e),a=r.get(i);a||(a=n.querySelector(xf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=af.get(i))&&Tf(e,t),a=n.createElement(`script`),lt(a),Ed(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function hf(e,t,n,r){var a=(a=W.current)?sf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=gf(n.href),n=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=gf(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(_f(e)))&&!o._p&&(s.instance=o,s.state.loading=5),af.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},af.set(e,n),o||yf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=bf(n),n=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 gf(e){return`href="`+Ot(e)+`"`}function _f(e){return`link[rel="stylesheet"][`+e+`]`}function vf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function yf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ed(t,`link`,n),lt(t),e.head.appendChild(t))}function bf(e){return`[src="`+Ot(e)+`"]`}function xf(e){return`script[async]`+e}function Sf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+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),Ed(r,`style`,a),Cf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=gf(n.href);var o=e.querySelector(_f(a));if(o)return t.state.loading|=4,t.instance=o,lt(o),o;r=vf(n),(a=af.get(a))&&wf(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}),Ed(o,`link`,r),t.state.loading|=4,Cf(o,n.precedence,e),t.instance=o;case`script`:return o=bf(n.src),(a=e.querySelector(xf(o)))?(t.instance=a,lt(a),a):(r=n,(a=af.get(o))&&(r=p({},n),Tf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),lt(a),Ed(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Cf(r,n.precedence,e));return t.instance}function Cf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function wf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Tf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Ef=null;function Df(e,t,n){if(Ef===null){var r=new Map,i=Ef=new Map;i.set(n,r)}else i=Ef,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[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 Of(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function kf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Af(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function jf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=gf(r.href),a=t.querySelector(_f(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Pf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,lt(a);return}a=t.ownerDocument||t,r=vf(r),(i=af.get(i))&&wf(r,i),a=a.createElement(`link`),lt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ed(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Pf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Mf=0;function Nf(e,t){return e.stylesheets&&e.count===0&&If(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&If(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Mf===0&&(Mf=62500*kd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&If(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Mf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Pf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)If(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ff=null;function If(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ff=new Map,t.forEach(Lf,e),Ff=null,Pf.call(e))}function Lf(e,t){if(!(t.state.loading&4)){var n=Ff.get(e);if(n)var r=n.get(null);else{n=new Map,Ff.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Pf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Rf={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function zf(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=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 Bf(e,t,n,r,i,a,o,s,c,l,u,d){return e=new zf(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Kr(3,null,null,t),e.current=a,a.stateNode=e,t=Ki(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ta(a),e}function Vf(e){return e?(e=Wr,e):Wr}function Hf(e,t,n,r,i,a){i=Vf(i),r.context===null?r.context=i:r.pendingContext=i,r=Da(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Oa(e,r,t),n!==null&&(ou(n,e,t),ka(n,e,t))}function Uf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Wf(e,t){Uf(e,t),(e=e.alternate)&&Uf(e,t)}function Gf(e){if(e.tag===13||e.tag===31){var t=Vr(e,67108864);t!==null&&ou(t,e,67108864),Wf(e,67108864)}}function Kf(e){if(e.tag===13||e.tag===31){var t=iu();t=Ge(t);var n=Vr(e,t);n!==null&&ou(n,e,t),Wf(e,t)}}var qf=!0;function Jf(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,Xf(e,t,n,r)}finally{F.p=a,P.T=i}}function Yf(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,Xf(e,t,n,r)}finally{F.p=a,P.T=i}}function Xf(e,t,n,r){if(qf){var i=Zf(r);if(i===null)hd(e,t,r,Qf,n),cp(e,r);else if(xee(i,e,t,n,r))r.stopPropagation();else if(cp(e,r),t&4&&-1<bee.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}Yu(a),!(Tl&6)&&(Kl=he()+500,Xu(0,!1))}}break;case 31:case 13:s=Vr(a,2),s!==null&&ou(s,a,2),du(),Wf(a,2)}if(a=Zf(r),a===null&&hd(e,t,r,Qf,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else hd(e,t,r,null,n)}}function Zf(e){return e=Ut(e),$f(e)}var Qf=null;function $f(e){if(Qf=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 Qf=e,null}function ep(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(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 tp=!1,np=null,rp=null,ip=null,ap=new Map,op=new Map,sp=[],bee=`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 cp(e,t){switch(e){case`focusin`:case`focusout`:np=null;break;case`dragenter`:case`dragleave`:rp=null;break;case`mouseover`:case`mouseout`:ip=null;break;case`pointerover`:case`pointerout`:ap.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:op.delete(t.pointerId)}}function lp(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&&Gf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function xee(e,t,n,r,i){switch(t){case`focusin`:return np=lp(np,e,t,n,r,i),!0;case`dragenter`:return rp=lp(rp,e,t,n,r,i),!0;case`mouseover`:return ip=lp(ip,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return ap.set(a,lp(ap.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,op.set(a,lp(op.get(a)||null,e,t,n,r,i)),!0}return!1}function up(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(){Kf(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Je(e.priority,function(){Kf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zf(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ht=r,n.target.dispatchEvent(r),Ht=null}else return t=ot(n),t!==null&&Gf(t),e.blockedOn=n,!1;t.shift()}return!0}function fp(e,t,n){dp(e)&&n.delete(t)}function See(){tp=!1,np!==null&&dp(np)&&(np=null),rp!==null&&dp(rp)&&(rp=null),ip!==null&&dp(ip)&&(ip=null),ap.forEach(fp),op.forEach(fp)}function pp(e,n){e.blockedOn===n&&(e.blockedOn=null,tp||(tp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,See)))}var mp=null;function hp(e){mp!==e&&(mp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){mp===e&&(mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if($f(r||n)===null)continue;break}var a=ot(n);a!==null&&(e.splice(t,3),t-=3,us(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function gp(e){function t(t){return pp(t,e)}np!==null&&pp(np,e),rp!==null&&pp(rp,e),ip!==null&&pp(ip,e),ap.forEach(t),op.forEach(t);for(var n=0;n<sp.length;n++){var r=sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<sp.length&&(n=sp[0],n.blockedOn===null);)up(n),n.blockedOn===null&&sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ze]||null;if(typeof a==`function`)o||hp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ze]||null)s=o.formAction;else if($f(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),hp(n)}}}function Cee(){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 _p(e){this._internalRoot=e}vp.prototype.render=_p.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;Hf(n,iu(),e,t,null,null)},vp.prototype.unmount=_p.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hf(e.current,2,null,e,null,null),du(),t[Qe]=null}};function vp(e){this._internalRoot=e}vp.prototype.unstable_scheduleHydration=function(e){if(e){var t=qe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sp.length&&t!==0&&t<sp[n].priority;n++);sp.splice(n,0,e),n===0&&up(e)}};var yp=n.version;if(yp!==`19.2.7`)throw Error(i(527,yp,`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 bp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var xp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xp.isDisabled&&xp.supportsFiber)try{we=xp.inject(bp),Te=xp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ms,s=Ns,c=Ps;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Bf(e,1,!1,null,null,n,r,null,o,s,c,Cee),e[Qe]=t.current,pd(e),new _p(t)}})),hn=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=mn()}))(),gn=`__rc_react_root__`;function _n(e,t){let n=t[gn]||(0,hn.createRoot)(t);n.render(e),t[gn]=n}async function vn(e){return Promise.resolve().then(()=>{e[gn]?.unmount(),delete e[gn]})}var yn=l(ree()),bn=h.createContext({}),xn=e=>{let{children:t,...n}=e,r=h.useMemo(()=>({motion:n.motion}),[n.motion]);return h.createElement(bn.Provider,{value:r},t)},Sn=`none`,Cn=`appear`,wn=`enter`,Tn=`leave`,En=`none`,Dn=`prepare`,On=`start`,kn=`active`,iee=`prepared`;function An(e,t){let n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function aee(e,t){let n={animationend:An(`Animation`,`AnimationEnd`),transitionend:An(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var jn=aee(me(),typeof window<`u`?window:{}),Mn={};me()&&({style:Mn}=document.createElement(`div`));var Nn={};function Pn(e){if(Nn[e])return Nn[e];let t=jn[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 Mn)return Nn[e]=t[r],Nn[e]}}return``}var Fn=Pn(`animationend`),In=Pn(`transitionend`),Ln=!!(Fn&&In),Rn=Fn||`animationend`,zn=In||`transitionend`;function Bn(e,t){return e?typeof e==`object`?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}var oee=(e=>{let t=(0,h.useRef)();function n(t){t&&(t.removeEventListener(zn,e),t.removeEventListener(Rn,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(zn,e),r.addEventListener(Rn,e),t.current=r)}return h.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),Vn=me()?h.useLayoutEffect:h.useEffect,see=(()=>{let e=h.useRef(null);function t(){en.cancel(e.current)}function n(r,i=2){t();let a=en(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return h.useEffect(()=>()=>{t()},[]),[n,t]}),Hn=[Dn,On,kn,`end`],Un=[Dn,iee];function Wn(e){return e===`active`||e===`end`}var Gn=((e,t,n)=>{let[r,i]=ve(En),[a,o]=see();function s(){i(Dn,!0)}let c=t?Un:Hn;return Vn(()=>{if(r!==`none`&&r!==`end`){let e=c[c.indexOf(r)+1],t=n(r);t===!1?i(e,!0):e&&a(n=>{function r(){n.isCanceled()||i(e,!0)}t===!0?r():Promise.resolve(t).then(r)})}},[e,r]),h.useEffect(()=>()=>{o()},[]),[s,r]});function Kn(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:a=!0,motionDeadline:o,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:d,onEnterStart:f,onLeaveStart:p,onAppearActive:m,onEnterActive:g,onLeaveActive:_,onAppearEnd:v,onEnterEnd:y,onLeaveEnd:b,onVisibleChanged:x}){let[S,C]=h.useState(),[w,T]=Ee(Sn),[E,D]=h.useState([null,null]),O=w(),k=(0,h.useRef)(!1),A=(0,h.useRef)(null);function j(){return n()}let M=(0,h.useRef)(!1);function N(){T(Sn),D([null,null])}let P=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]=oee(P),I=e=>{switch(e){case Cn:return{[Dn]:c,[On]:d,[kn]:m};case wn:return{[Dn]:l,[On]:f,[kn]:g};case Tn:return{[Dn]:u,[On]:p,[kn]:_};default:return{}}},L=h.useMemo(()=>I(O),[O]),[R,z]=Gn(O,!e,e=>{if(e===`prepare`){let e=L[Dn];return e?e(j()):!1}return e in L&&D([L[e]?.(j(),null)||null,e]),e===`active`&&O!==`none`&&(F(j()),o>0&&(clearTimeout(A.current),A.current=setTimeout(()=>{P({deadline:!0})},o))),e===`prepared`&&N(),!0});M.current=Wn(z);let B=(0,h.useRef)(null);Vn(()=>{if(k.current&&B.current===t)return;C(t);let n=k.current;k.current=!0;let o;!n&&t&&i&&(o=Cn),n&&t&&r&&(o=wn),(n&&!t&&a||!n&&s&&!t&&a)&&(o=Tn);let c=I(o);o&&(e||c.prepare)?(T(o),R()):T(Sn),B.current=t},[t]),(0,h.useEffect)(()=>{(O===`appear`&&!i||O===`enter`&&!r||O===`leave`&&!a)&&T(Sn)},[i,r,a]),(0,h.useEffect)(()=>()=>{k.current=!1,clearTimeout(A.current)},[]);let V=h.useRef(!1);(0,h.useEffect)(()=>{S&&(V.current=!0),S!==void 0&&O===`none`&&((V.current||S)&&x?.(S),V.current=!0)},[S,O]);let H=E[0];L.prepare&&z===`start`&&(H={transition:`none`,...H});let U=E[1];return[w,z,H,S??t,!k.current&&O===`none`&&e&&i?`NONE`:z===`start`||z===`active`?U===z:!0]}function qn(e){return e?.length<2}function Jn(e){let t=e;typeof e==`object`&&({transitionSupport:t}=e);function n(e,n){return!!(e.motionName&&t&&n!==!1)}let r=h.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:i=!0,forceRender:a,children:o,motionName:s,leavedClassName:c,eventProps:l}=e,{motion:u}=h.useContext(bn),d=n(e,u),f=(0,h.useRef)();function p(){return rt(f.current)}let[g,_,v,y,b]=Kn(d,r,p,e),x=g(),S=h.useRef(y);y&&(S.current=!0);let C=h.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>g()!==Sn},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);h.useImperativeHandle(t,()=>C,[]);let w=h.useRef(0);b&&(w.current+=1);let T=h.useMemo(()=>{if(b===`NONE`)return null;let e,t={...l,visible:r};if(!o)e=null;else if(x===`none`)e=y?o({...t},f):!i&&S.current&&c?o({...t,className:c},f):a||!i&&!c?o({...t,style:{display:`none`}},f):null;else{let n;_===`prepare`?n=`prepare`:Wn(_)?n=`active`:_===`start`&&(n=`start`);let r=Bn(s,`${x}-${n}`);e=o({...t,className:m(Bn(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 Yn=Jn(Ln),Xn=`keep`,Zn=`remove`,Qn=`removed`;function $n(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},{...t,key:String(t.key)}}function er(e=[]){return e.map($n)}function tr(e=[],t=[]){let n=[],r=0,i=t.length,a=er(e),o=er(t);a.forEach(e=>{let t=!1;for(let a=r;a<i;a+=1){let i=o[a];if(i.key===e.key){r<a&&(n=n.concat(o.slice(r,a).map(e=>({...e,status:`add`}))),r=a),n.push({...i,status:Xn}),r+=1,t=!0;break}}t||n.push({...e,status:Zn})}),r<i&&(n=n.concat(o.slice(r).map(e=>({...e,status:`add`}))));let s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==`remove`),n.forEach(t=>{t.key===e&&(t.status=Xn)})}),n}function nr(){return nr=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},nr.apply(this,arguments)}var rr=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`];function ir(e,t=Yn){class n extends h.Component{static defaultProps={component:`div`};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:tr(t,er(e)).filter(e=>{let n=t.find(({key:t})=>e.key===t);return!(n&&n.status===`removed`&&e.status===`remove`)})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key===e?{...t,status:Qn}:t)}),()=>{let{keyEntities:e}=this.state;e.filter(({status:e})=>e!==`removed`).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:e}=this.state,{component:n,children:r,onVisibleChanged:i,onAllRemoved:a,...o}=this.props,s=n||h.Fragment,c={};return rr.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,nr({},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 ar=ir(Ln),or=Yn;function sr(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 cr(e){if(Array.isArray(e))return sr(e)}function lr(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ur(e,t){if(e){if(typeof e==`string`)return sr(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)?sr(e,t):void 0}}function dr(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fr(e){return cr(e)||lr(e)||ur(e)||dr()}var pr=e=>e!=null,mr=e=>pr(e)&&e!==!1&&e!==``,hr=e=>typeof e==`number`&&!Number.isNaN(e),gr=e=>typeof e==`string`,_r=e=>typeof e==`object`&&!!e,vr=e=>typeof e==`function`,yr=e=>pr(e)&&vr(e.then),br=e=>typeof e!=`object`&&!vr(e)||e===null,xr=e=>_r(e)&&`propertyName`in e&&gr(e.propertyName),Sr=(e,t)=>{let n={...e};return Object.keys(t).forEach(e=>{t[e]._default?n[e]||(n[e]={}):n[e]=Sr(n[e],t[e])}),n},Cr=(e={},...t)=>t.filter(e=>!!e).reduce((t,n)=>(Object.keys(n).forEach(r=>{let i=e[r],a=n[r];if(i)if(_r(a))t[r]=Cr(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),{}),wr=(e,...t)=>h.useMemo(()=>Cr.apply(void 0,[e].concat(t)),[e].concat(t)),Tr=(...e)=>e.filter(e=>!!e).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),Er=(...e)=>h.useMemo(()=>Tr.apply(void 0,e),[].concat(e)),Dr=e=>h.useMemo(()=>e?{root:e}:void 0,[e]),Or=(e,t)=>vr(e)?e(t):e,kr=(e,t,n,r)=>{let i=e.map(e=>e?Or(e,n):void 0),a=t.map(e=>e?Or(e,n):void 0),o=wr.apply(void 0,[r].concat(fr(i))),s=Er.apply(void 0,fr(a));return h.useMemo(()=>r?[Sr(o,r),Sr(s,r)]:[o,s],[o,s,r])};function Ar(){}var{resetWarned:jr}=Lt,Mr=h.createContext({}),Nr=()=>{let e=()=>{};return e.deprecated=Ar,e},Pr=`anticon`,Fr=[`outlined`,`borderless`,`filled`,`underlined`],Ir=h.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:Pr}),{Consumer:Lr}=Ir,Rr={};function zr(e){let t=h.useContext(Ir),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t;return{classNames:Rr,styles:Rr,...t[e],getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}}function Br(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 Vr=`%`;function Hr(e){return e.join(Vr)}var Ur=0,Wr=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(Hr(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(Hr(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,Ur),Ur+=1)}},Gr=`data-token-hash`,Kr=`data-css-hash`,qr=`__cssinjs_instance__`;function Jr(){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[qr]||=e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${Kr}]`)).forEach(t=>{let n=t.getAttribute(Kr);r[n]?t.__cssinjs_instance__===e&&t.parentNode?.removeChild(t):r[n]=!0})}return new Wr(e)}var Yr=h.createContext({hashPriority:`low`,cache:Jr(),defaultCache:!0,autoPrefix:!1});function Xr(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 Zr=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=>!Xr(t,e)),this.deleteByPath(this.cache,e)}},Qr=0,$r=class{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=Qr,e.length===0&&e.length,Qr+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},ei=new Zr;function ti(e){let t=Array.isArray(e)?e:[e];return ei.has(t)||ei.set(t,new $r(t)),ei.get(t)}var ni=new WeakMap,ri={};function ii(e,t){let n=ni;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(ri)||n.set(ri,e()),n.get(ri)}var ai=new WeakMap;function oi(e){let t=ai.get(e)||``;return t||(Object.keys(e).forEach(n=>{let r=e[n];t+=n,r instanceof $r?t+=r.id:r&&typeof r==`object`?t+=oi(r):t+=r}),t=Br(t),ai.set(e,t)),t}function si(e,t){return Br(`${t}_${oi(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var ci=me();function q(e){return typeof e==`number`?`${e}px`:e}function li(e){let{hashCls:t,hashPriority:n=`low`}=e||{};if(!t)return``;let r=`.${t}`;return n===`low`?`:where(${r})`:r}var ui=e=>e!=null;function di(e,t){let n=typeof t==`function`?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}var fi=(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(),pi=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,scope:a}=n||{};if(!Object.keys(e).length)return``;let o=`${li({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(``)}}`},mi=(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=fi(e,a);l[n]=typeof t==`number`&&!o?.[e]?`${t}px`:String(t),u[e]=`var(${n})`}}),[u,pi(l,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},hi=new Map;function gi(e,t,n,r,i){let{cache:a}=h.useContext(Yr),o=Hr([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]),hi.has(o)||(i?.(c),hi.set(o,!0),Promise.resolve().then(()=>{hi.delete(o)})),()=>{a.opUpdate(o,e=>{let[t=0,n]=e||[];return t-1==0?(r?.(n,!1),hi.delete(o),null):[t-1,n]})}),[o]),c}var _i={},vi=`css`,yi=new Map;function bi(e){yi.set(e,(yi.get(e)||0)+1)}function xi(e,t){typeof document<`u`&&document.querySelectorAll(`style[${Gr}="${e}"]`).forEach(e=>{e.__cssinjs_instance__===t&&e.parentNode?.removeChild(e)})}var Si=-1;function Ci(e,t){yi.set(e,(yi.get(e)||0)-1);let n=new Set;yi.forEach((e,t)=>{e<=0&&n.add(t)}),yi.size-n.size>Si&&n.forEach(e=>{xi(e,t),yi.delete(e)})}var wi=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},Ti=`token`;function Ei(e,t,n){let{cache:{instanceId:r},container:i,hashPriority:a}=(0,h.useContext)(Yr),{salt:o=``,override:s=_i,formatToken:c,getComputedToken:l,cssVar:u,nonce:d}=n,f=ii(()=>Object.assign({},...t),t),p=oi(f),m=oi(s),g=oi(u);return gi(Ti,[o,e.id,p,m,g],()=>{let t=l?l(f,s,e):wi(f,s,e,c),n={...t},r=`${o}_${u.prefix}`,i=Br(r),d=`${vi}-${i}`;n._tokenKey=si(n,r);let[p,m]=mi(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,bi(u.key),[p,d,n,m,u.key]},([,,,,e])=>{Ci(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:Kr,prepend:`queue`,attachTo:i,priority:-999};n=di(n,d);let a=tt(e,Br(`css-var-${t}`),n);a[qr]=r,a.setAttribute(Gr,t)})}var Di={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},Oi=`-ms-`,ki=`-moz-`,Ai=`-webkit-`,ji=`comm`,Mi=`rule`,Ni=`decl`,Pi=`@import`,Fi=`@namespace`,Ii=`@keyframes`,Li=`@layer`,Ri=Math.abs,zi=String.fromCharCode,Bi=Object.assign;function Vi(e,t){return Ki(e,0)^45?(((t<<2^Ki(e,0))<<2^Ki(e,1))<<2^Ki(e,2))<<2^Ki(e,3):0}function Hi(e){return e.trim()}function Ui(e,t){return(e=t.exec(e))?e[0]:e}function Wi(e,t,n){return e.replace(t,n)}function Gi(e,t){return e.indexOf(t)}function Ki(e,t){return e.charCodeAt(t)|0}function qi(e,t,n){return e.slice(t,n)}function Ji(e){return e.length}function Yi(e){return e.length}function Xi(e,t){return t.push(e),e}function Zi(e,t){return e.map(t).join(``)}function Qi(e,t){return e.filter(function(e){return!Ui(e,t)})}var $i=1,ea=1,ta=0,na=0,ra=0,ia=``;function aa(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:$i,column:ea,length:o,return:``,siblings:s}}function oa(e,t){return Bi(aa(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function sa(e){for(;e.root;)e=oa(e.root,{children:[e]});Xi(e,e.siblings)}function ca(){return ra}function la(){return ra=na>0?Ki(ia,--na):0,ea--,ra===10&&(ea=1,$i--),ra}function ua(){return ra=na<ta?Ki(ia,na++):0,ea++,ra===10&&(ea=1,$i++),ra}function da(){return Ki(ia,na)}function fa(){return na}function pa(e,t){return qi(ia,e,t)}function ma(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 ha(e){return $i=ea=1,ta=Ji(ia=e),na=0,[]}function ga(e){return ia=``,e}function _a(e){return Hi(pa(na-1,ba(e===91?e+2:e===40?e+1:e)))}function va(e){for(;(ra=da())&&ra<33;)ua();return ma(e)>2||ma(ra)>3?``:` `}function ya(e,t){for(;--t&&ua()&&!(ra<48||ra>102||ra>57&&ra<65||ra>70&&ra<97););return pa(e,fa()+(t<6&&da()==32&&ua()==32))}function ba(e){for(;ua();)switch(ra){case e:return na;case 34:case 39:e!==34&&e!==39&&ba(ra);break;case 40:e===41&&ba(e);break;case 92:ua();break}return na}function xa(e,t){for(;ua()&&e+ra!==57&&!(e+ra===84&&da()===47););return`/*`+pa(t,na-1)+`*`+zi(e===47?e:ua())}function Sa(e){for(;!ma(da());)ua();return pa(e,na)}function Ca(e){return ga(wa(``,null,null,null,[``],e=ha(e),0,[0],e))}function wa(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=ua()){case 40:m!=108&&Ki(w,d-1)==58?(v++,w+=`(`):w+=_a(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=_a(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=zi(y);break}w+=va(m);break;case 92:w+=ya(fa()-1,7);continue;case 47:switch(da()){case 42:case 47:Xi(Ea(xa(ua(),fa()),t,n,c),c),(ma(m||1)==5||ma(da()||1)==5)&&Ji(w)&&qi(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=Ji(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=zi(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Wi(w,/\f/g,``)),p>0&&(Ji(w)-d||h===0)&&Xi(p>32?Da(w+`;`,r,n,d-1,c):Da(Wi(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(Xi(C=Ta(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)wa(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Ki(w,3)===110)break;case 108:if(Ki(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?wa(e,C,C,r&&Xi(Ta(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):wa(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+Ji(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&la()==125)continue}switch(w+=zi(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(Ji(w)-1)*_,_=1;break;case 64:da()===45&&(w+=_a(ua())),f=da(),u=d=Ji(b=w+=Sa(fa())),y++;break;case 45:m===45&&Ji(w)==2&&(h=0)}}return a}function Ta(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Yi(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=qi(e,f+1,f=Ri(g=o[h])),b=e;v<m;++v)(b=Hi(g>0?p[v]+` `+y:Wi(y,/&\f/g,p[v])))&&(c[_++]=b);return aa(e,t,n,i===0?Mi:s,c,l,u,d)}function Ea(e,t,n,r){return aa(e,t,n,ji,zi(ca()),qi(e,2,-2),0,r)}function Da(e,t,n,r,i){return aa(e,t,n,Ni,qi(e,0,r),qi(e,r+1,-1),r,i)}function Oa(e,t,n){switch(Vi(e,t)){case 5103:return Ai+`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 Ai+e+e;case 4855:return Ai+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return ki+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+ki+e+Oi+e+e;case 5936:switch(Ki(e,t+11)){case 114:return Ai+e+Oi+Wi(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Ai+e+Oi+Wi(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Ai+e+Oi+Wi(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return Ai+e+Oi+e+e;case 6165:return Ai+e+Oi+`flex-`+e+e;case 5187:return Ai+e+Wi(e,/(\w+).+(:[^]+)/,Ai+`box-$1$2`+Oi+`flex-$1$2`)+e;case 5443:return Ai+e+Oi+`flex-item-`+Wi(e,/flex-|-self/g,``)+(Ui(e,/flex-|baseline/)?``:Oi+`grid-row-`+Wi(e,/flex-|-self/g,``))+e;case 4675:return Ai+e+Oi+`flex-line-pack`+Wi(e,/align-content|flex-|-self/g,``)+e;case 5548:return Ai+e+Oi+Wi(e,`shrink`,`negative`)+e;case 5292:return Ai+e+Oi+Wi(e,`basis`,`preferred-size`)+e;case 6060:return Ai+`box-`+Wi(e,`-grow`,``)+Ai+e+Oi+Wi(e,`grow`,`positive`)+e;case 4554:return Ai+Wi(e,/([^-])(transform)/g,`$1`+Ai+`$2`)+e;case 6187:return Wi(Wi(Wi(e,/(zoom-|grab)/,Ai+`$1`),/(image-set)/,Ai+`$1`),e,``)+e;case 5495:case 3959:return Wi(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return Wi(Wi(e,/(.+:)(flex-)?(.*)/,Ai+`box-pack:$3`+Oi+`flex-pack:$3`),/space-between/,`justify`)+Ai+e+e;case 4200:if(!Ui(e,/flex-|baseline/))return Oi+`grid-column-align`+qi(e,t)+e;break;case 2592:case 3360:return Oi+Wi(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Ui(e.props,/grid-\w+-end/)})?~Gi(e+(n=n[t].value),`span`)?e:Oi+Wi(e,`-start`,``)+e+Oi+`grid-row-span:`+(~Gi(n,`span`)?Ui(n,/\d+/):Ui(n,/\d+/)-+Ui(e,/\d+/))+`;`:Oi+Wi(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return Ui(e.props,/grid-\w+-start/)})?e:Oi+Wi(Wi(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return Wi(e,/(.+)-inline(.+)/,Ai+`$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(Ji(e)-1-t>6)switch(Ki(e,t+1)){case 109:if(Ki(e,t+4)!==45)break;case 102:return Wi(e,/(.+:)(.+)-([^]+)/,`$1`+Ai+`$2-$3$1`+ki+(Ki(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Gi(e,`stretch`)?Oa(Wi(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return Wi(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return Oi+n+`:`+r+s+(i?Oi+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(Ki(e,t+6)===121)return Wi(e,`:`,`:`+Ai)+e;break;case 6444:switch(Ki(e,Ki(e,14)===45?18:11)){case 120:return Wi(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+Ai+(Ki(e,14)===45?`inline-`:``)+`box$3$1`+Ai+`$2$3$1`+Oi+`$2box$3`)+e;case 100:return Wi(e,`:`,`:`+Oi)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Wi(e,`scroll-`,`scroll-snap-`)+e}return e}function ka(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Aa(e,t,n,r){switch(e.type){case Li:if(e.children.length)break;case Pi:case Fi:case Ni:return e.return=e.return||e.value;case ji:return``;case Ii:return e.return=e.value+`{`+ka(e.children,r)+`}`;case Mi:if(!Ji(e.value=e.props.join(`,`)))return``}return Ji(n=ka(e.children,r))?e.return=e.value+`{`+n+`}`:``}function ja(e){var t=Yi(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 Ma(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ni:e.return=Oa(e.value,e.length,n);return;case Ii:return ka([oa(e,{value:Wi(e.value,`@`,`@`+Ai)})],r);case Mi:if(e.length)return Zi(n=e.props,function(t){switch(Ui(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:sa(oa(e,{props:[Wi(t,/:(read-\w+)/,`:`+ki+`$1`)]})),sa(oa(e,{props:[t]})),Bi(e,{props:Qi(n,r)});break;case`::placeholder`:sa(oa(e,{props:[Wi(t,/:(plac\w+)/,`:`+Ai+`input-$1`)]})),sa(oa(e,{props:[Wi(t,/:(plac\w+)/,`:`+ki+`$1`)]})),sa(oa(e,{props:[Wi(t,/:(plac\w+)/,Oi+`input-$1`)]})),sa(oa(e,{props:[t]})),Bi(e,{props:Qi(n,r)});break}return``})}}var Na=`data-ant-cssinjs-cache-path`,Pa=`_FILE_STYLE__`,Fa,Ia=!0;function La(){if(!Fa&&(Fa={},me())){let e=document.createElement(`div`);e.className=Na,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(`:`);Fa[t]=n});let n=document.querySelector(`style[${Na}]`);n&&(Ia=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function Ra(e){return La(),!!Fa[e]}function za(e){let t=Fa[e],n=null;if(t&&me())if(Ia)n=Pa;else{let t=document.querySelector(`style[${Kr}="${Fa[e]}"]`);t?n=t.innerHTML:delete Fa[e]}return[n,t]}var Ba=`_skip_check_`,Va=`_multi_value_`;function Ha(e,t){return(t?ka(Ca(e),ja([Ma,Aa])):ka(Ca(e),Aa)).replace(/\{%%%\:[^;];}/g,`;`)}function Ua(e){return typeof e==`object`&&e&&(Ba in e||Va in e)}function Wa(e,t,n=`high`){if(!t)return e;let r=li({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 Ga=(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]=Ga(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)&&!Ua(s)){let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith(`@`)?e=!0:l=Wa(l===`&`?``:o,a,c):n&&!a&&(l===`&`||l===``)&&(l=``,u=!0);let[p,m]=Ga(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;!Di[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?.[Va]&&Array.isArray(t)?t.forEach(t=>{e(o,t)}):ui(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 Ka(e,t){return Br(`${e.join(`%`)}${t}`)}var qa=`style`;function Ja(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(Yr),_=[r||``];m&&_.push(`layer`),_.push(...n);let v=ci;gi(qa,_,()=>{let e=_.join(`|`);if(Ra(e)){let[t,n]=za(e);if(t)return[t,n,{},o,s]}let[a,c]=Ga(t(),{hashId:r,hashPriority:l,layer:m?i:void 0,path:n.join(`-`),transformers:d,linters:f}),u=Ha(a,g||!1);return[u,Ka(_,u),c,o,s]},(e,t)=>{let[,n]=e;t&&ci&&$e(n,{mark:Kr,attachTo:u})},e=>{let[t,n,r,,i]=e;if(v&&t!==`_FILE_STYLE__`){let e={mark:Kr,prepend:m?!1:`queue`,attachTo:u,priority:i};e=di(e,a);let o=[],s=[];Object.keys(r).forEach(e=>{e.startsWith(`@layer`)?o.push(e):s.push(e)}),o.forEach(t=>{tt(Ha(r[t],g||!1),`_layer-${t}`,{...e,prepend:!0})});let c=tt(t,n,e);c[qr]=p.instanceId,s.forEach(t=>{tt(Ha(r[t],g||!1),`_effect-${t}`,e)})}})}var Ya=`cssVar`,Xa=(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)(Yr),{_tokenKey:p}=o,m=Array.isArray(c)?c.join(`@@`):c,g=[...e.path,n,m,p];return gi(Ya,g,()=>{let[e,o]=mi(t(),n,{prefix:r,unitless:i,ignore:a,scope:c,hashPriority:f,hashCls:s});return[e,o,Ka(g,o),n]},([,,e])=>{ci&&$e(e,{mark:Kr,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:Kr,prepend:`queue`,attachTo:d,priority:-999};r=di(r,l);let i=tt(e,t,r);i[qr]=u,i.setAttribute(Gr,n)})},Za=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=``){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function Qa(e){return e.notSplit=!0,e}Qa([`borderTop`,`borderBottom`]),Qa([`borderTop`]),Qa([`borderBottom`]),Qa([`borderLeft`,`borderRight`]),Qa([`borderLeft`]),Qa([`borderRight`]);var $a={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},eo=(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}),to=()=>({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`}}),no=new Za(`loadingCircle`,{"100%":{transform:`rotate(360deg)`}}),ro=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),io=(e,t)=>({outline:`${q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),ao=(e,t)=>({"&:focus-visible":io(e,t)}),oo=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},...ao(e),"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),so=(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}}},co=e=>({[`.${e}`]:{...to(),[`.${e} .${e}-icon`]:{display:`block`}},[`.${e}-spin`]:{animationName:no,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`}}),lo=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:`none`,userSelect:`none`,...ao(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}});function uo(e){"@babel/helpers - typeof";return uo=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},uo(e)}function fo(e){if(Array.isArray(e))return e}function cee(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function po(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mo(e,t){return fo(e)||cee(e,t)||ur(e,t)||po()}function ho(e,t){if(uo(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uo(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function go(e){var t=ho(e,`string`);return uo(t)==`symbol`?t:t+``}function _o(e,t,n){return(t=go(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vo(Object(n),!0).forEach(function(t){_o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bo(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,go(r.key),r)}}function So(e,t,n){return t&&xo(e.prototype,t),n&&xo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Co(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function wo(e,t){return wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wo(e,t)}function To(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wo(e,t)}function Eo(e){return Eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Eo(e)}function Do(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Do=function(){return!!e})()}function Oo(e,t){if(t&&(uo(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Co(e)}function ko(e){var t=Do();return function(){var n,r=Eo(e);if(t){var i=Eo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Oo(this,n)}}var Ao=So(function e(){bo(this,e)}),jo=`CALC_UNIT`,Mo=new RegExp(jo,`g`);function No(e){return typeof e==`number`?`${e}${jo}`:e}var lee=function(e){To(n,e);var t=ko(n);function n(e,r){var i;bo(this,n),i=t.call(this),_o(Co(i),`result`,``),_o(Co(i),`unitlessCssVar`,void 0),_o(Co(i),`lowPriority`,void 0);var a=uo(e);return i.unitlessCssVar=r,e instanceof n?i.result=`(${e.result})`:a===`number`?i.result=No(e):a===`string`&&(i.result=e),i}return So(n,[{key:`add`,value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} + ${No(e)}`),this.lowPriority=!0,this}},{key:`sub`,value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} - ${No(e)}`),this.lowPriority=!0,this}},{key:`mul`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:`div`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:`getResult`,value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:`equal`,value:function(e){var t=this,n=(e||{}).unit,r=!0;return typeof n==`boolean`?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(Mo,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(Ao),Po=function(e){To(n,e);var t=ko(n);function n(e){var r;return bo(this,n),r=t.call(this),_o(Co(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return So(n,[{key:`add`,value:function(e){return e instanceof n?this.result+=e.result:typeof e==`number`&&(this.result+=e),this}},{key:`sub`,value:function(e){return e instanceof n?this.result-=e.result:typeof e==`number`&&(this.result-=e),this}},{key:`mul`,value:function(e){return e instanceof n?this.result*=e.result:typeof e==`number`&&(this.result*=e),this}},{key:`div`,value:function(e){return e instanceof n?this.result/=e.result:typeof e==`number`&&(this.result/=e),this}},{key:`equal`,value:function(){return this.result}}]),n}(Ao),Fo=function(e,t){var n=e===`css`?lee:Po;return function(e){return new n(e,t)}},Io=function(e,t){return`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`)].filter(Boolean).join(`-`)}`};function Lo(e,t,n,r){var i=yo({},t[e]);r!=null&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=mo(e,2),n=t[0],r=t[1];(i!=null&&i[n]||i!=null&&i[r])&&(i[r]??(i[r]=i?.[n]))});var a=yo(yo({},n),i);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var Ro=typeof CSSINJS_STATISTIC<`u`,zo=!0;function Bo(){var e=[...arguments];if(!Ro)return Object.assign.apply(Object,[{}].concat(e));zo=!1;var t={};return e.forEach(function(e){uo(e)===`object`&&Object.keys(e).forEach(function(n){Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return e[n]}})})}),zo=!0,t}var Vo={};function Ho(){}var Uo=function(e){var t,n=e,r=Ho;return Ro&&typeof Proxy<`u`&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(zo){var r;(r=t)==null||r.add(n)}return e[n]}}),r=function(e,n){Vo[e]={global:Array.from(t),component:yo(yo({},Vo[e]?.component),n)}}),{token:n,keys:t,flush:r}};function Wo(e,t,n){return typeof n==`function`?n(Bo(t,t[e]??{})):n??{}}function Go(e){return e===`js`?{max:Math.max,min:Math.min}:{max:function(){return`max(${[...arguments].map(function(e){return q(e)}).join(`,`)})`},min:function(){return`min(${[...arguments].map(function(e){return q(e)}).join(`,`)})`}}}var Ko=1e3*60*10,qo=new(function(){function e(){bo(this,e),_o(this,`map`,new Map),_o(this,`objectIDMap`,new WeakMap),_o(this,`nextID`,0),_o(this,`lastAccessBeat`,new Map),_o(this,`accessBeat`,0)}return So(e,[{key:`set`,value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:`get`,value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:`getCompositeKey`,value:function(e){var t=this;return e.map(function(e){return e&&uo(e)===`object`?`obj_${t.getObjectID(e)}`:`${uo(e)}_${e}`}).join(`|`)}},{key:`getObjectID`,value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:`clear`,value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>Ko&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function Jo(e,t){return h.useMemo(function(){var n=qo.get(t);if(n)return n;var r=e();return qo.set(t,r),r},t)}var Yo=function(){return{}};function Xo(e){var t=e.useCSP,n=t===void 0?Yo:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=r?.unitless||{},c=yo(yo({},typeof s==`function`?s(e):{}),{},_o({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=yo(yo({},r),{},{unitless:c,prefixToken:a}),f=u(e,t,n,d),p=l(i,n,d);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=f(e,t),i=r?.extraCssVarPrefixCls,a=typeof i==`function`?i({prefixCls:e,rootCls:t}):i;return[n,p(a!=null&&a.length?[t].concat(fr(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 Xa({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=Wo(e,d,t),r=Lo(e,d,n,{deprecatedTokens:i?.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[o(e)]=r[e],delete r[e]}),r}),u?.key}}function u(t,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=mo(u,1)[0],f=u.join(`-`),p=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,u=r(),m=u.theme,g=u.realToken,_=u.hashId,v=u.token,y=u.cssVar,b=u.zeroRuntime;if((0,h.useMemo)(function(){return b},[]))return _;var x=i(),S=x.rootPrefixCls,C=x.iconPrefixCls,w=n(),T=`css`,E=Jo(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(fi(t,y.prefix)),e.add(fi(t,Io(d,y.prefix)))}),Fo(T,e)},[T,d,y?.prefix]),D=Go(T),O=D.max,k=D.min,A={theme:m,token:v,hashId:_,nonce:function(){return w.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};return typeof a==`function`&&Ja(yo(yo({},A),{},{clientOnly:!1,path:[`Shared`,S]}),function(){return a(v,{prefix:{rootPrefixCls:S,iconPrefixCls:C},csp:w})}),Ja(yo(yo({},A),{},{path:[f,e,C]}),function(){if(l.injectStyle===!1)return[];var n=Uo(v),r=n.token,i=n.flush,a=Wo(d,g,c),u=`.${e}`,f=Lo(d,g,a,{deprecatedTokens:l.deprecatedTokens});a&&uo(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${fi(e,Io(d,y.prefix))})`});var p=Bo(r,{componentCls:u,prefixCls:e,iconCls:`.${C}`,antCls:`.${S}`,calc:E,max:O,min:k},a),m=s(p,{hashId:_,prefixCls:e,rootPrefixCls:S,iconPrefixCls:C});i(d,f);var h=typeof o==`function`?o(p,e,t,l.resetFont):null;return[l.resetStyle===!1?null:h,m]}),_}}function d(e,t,n){var r=u(e,t,n,yo({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null}}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:u}}var Zo=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function Qo(e){return(e+8)/e}function $o(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:Qo(e)}))}var es=`6.5.0`,ts={blue:`#1677FF`,purple:`#722ED1`,cyan:`#13C2C2`,green:`#52C41A`,magenta:`#EB2F96`,pink:`#EB2F96`,red:`#F5222D`,orange:`#FA8C16`,yellow:`#FADB14`,volcano:`#FA541C`,geekblue:`#2F54EB`,gold:`#FAAD14`,lime:`#A0D911`},ns={...ts,colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||
'Noto Color Emoji'`,fontFamilyCode:`'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,fontSize:14,lineWidth:1,lineType:`solid`,motionUnit:.1,motionBase:0,motionEaseOutCirc:`cubic-bezier(0.08, 0.82, 0.17, 1)`,motionEaseInOutCirc:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,motionEaseOut:`cubic-bezier(0.215, 0.61, 0.355, 1)`,motionEaseInOut:`cubic-bezier(0.645, 0.045, 0.355, 1)`,motionEaseOutBack:`cubic-bezier(0.12, 0.4, 0.29, 1.46)`,motionEaseInBack:`cubic-bezier(0.71, -0.46, 0.88, 0.6)`,motionEaseInQuint:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,motionEaseOutQuint:`cubic-bezier(0.23, 1, 0.32, 1)`,borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},rs={aliceblue:`9ehhb`,antiquewhite:`9sgk7`,aqua:`1ekf`,aquamarine:`4zsno`,azure:`9eiv3`,beige:`9lhp8`,bisque:`9zg04`,black:`0`,blanchedalmond:`9zhe5`,blue:`73`,blueviolet:`5e31e`,brown:`6g016`,burlywood:`8ouiv`,cadetblue:`3qba8`,chartreuse:`4zshs`,chocolate:`87k0u`,coral:`9yvyo`,cornflowerblue:`3xael`,cornsilk:`9zjz0`,crimson:`8l4xo`,cyan:`1ekf`,darkblue:`3v`,darkcyan:`rkb`,darkgoldenrod:`776yz`,darkgray:`6mbhl`,darkgreen:`jr4`,darkgrey:`6mbhl`,darkkhaki:`7ehkb`,darkmagenta:`5f91n`,darkolivegreen:`3bzfz`,darkorange:`9yygw`,darkorchid:`5z6x8`,darkred:`5f8xs`,darksalmon:`9441m`,darkseagreen:`5lwgf`,darkslateblue:`2th1n`,darkslategray:`1ugcv`,darkslategrey:`1ugcv`,darkturquoise:`14up`,darkviolet:`5rw7n`,deeppink:`9yavn`,deepskyblue:`11xb`,dimgray:`442g9`,dimgrey:`442g9`,dodgerblue:`16xof`,firebrick:`6y7tu`,floralwhite:`9zkds`,forestgreen:`1cisi`,fuchsia:`9y70f`,gainsboro:`8m8kc`,ghostwhite:`9pq0v`,goldenrod:`8j4f4`,gold:`9zda8`,gray:`50i2o`,green:`pa8`,greenyellow:`6senj`,grey:`50i2o`,honeydew:`9eiuo`,hotpink:`9yrp0`,indianred:`80gnw`,indigo:`2xcoy`,ivory:`9zldc`,khaki:`9edu4`,lavenderblush:`9ziet`,lavender:`90c8q`,lawngreen:`4vk74`,lemonchiffon:`9zkct`,lightblue:`6s73a`,lightcoral:`9dtog`,lightcyan:`8s1rz`,lightgoldenrodyellow:`9sjiq`,lightgray:`89jo3`,lightgreen:`5nkwg`,lightgrey:`89jo3`,lightpink:`9z6wx`,lightsalmon:`9z2ii`,lightseagreen:`19xgq`,lightskyblue:`5arju`,lightslategray:`4nwk9`,lightslategrey:`4nwk9`,lightsteelblue:`6wau6`,lightyellow:`9zlcw`,lime:`1edc`,limegreen:`1zcxe`,linen:`9shk6`,magenta:`9y70f`,maroon:`4zsow`,mediumaquamarine:`40eju`,mediumblue:`5p`,mediumorchid:`79qkz`,mediumpurple:`5r3rv`,mediumseagreen:`2d9ip`,mediumslateblue:`4tcku`,mediumspringgreen:`1di2`,mediumturquoise:`2uabw`,mediumvioletred:`7rn9h`,midnightblue:`z980`,mintcream:`9ljp6`,mistyrose:`9zg0x`,moccasin:`9zfzp`,navajowhite:`9zest`,navy:`3k`,oldlace:`9wq92`,olive:`50hz4`,olivedrab:`472ub`,orange:`9z3eo`,orangered:`9ykg0`,orchid:`8iu3a`,palegoldenrod:`9bl4a`,palegreen:`5yw0o`,paleturquoise:`6v4ku`,palevioletred:`8k8lv`,papayawhip:`9zi6t`,peachpuff:`9ze0p`,peru:`80oqn`,pink:`9z8wb`,plum:`8nba5`,powderblue:`6wgdi`,purple:`4zssg`,rebeccapurple:`3zk49`,red:`9y6tc`,rosybrown:`7cv4f`,royalblue:`2jvtt`,saddlebrown:`5fmkz`,salmon:`9rvci`,sandybrown:`9jn1c`,seagreen:`1tdnb`,seashell:`9zje6`,sienna:`6973h`,silver:`7ir40`,skyblue:`5arjf`,slateblue:`45e4t`,slategray:`4e100`,slategrey:`4e100`,snow:`9zke2`,springgreen:`1egv`,steelblue:`2r1kk`,tan:`87yx8`,teal:`pds`,thistle:`8ggk8`,tomato:`9yqfb`,turquoise:`2j4r4`,violet:`9b10u`,wheat:`9ld4j`,white:`9zldr`,whitesmoke:`9lhpx`,yellow:`9zl6o`,yellowgreen:`61fzm`},is=Math.round;function as(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return n[3]?r[3]=n[3].includes(`%`)?r[3]/100:r[3]:r[3]=1,r}var os=(e,t,n)=>n===0?e:e/100;function ss(e,t){let n=t||255;return e>n?n:e<0?0:e}var cs=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t)if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}if(/^#?[A-F\d]{3,8}$/i.test(e))this.fromHexString(e);else if(n(`rgb`))this.fromRgbString(e);else if(n(`hsl`))this.fromHslString(e);else if(n(`hsv`)||n(`hsb`))this.fromHsvString(e);else{let t=rs[e.toLowerCase()];t&&this.fromHexString(parseInt(t,36).toString(16).padStart(6,`0`))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=ss(t.r),this.g=ss(t.g),this.b=ss(t.b),this.a=typeof t.a==`number`?ss(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}setR(e){return this._sc(`r`,e)}setG(e){return this._sc(`g`,e)}setB(e){return this._sc(`b`,e)}setA(e){return this._sc(`a`,e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=is(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(this._hsv_s===void 0){let e=this.getMax()-this.getMin();e===0?this._hsv_s=0:this._hsv_s=e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(this._hsl_s===void 0){let e=this.getMax()-this.getMin();if(e===0)this._hsl_s=0;else{let t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return this._l===void 0&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return this._v===void 0&&(this._v=this.getMax()/255),this._v}getBrightness(){return this._brightness===void 0&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:is(i(`r`)),g:is(i(`g`)),b:is(i(`b`)),a:is(i(`a`)*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>is((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=is(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=is(this.getHSLSaturation()*100),n=is(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=ss(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){let i=(e%360+360)%360;if(this._h=i,this._hsl_s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=is(n*255);this.r=e,this.g=e,this.b=e;return}let a=0,o=0,s=0,c=i/60,l=(1-Math.abs(2*n-1))*t,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);let d=n-l/2;this.r=is((a+d)*255),this.g=is((o+d)*255),this.b=is((s+d)*255)}fromHsv({h:e,s:t,v:n,a:r}){let i=(e%360+360)%360;this._h=i,this._hsv_s=t,this._v=n,this.a=typeof r==`number`?r:1;let a=is(n*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;let o=i/60,s=Math.floor(o),c=o-s,l=is(n*(1-t)*255),u=is(n*(1-t*c)*255),d=is(n*(1-t*(1-c))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=u;break;case 4:this.r=d,this.g=l;break;default:this.g=l,this.b=u;break}}fromHsvString(e){let t=as(e,os);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=as(e,os);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=as(e,(e,t)=>t.includes(`%`)?is(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},ls=2,us=.16,ds=.05,fs=.05,ps=.15,ms=5,hs=4,uee=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function gs(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ls*t:Math.round(e.h)+ls*t:n?Math.round(e.h)+ls*t:Math.round(e.h)-ls*t,r<0?r+=360:r>=360&&(r-=360),r}function _s(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return r=n?e.s-us*t:t===hs?e.s+us:e.s+ds*t,r>1&&(r=1),n&&t===ms&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function vs(e,t,n){let r;return r=n?e.v+fs*t:e.v-ps*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ys(e,t={}){let n=[],r=new cs(e),i=r.toHsv();for(let e=ms;e>0;--e){let t=new cs({h:gs(i,e,!0),s:_s(i,e,!0),v:vs(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=hs;e+=1){let t=new cs({h:gs(i,e),s:_s(i,e),v:vs(i,e)});n.push(t)}return t.theme===`dark`?uee.map(({index:e,amount:r})=>new cs(t.backgroundColor||`#141414`).mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}var bs={red:`#F5222D`,volcano:`#FA541C`,orange:`#FA8C16`,gold:`#FAAD14`,yellow:`#FADB14`,lime:`#A0D911`,green:`#52C41A`,cyan:`#13C2C2`,blue:`#1677FF`,geekblue:`#2F54EB`,purple:`#722ED1`,magenta:`#EB2F96`,grey:`#666666`},xs=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];xs.primary=xs[5];var Ss=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];Ss.primary=Ss[5];var Cs=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];Cs.primary=Cs[5];var ws=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];ws.primary=ws[5];var Ts=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];Ts.primary=Ts[5];var Es=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];Es.primary=Es[5];var Ds=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];Ds.primary=Ds[5];var Os=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];Os.primary=Os[5];var ks=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];ks.primary=ks[5];var As=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];As.primary=As[5];var js=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];js.primary=js[5];var Ms=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];Ms.primary=Ms[5];var Ns=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];Ns.primary=Ns[5];var Ps={red:xs,volcano:Ss,orange:Cs,gold:ws,yellow:Ts,lime:Es,green:Ds,cyan:Os,blue:ks,geekblue:As,purple:js,magenta:Ms,grey:Ns},Fs=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];Fs.primary=Fs[5];var Is=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];Is.primary=Is[5];var Ls=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];Ls.primary=Ls[5];var Rs=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];Rs.primary=Rs[5];var zs=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];zs.primary=zs[5];var Bs=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];Bs.primary=Bs[5];var Vs=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];Vs.primary=Vs[5];var Hs=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];Hs.primary=Hs[5];var Us=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];Us.primary=Us[5];var Ws=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];Ws.primary=Ws[5];var Gs=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];Gs.primary=Gs[5];var Ks=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];Ks.primary=Ks[5];var qs=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];qs.primary=qs[5];function Js(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new cs(p[1]).mix(new cs(p[3]),50).toHexString(),v={};return Zo.forEach(n=>{let r=e[n];if(r){let e=t(r);v[`${n}Hover`]=e[5],v[`${n}Active`]=e[7]}}),{...h,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],...v,colorBgMask:new cs(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`}}var Ys=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Xs(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...Ys(r)}}var Zs=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},dee=e=>{let t=$o(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Qs(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var $s=(e,t)=>new cs(e).setA(t).toRgbString(),ec=(e,t)=>new cs(e).darken(t).toHexString(),tc=e=>{let t=ys(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},nc=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:$s(i,.88),colorTextSecondary:$s(i,.65),colorTextTertiary:$s(i,.45),colorTextQuaternary:$s(i,.25),colorFill:$s(i,.15),colorFillSecondary:$s(i,.06),colorFillTertiary:$s(i,.04),colorFillQuaternary:$s(i,.02),colorBgSolid:$s(i,1),colorBgSolidHover:$s(i,.75),colorBgSolidActive:$s(i,.95),colorBgLayout:ec(r,4),colorBgContainer:ec(r,0),colorBgElevated:ec(r,0),colorBgSpotlight:$s(i,.85),colorBgBlur:`transparent`,colorBorder:ec(r,15),colorBorderDisabled:ec(r,15),colorBorderSecondary:ec(r,6)}};function rc(e){bs.pink=bs.magenta,Ps.pink=Ps.magenta;let t=Object.keys(ts).map(t=>{let n=e[t]===bs[t]?Ps[t]:ys(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{});return{...e,...t,...Js(e,{generateColorPalettes:tc,generateNeutralColorPalettes:nc}),...dee(e.fontSize),...Qs(e),...Zs(e),...Xs(e)}}var ic=ti(rc),ac={token:ns,override:{override:ns},hashed:!0},oc=h.createContext(ac);function sc(e){return e>=0&&e<=255}function cc(e,t){let{r:n,g:r,b:i,a}=new cs(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new cs(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(sc(t)&&sc(a)&&sc(l))return new cs({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new cs({r:n,g:r,b:i,a:1}).toRgbString()}function lc(e){let{override:t,...n}=e,r={...t};Object.keys(ns).forEach(e=>{delete r[e]});let i={...n,...r},a=new cs(i.colorShadow),o=a.a,s=e=>a.clone().setA(o*e).toRgbString(),c=1200,l=1600,u=1920;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:cc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:cc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:cc(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:cc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
||
0 6px 16px 0 ${s(.08)},
|
||
0 3px 6px -4px ${s(.12)},
|
||
0 9px 28px 8px ${s(.05)}
|
||
`,boxShadowSecondary:`
|
||
0 6px 16px 0 ${s(.08)},
|
||
0 3px 6px -4px ${s(.12)},
|
||
0 9px 28px 8px ${s(.05)}
|
||
`,boxShadowTertiary:`
|
||
0 1px 2px 0 ${s(.05)},
|
||
0 1px 6px -1px ${s(.03)},
|
||
0 2px 4px 0 ${s(.03)}
|
||
`,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,screenXXLMax:u-1,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${s(.08)}) drop-shadow(0 3px 6px ${s(.12)}) drop-shadow(0 9px 28px ${s(.05)})`,boxShadowCard:`
|
||
0 1px 2px -2px ${s(.16)},
|
||
0 3px 6px 0 ${s(.12)},
|
||
0 5px 12px 4px ${s(.09)}
|
||
`,boxShadowDrawerRight:`
|
||
-6px 0 16px 0 ${s(.08)},
|
||
-3px 0 6px -4px ${s(.12)},
|
||
-9px 0 28px 8px ${s(.05)}
|
||
`,boxShadowDrawerLeft:`
|
||
6px 0 16px 0 ${s(.08)},
|
||
3px 0 6px -4px ${s(.12)},
|
||
9px 0 28px 8px ${s(.05)}
|
||
`,boxShadowDrawerUp:`
|
||
0 6px 16px 0 ${s(.08)},
|
||
0 3px 6px -4px ${s(.12)},
|
||
0 9px 28px 8px ${s(.05)}
|
||
`,boxShadowDrawerDown:`
|
||
0 -6px 16px 0 ${s(.08)},
|
||
0 -3px 6px -4px ${s(.12)},
|
||
0 -9px 28px 8px ${s(.05)}
|
||
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...r}}var uc={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},dc={motionBase:!0,motionUnit:!0},fc={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},pc=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i,...a}=t,o={...r,override:i};return o=lc(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n,...r}=t,i=r;n&&(i=pc({...o,...r},{override:r},n)),o[e]=i}),o};function mc(){let{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:a}=h.useContext(oc),{csp:o,getPrefixCls:s}=h.useContext(Ir),c={prefix:i?.prefix??s(),key:i?.key??`css-var-root`},l=`${es}-${t||``}`,u=n||ic,[d,f,p]=Ei(u,[ns,e],{salt:l,override:r,getComputedToken:pc,cssVar:{...c,unitless:uc,ignore:dc,preserve:fc},nonce:o?.nonce});return[u,p,t?f:``,d,c,!!a]}var{genStyleHooks:hc,genComponentStyleHook:gc,genSubStyleComponent:_c}=Xo({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,h.useContext)(Ir);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=mc();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,h.useContext)(Ir);return e??{}},getResetStyles:(e,t)=>{let n=oo(e);return[n,{"&":n},co(t?.prefix.iconPrefixCls??`anticon`)]},getCommonStyle:so,getCompUnitless:()=>uc}),vc=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function yc(e,t){return Zo.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s})}},{})}var bc=(e,t)=>{let[n,r]=mc();return Ja({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>co(e))},xc=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),Sc=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:l,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m,lineWidth:h,lineType:g,colorSuccessBorder:_,colorWarningBorder:v,colorErrorBorder:y,colorInfoBorder:b}=e;return{[t]:{...eo(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}}}},Cc=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:i,colorWarningBg:a,colorError:o,colorErrorBg:s,colorInfo:c,colorInfoBg:l}=e;return{[t]:{"&-success":xc(r,n,t),"&-info":xc(l,c,t),"&-warning":xc(a,i,t),"&-error":{...xc(s,o,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},wc=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`,...ao(e),[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},Tc=hc(`Alert`,e=>[Sc(e),Cc(e),wc(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),Ec=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])},Dc=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},Oc=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}=zr(`alert`),H=k(`alert`,r),[U,W]=Tc(H),{onClose:G,afterClose:ee}=_r(_)?_:{},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(()=>_r(_)&&_.closeIcon||v?!0:typeof _==`boolean`?_:y!==!1&&pr(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=Dr(F),se=Dr(l),[ce,le]=kr([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=qt(w,{aria:!0,data:!0}),fe=h.useMemo(()=>_r(_)&&_.closeIcon?_.closeIcon:v||(y===void 0?_r(M)&&M.closeIcon?M.closeIcon:N:y),[y,_,M,v,N]),pe=h.useMemo(()=>{let e=_??M;return _r(e)?qt(e,{data:!0,aria:!0}):{}},[_,M]);return h.createElement(or,{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(Ec,{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(Dc,{className:ce.close,style:le.close,isClosable:re,prefixCls:H,closeIcon:fe,handleClose:K,ariaProps:pe})))});function kc(e,t,n){return t=Eo(t),Oo(e,Do()?Reflect.construct(t,n||[],Eo(e).constructor):t.apply(e,n))}var Ac=function(e){function t(){var e;return bo(this,t),e=kc(this,t,arguments),e.state={error:void 0,info:{}},e}return To(t,e),So(t,[{key:`componentDidCatch`,value:function(e,t){this.setState({error:e,info:t})}},{key:`render`,value:function(){let{message:e,title:t,description:n,id:r,children:i}=this.props,{error:a,info:o}=this.state,s=t??e,c=o?.componentStack||null,l=pr(s)?s:a?.toString(),u=pr(n)?n:c;return a?h.createElement(Oc,{id:r,type:`error`,title:l,description:h.createElement(`pre`,{style:{fontSize:`0.9em`,overflowX:`auto`}},u)}):i}}])}(h.PureComponent),jc=Oc;jc.ErrorBoundary=Ac;var Mc=(0,h.createContext)(void 0),Nc={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`},Pc={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`},Fc={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},Ic={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`],...Pc},timePickerLocale:{...Fc}},Lc=Ic,Rc="${label} is not a valid ${type}",zc={locale:`en`,Pagination:Nc,DatePicker:Ic,TimePicker:Fc,Calendar:Lc,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:Rc,method:Rc,array:Rc,object:Rc,number:Rc,date:Rc,boolean:Rc,integer:Rc,float:Rc,regexp:Rc,email:Rc,url:Rc,hex:Rc},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`}},Bc={...zc.Modal},Vc=[],Hc=()=>Vc.reduce((e,t)=>({...e,...t}),zc.Modal);function Uc(e){if(e){let t={...e};return Vc.push(t),Bc=Hc(),()=>{Vc=Vc.filter(e=>e!==t),Bc=Hc()}}Bc={...zc.Modal}}function Wc(){return Bc}var Gc=(0,h.createContext)(void 0),Kc=(e,t)=>{let n=h.useContext(Gc);return[h.useMemo(()=>{let r=t||zc[e],i=n?.[e]??{};return{...vr(r)?r():r,...i||{}}},[e,t,n]),h.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?zc.locale:e},[n])]},qc=`internalMark`,Jc=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>Uc(t?.Modal),[t]);let i=h.useMemo(()=>({...t,exist:!0}),[t]);return h.createElement(Gc.Provider,{value:i},n)},Yc=h.createContext(null),Xc=!1;function Zc(e){return typeof e==`boolean`&&(Xc=e),Xc}var Qc=[];function $c(e,t){let[n]=h.useState(()=>me()?document.createElement(`div`):null),r=h.useRef(!1),i=h.useContext(Yc),[a,o]=h.useState(Qc),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(Qc))},[a]),[n,s]}function el(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var tl=`rc-util-locker-${Date.now()}`,nl=0;function rl(e){let t=!!e,[n]=h.useState(()=>(nl+=1,`${tl}_${nl}`));ge(()=>{if(t){let e=At(document.body).width;tt(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
${el()?`width: calc(100% - ${e}px);`:``}
|
||
}`,n)}else $e(n);return()=>{$e(n)}},[t,n])}var il=[],al=200,ol=0,sl=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-ol<al)return;let t=il.length;for(let n=t-1;n>=0;--n)il[n].onEsc({top:n===t-1,event:e})}},cl=()=>{ol=Date.now()};function ll(){window.addEventListener(`keydown`,sl),window.addEventListener(`compositionend`,cl)}function ul(){il.length===0&&(window.removeEventListener(`keydown`,sl),window.removeEventListener(`compositionend`,cl))}function dl(e,t){let n=we(),r=pe(t),i=()=>{il.find(e=>e.id===n)||il.push({id:n,onEsc:r})},a=()=>{il=il.filter(e=>e.id!==n)};(0,h.useMemo)(()=>{e?i():e||a()},[e]),(0,h.useEffect)(()=>{if(e)return i(),ll(),()=>{a(),ul()}},[e])}var fl=e=>e===!1?!1:!me()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,pl=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(()=>fl(i));h.useEffect(()=>{let e=fl(i);p(()=>e??null)});let[m,g]=$c(d&&!f,a),_=f??m;rl(r&&n&&me()&&(_===m||_===document.body)),dl(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||Zc(),x=s;return t&&(x=h.cloneElement(s,{ref:y})),h.createElement(Yc.Provider,{value:g},b?x:(0,yn.createPortal)(x,_))}),ml=h.createContext(null);function hl({children:e,onBatchResize:t}){let n=h.useRef(0),r=h.useRef([]),i=h.useContext(ml),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(ml.Provider,{value:a},e)}var gl=new Map;function _l(e){e.forEach(e=>{let{target:t}=e;gl.get(t)?.forEach(e=>e(t))})}var vl;function yl(){return vl||=new ResizeObserver(_l),vl}function bl(e,t){gl.has(e)||(gl.set(e,new Set),yl().observe(e)),gl.get(e).add(t)}function xl(e,t){gl.has(e)&&(gl.get(e).delete(t),gl.get(e).size||(yl().unobserve(e),gl.delete(e)))}function Sl(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?bl(n,a):e&&o&&(s.current+=1),()=>{n&&xl(n,a)}},[e,o?s.current:t])}function Cl(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=h.useRef(null),s=h.useContext(ml),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()),Sl(!r,f,i,(e,t)=>{s?.(e,t,a)}),u?h.cloneElement(l,{ref:d}):l}var wl=h.forwardRef(Cl);function Tl(){return Tl=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},Tl.apply(this,arguments)}var El=`rc-observer-key`;function Dl(e,t){let{children:n}=e;return(typeof n==`function`?[n]:tn(n)).map((n,r)=>{let i=n?.key||`${El}-${r}`;return h.createElement(wl,Tl({},e,{key:i,ref:r===0?t:void 0}),n)})}var Ol=h.forwardRef(Dl);Ol.Collection=hl;function kl(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 Al(){return Al=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},Al.apply(this,arguments)}function jl(e){let{prefixCls:t,open:n,zIndex:r,mask:i,motion:a,mobile:o}=e;return i?h.createElement(or,Al({},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 Ml=h.memo(({children:e})=>e,(e,t)=>t.cache);function Nl(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 Pl(){return Pl=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},Pl.apply(this,arguments)}var Fl=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=Nl(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(jl,{prefixCls:a,open:l,zIndex:D,mask:ee,motion:K,mobile:G}),h.createElement(Ol,{onResize:ae,disabled:!l},e=>h.createElement(or,Pl({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(kl,{prefixCls:a,arrow:g,arrowPos:_,align:v}),h.createElement(Ml,{cache:!l&&!d},U))})),E)}),Il=h.createContext(null),Ll=h.createContext(null);function Rl(e){return e?Array.isArray(e)?e:[e]:[]}function zl(e,t,n){return h.useMemo(()=>{let r=Rl(t??e),i=Rl(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 Bl(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 Vl(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(Bl(e[o]?.points,i,r))return`${t}-placement-${o}`}return``}function Hl(e){return e.ownerDocument.defaultView}function Ul(e){let t=[],n=e?.parentElement,r=[`hidden`,`scroll`,`clip`,`auto`];for(;n;){let{overflowX:e,overflowY:i,overflow:a}=Hl(n).getComputedStyle(n);[e,i,a].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function Wl(e,t=1){return Number.isNaN(e)?t:e}function Gl(e){return Wl(parseFloat(e),0)}function Kl(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}=Hl(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=Gl(i),m=Gl(a),h=Gl(o),g=Gl(s),_=Wl(Math.round(c.width/d*1e3)/1e3),v=Wl(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=Gl(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 ql(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Jl(e,t){let[n,r]=t||[];return[ql(e.width,n),ql(e.height,r)]}function Yl(e=``){return[e[0],e[1]]}function Xl(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 Zl(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function Ql(e){return e.join(``)}function $l(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?[]:Ul(t),[t]),f=h.useRef({});e||(f.current={});let p=pe(()=>{if(t&&n&&e&&!s){let e=t,s=e.ownerDocument,c=Hl(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=Kl(L,d),U=Kl(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=Wl(Math.round(N/parseFloat(T)*1e3)/1e3),te=Wl(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]=Jl(C,ne),[oe,se]=Jl(S,re);S.x-=oe,S.y-=se;let[ce,le]=b.points||[],ue=Yl(le),de=Yl(ce),fe=Xl(S,ue),pe=Xl(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=Xl(S,[`t`,`l`]),Se=Xl(C,[`t`,`l`]),Ce=Xl(S,[`b`,`r`]),we=Xl(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=[Zl(he[0],0),Zl(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=[Zl(he[0],0),Zl(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=[Zl(he[0],1),Zl(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=[Zl(he[0],1),Zl(he[1],1)]):f.current.lr=!1}me.points=[Ql(he[0]),Ql(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 eu(){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 tu(e,t,n,r,i){ge(()=>{if(e&&t&&n){let e=t,a=n,o=Ul(e),s=Ul(a),c=Hl(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 nu(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=Hl(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 ru(){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 iu(){return iu=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},iu.apply(this,arguments)}var au=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=Nl(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(or,iu({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}})})},ou=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=ru(),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=eu(),_=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]=$l(r,s,o?.target,o?.popupPlacement,o?.builtinPlacements||{},o?.popupAlign,void 0,!1),k=h.useMemo(()=>o?m(Vl(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(Il),P=h.useMemo(()=>({registerSubPopup:(e,t)=>{M.current[e]=t,N?.registerSubPopup(e,t)}}),[N]),F=o?.prefixCls;return h.createElement(Ll.Provider,{value:A},e,o&&h.createElement(Il.Provider,{value:P},h.createElement(Fl,{ref:f,portal:pl,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(au,{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 su(e=pl){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(Il),ie=h.useMemo(()=>({registerSubPopup:(e,t)=>{ne.current[e]=t,re?.registerSubPopup(e,t)}}),[re]),ae=h.useContext(Ll),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,yn.flushSync)(()=>{Ce!==e&&(Se(e),u?.(e),f?.(e))})}),je=eu(),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]=$l(Ce,se,R&&ze!==null?ze:de,A,j,M,B,te),[et,tt]=zl(a,o,s),it=et.has(`click`),at=tt.has(`click`)||tt.has(`contextMenu`),ot=pe(()=>{Pe||$e()});tu(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(Vl(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=nu(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`)&>(`onFocus`,!0,v),tt.has(`focus`)&>(`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};Sl(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(Il.Provider,{value:ie},h.createElement(Fl,{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 cu=su(pl);function lu(e){return e&&h.isValidElement(e)&&e.type===h.Fragment}var uu=(e,t,n)=>h.isValidElement(e)?h.cloneElement(e,vr(n)?n(e.props||{}):n):t;function du(e,t){return uu(e,e,t)}var fu=({children:e})=>{let{getPrefixCls:t}=h.useContext(Ir),n=t();return h.isValidElement(e)?h.createElement(or,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>du(e,e=>({className:m(e.className,n),style:{...e.style,...t}}))):e},pu=[null,null];function mu(e){if(pu[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),pu[0]=e,pu[1]=t}return pu[1]}var hu=({children:e})=>h.createElement(ou,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=vr(r)?r():r,a=mu(n);return{...e,getPopupContainer:null,arrow:!1,popup:h.createElement(fu,{key:t},i),builtinPlacements:a}}},e),gu=h.createContext(!1),_u=({children:e,disabled:t})=>{let n=h.useContext(gu);return h.createElement(gu.Provider,{value:t??n},e)},vu=h.createContext(void 0),yu=({children:e,size:t})=>{let n=h.useContext(vu);return h.createElement(vu.Provider,{value:t||n},e)};function bu(){return{componentDisabled:(0,h.useContext)(gu),componentSize:(0,h.useContext)(vu)}}function xu(e,t,n){Nr(`ConfigProvider`);let r=e||{},i=r.inherit===!1||!t?{...ac,hashed:t?.hashed??ac.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!zt(e,r,!0)}))}var Su=h.createContext(!0);function Cu(e){let t=h.useContext(Su),{children:n}=e,[,r]=mc(),{motion:i}=r,a=h.useRef(!1);return a.current||=t!==i,a.current?h.createElement(Su.Provider,{value:i},h.createElement(xn,{motion:i},n)):n}var wu=()=>null,Tu=({iconPrefixCls:e,csp:t})=>(bc(e,t),null),Eu=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],Du,Ou,ku,Au;function ju(){return Du||`ant`}function Mu(){return Ou||`anticon`}var Nu=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Du=t),n!==void 0&&(Ou=n),`holderRender`in e&&(Au=i),r&&(ku=r)},Pu=()=>({getPrefixCls:(e,t)=>t||(e?`${ju()}-${e}`:ju()),getIconPrefixCls:Mu,getRootPrefixCls:()=>Du||ju(),getTheme:()=>ku,holderRender:Au}),Fu=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(()=>_r(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=xu(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])}),Eu.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(Yr),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(Tu,{iconPrefixCls:Xe,csp:Ze}),h.createElement(wu,{dropdownMatchSelectWidth:_}),t),at=h.useMemo(()=>dn(zc.Form?.defaultValidateMessages||{},tt.locale?.Form?.defaultValidateMessages||{},tt.form?.validateMessages||{},c?.validateMessages||{}),[tt,c?.validateMessages]);Object.keys(at).length>0&&(it=h.createElement(Mc.Provider,{value:at},it)),Je&&(it=h.createElement(Jc,{locale:Je,_ANT_MARK__:qc},it)),(Xe||Ze)&&(it=h.createElement(g.Provider,{value:rt},it)),u&&(it=h.createElement(yu,{size:u},it)),it=h.createElement(Cu,null,it),Re?.unique&&(it=h.createElement(hu,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)?ti(e):ic,o={};Object.entries(n||{}).forEach(([e,t])=>{let n={...t};`algorithm`in n&&(n.algorithm===!0?n.theme=a:(Array.isArray(n.algorithm)||vr(n.algorithm))&&(n.theme=ti(n.algorithm)),delete n.algorithm),o[e]=n});let s={...ns,...t};return{...i,theme:a,token:s,components:o,override:{override:s,...o},cssVar:r}},[Qe]);return C&&(it=h.createElement(oc.Provider,{value:ot},it)),tt.warning&&(it=h.createElement(Mr.Provider,{value:tt.warning},it)),w!==void 0&&(it=h.createElement(_u,{disabled:w},it)),h.createElement(Ir.Provider,{value:tt},it)},Iu=e=>{let t=h.useContext(Ir),n=h.useContext(Gc);return h.createElement(Fu,{parentContext:t,legacyLocale:n,...e})};Iu.ConfigContext=Ir,Iu.SizeContext=vu,Iu.config=Nu,Iu.useConfig=bu,Object.defineProperty(Iu,"SizeContext",{get:()=>vu});var Lu=gc(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=vc(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s`,`opacity 2s`].map(e=>`${e} ${a}`).join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0},"&.wave-quick":{transition:[`box-shadow`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`,`)}}}}}),Ru=`ant-wave-target`,zu=e=>e?gr(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 Bu(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&zu(n[t])?n[t]:[r,i,a].find(zu)??null}function Vu(e){return Number.isNaN(e)?0:e}var Hu=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=h.useRef(null),{getPrefixCls:o}=h.useContext(Ir),[s]=vc(o(),`wave`),[c,l]=h.useState(null),[u,d]=h.useState([]),[f,p]=h.useState(0),[g,_]=h.useState(0),[v,y]=h.useState(0),[b,x]=h.useState(0),[S,C]=h.useState(!1),w={left:f,top:g,width:v,height:b,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(w[s(`color`)]=c);function T(){let e=getComputedStyle(n);l(Bu(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:Vu(-Number.parseFloat(r))),_(t?n.offsetTop:Vu(-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=>Vu(Number.parseFloat(e))))}if(h.useEffect(()=>{if(n){let e=en(()=>{T(),C(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(T),t.observe(n)),()=>{en.cancel(e),t?.disconnect()}}},[n]),!S)return null;let E=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(Ru);return h.createElement(or,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||xr(t)&&t.propertyName===`opacity`){let e=a.current?.parentElement;vn(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}))},Uu=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild),_n(h.createElement(Hu,{...t,target:e}),r)},Wu=(e,t,n,r)=>{let{wave:i}=h.useContext(Ir),[,a,o]=mc(),s=pe(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${Ru}`)||c,{showEffect:u}=i||{};(u||Uu)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=h.useRef(null);return h.useEffect(()=>()=>{en.cancel(c.current)},[]),e=>{en.cancel(c.current),c.current=en(()=>{s(e)})}},Gu={click:`click`,mousedown:`mousedown`,mouseup:`mouseup`,pointerdown:`pointerdown`,pointerup:`pointerup`},Ku=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a,wave:o}=(0,h.useContext)(Ir),s=(0,h.useRef)(null),c=a(`wave`),l=Wu(s,m(c,Lu(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 Gu?Gu[r]:`click`;return e.addEventListener(i,t,!0),()=>{e.removeEventListener(i,t,!0)}},[n,o?.triggerType]),h.isValidElement(t)?du(t,{ref:Re(t)?Ie(Ve(t),s):s}):t??null},qu=e=>{let t=h.useContext(vu);return h.useMemo(()=>e?gr(e)?e??t:vr(e)?e(t):t:t,[e,t])};function Ju(...e){return e.find(e=>e!==void 0)}var Yu=e=>{let{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:i,defaultAllowClear:a,componentName:o}=e;return(0,h.useMemo)(()=>t??r??a?{clearIcon:Ju(_r(t)?t?.clearIcon:n,_r(r)?r?.clearIcon:i,h.createElement(re,null)),disabled:(_r(t)?t?.disabled:void 0)??(_r(r)?r?.disabled:void 0)}:!1,[t,n,r,i,a])},Xu=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},Zu={},Qu=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!pr(e)&&!pr(t))return null;let n={closeIcon:typeof t!=`boolean`&&pr(t)?t:void 0};return _r(e)&&(n={...n,...e}),n},$u=(e,t,n)=>e===!1?!1:e?nn(n,t,e):t===!1?!1:t?nn(n,t):n.closable?n:!1,ed=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i,...a}=e,o=i,s=qt(a,!0);return pr(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]},td=(e,t,n=Zu,r=`Close`)=>{let i=Qu(e?.closable,e?.closeIcon),a=Qu(t?.closable,t?.closeIcon),o={closeIcon:h.createElement(oe,null),...n},s=$u(i,a,o),c=typeof s==`boolean`?!1:!!s?.disabled;if(s===!1)return[!1,null,c,{}];let[l,u]=ed(s,o,r);return[!0,l,c,u]},nd=(e,t,n=Zu)=>{let[r]=Kc(`global`,zc.global);return h.useMemo(()=>td(e,t,{closeIcon:h.createElement(oe,null),...n},r.close),[e,t,n,r.close])},rd=()=>h.useReducer(e=>e+1,0),id=(e,t)=>{let n={};return _r(e)&&(n=e),typeof e==`boolean`&&(n={enabled:e}),n.closable===void 0&&t!==void 0&&(n.closable=t),n},ad=(e,t,n,r)=>(0,h.useMemo)(()=>{let i=id(e,r),a=id(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]),fee=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]},od=e=>e===`horizontal`||e===`vertical`,sd=(e,t,n)=>(0,h.useMemo)(()=>{let r=od(e),i;return i=r?e:typeof t==`boolean`?t?`vertical`:`horizontal`:od(n)?n:`horizontal`,[i,i===`vertical`]},[n,e,t]),cd=()=>{let[e,t]=h.useState([]);return[e,h.useCallback(e=>(t(t=>[].concat(fr(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]},pee=(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),ld=(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)}}):pee(n,e)}),ud=e=>{let t=h.useRef(e),[,n]=rd();return[()=>t.current,e=>{t.current=e,n()}]},dd=h.createContext(void 0),fd=100,pd=fd*10,md={Modal:fd,Drawer:fd,Popover:fd,Popconfirm:fd,Tooltip:fd,Tour:fd,FloatButton:fd},hd={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},gd=e=>e in md,_d=(e,t)=>{let[,n]=mc(),r=h.useContext(dd),i=gd(e),a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+md[e]:o+=hd[e],a=[r===void 0?t:o,o]}return a},vd=hc([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1}),yd=h.createContext(null),bd=(e,t)=>{let n=h.useContext(yd),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}},xd=e=>{let{children:t}=e;return h.createElement(yd.Provider,{value:null},t)},Sd=e=>{let{children:t,...n}=e;return h.createElement(yd.Provider,{value:h.useMemo(()=>n,[n])},t)},Cd=e=>{let{getPrefixCls:t,direction:n}=h.useContext(Ir),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d,...f}=e,[p,g]=sd(a,d,i),_=qu(e=>r??e),v=t(`space-compact`,s),[y]=vd(v),b=m(v,y,{[`${v}-rtl`]:n===`rtl`,[`${v}-block`]:o,[`${v}-vertical`]:g},c,l),x=h.useContext(yd),S=tn(u),C=h.useMemo(()=>S.map((e,t)=>{let n=e?.key||`${v}-item-${t}`;return h.createElement(Sd,{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)},wd=h.createContext(void 0),Td=e=>{let{getPrefixCls:t,direction:n}=h.useContext(Ir),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=mc(),l=h.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=m(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return h.createElement(wd.Provider,{value:i},h.createElement(`div`,{...o,className:u}))},Ed=/^[\u4E00-\u9FA5]{2}$/,Dd=Ed.test.bind(Ed);function Od(e){return e===`danger`?{danger:!0}:{type:e}}function kd(e){return e===`text`||e===`link`}function Ad(e,t,n,r){if(!mr(e))return;let i=t?` `:``;return!gr(e)&&!hr(e)&&gr(e.type)&&Dd(e.props.children)?du(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}}):gr(e)?h.createElement(`span`,{className:r,style:n},Dd(e)?e.split(``).join(i):e):lu(e)?h.createElement(`span`,{className:r,style:n},e):du(e,e=>({...e,className:m(e.className,r)||void 0,style:{...e.style,...n}}))}function jd(e,t,n,r){let i=!1,a=[];return h.Children.forEach(e,e=>{let t=gr(e)||hr(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=>Ad(e,t,n,r))}[`default`,`primary`,`danger`].concat(fr(Zo));var Md=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 Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nd.apply(this,arguments)}var Pd=h.forwardRef((e,t)=>h.createElement(W,Nd({},e,{ref:t,icon:Md.default}))),Fd=(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)}),Id=(0,h.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=m(`${n}-loading-icon`,r);return h.createElement(Fd,{prefixCls:n,className:o,style:i,ref:t},h.createElement(Pd,{className:a}))}),Ld=()=>({width:0,opacity:0,transform:`scale(0)`}),Rd=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),mee=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?h.createElement(Id,{prefixCls:t,className:i,style:a}):h.createElement(or,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:Ld,onAppearActive:Rd,onEnterStart:Ld,onEnterActive:Rd,onLeaveStart:Rd,onLeaveActive:Ld},({className:e,style:n},r)=>{let o={...a,...n};return h.createElement(Id,{prefixCls:t,className:m(i,e),style:o,ref:r})})},zd=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`}}}},Bd=e=>({animationDuration:e,animationFillMode:`both`}),Vd=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
|
||
${a}${e}-enter,
|
||
${a}${e}-appear
|
||
`]:{...Bd(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...Bd(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`}}},Hd=new Za(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),Ud=new Za(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),Wd=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[Vd(r,Hd,Ud,e.motionDurationMid,t),{[`
|
||
${i}${r}-enter,
|
||
${i}${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},Gd=new Za(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Kd=new Za(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),qd=new Za(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Jd=new Za(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Yd=new Za(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),Xd=new Za(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),Zd={"move-up":{inKeyframes:new Za(`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 Za(`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:Gd,outKeyframes:Kd},"move-left":{inKeyframes:qd,outKeyframes:Jd},"move-right":{inKeyframes:Yd,outKeyframes:Xd}},Qd=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Zd[t];return[Vd(r,i,a,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$d=new Za(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),ef=new Za(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),tf=new Za(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),nf=new Za(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),rf=new Za(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),af=new Za(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),of=new Za(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),sf=new Za(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),cf={"slide-up":{inKeyframes:$d,outKeyframes:ef},"slide-down":{inKeyframes:tf,outKeyframes:nf},"slide-left":{inKeyframes:rf,outKeyframes:af},"slide-right":{inKeyframes:of,outKeyframes:sf}},lf=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=cf[t];return[Vd(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}}]},uf=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),df=new Za(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),ff=new Za(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),pf=new Za(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),mf=new Za(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),hee=new Za(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),gee=new Za(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),_ee=new Za(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),vee=new Za(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),yee=new Za(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),hf=new Za(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),gf=new Za(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),_f=new Za(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),vf={zoom:{inKeyframes:df,outKeyframes:ff},"zoom-big":{inKeyframes:pf,outKeyframes:mf},"zoom-big-fast":{inKeyframes:pf,outKeyframes:mf},"zoom-left":{inKeyframes:_ee,outKeyframes:vee},"zoom-right":{inKeyframes:yee,outKeyframes:hf},"zoom-up":{inKeyframes:hee,outKeyframes:gee},"zoom-down":{inKeyframes:gf,outKeyframes:_f}},yf=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=vf[t];return[Vd(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},bf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),xf=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},bf(`${t}-primary`,i),bf(`${t}-danger`,a)]}},Sf=e=>Math.round(Number(e||0)),Cf=e=>{if(e instanceof cs)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},wf=class extends cs{constructor(e){super(Cf(e))}toHsbString(){let e=this.toHsb(),t=Sf(e.s*100),n=Sf(e.b*100),r=Sf(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}};(e=>e instanceof wf?e:new wf(e))(`#1677ff`);var Tf=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,Ef=(e,t)=>e?Tf(e,t):``,Df=function(){function e(t){if(bo(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new wf(this.colors[0].color.metaColor)):this.metaColor=new wf(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return So(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return Ef(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),Of=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z`}}]},name:`right`,theme:`outlined`}}))());function kf(){return kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kf.apply(this,arguments)}var Af=h.forwardRef((e,t)=>h.createElement(W,kf({},e,{ref:t,icon:Of.default})));function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jf.apply(null,arguments)}var Mf=h.forwardRef((e,t)=>{let{prefixCls:n,forceRender:r,className:i,style:a,children:o,isActive:s,role:c,classNames:l,styles:u}=e,[d,f]=h.useState(s||r);return h.useEffect(()=>{(r||s)&&f(!0)},[r,s]),d?h.createElement(`div`,{ref:t,className:m(`${n}-panel`,{[`${n}-panel-active`]:s,[`${n}-panel-inactive`]:!s},i),style:a,role:c},h.createElement(`div`,{className:m(`${n}-body`,l?.body),style:u?.body},o)):null}),Nf=h.forwardRef((e,t)=>{let{showArrow:n=!0,headerClass:r,isActive:i,onItemClick:a,forceRender:o,className:s,classNames:c={},styles:l={},prefixCls:u,collapsible:d,accordion:f,panelKey:p,extra:g,header:_,expandIcon:v,openMotion:y,destroyOnHidden:b,children:x,...S}=e,C=d===`disabled`,w=g!=null&&typeof g!=`boolean`,T={onClick:()=>{a?.(p)},onKeyDown:e=>{(e.key===`Enter`||e.keyCode===Et.ENTER||e.which===Et.ENTER)&&a?.(p)},role:f?`tab`:`button`,"aria-expanded":i,"aria-disabled":C,tabIndex:C?-1:0},E=typeof v==`function`?v(e):h.createElement(`i`,{className:`arrow`}),D=E&&h.createElement(`div`,jf({className:m(`${u}-expand-icon`,c?.icon),style:l?.icon},[`header`,`icon`].includes(d)?T:{}),E),O=m(`${u}-item`,{[`${u}-item-active`]:i,[`${u}-item-disabled`]:C},s),k={className:m(r,`${u}-header`,{[`${u}-collapsible-${d}`]:!!d},c?.header),style:l?.header,...[`header`,`icon`].includes(d)?{}:T};return h.createElement(`div`,jf({},S,{ref:t,className:O}),h.createElement(`div`,k,n&&D,h.createElement(`span`,jf({className:m(`${u}-title`,c?.title),style:l?.title},d===`header`?T:{}),_),w&&h.createElement(`div`,{className:`${u}-extra`},g)),h.createElement(or,jf({visible:i,leavedClassName:`${u}-panel-hidden`},y,{forceRender:o,removeOnLeave:b}),({className:e,style:t},n)=>h.createElement(Mf,{ref:n,prefixCls:u,className:e,classNames:c,style:t,styles:l,isActive:i,forceRender:o,role:f?`tabpanel`:void 0},x)))});function Pf(e,t,n){if(!e||!t)return e||t;let r=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),i={};return r.forEach(r=>{i[r]=n(e[r],t[r])}),i}function Ff(e,t){return Pf(e,t,(e,t)=>m(e,t))}function If(e,t){return Pf(e,t,(e,t)=>({...e,...t}))}var Lf=(e,t)=>{let{prefixCls:n,accordion:r,collapsible:i,destroyOnHidden:a,onItemClick:o,activeKey:s,openMotion:c,expandIcon:l,classNames:u,styles:d}=t;return e.map((e,t)=>{let{children:f,label:p,key:m,collapsible:g,onItemClick:_,destroyOnHidden:v,classNames:y,styles:b,...x}=e,S=String(m??t),C=g??i,w=v??a,T=e=>{C!==`disabled`&&(o(e),_?.(e))},E=!1;return E=r?s[0]===S:s.indexOf(S)>-1,h.createElement(Nf,jf({},x,{classNames:Ff(u,y),styles:If(d,b),prefixCls:n,key:S,panelKey:S,isActive:E,accordion:r,openMotion:c,expandIcon:l,header:p,collapsible:C,onItemClick:T,destroyOnHidden:w}),f)})},Rf=(e,t,n)=>{if(!e)return null;let{prefixCls:r,accordion:i,collapsible:a,destroyOnHidden:o,onItemClick:s,activeKey:c,openMotion:l,expandIcon:u,classNames:d,styles:f}=n,p=e.key||String(t),{header:m,headerClass:g,destroyOnHidden:_,collapsible:v,onItemClick:y}=e.props,b=!1;b=i?c[0]===p:c.indexOf(p)>-1;let x=v??a,S={key:p,panelKey:p,header:m,headerClass:g,classNames:d,styles:f,isActive:b,prefixCls:r,destroyOnHidden:_??o,openMotion:l,accordion:i,children:e.props.children,onItemClick:e=>{x!==`disabled`&&(s(e),y?.(e))},expandIcon:u,collapsible:x};return typeof e.type==`string`?e:(Object.keys(S).forEach(e=>{S[e]===void 0&&delete S[e]}),h.cloneElement(e,S))};function zf(e,t,n){return Array.isArray(e)?Lf(e,n):tn(t).map((e,t)=>Rf(e,t,n))}function Bf(e){let t=e;if(!Array.isArray(t)){let e=typeof t;t=e===`number`||e===`string`?[t]:[]}return t.map(e=>String(e))}var Vf=Object.assign(h.forwardRef((e,t)=>{let{prefixCls:n=`rc-collapse`,destroyOnHidden:r=!1,style:i,accordion:a,className:o,children:s,collapsible:c,openMotion:l,expandIcon:u,activeKey:d,defaultActiveKey:f,onChange:p,items:g,classNames:_,styles:v}=e,y=m(n,o),[b,x]=ye(f,d),S=Bf(b),C=pe(e=>{let t=Bf(e);x(t),p?.(t)}),w=e=>{C(a?S[0]===e?[]:[e]:S.includes(e)?S.filter(t=>t!==e):[...S,e])};Lt(!s,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");let T=zf(g,s,{prefixCls:n,accordion:a,openMotion:l,expandIcon:u,collapsible:c,destroyOnHidden:r,onItemClick:w,activeKey:S,classNames:_,styles:v});return h.createElement(`div`,jf({ref:t,className:y,style:i,role:a?`tablist`:void 0},qt(e,{aria:!0,data:!0})),T)}),{Panel:Nf}),Hf=Vf,{Panel:Uf}=Vf,Wf=()=>({height:0,opacity:0}),Gf=e=>({height:e?.scrollHeight??0,opacity:+!!e}),Kf=e=>({height:e?.offsetHeight??0}),qf=(e,t)=>t?.deadline===!0||xr(t)&&t.propertyName===`height`,Jf=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:Wf,onEnterStart:Wf,onAppearActive:Gf,onEnterActive:Gf,onLeaveStart:Kf,onLeaveActive:Wf,onAppearEnd:qf,onEnterEnd:qf,onLeaveEnd:qf,motionDeadline:500}),Yf=(e,t,n)=>n===void 0?`${e}-${t}`:n,Xf=h.forwardRef((e,t)=>{let{getPrefixCls:n}=h.useContext(Ir),{prefixCls:r,className:i,showArrow:a=!0}=e,o=n(`collapse`,r),s=m({[`${o}-no-arrow`]:!a},i);return h.createElement(Hf.Panel,{ref:t,...e,prefixCls:o,className:s})}),Zf=e=>{let{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:a,headerPaddingSM:o,headerPaddingLG:s,collapsePanelBorderRadius:c,lineWidth:l,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:h,lineHeight:g,lineHeightLG:_,marginSM:v,paddingSM:y,paddingLG:b,paddingXS:x,motionDurationSlow:S,fontSizeIcon:C,contentPadding:w,contentPaddingSM:T,contentPaddingLG:E,fontHeight:D,fontHeightLG:O}=e,k=`${q(l)} ${u} ${d}`;return{[t]:{...eo(e),backgroundColor:i,border:k,borderRadius:c,"&-rtl":{direction:`rtl`},[`& > ${t}-item`]:{borderBottom:k,"&:first-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`${q(c)} ${q(c)} 0 0`}},"&:last-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`0 0 ${q(c)} ${q(c)}`}},[`> ${t}-header`]:{position:`relative`,display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,padding:a,color:p,lineHeight:g,cursor:`pointer`,transition:`all ${S}, visibility 0s`,...ao(e),[`> ${t}-title`]:{flex:`auto`},[`${t}-expand-icon`]:{height:D,display:`flex`,alignItems:`center`,marginInlineEnd:v},[`${t}-arrow`]:{...to(),fontSize:C,transition:`transform ${S}`,svg:{transition:`transform ${S}`}},[`${t}-title`]:{marginInlineEnd:`auto`}},[`${t}-collapsible-header`]:{cursor:`default`,[`${t}-title`]:{flex:`none`,cursor:`pointer`},[`${t}-expand-icon`]:{cursor:`pointer`}},[`${t}-collapsible-icon`]:{cursor:`unset`,[`${t}-expand-icon`]:{cursor:`pointer`}}},[`${t}-panel`]:{color:f,backgroundColor:n,borderTop:k,[`& > ${t}-body`]:{padding:w},"&-hidden":{display:`none`}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:o,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:T}}},"&-large":{[`> ${t}-item`]:{fontSize:h,lineHeight:_,[`> ${t}-header`]:{padding:s,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(b).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:E}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${q(c)} ${q(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:m,cursor:`not-allowed`}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:v}}}}}}},Qf=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:`rotate(180deg)`}}}},$f=e=>{let{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:a}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${a}`},[`
|
||
> ${t}-item:last-child,
|
||
> ${t}-item:last-child ${t}-header
|
||
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},ep=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:`transparent`,border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:`transparent`,border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},tp=hc(`Collapse`,e=>{let t=Bo(e,{collapsePanelBorderRadius:e.borderRadiusLG});return[Zf(t),$f(t),ep(t),Qf(t),zd(t)]},e=>({headerPadding:`${q(e.paddingSM)} ${q(e.padding)}`,headerPaddingSM:`${q(e.paddingXS)} ${q(e.paddingSM)} ${q(e.paddingXS)} ${q(e.paddingXS)}`,headerPaddingLG:`${q(e.padding)} ${q(e.paddingLG)} ${q(e.padding)} ${q(e.padding)}`,headerBg:e.colorFillAlter,contentPadding:`${q(e.padding)} ${q(16)}`,contentPaddingSM:e.paddingSM,contentPaddingLG:e.paddingLG,contentBg:e.colorBgContainer,borderlessContentPadding:`${q(e.paddingXXS)} ${q(16)} ${q(e.padding)}`,borderlessContentBg:`transparent`})),np=Object.assign(h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,expandIcon:i,className:a,style:o,classNames:s,styles:c}=zr(`collapse`),{prefixCls:l,className:u,rootClassName:d,style:f,bordered:p=!0,ghost:g,size:_,expandIconPlacement:v,expandIconPosition:y,children:b,destroyInactivePanel:x,destroyOnHidden:S,expandIcon:C,classNames:w,styles:T}=e,E=qu(e=>_??e??`middle`),D=n(`collapse`,l),O=n(),[k,A]=tp(D),j=v??y??`start`,M={...e,size:E,bordered:p,expandIconPlacement:j},N=Dr(o),P=Dr(f),[F,I]=kr([s,w],[c,N,T,P],{props:M}),L=C??i,R=h.useCallback((e={})=>du(vr(L)?L(e):h.createElement(Af,{rotate:e.isActive?r===`rtl`?-90:90:void 0,"aria-label":e.isActive?`expanded`:`collapsed`}),e=>({className:m(e.className,`${D}-arrow`)})),[L,D,r]),z=m(`${D}-icon-placement-${j}`,{[`${D}-borderless`]:!p,[`${D}-rtl`]:r===`rtl`,[`${D}-ghost`]:!!g,[`${D}-large`]:E===`large`,[`${D}-small`]:E===`small`},a,u,d,k,A,F.root),B=h.useMemo(()=>({...Jf(O),motionAppear:!1,leavedClassName:`${D}-panel-hidden`}),[O,D]),V=h.useMemo(()=>b?tn(b).map(e=>e):null,[b]);return h.createElement(Hf,{ref:t,openMotion:B,...Ht(e,[`rootClassName`]),expandIcon:R,prefixCls:D,className:z,style:I.root,classNames:F,styles:I,destroyOnHidden:S??x},V)}),{Panel:Xf}),rp=e=>e instanceof Df?e:new Df(e),ip=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new wf(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},ap=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Bo(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},op=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??Qo(t),a=e.contentLineHeightSM??Qo(n),o=e.contentLineHeightLG??Qo(r),s=ip(new Df(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=Zo.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${q(e.controlOutlineWidth)} 0 ${cc(e[`${n}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...c,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:`transparent`,defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:`inherit`,onlyIconSizeSM:`inherit`,onlyIconSizeLG:`inherit`,groupBorderColor:e.colorPrimaryHover,linkHoverBg:`transparent`,textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:u}},sp=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=vc(n,`btn`);return{[t]:[{[i(`border-width`)]:r,[i(`border-color`)]:`#000`,[i(`border-color-hover`)]:a(`border-color`),[i(`border-color-active`)]:a(`border-color`),[i(`border-color-disabled`)]:a(`border-color`),[i(`border-style`)]:`solid`,[i(`text-color`)]:`#000`,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`),[i(`text-color-disabled`)]:a(`text-color`),[i(`bg-color`)]:`#ddd`,[i(`bg-color-hover`)]:a(`bg-color`),[i(`bg-color-active`)]:a(`bg-color`),[i(`bg-color-disabled`)]:e.colorBgContainerDisabled,[i(`bg-color-container`)]:e.colorBgContainer,[i(`shadow`)]:`none`},{border:[a(`border-width`),a(`border-style`),a(`border-color`)].join(` `),color:a(`text-color`),backgroundColor:a(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a(`border-width`),a(`border-style`),a(`border-color-hover`)].join(` `),color:a(`text-color-hover`),backgroundColor:a(`bg-color-hover`)},"&:active":{border:[a(`border-width`),a(`border-style`),a(`border-color-active`)].join(` `),color:a(`text-color-active`),backgroundColor:a(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[i(`solid-bg-color`)]:a(`color-base`),[i(`solid-bg-color-hover`)]:a(`color-hover`),[i(`solid-bg-color-active`)]:a(`color-active`),[i(`border-color`)]:`transparent`,[i(`text-color`)]:e.colorTextLightSolid,[i(`bg-color`)]:a(`solid-bg-color`),[i(`bg-color-hover`)]:a(`solid-bg-color-hover`),[i(`bg-color-active`)]:a(`solid-bg-color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`border-color`)]:a(`color-base`),[i(`border-color-hover`)]:a(`color-hover`),[i(`border-color-active`)]:a(`color-active`),[i(`bg-color`)]:a(`bg-color-container`),[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-dashed`]:{[i(`border-style`)]:`dashed`,[i(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`bg-color`)]:a(`color-light`),[i(`bg-color-hover`)]:a(`color-light-hover`),[i(`bg-color-active`)]:a(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),[i(`bg-color`)]:`transparent`,[i(`bg-color-hover`)]:`transparent`,[i(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[i(`bg-color-hover`)]:a(`color-light`),[i(`bg-color-active`)]:a(`color-light-active`)}},{[`&${t}-variant-link`]:{[i(`color-base`)]:e.colorLink,[i(`color-hover`)]:e.colorLinkHover,[i(`color-active`)]:e.colorLinkActive,[i(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[i(`color-base`)]:e.colorPrimary,[i(`color-hover`)]:e.colorPrimaryHover,[i(`color-active`)]:e.colorPrimaryActive,[i(`color-light`)]:e.colorPrimaryBg,[i(`color-light-hover`)]:e.colorPrimaryBgHover,[i(`color-light-active`)]:e.colorPrimaryBorder,[i(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.primaryColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-dangerous`]:{[i(`color-base`)]:e.colorError,[i(`color-hover`)]:e.colorErrorHover,[i(`color-active`)]:e.colorErrorActive,[i(`color-light`)]:e.colorErrorBg,[i(`color-light-hover`)]:e.colorErrorBgFilledHover,[i(`color-light-active`)]:e.colorErrorBgActive,[i(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.dangerColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-default`]:{[i(`solid-bg-color`)]:e.colorBgSolid,[i(`solid-bg-color-hover`)]:e.colorBgSolidHover,[i(`solid-bg-color-active`)]:e.colorBgSolidActive,[i(`color-base`)]:e.defaultBorderColor,[i(`color-hover`)]:e.defaultHoverBorderColor,[i(`color-active`)]:e.defaultActiveBorderColor,[i(`color-light`)]:e.colorFillTertiary,[i(`color-light-hover`)]:e.colorFillSecondary,[i(`color-light-active`)]:e.colorFill,[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i(`text-color`)]:e.solidTextColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`bg-color-container`)]:e.defaultBg,[i(`bg-color-hover`)]:e.defaultHoverBg,[i(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i(`text-color`)]:e.textTextColor,[i(`text-color-hover`)]:e.textTextHoverColor,[i(`text-color-active`)]:e.textTextActiveColor,[i(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultGhostColor,[i(`border-color`)]:e.defaultGhostBorderColor}}}},Zo.map(n=>{let r=e[`${n}6`],a=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[i(`color-base`)]:r,[i(`color-hover`)]:o,[i(`color-active`)]:l,[i(`color-light`)]:a,[i(`color-light-hover`)]:s,[i(`color-light-active`)]:c,[i(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:a(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[i(`bg-color`)]:e.ghostBg,[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg,[i(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg}}}]}},bee=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`,...uf(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:to(),"> a":{color:`currentColor`},"&:not(:disabled)":ao(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()}}}}}},cp=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),lp=(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}`]:cp(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},xee=e=>lp(Bo(e,{fontSize:e.contentFontSize}),e.componentCls),up=e=>lp(Bo(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),dp=e=>lp(Bo(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),fp=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},See=hc(`Button`,e=>{let t=ap(e);return[bee(t),xee(t),up(t),dp(t),fp(t),sp(t),xf(t)]},op,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function pp(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 mp(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 hp(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...pp(e,a,t,i),...mp(i,a,t)}}}function gp(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 Cee(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 _p(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...gp(e,t,e.componentCls),...Cee(e.componentCls,t)}}}var vp=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=vc(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},yp=_c([`Button`,`compact`],e=>{let t=ap(e);return[hp(t),_p(t),vp(t)]},op);function bp(e){if(_r(e)){let t=e?.delay;return t=hr(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var xp={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},Sp=h.forwardRef((e,t)=>{let{_skipSemantic:n,loading:r=!1,prefixCls:i,color:a,variant:o,type:s,danger:c=!1,shape:l,size:u,disabled:d,className:f,rootClassName:p,children:g,icon:_,iconPosition:v,iconPlacement:y,ghost:b=!1,block:x=!1,htmlType:S=`button`,classNames:C,styles:w,style:T,autoInsertSpace:E,autoFocus:D,...O}=e,k=tn(g),A=s||`default`,{getPrefixCls:j,direction:M,autoInsertSpace:N,className:P,style:F,classNames:I,styles:L,loadingIcon:R,shape:z,color:B,variant:V}=zr(`button`),H=l||z||`default`,[U,W]=(0,h.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=xp[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]=See(re),oe=(0,h.useContext)(gu),se=d??oe,ce=(0,h.useContext)(wd),le=(0,h.useMemo)(()=>bp(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&&!_&&!kd(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&&Dd(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}=bd(re,M),Se=qu(e=>u??be??ce??e),Ce=ue?`loading`:_,we=y??v??`start`,Te=Ht(O,[`navigate`]),Ee={...e,type:A,color:G,variant:ee,danger:K,shape:H,size:Se,disabled:se,loading:ue,iconPlacement:we},De=Dr(F),Oe=Dr(T),[ke,Ae]=kr([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&&!kd(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(Fd,{prefixCls:re,...Me},e),Pe=h.createElement(mee,{existIcon:!!_,prefixCls:re,loading:ue,mount:ve.current,...Me}),Fe=_r(r)&&r.icon||R,Ie;Ie=_&&!ue?Ne(_):r&&Fe?Ne(Fe):Pe;let Re=mr(g)?jd(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(yp,{prefixCls:re}));return kd(ee)||(ze=h.createElement(Ku,{component:`Button`,disabled:ue},ze)),ze});Sp.Group=Td,Sp.__ANT_BUTTON=!0;var Cp=Sp,wp=`RC_FORM_INTERNAL_HOOKS`,Tp=()=>{Lt(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},Ep=h.createContext({getFieldValue:Tp,getFieldsValue:Tp,getFieldError:Tp,getFieldWarning:Tp,getFieldsError:Tp,isFieldsTouched:Tp,isFieldTouched:Tp,isFieldValidating:Tp,isFieldsValidating:Tp,resetFields:Tp,setFields:Tp,setFieldValue:Tp,setFieldsValue:Tp,validateFields:Tp,submit:Tp,getInternalHooks:()=>(Tp(),{dispatch:Tp,initEntityValue:Tp,registerField:Tp,useSubscribe:Tp,setInitialValues:Tp,destroyForm:Tp,setCallbacks:Tp,registerWatch:Tp,getFields:Tp,setValidateMessages:Tp,setPreserve:Tp,getInitialValue:Tp})}),Dp=h.createContext(null);function Op(e){return e==null?[]:Array.isArray(e)?e:[e]}function wee(e){return e&&!!e._init}function kp(){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 Ap=kp(),Tee=/%[sdj%]/g,Eee=()=>{};function jp(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 Mp(e,...t){let n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Tee,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 Dee(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function Np(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Dee(t)&&typeof e==`string`&&!e)}function Oee(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 Pp(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 kee(e){let t=[];return Object.keys(e).forEach(n=>{t.push(...e[n]||[])}),t}var Fp=class extends Error{errors;fields;constructor(e,t){super(`Async Validation Error`),this.errors=e,this.fields=t}};function Aee(e,t,n,r,i){if(t.first){let t=new Promise((t,a)=>{Pp(kee(e),n,e=>(r(e),e.length?a(new Fp(e,jp(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 Fp(l,jp(l))):t(i)};o.length||(r(l),t(i)),o.forEach(t=>{let r=e[t];a.indexOf(t)===-1?Oee(r,n,d):Pp(r,n,d)})});return u.catch(e=>e),u}function jee(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 Ip(e,t){return n=>{let r;return r=e.fullFields?Mee(t,e.fullFields):t[n.field||e.fullField],jee(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 Lp(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 Rp=`enum`,Nee=(e,t,n,r,i)=>{e[Rp]=Array.isArray(e[Rp])?e[Rp]:[],e[Rp].indexOf(t)===-1&&r.push(Mp(i.messages[Rp],e.fullField,e[Rp].join(`, `)))},Pee=(e,t,n,r,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Mp(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(Mp(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Fee=(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(Mp(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(Mp(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(Mp(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(Mp(i.messages[u].range,e.fullField,e.min,e.max))},zp=(e,t,n,r,i,a)=>{e.required&&(!n.hasOwnProperty(e.field)||Np(t,a||e.type))&&r.push(Mp(i.messages.required,e.fullField))},Bp,Iee=(()=>{if(Bp)return Bp;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 Bp=RegExp(`(?:^${l}$)`,`i`),Bp}),Vp={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},Hp={integer(e){return Hp.number(e)&&parseInt(e,10)===e},float(e){return Hp.number(e)&&!Hp.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`&&!Hp.array(e)},method(e){return typeof e==`function`},email(e){return typeof e==`string`&&e.length<=320&&!!e.match(Vp.email)},tel(e){return typeof e==`string`&&e.length<=32&&!!e.match(Vp.tel)},url(e){return typeof e==`string`&&e.length<=2048&&!!e.match(Iee())},hex(e){return typeof e==`string`&&!!e.match(Vp.hex)}},Up={required:zp,whitespace:(e,t,n,r,i)=>{(/^\s+$/.test(t)||t===``)&&r.push(Mp(i.messages.whitespace,e.fullField))},type:(e,t,n,r,i)=>{if(e.required&&t===void 0){zp(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?Hp[o](t)||r.push(Mp(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(Mp(i.messages.types[o],e.fullField,e.type))},range:Fee,enum:Nee,pattern:Pee},Lee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t)&&!e.required)return n();Up.required(e,t,r,a,i)}n(a)},Ree=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();Up.required(e,t,r,a,i,`array`),t!=null&&(Up.type(e,t,r,a,i),Up.range(e,t,r,a,i))}n(a)},zee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t)&&!e.required)return n();Up.required(e,t,r,a,i),t!==void 0&&Up.type(e,t,r,a,i)}n(a)},Bee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t,`date`)&&!e.required)return n();if(Up.required(e,t,r,a,i),!Np(t,`date`)){let n;n=t instanceof Date?t:new Date(t),Up.type(e,n,r,a,i),n&&Up.range(e,n.getTime(),r,a,i)}}n(a)},Vee=`enum`,Hee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t)&&!e.required)return n();Up.required(e,t,r,a,i),t!==void 0&&Up[Vee](e,t,r,a,i)}n(a)},Uee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t)&&!e.required)return n();Up.required(e,t,r,a,i),t!==void 0&&(Up.type(e,t,r,a,i),Up.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(Np(t)&&!e.required)return n();Up.required(e,t,r,a,i),t!==void 0&&(Up.type(e,t,r,a,i),Up.range(e,t,r,a,i))}n(a)},Gee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t)&&!e.required)return n();Up.required(e,t,r,a,i),t!==void 0&&Up.type(e,t,r,a,i)}n(a)},Kee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),Np(t)&&!e.required)return n();Up.required(e,t,r,a,i),t!==void 0&&(Up.type(e,t,r,a,i),Up.range(e,t,r,a,i))}n(a)},qee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t)&&!e.required)return n();Up.required(e,t,r,a,i),t!==void 0&&Up.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(Np(t,`string`)&&!e.required)return n();Up.required(e,t,r,a,i),Np(t,`string`)||Up.pattern(e,t,r,a,i)}n(a)},Yee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t)&&!e.required)return n();Up.required(e,t,r,a,i),Np(t)||Up.type(e,t,r,a,i)}n(a)},Xee=(e,t,n,r,i)=>{let a=[],o=Array.isArray(t)?`array`:typeof t;Up.required(e,t,r,a,i,o),n(a)},Zee=(e,t,n,r,i)=>{let a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t,`string`)&&!e.required)return n();Up.required(e,t,r,a,i,`string`),Np(t,`string`)||(Up.type(e,t,r,a,i),Up.range(e,t,r,a,i),Up.pattern(e,t,r,a,i),e.whitespace===!0&&Up.whitespace(e,t,r,a,i))}n(a)},Wp=(e,t,n,r,i)=>{let a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Np(t,a)&&!e.required)return n();Up.required(e,t,r,o,i,a),Np(t,a)||Up.type(e,t,r,o,i)}n(o)},Gp={string:Zee,method:Gee,number:Kee,boolean:zee,regexp:Yee,integer:Wee,float:Uee,array:Ree,object:qee,enum:Hee,pattern:Jee,date:Bee,url:Wp,hex:Wp,email:Wp,tel:Wp,required:Xee,any:Lee},Qee=class e{static register=function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);Gp[e]=t};static warning=Eee;static messages=Ap;static validators=Gp;rules=null;_messages=Ap;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=Lp(kp(),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=jp(t),o(t,n)):o(null,i)}if(a.messages){let e=this.messages();e===Ap&&(e=kp()),Lp(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 Aee(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(Ip(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,Mp(a.messages.required,r.field))]):d=[].concat(r.message).map(Ip(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&&!Gp.hasOwnProperty(e.type))throw Error(Mp(`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`?Gp.required:Gp[this.getType(e)]||void 0}},Kp="'${name}' is not a valid ${type}",qp={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:Kp,method:Kp,array:Kp,object:Kp,number:Kp,date:Kp,boolean:Kp,integer:Kp,float:Kp,regexp:Kp,email:Kp,tel:Kp,url:Kp,hex:Kp},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}"}},Jp=Qee;function $ee(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var Yp=`CODE_LOGIC_ERROR`;async function Xp(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,Jp.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(Yp)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new Jp({[e]:[a]}),c=dn(qp,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===Yp?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)=>Xp(`${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`?$ee(e,u):e)}function ete(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{Lt(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,Lt(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;e<s.length;e+=1){let i=s[e],c=await Xp(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>Xp(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?nte(e):tte(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function tte(e){return Promise.all(e).then(e=>[].concat(...e))}async function nte(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 Zp(e){return Op(e)}function Qp(e,t){let n={};return t.forEach(t=>{let r=rn(e,t);n=on(n,t,r)}),n}function $p(e,t,n=!1){return e&&e.some(e=>em(t,e,n))}function em(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function rte(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 ite(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function tm(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 nm=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},ate=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=>!em(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;nm(()=>{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 ote(){return new Promise(e=>{nm(()=>{en(()=>{e()})})})}function rm(){return rm=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},rm.apply(this,arguments)}var im=[],am=[];function om(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var ste=class extends h.PureComponent{static contextType=Ep;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=im;warnings=am;constructor(e){if(super(e),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(wp);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(wp);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,Zp(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};zt(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&$p(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!zt(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=im,this.warnings=am,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=im,this.warnings=am,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&om(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||im),`warnings`in i&&(this.warnings=i.warnings||am),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&$p(t,s,!0)){this.reRender();return}if(r&&!s.length&&om(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(Zp).some(e=>$p(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&om(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 ote();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?Op(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=ete(t,n,l,e,i,s);return u.catch(e=>e).then((e=im)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=im})=>{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=im,this.warnings=am,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(wp);return t(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=tn(e);return t.length!==1||!h.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return rn(e||t(!0),n)};getControlled=(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(wp),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):ite(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},Op(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v};render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:h.isValidElement(n)?i=h.cloneElement(n,this.getControlled(n.props)):(Lt(!n,"`children` of Field is not validate ReactElement."),i=n),h.createElement(h.Fragment,{key:e},i)}};function sm({name:e,...t}){let n=h.useContext(Ep),r=h.useContext(Dp),i=e===void 0?void 0:Zp(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),h.createElement(ste,rm({key:o,name:i,isListField:a},t,{fieldContext:n}))}function cte({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=h.useContext(Ep),s=h.useContext(Dp),c=h.useRef({keys:[],id:0}).current,l=h.useMemo(()=>[...Zp(o.prefixName)||[],...Zp(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(Dp.Provider,{value:d},h.createElement(Ep.Provider,{value:u},h.createElement(sm,{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=tm(c.keys,e,n),t(tm(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(Lt(!1,`Form.List only accepts function as children.`),null)}function lte(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 cm=`__@field_split__`;function lm(e){return e.map(e=>`${typeof e}:${e}`).join(cm)}var um=class{kvs=new Map;set(e,t){this.kvs.set(lm(e),t)}get(e){return this.kvs.get(lm(e))}getAsPrefix(e){let t=lm(e),n=t+cm,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(lm(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(cm).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}},ute=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new ate(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(Lt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=dn(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=on(t,n,rn(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new um;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=rn(this.initialValues,e);return e.length?dn(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let t=new um;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=Zp(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=Zp(e);return n.get(t)||{INVALIDATE_NAME_PATH:Zp(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=Qp(this.store,a.map(Zp));return o.forEach(e=>{rn(s,e)||(s=on(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=Zp(e);return rn(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Zp(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=Zp(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=Zp(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(Zp),i=!1):(r=null,i=t):(r=t.map(Zp),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 um;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(Zp);return t.some(e=>$p(n,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new um,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)Lt(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)Lt(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(on(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(dn(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(Zp);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(on(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=Zp(r);n.push(a),`value`in i&&this.updateStore(on(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,"originRCField",{value:!0}),n});initEntityValue=e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();rn(this.store,n)===void 0&&this.updateStore(on(this.store,n,t))}};isMergedPreserve=e=>(e===void 0?this.preserve:e)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!em(e.getNamePath(),t))){let n=this.store;this.updateStore(on(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}};notifyObservers=(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n};updateValue=(e,t)=>{let n=Zp(e),r=this.store;this.updateStore(on(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=Qp(this.store,[n]);a(e,on(this.getFieldsValue(),n,rn(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=dn(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let t=new Set,n=[],r=new um;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=Zp(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 um;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})=>$p(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(Zp):[],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=>em(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||$p(a,t,u))){let n=e.validateRules({validateMessages:{...qp,...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=lte(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 dm(e){let t=h.useRef(null),[,n]=h.useState({});return t.current||(e?t.current=e:t.current=new ute(()=>{n({})}).getForm()),[t.current]}var fm=h.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),dte=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=h.useContext(fm),a=h.useRef({});return h.createElement(fm.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 pm(){return pm=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},pm.apply(this,arguments)}var fte=(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(fm),[b]=dm(a),{useSubscribe:x,setInitialValues:S,setCallbacks:C,setValidateMessages:w,setPreserve:T,destroyForm:E}=b.getInternalHooks(wp);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(()=>{rte(A.current||[],i||[])||b.setFields(i||[]),A.current=i},[i,b]);let j=h.useMemo(()=>({...b,validateTrigger:u}),[b,u]),M=h.createElement(Dp.Provider,{value:null},h.createElement(Ep.Provider,{value:j},O));return c===!1?M:h.createElement(c,pm({},_,{ref:v,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),b.submit()},onReset:e=>{e.preventDefault(),b.resetFields(),_.onReset?.(e)}}),M)};function mm(e){try{return JSON.stringify(e)}catch{return Math.random()}}function pte(...e){let[t,n={}]=e,r=wee(n)?{form:n}:n,i=r.form,[a,o]=(0,h.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,h.useMemo)(()=>mm(a),[a]),c=(0,h.useRef)(s);c.current=s;let l=(0,h.useContext)(Ep),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(wp),g=pe((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):rn(i,Zp(t));mm(a)!==mm(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 hm=h.forwardRef(fte);hm.FormProvider=dte,hm.Field=sm,hm.List=cte,hm.useForm=dm,hm.useWatch=pte;var gm=h.createContext({labelAlign:`right`,layout:`horizontal`,itemRef:()=>{}}),mte=h.createContext(null),hte=e=>{let t=Ht(e,[`prefixCls`]);return h.createElement(dte,{...t})},_m=h.createContext({prefixCls:``}),vm=h.createContext({}),gte=({children:e,status:t,override:n})=>{let r=h.useContext(vm),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(vm.Provider,{value:i},e)},_te=h.createContext(void 0),ym=(e,t,n)=>{let{variant:r,[e]:i}=h.useContext(Ir),a=h.useContext(_te),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=Fr.includes(s);return[s,c]},bm=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(()=>hr(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return h.createElement(`span`,{className:m(t,o,s,n),style:{...c,...r}})},vte=new Za(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),xm=e=>({height:e,lineHeight:q(e)}),Sm=e=>({width:e,...xm(e)}),yte=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:vte,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),Cm=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...xm(e)}),bte=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...Sm(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...Sm(i)},[`${t}${t}-sm`]:{...Sm(a)}}},xte=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,...Cm(t,s)},[`${r}-lg`]:{...Cm(i,s)},[`${r}-sm`]:{...Cm(a,s)}}},Ste=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,...Sm(i(r).mul(2).equal())}},Cte=e=>({[e.skeletonNodeCls]:{...Ste(e)}}),wte=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...Ste(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...Sm(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%`}}},wm=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},Tm=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...xm(e)}),Tte=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(),...Tm(r,s)},...wm(e,r,n),[`${n}-lg`]:{...Tm(i,s)},...wm(e,i,`${n}-lg`),[`${n}-sm`]:{...Tm(a,s)},...wm(e,a,`${n}-sm`)}},Ete=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,...Sm(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...Sm(u)},[`${n}-sm`]:{...Sm(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`,...Tte(e),...bte(e),...xte(e),...Cte(e),...wte(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
|
||
${r},
|
||
${i} > li,
|
||
${n},
|
||
${a},
|
||
${o},
|
||
${s},
|
||
${c}
|
||
`]:{...yte(e)}}}},Em=hc(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return Ete(Bo(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),Dte=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(Ir),f=d(`skeleton`,t),[p,g]=Em(f),_=qu(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(bm,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:_,...u}))},Ote=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(Ir),f=d(`skeleton`,t),[p,g]=Em(f),_=qu(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(bm,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:_,...u}))},Dm=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(Ir),d=u(`skeleton`,t),[f,p]=Em(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))},kte=e=>{let{getPrefixCls:t}=h.useContext(Ir),n=t(`skeleton`,e.prefixCls);return h.createElement(Dm,{...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`})))},Ate=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(Ir),f=d(`skeleton`,t),[p,g]=Em(f),_=qu(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(bm,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:_,...u}))},jte=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Mte=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:jte(n,e)}}));return h.createElement(`ul`,{className:m(t,n),style:r},a)},Nte=({prefixCls:e,className:t,width:n,style:r})=>h.createElement(`h3`,{className:m(e,t),style:{width:n,...r}});function Om(e){return _r(e)?e:{}}function Pte(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function Fte(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function Ite(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}=zr(`skeleton`),S=g(`skeleton`,t),[C,w]=Em(S),T={...e,avatar:l,title:u,paragraph:d},E=Dr(y),D=Dr(o),[O,k]=kr([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`,...Pte(t,n),...Om(l),style:k.avatar};a=h.createElement(`div`,{className:m(O.header,`${S}-header`),style:k.header},h.createElement(bm,{...e}))}let o;if(t||n){let r;if(t){let t={className:O.title,prefixCls:`${S}-title`,...Fte(e,n),...Om(u),style:k.title};r=h.createElement(Nte,{...t})}let i;if(n){let n={className:O.paragraph,prefixCls:`${S}-paragraph`,...Ite(e,t),...Om(d),style:k.paragraph};i=h.createElement(Mte,{...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=Ote,km.Avatar=Dte,km.Input=Ate,km.Image=kte,km.Node=Dm;var Am=km,Lte=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 jm(){return jm=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},jm.apply(this,arguments)}var Mm=h.forwardRef((e,t)=>h.createElement(W,jm({},e,{ref:t,icon:Lte.default}))),Rte=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 Nm(){return Nm=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},Nm.apply(this,arguments)}var Pm=h.forwardRef((e,t)=>h.createElement(W,Nm({},e,{ref:t,icon:Rte.default}))),Fm=(0,h.createContext)(null),zte=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,h.useState)(),l=(0,h.useRef)(),u=h.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){en.cancel(l.current)}return(0,h.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=en(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},Im={width:0,height:0,left:0,top:0};function Bte(e,t,n){return(0,h.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||Im,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)||Im;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 Lm(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 Vte=.1,Rm=.01,zm=20,Bm=.995**zm;function Hte(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))<Vte)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<Rm&&Math.abs(i)<Rm){window.clearInterval(u.current);return}r*=Bm,i*=Bm,t(r*zm,i*zm)},zm)}}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 Vm(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 Ute(e){let t=(0,h.useRef)([]),[,n]=(0,h.useState)({}),r=(0,h.useRef)(typeof e==`function`?e():e),i=Vm(()=>{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 Hm={width:0,height:0,left:0,top:0,right:0};function Wte(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)||Hm;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)||Hm)[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 Um(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var Gte=`TABS_DQ`;function Wm(e){return String(e).replace(/"/g,Gte)}function Gm(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Km=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||`+`)}),qm=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:Kte,TAB:qte}=Et;function Jte({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 Kte:o();break;case qte:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};h.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&en(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Yte=(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}))}),Jm={adjustX:1,adjustY:1},Ym=[0,0],Xte={topLeft:{points:[`bl`,`tl`],overflow:Jm,offset:[0,-4],targetOffset:Ym},top:{points:[`bc`,`tc`],overflow:Jm,offset:[0,-4],targetOffset:Ym},topRight:{points:[`br`,`tr`],overflow:Jm,offset:[0,-4],targetOffset:Ym},bottomLeft:{points:[`tl`,`bl`],overflow:Jm,offset:[0,4],targetOffset:Ym},bottom:{points:[`tc`,`bc`],overflow:Jm,offset:[0,4],targetOffset:Ym},bottomRight:{points:[`tr`,`br`],overflow:Jm,offset:[0,4],targetOffset:Ym}};function Xm(){return Xm=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},Xm.apply(this,arguments)}var Zm=h.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=Xte,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)};Jte({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(Yte,{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(cu,Xm({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)}),Qm=void 0;function Zte(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:g,component:_=`div`,...v}=e,y=o&&!p;function b(e){c(l,e)}h.useEffect(()=>()=>{b(null)},[]);let x=a&&i!==Qm?a(i,{index:g}):f,S;r||(S={opacity:+!y,height:y?0:Qm,overflowY:y?`hidden`:Qm,order:o?g:Qm,pointerEvents:y?`none`:Qm,position:y?`absolute`:Qm});let C={};y&&(C[`aria-hidden`]=!0);let w=h.createElement(_,jf({className:m(!r&&n,u),style:{...S,...d}},C,v,{ref:t}),x);return o&&(w=h.createElement(Ol,{onResize:({offsetWidth:e})=>{b(e)},disabled:s},w)),w}var $m=h.forwardRef(Zte);function Qte(e){if(typeof MessageChannel>`u`)en(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function $te(){let e=h.useRef(null);return t=>{e.current||(e.current=[],Qte(()=>{(0,yn.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function eh(e,t){let[n,r]=h.useState(t);return[n,pe(t=>{e(()=>{r(t)})})]}var th=h.createContext(null),ene=h.forwardRef((e,t)=>{let n=h.useContext(th);if(!n){let{component:n=`div`,...r}=e;return h.createElement(n,jf({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return h.createElement(th.Provider,{value:null},h.createElement($m,jf({ref:t,className:m(r,a)},i,o)))}),nh=`responsive`,rh=`invalidate`;function tne(e){return`+ ${e.length} ...`}function nne(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=$te(),[w,T]=eh(C,null),E=w||0,[D,O]=eh(C,new Map),[k,A]=eh(C,0),[j,M]=eh(C,0),[N,P]=eh(C,0),[F,I]=eh(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===nh,K=r.length&&ee,te=d===rh,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(th.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($m,jf({},_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||tne,xe=p?h.createElement(th.Provider,{value:{..._e,...ye}},p(ie)):h.createElement($m,jf({},_e,ye),typeof be==`function`?be(ie):be),Se=h.createElement(v,jf({className:m(!te&&n,u),style:l,ref:t},x),g&&h.createElement($m,jf({},_e,{responsive:ee,responsiveDisabled:!K,order:-1,className:`${W}-prefix`,registerSize:de,display:!0}),g),re.map(ve),ne?xe:null,_&&h.createElement($m,jf({},_e,{responsive:ee,responsiveDisabled:!K,order:V,className:`${W}-suffix`,registerSize:fe,display:!0,style:he}),_));return ee?h.createElement(Ol,{onResize:ce,disabled:!K},Se):Se}var ih=h.forwardRef(nne);ih.Item=ene,ih.RESPONSIVE=nh,ih.INVALIDATE=rh;var ah=ih,oh=h.createContext(null);function sh(e,t){return`${e}-${t}`}function ch(e){return sh(h.useContext(oh),e)}var lh=h.createContext(null);function rne(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function uh({children:e,locked:t,...n}){let r=h.useContext(lh),i=Te(()=>rne(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!zt(e[1],n[1],!0)));return h.createElement(lh.Provider,{value:i},e)}var ine=[],dh=h.createContext(null);function fh(){return h.useContext(dh)}var ph=h.createContext(ine);function mh(e){let t=h.useContext(ph);return h.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var hh=h.createContext(null),gh=h.createContext({}),{LEFT:_h,RIGHT:vh,UP:yh,DOWN:bh,ENTER:xh,ESC:Sh,HOME:Ch,END:wh}=Et,Th=[yh,bh,_h,vh];function ane(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===xh)return{inlineTrigger:!0};let c={[yh]:i,[bh]:a},l={[_h]:n?a:i,[vh]:n?i:a,[bh]:o,[xh]:o},u={[yh]:i,[bh]:a,[xh]:o,[Sh]:s,[_h]:n?o:s,[vh]: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 one(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function sne(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function Eh(e,t){return ot(e,!0).filter(e=>t.has(e))}function Dh(e,t,n,r=1){if(!e)return null;let i=Eh(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 Oh=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${sh(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function cne(e,t,n,r,i,a,o,s,c,l){let u=h.useRef(),d=h.useRef();d.current=t;let f=()=>{en.cancel(u.current)};return h.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...Th,xh,Sh,Ch,wh].includes(m)){let l=a(),h=Oh(l,r),{elements:g,key2element:_,element2key:v}=h,y=sne(_.get(t),g),b=v.get(y),x=ane(e,o(b,!0).length===1,n,m);if(!x&&m!==Ch&&m!==wh)return;(Th.includes(m)||[Ch,wh].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=en(()=>{d.current===r&&t.focus()})}};if([Ch,wh].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:one(y);let n,r=Eh(t,g);n=m===Ch?r[0]:m===wh?r[r.length-1]:Dh(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=en(()=>{h=Oh(l,r);let e=y.getAttribute(`aria-controls`);S(Dh(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 lne(e){Promise.resolve().then(e)}var kh=`__RC_UTIL_PATH_SPLIT__`,Ah=e=>e.join(kh),une=e=>e.split(kh),jh=`rc-menu-more`;function dne(){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=Ah(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;lne(()=>{o===a.current&&s()})},[]),l=(0,h.useCallback)((e,r)=>{let i=Ah(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,h.useCallback)(e=>{i(e)},[]),d=(0,h.useCallback)((e,n)=>{let i=une(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(jh),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(jh),e},m=(0,h.useCallback)(e=>{let r=`${t.current.get(e)}${kh}`,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 Mh(e){let t=h.useRef(e);t.current=e;let n=h.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function Nh(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=h.useContext(lh),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 Ph(e){let{mode:t,rtl:n,inlineIndent:r}=h.useContext(lh);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function Fh({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 Ih({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(Lt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(this,arguments)}var fne=class extends h.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=Ht(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return Lt(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(ah.Item,Lh({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},pne=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=ch(i),{prefixCls:b,onItemClick:x,disabled:S,overflowDisabled:C,itemIcon:w,selectedKeys:T,onActive:E}=h.useContext(lh),{_internalRenderMenuItem:D}=h.useContext(gh),O=`${b}-item`,k=h.useRef(),A=h.useRef(),j=S||o,M=Le(t,A),N=mh(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}=Nh(i,j,d,f),R=T.includes(i),z=Ph(N.length),B=e=>{if(j)return;let t=P(e);p?.(Ih(t)),x(t)},V=e=>{if(g?.(e),e.which===Et.ENTER){let t=P(e);p?.(Ih(t)),x(t)}},H=e=>{E(i),_?.(e)},U={};e.role===`option`&&(U[`aria-selected`]=R);let W=h.createElement(fne,Lh({ref:k,elementRef:M,role:u===null?`none`:u||`menuitem`,tabIndex:o?null:-1,"data-menu-id":C&&y?null:y},Ht(v,[`extra`]),L,U,{component:`li`,"aria-disabled":o,style:{...z,...n},className:m(O,{[`${O}-active`]:I,[`${O}-selected`]:R,[`${O}-disabled`]:j},r),onClick:B,onKeyDown:V,onFocus:H}),c,h.createElement(Fh,{props:{...e,isSelected:R},icon:F}));return D&&(W=D(W,e,{selected:R})),W});function mne(e,t){let{eventKey:n}=e,r=fh(),i=mh(n);return h.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:h.createElement(pne,Lh({},e,{ref:t}))}var Rh=h.forwardRef(mne);function zh(){return zh=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},zh.apply(this,arguments)}var Bh=h.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=h.useContext(lh);return h.createElement(`ul`,zh({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 Vh(e,t){return tn(e).map((e,n)=>{if(h.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return h.cloneElement(e,a)}return e})}var Hh={adjustX:1,adjustY:1},hne={topLeft:{points:[`bl`,`tl`],overflow:Hh},topRight:{points:[`br`,`tr`],overflow:Hh},bottomLeft:{points:[`tl`,`bl`],overflow:Hh},bottomRight:{points:[`tr`,`br`],overflow:Hh},leftTop:{points:[`tr`,`tl`],overflow:Hh},leftBottom:{points:[`br`,`bl`],overflow:Hh},rightTop:{points:[`tl`,`tr`],overflow:Hh},rightBottom:{points:[`bl`,`br`],overflow:Hh}},gne={topLeft:{points:[`bl`,`tl`],overflow:Hh},topRight:{points:[`br`,`tr`],overflow:Hh},bottomLeft:{points:[`tl`,`bl`],overflow:Hh},bottomRight:{points:[`tr`,`br`],overflow:Hh},rightTop:{points:[`tr`,`tl`],overflow:Hh},rightBottom:{points:[`br`,`bl`],overflow:Hh},leftTop:{points:[`tl`,`tr`],overflow:Hh},leftBottom:{points:[`bl`,`br`],overflow:Hh}};function Uh(e,t,n){if(t)return t;if(n)return n[e]||n.other}var _ne={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function vne({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(lh),[S,C]=h.useState(!1),w=d?{...gne,...g}:{...hne,...g},T=_ne[c],E=Uh(c,b,x),D=h.useRef(E);c!==`inline`&&(D.current=E);let O={...D.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},k=h.useRef();return h.useEffect(()=>(k.current=en(()=>{C(t)}),()=>{en.cancel(k.current)}),[t]),h.createElement(cu,{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 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)}function yne({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=h.useContext(lh),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={...Uh(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(uh,{mode:i,locked:!u.current},h.createElement(or,Wh({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>h.createElement(Bh,{id:e,className:t,style:n},r)))}function Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gh.apply(this,arguments)}var bne=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=ch(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(lh),{_internalRenderSubMenuItem:V}=h.useContext(gh),{isSubPathKey:H}=h.useContext(hh),U=mh(),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}=Nh(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=Ph(U.length),he=e=>{G||(S?.({key:s,domEvent:e}),k===`inline`&&R(s,!re))},ge=Mh(e=>{y?.(Ih(e)),L(e)}),_e=e=>{k!==`inline`&&R(s,e)},ve=()=>{z(s)},ye=D&&`${D}-popup`,be=h.useMemo(()=>h.createElement(Fh,{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`,Gh({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(uh,{classNames:a,styles:i,mode:Ce===`horizontal`?`vertical`:Ce},h.createElement(Bh,{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(vne,{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(ah.Item,Gh({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(yne,{id:ye,open:ie,keyPath:U},d));return V&&(Te=V(Te,e,{selected:ae,active:pe,open:ie,disabled:G})),h.createElement(uh,{classNames:a,styles:i,onItemClick:ge,mode:k===`horizontal`?`vertical`:k,itemIcon:te,expandIcon:ne},Te)}),Kh=h.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=mh(n),a=Vh(r,i),o=fh();h.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:h.createElement(bne,Gh({ref:t},e),a),h.createElement(ph.Provider,{value:i},s)});function qh({className:e,style:t}){let{prefixCls:n}=h.useContext(lh);return fh()?null:h.createElement(`li`,{role:`separator`,className:m(`${n}-item-divider`,e),style:t})}function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jh.apply(this,arguments)}var xne=h.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=h.useContext(lh),u=`${s}-item-group`;return h.createElement(`li`,Jh({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))}),Yh=h.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Vh(r,mh(n));return fh()?i:h.createElement(xne,Jh({ref:t},Ht(e,[`warnKey`])),i)});function Xh(){return Xh=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},Xh.apply(this,arguments)}function Zh(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,Xh({key:m},p,{title:c}),Zh(l,t,n)):h.createElement(a,Xh({key:m},p,{title:c}),Zh(l,t,n));if(d===`divider`)return h.createElement(o,Xh({key:m},p));let g=!!f||f===0;return h.createElement(r,Xh({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 Qh(e,t,n,r,i){let a=e,o={divider:qh,item:Rh,group:Yh,submenu:Kh,...r};return t&&(a=Zh(t,o,i)),Vh(a,n)}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 eg=[],tg=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(()=>[Qh(u,l,eg,ne,n),Qh(u,l,eg,{},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||eg,he=(e,t=!1)=>{function n(){pe(e),U?.(e)}t?(0,yn.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(eg))},[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}=dne(),Re=h.useMemo(()=>({registerPath:je,unregisterPath:Me}),[je,Me]),ze=h.useMemo(()=>({isSubPathKey:Pe}),[Pe]);h.useEffect(()=>{Ne(Ae?eg:ae.slice(Oe+1).map(e=>e.key))},[Oe,Ae]);let[Be,Ve]=ye(w||T&&ae[0]?.key,w),He=Mh(e=>{Ve(e)}),Ue=Mh(()=>{Ve(void 0)});(0,h.useImperativeHandle)(t,()=>({list:le.current,focus:e=>{let t=Ie(),{elements:n,key2element:r,element2key:i}=Oh(t,ue),a=Eh(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}=Oh(Ie(),ue);return t.get(e)||null}}));let[We,Ge]=ye(O||[],k),Ke=h.useMemo(()=>Array.isArray(We)?We:We==null?eg:[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(eg)},Je=Mh(e=>{H?.(Ih(e)),qe(e)}),Ye=Mh((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))}zt(me,n,!0)||he(n,!0)}),Xe=cne(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(uh,{key:e.key,overflowDisabled:t>Oe,classNames:s,styles:o},e)),$e=h.createElement(ah,$h({id:f,ref:le,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:Rh,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(Kh,{eventKey:jh,title:z,disabled:Ae,internalPopupClose:t===0,popupClassName:B},n)},maxCount:Ce!==`horizontal`||v?ah.INVALIDATE:ah.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{ke(e)},onKeyDown:Xe},ie));return h.createElement(gh.Provider,{value:Ze},h.createElement(oh.Provider,{value:ue},h.createElement(uh,{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(hh.Provider,{value:ze},$e),h.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},h.createElement(dh.Provider,{value:Re},oe)))))});tg.Item=Rh,tg.SubMenu=Kh,tg.ItemGroup=Yh,tg.Divider=qh;function ng(){return ng=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},ng.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(tg,{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=Gm(t,i,u,n);return h.createElement(Rh,{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(Zm,ng({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(Km,{prefixCls:n,locale:a,editable:u}))}),Cne=h.memo(Sne,(e,t)=>t.tabMoving),wne=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=Gm(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":Wm(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 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 Tne=(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]},ig=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]},ag=(e,t)=>e[+!t],og=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(Fm),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]=Lm(0,(e,t)=>{A&&_&&_({direction:e>t?`left`:`right`})}),[N,P]=Lm(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]=Ute(new Map),G=Bte(S,U,L[0]),ee=ag(F,A),K=ag(L,A),te=ag(z,A),ne=ag(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)}Hte(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]=Wte(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);Gm(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(wne,{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="${Wm(n)}"]`);if(r){let[i,a,o,s]=Tne(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=Vm(()=>{let e=ig(C),t=ig(w),n=ig(T);I([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=ig(k);B(r),H(ig(O));let i=ig(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}=zte({activeTabOffset:Pe,horizontal:A,indicator:v,rtl:s});(0,h.useEffect)(()=>{_e()},[o,oe,se,Um(Pe),Um(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(Ol,{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(qm,{ref:w,position:`left`,extra:c,prefixCls:x}),h.createElement(Ol,{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(Ol,{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(Km,{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,rg({},e,{removeAriaLabel:u?.removeAriaLabel,ref:O,prefixCls:x,tabs:Ne,className:!Ie&&ae,popupStyle:b?.popup,tabMoving:!!ue})),h.createElement(qm,{ref:T,position:`right`,extra:c,prefixCls:x})))}),Ene=({renderTabBar:e,...t})=>e?e(t,og):h.createElement(og,t),Dne=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 sg(){return sg=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},sg.apply(this,arguments)}var One=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(Fm),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(or,sg({key:i,visible:_,forceRender:o,removeOnLeave:!!(a??d),leavedClassName:`${g}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>h.createElement(Dne,sg({},p,{prefixCls:g,id:t,tabKey:i,animated:f,active:_,style:{...c,...s,...e},className:m(l,u,n),ref:r})))})))};function kne(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 cg(){return cg=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},cg.apply(this,arguments)}var lg=0,Ane=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=kne(u),[N,P]=(0,h.useState)(!1);(0,h.useEffect)(()=>{P(Vt())},[]);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-${lg}`),lg+=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(Fm.Provider,{value:W},h.createElement(`div`,cg({ref:t,id:n,className:m(r,`${r}-${d}`,{[`${r}-mobile`]:N,[`${r}-editable`]:l,[`${r}-rtl`]:j},i)},k),h.createElement(Ene,cg({},U,{renderTabBar:b})),h.createElement(One,cg({destroyOnHidden:y},H,{bodyStyle:O?.body,bodyClassName:D?.body,contentStyle:O?.content,contentClassName:D?.content,animated:M}))))}),ug=e=>`${e}-css-var`,jne={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Mne(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,..._r(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...jne,motionName:Yf(e,`switch`)}),n}function Nne(e){return e.filter(e=>e)}function Pne(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):Nne(tn(t).map(e=>{if(h.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var Fne=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}`}}}}},[lf(e,`slide-up`),lf(e,`slide-down`)]]},Ine=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)`]:io(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}}}}}}},Lne=e=>{let{antCls:t,componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${n}-dropdown`]:{...eo(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:$d},[`&${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:tf},[`&${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:ef},[`&${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:nf},[`${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":{...$a,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`}}}}}}},Rne=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}}}}}},zne=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}}}}}},Bne=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},...ao(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:io(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}}}},Vne=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`}}}}},Hne=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...eo(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},...ao(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...Bne(e),[`${t}-body`]:{position:`relative`,width:`100%`},[`${t}-body-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-content`]:{...ao(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`}}}}}},Une=hc(`Tabs`,e=>{let t=Bo(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[zne(t),Vne(t),Rne(t),Lne(t),Ine(t),Hne(t),Fne(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}}),Wne=()=>null,dg=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}=zr(`tabs`),{tabs:L}=h.useContext(Ir),R=A(`tabs`,k),z=ug(R),[B,V]=Une(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(Pm,null),showAdd:s!==!0});let W=A(),G=qu(a),ee=Pne(_,g),K=Mne(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=Dr(P),ae=Dr(y),[se,ce]=kr([F,S],[I,ie,C,ae],{props:re},{popup:{_default:`root`}});return h.createElement(Ane,{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(Mm,null),transitionName:`${W}-slide-up`,...f},prefixCls:R,animated:K,indicator:te,destroyOnHidden:T??w,tabPosition:ne})});dg.TabPane=Wne;var fg=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=h.useContext(Ir),a=i(`card`,e),o=m(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return h.createElement(`div`,{...r,className:o})},Gne=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`,...ro(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...$a,[`
|
||
> ${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}`}}}},Kne=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}}},qne=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)}`,...ro(),"& > 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}`}}}},Jne=e=>({margin:`${q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...ro(),"&-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,...$a},"&-description":{color:e.colorTextDescription}}),Yne=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)}`}}},Xne=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},Zne=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...eo(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Gne(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`]:Kne(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:qne(e),[`${t}-meta`]:Jne(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`]:Yne(e),[`${t}-loading`]:Xne(e),[`${t}-rtl`]:{direction:`rtl`}}},Qne=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`}}}}},$ne=hc(`Card`,e=>{let t=Bo(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Zne(t),Qne(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})),ere=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))}))},tre=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}=zr(`card`),[F]=ym(`card`,f,d),I=qu(p),L={...e,size:I,variant:F},R=Dr(M),z=Dr(a),[B,V]=kr([N,E],[P,R,D,z],{props:L}),H=t=>{e.onTabChange?.(t)},U=h.useMemo(()=>tn(b),[b]),W=h.useMemo(()=>U.some(e=>h.isValidElement(e)&&e.type===fg),[U]),G=k(`card`,n),[ee,K]=$ne(G),te=h.createElement(Am,{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(dg,{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(ere,{actionClasses:fe,actionStyle:V.actions,actions:v}):null,me=Ht(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)}),nre=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}=zr(`cardMeta`),_=`${u(`card`,t)}-meta`,v=Dr(f),y=Dr(o),[b,x]=kr([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)},pg=tre;pg.Grid=fg,pg.Meta=nre;function mg(){return mg=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},mg.apply(this,arguments)}var hg=(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`,mg({},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})))}),gg=h.createContext(null),rre=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`,a=`@media (hover: hover) and (pointer: fine)`;return[{[`${t}-group`]:{...eo(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...eo(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0}},[t]:{...eo(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`,...uf(),"&: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}`,...uf()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:io(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}`,...uf()},[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 _g(e,t){return rre(Bo(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var vg=hc(`Checkbox`,(e,{prefixCls:t})=>[_g(t,e)]);function yg(e){let t=h.useRef(null),n=()=>{en.cancel(t.current),t.current=null};return[()=>{n(),t.current=en(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var bg=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}=zr(`checkbox`),O=h.useContext(gg),{isFormItemInput:k}=h.useContext(vm),A=h.useContext(gu),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=ug(R),[B,V]=vg(R,z),H={...x},U={...e,indeterminate:i,disabled:j,checked:P},W=Dr(T),G=Dr(d),[ee,K]=kr([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},Ru,B),[re,ie]=yg(H.onClick);return h.createElement(Ku,{component:`Checkbox`,disabled:j},h.createElement(`label`,{className:te,style:K.root,onMouseEnter:a,onMouseLeave:o,onClick:re},h.createElement(hg,{...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:_}),mr(r)&&h.createElement(`span`,{className:m(`${R}-label`,ee.label),style:K.label},r)))}),ire=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(Ir),[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`||hr(e)?{label:e,value:e}:e),[i]),x=e=>{y(t=>t.filter(t=>t!==e))},S=e=>{y(t=>[].concat(fr(t),[e]))},C=e=>{let t=g.indexOf(e.value),n=fr(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=ug(w),[D,O]=vg(w,E),k=Ht(d,[`value`,`disabled`]),A=i.length?b.map(e=>h.createElement(bg,{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(gg.Provider,{value:j},A))}),xg=bg;xg.Group=ire,xg.__ANT_CHECKBOX=!0;var Sg=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Cg=[].concat(Sg).reverse(),are=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)`}),ore=e=>{let t=e,n=[].concat(Sg).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},sre=()=>{let[,e]=mc(),t=are(ore(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);vr(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];vr(t?.mql.removeEventListener)&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])},wg=(0,h.createContext)({}),cre=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`}}}},lre=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},ure=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=vc(i,`grid`),[,s]=vc(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},Tg=(e,t)=>ure(e,t),dre=(e,t,n)=>({[`@media (min-width: ${q(t)})`]:{...Tg(e,n)}}),fre=()=>({}),pre=()=>({}),mre=hc(`Grid`,cre,fre),Eg=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),hre=hc(`Grid`,e=>{let t=Bo(e,{gridColumns:24}),n=Eg(t);return delete n.xs,[lre(t),Tg(t,``),Tg(t,`-xs`),Object.keys(n).map(e=>dre(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},pre);function Dg(e){return e===`auto`?`1 1 auto`:hr(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var Og=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Ir),{gutter:i,wrap:a}=h.useContext(wg),{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]=hre(y),[C]=vc(b,`col`),w={},T={};Cg.forEach(t=>{let n={},i=e[t];hr(i)?n.span=i:_r(i)&&(n=i||{}),delete v[t],T={...T,[`${y}-${t}-${n.span}`]:pr(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`)]=Dg(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=hr(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),g&&(D.flex=Dg(g),a===!1&&!D.minWidth&&(D.minWidth=0)),h.createElement(`div`,{...v,style:{...D,..._,...w},className:E,ref:t},p)});function kg(e=!0,t={}){let n=(0,h.useRef)(t),[,r]=rd(),i=sre();return ge(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}function gre(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(_r(e))for(let r=0;r<Sg.length;r++){let a=Sg[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var Ag=(e,t)=>{let[n,r]=h.useState(()=>gr(e)?e:``),i=()=>{if(gr(e)&&r(e),_r(e))for(let n=0;n<Sg.length;n++){let i=Sg[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},jg=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(Ir),p=kg(!0,null),g=Ag(i,p),_=Ag(r,p),v=d(`row`,n),[y,b]=mre(v),x=gre(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=hr(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(wg.Provider,{value:E},h.createElement(`div`,{...u,className:S,style:{...C,...o},ref:t},s))}),Mg=Og,_re=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}))})),vre=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`)}}}))})),yre=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)}}}))})),bre=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)}}}))})),xre=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}}}))})),Sre=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_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)}}}))})),Cre=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_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)}}}))})),Ng=l(_re()),wre=l(vre()),Tre=l(yre()),Ere=l(bre()),Dre=l(xre()),Ore=l(Sre()),kre=l(Cre());Ng.default.extend(kre.default),Ng.default.extend(Ore.default),Ng.default.extend(wre.default),Ng.default.extend(Tre.default),Ng.default.extend(Ere.default),Ng.default.extend(Dre.default),Ng.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 Are={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`},Pg=e=>Are[e]||e.split(`_`)[0],Fg=e=>!Ng.default.isDayjs(e)||e instanceof Ng.default?e:(0,Ng.default)(e.valueOf()),jre={getNow:()=>{let e=(0,Ng.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,Ng.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>Fg(e).endOf(`month`),getWeekDay:e=>{let t=Fg(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Fg(e).year(),getMonth:e=>Fg(e).month(),getDate:e=>Fg(e).date(),getHour:e=>Fg(e).hour(),getMinute:e=>Fg(e).minute(),getSecond:e=>Fg(e).second(),getMillisecond:e=>Fg(e).millisecond(),addYear:(e,t)=>Fg(e).add(t,`year`),addMonth:(e,t)=>Fg(e).add(t,`month`),addDate:(e,t)=>Fg(e).add(t,`day`),setYear:(e,t)=>Fg(e).year(t),setMonth:(e,t)=>Fg(e).month(t),setDate:(e,t)=>Fg(e).date(t),setHour:(e,t)=>Fg(e).hour(t),setMinute:(e,t)=>Fg(e).minute(t),setSecond:(e,t)=>Fg(e).second(t),setMillisecond:(e,t)=>Fg(e).millisecond(t),isAfter:(e,t)=>Fg(e).isAfter(Fg(t)),isValidate:e=>Fg(e).isValid(),locale:{getWeekFirstDay:e=>(0,Ng.default)().locale(Pg(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Fg(t).locale(Pg(e)).weekday(0),getWeek:(e,t)=>Fg(t).locale(Pg(e)).week(),getShortWeekDays:e=>(0,Ng.default)().locale(Pg(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,Ng.default)().locale(Pg(e)).localeData().monthsShort(),format:(e,t,n)=>Fg(t).locale(Pg(e)).format(n),parse:(e,t,n)=>{let r=Pg(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,Ng.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,Ng.default)(a,i,!0).locale(r);if(o.isValid())return o}return null}}};function Ig(e){return t=>h.createElement(Iu,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,{...t}))}var Lg=(e,t,n,r,i)=>Ig(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(Ir),_=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}))}),Mre=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 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 Nre=h.forwardRef((e,t)=>h.createElement(W,Rg({},e,{ref:t,icon:Mre.default})));function Pre(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var zg=h.createContext(null),Fre={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 Ire({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=Fre,direction:u,visible:d,onClose:f}){let{prefixCls:p}=h.useContext(zg),g=`${p}-dropdown`,_=Pre(c,u===`rtl`);return h.createElement(cu,{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 Bg(e,t,n=`0`){let r=String(e);for(;r.length<t;)r=`${n}${r}`;return r}function Vg(e){return e==null?[]:Array.isArray(e)?e:[e]}function Hg(e,t,n){let r=[...e];return r[t]=n,r}function Ug(e,t){let n={};return(t||Object.keys(e)).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function Lre(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 Rre(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 zre(e){return Ug(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function Wg(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 Bre(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=>Hg(n,t,e))}]}function Vre(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 Hre(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=Vre(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 Ure(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return h.useMemo(()=>Hre(e,n,r,i,a,o),[e,n,r,i,a,o])}function Gg(e,t,n){return n??t.some(t=>e.includes(t))}var Wre=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function Gre(e){let t=Ug(e,Wre),{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 Kre(e){return e&&typeof e==`string`}function qre(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function Jre(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 Yre(e){let{showTime:t}=e,[n,r]=Gre(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=qre(s,c,l,o);return[s,c,l]=Jre(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function Xre(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=Lre(e,i,null),s=[t,n];for(let e=0;e<s.length;e+=1){let t=Vg(s[e])[0];if(Kre(t)){o=t;break}}let{showHour:c,showMinute:l,showSecond:u,showMillisecond:d}=a,{use12Hours:f}=a,p=Gg(o,[`a`,`A`,`LT`,`LLL`,`LTS`],f),m=qre(c,l,u,d);m||(c=Gg(o,[`H`,`h`,`k`,`LT`,`LLL`]),l=Gg(o,[`m`,`LT`,`LLL`]),u=Gg(o,[`s`,`LTS`]),d=Gg(o,[`SSS`])),[c,l,u]=Jre(m,c,l,u,d);let h=t||Vre(c,l,u,d,p);return{...a,format:h,showHour:c,showMinute:l,showSecond:u,showMillisecond:d,use12Hours:p}}return null}function Zre(e,t,n){return t===!1?null:(t&&typeof t==`object`?t:{}).clearIcon||n||h.createElement(`span`,{className:`${e}-clear-btn`})}function Kg(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function qg(e,t,n){return Kg(t,n,()=>Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function Jg(e,t,n){return Kg(t,n,()=>e.getYear(t)===e.getYear(n))}function Qre(e,t){return Math.floor(e.getMonth(t)/3)+1}function $re(e,t,n){return Kg(t,n,()=>Jg(e,t,n)&&Qre(e,t)===Qre(e,n))}function Yg(e,t,n){return Kg(t,n,()=>Jg(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function Xg(e,t,n){return Kg(t,n,()=>Jg(e,t,n)&&Yg(e,t,n)&&e.getDate(t)===e.getDate(n))}function eie(e,t,n){return Kg(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function tie(e,t,n){return Kg(t,n,()=>Xg(e,t,n)&&eie(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function Zg(e,t,n,r){return Kg(n,r,()=>Jg(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function Qg(e,t,n,r,i){switch(i){case`date`:return Xg(e,n,r);case`week`:return Zg(e,t.locale,n,r);case`month`:return Yg(e,n,r);case`quarter`:return $re(e,n,r);case`year`:return Jg(e,n,r);case`decade`:return qg(e,n,r);case`time`:return eie(e,n,r);default:return tie(e,n,r)}}function $g(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function e_(e,t,n,r,i){return Qg(e,t,n,r,i)?!0:e.isAfter(n,r)}function nie(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 t_(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function n_(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 rie(e,t,n,r,i){return pe((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!Qg(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!Qg(e,t,i,a,o.type)))}function iie(e,t,n){return h.useMemo(()=>{let r=Vg(Lre(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 aie(e,t,n){return typeof e[0]==`function`||n?!0:t}function oie(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 r_(e,t=!1){return h.useMemo(()=>{let n=e&&Vg(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function sie(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=r_(C),O=r_(w),k=r_(T),A=r_(E),j=i===`date`&&S?`datetime`:i,M=j===`time`||j===`datetime`,N=M||g,P=m??M,[F,I,L,R]=Yre(e),z=Ure(r,I),B=h.useMemo(()=>Xre(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:Zre(a,f,p),showTime:B,value:D,defaultValue:O,pickerValue:k,defaultPickerValue:A,...t?.()}),[e]),[H,U]=iie(j,z,_),W=aie(H,v,g),G=rie(n,r,y,b,x),ee=oie(n,i,G,B);return[h.useMemo(()=>({...V,needConfirm:P,inputReadOnly:W,disabledDate:G}),[V,P,W,G]),j,N,H,U,ee]}function cie(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=()=>{en.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=en(u)});return h.useEffect(()=>l,[]),[r,d]}function lie(e,t,n=[],r){let[i,a]=cie(n.every(e=>e)?!1:e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function uie(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 die(e,t){return h.useMemo(()=>e||(t?(Lt(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function i_(e,t,n=1){let r=h.useRef(t);r.current=t,_e(()=>{if(e)r.current(e);else{let t=en(()=>{r.current(e)},n);return()=>{en.cancel(t)}}},[e])}function fie(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 i_(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 pie(e,t,n,r,i,a){let o=n[n.length-1];return(s,c)=>{let[l,u]=e,d={...c,from:Rre(e,n)};return o===1&&t[0]&&l&&!Qg(r,i,l,s,d.type)&&r.isAfter(l,s)||o===0&&t[1]&&u&&!Qg(r,i,u,s,d.type)&&r.isAfter(s,u)?!0:a?.(s,d)}}function a_(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 o_=[];function mie(e,t,n,r,i,a,o,s,c=o_,l=o_,u=o_,d,f,p){let m=o===`time`,g=a||0,_=t=>{let r=e.getNow();return m&&(r=n_(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:n_(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&&(!Qg(e,t,b,s[0],o)||!Qg(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&&!Qg(e,t,n,r,i)||o===`year`&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return a_(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?a_(e,o,t,1):t;p&&e.isAfter(n,p)&&(t=s?a_(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 hie(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 gie=[];function _ie(e,t,n){return[r=>r.map(r=>t_(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&&!tie(e,r,o)){i=a;break}}return[i<0,i!==0]}]}function vie(e,t){return[...e].sort((e,n)=>t.isAfter(e,n)?1:-1)}function yie(e){let[t,n]=hie(e),r=pe(()=>{n(e)});return h.useEffect(()=>{r()},[e]),[t,n]}function bie(e,t,n,r,i,a,o,s,c){let[l,u]=ye(a,o),d=l||gie,[f,p]=yie(d),[m,h]=_ie(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=vie(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 xie(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]=_ie(u,d,o),[b,x]=hie(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=vie(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||Qg(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(Hg(b(),e,r()[e])),t&&C()}),T=!s&&!c;return i_(!T,()=>{T&&(C(),i(t),S())},2),[w,C]}function Sie(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 Cie(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 s_(){return[]}function c_(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:Bg(n,a),value:n,disabled:e})}return o}function l_(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||s_,t.disabledMinutes||d||s_,t.disabledSeconds||f||s_,t.disabledMilliseconds||s_]},[l,u,d,f]),[g,_,v,y]=h.useMemo(()=>m(p),[p,m]),b=h.useCallback((e,t,n,l)=>{let u=c_(0,23,i,c,e());return[r?u.map(e=>({...e,label:Bg(e.value%12||12,2)})):u,e=>c_(0,59,a,c,t(e)),(e,t)=>c_(0,59,o,c,n(e,t)),(e,t,n)=>c_(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 Cie(t,r,i,a,o,e)},x,S,C,w]}function wie(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(zg),y=u.getNow(),[b]=l_(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 Tie(e,t,n){function r(r,i){let a=r.findIndex(r=>Qg(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var Eie=h.createContext(null),u_=h.createContext(null);function d_(){return h.useContext(u_)}function f_(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(Eie),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 p_=h.createContext({});function m_(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}=d_(),k=f||b,A=`${p}-cell`,{onCellDblClick:j}=h.useContext(p_),M=e=>E.some(t=>t&&Qg(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=$g(T,e,t,f),N=Qg(T,D,f,e,v),P=Qg(T,D,f,t,v)}let F=s?t_(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=>Qg(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 h_={visibility:`hidden`};function g_(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}=d_(),S=`${s}-header`,{hidePrev:C,hideNext:w,hideHeader:T}=h.useContext(p_),E=h.useMemo(()=>!g||!t||!a?!1:!e_(v,y,a(t(-1,b)),g,x),[g,t,b,a,v,y,x]),D=h.useMemo(()=>!g||!n||!a?!1:!e_(v,y,a(n(-1,b)),g,x),[g,n,b,a,v,y,x]),O=h.useMemo(()=>!_||!t||!i?!1:!e_(v,y,_,i(t(1,b)),x),[_,t,b,i,v,y,x]),k=h.useMemo(()=>!_||!n||!i?!1:!e_(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?h_:{}},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?h_:{}},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?h_:{}},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?h_:{}},p))}function __(){return __=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},__.apply(this,arguments)}function v_(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]=f_(e,c),b=i.locale.getWeekFirstDay(r.locale),x=i.setDate(a,1),S=nie(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=>t_(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),k=e=>({[`${t}-cell-in-view`]:Yg(i,e,a),[`${t}-cell-today`]:Xg(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`},t_(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?t_(a,{locale:r,format:r.monthFormat,generateConfig:i}):A[C]),N=r.monthBeforeYear?[M,j]:[j,M];return h.createElement(u_.Provider,{value:v},h.createElement(`div`,{className:m(p,f&&`${p}-show-week`)},h.createElement(g_,{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(m_,__({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:S,headerCells:T,getCellDate:D,getCellText:O,getCellClassName:k,prefixColumn:w,cellSelection:!_}))))}var Die=1/3;function Oie(e,t){let n=h.useRef(!1),r=h.useRef(null),i=h.useRef(null),a=()=>n.current,o=()=>{en.cancel(r.current),n.current=!1},s=h.useRef();return[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=en(l));return}let p=t+(f-t)*Die,m=Math.abs(f-p);if(i.current!==null&&i.current<m){o();return}if(i.current=m,m<=1){a.scrollTop=f,o();return}a.scrollTop=p,r.current=en(l)};e&&c&&l()}}),o,a]}var kie=300;function Aie(e){return e.map(({value:e,label:t,disabled:n})=>[e,t,n].join(`,`)).join(`;`)}function y_(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}=d_(),_=`${l}-time-panel`,v=`${l}-time-panel-cell`,y=h.useRef(null),b=h.useRef(),x=()=>{clearTimeout(b.current)},[S,C,w]=Oie(y,n??r);ge(()=>(S(),x(),()=>{C(),x()}),[n,r,Aie(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)},kie))},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 b_(){return b_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b_.apply(this,arguments)}function x_(e){return e<12}function jie(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:_}=d_(),v=u?.[0]||null,{onCellDblClick:y}=h.useContext(p_),[b,x,S,C,w]=l_(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:x_(E)?`am`:`pm`,F=h.useMemo(()=>a?x_(E)?x.filter(e=>x_(e.value)):x.filter(e=>!x_(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?t_(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:x.every(e=>e.disabled||!x_(e.value))},{label:r(n,`PM`),value:`pm`,disabled:x.every(e=>e.disabled||x_(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`&&!x_(E)?d.setHour(ee,E-12):e===`pm`&&x_(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(y_,b_({units:F,value:E,optionalValue:D,type:`hour`,onChange:oe,onHover:de},ge)),n&&h.createElement(y_,b_({units:R,value:O,optionalValue:k,type:`minute`,onChange:se,onHover:fe},ge)),r&&h.createElement(y_,b_({units:B,value:A,optionalValue:j,type:`second`,onChange:ce,onHover:pe},ge)),i&&h.createElement(y_,b_({units:H,value:M,optionalValue:N,type:`millisecond`,onChange:le,onHover:me},ge)),a&&h.createElement(y_,b_({units:W,value:P,type:`meridiem`,onChange:ue,onHover:he},ge)))}function Mie(e){let{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:a}=e,{format:o}=a||{},s=`${t}-time-panel`,[c]=f_(e,`time`);return h.createElement(u_.Provider,{value:c},h.createElement(`div`,{className:m(s)},h.createElement(g_,null,n?t_(n,{locale:r,format:o,generateConfig:i}):`\xA0`),h.createElement(jie,a)))}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 Nie(e){let{prefixCls:t,generateConfig:n,showTime:r,onSelect:i,value:a,pickerValue:o,onHover:s}=e,c=`${t}-datetime-panel`,[l]=l_(n,r),u=e=>a?n_(n,e,a):n_(n,e,o);return h.createElement(`div`,{className:c},h.createElement(v_,S_({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s?.(e&&u(e))}})),h.createElement(Mie,e))}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 Pie(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o}=e,s=`${t}-decade-panel`,[c]=f_(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`${t_(e,{locale:n,format:t,generateConfig:r})}-${t_(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},_=e=>({[`${t}-cell-in-view`]:qg(r,e,d)||qg(r,e,f)||$g(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=`${t_(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${t_(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return h.createElement(u_.Provider,{value:c},h.createElement(`div`,{className:s},h.createElement(g_,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},y),h.createElement(m_,C_({},e,{disabledDate:v,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:g,getCellClassName:_}))))}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 Fie(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-month-panel`,[l]=f_(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?t_(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`},t_(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(u_.Provider,{value:l},h.createElement(`div`,{className:c},h.createElement(g_,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},_),h.createElement(m_,w_({},e,{disabledDate:g,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}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 Iie(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,onPickerValueChange:a,onModeChange:o}=e,s=`${t}-quarter-panel`,[c]=f_(e,`quarter`),l=r.setMonth(i,0),u=(e,t)=>r.addMonth(e,t*3),d=e=>t_(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`},t_(i,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(u_.Provider,{value:c},h.createElement(`div`,{className:s},h.createElement(g_,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),h.createElement(m_,T_({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}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 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(v_,E_({},e,{mode:`week`,panelName:`week`,rowClassName:e=>{let t={};if(o){let[r,i]=o,a=Zg(n,s,r,e),l=Zg(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&$g(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>Zg(n,s,e,t))),m(c,{[`${c}-selected`]:!o&&Zg(n,s,i,e)},t)}}))}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)}function Rie(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-year-panel`,[l]=f_(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=>t_(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),v=e=>({[`${t}-cell-in-view`]:Jg(r,e,f)||Jg(r,e,p)||$g(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`},t_(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,t_(p,{locale:n,format:n.yearFormat,generateConfig:r}));return h.createElement(u_.Provider,{value:l},h.createElement(`div`,{className:c},h.createElement(g_,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},b),h.createElement(m_,D_({},e,{disabledDate:y,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:g,getCellText:_,getCellClassName:v}))))}function O_(){return O_=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},O_.apply(this,arguments)}var zie={date:v_,datetime:Nie,week:Lie,month:Fie,quarter:Iie,year:Rie,decade:Pie,time:Mie};function Bie(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(zg)||{},N=A||s||`rc-picker`,P=h.useRef();h.useImperativeHandle(t,()=>({nativeElement:P.current}));let[F,I,L,R]=Yre(e),z=Ure(i,I),B=x===`date`&&S?`datetime`:x,V=h.useMemo(()=>Xre(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=Tie(a,i,B),[K,te]=ye(u,d),ne=h.useMemo(()=>{let e=Vg(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)=>!Qg(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=Wg(T,E,D),me=O[G]||zie[G]||v_,he=h.useMemo(()=>({classNames:j?.popup??n??{},styles:M?.popup??r??{}}),[j,n,M,r]),ge=h.useContext(p_),_e=h.useMemo(()=>({...ge,hideHeader:k}),[ge,k]),ve=`${N}-panel`,be=Ug(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return h.createElement(Eie.Provider,{value:he},h.createElement(p_.Provider,{value:_e},h.createElement(`div`,{ref:P,tabIndex:c,className:m(ve,{[`${ve}-rtl`]:o===`rtl`})},h.createElement(me,O_({},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 k_=h.memo(h.forwardRef(Bie));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 Vie(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(zg),d=h.useCallback((e,n)=>a_(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(p_.Provider,{value:{...m,hideNext:!0}},h.createElement(k_,_)),h.createElement(p_.Provider,{value:{...m,hidePrev:!0}},h.createElement(k_,A_({},_,{pickerValue:f,onPickerValueChange:p})))):h.createElement(p_.Provider,{value:{...m}},h.createElement(k_,_))}function j_(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(j_(t))},onMouseEnter:()=>{i(j_(t))},onMouseLeave:()=>{i(null)}},e)))):null}function M_(){return M_=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},M_.apply(this,arguments)}function N_(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(zg),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(Vg(_)),[_]),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(Vie,M_({},e,{value:ee})),h.createElement(wie,M_({},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(Ol,{onResize:I},ae))),ae}function P_(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=>t_(e,{locale:a,format:M,generateConfig:i}),[a,i,M]),P=h.useMemo(()=>w.map(N),[w,N]),F=h.useMemo(()=>{let e=A===`time`?8:10,t=typeof M==`function`?M(i.getNow()).length:M.length;return Math.max(e,t)+2},[M,A,i]),I=e=>{for(let t=0;t<n.length;t+=1){let r=n[t];if(typeof r==`string`){let t=j(e,r);if(t)return t}}return!1};return[n=>{function i(e){return n===void 0?e:e[n]}let a={...qt(e,{aria:!0,data:!0}),format:r,validateFormat:e=>!!I(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:x,autoComplete:S,size:F,id:i(C),value:i(P)||``,invalid:i(T),placeholder:i(E),active:O===n,helped:k||b&&O===n,disabled:i(D),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=I(e);if(t){m(!1,n),y(t,n);return}m(!!e,n)},onHelp:()=>{_(!0,{index:n})},onKeyDown:e=>{let t=!1;if(v?.(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:_(!1,{index:n});break;case`Enter`:g||_(!0);break}},...t?.({valueTexts:P})};return Object.keys(a).forEach(e=>{a[e]===void 0&&delete a[e]}),a},N]}var Uie=[`onMouseEnter`,`onMouseLeave`];function F_(e){return h.useMemo(()=>Ug(e,Uie),[e])}function I_(){return I_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I_.apply(this,arguments)}function L_({icon:e,...t}){let{prefixCls:n,classNames:r,styles:i}=h.useContext(zg);return e?h.createElement(`span`,I_({className:m(`${n}-suffix`,r.suffix),style:i.suffix},t),e):null}function R_(){return R_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R_.apply(this,arguments)}function z_({icon:e,onClear:t,...n}){let{prefixCls:r,classNames:i,styles:a,locale:o}=h.useContext(zg);return h.createElement(`button`,R_({},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 B_=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],V_=`顧`,Wie=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=B_.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>V_.repeat(e.length));let r=RegExp(`(${B_.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=B_.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!==V_&&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 Gie(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 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 U_=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(zg),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 Wie(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)};i_(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]=Gie(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)+Bg(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=en(()=>{V.current.setSelectionRange(W,G)}),()=>{en.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,H_({ref:V,"aria-invalid":_,autoComplete:`off`},y,{onKeyDown:ce,onBlur:oe},de,{value:z,onChange:te,className:E.input,style:D.input})),h.createElement(L_,{icon:a}),v)});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 Kie(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(zg),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=F_(U),se=h.useMemo(()=>Array.isArray(v)?v:[v,v],[v]),[ce]=P_({...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(Ol,{onResize:de},h.createElement(`div`,W_({},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(U_,W_({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(U_,W_({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(L_,{icon:a}),fe&&h.createElement(z_,{icon:i,onClear:S})))}var qie=h.forwardRef(Kie);function G_(e,t){return(0,h.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}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 q_(e,t){let n=e??t;return Array.isArray(n)?n:[n,n]}function J_(e){return e===1?`end`:`start`}function Jie(e,t){let[n,r,i,a,o,s]=sie(e,()=>{let{disabled:t,allowEmpty:n}=e;return{disabled:q_(t,!1),allowEmpty:q_(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=uie(t),[oe,se]=G_(d,u),[ce,le]=lie(E,T,b,D),ue=(e,t)=>{(b.some(e=>!e)||!e)&&le(e,t)},[de,fe,me,he,_e]=bie(k,O,a,!0,!1,p,g,I,L),ve=me(),[be,xe,Se,Ce,we,Te,Ee,De,Oe]=fie(b,x,ce),ke=(e,t)=>{xe(!0),U?.(e,{range:J_(t??Ce)})},Ae=(e,t)=>{xe(!1),W?.(e,{range:J_(t??Ce)})},je=h.useMemo(()=>{if(!N)return null;let{disabledTime:e}=N,t=e?t=>e(t,J_(Ce),{from:Rre(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=Sie(A,Pe,j,M,!0),[Re,ze]=xie(n,de,fe,me,he,b,a,be,ce,s),Be=pie(ve,b,Ee,k,O,S),[Ve,He]=Bre(ve,s,x),[Ue,We]=mie(k,O,ve,Me,ce,Ce,r,Ie,R,z,je?.defaultOpenValue,B,C,w),Ge=pe((e,t,n)=>{let r=Hg(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)=>Hg(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=die(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(Hg(ve,Ce,e)),!_&&!i&&r===Fe&&qe(e)},ft=()=>{ue(!1)},pt=Wg(te,ne,re,J_(Ce)),mt=ve[Ce]||null,ht=pe(e=>s(e,{activeIndex:Ce})),gt=h.useMemo(()=>{let e=qt(n,!1);return Ht(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),_t=h.createElement(N_,K_({},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:Vg(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(zg.Provider,{value:Ct},h.createElement(Ire,K_({},zre(n),{popupElement:_t,popupStyle:se.popup.root,popupClassName:m(l,oe.popup.root),visible:ce,onClose:ft,range:!0}),h.createElement(qie,K_({},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 Yie=h.forwardRef(Jie);function Xie(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(ah,{prefixCls:f,data:n,renderItem:g,renderRest:_,itemKey:e=>a(e),maxCount:s}),!n.length&&h.createElement(`span`,{className:`${t}-selection-placeholder`},l))}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 Zie(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(zg),re=h.useRef(),ie=h.useRef();h.useImperativeHandle(t,()=>({nativeElement:re.current,focus:e=>{ie.current?.focus(e)},blur:()=>{ie.current?.blur()}}));let ae=F_(G),oe=e=>{w([e])},se=e=>{w(C.filter(t=>t&&!Qg(g,p,t,e,S))),r||T()},[ce,le]=P_({...e,onChange:oe},({valueTexts:e})=>({value:e[0]||``,active:l})),ue=!!(a&&C.length&&!P),de=D?h.createElement(h.Fragment,null,h.createElement(Xie,{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(L_,{icon:o}),ue&&h.createElement(z_,{icon:a,onClear:x})):h.createElement(U_,Y_({ref:ie},ce(),{autoFocus:H,tabIndex:U,suffixIcon:o,clearIcon:ue&&h.createElement(z_,{icon:a,onClear:x}),showActiveCls:!1}));return h.createElement(`div`,Y_({},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 Qie=h.forwardRef(Zie);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 $ie(e,t){let[n,r,i,a,o,s]=sie(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=uie(t);function le(e){return e===null?null:z?e:e[0]}let ue=Tie(A,k,r),[de,fe]=G_(d,u),[me,he]=lie(D,E,[S],O),[_e,ve,be,xe,Se]=bie(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]=fie([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=Sie(j,Ae,M,N),Pe=y&&((e,t)=>{y(le(e),le(t))}),[,Fe]=xie({...n,onChange:Pe},_e,ve,be,xe,[],a,we,me,s),[Ie,Le]=Bre(Ce,s),Re=h.useMemo(()=>Ie.some(e=>e),[Ie]),[ze,Be]=mie(A,k,Ce,[Ae],me,De,r,!1,B,V,Vg(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=die(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=Wg(ie,ae,oe),st=h.useMemo(()=>{let e=qt(n,!1);return{...Ht(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),ct=h.createElement(N_,X_({},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(zg.Provider,{value:mt},h.createElement(Ire,X_({},zre(n),{popupElement:ct,popupStyle:fe.popup.root,popupClassName:m(l,de.popup.root),visible:me,onClose:at}),h.createElement(Qie,X_({},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 eae=h.forwardRef($ie),Z_=e=>{let{space:t,form:n,children:r}=e;if(!mr(r))return null;let i=r;return n&&(i=h.createElement(gte,{override:!0,status:!0},i)),t&&(i=h.createElement(xd,null,i)),i},Q_=(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}),$_=(e,t)=>t||e,ev=(e,t,n,r,i,a)=>{let{classNames:o,styles:s}=zr(e),[c,l]=kr([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 tv(e){return Bo(e,{inputAffixPadding:e.paddingXXS})}var nv=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}},tae=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),rv=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])":{...tae(Bo(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),iv=(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}}),av=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...iv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),ov=(e,t)=>({"&-outlined":{...iv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...rv(e)},...av(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...av(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),sv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),nae=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}},...sv(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...sv(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...rv(e)}}}}),cv=`&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)`,lv=(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(`, `)}),uv=(e,t)=>({"&, & input, & textarea":{color:t.color},[cv]:lv(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),dv=(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`},[cv]:lv(e,e.activeBorderColor),[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:uv(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${n}-status-warning`]:uv(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},fv=(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}}),pv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...fv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),mv=(e,t)=>({"&-filled":{...fv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...rv(e)},...pv(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...pv(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),hv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),rae=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...hv(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...hv(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}`}}}}}),gv=(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}}),_v=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...gv(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`}}),vv=(e,t)=>({"&-underlined":{...gv(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`},..._v(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),..._v(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),yv=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),bv=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${q(t)} ${q(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},xv=e=>({padding:`${q(e.paddingBlockSM)} ${q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Sv=(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}`,...yv(e.colorTextPlaceholder),"&-lg":{...bv(e),...t.largeStyle},"&-sm":{...xv(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),iae=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`]:{...bv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...xv(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`,...ro(),[`${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`]:{}}}}},aae=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]:{...eo(e),...Sv(e),...ov(e),...mv(e),...dv(e),...vv(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`}}}},oae=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,...io(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${q(e.inputAffixPadding)}`}}}},sae=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]:{...Sv(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}}},...oae(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},cae=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...eo(e),...iae(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}},...nae(e),...rae(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}}}}}},lae=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Cv=hc([`Input`,`Shared`],e=>{let t=Bo(e,tv(e));return[aae(t),sae(t)]},nv,{resetFont:!1}),wv=hc([`Input`,`Component`],e=>{let t=Bo(e,tv(e));return[cae(t),lae(t),hp(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},nv,{resetFont:!1});function Tv(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 Ev=(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}},uae=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())}},dae=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":{...to(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},Dv=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=uae(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:q(a.itemLineHeight)}}}]},fae=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=Bo(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=Bo(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Dv(i,`small`),Dv(e),Dv(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`,...$a}},...dae(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},pae=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}}},mae=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},...pae(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 cs(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 cs(L).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:R,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(F).sub(e.calc(R).mul(2)).equal(),height:I,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(I).div(2).equal(),color:E,lineHeight: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`}}}}}}}}},hae=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`}}}}},gae=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()}},_ae=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new cs(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new cs(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},vae=e=>({...nv(e),..._ae(e),...Tv(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),yae=e=>{let{componentCls:t}=e;return{[t]:[{...ov(e),...vv(e),...mv(e),...dv(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}`}}}]}},Ov=(e,t)=>({padding:`${q(e)} ${q(t)}`}),bae=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=vc(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},xae=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:a,colorBorder:o,borderRadius:s,motionDurationMid:c,colorTextDisabled:l,colorTextPlaceholder:u,colorTextQuaternary:d,fontSizeLG:f,inputFontSizeLG:p,fontSizeSM:m,inputFontSizeSM:h,controlHeightSM:g,paddingInlineSM:_,paddingXS:v,marginXS:y,colorIcon:b,lineWidthBold:x,colorPrimary:S,motionDurationSlow:C,zIndexPopup:w,paddingXXS:T,sizePopupArrow:E,colorBgElevated:D,borderRadiusLG:O,boxShadowSecondary:k,borderRadiusSM:A,colorSplit:j,cellHoverBg:M,presetsWidth:N,presetsMaxWidth:P,boxShadowPopoverArrow:F,fontHeight:I,lineHeightLG:L}=e,[R,z]=vc(n,`date-picker`);return[{[t]:{[R(`affix-color`)]:`inherit`,...eo(e),...Ov(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}`,...yv(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":{...Ov(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:p??f,lineHeight:L}},"&-small":{...Ov(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,...io(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":{...eo(e),...mae(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:tf},[`&${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:$d},[`&${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:nf},[`&${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:ef},[`${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`,...Ev(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:{...$a,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`}}}}},lf(e,`slide-up`),lf(e,`slide-down`),Qd(e,`move-up`),Qd(e,`move-down`)]},kv=hc(`DatePicker`,e=>{let t=Bo(tv(e),gae(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[hae(t),xae(t),yae(t),bae(t),fae(t),hp(e,{focusElCls:`${e.componentCls}-focused`})]},vae),Sae=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 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:Sae.default}))),Cae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`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 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:Cae.default}))),wae=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 Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pv.apply(this,arguments)}var Fv=h.forwardRef((e,t)=>h.createElement(W,Pv({},e,{ref:t,icon:wae.default})));function Iv({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=Ju(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(Ju(l,u,h.createElement(Pd,{spin:!0}))):({open:e,showSearch:n})=>b(e&&n?Ju(d,f,h.createElement(Fv,null)):Ju(t,h.createElement(Nv,null))):b(e);let S=Ju(i,a,p?h.createElement(jv,null):null),C=Ju(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 Tae=(e,t,n)=>pr(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,Eae=(e,t,n)=>pr(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,Dae=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=Iv({...e,prefixCls:t,componentName:`DatePicker`});return[h.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[Oae,kae]=[`week`,`WeekPicker`],[Aae,jae]=[`month`,`MonthPicker`],[Mae,Nae]=[`year`,`YearPicker`],[Pae,Fae]=[`quarter`,`QuarterPicker`],[Lv,Rv]=[`time`,`TimePicker`],Iae=e=>h.createElement(Sp,{size:`small`,type:`primary`,...e});function zv(e){return(0,h.useMemo)(()=>({button:Iae,...e}),[e])}var Lae=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`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 Bv(){return Bv=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},Bv.apply(this,arguments)}var Rae=h.forwardRef((e,t)=>h.createElement(W,Bv({},e,{ref:t,icon:Lae.default}))),zae=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 Vv(){return Vv=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},Vv.apply(this,arguments)}var Bae=h.forwardRef((e,t)=>h.createElement(W,Vv({},e,{ref:t,icon:zae.default}))),Hv=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?h.createElement(h.Fragment,null,e===Lv?h.createElement(Bae,{"aria-hidden":`true`}):h.createElement(Rae,{"aria-hidden":`true`}),t&&n):r,Vae=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===Lv?`timePicker`:`datePicker`,{suffixIcon:A,clearIcon:j,allowClear:M}=zr(k),[N,P]=ev(k,c,l,x||b,S),F=h.useRef(null),{getPrefixCls:I,direction:L,getPopupContainer:R,rangePicker:z}=(0,h.useContext)(Ir),B=I(`picker`,r),{compactSize:V,compactItemClassnames:H}=bd(B,L),U=I(),W=T??z?.separator,[G,ee]=ym(`rangePicker`,v,p),K=ug(B),[te,ne]=kv(B,K),re=m(te,ne,K,C),ie=Yu({componentName:`RangePicker`,allowClear:E,clearIcon:D,contextAllowClear:M,contextClearIcon:j,defaultAllowClear:!0}),ae=zv(a),oe=qu(e=>d??V??e),se=h.useContext(gu),ce=f??se,{hasFeedback:le,status:ue,feedbackIcon:de}=(0,h.useContext)(vm),fe=Hv({picker:y,hasFeedback:le,feedbackIcon:de,suffixIcon:w===void 0?A:w});(0,h.useImperativeHandle)(n,()=>F.current);let[pe]=Kc(`Calendar`,Ic),me=dn(pe,t.locale||{}),[he]=_d(`DatePicker`,P?.popup?.root?.zIndex);return h.createElement(Z_,{space:!0},h.createElement(Yie,{separator:h.createElement(`span`,{"aria-label":`to`,className:`${B}-separator`},W??h.createElement(Nre,null)),disabled:ce,ref:F,placement:u,placeholder:Eae(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},Q_(B,$_(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===Rv?`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}=zr(n===Rv?`timePicker`:`datePicker`),{getPrefixCls:P,direction:F,getPopupContainer:I,[r]:L}=(0,h.useContext)(Ir),R=P(`picker`,o),{compactSize:z,compactItemClassnames:B}=bd(R,F),V=qu(e=>d??z??e),H=h.useContext(gu),U=_??H,W={...i,size:V,disabled:U,status:v,variant:y},[G,ee]=ev(r,x,S,w||C,T,W),K=h.useRef(null),[te,ne]=ym(`datePicker`,y,f),re=ug(R),[ie,ae]=kv(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]=Dae(i,R),he=Yu({componentName:n,allowClear:O,clearIcon:k,contextAllowClear:N,contextClearIcon:M,defaultAllowClear:!0}),ge=zv(c),{hasFeedback:_e,status:ve,feedbackIcon:ye}=(0,h.useContext)(vm),be=Hv({picker:ce,hasFeedback:_e,feedbackIcon:ye,suffixIcon:D===void 0?j:D}),[xe]=Kc(`DatePicker`,Ic),Se=dn(xe,i.locale||{}),[Ce]=_d(`DatePicker`,ee?.popup?.root?.zIndex);return h.createElement(Z_,{space:!0},h.createElement(eae,{ref:K,placeholder:Tae(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},Q_(R,$_(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(Oae,kae),i=t(Aae,jae),a=t(Mae,Nae),o=t(Pae,Fae);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(Lv,Rv),QuarterPicker:o}},Uv=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=Hae(e),s=Vae(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},Wv=Uv(jre);Wv._InternalPanelDoNotUseOrYouWillBeFired=Lg(Wv,`popupAlign`,void 0,`picker`),Wv._InternalRangePanelDoNotUseOrYouWillBeFired=Lg(Wv.RangePicker,`popupAlign`,void 0,`picker`),Wv.generatePicker=Uv;function Gv(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 Uae=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)`}}}}},Wae=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}}),Kv=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Gae=e=>{let{componentCls:t}=e;return{[t]:{...eo(e),...Wae(e),[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":{...Kv(e,e.controlHeightSM)},"&-large":{...Kv(e,e.controlHeightLG)}}}},Kae=e=>{let{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:i,labelRequiredMarkColor:a,labelColor:o,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[f]=vc(i,`grid`);return{[t]:{...eo(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:df,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},qv=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{visibility:`hidden`}}}),qae=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`]:qv(e)}}},Jae=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`}}}}},Yae=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:qv(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:`wrap`,[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}}},Xae=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`]:qv(e)},[`@media (max-width: ${q(e.screenXSMax)})`]:[Yae(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:qv(e)}}}],[`@media (max-width: ${q(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:qv(e)}}},[`@media (max-width: ${q(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:qv(e)}}},[`@media (max-width: ${q(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:qv(e)}}}}},Zae=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}),Jv=(e,t)=>Bo(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Yv=hc(`Form`,(e,{rootPrefixCls:t})=>{let n=Jv(e,t);return[Gae(n),Kae(n),Uae(n),qae(n),Jae(n),Xae(n),zd(n),df]},Zae,{order:-1e3}),Xv=[];function Zv(e,t,n,r=0){return{key:typeof e==`string`?e:`${t}-${r}`,error:e,errorStatus:n}}var Qv=({help:e,helpStatus:t,errors:n=Xv,warnings:r=Xv,className:i,fieldId:a,onVisibleChanged:o})=>{let{prefixCls:s}=h.useContext(_m),{classNames:c,styles:l}=h.useContext(gm),u=`${s}-item-explain`,d=ug(s),[f,p]=Yv(s,d),g=h.useMemo(()=>Jf(s),[s]),_=Gv(n),v=Gv(r),y=pr(e)&&e!==!1,b=h.useMemo(()=>y?[Zv(e,`help`,t)]:[].concat(fr(_.map((e,t)=>Zv(e,`error`,`error`,t))),fr(v.map((e,t)=>Zv(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(or,{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(ar,{keys:x,...Jf(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)}))})},$v=e=>typeof e==`object`&&!!e&&e.nodeType===1,ey=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,ty=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return ey(n.overflowY,t)||ey(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},ny=(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,Qae=e=>e.parentElement??(e.getRootNode().host||null),ry=(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(!$v(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;$v(u)&&s(u);){if(u=Qae(u),u===c){l.push(u);break}u!=null&&u===document.body&&ty(u)&&!ty(document.documentElement)||u!=null&&ty(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&&!ty(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`?ny(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:ny(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`?ny(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:ny(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},$ae=e=>!1===e?{block:`end`,inline:`nearest`}:(e=>e===Object(e)&&Object.keys(e).length!==0)(e)?e:{block:`start`,inline:`nearest`};function eoe(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(ry(e,t));let r=typeof t==`boolean`||t==null?void 0:t.behavior;for(let{el:i,top:a,left:o}of ry(e,$ae(t))){let e=a-n.top+n.bottom,t=o-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}var toe=[`parentNode`],noe=`form_item`;function iy(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ay(e,t){if(!e.length)return;let n=e.join(`_`);return t?`${t}_${n}`:toe.includes(n)?`${noe}_${n}`:n}function oy(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 sy(e){return iy(e).join(`_`)}function cy(e,t){let n=rt(t.getFieldInstance(e));if(n)return n;let r=ay(iy(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function ly(e){let[t]=dm(),n=h.useRef({}),r=h.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let r=sy(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{let{focus:n,...i}=t,a=cy(e,r);a&&(eoe(a,{scrollMode:`if-needed`,block:`nearest`,...i}),n&&r.focusField(e))},focusField:e=>{let t=r.getFieldInstance(e);vr(t?.focus)?t.focus():cy(e,r)?.focus?.()},getFieldInstance:e=>{let t=sy(e);return n.current[t]}},[e,t]);return[r]}var roe=h.forwardRef((e,t)=>{let n=h.useContext(gu),{getPrefixCls:r,direction:i,requiredMark:a,colon:o,scrollToFirstError:s,className:c,style:l,styles:u,classNames:d,tooltip:f,labelAlign:p,labelWrap:g}=zr(`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=qu(b),V=h.useContext(Mc),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=ug(K),[ne,re]=Yv(K,te),ie={...e,size:B,disabled:x,layout:O,colon:U,requiredMark:H,labelAlign:W,labelWrap:G},ae=Dr(l),oe=Dr(N),[se,ce]=kr([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]=ly(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`};_r(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(_te.Provider,{value:F},h.createElement(_u,{disabled:x},h.createElement(vu.Provider,{value:B},h.createElement(hte,{validateMessages:V},h.createElement(gm.Provider,{value:fe},h.createElement(gte,{status:!0},h.createElement(hm,{id:M,...z,name:M,onFinishFailed:he,form:ue,ref:pe,style:ce?.root,className:le})))))))}),ioe=e=>{if(vr(e))return e;let t=tn(e);return t.length<=1?t[0]:t},uy=()=>{let{status:e,errors:t=[],warnings:n=[]}=h.useContext(vm);return{status:e,errors:t,warnings:n}};uy.Context=vm;function aoe(e){let[t,n]=h.useState(e),r=h.useRef(null),i=h.useRef([]),a=h.useRef(!1);h.useEffect(()=>(a.current=!1,()=>{a.current=!0,en.cancel(r.current),r.current=null}),[]);function o(e){a.current||(r.current===null&&(i.current=[],r.current=en(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}return[t,o]}var ooe=()=>{let{itemRef:e}=h.useContext(gm),t=h.useRef({});return(n,r)=>{let i=r&&_r(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}},soe=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:`flex`}}}},coe=_c([`Form`,`item-item`],(e,{rootPrefixCls:t})=>soe(Jv(e,t))),loe=24,uoe=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(gm),{classNames:y,styles:b}=v,x=h.useMemo(()=>{let e={...i||v.wrapperCol||{}};return g===null&&!r&&!i&&v.labelCol&&[void 0].concat(fr(Cg)).forEach(t=>{let n=t?[t]:[],r=rn(v.labelCol,n),i=_r(r)?r:{},a=rn(e,n),o=_r(a)?a:{};`span`in i&&!(`offset`in o)&&i.span<loe&&(e=on(e,[].concat(n,[`offset`]),i.span))}),e},[i,v.wrapperCol,v.labelCol,g,r]),S=m(`${_}-control`,x.className),C=h.useMemo(()=>{let{labelCol:e,wrapperCol:t,...n}=v;return n},[v]),w=h.useRef(null),[T,E]=h.useState(0);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(_m.Provider,{value:O},h.createElement(Qv,{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(gm.Provider,{value:C},h.createElement(Og,{...x,className:S},N),h.createElement(coe,{prefixCls:t}))},doe=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 dy(){return dy=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},dy.apply(this,arguments)}var foe=h.forwardRef((e,t)=>h.createElement(W,dy({},e,{ref:t,icon:doe.default}))),poe=(e,t)=>mr(e)?_r(e)&&!(0,h.isValidElement)(e)?{...t,...e}:{...t,title:e}:null,fy=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)},py={shiftX:64,adjustY:1},my={adjustX:1,shiftY:!0},hy=[0,0],moe={left:{points:[`cr`,`cl`],overflow:my,offset:[-4,0],targetOffset:hy},right:{points:[`cl`,`cr`],overflow:my,offset:[4,0],targetOffset:hy},top:{points:[`bc`,`tc`],overflow:py,offset:[0,-4],targetOffset:hy},bottom:{points:[`tc`,`bc`],overflow:py,offset:[0,4],targetOffset:hy},topLeft:{points:[`bl`,`tl`],overflow:py,offset:[0,-4],targetOffset:hy},leftTop:{points:[`tr`,`tl`],overflow:my,offset:[-4,0],targetOffset:hy},topRight:{points:[`br`,`tr`],overflow:py,offset:[0,-4],targetOffset:hy},rightTop:{points:[`tl`,`tr`],overflow:my,offset:[4,0],targetOffset:hy},bottomRight:{points:[`tr`,`br`],overflow:py,offset:[0,4],targetOffset:hy},rightBottom:{points:[`bl`,`br`],overflow:my,offset:[4,0],targetOffset:hy},bottomLeft:{points:[`tl`,`bl`],overflow:py,offset:[0,4],targetOffset:hy},leftBottom:{points:[`br`,`bl`],overflow:my,offset:[-4,0],targetOffset:hy}};function gy(){return gy=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},gy.apply(this,arguments)}var hoe=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(cu,gy({popupClassName:x?.root,prefixCls:a,popup:h.createElement(fy,{key:`content`,prefixCls:a,id:w,classNames:x,styles:S},v),action:n,builtinPlacements:moe,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 _y(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}var vy=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=vc(s,`tooltip`),{arrowDistance:l=0,arrowShadow:u=!0}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...Ev(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 goe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=_r(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 yy={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`]}},_oe={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`]}},voe=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function by(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=_y({contentRadius:a,limitVerticalRadius:!0});return Object.keys(yy).forEach(e=>{let a={...r&&_oe[e]||yy[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,voe.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=goe(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var xy=h.createContext(!1),Sy=(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])},Cy=`50%`,yoe=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,dropShadowPopover:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=vc(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${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`,Cy),`var(--arrow-y, ${Cy})`].join(` `)};return[{[n]:{...eo(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,Wd(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...yc(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},vy(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}`}}}]},boe=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,..._y({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Tv(Bo(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),wy=(e,t,n=!0)=>hc(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[yoe(Bo(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),yf(e,`zoom-big-fast`)]},boe,{resetStyle:!1,injectStyle:n})(e,t),xoe=Zo.map(e=>`${e}-inverse`),Soe=[`success`,`processing`,`error`,`default`,`warning`];function Ty(e,t=!0){return t?[].concat(fr(xoe),fr(Zo)).includes(e):Zo.includes(e)}function Coe(e){return Soe.includes(e)}var Ey=(e,t,n)=>{let r=Ty(n),[i]=vc(e,`tooltip`),a=m({[`${t}-${n}`]:n&&r}),o={},s={},c=rp(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}},woe=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=h.useContext(Ir),u=l(`tooltip`,t),d=l(),f=ug(u),[p,g]=wy(u,f),_=Ey(d,u,a),v=_.arrowStyle,y=h.useMemo(()=>({container:{...o,..._.overlayStyle}}),[o,_.overlayStyle]),b={...e,placement:r},[x,S]=kr([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(fy,{...e,className:p,prefixCls:u,classNames:x,styles:S},i))},Dy=h.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:g,autoAdjustOverflow:_=!0,motion:v,getPopupContainer:y,placement:b=`top`,mouseEnterDelay:x=.1,mouseLeaveDelay:S=.1,rootClassName:C,styles:w,classNames:T,onOpenChange:E,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=mc(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=zr(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=Sy(c,V),W=U.show,G=p||H||`hover`,ee=y||N,K=u??!!l,te=h.useContext(xy);Nr(`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||by({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(Z_,{space:!0,form:!0},vr(le)?le():le),de={...e,trigger:G,builtinPlacements:ce,getPopupContainer:ee,destroyOnHidden:K},[fe,pe]=kr([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)&&!lu(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=ug(me),[Se,Ce]=wy(me,xe,!M),we=Ey(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]=_d(`Tooltip`,A.zIndex),Ae={...pe.container,...D,...we.overlayStyle},je=h.createElement(hoe,{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:Yf(he,`zoom-big-fast`,typeof v?.motionName==`string`?v?.motionName:void 0),motionDeadline:1e3},trigger:G,builtinPlacements:ce,getTooltipContainer:ee,destroyOnHidden:K},ge?du(_e,{className:be}):_e);return h.createElement(dd.Provider,{value:ke},je)});Dy._InternalPanelDoNotUseOrYouWillBeFired=woe,Dy.UniqueProvider=hu;var Toe=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:i,colon:a,required:o,requiredMark:s,tooltip:c,vertical:l})=>{let[u]=Kc(`Form`),{labelAlign:d,labelCol:f,labelWrap:p,colon:g,classNames:_,styles:v,tooltip:y}=h.useContext(gm);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=poe(c,y);if(E){let t=h.createElement(Dy,{...E},h.createElement(`span`,{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},E.icon||E.children||h.createElement(foe,null)));w=h.createElement(h.Fragment,null,w,t)}let D=s===`optional`,O=vr(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||zc.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(Og,{...b,className:C},h.createElement(`label`,{htmlFor:n,className:j,style:v?.label,title:typeof t==`string`?t:void 0},w))},Eoe={success:K,warning:le,error:re,validating:Pd};function Oy({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(gm),d=oy(t,n,o,null,!!r,i),{isFormItemInput:f,status:p,hasFeedback:g,feedbackIcon:_,name:v}=h.useContext(vm),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?Eoe[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(vm.Provider,{value:y},e)}function Doe(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(gm),T=y||w,E=T===`vertical`,D=h.useRef(null),O=Gv(o),k=Gv(s),A=pr(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)=>oy(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(jg,{className:`${S}-row`,...Ht(x,`_internalItemRender.colon.dependencies.extra.fieldKey.getValueFromEvent.getValueProps.htmlFor.id.initialValue.isListField.label.labelAlign.labelCol.labelWrap.messageVariables.name.normalize.noStyle.preserve.requiredMark.rules.shouldUpdate.trigger.tooltip.validateFirst.validateTrigger.valuePropName.wrapperCol.validateDebounce`.split(`.`))},h.createElement(Toe,{htmlFor:p,...e,requiredMark:C,required:g??_,prefixCls:t,vertical:E}),h.createElement(uoe,{...e,...l,errors:O,warnings:k,prefixCls:t,status:I,help:a,marginBottom:N,onErrorVisibleChanged:F},h.createElement(mte.Provider,{value:v},h.createElement(Oy,{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 Ooe=`__SPLIT__`;function koe(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||vr(r)||vr(i)})}var Aoe=h.memo(e=>e.children,(e,t)=>koe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));function ky(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function joe(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(Ir),{name:b}=h.useContext(gm),x=ioe(c),S=vr(x),C=h.useContext(mte),{validateTrigger:w}=h.useContext(Ep),T=pr(p)?p:w,E=pr(t),D=y(`form`,a),O=ug(D),[k,A]=Yv(D,O);Nr(`Form.Item`);let j=h.useContext(Dp),M=h.useRef(null),[N,P]=aoe({}),[F,I]=ve(()=>ky()),L=e=>{let t=j?.getKey(e.name);if(I(e.destroy?ky():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(fr(r)),M.current=n}C(e,n)}},R=(e,t)=>{P(n=>{let r={...n},i=[].concat(fr(e.name.slice(0,-1)),fr(t)).join(Ooe);return e.destroy?delete r[i]:r[i]=e,r})},[z,B]=h.useMemo(()=>{let e=fr(F.errors),t=fr(F.warnings);return Object.values(N).forEach(n=>{e.push.apply(e,fr(n.errors||[])),t.push.apply(t,fr(n.warnings||[]))}),[e,t]},[N,F.errors,F.warnings]),V=ooe();function H(i,a,o){return n&&!g?h.createElement(Oy,{prefixCls:D,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:z,warnings:B,noStyle:!0,name:t},i):h.createElement(Doe,{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(sm,{...e,messageVariables:U,trigger:f,validateTrigger:T,onMetaChange:L},(n,r,a)=>{let c=iy(t).length&&r?r.name:[],u=ay(c,b),d=l===void 0?s?.some(e=>{if(_r(e)&&e.required&&!e.warningOnly)return!0;if(vr(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(fr(iy(f)),fr(iy(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(Aoe,{control:p,update:x,childProps:n},du(x,t))}else m=S&&(o||i)&&!E?x(a):x;return H(m,u,d)})}var Ay=joe;Ay.useStatus=uy;var Moe=({prefixCls:e,children:t,...n})=>{let{getPrefixCls:r}=h.useContext(Ir),i=r(`form`,e),a=h.useMemo(()=>({prefixCls:i,status:`error`}),[i]);return h.createElement(cte,{...n},(e,n,r)=>h.createElement(_m.Provider,{value:a},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))};function Noe(){let{form:e}=h.useContext(gm);return e}var jy=roe;jy.Item=Ay,jy.List=Moe,jy.ErrorList=Qv,jy.useForm=ly,jy.useFormInstance=Noe,jy.useWatch=pte,jy.Provider=hte;function My(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function Ny(e){return e?hr(e):!1}var Poe=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=vc(f,`space-addon`);return{[t]:[{...eo(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}}]}},Foe=hc(`Addon`,e=>[Poe(e),hp(e,{focus:!1})]),Py=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(Ir),f=u(`space-addon`,a),[p,g]=Foe(f),{compactItemClassnames:_,compactSize:v}=bd(f,d),y=Q_(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)}),Fy=h.createContext({latestIndex:0}),Ioe=Fy.Provider,Loe=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=h.useContext(Fy);return mr(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},Roe=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`}}}},zoe=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}}}},Boe=hc(`Space`,e=>{let t=Bo(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Roe(t),zoe(t)]},()=>({}),{resetStyle:!1}),Iy=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=zr(`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=My(O),A=My(D),j=Ny(O),M=Ny(D),N=tn(p,{keepEmpty:!0}),[P,F]=sd(_,S,g),I=u===void 0&&!F?`center`:u,L=b??y,R=n(`space`,v),[z,B]=Boe(R),V={...e,size:l,orientation:P,align:I},[H,U]=kr([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(Loe,{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)=>mr(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(Ioe,{value:K},ee))});Iy.Compact=Cd,Iy.Addon=Py;var Voe=e=>{let{getPrefixCls:t,direction:n}=(0,h.useContext)(Ir),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=wv(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)(vm),u=(0,h.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return h.createElement(vm.Provider,{value:u},h.createElement(Iy.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 Uoe(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ly(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 Ry(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=Ly(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=Ly(t,e,r),n(i);return}n(i)}function zy(){return zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zy.apply(this,arguments)}var By=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=Uoe(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,zy({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 Vy(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 Hy({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 Uy({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 Wy(e,t){let[n,r]=ye(e,t);return{value:n,setValue:r,formatValue:n==null?``:String(n)}}function Gy(){return Gy=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},Gy.apply(this,arguments)}var Woe=(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}=Wy(e.defaultValue,e.value),F=Vy(v,_),{isOutOfRange:I,dataCount:L}=Hy({countConfig:F,value:P,maxLength:p}),R=Uy({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&&Ry(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&&Ry(A.current,e,r)},K=I&&`${l}-out-of-range`;return h.createElement(By,Gy({},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=Ht(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return h.createElement(`input`,Gy({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}))})())}),Goe=`
|
||
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;
|
||
`,Koe=[`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`],Ky={},qy;function qoe(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&Ky[n])return Ky[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:Koe.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Ky[n]=s),s}function Joe(e,t=!1,n=null,r=null){qy||(qy=document.createElement(`textarea`),qy.setAttribute(`tab-index`,`-1`),qy.setAttribute(`aria-hidden`,`true`),qy.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(qy)),e.getAttribute(`wrap`)?qy.setAttribute(`wrap`,e.getAttribute(`wrap`)):qy.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=qoe(e,t);qy.setAttribute(`style`,`${s};${Goe}`),qy.value=e.value||e.placeholder||``;let c,l,u,d=qy.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){qy.value=` `;let e=qy.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 Jy(){return Jy=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},Jy.apply(this,arguments)}var Yy=0,Xy=1,Zy=2,Yoe=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(Zy),[T,E]=h.useState(),D=()=>{w(Yy)};ge(()=>{S&&D()},[i,b,x,S]),ge(()=>{if(C===Yy)w(Xy);else if(C===Xy){let e=Joe(y.current,!1,b,x);w(Zy),E(e)}},[C]);let O=h.useRef(void 0),k=()=>{O.current!==void 0&&en.cancel(O.current)},A=e=>{C===Zy&&(o?.(e),a&&(k(),O.current=en(()=>{D()})))};h.useEffect(()=>k,[]);let j=S?T:null,M={...c,...j};return(C===Yy||C===Xy)&&(M.overflowY=`hidden`,M.overflowX=`hidden`),h.createElement(Ol,{onResize:A,disabled:!(a||o)},h.createElement(`textarea`,Jy({},f,{ref:y,style:M,className:m(n,s,{[`${n}-disabled`]:l}),disabled:l,value:_,onChange:v})))});function Qy(){return Qy=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},Qy.apply(this,arguments)}var Xoe=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}=Wy(e,t),z=Vy(f,d),{isOutOfRange:B,dataCount:V}=Hy({countConfig:z,value:R,maxLength:o}),H=Uy({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),Ry(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&&Ry(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(By,{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(Yoe,Qy({},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})))}),Zoe=Woe;function $y(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 Qoe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var eb=(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}=zr(`input`),j=C(`input`,n),M=(0,h.useRef)(null),N=ug(j),[P,F]=Cv(j,v);wv(j,N);let{compactSize:I,compactItemClassnames:L}=bd(j,w),R=qu(e=>a??I??e),z=h.useContext(gu),B=o??z,V={...e,size:R,disabled:B},H=Dr(O),U=Dr(g),[W,G]=kr([k,b],[A,H,_,U],{props:V}),{status:ee,hasFeedback:K,feedbackIcon:te}=(0,h.useContext)(vm),ne=$_(ee,i);(0,h.useRef)(Qoe(e)||!!K);let re=$y(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=Yu({allowClear:u,contextAllowClear:T,componentName:`Input`}),[le,ue]=ym(`input`,x,r);return h.createElement(Zoe,{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(Z_,{form:!0,space:!0},f),addonAfter:d&&h.createElement(Z_,{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},Q_(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},Q_(`${j}-group-wrapper`,ne,K),P)}})}),$oe=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}}}},ese=hc([`Input`,`OTP`],e=>$oe(Bo(e,tv(e))),nv),tse=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(Ir),d=u(`otp`),f=typeof s==`string`?s:r,p=h.useRef(null);h.useImperativeHandle(t,()=>p.current);let g=e=>{i(o,e.target.value)},_=()=>{en(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},v=e=>{c?.(e),_()},y=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),_()};return h.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&h.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),h.createElement(eb,{"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 tb(e){return(e||``).split(``)}var nse=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=vr(r)?r(t):r;return o?h.createElement(`span`,{className:m(`${n}-separator`,i),style:a},o):null},rse=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}=zr(`otp`),N=k(`otp`,n),P={...e,length:r},F=Dr(j),I=Dr(T),[L,R]=kr([D,S],[O,F,C,I],{props:P}),z=qt(E,{aria:!0,data:!0,attr:!0}),[B,V]=ese(N),H=qu(e=>i??e),U=h.useContext(vm),W=$_(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(()=>tb(te(a||``)));h.useEffect(()=>{o!==void 0&&re(tb(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=fr(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(tb(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=tb(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(vm.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(tse,{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(nse,{separator:l,index:t,prefixCls:N,className:m(L.separator),style:R.separator}))})))}),ise=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 nb(){return nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nb.apply(this,arguments)}var ase=h.forwardRef((e,t)=>h.createElement(W,nb({},e,{ref:t,icon:ise.default}))),ose=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`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 rb(){return rb=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},rb.apply(this,arguments)}var ib=h.forwardRef((e,t)=>h.createElement(W,rb({},e,{ref:t,icon:ose.default}))),sse=e=>e?h.createElement(ib,null):h.createElement(ase,null),cse={click:`onClick`,hover:`onMouseOver`},lse=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}=zr(`inputPassword`),[S]=Kc(`global`),C=h.useContext(gu),w=n??C,T={...e,disabled:w},[E,D]=kr([y,d],[b,f],{props:T}),O=_r(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=$y(j),N=()=>{if(w)return;k&&M();let e=!k;A(e),_r(i)&&i.onVisibleChange?.(e)},P=e=>{let t=cse[r]||``,n=(a||x||sse)(k),o=_r(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(eb,{ref:Ie(t,j),...z})}),use=e=>{let{componentCls:t,antCls:n,calc:r,max:i}=e,a=`${t}-btn`,[o,s]=vc(n,`input-search`),c=e.inputFontSizeSM??e.fontSize,l=i(e.controlHeightSM,r(c).mul(e.lineHeight).add(r(e.paddingBlockSM).mul(2)).add(r(e.lineWidth).mul(2)).equal());return{[t]:{[o(`btn-height`)]: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}}}}},dse=hc([`Input`,`Search`],e=>use(Bo(e,tv(e))),nv),fse=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}=zr(`inputSearch`),j={...e,enterButton:s},[M,N]=kr([O,b],[k,x],{props:j},{button:{_default:`root`}}),P=h.useRef(!1),F=T(`input-search`,n),I=T(`input`,r),[L,R]=dse(F),{compactSize:z}=bd(F,w),B=qu(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`?Ju(c,A,h.createElement(Fv,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=du(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(Sp,{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,du(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=qt(C,{data:!0}),le=Ht({...C,classNames:Ht(M,[`button`,`root`]),styles:Ht(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(Cd,{className:ae,style:{...N.root,...D,...o},...ce,hidden:S},h.createElement(eb,{ref:Ie(V,t),...le}),ne)}),pse=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}}}}}},mse=hc([`Input`,`TextArea`],e=>pse(Bo(e,tv(e))),nv,{resetFont:!1}),ab=(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}=zr(`textArea`),O=h.useContext(gu),k=a??O,{status:A,hasFeedback:j,feedbackIcon:M}=h.useContext(vm),N=$_(A,o),P=Dr(T),F=Dr(d),[I,L]=kr([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=ug(z),[V,H]=Cv(z,l);mse(z,B);let{compactSize:U,compactItemClassnames:W}=bd(z,x),G=qu(e=>i??U??e),[ee,K]=ym(`textArea`,p,r),te=Yu({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&&vr(getComputedStyle)){let e=R.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ae(!0)}};return h.createElement(Xoe,{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},Q_(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})}),ob=eb;ob.Group=Voe,ob.Search=fse,ob.TextArea=ab,ob.Password=lse,ob.OTP=rse;var hse=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 sb(){return sb=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},sb.apply(this,arguments)}var gse=h.forwardRef((e,t)=>h.createElement(W,sb({},e,{ref:t,icon:hse.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:`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 cb(){return cb=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},cb.apply(this,arguments)}var vse=h.forwardRef((e,t)=>h.createElement(W,cb({},e,{ref:t,icon:_se.default})));function lb(){return typeof BigInt==`function`}function ub(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function db(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 fb(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes(`e`)}function pb(e){var t=mo(e.toLowerCase().split(`e`),2),n=t[0],r=t[1],i=r===void 0?`0`:r,a=n.startsWith(`-`),o=mo((a?n.slice(1):n).split(`.`),2),s=o[0],c=s===void 0?`0`:s,l=o[1],u=l===void 0?``:l;return{decimal:u,digits:`${c}${u}`.replace(/^0+/,``)||`0`,exponent:Number(i),integer:c,negative:a}}function yse(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 mb(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function hb(e){var t=String(e);return fb(e)?mb(pb(t)):t.includes(`.`)&&_b(t)?t.length-t.indexOf(`.`)-1:0}function gb(e){var t=String(e);if(fb(e)){if(e>2**53-1)return String(lb()?BigInt(e).toString():2**53-1);if(e<-(2**53-1))return String(lb()?BigInt(e).toString():-(2**53-1));var n=pb(t),r=mb(n);t=r>100?yse(n):e.toFixed(r)}return db(t).fullStr}function _b(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 bse=function(){function e(t){if(bo(this,e),_o(this,`origin`,``),_o(this,`negative`,void 0),_o(this,`integer`,void 0),_o(this,`decimal`,void 0),_o(this,`decimalLen`,void 0),_o(this,`empty`,void 0),_o(this,`nan`,void 0),ub(t)){this.empty=!0;return}if(this.origin=String(t),t===`-`||Number.isNaN(t)){this.nan=!0;return}var n=t;if(fb(n)&&(n=Number(n)),n=typeof n==`string`?n:gb(n),_b(n)){var r=db(n);this.negative=r.negative;var i=r.trimStr.split(`.`);this.integer=BigInt(i[0]);var a=i[1]||`0`;this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return So(e,[{key:`getMark`,value:function(){return this.negative?`-`:``}},{key:`getIntegerStr`,value:function(){return this.integer.toString()}},{key:`getDecimalStr`,value:function(){return this.decimal.toString().padStart(this.decimalLen,`0`)}},{key:`alignDecimal`,value:function(e){var t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,`0`)}`;return BigInt(t)}},{key:`negate`,value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:`cal`,value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),o=r(i),s=db(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()?``:db(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}]),e}(),xse=function(){function e(t){if(bo(this,e),_o(this,`origin`,``),_o(this,`number`,void 0),_o(this,`empty`,void 0),ub(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return So(e,[{key:`negate`,value:function(){return new e(-this.toNumber())}},{key:`add`,value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));var i=Math.max(hb(this.number),hb(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(hb(this.number),hb(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()?``:fb(this.number)&&hb(this.number)>100?String(this.number):gb(this.number):this.origin}}]),e}();function vb(e){return lb()?new bse(e):new xse(e)}function yb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===``)return``;var i=db(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?yb(vb(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 bb=vb;function Sse(e,t){let n=(0,h.useRef)(null);function r(){try{let{selectionStart:t,selectionEnd:r,value:i}=e;n.current={start:t,end:r,value:i,beforeTxt:i.substring(0,t),afterTxt:i.substring(r)}}catch{}}function i(){if(e&&n.current&&t)try{let{value:t}=e,{beforeTxt:r,afterTxt:i,start:a}=n.current,o=t.length;if(t.startsWith(r))o=r.length;else if(t.endsWith(i))o=t.length-n.current.afterTxt.length;else{let e=r[a-1],n=t.indexOf(e,a-1);n!==-1&&(o=n+1)}e.setSelectionRange(o,o)}catch(e){Lt(!1,`Something warning of cursor restore. Please fire issue about this: ${e.message}`)}}return[r,i]}var Cse=200,wse=600;function xb({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,Cse)}c.current=setTimeout(t,wse)};h.useEffect(()=>()=>{u(),l.current.forEach(e=>{en.cancel(e)})},[]);let f=`${e}-action`,p=m(f,`${f}-${t}`,{[`${f}-${t}-disabled`]:r},i),g=()=>l.current.push(en(u));return h.createElement(`span`,{unselectable:`on`,role:`button`,onMouseUp:g,onMouseLeave:g,onMouseDown:e=>{d(e)},"aria-label":s?`Increase Value`:`Decrease Value`,"aria-disabled":r,className:p,style:a},n||h.createElement(`span`,{unselectable:`on`,className:`${e}-action-${t}-inner`}))}function Sb(e){let t=typeof e==`number`?gb(e):db(e).fullStr;return t.includes(`.`)?db(t.replace(/(\d)\.(\d)/g,`$1$2.`)).fullStr:e+`0`}var Tse=(()=>{let e=(0,h.useRef)(0),t=()=>{en.cancel(e.current)};return(0,h.useEffect)(()=>t,[]),n=>{t(),e.current=en(()=>{n()})}});function Cb(){return Cb=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},Cb.apply(this,arguments)}var wb=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),Tb=e=>{let t=bb(e);return t.isInvalidate()?null:t},Ese=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,()=>Jt(te.current,{focus:e=>{st(te.current,e)},blur:()=>{te.current?.blur()},nativeElement:K.current}));let[ne,re]=h.useState(()=>bb(f??d));function ie(e){f===void 0&&re(e)}let ae=h.useCallback((e,t)=>{if(!t)return D>=0?D:Math.max(hb(e),hb(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`?gb(e):e;if(!t){let e=ae(n,t);_b(n)&&(O||e>=0)&&(n=yb(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(()=>Tb(l),[l,D]),me=h.useMemo(()=>Tb(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]=Sse(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=bb(yb(e,`.`,r)),xe(n)||(n=bb(yb(e,`.`,r,!0)))),n.equals(ne)||(ie(n),k?.(n.isEmpty()?null:wb(w,n)),f===void 0&&de(n,t)),n}return ne},Ce=Tse(),we=e=>{if(ve(),se.current=e,ue(e),!G.current){let t=bb(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=bb(ee.current?Sb(u):u);e||(n=n.negate());let r=Se((ne||bb(0)).add(n.toString()),!1);M?.(wb(w,r),{offset:ee.current?Sb(u):u,type:e?`up`:`down`,emitter:t}),te.current?.focus()}),ke=e=>{let t=bb(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=bb(f);re(e);let t=bb(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(xb,Cb({},Fe,{action:`up`,disabled:he}),_),Le=h.createElement(xb,Cb({},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`,Cb({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))}),Dse=e=>{let t=e.handleVisible??`auto`,n=e.controlHeightSM-e.lineWidth*2;return{...nv(e),controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new cs(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:+(t===!0),handleVisibleWidth:t===!0?n:0}},Ose=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]=vc(D,`input-number`);return[{[t]:{...eo(e),...Sv(e),[k(`input-padding-block`)]:q(v),[k(`input-padding-inline`)]:q(_),display:`inline-flex`,width:C,margin:0,paddingBlock:0,borderRadius:i,...ov(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...mv(e,{[`${t}-actions`]:{background:T,[`${t}-action-down`]:{borderBlockStart:O}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...vv(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:O}}}),...dv(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`]:{...eo(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`,...yv(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`]:{...to(),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}}}}]},kse=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-addon`]:{[`&:has(${n}-select)`]:{border:0,padding:0}}}},Ase=hc(`InputNumber`,e=>{let t=Bo(e,tv(e));return[Ose(t),kse(t),hp(t)]},Dse,{unitless:{handleOpacity:!0},resetFont:!1}),jse=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}=zr(`inputNumber`),k=h.useContext(gu),A=a??k,j=h.useMemo(()=>!g||A||f?!1:g,[g,A,f]),{compactSize:M,compactItemClassnames:N}=bd(o,w),P=S===`spinner`?h.createElement(Pm,null):h.createElement(vse,null),F=S===`spinner`?h.createElement(gse,null):h.createElement(Nv,null),I=typeof j==`boolean`?j:void 0;_r(j)&&(P=j.upIcon||P,F=j.downIcon||F);let{hasFeedback:L,isFormItemInput:R,feedbackIcon:z}=h.useContext(vm),B=qu(e=>i??M??e),[V,H]=ym(`inputNumber`,_,d),U=L&&h.createElement(h.Fragment,null,z),W={...e,size:B,disabled:A,controls:j},G=Dr(E),ee=Dr(y),[K,te]=kr([O,b],[D,G,x,ee],{props:W});return h.createElement(Ese,{ref:n,mode:S,disabled:A,className:m(v,r,K.root,T,N,Q_(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})}),Eb=h.forwardRef((e,t)=>{let{addonBefore:n,addonAfter:r,prefixCls:i,className:a,status:o,rootClassName:s,...c}=e,{getPrefixCls:l}=zr(`inputNumber`),u=l(`input-number`,i),{status:d}=h.useContext(vm),f=$_(d,o),p=ug(u),[g,_]=Ase(u,p),v=n||r,y=h.createElement(jse,{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(Py,{className:m(`${u}-addon`,_,g),variant:e.variant,disabled:e.disabled,status:f},h.createElement(Z_,{form:!0},t)):null,i=t(n),a=t(r);return h.createElement(Cd,{rootClassName:s},i,y,a)}return y}),Db=Eb;Db._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(Iu,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(Eb,{...e}));var Mse=h.createContext({});function Nse(){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 Pse(e,t,n=0){let[r,i]=Nse(),[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 Ob=8,kb=3,Fse=e=>{let t={offset:Ob,threshold:kb};return e&&typeof e==`object`&&(t.offset=e.offset??Ob,t.threshold=e.threshold??kb),[!!e,t]};function Ise(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=en(t))}return t(),()=>{en.cancel(e)}},[r,o]),[f,d]}function Lse(e){let t=h.useMemo(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e==`object`&&e?e:{},[e]),n=h.useMemo(()=>({...t,closeIcon:`closeIcon`in t?t.closeIcon:`×`,disabled:t.disabled??!1}),[t]),r=h.useMemo(()=>qt(n,!0),[n]);return[!!e,n,r]}var Rse=({className:e,style:t,percent:n})=>h.createElement(`progress`,{className:e,max:`100`,value:n,style:t});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 jb=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]=Lse(p),P=pe(()=>{M.onClose?.(),D?.()}),[F,I]=h.useState(!1),[L,R]=Ise(b,P,k),z=100-Math.min(Math.max(O*100,0),100),B=s?.progress||Rse;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`,Ab({},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`,Ab({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}))}),Mb=h.createContext({}),zse=({children:e,classNames:t})=>{let n=h.useMemo(()=>({classNames:t}),[t]);return h.createElement(Mb.Provider,{value:n},e)};function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nb.apply(this,arguments)}var Bse=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`,Nb({},c,{className:m(l,`${l}-${d}`,o),style:f,ref:t}))});function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pb.apply(this,arguments)}var Fb=[`wrapper`,`root`,`icon`,`section`,`title`,`description`,`actions`,`close`,`progress`];function Vse(e){return Fb.reduce((t,n)=>(t[n]=m(...e.map(e=>e?.[n])),t),{})}function Hse(e){return Fb.reduce((t,n)=>(t[n]=Object.assign({},...e.map(e=>e?.[n])),t),{})}function Use(e,t){let n=String(t),r=e.findIndex(e=>e.key===n);if(r!==-1)return e.length-r-1}var Wse=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(jb,Pb({},y,g,{ref:x,className:m(r?.notice,t.className,o),style:{...s,...t.style},classNames:Vse([i,t.classNames]),styles:Hse([a,t.styles]),components:{...n,...t.components},hovering:u&&l,pauseOnHover:t.pauseOnHover??d,onClose:()=>{t.onClose?.(),p?.(_)}}))},Ib=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(Mb),_=h.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),v=typeof c==`function`?c(l):c,[y,{offset:b,threshold:x}]=Fse(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]=Pse(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(Bse,{listPrefixCls:F,height:j,topNoticeHeight:M,topNoticeWidth:N,className:i?.listContent,style:a?.listContent,ref:O},h.createElement(ar,Pb({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=Use(_,l),p=y&&d!==void 0&&d<x;return h.createElement(Wse,{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})})))},Gse=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,yn.createPortal)(h.createElement(h.Fragment,null,S.map(e=>{let t=h.createElement(Ib,{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)}),Kse=()=>document.body,Lb=0;function qse(...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 Jse(e={}){let{getContainer:t=Kse,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(Gse,{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=qse(y,e);(t.key===null||t.key===void 0)&&(t.key=`rc-notification-${Lb}`,Lb+=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 Yse=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(`, `)}},Rb=(e,t)=>{let{componentCls:n,antCls:r,colorSuccess:i,colorInfo:a,colorWarning:o,colorError:s,colorTextHeading:c,colorText:l,boxShadow:u,borderRadiusLG:d,fontSize:f,lineHeight:p,notificationBg:m,notificationPadding:h,notificationMarginEdge:g,margin:_,calc:v}=e,y=`${n}-notice`,[b,x]=vc(r,`notification`);return{[y]:{position:`absolute`,width:t.width,maxWidth:`calc(100vw - ${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`,...Yse(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}}}},zb=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{...Rb(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},...ao(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}}},Xse=e=>{let{componentCls:t,width:n}=e,r=`${t}-notice`,i=`${r}-actions`,a=zb(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`}}}},Zse=e=>{let{componentCls:t}=e;return{[t]:zb(e)}},Qse=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],$se=`--notification-margin-edge`,ece=(e,t)=>({blockEnd:e===`top`?`bottom`:`top`,inlineEnd:t===`left`?`right`:`left`}),Bb=e=>`translate3d(${e?.x??`0`}, ${e?.y??`0`}, 0) scale(var(--notification-scale, 1))`,tce=(e,t)=>{let n=e.startsWith(`bottom`)?`bottom`:`top`,r=e.endsWith(`Right`)?`right`:`left`,{blockEnd:i,inlineEnd:a}=ece(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}},nce=e=>e===`bottom`?`column-reverse`:`column`,rce=e=>{let t=`var(${$se}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},ice=e=>e===`bottom`?`center top`:`center bottom`,Vb=e=>q(e.calc(e.marginXXL).mul(-1).equal()),ace=e=>{let t=Vb(e);return`inset(${t} ${t} ${t} ${t})`},oce=(e,t)=>{let n=Vb(e);return t===`bottom`?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},sce=(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=Bb(t.motionOffset),f=Bb(t.baseMotionOffset),p=ice(i);return{[`&${n}-${r}`]:{[i]:rce(i),[a]:`auto`,display:`flex`,flexDirection:nce(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:oce(e,i)},[`${l}[data-notification-index='0']`]:{clipPath:ace(e)}}}}},cce=(e,t=Qse)=>{let{notificationMotionOffset:n}=e,r=q(n);return{...t.reduce((t,n)=>({...t,...sce(e,tce(n,r))}),{})}},lce=e=>{let{componentCls:t}=e;return{[t]:cce(e)}},uce=3,Hb=e=>({zIndexPopup:e.zIndexPopupBase+pd+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),Ub=e=>{let t=e.paddingMD,n=e.paddingLG;return Bo(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${q(e.paddingMD)} ${q(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},dce=e=>`inset(${e} ${e} ${e} ${e})`,fce=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`}}},pce=(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??uce)+1})`,l=dce(q(e.calc(e.marginXXL).mul(-1).equal()));return{[n]:{...eo(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}},...fce(e),[`&${n}-stack`]:{[a]:{clipPath:l},[`&:not(${n}-stack-expanded)`]:{[a]:{"--notification-scale":`calc(1 - min(var(--notification-index, 0), 2) * 0.06)`},[`${a}:not(${a}-stack-in-threshold)`]:{opacity:0,pointerEvents:`none`},[c]:{opacity:0,pointerEvents:`none`}}},"&-rtl":{direction:`rtl`,[`${a}-actions`]:{float:`left`}}}}};_c([`Notification`,`PurePanel`],e=>Xse(Ub(e)),Hb);var Wb=(e,t)=>{let n=t.itemStyle??Zse;return[pce(e,t),n(e),lce(e)]};hc(`Notification`,e=>Wb(Ub(e),{listWidthKey:`width`}),Hb);var Gb=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return Bo(Ub(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},Kb=e=>({zIndexPopup:e.zIndexPopupBase+pd+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),qb=e=>{let{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return Rb(e,{width:`max-content`,iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:`center`,gap:e.marginXS},noticeStyle:{zIndex:1}})},mce=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,{"&::after":i,...a}=qb(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)`}}}}}}},hce=e=>{let{componentCls:t}=e,n=`${t}-notice`,r=qb(e);return{[`${n}-pure-panel`]:{width:`max-content`,maxWidth:`100%`,...r,[n]:{...r[n],position:`relative`,width:`max-content`,maxWidth:`100%`}}}},gce=_c([`Message`,`PurePanel`],e=>hce(Gb(e)),Kb),_ce=e=>({[e.componentCls]:qb(e)}),Jb=hc(`Message`,e=>{let t=Gb(e);return[Wb(t,{stackVisibleCount:1,itemStyle:_ce}),mce(t)]},Kb),vce={info:h.createElement(fe,null),success:h.createElement(K,null),error:h.createElement(re,null),warning:h.createElement(le,null),loading:h.createElement(Pd,null)},Yb=(e,t)=>t||e&&vce[e]||null,yce=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}=zr(`message`),_=t||u(`message`),v=`${_}-notice`,y=ug(_),[b,x]=Jb(_,y),[S,C]=kr([p,s],[g,c],{props:e}),w=Yb(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(gce,{prefixCls:_}),h.createElement(jb,{...l,prefixCls:_,className:d,style:{...f,...r},duration:null,icon:w,title:o,classNames:E,styles:D}))},bce=e=>{let{items:t,classNames:n,style:r}=e,{getPrefixCls:i}=zr(`message`),a=i(`message`),o=ug(a),[s,c]=Jb(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:Yb(i),title:t,className:`${l}-${i}`,classNames:{wrapper:`${a}-${i}`,icon:o}}});return h.createElement(Ib,{prefixCls:a,placement:`top`,configList:u,className:m(s,c,o),classNames:{...n,wrapper:n?.wrapper,title:n?.title},style:r,stack:!1})},xce=(e,t)=>h.useMemo(()=>{let n=e??t;return n?{..._r(t)?t:{},..._r(n)?n:{}}:!1},[e,t]);function Sce(e,t){return{...pr(e)&&{"--notification-top":q(e)},...pr(t)&&{"--notification-bottom":q(t)}}}function Cce(e,t){return{motionName:t??`${e}-fade`}}function Xb(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 wce=8,Tce=3,Ece=!1,Dce=({children:e,prefixCls:t})=>{let n=ug(t),[r,i]=Jb(t,n);return h.createElement(zse,{classNames:{list:m(r,i,n)}},e)},Oce=(e,{prefixCls:t,key:n})=>h.createElement(Dce,{prefixCls:t,key:n},e),kce=h.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=Tce,rtl:s,classNames:c,styles:l,transitionName:u,pauseOnHover:d=!0,stack:f,onAllRemoved:p}=e,{getPrefixCls:g,direction:_,getPopupContainer:v}=zr(`message`),{message:y}=h.useContext(Ir),b=r||g(`message`),[x,S]=kr([y?.classNames,c],[y?.styles,l],{props:e}),[C,w]=Jse({prefixCls:b,style:()=>Sce(n??wce),className:()=>m({[`${b}-rtl`]:s??_===`rtl`}),motion:()=>Cce(b,u),closable:!1,duration:o,getContainer:()=>i?.()||v?.()||document.body,maxCount:a,onAllRemoved:p,classNames:x,styles:S,renderNotifications:Oce,pauseOnHover:d,stack:xce(f,Ece)});return h.useImperativeHandle(t,()=>({...C,prefixCls:b,message:y})),w}),Zb=0;function Qb(e){let t=h.useRef(null);return Nr(`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;pr(x)||(Zb+=1,x=`antd-message-${Zb}`);let S={...e,...r},C=Or(v,{props:S}),w=Or(y,{props:S}),T=Yb(f,d),E=f?`${l}-icon-${f}`:void 0;return Xb(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=_r(t)&&`content`in t?t:{content:t};let o,s;return vr(n)?s=n:(o=n,s=i),r({onClose:s,duration:o,...a,type:e})}}),i},[]),h.createElement(kce,{key:`message-holder`,...e,ref:t})]}function Ace(e){return Qb(e)}var $b=null,ex=e=>e(),tx=[],nx={};function rx(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i,stack:a}=nx,o=e?.()||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i,stack:a}}var jce=h.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,h.useContext)(Ir),a=nx.prefixCls||i(`message`),o=(0,h.useContext)(Mse),[s,c]=Qb({...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}),Mce=h.forwardRef((e,t)=>{let[n,r]=h.useState(rx),i=()=>{r(rx)};h.useEffect(i,[]);let a=Pu(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=h.createElement(jce,{ref:t,sync:i,messageConfig:n});return h.createElement(Iu,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),ix=()=>{if(!$b){let e=document.createDocumentFragment(),t={fragment:e};$b=t,ex(()=>{_n(h.createElement(Mce,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,ix())})}}),e)});return}$b.instance&&(tx.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:ex(()=>{let t=$b.instance.open({...nx,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:ex(()=>{$b?.instance.destroy(e.key)});break;default:ex(()=>{var n;let r=(n=$b.instance)[t].apply(n,fr(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),tx=[])};function Nce(e){nx={...nx,...e},ex(()=>{$b?.sync?.()})}function Pce(e){let t=Xb(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return tx.push(r),()=>{n?ex(()=>{n()}):r.skipped=!0}});return ix(),t}function Fce(e,t){let n=Xb(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return tx.push(i),()=>{r?ex(()=>{r()}):i.skipped=!0}});return ix(),n}var Ice=e=>{tx.push({type:`destroy`,key:e}),ix()},Lce=[`success`,`info`,`warning`,`error`,`loading`],ax={open:Pce,destroy:Ice,config:Nce,useMessage:Ace,_InternalPanelDoNotUseOrYouWillBeFired:yce,_InternalListDoNotUseOrYouWillBeFired:bce};Lce.forEach(e=>{ax[e]=(...t)=>Fce(e,t)});var ox=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=>{yr(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&&!yr(t)){d.current=!1,g(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!yr(t)){g();return}_(t)};return h.createElement(Sp,{...Od(t),onClick:v,loading:p,prefixCls:r,...i,ref:f},n)},sx=h.createContext({}),{Provider:cx}=sx,lx=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,h.useContext)(sx);return i?h.createElement(ox,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},ux=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,h.useContext)(sx);return h.createElement(ox,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},dx=h.createContext({});function fx(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function px(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 Rce(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=px(i),n.top+=px(i,!0),n}var zce=h.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);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 hx=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(dx),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=qt(F,!0),L=typeof c==`object`&&c.disabled,R=c?h.createElement(`button`,mx({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`,mx({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(zce,{shouldUpdate:b||x},g?g(z):z))});function gx(){return gx=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},gx.apply(this,arguments)}var Bce=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=Rce(p.current.nativeElement);v(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return h.createElement(or,{visible:o,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>h.createElement(hx,gx({},e,{ref:g,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,...y},className:m(a,t)})))});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)}var Vce=e=>{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return h.createElement(or,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>h.createElement(`div`,_x({ref:a,style:{...r,...n},className:m(`${t}-mask`,e,o)},i)))};function vx(){return vx=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},vx.apply(this,arguments)}var Hce=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`,vx({className:m(`${t}-root`,S),style:C},qt(e,{data:!0})),h.createElement(Vce,{prefixCls:t,visible:g&&r,motionName:fx(t,_,v),style:{zIndex:n,...b,...T?.mask},maskProps:x,className:w?.mask}),h.createElement(`div`,vx({className:m(`${t}-wrap`,o,w?.wrapper),ref:D,onClick:B,onMouseDown:V,style:H},s),h.createElement(Bce,vx({},e,{isFixedPos:j,ref:O,closable:p,ariaId:N,prefixCls:t,visible:r&&k,onClose:R,onVisibleChanged:L,motionName:fx(t,d,f)}))))};function yx(){return yx=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},yx.apply(this,arguments)}var Uce=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(dx.Provider,{value:g},h.createElement(pl,{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(Hce,yx({},f,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),m(!1)}}))))},Wce=()=>me()&&window.document.documentElement;function Gce(e,t,n){return(0,h.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}function bx(){}var Kce=h.createContext({add:bx,remove:bx});function qce(e){let t=h.useContext(Kce),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 xx=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,h.useContext)(sx);return h.createElement(Sp,{onClick:n,...e},t)},Sx=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,h.useContext)(sx);return h.createElement(Sp,{...Od(n),loading:e,onClick:i,...t},r)};function Cx(e,t){return h.createElement(`span`,{className:`${e}-close-x`},t||h.createElement(oe,{className:`${e}-close-icon`}))}var Tx=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=Kc(`Modal`,Wc()),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 vr(l)||l===void 0?(m=h.createElement(h.Fragment,null,h.createElement(xx,null),h.createElement(Sx,null)),vr(l)&&(m=l(m,{OkBtn:Sx,CancelBtn:xx})),m=h.createElement(cx,{value:p},m)):m=l,h.createElement(_u,{disabled:!1},m)};function Ex(e){return{position:e,inset:0}}var Jce=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`]:{...Ex(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...Ex(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:Wd(e)}]},Yce=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]:{...eo(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,...io(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},...ao(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`}}}]},Xce=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},Zce=e=>{let{componentCls:t}=e,n=Eg(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(fr(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)`}],fr(a))}}},Dx=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Bo(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Ox=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}),kx=hc(`Modal`,e=>{let t=Dx(e);return[Yce(t),Xce(t),Jce(t),yf(t,`zoom`),Zce(t)]},Ox,{unitless:{titleLineHeight:!0}}),Ax;Wce()&&document.documentElement.addEventListener(`click`,e=>{Ax={x:e.pageX,y:e.pageY},setTimeout(()=>{Ax=null},100)},!0);var jx=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}=zr(`modal`),{modal:K}=h.useContext(Ir),[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]=ad(O,G,re,A),le=Gce({...ee,...N},ae,M),ue=e=>{_||(x?.(e),ne?.())},de=e=>{b?.(e),ne?.()},fe=ug(re),[pe,me]=kx(re,fe),he=m(a,{[`${re}-centered`]:o??H,[`${re}-wrap-rtl`]:L===`rtl`}),ge=u!==null&&!g?h.createElement(Tx,{...e,okButtonProps:{...W,...S},onOk:de,cancelButtonProps:{...U,...C},onCancel:ue}):null,[_e,ve,ye,be]=nd(Xu(e),Xu(K),{closable:!0,closeIcon:h.createElement(oe,{className:`${re}-close-icon`}),closeIconRender:e=>Cx(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,qce(`.${re}-${k?`render`:`container`}`)),[we,Te]=_d(`Modal`,v),Ee={...e,width:l,panelRef:E,focusTriggerAfterClose:le.focusTriggerAfterClose,focusable:le,mask:ae,maskClosable:ce,zIndex:we},[De,Oe]=kr([B,d,se],[V,f],{props:Ee}),[ke,Ae]=h.useMemo(()=>_r(l)?[void 0,l]:[l,void 0],[l]),je=h.useMemo(()=>{let e={};return Ae&&Object.keys(Ae).forEach(t=>{let n=Ae[t];pr(n)&&(e[`--${re}-${t}-width`]=hr(n)?`${n}px`:n)}),e},[re,Ae]);return h.createElement(Z_,{form:!0,space:!0},h.createElement(dd.Provider,{value:Te},h.createElement(Uce,{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??Ax,onClose:ue,closable:xe,closeIcon:ve,transitionName:Yf(ie,`zoom`,e.transitionName),maskTransitionName:Yf(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(Am,{active:!0,title:!1,paragraph:{rows:4},className:`${re}-body-skeleton`}):p)))},Qce=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`]:{...ro()},[`&${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}}},$ce=_c([`Modal`,`confirm`],e=>Qce(Dx(e)),Ox,{order:-1e3}),Mx=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}=zr(`modal`),y=n;if(n===void 0)switch(o){case`info`:y=Ju(p,h.createElement(fe,null));break;case`success`:y=Ju(g,h.createElement(K,null));break;case`error`:y=Ju(_,h.createElement(re,null));break;default:y=Ju(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]=Kc(`Modal`),C=l||S,w=r||(b?C?.okText:C?.justOkText),T=i||C?.cancelText,{closable:E}=f,{onClose:D}=_r(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(lx,null),h.createElement(ux,null)),A=mr(e.title),j=mr(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||vr(c)?h.createElement(cx,{value:O},h.createElement(`div`,{className:`${a}-btns`},vr(c)?c(k,{OkBtn:ux,CancelBtn:lx}):k)):c,h.createElement($ce,{prefixCls:t}))},ele=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}=zr(`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=id(p,g);return e.closable??=!1,e},[p,g]),[,E]=mc(),D=h.useMemo(()=>n===void 0?E.zIndexPopupBase+pd:n,[n,E]);return h.createElement(jx,{...e,className:w,wrapClassName:m({[`${x}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:Yf(s||``,`zoom`,e.transitionName),maskTransitionName:Yf(s||``,`fade`,e.maskTransitionName),mask:T,style:C,styles:{body:c,mask:r,...d},width:S,zIndex:D,closable:l},h.createElement(Mx,{...e,confirmPrefixCls:x,okButtonProps:{...b,..._},cancelButtonProps:{...y,...v}}))},Nx=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return h.createElement(Iu,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},h.createElement(ele,{...e}))},Px=[],Fx=``;function Ix(){return Fx}var tle=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=Wc(),a=(0,h.useContext)(Ir),o=Ix()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),h.createElement(Nx,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function Lx(e){let t=Pu(),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<Px.length;e++)if(Px[e]===s){Px.splice(e,1);break}vn(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,Ix()),i=t.getIconPrefixCls(),a=t.getTheme(),o=h.createElement(tle,{...e});_n(h.createElement(Iu,{prefixCls:r,iconPrefixCls:i,theme:a},vr(t.holderRender)?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{vr(e.afterClose)&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=vr(e)?e(r):{...r,...e},o(r)}return o(r),Px.push(s),{destroy:s,update:c}}function Rx(e){return{...e,type:`warning`}}function zx(e){return{...e,type:`info`}}function Bx(e){return{...e,type:`success`}}function Vx(e){return{...e,type:`error`}}function Hx(e){return{...e,type:`confirm`}}function nle({rootPrefixCls:e}){Fx=e}var rle=Ig(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(Ir),{className:p,style:g,classNames:_,styles:v}=zr(`modal`),y=f(),b=t||f(`modal`),x=ug(y),[S,C]=kx(b,x),[w,T]=kr([_,l],[v,u],{props:e}),E=`${b}-confirm`,D={};return D=a?{closable:i??!1,title:``,footer:``,children:h.createElement(Mx,{...e,prefixCls:b,confirmPrefixCls:E,rootPrefixCls:y,content:s})}:{closable:i??!0,title:o,footer:c!==null&&h.createElement(Tx,{...e}),children:s},h.createElement(hx,{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:Cx(b,r),closable:i,classNames:w,styles:T,...D})}),ile=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(Ir),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=vr(e)?e(t):e;return{...t,...n}})}}));let g=s.okCancel??s.type===`confirm`,[_]=Kc(`Modal`,zc.Modal);return h.createElement(Nx,{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})}),Ux=0,ale=h.memo(h.forwardRef((e,t)=>{let[n,r]=cd();return h.useImperativeHandle(t,()=>({patchElement:r}),[r]),h.createElement(h.Fragment,null,n)}));function ole(){let e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(fr(t).forEach(e=>{e()}),n([]))},[t]);let r=h.useCallback(t=>function(r){Ux+=1;let i=h.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=h.createElement(ile,{key:`modal-${Ux}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&Px.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(fr(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(fr(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[h.useMemo(()=>({info:r(zx),success:r(Bx),error:r(Vx),warning:r(Rx),confirm:r(Hx)}),[r]),h.createElement(ale,{key:`modal-holder`,ref:e})]}function Wx(e){return Lx(Rx(e))}var Gx=jx;Gx.useModal=ole,Gx.info=function(e){return Lx(zx(e))},Gx.success=function(e){return Lx(Bx(e))},Gx.error=function(e){return Lx(Vx(e))},Gx.warning=Wx,Gx.warn=Wx,Gx.confirm=function(e){return Lx(Hx(e))},Gx.destroyAll=function(){for(;Px.length;){let e=Px.pop();e&&e()}},Gx.config=nle,Gx._InternalPanelDoNotUseOrYouWillBeFired=rle;var Kx=e=>mr(e)?vr(e)?e():e:null,qx=`50%`,sle=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,dropShadowPopover:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=vc(g,`tooltip`);return[{[t]:{...eo(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`,qx),`var(--arrow-y, ${qx})`].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}}},vy(e,v(`arrow-background-color`),{arrowShadow:!1}),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},cle=e=>{let{componentCls:t,antCls:n}=e,[r]=vc(n,`tooltip`);return{[t]:Zo.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},Jx=hc(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=Bo(e,{popoverBg:t,popoverColor:n});return[sle(r),cle(r),yf(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...Tv(e),..._y({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`]]}),Yx=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!mr(t)&&!mr(n)?null:h.createElement(h.Fragment,null,mr(t)&&h.createElement(`div`,{className:m(`${r}-title`,i?.title),style:a?.title},t),mr(n)&&h.createElement(`div`,{className:m(`${r}-content`,i?.content),style:a?.content},n))},lle=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=Kx(o),f=Kx(s),p={...e,placement:a},[g,_]=kr([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(fy,{...e,className:t,prefixCls:n,classNames:g,styles:_},c||h.createElement(Yx,{prefixCls:n,title:d,content:f,classNames:g,styles:_})))},Xx=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=h.useContext(Ir),a=i(`popover`,t),[o,s]=Jx(a);return h.createElement(lle,{...r,prefixCls:a,hashId:o,className:m(n,s)})},Zx=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}=zr(`popover`),D=b(`popover`,n),[O,k]=Jx(D),A=b(),j=Sy(v,T),M=s||E||`hover`,N={...e,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:g},[P,F]=kr([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=Kx(r),V=Kx(i);return h.createElement(Dy,{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:mr(B)||mr(V)?h.createElement(Yx,{prefixCls:D,title:B,content:V,classNames:P,styles:F}):null,motion:{motionName:Yf(A,`zoom-big`,typeof _?.motionName==`string`?_?.motionName:void 0)},"data-popover-inject":!0},c)});Zx._InternalPanelDoNotUseOrYouWillBeFired=Xx;var Qx=hc(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon`]:{color:o},[`> ${t}-message-icon ${n}`]:{fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),$x=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(Ir),[b]=Kc(`Popconfirm`,zc.Popconfirm),x=Kx(i),S=Kx(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`},mr(x)&&h.createElement(`div`,{className:m(`${t}-title`,_?.title),style:v?.title},x),mr(S)&&h.createElement(`div`,{className:m(`${t}-description`,_?.content),style:v?.content},S))),h.createElement(`div`,{className:`${t}-buttons`},u&&h.createElement(Sp,{onClick:p,size:`small`,...r},o||b?.cancelText),h.createElement(ox,{buttonProps:{size:`small`,...Od(c),...n},actionFn:f,close:d,prefixCls:y(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||b?.okText)))},ule=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=h.useContext(Ir),s=o(`popconfirm`,t);return Qx(s),h.createElement(Xx,{placement:n,className:m(s,r),style:i,content:h.createElement($x,{prefixCls:s,...a})})},eS=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}=zr(`popconfirm`),[w,T]=ye(e.defaultOpen??!1,e.open),E=Sy(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]=kr([b,p],[x,d],{props:P}),L=m(N,v,c,F.root);return Qx(N),h.createElement(Zx,{arrow:E,...Ht(g,[`title`]),trigger:D,placement:r,onOpenChange:M,open:w,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{...y,...I.root,...u},container:I.container,arrow:I.arrow},content:h.createElement($x,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});eS._InternalPanelDoNotUseOrYouWillBeFired=ule;var tS=h.createContext(void 0),dle=tS.Provider,nS=h.createContext(void 0),fle=nS.Provider,ple=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]:{...eo(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)}}}}},mle=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`]:{...eo(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]:{...eo(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)`]:io(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}}}},hle=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)":io(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`}}}},rS=hc(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${q(n)} ${t}`,i=Bo(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[ple(i),mle(i),hle(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}}),iS=h.forwardRef((e,t)=>{let n=h.useContext(tS),r=h.useContext(nS),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=zr(`radio`),u=Ie(t,h.useRef(null)),{isFormItemInput:d}=h.useContext(vm),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=ug(T),[k,A]=rS(T,O),j={...w},M=h.useContext(gu),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=Dr(s),L=Dr(y),[R,z]=kr([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]=yg(j.onClick);return h.createElement(Ku,{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(hg,{...j,className:m(R.icon,{[Ru]:!E}),style:z.icon,type:`radio`,prefixCls:D,ref:u,onClick:H}),mr(v)?h.createElement(`span`,{className:m(`${D}-label`,R.label),style:z.label},v):null))}),gle=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=h.useContext(Ir),{name:i}=h.useContext(vm),a=we(sy(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=ug(P),[L,R]=rS(P,I),z=f;l&&l.length>0&&(z=l.map(e=>typeof e==`string`||hr(e)?h.createElement(iS,{key:e.toString(),prefixCls:P,disabled:d,value:e,checked:j===e},e):h.createElement(iS,{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=qu(p),[,V]=sd(O,k),H=m(F,`${F}-${u}`,{[`${F}-large`]:B===`large`,[`${F}-small`]:B===`small`,[`${F}-rtl`]:r===`rtl`,[`${F}-block`]:S},s,c,L,R,I),U=h.useMemo(()=>({onChange:N,value:j,disabled:d,name:y,optionType:v,block:S}),[N,j,d,y,v,S]);return h.createElement(`div`,{...qt(e,{aria:!0,data:!0}),role:A,className:m(H,{[`${P}-group-vertical`]:V}),style:g,onMouseEnter:w,onMouseLeave:T,onFocus:E,onBlur:D,id:_,ref:t},h.createElement(dle,{value:U},z))}),_le=h.memo(gle),vle=h.forwardRef((e,t)=>{let{getPrefixCls:n}=h.useContext(Ir),{prefixCls:r,...i}=e,a=n(`radio`,r);return h.createElement(fle,{value:`button`},h.createElement(iS,{prefixCls:a,...i,type:`radio`,ref:t}))}),aS=iS;aS.Button=vle,aS.Group=_le,aS.__ANT_RADIO=!0;var oS=jg,sS=(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}},cS=e=>e===void 0?void 0:`${e}px`;function yle(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=sS(e,l),i=sS(t,l);f(r),_(n),y(i),e&&t?o():s()}},[r]);let b=h.useMemo(()=>cS(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]),x=h.useMemo(()=>cS(l?v?.top??0:c===`rtl`?-v?.right:v?.left),[l,c,v]);return!g||!v?null:h.createElement(or,{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":cS(g?.width),"--thumb-active-left":x,"--thumb-active-width":cS(v?.width),"--thumb-start-top":b,"--thumb-start-height":cS(g?.height),"--thumb-active-top":x,"--thumb-active-height":cS(v?.height)},a={ref:Ie(u,r),style:i,className:m(`${t}-thumb`,e)};return h.createElement(`div`,a)})}function ble(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function xle(e){return e.map(e=>{if(typeof e==`object`&&e){let t=ble(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var Sle=({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})},Cle=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(()=>xle(a),[a]),[C,w]=ye(s??S[0]?.value,c),[T,E]=h.useState(!1),D=(e,t)=>{w(t),u?.(t)},O=Ht(y,[`children`]),[k,A]=h.useState(!1),[j,M]=h.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},I=e=>{e.key===`Tab`&&A(!0)},L=e=>{let t=S.findIndex(e=>e.value===C),n=S.length,r=S[(t+e+n)%n];r&&(w(r.value),u?.(r.value))},R=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:L(-1);break;case`ArrowRight`:case`ArrowDown`:L(1);break}},z=e=>{let{value:t,disabled:r}=e;return h.createElement(Sle,jf({},e,{name:l,data:e,itemRender:v,key:t,prefixCls:n,className:m(e.className,`${n}-item`,g?.item,{[`${n}-item-selected`]:t===C&&!T,[`${n}-item-focused`]:j&&k&&t===C}),style:p?.item,classNames:g,styles:p,checked:t===C,onChange:D,onFocus:N,onBlur:P,onKeyDown:R,onKeyUp:I,onMouseDown:F,disabled:!!o||!!r}))};return h.createElement(`div`,jf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:m(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:x}),h.createElement(`div`,{className:`${n}-group`},h.createElement(yle,{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 lS(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var uS=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),wle={overflow:`hidden`,...$a},Tle=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]:{...eo(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...ao(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":{...uS(e),color:e.itemSelectedColor},"&-focused":io(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)}`,...wle},"&-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`]:{...uS(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}},...lS(`&-disabled ${t}-item`,e),...lS(`${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}}}}},Ele=hc(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return Tle(Bo(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function Dle(e){return _r(e)&&!!e?.icon}var Ole=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}=zr(`segmented`),T={...e,options:s,size:c,shape:f},E=Dr(S),D=Dr(l),[O,k]=kr([C,_],[w,E,g,D],{props:T}),A=y(`segmented`,r),[j,M]=Ele(A),N=qu(c),P=h.useMemo(()=>s.map(e=>{if(Dle(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]=sd(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=_r(t.tooltip)?t.tooltip:{title:t.tooltip};return h.createElement(Dy,{...n},e)};return h.createElement(Cle,{...v,name:p,className:I,style:k.root,classNames:O,styles:k,itemRender:L,options:P,ref:t,prefixCls:A,direction:b,vertical:F})}),kle=(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])},dS=h.createContext(null);function fS(){return h.useContext(dS)}function Ale(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 pS(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function jle(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&&!pS(e(),a)&&n(!1)});h.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}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)}var Mle=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`}}},Nle=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||Mle(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(cu,mS({},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 hS(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function gS(e){return e!==void 0&&!Number.isNaN(e)}function _S(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 Ple(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=_S(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:hS(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:hS(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function vS(e){let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return Lt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Fle=(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 Ile(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 Lle=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},yS=(e,t=1)=>{if(t<=0){e();return}Lle(()=>{yS(e,t-1)})};function Rle(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():yS(()=>{a()})}),c]}function bS(e){let{children:t,...n}=e;return t?h.createElement(`div`,n,t):null}var xS=h.createContext(null);function SS(){return h.useContext(xS)}var CS=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`}}=SS(),{id:S,classNames:C,styles:w,open:T,activeDescendantId:E,role:D,disabled:O}=fS()||{},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 wS(e){let{prefixCls:t,placeholder:n,displayValues:r}=SS(),{classNames:i,styles:a}=fS(),{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 TS=h.createContext(null);function ES(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function zle(e){return e!=null}function Ble(e){return!e&&e!==0}function DS(e){return[`string`,`number`].includes(typeof e)}function OS(e){let t;return e&&(DS(e.title)?t=e.title.toString():DS(e.label)&&(t=e.label.toString())),t}function kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kS.apply(this,arguments)}var Vle=h.forwardRef(({inputProps:e},t)=>{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=SS(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=fS(),g=h.useContext(TS),[_,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=OS(r.data))}return b&&!n&&(n=OS(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(wS,{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(CS,kS({ref:t},e,{value:x,maxLength:s===`combobox`?o:void 0,onChange:t=>{v(!0),e.onChange?.(t)}})))}),AS=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 jS(){return jS=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},jS.apply(this,arguments)}function Hle(e){return e.key??e.value}var MS=e=>{e.preventDefault(),e.stopPropagation()},Ule=h.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=SS(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:g,maxTagPlaceholder:_,maxTagTextLength:v,maxTagCount:y,classNames:b,styles:x}=fS(),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:OS(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(AS,{className:m(`${S}-remove`,b?.itemRemove),style:x?.itemRemove,onMouseDown:MS,onClick:i,customizeIcon:E},`×`)),M=(e,t,n,r,i,a,o)=>h.createElement(`span`,{onMouseDown:e=>{MS(e),k(!u)}},O({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return h.createElement(ah,{prefixCls:`${n}-content`,className:b?.content,style:x?.content,prefix:!r.length&&!w&&h.createElement(wS,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(CS,jS({ref:t,disabled:c,readOnly:!T},e,{value:w||``,syncWidth:!0})),itemKey:Hle,maxCount:y})}),Wle=h.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=SS(),a=fS(),{showSearch:o}=a,s={...qt(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?h.createElement(Ule,{ref:t,inputProps:s}):h.createElement(Vle,{ref:t,inputProps:s})});function Gle(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 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 Kle=[`value`,`onChange`,`removeIcon`,`placeholder`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`,`activeValue`,`onSelectorRemove`,`focused`],qle=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}=fS(),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)&&Gle(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=Ht(D,Kle),V=qt(B,{aria:!0}),H=Object.keys(V),U={...e,onInputKeyDown:L};if(z){let e=z.props||{},t={...e,...B};return Object.keys(e).forEach(n=>{let r=e[n],i=B[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),h.isValidElement(z)?h.cloneElement(z,{...t,ref:Ie(z.ref,F)}):h.createElement(z,NS({},t,{ref:F}))}return h.createElement(xS.Provider,{value:U},h.createElement(`div`,NS({},Ht(B,H),{ref:F,className:r,style:i,onMouseDown:R}),h.createElement(bS,{className:m(`${n}-prefix`,N?.prefix),style:P?.prefix},a),h.createElement(Wle,{ref:I}),h.createElement(bS,{className:m(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&h.createElement(bS,{className:m(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},s),c))});function Jle(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 PS(){return PS=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},PS.apply(this,arguments)}var FS=e=>e===`tags`||e===`multiple`,Yle=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=FS(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=Jle(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]=Rle(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)=>Fle(e,I,t),[I]),je=(e,t,n)=>{if(he&&gS(y)&&f.length>=y)return;let r=!0,i=e;A?.(null);let a=gS(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]=Ale(),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()];jle(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:()=>pS(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,yS(()=>{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}=kle(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(qle,PS({},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(Nle,{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(dS.Provider,{value:Ye},h.createElement(Ile,{visible:ye&&!Ee,values:f}),nt)}),IS=()=>null;IS.isSelectOptGroup=!0;var LS=()=>null;LS.isSelectOption=!0;var RS=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(Ol,{onResize:({offsetHeight:e})=>{e&&a&&a()}},h.createElement(`div`,jf({style:d,className:m({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});RS.displayName=`Filler`;function Xle({children:e,setRef:t}){let n=h.useCallback(e=>{t(e)},[]);return h.cloneElement(e,{ref:n})}function Zle(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(Xle,{key:l,setRef:t=>a(e,t)},c)})}function Qle(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 $le(e,t,n){let[r,i]=h.useState(e),[a,o]=h.useState(null);return h.useEffect(()=>{let a=Qle(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var zS=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),BS=((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 eue(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=BS(t,n,r,i);function f(e,t){if(en.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,zS||n.preventDefault(),c.current=en(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),zS||e.preventDefault()}let m=(0,h.useRef)(null),g=(0,h.useRef)(null);function _(t){if(!e)return;en.cancel(g.current),g.current=en(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function v(t){e&&(u.current=t.detail===l.current)}return[_,v]}function 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 nue=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 VS(e){let t=parseFloat(e);return isNaN(t)?0:t}function rue(e,t,n){let[r,i]=h.useState(0),a=(0,h.useRef)(new Map),o=(0,h.useRef)(new nue),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=VS(i),c=VS(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 HS=14/15;function iue(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*=HS:c*=HS;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 US(e){return Math.floor(e**.5)}function WS(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=()=>{en.cancel(t)},o=()=>{a(),t=en(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=WS(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-US(n-e),o()):e>=s?(i=US(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 oue=10;function sue(e,t){let n=typeof e==`function`?e(t):e;return Number.isFinite(n)?n:0}function cue(e,t,n,r,i,a,o,s,c){let l=h.useRef(),[u,d]=h.useState(null);return ge(()=>{if(u&&u.times<oue){if(!e.current){d(e=>({...e}));return}o();let{targetAlign:c,originAlign:l,index:f,offset:p}=u,m=sue(p,{getSize:a}),h=e.current.clientHeight,g=!1,_=c,v=null;if(h){let a=c||l,o=0,d=0,p=0,y=Math.min(t.length-1,f);for(let e=0;e<=y;e+=1){let a=i(t[e]);d=o;let s=n.get(a);p=d+(s===void 0?r:s),o=p}let b=a===`top`?m:h-m;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){g=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:v=d-m;break;case`bottom`:v=p-h+m;break;default:{let{scrollTop:t}=e.current,n=t+h;d<t?_=`top`:p>n&&(_=`bottom`)}}v!==null&&s(v),v!==u.lastTop&&(g=!0)}g&&d({...u,times:u.times+1,targetAlign:_,lastTop:v})}},[u,e.current]),e=>{if(e==null){c();return}if(en.cancel(l.current),typeof e==`number`)s(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;d({times:0,index:n,offset:a,originAlign:r})}}}var GS=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(WS(e,l)),S(P.current.top),o(),e.stopPropagation(),e.preventDefault()};h.useEffect(()=>{let e=e=>{e.preventDefault()},t=w.current,n=T.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,F,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,F)}},[]);let I=h.useRef();I.current=A;let L=h.useRef();L.current=j,h.useEffect(()=>{if(_){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=P.current;en.cancel(e);let a=w.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(WS(t,l)-r)*o,a=i;!C&&l?a-=n:a+=n;let s=I.current,u=L.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=en(()=>{c(f,l)})}},n=()=>{v(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),en.cancel(e)}}},[_]),h.useEffect(()=>(k(),()=>{clearTimeout(O.current)}),[i]),h.useImperativeHandle(t,()=>({delayHidden:k}));let R=`${n}-scrollbar`,z={position:`absolute`,visibility:E?null:`hidden`},B={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(z,{height:8,left:0,right:0,bottom:0}),Object.assign(B,{height:`100%`,width:u,[C?`left`:`right`]:M})):(Object.assign(z,{width:8,top:0,bottom:0,[C?`right`:`left`]:0}),Object.assign(B,{width:`100%`,height:u,top:M})),h.createElement(`div`,{ref:w,className:m(R,{[`${R}-horizontal`]:l,[`${R}-vertical`]:!l,[`${R}-visible`]:E}),style:{...z,...f},onMouseDown:N,onMouseMove:k},h.createElement(`div`,{ref:T,className:m(`${R}-thumb`,{[`${R}-thumb-moving`]:_}),style:{...B,...p},onMouseDown:F}))}),lue=20;function KS(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,lue),Math.floor(n)}var uue=[],due={overflowY:`auto`,overflowAnchor:`none`};function qS(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]=rue(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||uue,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]=$le(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(()=>KS(le.width,p),[le.width,p]),_e=h.useMemo(()=>KS(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=BS(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,yn.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,yn.flushSync)(()=>{H(t=>je(t+(N?-e:e)))}),Oe()):te(t=>t+e)}),[Ne,Pe]=eue(A,xe,Se,Ce,we,!!p,Me);iue(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=cue(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=Zle(F,oe,se,p,V,E,l,K),Be=null;i&&(Be={[o?`height`:`maxHeight`]:i,...due},A&&(Be.overflowY=`hidden`,p&&(Be.overflowX=`hidden`),U&&(Be.pointerEvents=`none`)));let Ve={};return N&&(Ve.dir=`rtl`),h.createElement(`div`,jf({ref:R,style:{...s,position:`relative`},className:P},Ve,w),h.createElement(Ol,{onResize:de},h.createElement(g,{className:`${n}-holder`,style:Be,ref:I,onScroll:Ae,onMouseEnter:Fe},h.createElement(RS,{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(GS,{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(GS,{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 JS=h.forwardRef(qS);JS.displayName=`List`;var fue=h.forwardRef((e,t)=>qS({...e,virtual:!1},t));fue.displayName=`List`;var YS=JS;function pue(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function XS(){return XS=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},XS.apply(this,arguments)}function ZS(e){return typeof e==`string`||typeof e==`number`}var mue=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}=fS(),{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(TS),A=`${n}-item`,j=Te(()=>g,[i,f],(e,t)=>t[0]&&!t[1]),M=h.useRef(null),N=h.useMemo(()=>a&&gS(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:pue()&&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=qt(n,!0),s=W(t);return t?h.createElement(`div`,XS({"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`,XS({},K,{style:{height:0,width:0,overflow:`hidden`}}),ee(R-1),ee(R),ee(R+1)),h.createElement(YS,{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??(ZS(a)?a.toString():void 0);return h.createElement(`div`,{className:m(A,`${A}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,g=Ht(p,U),_=I(o),v=c||!_&&N,y=`${A}-option`,x=m(A,y,f,O?.popup?.listItem,{[`${y}-grouped`]:r,[`${y}-active`]:R===t&&!v,[`${y}-disabled`]:v,[`${y}-selected`]:_}),S=W(e),w=!b||typeof b==`function`||_,T=typeof S==`number`?S:S||o,E=ZS(T)?T.toString():void 0;return l!==void 0&&(E=l),h.createElement(`div`,XS({},qt(g),C?{}:G(e,t),{"aria-selected":C?void 0:V(o),"aria-disabled":v,className:x,title:E,onMouseMove:()=>{R===t||v||B(t)},onClick:()=>{v||H(o)},style:{...k?.popup?.listItem,...d}}),h.createElement(`div`,{className:`${y}-content`},typeof D==`function`?D(e,{index:t}):T),h.isValidElement(b)||_,w&&h.createElement(AS,{className:`${A}-option-state`,customizeIcon:b,customizeIconProps:{value:o,disabled:v,isSelected:_}},_?`✓`:null))}))}),hue=((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 QS(e,t){return ES(e).join(``).toUpperCase().includes(t)}var gue=((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=>QS(t[e],u)):t[a]?QS(t[o===`children`?`label`:o],u):QS(t[s],u),f=l?e=>vS(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 _ue(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function $S(e,t=!1){return tn(e).map((e,n)=>{if(!h.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?_ue(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:$S(a)}}).filter(e=>e)}var vue=(e,t,n,r,i)=>h.useMemo(()=>{let a=e;e||(a=$S(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 eC(e){let t=h.useRef();return t.current=e,h.useCallback((...e)=>t.current(...e),[])}function yue(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 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 bue=[`inputValue`];function xue(e){return!e||typeof e!=`object`}var nC=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]=yue(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=FS(r),ne=!!(!b&&S),re=h.useMemo(()=>B===void 0&&r===`combobox`?!1:B,[B,r]),ie=h.useMemo(()=>_S(o,ne),[JSON.stringify(o),ne]),[ae,oe]=ye(``,V),se=ae||``,ce=vue(b,S,ie,ee,y),{valueOptions:le,labelOptions:ue,options:de}=ce,fe=h.useCallback(e=>ES(e).map(e=>{let t,n,r,i;xue(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]=hue(h.useMemo(()=>{let e=fe(te&&pe===null?[]:pe);return r===`combobox`&&Ble(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(zle(e)?String(e):``)}},[he]);let be=eC((e,t)=>{let n=t??e;return{[ie.value]:e,[ie.label]:n}}),xe=gue(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(()=>Ple(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=>vS(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,vS(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=eC((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(``):(!FS||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(TS.Provider,{value:Be},h.createElement(Yle,tC({},L,{id:K,prefixCls:i,ref:t,omitDomProps:bue,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:mue,emptyOptions:!Ee.length,activeValue:Oe,activeDescendantId:`${K}_list_${Ae}`})))});nC.Option=LS,nC.OptGroup=IS;var Sue=nC;function rC(e,t,n){return e===!1?null:e===!0?n:e&&e[t]!==void 0?e[t]:n}var iC=(e,t)=>e?.startsWith(`var(`)||t?.startsWith(`var(`)?e:new cs(e).onBackground(t).toHexString(),Cue=()=>{let[,e]=mc(),[t]=Kc(`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:iC(a,n),borderColor:iC(o,n),detailColor:iC(r,n),shadowColor:iC(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`}))))},wue=()=>{let[,e]=mc(),[t]=Kc(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,h.useMemo)(()=>({borderColor:iC(n,a),shadowColor:iC(r,a),contentColor:iC(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}))))},Tue=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}}}}},Eue=hc(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return Tue(Bo(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),aC=h.createElement(Cue,null),oC=h.createElement(wue,null),sC=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}=zr(`empty`),x=f(`empty`,r),[S,C]=Eue(x),w=Dr(_),T=Dr(c),[E,D]=kr([v,l],[y,w,u,T],{props:e}),[O]=Kc(`Empty`),k=a===void 0?O?.description:a,A=typeof k==`string`?k:`empty`,j=i??b??aC,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===oC,[`${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))};sC.PRESENTED_IMAGE_DEFAULT=aC,sC.PRESENTED_IMAGE_SIMPLE=oC;var cC=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,h.useContext)(Ir),r=n(`empty`);switch(t){case`Table`:case`List`:return h.createElement(sC,{image:sC.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return h.createElement(sC,{image:sC.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return h.createElement(sC,null)}},Due=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 Oue(e,t){return e||Due(t)}var lC=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`}},kue=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`]:{...eo(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:$d},[`
|
||
${i}${s}topLeft,
|
||
${a}${s}topLeft,
|
||
${i}${s}topRight,
|
||
${a}${s}topRight
|
||
`]:{animationName:tf},[`${o}${s}bottomLeft`]:{animationName:ef},[`
|
||
${o}${s}topLeft,
|
||
${o}${s}topRight
|
||
`]:{animationName:nf},"&-hidden":{display:`none`},[r]:{...lC(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`,...$a},"&-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":{...lC(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},lf(e,`slide-up`),lf(e,`slide-down`),Qd(e,`move-up`),Qd(e,`move-down`)]},Aue=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}}}},uC=4,jue=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=vc(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${uC}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":{...$a,marginInlineEnd:a},"&-remove":{...to(),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:uC,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`}}}}},dC=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=vc(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`affix-color`)]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${q(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},fC=(e,t,n,r,i,a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[dC(e,n),{[`&${o}-status-error`]:dC(e,{...n,...r}),[`&${o}-status-warning`]:dC(e,{...n,...i})},a]}},pC=(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(`, `)}),Mue=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:i,showArrowPaddingInlineEnd:a,iconCls:o,antCls:s,max:c,calc:l}=e,[u,d]=vc(s,`select`),f=c(l(a).sub(i).equal(),0);return{[t]:[{[u(`border-radius`)]:e.borderRadius,[u(`border-color`)]:`#000`,[u(`border-size`)]:e.lineWidth,[u(`background-color`)]:e.colorBgContainer,[u(`font-size`)]:e.fontSize,[u(`line-height`)]:e.lineHeight,[u(`font-height`)]:n,[u(`color`)]:e.colorText,[u(`affix-color`)]:e.colorText,[u(`height`)]:r,[u(`padding-horizontal`)]:l(e.paddingSM).sub(e.lineWidth).equal(),[u(`padding-vertical`)]:`calc((${d(`height`)} - ${d(`font-height`)}) / 2 - ${d(`border-size`)})`,...eo(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`]:{...$a,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`]:{...$a,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`}},jue(e),fC(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}),fC(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}),fC(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)`]:pC(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:pC(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:pC(e,e.colorWarning)}),fC(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`}),Aue(e)]}},Nue=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}},Pue=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...eo(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...$a,[`> ${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()}}}}}},Fue=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},Pue(e),kue(e),{[`${t}-rtl`]:{direction:`rtl`}},hp(e,{focusElCls:`${t}-focused`})]},Iue=hc(`Select`,(e,{rootPrefixCls:t})=>{let n=Bo(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Fue(n),Mue(n)]},Nue,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function Lue(e){return h.useMemo(()=>{if(e)return(...t)=>h.createElement(Z_,{space:!0},e.apply(void 0,t))},[e])}function Rue(e,t){return t===void 0?e!==null:t}var mC=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,hC=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(Ir),{showSearch:K,allowClear:te,style:ne,styles:re,className:ie,classNames:ae,clearIcon:oe,loadingIcon:se,menuItemSelectedIcon:ce,removeIcon:le,suffixIcon:ue}=zr(`select`),[,de]=mc(),fe=d??de?.controlHeight,pe=V(`select`,n),me=V(),he=x??U,{compactSize:ge,compactItemClassnames:_e}=bd(pe,he),[ve,ye]=ym(`select`,w,r),be=ug(pe),[xe,Se]=Iue(pe,be),Ce=h.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===mC?`combobox`:t},[e.mode]),we=Ce===`multiple`||Ce===`tags`,Te=Rue(e.suffixIcon,e.showArrow),Ee=b??y??G,De=Lue(M||j),Oe=P||N,{status:ke,hasFeedback:Ae,isFormItemInput:je,feedbackIcon:Me}=h.useContext(vm),Ne=$_(ke,_),Pe;Pe=g===void 0?Ce===`combobox`?null:H?.(`Select`)||h.createElement(cC,{componentName:`Select`}):g;let{suffixIcon:Fe,itemIcon:Ie,removeIcon:Le,clearIcon:Re}=Iv({...z,multiple:we,hasFeedback:Ae,feedbackIcon:Me,showSuffixIcon:Te,prefixCls:pe,componentName:`Select`,clearIcon:L,searchIcon:rC(R,`searchIcon`),contextClearIcon:oe,contextLoadingIcon:se,contextMenuItemSelectedIcon:ce,contextRemoveIcon:le,contextSearchIcon:rC(K,`searchIcon`),contextSuffixIcon:ue}),ze=C??te,Be=ze===!0?{clearIcon:Re}:ze,Ve=R??K,He=Ht(z,[`suffixIcon`,`itemIcon`]),Ue=qu(e=>f??ge??e),We=h.useContext(gu),Ge=p??We,Ke={...e,variant:ve,status:Ne,disabled:Ge,size:Ue},qe=Dr(ne),Je=Dr(S),[Ye,Xe]=kr([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},Q_(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]=_d(`SelectLike`,Xe.popup.root?.zIndex??Qe.zIndex);return h.createElement(Sue,{ref:t,virtual:W,classNames:Ye,styles:Xe,showSearch:Ve,...He,style:Xe.root,popupMatchSelectWidth:Ee,transitionName:Yf(me,`slide-up`,D),builtinPlacements:Oue(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})}),zue=Lg(hC,`popupAlign`);hC.SECRET_COMBOBOX_MODE_DO_NOT_USE=mC,hC.Option=LS,hC.OptGroup=IS,hC._InternalPanelDoNotUseOrYouWillBeFired=zue;function gC(e,t,n){return(e-t)/(n-t)}function _C(e,t,n,r){let i=gC(t,n,r),a={};switch(e){case`rtl`:a.right=`${i*100}%`,a.transform=`translateX(50%)`;break;case`btt`:a.bottom=`${i*100}%`,a.transform=`translateY(50%)`;break;case`ttb`:a.top=`${i*100}%`,a.transform=`translateY(-50%)`;break;default:a.left=`${i*100}%`,a.transform=`translateX(-50%)`;break}return a}function vC(e,t){return Array.isArray(e)?e[t]:e}var yC=h.createContext({min:0,max:0,direction:`ltr`,step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{},isHandleDisabled:()=>!1}),Bue=h.createContext({});function bC(){return bC=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},bC.apply(this,arguments)}var xC=h.forwardRef((e,t)=>{let{prefixCls:n,value:r,valueIndex:i,onStartMove:a,onDelete:o,style:s,render:c,dragging:l,draggingDelete:u,onOffsetChange:d,onChangeComplete:f,onFocus:p,onMouseEnter:g,..._}=e,{min:v,max:y,direction:b,keyboard:x,range:S,tabIndex:C,ariaLabelForHandle:w,ariaLabelledByForHandle:T,ariaRequired:E,ariaValueTextFormatterForHandle:D,styles:O,classNames:k,isHandleDisabled:A}=h.useContext(yC),j=A(i),M=`${n}-handle`,N=e=>{if(j){e.stopPropagation();return}a(e,i)},P=e=>{p?.(e,i)},F=e=>{g(e,i)},I=e=>{if(!j&&x){let t;switch(e.which||e.keyCode){case Et.LEFT:t=b===`ltr`||b===`btt`?-1:1;break;case Et.RIGHT:t=b===`ltr`||b===`btt`?1:-1;break;case Et.UP:t=b===`ttb`?-1:1;break;case Et.DOWN:t=b===`ttb`?1:-1;break;case Et.HOME:t=`min`;break;case Et.END:t=`max`;break;case Et.PAGE_UP:t=2;break;case Et.PAGE_DOWN:t=-2;break;case Et.BACKSPACE:case Et.DELETE:o?.(i);break}t!==void 0&&(e.preventDefault(),d(t,i))}},L=e=>{switch(e.which||e.keyCode){case Et.LEFT:case Et.RIGHT:case Et.UP:case Et.DOWN:case Et.HOME:case Et.END:case Et.PAGE_UP:case Et.PAGE_DOWN:f?.();break}},R=_C(b,r,v,y),z={};i!==null&&(z={tabIndex:j?void 0:vC(C,i)??void 0,role:`slider`,"aria-valuemin":v,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":j,"aria-label":vC(w,i),"aria-labelledby":vC(T,i),"aria-required":vC(E,i),"aria-valuetext":vC(D,i)?.(r),"aria-orientation":b===`ltr`||b===`rtl`?`horizontal`:`vertical`,onMouseDown:N,onTouchStart:N,onFocus:P,onMouseEnter:F,onKeyDown:I,onKeyUp:L});let B=h.createElement(`div`,bC({ref:t,className:m(M,{[`${M}-${i+1}`]:i!==null&&S,[`${M}-dragging`]:l,[`${M}-dragging-delete`]:u,[`${M}-disabled`]:j},k.handle),style:{...R,...s,...O.handle}},z,_));return c&&(B=c(B,{index:i,prefixCls:n,value:r,dragging:l,draggingDelete:u})),B});function SC(){return SC=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},SC.apply(this,arguments)}var Vue=h.forwardRef((e,t)=>{let{prefixCls:n,style:r,onStartMove:i,onOffsetChange:a,values:o,handleRender:s,activeHandleRender:c,draggingIndex:l,draggingDelete:u,onFocus:d,...f}=e,p=h.useRef({}),[m,g]=h.useState(!1),[_,v]=h.useState(-1),y=e=>{v(e),g(!0)},b=(e,t)=>{y(t),d?.(e)},x=(e,t)=>{y(t)};h.useImperativeHandle(t,()=>({focus:e=>{p.current[e]?.focus()},hideHelp:()=>{(0,yn.flushSync)(()=>{g(!1)})}}));let S={prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:b,onMouseEnter:x,...f};return h.createElement(h.Fragment,null,o.map((e,t)=>{let n=l===t;return h.createElement(xC,SC({ref:e=>{e?p.current[t]=e:delete p.current[t]},dragging:n,draggingDelete:n&&u,style:vC(r,t),key:t,value:e,valueIndex:t},S))}),c&&m&&h.createElement(xC,SC({key:`a11y`},S,{value:o[_],valueIndex:null,dragging:l!==-1,draggingDelete:u,render:c,style:{pointerEvents:`none`},tabIndex:void 0,"aria-hidden":!0})))}),Hue=e=>{let{prefixCls:t,style:n,children:r,value:i,onClick:a}=e,{min:o,max:s,direction:c,includedStart:l,includedEnd:u,included:d}=h.useContext(yC),f=`${t}-text`,p=_C(c,i,o,s);return h.createElement(`span`,{className:m(f,{[`${f}-active`]:d&&l<=i&&i<=u}),style:{...p,...n},onMouseDown:e=>{e.stopPropagation()},onClick:()=>{a(i)}},r)},Uue=e=>{let{prefixCls:t,marks:n=[],onClick:r}=e,i=`${t}-mark`;return n.length?h.createElement(`div`,{className:i},n.map(({value:e,style:t,label:n})=>h.createElement(Hue,{key:e,prefixCls:i,style:t,value:e,onClick:r},n))):null},Wue=e=>{let{prefixCls:t,value:n,style:r,activeStyle:i}=e,{min:a,max:o,direction:s,included:c,includedStart:l,includedEnd:u}=h.useContext(yC),d=`${t}-dot`,f=c&&l<=n&&n<=u,p={..._C(s,n,a,o),...typeof r==`function`?r(n):r};return f&&(p={...p,...typeof i==`function`?i(n):i}),h.createElement(`span`,{className:m(d,{[`${d}-active`]:f}),style:p})},Gue=e=>{let{prefixCls:t,marks:n,dots:r,style:i,activeStyle:a}=e,{min:o,max:s,step:c}=h.useContext(yC),l=h.useMemo(()=>{let e=new Set;if(n.forEach(t=>{e.add(t.value)}),r&&c!==null){let t=o;for(;t<=s;)e.add(t),t+=c}return Array.from(e)},[o,s,c,r,n]);return h.createElement(`div`,{className:`${t}-step`},l.map(e=>h.createElement(Wue,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})))},CC=e=>{let{prefixCls:t,style:n,start:r,end:i,index:a,onStartMove:o,replaceCls:s}=e,{direction:c,min:l,max:u,disabled:d,range:f,classNames:p}=h.useContext(yC),g=`${t}-track`,_=gC(r,l,u),v=gC(i,l,u),y=e=>{!d&&o&&o(e,-1)},b={};switch(c){case`rtl`:b.right=`${_*100}%`,b.width=`${v*100-_*100}%`;break;case`btt`:b.bottom=`${_*100}%`,b.height=`${v*100-_*100}%`;break;case`ttb`:b.top=`${_*100}%`,b.height=`${v*100-_*100}%`;break;default:b.left=`${_*100}%`,b.width=`${v*100-_*100}%`}let x=s||m(g,{[`${g}-${a+1}`]:a!==null&&f,[`${t}-track-draggable`]:o},p.track);return h.createElement(`div`,{className:x,style:{...b,...n},onMouseDown:y,onTouchStart:y})},Kue=e=>{let{prefixCls:t,style:n,values:r,startPoint:i,onStartMove:a}=e,{included:o,range:s,min:c,styles:l,classNames:u,isHandleDisabled:d}=h.useContext(yC),f=h.useMemo(()=>r.some((e,t)=>d(t)),[d,r])?void 0:a,p=h.useMemo(()=>{if(!s){if(r.length===0)return[];let e=i??c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}let e=[];for(let t=0;t<r.length-1;t+=1)e.push({start:r[t],end:r[t+1]});return e},[r,s,i,c]);if(!o)return null;let g=p?.length&&(u.tracks||l.tracks)?h.createElement(CC,{index:null,prefixCls:t,start:p[0].start,end:p[p.length-1].end,replaceCls:m(u.tracks,`${t}-tracks`),style:l.tracks}):null;return h.createElement(h.Fragment,null,g,p.map(({start:e,end:r},i)=>h.createElement(CC,{index:i,prefixCls:t,style:{...vC(n,i),...l.track},start:e,end:r,key:i,onStartMove:f})))},que=e=>{let t=h.useCallback(t=>typeof e==`boolean`?e:e[t]??!1,[e]),n=h.useCallback(n=>typeof e==`boolean`?[e,e&&n.length>0]:[n.length>0&&n.every((e,n)=>t(n)),n.some((e,n)=>t(n))],[e,t]);return h.useMemo(()=>[t,n],[t,n])},Jue=130;function wC(e){let t=`targetTouches`in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function Yue(e,t,n,r,i,a,o,s,c,l,u,d){let[f,p]=h.useState(null),[m,g]=h.useState(-1),[_,v]=h.useState(!1),[y,b]=h.useState(n),[x,S]=h.useState(n),C=h.useRef(null),w=h.useRef(null),T=h.useRef(null),{onDragStart:E,onDragChange:D}=h.useContext(Bue);ge(()=>{m===-1&&b(n)},[n,m]),h.useEffect(()=>()=>{C.current&&document.removeEventListener(`mousemove`,C.current),w.current&&document.removeEventListener(`mouseup`,w.current),T.current&&(C.current&&T.current.removeEventListener(`touchmove`,C.current),w.current&&T.current.removeEventListener(`touchend`,w.current))},[]);let O=(e,t,n)=>{t!==void 0&&p(t),b(e);let r=e;n&&(r=e.filter((e,t)=>t!==m)),o(r),D&&D({rawValues:e,deleteIndex:n?m:-1,draggingIndex:m,draggingValue:t})},k=pe((e,t,n)=>{if(e===-1){if(x.some((e,t)=>d(t)))return;let e=x[0],n=x[x.length-1],o=r-e,s=i-n,c=t*(i-r);c=Math.max(c,o),c=Math.min(c,s),c=a(e+c)-e,O(x.map(e=>e+c))}else{let a=(i-r)*t,o=[...y];o[e]=x[e];let s=c(o,a,e,`dist`);O(s.values,s.value,n)}});return[m,f,_,h.useMemo(()=>{let e=[...n].sort((e,t)=>e-t),t=[...y].sort((e,t)=>e-t),r={};t.forEach(e=>{r[e]=(r[e]||0)+1}),e.forEach(e=>{r[e]=(r[e]||0)-1});let i=+!!l;return Object.values(r).reduce((e,t)=>e+Math.abs(t),0)<=i?y:n},[n,y,l]),(r,i,a)=>{r.stopPropagation();let o=a||n;if(d(i))return;let c=o[i];g(i),p(c),S(o),b(o),v(!1);let{pageX:f,pageY:m}=wC(r),h=!1;E&&E({rawValues:o,draggingIndex:i,draggingValue:c});let _=n=>{n.preventDefault();let{pageX:r,pageY:a}=wC(n),o=r-f,s=a-m,{width:c,height:d}=e.current.getBoundingClientRect(),p,g;switch(t){case`btt`:p=-s/d,g=o;break;case`ttb`:p=s/d,g=o;break;case`rtl`:p=-o/c,g=s;break;default:p=o/c,g=s}h=l?Math.abs(g)>Jue&&u<y.length:!1,v(h),k(i,p,h)},x=e=>{e.preventDefault(),document.removeEventListener(`mouseup`,x),document.removeEventListener(`mousemove`,_),T.current&&(C.current&&T.current.removeEventListener(`touchmove`,C.current),w.current&&T.current.removeEventListener(`touchend`,w.current)),C.current=null,w.current=null,T.current=null,s(h),g(-1),v(!1)};document.addEventListener(`mouseup`,x),document.addEventListener(`mousemove`,_),r.currentTarget.addEventListener(`touchend`,x),r.currentTarget.addEventListener(`touchmove`,_),C.current=_,w.current=x,T.current=r.currentTarget}]}var TC=(e,t,n,r,i,a)=>{let o=typeof i==`number`?i:0,s=n,c=r;for(let n=t-1;n>=0;--n)if(a(n)){s=e[n]+o;break}for(let n=t+1;n<e.length;n+=1)if(a(n)){c=e[n]-o;break}return[s,c]},Xue=(e,t,n,r,i,a)=>{let o=-1,s=r-n;return e.forEach((c,l)=>{if(a(l))return;let[u,d]=TC(e,l,n,r,i,a);if(u<=t&&t<=d){let e=Math.abs(t-c);e<=s&&(s=e,o=l)}}),o};function Zue(e,t,n,r,i,a,o){let s=h.useCallback(n=>Math.max(e,Math.min(t,n)),[e,t]),c=h.useCallback(r=>{if(n!==null){let i=e+Math.round((s(r)-e)/n)*n,a=e=>(String(e).split(`.`)[1]||``).length,o=Math.max(a(n),a(t),a(e)),c=Number(i.toFixed(o));return e<=c&&c<=t?c:null}return null},[n,e,t,s]),l=h.useCallback(i=>{let a=s(i),o=r.map(e=>e.value);n!==null&&o.push(c(i)),o.push(e,t);let l=o[0],u=t-e;return o.forEach(e=>{let t=Math.abs(a-e);t<=u&&(l=e,u=t)}),l},[e,t,r,n,s,c]),u=(i,a,o,s=`unit`)=>{if(typeof a==`number`){let l,d=i[o],f=d+a,p=[];r.forEach(e=>{p.push(e.value)}),p.push(e,t),p.push(c(d));let m=a>0?1:-1;s===`unit`?p.push(c(d+m*n)):p.push(c(f)),p=p.filter(e=>e!==null).filter(e=>a<0?e<=d:e>=d),s===`unit`&&(p=p.filter(e=>e!==d));let h=s===`unit`?d:f;l=p[0];let g=Math.abs(l-h);if(p.forEach(e=>{let t=Math.abs(e-h);t<g&&(l=e,g=t)}),l===void 0)return a<0?e:t;if(s===`dist`)return l;if(Math.abs(a)>1){let e=[...i];return e[o]=l,u(e,a-m,o,s)}return l}else if(a===`min`)return e;else if(a===`max`)return t;return t},d=(e,t,n,r=`unit`)=>{let i=e[n],a=u(e,t,n,r);return{value:a,changed:a!==i}},f=e=>a===null&&e===0||typeof a==`number`&&e<a;return[l,(n,r,s,c=`unit`)=>{let p=n.map(l),m=p[s],[h,g]=TC(p,s,e,t,a,o);if(p[s]=u(p,r,s,c),h<=g?p[s]=Math.max(h,Math.min(g,p[s])):p[s]=m,i===!1){let e=a||0;s>0&&p[s-1]!==m&&(p[s]=Math.max(p[s],p[s-1]+e)),s<p.length-1&&p[s+1]!==m&&(p[s]=Math.min(p[s],p[s+1]-e))}else if(typeof a==`number`||a===null){for(let n=s+1;n<p.length&&!o(n);n+=1){let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n],changed:r}=d(p,1,n));let[,i]=TC(p,n,e,t,a,o);p[n]=Math.min(p[n],i)}for(let n=s;n>0&&!o(n-1);--n){let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n-1],changed:r}=d(p,-1,n-1));let[i]=TC(p,n-1,e,t,a,o);p[n-1]=Math.max(p[n-1],i)}for(let n=p.length-1;n>0;--n){if(o(n)||o(n-1))continue;let r=!0;for(;f(p[n]-p[n-1])&&r;)({value:p[n-1],changed:r}=d(p,-1,n-1));let[i]=TC(p,n-1,e,t,a,o);p[n-1]=Math.max(p[n-1],i)}for(let n=0;n<p.length-1;n+=1){if(o(n)||o(n+1))continue;let r=!0;for(;f(p[n+1]-p[n])&&r;)({value:p[n+1],changed:r}=d(p,1,n+1));let[,i]=TC(p,n+1,e,t,a,o);p[n+1]=Math.min(p[n+1],i)}}return{value:p[s],values:p}}]}function Que(e){return(0,h.useMemo)(()=>{if(e===!0||!e)return[!!e,!1,!1,0];let{editable:t,draggableTrack:n,minCount:r,maxCount:i}=e;return[!0,!!t,!t&&!!n,r||0,i]},[e])}var $ue=h.forwardRef((e,t)=>{let{prefixCls:n=`rc-slider`,className:r,style:i,classNames:a,styles:o,id:s,disabled:c=!1,keyboard:l=!0,autoFocus:u,onFocus:d,onBlur:f,min:p=0,max:g=100,step:_=1,value:v,defaultValue:y,range:b,count:x,onChange:S,onBeforeChange:C,onAfterChange:w,onChangeComplete:T,allowCross:E=!0,pushable:D=!1,reverse:O,vertical:k,included:A=!0,startPoint:j,trackStyle:M,handleStyle:N,railStyle:P,dotStyle:F,activeDotStyle:I,marks:L,dots:R,handleRender:z,activeHandleRender:B,track:V,tabIndex:H=0,ariaLabelForHandle:U,ariaLabelledByForHandle:W,ariaRequired:G,ariaValueTextFormatterForHandle:ee}=e,K=h.useRef(null),te=h.useRef(null),[ne,re]=ye(y,v),ie=h.useMemo(()=>k?O?`ttb`:`btt`:O?`rtl`:`ltr`,[O,k]),[ae,oe,se,ce,le]=Que(b),ue=h.useMemo(()=>isFinite(p)?p:0,[p]),de=h.useMemo(()=>isFinite(g)?g:100,[g]),fe=h.useMemo(()=>_!==null&&_<=0?1:_,[_]),me=h.useMemo(()=>typeof D==`boolean`?D?fe:!1:D>=0?D:!1,[D,fe]),he=h.useMemo(()=>{let e=L||{};return Object.keys(e).map(t=>{let n=e[t],r={value:Number(t)};return n&&typeof n==`object`&&!h.isValidElement(n)&&(`label`in n||`style`in n)?(r.style=n.style,r.label=n.label):r.label=n,r}).filter(({label:e})=>e||typeof e==`number`).sort((e,t)=>e.value-t.value)},[L]),[ge,_e]=que(c),[ve,be]=Zue(ue,de,fe,he,E,me,ge),xe=h.useMemo(()=>{let e=ne==null?[]:Array.isArray(ne)?ne:[ne],[t=ue]=e,n=ne===null?[]:[t];if(ae){if(n=[...e],x||ne===void 0){let e=x!==void 0&&x>=0?x+1:2;for(n=n.slice(0,e);n.length<e;)n.push(n[n.length-1]??ue)}n.sort((e,t)=>e-t)}return n.forEach((e,t)=>{n[t]=ve(e)}),n},[ne,ae,ue,x,ve]),[Se,Ce]=h.useMemo(()=>_e(xe),[_e,xe]),we=oe&&!Ce,Te=e=>ae?e:e[0],Ee=pe(e=>{let t=[...e].sort((e,t)=>e-t);S&&!zt(t,xe,!0)&&S(Te(t)),re(t)}),De=pe(e=>{e&&K.current.hideHelp();let t=Te(xe);w?.(t),Lt(!w,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),T?.(t)}),Oe=e=>{if(Se||!we||xe.length<=ce)return;let t=[...xe];t.splice(e,1),C?.(Te(t)),Ee(t);let n=Math.max(0,e-1);K.current.hideHelp(),K.current.focus(n)},[ke,Ae,je,Me,Ne]=Yue(te,ie,xe,ue,de,ve,Ee,De,be,we,ce,ge),Pe=(e,t)=>{if(!Se){let n=xe.length?Xue(xe,e,ue,de,me,ge):0;if(n===-1)return;let r=[...xe],i=0,a=xe.length?Math.abs(e-xe[n]):de-ue;xe.forEach((t,n)=>{t<e&&(i=n)});let o=n;we&&a!==0&&(!le||xe.length<le)?(r.splice(i+1,0,e),o=i+1):(r[n]=e,o=n),ae&&!xe.length&&x===void 0&&r.push(e);let s=Te(r);C?.(s),Ee(r),t?(document.activeElement?.blur?.(),K.current.focus(o),Ne(t,o,r)):(w?.(s),Lt(!w,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),T?.(s))}},Fe=e=>{e.preventDefault();let{width:t,height:n,left:r,top:i,bottom:a,right:o}=te.current.getBoundingClientRect(),{clientX:s,clientY:c}=e,l;switch(ie){case`btt`:l=(a-c)/n;break;case`ttb`:l=(c-i)/n;break;case`rtl`:l=(o-s)/t;break;default:l=(s-r)/t}Pe(ve(ue+l*(de-ue)),e)},[Ie,Le]=h.useState(null),Re=(e,t)=>{if(!Se&&!ge(t)){let n=be(xe,e,t);C?.(Te(xe)),Ee(n.values),Le({value:n.value,index:t})}};h.useEffect(()=>{if(Ie!==null){let{value:e,index:t}=Ie,n=xe[t]===e?t:xe.indexOf(e);n>=0&&K.current.focus(n)}Le(null)},[Ie]);let ze=h.useMemo(()=>se&&fe===null?!1:se,[se,fe]),Be=pe((e,t)=>{Ne(e,t),C?.(Te(xe))}),Ve=ke!==-1;h.useEffect(()=>{if(!Ve){let e=xe.lastIndexOf(Ae);K.current.focus(e)}},[Ve]);let He=h.useMemo(()=>[...Me].sort((e,t)=>e-t),[Me]),[Ue,We]=h.useMemo(()=>ae?[He[0],He[He.length-1]]:[ue,He[0]],[He,ae,ue]);h.useImperativeHandle(t,()=>({focus:()=>{K.current.focus(0)},blur:()=>{let{activeElement:e}=document;te.current?.contains(e)&&e?.blur()}}));let Ge=h.useRef(u);h.useEffect(()=>{Ge.current&&K.current.focus(0)},[]);let Ke=h.useMemo(()=>({min:ue,max:de,direction:ie,disabled:Se,keyboard:l,step:fe,included:A,includedStart:Ue,includedEnd:We,range:ae,tabIndex:H,ariaLabelForHandle:U,ariaLabelledByForHandle:W,ariaRequired:G,ariaValueTextFormatterForHandle:ee,styles:o||{},classNames:a||{},isHandleDisabled:ge}),[ue,de,ie,Se,l,fe,A,Ue,We,ae,H,U,W,G,ee,o,a,ge]);return h.createElement(yC.Provider,{value:Ke},h.createElement(`div`,{ref:te,className:m(n,r,{[`${n}-disabled`]:Se,[`${n}-vertical`]:k,[`${n}-horizontal`]:!k,[`${n}-with-marks`]:he.length}),style:i,onMouseDown:Fe,id:s},h.createElement(`div`,{className:m(`${n}-rail`,a?.rail),style:{...P,...o?.rail}}),V!==!1&&h.createElement(Kue,{prefixCls:n,style:M,values:xe,startPoint:j,onStartMove:ze?Be:void 0}),h.createElement(Gue,{prefixCls:n,marks:he,dots:R,style:F,activeStyle:I}),h.createElement(Vue,{ref:K,prefixCls:n,style:N,values:Me,draggingIndex:ke,draggingDelete:je,onStartMove:Be,onOffsetChange:Re,onFocus:d,onBlur:f,handleRender:z,activeHandleRender:B,onChangeComplete:De,onDelete:we?Oe:void 0}),h.createElement(Uue,{prefixCls:n,marks:he,onClick:Pe})))}),ede=(0,h.createContext)({}),EC=h.forwardRef((e,t)=>{let{open:n,draggingDelete:r,value:i}=e,a=(0,h.useRef)(null),o=n&&!r,s=(0,h.useRef)(null);function c(){en.cancel(s.current),s.current=null}function l(){s.current=en(()=>{a.current?.forceAlign(),s.current=null})}return h.useEffect(()=>(o?l():c(),c),[o,e.title,i]),h.createElement(Dy,{ref:Ie(a,t),...e,open:o})}),tde=e=>{let{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:a,marginPart:o,colorFillContentHover:s,handleColorDisabled:c,calc:l,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:h,motionDurationMid:g}=e,_={backgroundColor:e.colorBgElevated,cursor:`not-allowed`,width:u,height:u,boxShadow:`0 0 0 ${q(m)} ${c}`,insetInlineStart:0,insetBlockStart:0};return{[t]:{...eo(e),position:`relative`,height:r,margin:`${q(o)} ${q(a)}`,padding:0,cursor:`pointer`,touchAction:`none`,userSelect:`none`,"&-vertical":{margin:`${q(a)} ${q(o)}`},[`${t}-rail`]:{position:`absolute`,backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:`absolute`,transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:`content-box`,backgroundClip:`content-box`,border:`solid rgba(0,0,0,0)`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${q(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:`absolute`,width:u,height:u,outline:`none`,userSelect:`none`,"&-dragging-delete":{opacity:0},"&::before":{content:`""`,position:`absolute`,insetInlineStart:l(m).mul(-1).equal(),insetBlockStart:l(m).mul(-1).equal(),width:l(u).add(l(m).mul(2)).equal(),height:l(u).add(l(m).mul(2)).equal(),backgroundColor:`transparent`},"&::after":{content:`""`,position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${q(m)} ${e.handleColor}`,outline:`0px solid transparent`,borderRadius:`50%`,cursor:`pointer`,transition:[`inset-inline-start`,`inset-block-start`,`width`,`height`,`box-shadow`,`outline`].map(e=>`${e} ${g}`).join(`, `)},"&:hover, &:active, &:focus":{[`&:not(${t}-handle-disabled)::before`]:{insetInlineStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),insetBlockStart:l(d).sub(u).div(2).add(h).mul(-1).equal(),width:l(d).add(l(h).mul(2)).equal(),height:l(d).add(l(h).mul(2)).equal()},[`&:not(${t}-handle-disabled)::after`]:{boxShadow:`0 0 0 ${q(h)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:`none`}},[`${t}-mark`]:{position:`absolute`,fontSize:e.fontSize},[`${t}-mark-text`]:{position:`absolute`,display:`inline-block`,color:e.colorTextDescription,textAlign:`center`,wordBreak:`keep-all`,cursor:`pointer`,userSelect:`none`,"&-active":{color:e.colorText}},[`${t}-step`]:{position:`absolute`,background:`transparent`,pointerEvents:`none`},[`${t}-dot`]:{position:`absolute`,width:i,height:i,backgroundColor:e.colorBgElevated,border:`${q(m)} solid ${e.dotBorderColor}`,borderRadius:`50%`,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,pointerEvents:`auto`,"&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
||
${t}-dot
|
||
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:`none`,cursor:`not-allowed`},[`${t}-handle::after`]:{..._},[`
|
||
${t}-mark-text,
|
||
${t}-dot
|
||
`]:{cursor:`not-allowed !important`}},[`${t}-handle-disabled::after`]:{..._},[`&-tooltip ${n}-tooltip-container`]:{minWidth:`unset`}}}},DC=(e,t)=>{let{componentCls:n,railSize:r,handleSize:i,dotSize:a,marginFull:o,calc:s}=e,c=t?`paddingBlock`:`paddingInline`,l=t?`width`:`height`,u=t?`height`:`width`,d=t?`insetBlockStart`:`insetInlineStart`,f=t?`top`:`insetInlineStart`,p=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),h=t?{borderWidth:`${q(m)} 0`,transform:`translateY(${q(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${q(m)}`,transform:`translateX(${q(e.calc(m).mul(-1).equal())})`};return{[c]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[l]:`100%`,[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:{...h},[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:o).equal(),[l]:`100%`},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[l]:`100%`,[u]:r},[`${n}-dot`]:{position:`absolute`,[d]:s(r).sub(a).div(2).equal()}}},nde=e=>{let{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:{...DC(e,!0),[`&${t}-with-marks`]:{marginBottom:n}}}},rde=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:{...DC(e,!1),height:`100%`}}},ide=hc(`Slider`,e=>{let t=Bo(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[tde(t),nde(t),rde(t)]},e=>{let t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,o=new cs(a).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:o,handleColorDisabled:new cs(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function OC(){let[e,t]=h.useState(!1),n=h.useRef(null),r=()=>{en.cancel(n.current)};return h.useEffect(()=>r,[]),[e,e=>{r(),e?t(e):n.current=en(()=>{t(e)})}]}function ade(e){return e||e===null?e:e=>hr(e)?e.toString():``}var ode=h.forwardRef((e,t)=>{let{prefixCls:n,range:r,className:i,rootClassName:a,style:o,disabled:s,tooltip:c={},onChangeComplete:l,classNames:u,styles:d,vertical:f,orientation:p,...g}=e,[,_]=sd(p,f),{getPrefixCls:v,direction:y,className:b,style:x,classNames:S,styles:C,getPopupContainer:w}=zr(`slider`),T=h.useContext(gu),E=s??T,D={...e,disabled:E,vertical:_},O=Dr(x),k=Dr(o),[A,j]=kr([S,u],[C,O,d,k],{props:D}),{handleRender:M,direction:N}=h.useContext(ede),P=(N||y)===`rtl`,[F,I]=OC(),[L,R]=OC(),z={...c},{open:B,placement:V,getPopupContainer:H,prefixCls:U,formatter:W}=z,G=B,ee=(F||L)&&G!==!1,K=ade(W),[te,ne]=OC(),re=e=>{l?.(e),ne(!1)},ie=(e,t)=>e||(t?P?`left`:`right`:`top`),ae=v(`slider`,n),[oe,se]=ide(ae),ce=m(i,b,A.root,a,{[`${ae}-rtl`]:P,[`${ae}-lock`]:te},oe,se);P&&!_&&(g.reverse=!g.reverse),h.useEffect(()=>{let e=()=>{en(()=>{R(!1)},1)};return document.addEventListener(`mouseup`,e),()=>{document.removeEventListener(`mouseup`,e)}},[]);let le=r&&!G,ue=M||((e,t)=>{let{index:n}=t,r=e.props;function i(e,t,n){n&&g[e]?.(t),r[e]?.(t)}let a={...r,onMouseEnter:e=>{I(!0),i(`onMouseEnter`,e)},onMouseLeave:e=>{I(!1),i(`onMouseLeave`,e)},onMouseDown:e=>{R(!0),ne(!0),i(`onMouseDown`,e)},onFocus:e=>{R(!0),g.onFocus?.(e),i(`onFocus`,e,!0)},onBlur:e=>{R(!1),g.onBlur?.(e),i(`onBlur`,e,!0)}},o=h.cloneElement(e,a),s=(!!G||ee)&&K!==null;return le?o:h.createElement(EC,{...z,prefixCls:v(`tooltip`,U),title:K?K(t.value):void 0,value:t.value,open:s,placement:ie(V,_),key:n,classNames:{root:`${ae}-tooltip`},getPopupContainer:H||w},o)}),de=le?(e,t)=>{let n=h.cloneElement(e,{style:{...e.props.style,visibility:`hidden`}});return h.createElement(EC,{...z,prefixCls:v(`tooltip`,U),title:K?K(t.value):void 0,open:K!==null&&ee,placement:ie(V,_),key:`tooltip`,classNames:{root:`${ae}-tooltip`},getPopupContainer:H||w,draggingDelete:t.draggingDelete},n)}:void 0,fe={...j.root};return h.createElement($ue,{...g,classNames:A,styles:j,step:g.step,range:r,className:ce,style:fe,disabled:E,vertical:_,ref:t,prefixCls:ae,handleRender:ue,activeHandleRender:de,onChangeComplete:re})});function sde(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 cde(e,t,n){var r=(n||{}).atBegin;return sde(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var kC=100,AC=kC/5,jC=kC/2-AC/2,MC=jC*2*Math.PI,NC=50,PC=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return h.createElement(`circle`,{className:m(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:jC,cx:NC,cy:NC,strokeWidth:AC,style:n})},lde=({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:`${MC/4}`,strokeDasharray:`${MC*s/100} ${MC*(100-s)/100}`};return h.createElement(`span`,{className:m(r,`${n}-progress`,{[i]:s<=0})},h.createElement(`svg`,{viewBox:`0 0 ${kC} ${kC}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},h.createElement(PC,{dotClassName:n,hasCircleCls:!0}),h.createElement(PC,{dotClassName:n,style:c})))};function ude(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(lde,{prefixCls:t,percent:n}))}function dde(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&h.isValidElement(n)?du(n,e=>({className:m(e.className,o,i),style:{...e.style,...a},percent:r})):h.createElement(ude,{prefixCls:t,percent:r,className:i,style:a})}var fde=new Za(`antSpinMove`,{to:{opacity:1}}),pde=new Za(`antRotate`,{to:{transform:`rotate(405deg)`}}),mde=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...eo(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}}}}}},hde=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=vc(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:pde,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:fde,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}}}}},gde=e=>{let{componentCls:t}=e,[n]=vc(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},_de=hc(`Spin`,e=>{let t=Bo(e,{spinDotDefault:e.colorTextDescription});return[mde(t),hde(t),gde(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),vde=200,FC=[[30,.05],[70,.03],[96,.01]];function yde(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<FC.length;n+=1){let[r,i]=FC[n];if(e<=r)return e+t*i}return e})},vde)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var IC;function bde(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var LC=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}=zr(`spin`),D=b(`spin`,t),[O,k]=_de(D),[A,j]=h.useState(()=>n&&!bde(n,r)),M=yde(A,g);h.useEffect(()=>{if(n){let e=cde(r,()=>{j(!0)});return e(),()=>{e?.cancel?.()}}j(!1)},[r,n]);let N=qu(e=>o??e),P=c??s,F={...e,size:N,spinning:A,tip:P,description:P,fullscreen:f,children:d,percent:M},[I,L]=kr([T,_],[E,v],{props:F}),R=p??S??IC,z=d!==void 0,B=z||f,V=h.createElement(h.Fragment,null,h.createElement(dde,{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))};LC.setDefaultIndicator=e=>{IC=e};function RC(){return RC=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},RC.apply(this,arguments)}var zC=h.forwardRef(({prefixCls:e=`rc-switch`,className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:a,checkedChildren:o,unCheckedChildren:s,onClick:c,onChange:l,onKeyDown:u,styles:d,classNames:f,...p},g)=>{let[_,v]=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`,RC({},p,{type:`button`,role:`switch`,"aria-checked":_,disabled:i,className:S,ref:g,onKeyDown:b,onClick:x}),a,h.createElement(`span`,{className:`${e}-inner`},h.createElement(`span`,{className:m(`${e}-inner-checked`,f?.content),style:d?.content},o),h.createElement(`span`,{className:m(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});zC.displayName=`Switch`;var xde=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()}}}}}}},Sde=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}}}},Cde=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`,...uf(),"&::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:`""`,...uf()}},[`&${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}}}}},wde=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(`, `),...uf(),[`${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(`, `),...uf()},[`${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()}}}}}},Tde=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...eo(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`,...uf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...ao(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`}}}},Ede=hc(`Switch`,e=>{let t=Bo(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[Tde(t),wde(t),Cde(t),Sde(t),xde(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new cs(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),BC=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}=zr(`switch`),D=h.useContext(gu),O=(i??D)||a,k=x(`switch`,n),[A,j]=Ede(k),M=qu(r),N={...e,size:M,disabled:O},P=Dr(w),F=Dr(c),[I,L]=kr([T,_],[E,P,g,F],{props:N}),R=h.createElement(`div`,{className:m(`${k}-handle`,I.indicator),style:L.indicator},a&&h.createElement(Pd,{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(Ku,{component:`Switch`,disabled:O},h.createElement(zC,{...v,classNames:I,styles:L,checked:y,onChange:B,prefixCls:k,className:z,style:L.root,disabled:O,ref:t,loadingIcon:R}))});BC.__ANT_SWITCH=!0;var VC={},HC=`rc-table-internal-hook`;function UC(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,yn.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),h.createElement(t.Provider,{value:i},n)},defaultValue:e}}function WC(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);zt(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}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)}function KC(){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,GC({},a,s)))):h.createElement(n,GC({},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,GC({},n,a))};return h.memo(r?h.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:Dde,responseImmutable:Ode,useImmutableMark:kde}=KC(),{makeImmutable:qC,responseImmutable:JC,useImmutableMark:Ade}=KC(),YC=UC(),XC=h.createContext({renderWithProps:!1}),jde=`RC_TABLE_KEY`;function Mde(e){return e==null?[]:Array.isArray(e)?e:[e]}function ZC(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||Mde(i).join(`-`)||jde;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function QC(e){return e!=null}function Nde(e){return typeof e==`number`&&!Number.isNaN(e)}function Pde(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!h.isValidElement(e)}function Fde(e,t,n,r,i,a){let o=h.useContext(XC);return Te(()=>{if(QC(r))return[r];let a=rn(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);Pde(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[Ade(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!zt(e,t,!0)})}function Ide(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function Lde(e,t){return WC(YC,n=>[Ide(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}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 Rde=({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},ew=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}=WC(YC,[`allColumnsFixedLeft`,`rowHoverable`]),[P,F]=Fde(l,d,f,n,u,p),I={},L=typeof b==`number`&&!M,R=typeof x==`number`&&!M,[z,B]=WC(YC,({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]=Lde(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??Rde({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,$C({},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 tw(e){return e.fixed===`start`}function nw(e){return e.fixed===`end`}function rw(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;tw(i)&&tw(a)?o=r.start[e]:nw(a)&&nw(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!tw(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!nw(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;t<e;t+=1)tw(n[t])||(f+=r.widths[t]||0);if(l)for(let e=n.length-1;e>t;--e)nw(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 iw=h.createContext({});function aw(){return aw=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},aw.apply(this,arguments)}var zde=e=>{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=WC(YC,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=h.useContext(iw),d=n+i-1+1===c?i+1:i,f=h.useMemo(()=>rw(n,n+d-1,u,l),[n,d,u,l]);return h.createElement(ew,aw({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},Bde=e=>{let{children:t,...n}=e;return h.createElement(`tr`,n,t)},ow=e=>{let{children:t}=e;return t};ow.Row=Bde,ow.Cell=zde;var sw=JC(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=WC(YC,`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(iw.Provider,{value:s},h.createElement(`tfoot`,{className:`${i}-summary`},t))}),cw=ow;function Vde(e){return null}function Hde(e){return null}function lw(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)lw(e,t[r][o],n+1,r,i,a,o)}function uw(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];lw(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 dw(e,t,n,r){let i=WC(YC,[`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=ZC(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 fw=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}=WC(YC,[`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(ew,{component:i,prefixCls:t,colSpan:s},g))};function Ude({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 Wde(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 pw(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mw.apply(this,arguments)}function hw(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 Gde=JC(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,_=dw(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=pw(b,a,o,u),D=h.createElement(d,mw({},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}=hw(_,e,t,u,o,l,g?.offset);return h.createElement(ew,mw({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(fw,{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)}),Kde=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=h.useRef(null);return ge(()=>{i.current&&n(t,i.current.offsetWidth)},[]),h.createElement(Ol,{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`)))},qde=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=h.useRef(null),{measureRowRender:a}=WC(YC,[`measureRowRender`]),o=h.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},h.createElement(Ol.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(Kde,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},Jde=JC(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}=WC(YC,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:_={}}=d||{},{body:v={}}=f||{},y=uw(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(Gde,{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(fw,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:w,cellComponent:T,colSpan:o.length,isEmpty:!0},u);let O=ZC(o);return h.createElement(XC.Provider,{value:x.current},h.createElement(C,{style:v.wrapper,className:m(`${r}-tbody`,_.wrapper)},n&&h.createElement(qde,{prefixCls:r,columnsKey:O,onColumnResize:a,columns:o}),D))}),gw=`RC_TABLE_INTERNAL_COL_DEFINE`;function Yde(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function _w(){return _w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_w.apply(this,arguments)}var vw=e=>{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=WC(YC,[`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[gw],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(h.createElement(`col`,_w({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?h.createElement(`colgroup`,null,a):null};function Xde(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 Zde=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}=WC(YC,[`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=Xde(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(vw,{colWidths:[...L,k],columCount:l+1,columns:F}),S({...C,stickyOffsets:I,columns:P,flattenColumns:F})))}),yw=h.memo(Zde);function bw(){return bw=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},bw.apply(this,arguments)}var Qde=e=>{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=WC(YC,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=ZC(t.map(e=>e.column));return h.createElement(i,bw({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=rw(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return h.createElement(ew,bw({},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 $de(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 xw=JC(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=WC(YC,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=h.useMemo(()=>$de(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(Qde,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:g,onHeaderRow:i,index:n})))});function Sw(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function efe(e,t,n){return h.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=Sw(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=Sw(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 Cw(e){return tn(e).filter(e=>h.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=Cw(r)),a})}function ww(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:ww(t)}:e})}function Tw(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,...Tw(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function tfe({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(()=>ww((t||Cw(n)||[]).slice()),[t,n]),x=h.useMemo(()=>{if(r){let t=b.slice();if(!t.includes(VC)){let e=u||0,n=e===0&&(g===`right`||g===`end`)?b.length:e;n>=0&&t.splice(n,0,VC)}let n=t.indexOf(VC);t=t.filter((e,t)=>e!==VC||t===n);let r=b[n],f;f=g||(r?r.fixed:null);let _={[gw]:{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===VC?_:e;return t<d?{...n,fixed:n.fixed||`start`}:n})}return b.filter(e=>e!==VC)},[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]=efe(h.useMemo(()=>Tw(S),[S,f,_]),_,v);return[S,C,w]}function nfe(e,t,n){let r=Yde(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||Ude,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?Wde(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 rfe(e,t){let n=h.useMemo(()=>e.map((n,r)=>rw(r,r,e,t)),[e,t]);return Te(()=>n,[n],(e,t)=>!zt(e,t))}function ife(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 afe(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 ofe(){let[e,t]=h.useState(-1),[n,r]=h.useState(-1);return[e,n,h.useCallback((e,n)=>{t(e),r(n)},[])]}var Ew=me()?window:null;function sfe(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>Ew}=typeof e==`object`?e:{},o=a()||Ew,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 cfe(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 Dw=e=>{let{children:t,className:n,style:r}=e;return h.createElement(`div`,{className:n,style:r},t)};function Ow(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 kw=`mouseup`,Aw=`mousemove`,jw=`scroll`,Mw=`resize`,lfe=h.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=WC(YC,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=h.useRef(null),[f,p]=ife({scrollLeft:0,isHiddenScrollBar:!0}),g=h.useRef({delta:0,x:0}),[_,v]=h.useState(!1),y=h.useRef(null);h.useEffect(()=>()=>{en.cancel(y.current)},[]);let b=()=>{v(!1)},x=e=>{e.persist(),g.current.delta=e.pageX-f.scrollLeft,g.current.x=0,v(!0),e.preventDefault()},S=e=>{let{buttons:t}=e||window?.event;if(!_||t===0){_&&v(!1);return}let n=g.current.x+e.pageX-g.current.x-g.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u)<l)&&(r({scrollLeft:n/l*(c+2)}),g.current.x=e.pageX)},C=()=>{en.cancel(y.current),y.current=en(()=>{if(!n.current)return;let e=Ow(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:Ow(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(kw,b,!1),document.body.addEventListener(Aw,S,!1),C(),()=>{document.body.removeEventListener(kw,b),document.body.removeEventListener(Aw,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(jw,C,!1)}),window.addEventListener(Mw,C,!1),window.addEventListener(jw,C,!1),a.addEventListener(jw,C,!1),()=>{e.forEach(e=>{e.removeEventListener(jw,C)}),window.removeEventListener(Mw,C),window.removeEventListener(jw,C),a.removeEventListener(jw,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 Nw(){return Nw=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},Nw.apply(this,arguments)}var Pw=`rc-table`,ufe=[],dfe={};function ffe(){return`No Data`}var pfe=h.forwardRef((e,t)=>{let n={rowKey:`key`,prefixCls:Pw,emptyText:ffe,...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||ufe,I=!!F.length,L=O===HC,R=h.useCallback((e,t)=>rn(S,e)||t,[S]),z=h.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),B=R([`body`]),[V,H,U]=ofe(),[W,G,ee,K,te,ne]=nfe(n,F,z),re=d?.x,[ie,ae]=h.useState(0),[oe,se,ce]=tfe({...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(Nde(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=ZC(se).map(e=>Se.get(e)),Te=h.useMemo(()=>we,[we.join(`_`)]),Ee=cfe(Te,se),De=d&&QC(d.y),Oe=d&&QC(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}=sfe(N,r),Le=h.useMemo(()=>v?.(F),[v,F]),Re=(De||je)&&h.isValidElement(Le)&&Le.type===ow&&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]=afe(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||dfe;(!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 zt(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(xw,e),Re===`top`&&h.createElement(sw,e,Le)),[Re,Le]),nt=h.useCallback(e=>h.createElement(sw,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(Jde,{data:F,measureColumnWidth:De||Oe||je}),ut=h.createElement(vw,{colWidths:se.map(({width:e})=>e),columns:se}),dt=y==null?void 0:h.createElement(`caption`,{className:`${r}-caption`},y),ft=qt(n,{data:!0}),pt=qt(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,Nw({style:{...Ve,tableLayout:at}},pt),dt,ut,lt,!Re&&Le&&h.createElement(sw,{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(yw,Nw({},t,{stickyTopOffset:Me,className:`${r}-header`,ref:fe,colGroup:ut}),tt),e,Re&&Re!==`top`&&h.createElement(yw,Nw({},t,{stickyBottomOffset:Ne,className:`${r}-summary`,ref:_e,colGroup:ut}),nt),je&&me.current&&me.current instanceof Element&&h.createElement(lfe,{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,Nw({style:{...Ve,tableLayout:at}},pt),dt,ut,x!==!1&&h.createElement(xw,Nw({},st,ue)),lt,Le&&h.createElement(sw,{stickyOffsets:Ee,flattenColumns:se},Le)));let mt={...o};je&&(mt[`--columns-count`]=se.length);let ht=h.createElement(`div`,Nw({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(Dw,{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(Dw,{className:m(`${r}-footer`,s?.footer),style:c?.footer},_(F)));Oe&&(ht=h.createElement(Ol,{onResize:({offsetWidth:e})=>Ze(e)},ht));let gt=rfe(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(YC.Provider,{value:_t},ht)}),Fw=e=>qC(pfe,e),Iw=Fw();Iw.EXPAND_COLUMN=VC,Iw.INTERNAL_HOOKS=HC,Iw.Column=Vde,Iw.ColumnGroup=Hde,Iw.Summary=cw;var Lw=UC(null),Rw=UC(null);function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zw.apply(this,arguments)}function mfe(e,t,n){return n[e+(t||1)]-(n[e]||0)}var hfe=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}=WC(Rw,[`columnsOffset`]),{key:b,fixedInfo:x,appendCellNode:S,additionalCellProps:C}=hw(t,n,r,i,a),{style:w,colSpan:T=1,rowSpan:E=1}=C,D=mfe(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(ew,zw({className:m(_,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:b,record:c,index:a,renderIndex:s,dataIndex:g,render:j,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:S,additionalProps:{...C,style:k,...M}}))};function Bw(){return Bw=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},Bw.apply(this,arguments)}var Vw=JC(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}=WC(YC,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`,`classNames`,`styles`]),{getComponent:S}=WC(Lw,[`getComponent`]),C=dw(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=pw(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(ew,{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,Bw({},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(hfe,{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})),gfe={start:`top`,end:`bottom`,nearest:`auto`},_fe=JC(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}=WC(YC,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:g,onScroll:_}=WC(Lw),v=h.useRef(null),y=uw(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=gfe[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(Vw,{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(Rw.Provider,{value:w},h.createElement(YS,{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(Vw,{data:e,rowKey:r,index:t,style:n.style})}))}));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 vfe=(e,t)=>{let{ref:n,onScroll:r}=t;return h.createElement(_fe,{ref:n,data:e,onScroll:r})},yfe=h.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=Pw,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)=>rn(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(Lw.Provider,{value:_},h.createElement(Iw,Hw({},e,{className:m(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?vfe:void 0},columns:r,internalHooks:HC,tailor:!0,ref:t})))}),Uw=e=>qC(yfe,e);Uw();var bfe=e=>null,xfe=e=>null,Ww=h.createContext(null),Sfe=h.createContext({}),Cfe=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})},wfe=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 Gw(e,t){return e[t]}function Kw(e,t){return`${e}-${t}`}function Tfe(e){return e&&e.type&&e.type.isTreeNode}function qw(e,t){return e??t}function Jw(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 Yw(e){function t(e){return tn(e).map(e=>{if(!Tfe(e))return Lt(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function Xw(e,t,n){let{_title:r,key:i,children:a}=Jw(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=Kw(n?n.pos:`0`,u),f=qw(l[i],d),p;for(let e=0;e<r.length;e+=1){let t=r[e];if(l[t]!==void 0){p=l[t];break}}let m=Object.assign(Ht(l,[...r,i,a]),{title:p,key:f,parent:n,pos:d,children:null,data:l,isStart:[...n?n.isStart:[],u===0],isEnd:[...n?n.isEnd:[],u===e.length-1]});return s.push(m),t===!0||o.has(f)?m.children=c(l[a]||[],m):m.children=[],m})}return c(e),s}function Efe(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}=Jw(o),l=i||c,u;a?typeof a==`string`?u=e=>e[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>qw(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?Kw(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 Zw(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),Efe(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=qw(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 Qw(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function $w(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=Gw(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 eT(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,"props",{get(){return Lt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function tT(){return tT=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},tT.apply(this,arguments)}var nT=`open`,rT=`close`,Dfe=`---`,iT=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(Ww),{classNames:E,styles:D}=T||{},O=h.useContext(Sfe),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,eT(e))},F=t=>{M||!N||e.disableCheckbox||T.onNodeCheck(t,eT(e),!f)},I=h.useMemo(()=>typeof x==`boolean`?x:T.selectable,[x,T.selectable]),L=t=>{T.onNodeClick(t,eT(e)),I?P(t):F(t)},R=t=>{T.onNodeDoubleClick(t,eT(e))},z=t=>{T.onNodeMouseEnter(t,eT(e))},B=t=>{T.onNodeMouseLeave(t,eT(e))},V=t=>{T.onNodeContextMenu(t,eT(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,eT(e))},re=h.useMemo(()=>{let{children:e}=Gw(T.keyEntities,t)||{};return!!(e||[]).length},[T.keyEntities,t]),ie=h.useMemo(()=>Qw(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(eT(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?nT:rT}`,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?nT:rT,[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=Dfe}=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=qt(C,{aria:!0,data:!0}),{level:me}=Gw(T.keyEntities,t)||{},he=l[l.length-1],ge=!M&&H,_e=T.draggingNodeKey===t;return h.createElement(`div`,tT({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?.(eT(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(wfe,{prefixCls:T.prefixCls,level:me,isStart:c,isEnd:l}),ae,se(),ce,fe)};iT.isTreeNode=1;function Ofe(e,t){let[n,r]=h.useState(!1);ge(()=>{if(n)return e(),()=>{t()}},[n]),ge(()=>(r(!0),()=>{r(!1)}),[])}function aT(){return aT=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},aT.apply(this,arguments)}var kfe=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(Ww),_=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 Ofe(v,b),a?h.createElement(or,aT({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=$w(r,u);return h.createElement(iT,aT({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):h.createElement(iT,aT({domRef:t,className:n,style:r},d,{active:l}))});function Afe(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 oT(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 sT(){return sT=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},sT.apply(this,arguments)}var cT=`RC_TREE_MOTION_${Math.random()}`,lT={key:cT},uT={key:cT,level:0,index:0,pos:`0`,node:lT,nodes:[lT]},dT={parent:null,children:[],pos:uT.pos,data:lT,title:null,key:cT,isStart:[],isEnd:[]};function fT(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function pT(e){let{key:t,pos:n}=e;return qw(t,n)}var jfe=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=Afe(L,o);if(e.key!==null)if(e.add){let t=z.findIndex(({key:t})=>t===e.key),n=fT(oT(z,r,e.key),x,y,b),i=z.slice();i.splice(t+1,0,dT),H(i),W(n),ee(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=fT(oT(r,z,e.key),x,y,b),i=r.slice();i.splice(t+1,0,dT),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(YS,sT({},N,{data:ne,itemKey:pT,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=>pT(e)!==cT)&&te()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=qw(i,t);delete n.key,delete n.children;let c=$w(s,re);return h.createElement(kfe,sT({},n,c,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:v,motionNodes:i===cT?U:null,motionType:G,onMotionStart:j,onMotionEnd:te,treeNodeRequiredProps:re,treeId:P,onMouseMove:()=>{A(null)}}))}))});function mT(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function hT(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function gT(e){return e.split(`-`)}function Mfe(e,t){let n=[],r=Gw(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function Nfe(e){if(e.parent){let t=gT(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Pfe(e){let t=gT(e.pos);return Number(t[t.length-1])===0}function _T(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=Gw(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=Gw(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e<m&&Nfe(g);e+=1)g=g.parent,x+=1;let S=t.data,C=g.node,w=!0;return Pfe(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 vT(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function yT(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Lt(!1,"`checkedKeys` is not an array or an object"),null;return t}function bT(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=Gw(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 xT(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Ffe(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Ife(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(xT(a,i))}}function Lfe(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(xT(o,a))}}function ST(e,t,n,r){let i=[],a;a=r||Ffe;let o=new Set(e.filter(e=>{let t=!!Gw(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),Lt(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?Ife(o,s,c,a):Lfe(o,t.halfCheckedKeys,s,c,a),l}function CT(){return CT=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},CT.apply(this,arguments)}var Rfe=10,zfe=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:Cfe,allowDrop:()=>!0,expandAction:!1};static TreeNode=iT;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:Jw()};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=Jw(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(Lt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=Yw(e.children)),a){r.treeData=a;let e=Zw(a,{fieldNames:o});r.keyEntities={[cT]:uT,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?bT(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[cT];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?bT(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=Xw(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=vT(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=vT(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=yT(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=yT(e.defaultCheckedKeys)||{}:a&&(o=yT(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=ST(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=mT(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:Mfe(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:eT(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}=_T(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=Gw(r,t.eventKey);a&&(a.children||[]).length&&(i=hT(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:eT(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:eT(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}=_T(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:eT(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:eT(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:eT(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={...$w(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:Gw(this.state.keyEntities,a).node};Lt(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=gT(o),d={event:e,node:eT(l),dragNode:this.dragNodeProps?eT(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=eT({...$w(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?mT(n,a):hT(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?hT(n,c):[c]:mT(n,c);let u=n.map(e=>{let t=Gw(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?hT(i,c):mT(i,c);l={checked:e,halfChecked:mT(a,c)},u.checkedNodes=e.map(e=>Gw(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=ST([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=ST(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=Gw(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(Gw(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=hT(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:mT(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:mT(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=Rfe){let{loadedKeys:e}=this.state;Lt(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:hT(e,t)}),n()}r(e)}),{loadingKeys:hT(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=Xw(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(Lt(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?hT(n,c):mT(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=Xw(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=mT(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=eT({...$w(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!Gw(a,t)?.children?.length,l=!Qw(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:g,focusable:_,tabIndex:v=0,selectable:y,showIcon:b,icon:x,switcherIcon:S,draggable:C,checkable:w,checkStrictly:T,disabled:E,motion:D,loadData:O,filterTreeNode:k,height:A,itemHeight:j,scrollWidth:M,virtual:N,titleRender:P,dropIndicatorRender:F,onContextMenu:I,onScroll:L,direction:R,rootClassName:z,rootStyle:B}=this.props,V=qt(this.props,{aria:!0,data:!0}),H;C&&(H=typeof C==`object`?C:typeof C==`function`?{nodeDraggable:C}:{});let U={styles:f,classNames:p,prefixCls:l,selectable:y,showIcon:b,icon:x,switcherIcon:S,draggable:H,draggingNodeKey:n,checkable:w,checkStrictly:T,disabled:E,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:R,dropIndicatorRender:F,loadData:O,filterTreeNode:k,titleRender:P,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return h.createElement(Ww.Provider,{value:U},h.createElement(`div`,{className:m(l,u,z,{[`${l}-show-line`]:g}),style:B},h.createElement(jfe,CT({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))))}},Bfe=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 wT(){return wT=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},wT.apply(this,arguments)}var TT=h.forwardRef((e,t)=>h.createElement(W,wT({},e,{ref:t,icon:Bfe.default}))),ET=h.createContext({});(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})();var DT=(0,h.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),OT=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=h.useContext(Ir),o=m({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return h.createElement(qh,{className:o,...i})},kT=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(DT),_=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(ET),y=i;i===void 0?y=c?n:``:i===!1&&(y=``);let b=d===!1?void 0:d,x=b&&b.title!==void 0?b.title:y,S={...b??null,title:x};!v&&!f&&(S.title=null,S.open=!1);let C=tn(n).length,w=h.createElement(Rh,{...Ht(e,[`title`,`icon`,`danger`]),className:m(c?g?.item:g?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?C+1:C)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},du(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=vr(b?.classNames)?e=>n(b.classNames(e)):n(b?.classNames);w=h.createElement(Dy,{...S,placement:e,classNames:r},w)}return w},AT=h.createContext(null),jT=h.forwardRef((e,t)=>{let{children:n,...r}=e,i=h.useContext(AT),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(AT.Provider,{value:a},h.createElement(Z_,{space:!0},o?h.cloneElement(n,{ref:s}):n))}),Vfe=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`}}}},Hfe=({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)})`}}}}),MT=e=>io(e),NT=(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`]:{...MT(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`]:{...MT(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(`,`)}}}}}},PT=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}}},Ufe=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`},...PT(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...PT(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`]:{...$a,paddingInline:m}}}]},FT=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`]:{...to()},[`&${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`}}}},IT=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)})`}}}}},Wfe=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]:{...ro(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...eo(e),...ro(),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,...$a},[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`}},...FT(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,...FT(e),...IT(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}},...IT(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`}}}]},Gfe=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new cs(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new cs(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},Kfe=(e,t=e,n=!0)=>hc(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=Bo(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=Bo(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[Wfe(x),Vfe(x),Ufe(x),NT(x,`light`),NT(S,`dark`),Hfe(x),zd(x),lf(x,`slide-up`),lf(x,`slide-down`),yf(x,`zoom-big`)]},Gfe,{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),LT=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=h.useContext(DT),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=mh(),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,du(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]=_d(`Menu`);return h.createElement(DT.Provider,{value:p},h.createElement(Kh,{...Ht(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:m(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:g,...e.popupStyle,...u?.popup?.root}}))};function RT(e){return e===null||e===!1}var qfe={item:kT,submenu:LT,divider:OT},Jfe=(0,h.forwardRef)((e,t)=>{let n=h.useContext(AT),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(Ir),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=zr(`menu`),j=w(),M=Ht(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=Dr(O),z=Dr(o),[B,V]=kr([k,b],[A,R,x,z],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),H={horizontal:{motionName:`${j}-slide-up`},inline:Jf(j),other:{motionName:`${j}-zoom-big`}},U=w(`menu`,i||r.prefixCls),W=ug(U),[G,ee]=Kfe(U,W,!n),K=m(`${U}-${s}`,D,a),te=h.useMemo(()=>{if(vr(c)||RT(c))return c||null;if(vr(r.expandIcon)||RT(r.expandIcon))return r.expandIcon||null;if(vr(C?.expandIcon)||RT(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return du(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(AT.Provider,{value:null},h.createElement(DT.Provider,{value:ne},h.createElement(tg,{getPopupContainer:T,overflowedIndicator:h.createElement(Mm,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:qfe})))}),zT=(0,h.forwardRef)((e,t)=>{let n=(0,h.useRef)(null),r=h.useContext(ET);return(0,h.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),h.createElement(Jfe,{ref:n,...e,...r})});zT.Item=kT,zT.SubMenu=LT,zT.Divider=OT,zT.ItemGroup=Yh;var Yfe=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}}}}}},Xfe=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:$d},[`&${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:tf},[`&${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:ef},[`&${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:nf},[`&${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:rf},[`&${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:of},[`&${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:af},[`&${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:sf}}},vy(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`]:{...eo(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...ao(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},...ao(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}}}},[lf(e,`slide-up`),lf(e,`slide-down`),lf(e,`slide-left`),lf(e,`slide-right`),Qd(e,`move-up`),Qd(e,`move-down`),yf(e,`zoom-big`)]]},Zfe=hc(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=Bo(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Xfe(a),Yfe(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,..._y({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Tv(e)}),{resetStyle:!1}),BT=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}=zr(`dropdown`),P={...e,mouseEnterDelay:v,mouseLeaveDelay:y,autoAdjustOverflow:b},[F,I]=kr([M,C],[N,w],{props:P}),L={...j,...p,...I.root},R=l||c;Nr(`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=ug(V),[U,W]=Zfe(V,H),[,G]=mc(),ee=h.Children.only(br(a)?h.createElement(`span`,null,a):a),K=Le(t,Ve(ee)),te=du(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=by({arrowPointAtCenter:_r(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=Ht(F,[`root`]),t=Ht(I,[`root`]),r;return n?.items&&(r=h.createElement(zT,{...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(jT,{prefixCls:`${V}-menu`,rootClassName:m(W,H),expandIcon:h.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?h.createElement(TT,{className:`${V}-menu-submenu-arrow-icon`}):h.createElement(Af,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:le,validator:({mode:e})=>{}},r)},[de,fe]=_d(`Dropdown`,L.zIndex),me=h.createElement(Zm,{alignPoint:re,...Ht(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(dd.Provider,{value:fe},me)),me}),Qfe=Lg(BT,`align`,void 0,`dropdown`,e=>e);BT._InternalPanelDoNotUseOrYouWillBeFired=e=>h.createElement(Qfe,{...e},h.createElement(`span`,null));var VT=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(Ir),{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(Mm,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}=bd(L,r),H=m(R,V,f);`destroyPopupOnHide`in e&&(z.destroyPopupOnHide=N),`open`in e&&(z.open=b),`placement`in e?z.placement=S:z.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[U,W]=D([h.createElement(Cp,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:w,title:E},d),h.createElement(Cp,{type:a,danger:o,icon:T})]);return h.createElement(Iy.Compact,{className:H,size:B,block:!0,...I},U,h.createElement(BT,{...z},W))};VT.__ANT_BUTTON=!0;var HT=BT;HT.Button=VT;var UT={},WT=`SELECT_ALL`,GT=`SELECT_INVERT`,$fe=`SELECT_NONE`,KT=[],qT=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),_r(t)&&e in t&&qT(e,t[e],n)}),n),epe=(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=Nr(`Table`),[M,N]=fee(e=>e),[P,F]=ye(i||KT,r),I=P??KT,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)(()=>qT(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(fr(e),fr(n))}return Zw(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}=ST(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(KT)},[!!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?[WT,GT,$fe]:_).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!==UT);let n=fr(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(HT,{menu:t,getPopupContainer:A},h.createElement(`span`,null,h.createElement(Nv,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(xg,{"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(aS,{"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(xg,{"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?mT(e,a):hT(e,a);te(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=ST([].concat(fr(e),[a]),!0,B,H),i=n;if(o){let e=new Set(n);e.delete(a),i=ST(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(UT))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,UT].concat(fr(t))}else n=[UT].concat(fr(n));let O=n.indexOf(UT);n=n.filter((e,t)=>e!==UT||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?vr(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:w,onCell:t.onCell,align:t.align,[gw]:{className:F}};return n.map(e=>e===UT?I:e)},[E,z,t,U,G,ee,p,ne,D,V,f,te,H]),G]};function tpe(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 JT=e=>pr(e)&&e===e.window,npe=e=>{if(typeof window>`u`)return 0;let t=0;return JT(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!JT(e)&&!hr(t)&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function rpe(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=npe(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=tpe(t>i?i:t,o,e,i);JT(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t<i?c=en(l):vr(r)&&r()};return c=en(l),()=>{en.cancel(c)}}var ipe=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 YT(){return YT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YT.apply(this,arguments)}var XT=h.forwardRef((e,t)=>h.createElement(W,YT({},e,{ref:t,icon:ipe.default}))),ape=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 ZT(){return ZT=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},ZT.apply(this,arguments)}var QT=h.forwardRef((e,t)=>h.createElement(W,ZT({},e,{ref:t,icon:ape.default}))),ope={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:`页码`},spe=[10,20,50,100],cpe=e=>{let{pageSizeOptions:t=spe,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)},$T=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 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 lpe=(e,t,n)=>n;function tE(){}function nE(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function rE(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var upe=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=tE,hideOnSinglePage:f,align:p,showPrevNextJumpers:g=!0,showQuickJumper:_,showLessItems:v,showTitle:y=!0,onShowSizeChange:b=tE,locale:x=ope,style:S,totalBoundaryShowSizeChanger:C=50,disabled:w,simple:T,showTotal:E,showSizeChanger:D=c>C,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=lpe,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,rE(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(rE(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=rE(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function K(e){return nE(e)&&e!==B&&nE(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=rE(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=rE(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<rE(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=qt(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=rE(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($T,eE({},Oe,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=Ee;e+=1)De.push(h.createElement($T,eE({},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($T,eE({},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($T,eE({},Oe,{key:1,page:1}))),o!==Ee&&De.push(h.createElement($T,eE({},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`,eE({className:Re,style:S,ref:F},Ce),we,Ie,T?Pe:De,Le,h.createElement(cpe,{locale:x,rootPrefixCls:t,disabled:w,selectPrefixCls:n,changeSize:ae,pageSize:I,pageSizeOptions:k,quickGo:te?oe:null,goButton:Ne,showSizeChanger:D,sizeChangerRender:O}))},dpe=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}}}}},fpe=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...xv(e),width:e.paginationMiniQuickJumperInputWidth}}}}},ppe=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...bv(e)}}}}},mpe=e=>{let{componentCls:t,antCls:n}=e,[,r]=vc(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${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]":{...rv(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`}}}}},gpe=e=>{let{componentCls:t,iconCls:n,sizeLG:r,antCls:i}=e,[,a]=vc(i,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,inset:0,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,margin:`auto`,color:e.colorTextDisabled,textAlign:`center`,opacity:1,transition:`all ${e.motionDurationMid}`,[`${n}-ellipsis > svg`]:{width:r,height:r}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
||
${t}-prev,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{marginInlineEnd:a(`item-spacing-actual`)},[`
|
||
${t}-prev,
|
||
${t}-next,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{display:`inline-block`,minWidth:a(`item-size-actual`),height:a(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:a(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${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:{...Sv(e),...iv(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...rv(e)},width:e.quickJumperInputWidth,height:a(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:a(`item-spacing-actual`),marginInlineEnd:a(`item-spacing-actual`)}}}}},_pe=e=>{let{componentCls:t,antCls:n}=e,[,r]=vc(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight: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}}}}},vpe=e=>{let{componentCls:t,antCls:n}=e,[r,i]=vc(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)},...eo(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`},..._pe(e),...gpe(e),...mpe(e),...hpe(e),...fpe(e),...ppe(e),...dpe(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`}}},ype=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...ao(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...io(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:io(e)}}}},iE=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,...nv(e)}),aE=e=>Bo(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},tv(e)),bpe=hc(`Pagination`,e=>{let t=aE(e);return[vpe(t),ype(t)]},iE),xpe=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}}}}},Spe=_c([`Pagination`,`bordered`],e=>xpe(aE(e)),iE);function oE(e){return(0,h.useMemo)(()=>typeof e==`boolean`?[e,{}]:_r(e)?[!0,e]:[void 0,void 0],[e])}var Cpe=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}=kg(l),[,y]=mc(),{getPrefixCls:b,direction:x,showSizeChanger:S,className:C,style:w,classNames:T,styles:E,totalBoundaryShowSizeChanger:D}=zr(`pagination`),O=b(`pagination`,n),[k,A]=bpe(O),j=qu(s),M=j===`small`||!!(v&&!j&&l),[N,P]=ym(`input`),F={...e,size:j},I=Dr(w),L=Dr(o),[R,z]=kr([T,g],[E,I,p,L],{props:F}),[B]=Kc(`Pagination`,Nc),V={...B,...c},[H,U]=oE(u),[W,G]=oE(S),ee=H??W,K=U??G,te=d||hC,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(Mm,null));return{prevIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(Af,null):h.createElement(TT,null)),nextIcon:h.createElement(`button`,{className:`${O}-item-link`,type:`button`,tabIndex:-1},x===`rtl`?h.createElement(TT,null):h.createElement(Af,null)),jumpPrevIcon:h.createElement(`a`,{className:`${O}-item-link`},h.createElement(`div`,{className:`${O}-item-container`},x===`rtl`?h.createElement(QT,{className:`${O}-item-link-icon`}):h.createElement(XT,{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(XT,{className:`${O}-item-link-icon`}):h.createElement(QT,{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(Spe,{prefixCls:O}),h.createElement(upe,{...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 wpe(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 Tpe(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 Epe=(e,t)=>h.useMemo(()=>{if(!t)return e;let n=e=>e.map(e=>e===UT||e===VC?e:`children`in e&&Array.isArray(e.children)?{...nn(t,e),children:n(e.children)}:nn(Ht(t,[`children`]),e));return n(e)},[e,t]),sE=(e,t)=>`key`in e&&pr(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function cE(e,t){return t?`${t}-${e}`:`${e}`}var lE=(e,t)=>vr(e)?e(t):e,Dpe=(e,t)=>{let n=lE(e,t);return _r(n)||Array.isArray(n)?``:n},Ope=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 uE(){return uE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uE.apply(this,arguments)}var kpe=h.forwardRef((e,t)=>h.createElement(W,uE({},e,{ref:t,icon:Ope.default}))),Ape=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 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:Ape.default}))),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:`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 pE(){return pE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pE.apply(this,arguments)}var Mpe=h.forwardRef((e,t)=>h.createElement(W,pE({},e,{ref:t,icon:jpe.default}))),Npe=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 mE(){return mE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mE.apply(this,arguments)}var Ppe=h.forwardRef((e,t)=>h.createElement(W,mE({},e,{ref:t,icon:Npe.default}))),Fpe=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 hE(){return hE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hE.apply(this,arguments)}var Ipe=h.forwardRef((e,t)=>h.createElement(W,hE({},e,{ref:t,icon:Fpe.default}))),Lpe=({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}}}}}),Rpe=new Za(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),zpe=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),Bpe=(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:`""`}}}),Vpe=(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]:{...eo(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`]:{...io(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:Rpe,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`]:{...zpe(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(`, `),...Bpe(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`}}}},Hpe=(e,t,n=!0)=>{let r=`.${e}`,i=Bo(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[Vpe(e,i),n&&Lpe(i)].filter(Boolean)},Upe=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}},Wpe=hc(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:_g(`${t}-checkbox`,e)},Hpe(t,e),zd(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...Upe(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),Gpe=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`})},Kpe=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 gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gE.apply(this,arguments)}var qpe=h.forwardRef((e,t)=>h.createElement(W,gE({},e,{ref:t,icon:Kpe.default}))),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:`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 _E(){return _E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_E.apply(this,arguments)}var Ype=h.forwardRef((e,t)=>h.createElement(W,_E({},e,{ref:t,icon:Jpe.default}))),Xpe=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 vE(){return vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vE.apply(this,arguments)}var Zpe=h.forwardRef((e,t)=>h.createElement(W,vE({},e,{ref:t,icon:Xpe.default}))),Qpe=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(Pd,{className:`${t}-switcher-loading-icon`});let l;if(_r(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=vr(l)?l(r):l,n=`${t}-switcher-line-custom-icon`;return h.isValidElement(e)?du(e,{className:m(e.props?.className,n)}):e}return l?h.createElement(fE,{className:`${t}-switcher-line-icon`}):h.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=vr(n)?n(r):n;return h.isValidElement(d)?du(d,{className:m(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?h.createElement(Ype,{className:`${t}-switcher-line-icon`}):h.createElement(Zpe,{className:`${t}-switcher-line-icon`}):h.createElement(qpe,{className:u}):d},$pe=h.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=zr(`tree`),{virtual:c}=h.useContext(Ir),{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(gu),A=S??k,j=n(`tree`,l),M=n(),N=C??{...Jf(M),motionAppear:!1},P={...e,showIcon:d,blockNode:_,checkable:y,selectable:b,disabled:A,motion:N},[F,I]=kr([o,E],[s,D],{props:P}),L={...P,showLine:!!f,icon:O,dropIndicatorRender:Gpe},[R,z]=Wpe(j),[,B]=mc(),V=B.paddingXS/2+(B.Tree?.titleHeight||B.controlHeightSM),H=h.useMemo(()=>{if(!x)return!1;let e={};switch(typeof x){case`function`:e.nodeDraggable=x;break;case`object`:e={...x};break;default:break}return e.icon!==!1&&(e.icon=e.icon||h.createElement(Ipe,null)),e},[x]),U=e=>h.createElement(Qpe,{prefixCls:j,switcherIcon:p,switcherLoadingIcon:g,treeNodeProps:e,showLine:f});return h.createElement(zfe,{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)}),eme=0,yE=1,tme=2;function bE(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&bE(o||[],t,n)}e.forEach(a)}function nme({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=eme;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return bE(e,e=>{if(o===tme)return!1;if(s(e)){if(a.push(e),o===eme)o=yE;else if(o===yE)return o=tme,!1}else o===yE&&a.push(e);return t.includes(e)},Jw(i)),a}function xE(e,t,n){let r=fr(t),i=[];return bE(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},Jw(n)),i}function rme(e){let{isLeaf:t,expanded:n}=e;return t?h.createElement(fE,null):n?h.createElement(Mpe,null):h.createElement(Ppe,null)}function ime({treeData:e,children:t}){return e||Yw(t)}var ame=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}=Zw(ime(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?bT(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=ime(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=xE(f,g,r)):n&&h?(g=Array.from(new Set([].concat(fr(s.current||[]),fr(nme({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=xE(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=xE(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:_,direction:v}=h.useContext(Ir),{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($pe,{icon:rme,ref:t,blockNode:!0,...C,showIcon:x,expandAction:S,prefixCls:w,className:T,defaultExpandParent:r,expandedKeys:d,selectedKeys:l,onSelect:g,onExpand:p})}),SE=$pe;SE.DirectoryTree=ame,SE.TreeNode=iT;var ome=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(eb,{prefix:h.createElement(Fv,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},sme=e=>{let{keyCode:t}=e;t===Et.ENTER&&e.stopPropagation()},cme=h.forwardRef((e,t)=>h.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:sme,ref:t,role:`presentation`},e.children));function CE(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(fr(t),fr(CE(n))))}),t}function lme(e){return e.some(({children:e})=>e)}var ume=(e,t)=>typeof t==`string`||hr(t)?t.toString().toLowerCase().includes(e):!1,dme=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:dme({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?xg:aS,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?vr(s)?s(o,e)?u:null:ume(o,e.text)?u:null:u})};function wE(e){return e||[]}var fme=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(xy),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]=ud(wE(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:wE(k)})},[k]);let[P,F]=h.useState([]),I=e=>{F(e)},[L,R]=h.useState(``),z=h.useMemo(()=>L.trim().toLowerCase(),[L]),B=e=>{let{value:t}=e.target;R(t)};h.useEffect(()=>{C||R(``)},[C]);let V=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||zt(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},H=()=>{D(!1),V(A())},U=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&V([]),t&&D(!1),R(``),j(v?(y||[]).map(String):[])},W=({closeDropdown:e}={closeDropdown:!0})=>{e&&D(!1),V(A())},G=(e,t)=>{t.source===`trigger`&&(e&&k!==void 0&&j(wE(k)),D(e),!e&&!r.filterDropdown&&o&&H())},ee=m({[`${i}-menu-without-submenu`]:!lme(r.filters||[])}),K=e=>{e.target.checked?j(CE(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(Ir);if(vr(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(sC,{image:sC.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(ome,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),h.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?h.createElement(xg,{checked:e.length===CE(r.filters).length,indeterminate:e.length>0&&e.length<CE(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:K},f?.filterCheckall??f?.filterCheckAll):null,h.createElement(SE,{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=>vr(l)?l(L,ne(e)):ume(z,e.title):void 0})));let o=dme({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(ome,{filterSearch:l,value:L,onChange:B,tablePrefixCls:t,locale:f}),u?a:h.createElement(zT,{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(Sp,{type:`link`,size:`small`,disabled:v?zt((y||[]).map(String),e,!0):e.length===0,onClick:()=>U()},f.filterReset),h.createElement(Sp,{type:`primary`,size:`small`,onClick:H},f.filterConfirm)))}r.filterDropdown&&(re=h.createElement(jT,{selectable:void 0},re)),re=h.createElement(cme,{className:`${n}-dropdown`},re);let oe=(()=>{let e;return e=vr(r.filterIcon)?r.filterIcon(E):r.filterIcon?r.filterIcon:h.createElement(kpe,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=nn({trigger:[`click`],placement:ie===`rtl`?`bottomLeft`:`bottomRight`,children:oe,getPopupContainer:g},{...b,rootClassName:m(_,b.rootClassName),open:O,onOpenChange:G,popupRender:()=>vr(b?.dropdownRender)?b.dropdownRender(re):re});return h.createElement(`div`,{className:`${n}-column`},h.createElement(`span`,{className:`${t}-column-title`},p),h.createElement(HT,{...se}))},TE=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=cE(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:sE(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:sE(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(fr(r),fr(TE(e.children,t,a))))}),r};function pme(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=cE(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,g=n;if(g.filters||g.filterDropdown){let s=sE(g,u),l=r.find(({key:e})=>s===e);g={...g,title:r=>h.createElement(fme,{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},lE(n.title,r))}}return`children`in g&&(g={...g,children:pme(e,t,g.children,r,i,a,o,u,c)}),g})}var mme=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]=CE(a).filter(e=>n.includes(String(e))):t[i]=null}),t},EE=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=CE(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]=EE(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),hme=e=>e.flatMap(e=>`children`in e?[e].concat(fr(hme(e.children||[]))):[e]),gme=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;Nr(`Table`);let c=h.useMemo(()=>hme(r||[]),[r]),[l,u]=h.useState(()=>TE(c,!0)),d=h.useMemo(()=>{let e=TE(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)=>sE(e,cE(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(()=>mme(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(mme(t),t)};return[e=>pme(t,n,e,d,o,p,a,void 0,s),d,f]},_me=(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),_r(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 vme(e,t){let n={current:e.current,pageSize:e.pageSize},r=_r(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];vr(r)||(n[t]=r)}),n}function yme(e,t,n){let{total:r=0,...i}=_r(n)?n:{},[a,o]=(0,h.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=nn(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var bme=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 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 xme=h.forwardRef((e,t)=>h.createElement(W,DE({},e,{ref:t,icon:bme.default}))),Sme=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 OE(){return OE=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},OE.apply(this,arguments)}var Cme=h.forwardRef((e,t)=>h.createElement(W,OE({},e,{ref:t,icon:Sme.default}))),kE=`ascend`,AE=`descend`,jE=e=>_r(e.sorter)&&hr(e.sorter.multiple)?e.sorter.multiple:!1,wme=e=>vr(e)?e:_r(e)&&e.compare?e.compare:!1,Tme=(e,t)=>t?e[e.indexOf(t)+1]:e[0],ME=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:sE(e,t),multiplePriority:jE(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=cE(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(fr(r),fr(ME(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:sE(e,o),multiplePriority:jE(e),sortOrder:e.defaultSortOrder}))}),r},Eme=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=cE(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=sE(d,u),p=n.find(({key:e})=>e===f),g=p?p.sortOrder:null,_=Tme(s,g),v;if(t.sortIcon)v=t.sortIcon({sortOrder:g});else{let t=s.includes(kE)&&h.createElement(Cme,{className:m(`${e}-column-sorter-up`,{active:g===kE})}),n=s.includes(AE)&&h.createElement(xme,{className:m(`${e}-column-sorter-down`,{active:g===AE})});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;_===AE?S=x:_===kE&&(S=b);let C=_r(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`},lE(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(Dy,{...C},v)):h.createElement(Dy,{...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:jE(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===Et.ENTER&&(r({column:t,key:f,sortOrder:_,multiplePriority:jE(t)}),o?.(e))};let s=Dpe(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:Eme(e,d.children,n,r,i,a,o,u,c)}),d}),Dme=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Ome=e=>{let t=e.reduce((e,t)=>(t.sortOrder&&e.push(Dme(t)),e),[]);return t.length===0&&e.length?{...Dme(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},NE=(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})=>wme(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=wme(r);if(o&&i){let n=o(e,t,i);if(n!==0)return i===kE?n:-n}}return 0}).map(e=>{let r=e[n];return r?{...e,[n]:NE(r,t,n)}:e}):i},kme=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(()=>ME(l,!0)),f=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=cE(r,t);if(n.push(sE(e,i)),Array.isArray(e.children)){let t=f(e.children,i);n.push.apply(n,fr(t))}}),n},p=h.useMemo(()=>{let e=!0,t=ME(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(fr(p.filter(({key:t})=>t!==e.key)),[e]),d(t),s(Ome(t),t)};return[e=>Eme(t,e,p,g,i,a,o,void 0,c),p,m,()=>Ome(p)]},Ame=(e,t)=>e.map(e=>{let n={...e};return n.title=lE(e.title,t),`children`in n&&(n.children=Ame(n.children,t)),n}),jme=e=>[h.useCallback(t=>Ame(t,e),[e])],Mme=Fw((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Nme=Uw((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Pme=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}}}},Fme=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...$a,wordBreak:`keep-all`,[`
|
||
&${t}-cell-fix-start-shadow,
|
||
&${t}-cell-fix-end-shadow
|
||
`]:{overflow:`visible`,[`${t}-cell-content`]:{...$a,display:`block`}},[`${t}-column-title`]:{...$a,wordBreak:`keep-all`}}}}},Ime=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}}}}},Lme=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`]:{...lo(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)}`}}}},Rme=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]:{...eo(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 zme({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var Bme=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]=zme(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}}},Vme=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`}}}}},Hme=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)}`}}}}},Ume=e=>{let{componentCls:t}=e,[n,r]=zme(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}}},Wme=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}}}}}},Gme=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)}}},Kme=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}}}},qme=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}}}}}}},Jme=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}`}}}},Yme=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}}}}}},Xme=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,...ro(),[t]:{...eo(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:_}}}},Zme=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new cs(i).onBackground(n).toHexString(),w=new cs(a).onBackground(n).toHexString(),T=new cs(t).onBackground(n).toHexString(),E=new cs(y),D=new cs(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},Qme=2,$me=hc(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=Bo(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:Qme,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[Xme(F),Vme(F),Jme(F),Kme(F),Rme(F),Pme(F),Hme(F),Lme(F),Jme(F),Ime(F),Wme(F),Bme(F),qme(F),Fme(F),Gme(F),Ume(F),Yme(F)]},Zme,{resetFont:!1,unitless:{expandIconScale:!0}}),ehe=[],the=h.createContext({}),nhe=e=>{let{ariaProps:t,component:n=`table`}=h.useContext(the);return h.createElement(n,{...t,...e})},rhe=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;Nr(`Table`);let F=Epe(h.useMemo(()=>y||Cw(b),[y,b]),v),I=kg(h.useMemo(()=>F.some(e=>e.responsive),[F])),L=h.useMemo(()=>{let e=new Set(Object.keys(I).filter(e=>I[e]));return F.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[F,I]),R=Ht(e,[`className`,`style`,`column`,`columns`]),z=R.components,B=qt(R,{aria:!0}),V=Object.keys(B).length>0,H=h.useMemo(()=>({ariaProps:B,component:z?.header?.table}),[B,z?.header?.table]),U=h.useMemo(()=>V?{...z,header:{...z?.header,table:nhe}}:z,[z,V]),{locale:W=zc,table:G}=h.useContext(Ir),{getPrefixCls:ee,direction:K,renderEmpty:te,getPopupContainer:ne,className:re,style:ie,classNames:ae,styles:oe}=zr(`table`),se=qu(e=>c===`middle`?`medium`:c??e),ce={...e,size:se,bordered:l},le=Dr(ie),ue=Dr(a),[de,fe]=kr([ae,o],[oe,le,s,ue],{props:ce},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),pe={...W.Table,...M},[me]=Kc(`global`,zc.global),he=d||ehe,ge=ee(`table`,n),_e=ee(`dropdown`,u),[,ve]=mc(),ye=h.useMemo(()=>_r(p)?{columnWidth:ve.Table?.selectionColumnWidth,...p}:p,[p,ve.Table?.selectionColumnWidth]),be=ug(ge),[xe,Se]=$me(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=Tpe(ge),Oe=h.useRef(null),ke=h.useRef(null);ld(t,()=>({...ke.current,nativeElement:Oe.current}));let Ae=g||G?.rowKey||`key`,je=A??G?.scroll,Me=h.useMemo(()=>vr(Ae)?Ae:e=>e?.[Ae],[Ae]),[Ne]=_me(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&&rpe(0,{getContainer:()=>Ee.body.current}),S?.(r.pagination,r.filters,r.sorter,{currentDataSource:EE(NE(he,r.sorterStates,we),r.filterStates,we),action:t})},[Ie,Le,Re,ze]=kme({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(()=>NE(he,Le,we),[we,he,Le]);Pe.sorter=ze(),Pe.sorterStates=Le;let[Ve,He,Ue]=gme({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=EE(Be,He,we);Pe.filters=Ue,Pe.filterStates=He;let[Ge]=jme(h.useMemo(()=>{let e={};return Object.keys(Ue).forEach(t=>{Ue[t]!==null&&(e[t]=Ue[t])}),{...Re,filters:e}},[Re,Ue])),[Ke,qe]=yme(We.length,(e,t)=>{Fe({pagination:{...Pe.pagination,current:e,pageSize:t}},`paginate`)},f);Pe.pagination=f===!1?{}:vme(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]=epe({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))},vr(_)?_(e,t,n):_);Ce.__PARENT_RENDER_ICON__=Ce.expandIcon,Ce.expandIcon=Ce.expandIcon||T||wpe(pe),Te===`nest`&&Ce.expandIconColumnIndex===void 0?Ce.expandIconColumnIndex=+!!ye:Ce.expandIconColumnIndex>0&&ye&&--Ce.expandIconColumnIndex,hr(Ce.indentSize)||(Ce.indentSize=hr(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(Cpe,{...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(_r(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===ehe?null:M?.emptyText===void 0?te?.(`Table`)||h.createElement(cC,{componentName:`Table`}):M.emptyText,[tt?.spinning,he,M?.emptyText,te]),it=P?Nme:Mme,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(LC,{spinning:!1,...tt},$e,h.createElement(the.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:HC,internalRefs:Ee,transformColumns:Qe,getContainerWidth:De,measureRowRender:e=>h.createElement(xy.Provider,{value:!0},h.createElement(Iu,{getPopupContainer:e=>e},e))})),et))}),PE=h.forwardRef((e,t)=>{let n=h.useRef(0);return n.current+=1,h.createElement(rhe,{...e,ref:t,_renderTimes:n.current})});PE.SELECTION_COLUMN=UT,PE.EXPAND_COLUMN=VC,PE.SELECTION_ALL=WT,PE.SELECTION_INVERT=GT,PE.SELECTION_NONE=$fe,PE.Column=bfe,PE.ColumnGroup=xfe,PE.Summary=cw;var FE=PE,ihe=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]:{...eo(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}}}}},IE=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Bo(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})},LE=e=>{let t=ip(new Df(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new cs(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},RE=hc(`Tag`,e=>ihe(IE(e)),LE),ahe=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(Ir),_=h.useContext(gu),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]=RE(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))}),ohe=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}=zr(`tag`),w=v(`tag`,r),T=`${w}-checkable-group`,[E,D]=RE(w,ug(w)),O=Dr(x),k=Dr(o),[A,j]=kr([S,s],[C,O,c,k],{props:e}),M=(0,h.useMemo)(()=>Array.isArray(u)?u.map(e=>_r(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(fr(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;P(n),p?.(n)},I=h.useRef(null);(0,h.useImperativeHandle)(t,()=>({nativeElement:I.current}));let L=qt(_,{aria:!0,data:!0});return h.createElement(`div`,{...L,className:m(T,b,i,{[`${T}-disabled`]:l,[`${T}-rtl`]:y===`rtl`},E,D,a,A.root),style:j.root,id:n,ref:I},M.map(e=>h.createElement(ahe,{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 she(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=Ty(o),c=Coe(o),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new cs(o).toHsl();e.l=.95,l.backgroundColor=new cs(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var che=e=>yc(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),lhe=_c([`Tag`,`preset`],e=>che(IE(e)),LE);function uhe(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var zE=(e,t,n)=>{let r=uhe(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}`]}}}},dhe=_c([`Tag`,`status`],e=>{let t=IE(e);return[zE(t,`success`,`Success`),zE(t,`processing`,`Info`),zE(t,`error`,`Error`),zE(t,`warning`,`Warning`)]},LE),BE=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}=zr(`tag`),[D,O,k,A,j]=she(e,C),M=k||A,N=h.useContext(gu),P=f??N,{tag:F}=h.useContext(Ir),[I,L]=h.useState(!0),R=Ht(y,[`closeIcon`,`closable`]),z={...e,color:O,variant:D,disabled:P},[B,V]=kr([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]=RE(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]=nd(Xu(e),Xu(F),{closable:!1,closeIconRender:e=>uu(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=vr(y.onClick)||o&&o.type===`a`,ie=du(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(lhe,{key:`preset`,prefixCls:U}),A&&h.createElement(dhe,{key:`status`,prefixCls:U}));return re?h.createElement(Ku,{component:`Tag`},se):se});BE.CheckableTag=ahe,BE.CheckableTagGroup=ohe;var fhe=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 VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VE.apply(this,arguments)}var phe=h.forwardRef((e,t)=>h.createElement(W,VE({},e,{ref:t,icon:fhe.default}))),mhe=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 HE(){return HE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HE.apply(this,arguments)}var hhe=h.forwardRef((e,t)=>h.createElement(W,HE({},e,{ref:t,icon:mhe.default}))),ghe=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},_he=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}
|
||
`]=ghe(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},vhe=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...lo(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},yhe=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ws[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85},table:{width:`100%`,textAlign:`start`,borderCollapse:`separate`,borderSpacing:0,marginBlock:`1em`,"th, td":{padding: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}}}}),bhe=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`}}}},xhe=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),She=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{...$a,"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`}}),Che=hc(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},..._he(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}},...yhe(e),...vhe(e),[`${t}-actions`]:{display:`inline`},[`
|
||
${t}-expand,
|
||
${t}-collapse,
|
||
${t}-edit,
|
||
${t}-copy
|
||
`]:{...lo(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}},...bhe(e),...xhe(e),...She(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),whe=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(hhe,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]=Che(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(ab,{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:du(_,{className:`${t}-edit-content-confirm`}))},The=(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})}},Ehe=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 Dhe(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await Ehe(e,n)||The(e,n))}var Ohe=(e,t={})=>!pr(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],khe=({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 Dhe((vr(e.text)?await e.text():e.text)||Ohe(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}})}},UE=(e,t)=>{let n=!!e;return h.useMemo(()=>[n,{...t,...n&&_r(e)?e:null}],[n,e,t])},Ahe=e=>{let t=(0,h.useRef)(void 0);return(0,h.useEffect)(()=>{t.current=e}),t.current},jhe=(e,t,n)=>(0,h.useMemo)(()=>e===!0?{title:t??n}:(0,h.isValidElement)(e)?{title:e}:_r(e)?{title:t??n,...e}:{title:e},[e,t,n]),Mhe=(e,t,n,r,i)=>{let{getPrefixCls:a,direction:o,className:s,style:c,classNames:l,styles:u}=zr(`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]=kr([m,l,t],[g,u,n],{props:p});return[_,v,f,d]},Nhe=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]=Che(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)}),Phe=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,direction:a,classNames:o,styles:s,...c}=e,[l,u,d,f]=Mhe(n,o,s,a,e);return h.createElement(Nhe,{ref:t,className:m(r,i),direction:f,classNames:l,styles:u,prefixCls:d,...c})}),Fhe=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 WE(){return WE=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},WE.apply(this,arguments)}var Ihe=h.forwardRef((e,t)=>h.createElement(W,WE({},e,{ref:t,icon:Fhe.default}))),Lhe=e=>e===!1?[!1,!1]:Ohe(e);function GE(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Rhe(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 KE=e=>[`string`,`number`].includes(typeof e),zhe=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=Lhe(a),p=Lhe(o),{copied:g,copy:_}=r??{},v=n?g:_,y=GE(f[+!!n],v),b=typeof y==`string`?y:v;return h.createElement(Dy,{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?GE(p[1],h.createElement(jv,null),!0):GE(p[0],l?h.createElement(Pd,null):h.createElement(Ihe,null),!0)))},qE=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)}),Bhe=e=>e.reduce((e,t)=>e+(KE(t)?String(t).length:1),0);function Vhe(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=KE(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 JE=0,YE=1,XE=2,ZE=3,Hhe=4,QE={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Uhe(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,measureDeps:s,miscDeps:c,onEllipsis:l}=e,u=h.useMemo(()=>tn(r),[r]),d=h.useMemo(()=>Bhe(u),[r]),f=h.useMemo(()=>i(u,!1),[r].concat(fr(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(JE),[T,E]=h.useState(0),[D,O]=h.useState(null);ge(()=>{w(t&&n&&d?YE:JE)},[n,r,a,t,u].concat(fr(s))),ge(()=>{if(C===YE)w(XE),O(_.current&&getComputedStyle(_.current).whiteSpace);else if(C===XE){let e=!!v.current?.isExceed();w(e?ZE:Hhe),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!==ZE||!p||p[0]!==p[1]){let e=i(u,!1);return[Hhe,JE].includes(C)?e:h.createElement(`span`,{style:{...QE,WebkitLineClamp:a}},e)}return i(o?u:Vhe(u,p[0]),x)},[o,C,p,u].concat(fr(c))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return h.createElement(h.Fragment,null,A,C===XE&&h.createElement(h.Fragment,null,h.createElement(qE,{style:{...j,...QE,WebkitLineClamp:a},ref:v},f),h.createElement(qE,{style:{...j,...QE,WebkitLineClamp:a-1},ref:y},f),h.createElement(qE,{style:{...j,...QE,WebkitLineClamp:1},ref:b},i([],!0))),C===ZE&&p&&p[0]!==p[1]&&h.createElement(qE,{style:{...j,top:400},ref:g},i(Vhe(u,k),!0)),C===YE&&h.createElement(`span`,{style:{whiteSpace:`inherit`},ref:_}))}var Whe=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return h.createElement(Dy,{open:a,...i},r)};function Ghe({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 Khe=`...`,qhe=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],$E=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]=Kc(`Text`),C=h.useRef(null),w=h.useRef(null),[T,E,D,O]=Mhe(n,a,o,s,e),k=Ht(x,qhe),[A,j]=UE(f),[M,N]=ye(!1,j.editing),{triggerType:P=[`icon`]}=j,F=e=>{e&&j.onStart?.(),N(e)},I=Ahe(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]=UE(p),{placement:H=`end`}=g??{},{copied:U,copyLoading:W,onClick:G}=khe({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]=UE(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=jhe(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=Rhe(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(KE)},[le,_e,v,xe.title,Ce]);if(M)return h.createElement(whe,{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},vr(t)?t(de):t):null},Re=()=>{if(!A)return;let{icon:e,tooltip:t,tabIndex:n}=j,r=tn(t)[0]||S?.edit,i=typeof r==`string`?r:``;return P.includes(`icon`)?h.createElement(Dy,{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(phe,{role:`button`}))):null},ze=()=>B?h.createElement(zhe,{key:`copy`,...V,prefixCls:D,copied:U,locale:S,onCopy:G,loading:W,iconOnly:!mr(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`},Khe),ue.suffix];return h.createElement(Ol,{onResize:Ne,disabled:!pe},n=>h.createElement(Whe,{tooltipProps:xe,enableEllipsis:pe,isEllipsis:Ce,open:je&&!ke},h.createElement(Nhe,{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(Uhe,{enableMeasure:pe&&!_e,text:u,rows:me,width:De,onEllipsis:Pe,expanded:de,measureDeps:[H],miscDeps:[U,de,W,A,B,H,S].concat(fr(qhe.map(t=>e[t])))},(t,n)=>Ghe(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)))))))}),Jhe=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($E,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),Yhe=h.forwardRef((e,t)=>{let{children:n,...r}=e;return h.createElement($E,{ref:t,...r,component:`div`},n)}),Xhe=h.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=h.useMemo(()=>_r(n)?Ht(n,[`expandable`,`rows`]):n,[n]);return h.createElement($E,{ref:t,...i,ellipsis:a,component:`span`},r)}),Zhe=[1,2,3,4,5],Qhe=h.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=Zhe.includes(n)?`h${n}`:`h1`;return h.createElement($E,{ref:t,...i,component:a},r)}),eD=Phe;eD.Text=Xhe,eD.Link=Jhe,eD.Title=Qhe,eD.Paragraph=Yhe;var $he=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(Lt(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0):!1})}return!0});function ege(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 tge(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function nge(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(ege(e,t),tge(t)):e.onSuccess(tge(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 rge=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},ige=+new Date,age=0;function tD(){return`rc-upload-${ige}-${++age}`}function nD(){return nD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nD.apply(this,arguments)}var oge=class extends h.Component{state={uid:tD()};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=>$he(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 rge(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=tD(),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||nge,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:nge})}reset(){this.setState({uid:tD()})}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,nD({},w,{className:S,role:y?void 0:`button`,style:s}),h.createElement(`input`,nD({},qt(b,{aria:!0,data:!0}),{id:a,name:o,disabled:i,type:`file`,ref:this.saveFileInput,onClick:e=>e.stopPropagation(),key:this.state.uid,style:{display:`none`,...c.input},className:r.input,accept:x},C,{multiple:l,onChange:this.onChange},d==null?{}:{capture:d})),f)}};function rD(){return rD=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},rD.apply(this,arguments)}function iD(){}var sge=class extends h.Component{static defaultProps={component:`span`,prefixCls:`rc-upload`,data:{},headers:{},name:`file`,multipart:!1,onStart:iD,onError:iD,onSuccess:iD,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(oge,rD({},this.props,{ref:this.saveUploader}))}},cge=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}}}}}},lge=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`]:{...ro(),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`]:{...$a,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:`""`}}}}}},uge=e=>{let{componentCls:t}=e,n=new Za(`uploadAnimateInlineIn`,{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Za(`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`]:Wd(e)},n,r]},dge=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`]:{...$a,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%`}}}}},fge=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
|
||
`]:{...ro(),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%`}}}},pge=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},mge=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:{...eo(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`}}}},hge=hc(`Upload`,e=>{let{fontSizeHeading3:t,marginXS:n,lineWidth:r,pictureCardSize:i,calc:a}=e,o=Bo(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(n).div(2)).add(r).equal(),uploadPicCardSize:i});return[mge(o),cge(o),dge(o),fge(o),lge(o),uge(o),pge(o),zd(o)]},e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55})),gge=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 aD(){return aD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aD.apply(this,arguments)}var _ge=h.forwardRef((e,t)=>h.createElement(W,aD({},e,{ref:t,icon:gge.default}))),vge=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 oD(){return oD=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},oD.apply(this,arguments)}var yge=h.forwardRef((e,t)=>h.createElement(W,oD({},e,{ref:t,icon:vge.default})));function sD(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 cD(e,t){let n=fr(t),r=n.findIndex(({uid:t})=>t===e.uid);return r===-1?n.push(e):n[r]=e,n}function lD(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function bge(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 xge=(e=``)=>{let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]},Sge=e=>e.indexOf(`image/`)===0,Cge=[`.avif`,`.bmp`,`.dpg`,`.gif`,`.heic`,`.heif`,`.ico`,`.jfif`,`.jpg`,`.jpeg`,`.png`,`.svg`,`.tif`,`.tiff`,`.webp`],wge=e=>{if(e.type&&!e.thumbUrl)return Sge(e.type);let t=e.thumbUrl||e.url||``,n=xge(t||e.name);return/^data:image\//.test(t)||Cge.includes(n?.toLowerCase()||``)?!0:!(/^data:/.test(t)||n)},uD=200;function Tge(e){return new Promise(t=>{if(!e.type||!Sge(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=uD,n.height=uD,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${uD}px; height: ${uD}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=uD,s=uD,c=0,l=0;e>a?(s=uD/e*a,l=-(s-o)/2):(o=uD/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 Ege=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 dD(){return dD=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},dD.apply(this,arguments)}var fD=h.forwardRef((e,t)=>h.createElement(W,dD({},e,{ref:t,icon:Ege.default}))),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:`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 pD(){return pD=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},pD.apply(this,arguments)}var Oge=h.forwardRef((e,t)=>h.createElement(W,pD({},e,{ref:t,icon:Dge.default}))),kge={percent:0,prefixCls:`rc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,railColor:`#D9D9D9`,railWidth:1,gapPosition:`bottom`,loading:!1},Age=()=>{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},jge=({bg:e,children:t})=>h.createElement(`div`,{style:{width:`100%`,height:`100%`,background:e}},t);function Mge(e,t){return Object.keys(e).map(n=>{let r=`${Math.floor(parseFloat(n)*t)}%`;return`${e[n]} ${r}`})}var Nge=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=Mge(r,(360-f)/360),S=Mge(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(jge,{bg:w},h.createElement(jge,{bg:C}))))}),mD=(e,t,n,r,i,a,o,s,c,l,u=0)=>{let d=n/100*360*((360-a)/360),f=a===0?0:{bottom:0,top:180,left:90,right:-90}[o],p=(100-r)/100*t;return c===`round`&&r!==100&&(p+=l/2,p>=t&&(p=t-.01)),{stroke:typeof s==`string`?s:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:p+u,transform:`rotate(${i+d+f}deg)`,transformOrigin:`50px 50px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`,fillOpacity:0}},Pge=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:`rotate(0deg)`,animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:h.createElement(`style`,null,`@keyframes ${n} {
|
||
0% { transform: rotate(0deg); }
|
||
100% { transform: rotate(360deg); }
|
||
}`)}});function hD(){return hD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hD.apply(this,arguments)}function Fge(e){let t=e??[];return Array.isArray(t)?t:[t]}var Ige=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}={...kge,...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=Fge(_),k=Fge(g),A=k.find(e=>e&&typeof e==`object`),j=A&&typeof A==`object`?`butt`:d,{indeterminateStyleProps:M,indeterminateStyleAnimation:N}=Pge({id:b,loading:v}),P=mD(C,T,0,100,w,c,l,u,j,o),F=Age(),I=()=>{let e=0;return O.map((t,a)=>{let s=k[a]||k[k.length-1],u=mD(C,T,e,t,w,c,l,s,j,o);return e+=t,h.createElement(Nge,{key:a,color:s,ptg:t,radius:S,prefixCls:n,gradientId:x,className:r.track,style:{...u,...M,...i.track},strokeLinecap:j,strokeWidth:o,gapDegree:c,ref:e=>{F[a]=e},size:100})}).reverse()},L=()=>{let e=Math.round(E*(O[0]/100)),t=100/E,a=0;return Array(E).fill(null).map((s,d)=>{let f=d<=e-1?k[0]:u,p=f&&typeof f==`object`?`url(#${x})`:void 0,g=mD(C,T,a,t,w,c,l,f,`butt`,o,D);return a+=(T-g.strokeDashoffset+D)*100/T,h.createElement(`circle`,{key:d,className:m(`${n}-circle-path`,r.track),r:S,cx:50,cy:50,stroke:p,strokeWidth:o,opacity:1,style:{...g,...i.track},ref:e=>{F[d]=e}})})};return h.createElement(`svg`,hD({className:m(`${n}-circle`,r.root,p),viewBox:`0 0 100 100`,style:{...i.root,...f},id:t,role:`presentation`},y),!E&&h.createElement(`circle`,{className:m(`${n}-circle-rail`,r.rail),r:S,cx:50,cy:50,stroke:u,strokeLinecap:j,strokeWidth:s||o,style:{...P,...i.rail}}),E?L():I(),N)};function gD(e){return!e||e<0?0:e>100?100:e}function _D({success:e}){let t;return e&&`percent`in e&&(t=e.percent),t}var Lge=({percent:e,success:t})=>{let n=gD(_D({success:t}));return[n,gD(gD(e)-n)]},Rge=({success:e={},strokeColor:t})=>{let{strokeColor:n}=e;return[n||bs.green,t||null]},vD=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):hr(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):hr(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]:hr(e)?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},zge=3,Bge=e=>zge/e*100,Vge=[`root`,`body`,`indicator`],Hge=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}=zr(`progress`),y=i??a,[b,x]=vD(g,`circle`),{strokeWidth:S}=e;S===void 0&&(S=Math.max(Bge(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=Lge(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=_r(e.strokeColor),O=Rge({success:p,strokeColor:e.strokeColor}),k=m(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),A=h.createElement(Ige,{steps:_,percent:_?T[1]:T,strokeWidth:S,railWidth:S,strokeColor:_?O[1]:O,strokeLinecap:o,railColor:y,prefixCls:t,gapDegree:w,gapPosition:E,classNames:Ht(n,Vge),styles:Ht(r,Vge)}),j=b<=20,M=h.createElement(`div`,{className:k,style:{...C,...r.body}},A,!j&&f);return j?h.createElement(Dy,{title:f},M):M},yD=`--progress-line-stroke-color`,Uge=e=>{let t=e?`100%`:`-100%`;return new Za(`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}})},Wge=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{...eo(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}}}}},Gge=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:Uge(),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)`}}}}},Kge=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`}}}},qge=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}}}}}},Jge=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},Yge=hc(`Progress`,e=>{let t=e.calc(e.marginXXS).div(2).equal(),n=Bo(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[Wge(n),Gge(n),Kge(n),qge(n),Jge(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:`1em`,circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),Xge=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=bs.blue,to:r=bs.blue,direction:i=t===`rtl`?`to left`:`to right`,...a}=e;if(Object.keys(a).length!==0){let e=`linear-gradient(${i}, ${Xge(a)})`;return{background:e,[yD]:e}}let o=`linear-gradient(${i}, ${n}, ${r})`;return{background:o,[yD]:o}},Qge=e=>{let{prefixCls:t,classNames:n,styles:r,direction:i,percent:a,size:o,strokeWidth:s,strokeColor:c,strokeLinecap:l=`round`,children:u,railColor:d,trailColor:f,percentPosition:p,success:g}=e,{align:_,type:v}=p,y=d??f,b=l===`square`||l===`butt`?0:void 0,[x,S]=vD(o??[-1,s||(o===`small`?6:8)],`line`,{strokeWidth:s}),C={backgroundColor:y||void 0,borderRadius:b,height:S},w=`${t}-track`,T=c&&typeof c!=`string`?Zge(c,i):{[yD]:c,background:c},E={width:`${gD(a)}%`,height:S,borderRadius:b,...T},D=_D(e),O={width:`${gD(D)}%`,height:S,borderRadius:b,backgroundColor:g?.strokeColor};return h.createElement(`div`,{className:m(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:_===`center`&&v===`outer`}),style:{width:x>0?x:`100%`,...r.body}},h.createElement(`div`,{className:m(`${t}-rail`,n.rail),style:{...C,...r.rail}},h.createElement(`div`,{className:m(w,n.track),style:{...E,...r.track}},v===`inner`&&u),D!==void 0&&h.createElement(`div`,{className:m(w,`${w}-success`,n.track),style:{...O,...r.track}})),v===`outer`&&u)},$ge=e=>{let{classNames:t,styles:n,size:r,steps:i,rounding:a=Math.round,percent:o=0,strokeWidth:s=8,strokeColor:c,railColor:l,trailColor:u,prefixCls:d,children:f}=e,p=a(o/100*i),[g,_]=vD(r??[r===`small`?2:14,s],`step`,{steps:i,strokeWidth:s}),v=g/i,y=Array.from({length:i}),b=l??u;for(let e=0;e<i;e++){let r=Array.isArray(c)?c[e]:c;y[e]=h.createElement(`div`,{key:e,className:m(`${d}-steps-item`,{[`${d}-steps-item-active`]:e<=p-1},t.track),style:{backgroundColor:e<=p-1?r:b,width:v,height:_,...n.track}})}return h.createElement(`div`,{className:m(`${d}-steps-body`,t.body),style:n.body},y,f)},e_e=[`normal`,`exception`,`active`,`success`],t_e=h.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,classNames:a,styles:o,steps:s,strokeColor:c,percent:l=0,size:u=`medium`,showInfo:d=!0,type:f=`line`,status:p,format:g,style:_,percentPosition:v={},...y}=e,{align:b=`end`,type:x=`outer`}=v,S=Array.isArray(c)?c[0]:c,C=typeof c==`string`||Array.isArray(c)?c:void 0,w=h.useMemo(()=>S?new cs(typeof S==`string`?S:Object.values(S)[0]).isLight():!1,[c]),T=h.useMemo(()=>{let t=_D(e);return Number.parseInt(t===void 0?(l??0)?.toString():(t??0)?.toString(),10)},[l,e.success]),E=h.useMemo(()=>!e_e.includes(p)&&T>=100?`success`:p||`normal`,[p,T]),{getPrefixCls:D,direction:O,className:k,style:A,classNames:j,styles:M}=zr(`progress`),N=D(`progress`,n),[P,F]=Yge(N),I={...e,percent:l,type:f,size:u,showInfo:d,percentPosition:v},L=Dr(A),R=Dr(_),[z,B]=kr([j,a],[M,L,o,R],{props:I}),V=f===`line`,H=V&&!s,U=h.useMemo(()=>{if(!d)return null;let t=_D(e),n,r=g||(e=>`${e}%`),i=V&&w&&x===`inner`;return x===`inner`||g||E!==`exception`&&E!==`success`?n=r(gD(l),gD(t)):E===`exception`?n=V?h.createElement(re,null):h.createElement(oe,null):E===`success`&&(n=V?h.createElement(K,null):h.createElement(jv,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($ge,{...W,strokeColor:C,prefixCls:N,steps:_r(s)?s.count:s},U):h.createElement(Qge,{...W,strokeColor:S,prefixCls:N,direction:O,percentPosition:{align:b,type:x}},U):(f===`circle`||f===`dashboard`)&&(G=h.createElement(Hge,{...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`&&vD(u,`circle`)[0]<=20,[`${N}-line`]:H,[`${N}-line-align-${b}`]:H,[`${N}-line-position-${x}`]:H,[`${N}-steps`]:s,[`${N}-show-info`]:d,[`${N}-small`]:u===`small`,[`${N}-rtl`]:O===`rtl`},k,r,i,z.root,P,F);return h.createElement(`div`,{ref:t,style:B.root,className:ee,role:`progressbar`,"aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100,...Ht(y,[`railColor`,`trailColor`,`strokeWidth`,`width`,`gapDegree`,`gapPosition`,`gapPlacement`,`strokeLinecap`,`success`])},G)}),n_e=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=(vr(_)?_(s):_)?d((vr(b)?b(s):b)||h.createElement(fD,null),()=>T(s),e,a.removeFile,!0):null,L=(vr(v)?v(s):v)&&O===`done`?d((vr(x)?x(s):x)||h.createElement(Oge,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=vr(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=(vr(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},vr(y)?y(s):y||h.createElement(ib,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(Ir),ee=G(),K=h.createElement(`div`,{className:P,style:i?.item},N,H,R,W,A&&h.createElement(or,{motionName:`${ee}-fade`,visible:O===`uploading`,motionDeadline:2e3},({className:t})=>{let n=`percent`in s?h.createElement(t_e,{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(Dy,{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)}),r_e=h.forwardRef((e,t)=>{let{listType:n=`text`,previewFile:r=Tge,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:c,isImageUrl:l=wge,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]=rd(),[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=>{vr(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(Pd,null):s.uploading,i=l?.(e)?h.createElement(yge,null):h.createElement(fE,null);return t?r:i}return t?h.createElement(Pd,null):h.createElement(_ge,null)},I=(e,t,n,r,i)=>{let a={type:`text`,size:`small`,title:r,onClick:n=>{t(),h.isValidElement(e)&&e.props.onClick?.(n)},className:`${n}-list-item-action`,disabled:i?T:!1};return h.isValidElement(e)?h.createElement(Sp,{...a,icon:du(e,{...e.props,onClick:()=>{}})}):h.createElement(Sp,{...a},h.createElement(`span`,null,e))};h.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:N}));let{getPrefixCls:L}=h.useContext(Ir),R=L(`upload`,u),z=L(),B=m(`${R}-list`,`${R}-list-${n}`,E?.list),V=h.useMemo(()=>Ht(Jf(z),[`onAppearEnd`,`onEnterEnd`,`onLeaveEnd`]),[z]),H={...j?{}:V,motionDeadline:2e3,motionName:`${R}-${j?`animate-inline`:`animate`}`,keys:fr(d.map(e=>({key:e.uid,file:e}))),motionAppear:k};return h.createElement(`div`,{className:B,style:D?.list},h.createElement(ar,{...H,component:!1},({key:e,file:t,className:r,style:i})=>h.createElement(n_e,{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(or,{...H,visible:C,forceRender:!0},({className:e,style:t})=>du(S,n=>({className:m(n.className,e),style:{...t,pointerEvents:e?`none`:void 0,...n.style}}))))}),bD=`__LIST_IGNORE_${Date.now()}__`,i_e=h.forwardRef((e,t)=>{let n=zr(`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(gu),L=p??I,R=e.customRequest||n.customRequest,z=n.progress||y?{...n.progress,...y}:void 0,B=Ju(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=fr(t),i=!1;E===1?r=r.slice(-1):E&&(i=r.length>E,r=r.slice(0,E)),(0,yn.flushSync)(()=>{H(r)});let a={file:e,fileList:r};n&&(a.event=n),(!i||e.status===`removed`||r.some(t=>t.uid===e.uid))&&(0,yn.flushSync)(()=>{u?.(a)})},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[bD],e===bD)return Object.defineProperty(t,bD,{value:!0,configurable:!0}),!1;_r(e)&&(i=e)}return i},re=e=>{let t=e.filter(e=>!e.file[bD]);if(!t.length)return;let n=t.map(e=>sD(e.file)),r=fr(U);n.forEach(e=>{r=cD(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(!lD(t,U))return;let r=sD(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n,te(r,cD(r,U))},ae=(e,t)=>{if(!lD(t,U))return;let n=sD(t);n.status=`uploading`,n.percent=e.percent,te(n,cD(n,U),e)},oe=(e,t,n)=>{if(!lD(n,U))return;let r=sD(n);r.error=e,r.response=t,r.status=`error`,te(r,cD(r,U))},se=e=>{let t;Promise.resolve(vr(a)?a(e):a).then(n=>{if(n===!1)return;let r=bge(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}=zr(`upload`),he=le(`upload`,b),ge={...e,listType:s,showUploadList:o,type:S,multiple:O,hasControlInside:k,supportServerRender:M,disabled:L},[_e,ve]=kr([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]=hge(he,xe),[we]=Kc(`Upload`,zc.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(r_e,{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(sge,{...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(sge,{...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())}),a_e=h.forwardRef((e,t)=>{let{style:n,height:r,hasControlInside:i=!1,children:a,...o}=e,s={...n,height:r};return h.createElement(i_e,{ref:t,hasControlInside:i,...o,style:s,type:`drag`},a)}),xD=i_e;xD.Dragger=a_e,xD.LIST_IGNORE=bD;var SD=o(((e,t)=>{function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),o_e=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:`页码`}})),s_e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.commonLocale=void 0,e.commonLocale={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0}})),c_e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={...s_e().commonLocale,locale:`zh_CN`,today:`今天`,now:`此刻`,backToToday:`返回今天`,ok:`确定`,timeSelect:`选择时间`,dateSelect:`选择日期`,weekSelect:`选择周`,clear:`清除`,week:`周`,month:`月`,year:`年`,previousMonth:`上个月 (翻页上键)`,nextMonth:`下个月 (翻页下键)`,monthSelect:`选择月份`,yearSelect:`选择年份`,decadeSelect:`选择年代`,previousYear:`上一年 (Control键加左方向键)`,nextYear:`下一年 (Control键加右方向键)`,previousDecade:`上一年代`,nextDecade:`下一年代`,previousCentury:`上一世纪`,nextCentury:`下一世纪`,yearFormat:`YYYY年`,cellDateFormat:`D`,monthBeforeYear:!1}})),l_e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]}})),u_e=o((e=>{var t=SD().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(c_e()),r=t(l_e()),i={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...n.default},timePickerLocale:{...r.default}};i.lang.ok=`确定`,e.default=i})),d_e=o((e=>{var t=SD().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=t(u_e()).default})),f_e=o((e=>{var t=SD().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(o_e()),r=t(d_e()),i=t(u_e()),a=t(l_e()),o="${label}不是一个有效的${type}";e.default={locale:`zh-cn`,Pagination:n.default,DatePicker:i.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:`请选择`,close:`关闭`,sortable:`可排序`,show:`显示`,hide:`隐藏`},Table:{filterTitle:`筛选`,filterConfirm:`确定`,filterReset:`重置`,filterEmptyText:`无筛选项`,filterCheckAll:`全选`,filterSearchPlaceholder:`在筛选项中搜索`,emptyText:`暂无数据`,selectAll:`全选当页`,selectInvert:`反选当页`,selectNone:`清空所有`,selectionAll:`全选所有`,sortTitle:`排序`,expand:`展开行`,collapse:`关闭行`,triggerDesc:`点击降序`,triggerAsc:`点击升序`,cancelSort:`取消排序`},Modal:{okText:`确定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`结束导览`},Popconfirm:{cancelText:`取消`,okText:`确定`},Transfer:{titles:[``,``],searchPlaceholder:`请输入搜索内容`,itemUnit:`项`,itemsUnit:`项`,remove:`删除`,selectCurrent:`全选当页`,removeCurrent:`删除当页`,selectAll:`全选所有`,deselectAll:`取消全选`,removeAll:`删除全部`,selectInvert:`反选当页`},Upload:{uploading:`文件上传中`,removeFile:`删除文件`,uploadError:`上传错误`,previewFile:`预览文件`,downloadFile:`下载文件`},Empty:{description:`暂无数据`},Icon:{icon:`图标`},Text:{edit:`编辑`,copy:`复制`,copied:`复制成功`,expand:`展开`,collapse:`收起`},Form:{optional:`(可选)`,defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:`二维码过期`,refresh:`点击刷新`,scanned:`已扫描`},ColorPicker:{presetEmpty:`暂无`,transparent:`无色`,singleColor:`单色`,gradientColor:`渐变色`}}})),p_e=o(((e,t)=>{t.exports=f_e()})),m_e=`modulepreload`,h_e=function(e){return`/`+e},g_e={},__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=h_e(t,n),t=s(t),t in g_e)return;g_e[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:m_e,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},CD=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,v_e=/^[\\/]{2}/;function y_e(e,t){return t+e.replace(/\\/g,`/`)}var b_e=`popstate`;function x_e(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function S_e(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return ED(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:DD(t)}return T_e(t,n,null,e)}function wD(e,t){if(e===!1||e==null)throw Error(t)}function TD(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function C_e(){return Math.random().toString(36).substring(2,10)}function w_e(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ED(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?OD(t):t,state:n,key:t&&t.key||r||C_e(),mask:i}}function DD({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function OD(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function T_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=x_e(e)?e:ED(h.location,e,t);n&&n(r,e),l=u()+1;let d=w_e(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=x_e(e)?e:ED(h.location,e,t);n&&n(r,e),l=u();let i=w_e(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return E_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(b_e,d),c=e,()=>{i.removeEventListener(b_e,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function E_e(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),wD(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:DD(t);return i=i.replace(/ $/,`%20`),!n&&v_e.test(i)&&(i=r+i),new URL(i,r)}function D_e(e,t,n=`/`){return O_e(e,t,n,!1)}function O_e(e,t,n,r,i){let a=AD((typeof t==`string`?OD(t):t).pathname||`/`,n);if(a==null)return null;let o=i??A_e(e),s=null,c=K_e(a);for(let e=0;s==null&&e<o.length;++e)s=U_e(o[e],c,r);return s}function k_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 A_e(e){let t=j_e(e);return N_e(t),t}function j_e(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;wD(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=PD([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(wD(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),j_e(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:V_e(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=G_e(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of M_e(e.path))a(e,t,!0,n)}),t}function M_e(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=M_e(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function N_e(e){e.sort((e,t)=>e.score===t.score?H_e(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var P_e=/^:[\w-]+$/,F_e=3,I_e=2,L_e=1,R_e=10,z_e=-2,B_e=e=>e===`*`;function V_e(e,t){let n=e.split(`/`),r=n.length;return n.some(B_e)&&(r+=z_e),t&&(r+=I_e),n.filter(e=>!B_e(e)).reduce((e,t)=>e+(P_e.test(t)?F_e:t===``?L_e:R_e),r)}function H_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 U_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?W_e(u,l,s.matcher,s.compiledParams):kD(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=kD({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:PD([a,d.pathname]),pathnameBase:Z_e(PD([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=PD([a,d.pathnameBase]))}return o}function kD(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=G_e(e.path,e.caseSensitive,e.end);return W_e(e,t,n,r)}function W_e(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function G_e(e,t=!1,n=!0){TD(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function K_e(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return TD(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function AD(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function q_e(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?OD(e):e,a;return n?(n=X_e(n),a=n.startsWith(`/`)?J_e(n.substring(1),`/`):J_e(n,t)):a=t,{pathname:a,search:Q_e(r),hash:$_e(i)}}function J_e(e,t){let n=FD(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function jD(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Y_e(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function MD(e){let t=Y_e(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function ND(e,t,n,r=!1){let i;typeof e==`string`?i=OD(e):(i={...e},wD(!i.pathname||!i.pathname.includes(`?`),jD(`?`,`pathname`,`search`,i)),wD(!i.pathname||!i.pathname.includes(`#`),jD(`#`,`pathname`,`hash`,i)),wD(!i.search||!i.search.includes(`#`),jD(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=q_e(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var X_e=e=>e.replace(/[\\/]{2,}/g,`/`),PD=e=>X_e(e.join(`/`)),FD=e=>e.replace(/\/+$/,``),Z_e=e=>FD(e).replace(/^\/*/,`/`),Q_e=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,$_e=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,eve=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 tve(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function nve(e){return PD(e.map(e=>e.route.path).filter(Boolean))||`/`}var rve=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function ive(e,t){let n=e;if(typeof n!=`string`||!CD.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(rve)try{let e=new URL(window.location.href),r=v_e.test(n)?new URL(y_e(n,e.protocol)):new URL(n),a=AD(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{TD(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var ave=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(ave);var ove=[`GET`,...ave];new Set(ove);var sve=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function cve(e){try{return sve.includes(new URL(e).protocol)}catch{return!1}}var ID=h.createContext(null);ID.displayName=`DataRouter`;var LD=h.createContext(null);LD.displayName=`DataRouterState`;var lve=h.createContext(!1);function uve(){return h.useContext(lve)}var dve=h.createContext({isTransitioning:!1});dve.displayName=`ViewTransition`;var fve=h.createContext(new Map);fve.displayName=`Fetchers`;var pve=h.createContext(null);pve.displayName=`Await`;var RD=h.createContext(null);RD.displayName=`Navigation`;var zD=h.createContext(null);zD.displayName=`Location`;var BD=h.createContext({outlet:null,matches:[],isDataRoute:!1});BD.displayName=`Route`;var VD=h.createContext(null);VD.displayName=`RouteError`;var mve=`REACT_ROUTER_ERROR`,hve=`REDIRECT`,gve=`ROUTE_ERROR_RESPONSE`;function _ve(e){if(e.startsWith(`${mve}:${hve}:{`))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 vve(e){if(e.startsWith(`${mve}:${gve}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new eve(t.status,t.statusText,t.data)}catch{}}function yve(e,{relative:t}={}){wD(HD(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=h.useContext(RD),{hash:i,pathname:a,search:o}=GD(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:PD([n,a])),r.createHref({pathname:s,search:o,hash:i})}function HD(){return h.useContext(zD)!=null}function UD(){return wD(HD(),`useLocation() may be used only in the context of a <Router> component.`),h.useContext(zD).location}var bve=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function xve(e){h.useContext(RD).static||h.useLayoutEffect(e)}function WD(){let{isDataRoute:e}=h.useContext(BD);return e?Rve():Sve()}function Sve(){wD(HD(),`useNavigate() may be used only in the context of a <Router> component.`);let e=h.useContext(ID),{basename:t,navigator:n}=h.useContext(RD),{matches:r}=h.useContext(BD),{pathname:i}=UD(),a=JSON.stringify(MD(r)),o=h.useRef(!1);return xve(()=>{o.current=!0}),h.useCallback((r,s={})=>{if(TD(o.current,bve),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=ND(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:PD([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}h.createContext(null);function Cve(){let{matches:e}=h.useContext(BD);return e[e.length-1]?.params??{}}function GD(e,{relative:t}={}){let{matches:n}=h.useContext(BD),{pathname:r}=UD(),i=JSON.stringify(MD(n));return h.useMemo(()=>ND(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function wve(e,t){return Tve(e,t)}function Tve(e,t,n){wD(HD(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=h.useContext(RD),{matches:i}=h.useContext(BD),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Bve(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=UD(),d;if(t){let e=typeof t==`string`?OD(t):t;wD(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):D_e(e,{pathname:p});TD(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),TD(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=jve(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:PD([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:PD([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?h.createElement(zD.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},g):g}function Eve(){let e=Lve(),t=tve(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 Dve=h.createElement(Eve,null),Ove=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=vve(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:h.createElement(BD.Provider,{value:this.props.routeContext},h.createElement(VD.Provider,{value:e,children:this.props.component}));return this.context?h.createElement(kve,{error:e},t):t}};Ove.contextType=lve;var KD=new WeakMap;function kve({children:e,error:t}){let{basename:n}=h.useContext(RD);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=_ve(t.digest);if(e){let r=KD.get(t);if(r)throw r;let i=ive(e.location,n),a=i.absoluteURL||i.to;if(cve(a))throw Error(`Invalid redirect location`);if(rve&&!KD.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw KD.set(t,n),n}return h.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Ave({routeContext:e,match:t,children:n}){let r=h.useContext(ID);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),h.createElement(BD.Provider,{value:e},n)}function jve(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);wD(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:nve(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||Dve,o&&(s<0&&c===0?(Bve(`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(Ave,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?h.createElement(Ove,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):g()},null)}function qD(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mve(e){let t=h.useContext(ID);return wD(t,qD(e)),t}function JD(e){let t=h.useContext(LD);return wD(t,qD(e)),t}function Nve(e){let t=h.useContext(BD);return wD(t,qD(e)),t}function YD(e){let t=Nve(e),n=t.matches[t.matches.length-1];return wD(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Pve(){return YD(`useRouteId`)}function Fve(){let e=JD(`useNavigation`);return h.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function Ive(){let{matches:e,loaderData:t}=JD(`useMatches`);return h.useMemo(()=>e.map(e=>k_e(e,t)),[e,t])}function Lve(){let e=h.useContext(VD),t=JD(`useRouteError`),n=YD(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Rve(){let{router:e}=Mve(`useNavigate`),t=YD(`useNavigate`),n=h.useRef(!1);return xve(()=>{n.current=!0}),h.useCallback(async(r,i={})=>{TD(n.current,bve),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var zve={};function Bve(e,t,n){!t&&!zve[e]&&(zve[e]=!0,TD(!1,n))}h.memo(Vve);function Vve({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Tve(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function XD({to:e,replace:t,state:n,relative:r}){wD(HD(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=h.useContext(RD);TD(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=h.useContext(BD),{pathname:o}=UD(),s=WD(),c=ND(e,MD(a),o,r===`path`),l=JSON.stringify(c);return h.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function ZD(e){wD(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Hve({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){wD(!HD(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=h.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=OD(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,g=h.useMemo(()=>{let e=AD(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return TD(g!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:h.createElement(RD.Provider,{value:c},h.createElement(zD.Provider,{children:t,value:g}))}function Uve({children:e,location:t}){return wve(QD(e),t)}h.Component;function QD(e,t=[]){let n=[];return h.Children.forEach(e,(e,r)=>{if(!h.isValidElement(e))return;let i=[...t,r];if(e.type===h.Fragment){n.push.apply(n,QD(e.props.children,i));return}wD(e.type===ZD,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),wD(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=QD(e.props.children,i)),n.push(a)}),n}var $D=`get`,eO=`application/x-www-form-urlencoded`;function tO(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Wve(e){return tO(e)&&e.tagName.toLowerCase()===`button`}function Gve(e){return tO(e)&&e.tagName.toLowerCase()===`form`}function Kve(e){return tO(e)&&e.tagName.toLowerCase()===`input`}function qve(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jve(e,t){return e.button===0&&(!t||t===`_self`)&&!qve(e)}function nO(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Yve(e,t){let n=nO(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var rO=null;function Xve(){if(rO===null)try{new FormData(document.createElement(`form`),0),rO=!1}catch{rO=!0}return rO}var Zve=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function iO(e){return e!=null&&!Zve.has(e)?(TD(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${eO}"`),null):e}function Qve(e,t){let n,r,i,a,o;if(Gve(e)){let o=e.getAttribute(`action`);r=o?AD(o,t):null,n=e.getAttribute(`method`)||$D,i=iO(e.getAttribute(`enctype`))||eO,a=new FormData(e)}else if(Wve(e)||Kve(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?AD(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||$D,i=iO(e.getAttribute(`formenctype`))||iO(o.getAttribute(`enctype`))||eO,a=new FormData(o,e),!Xve()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(tO(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=$D,r=null,i=eO,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var $ve={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},eye=/[&><\u2028\u2029]/g;function tye(e){return e.replace(eye,e=>$ve[e])}function aO(e,t){if(e===!1||e==null)throw Error(t)}function nye(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&AD(i.pathname,t)===`/`?i.pathname=`${FD(t)}/_root.${r}`:i.pathname=`${FD(i.pathname)}.${r}`,i}async function rye(e,t){if(e.id in t)return t[e.id];try{let n=await __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 iye(e){return e!=null&&typeof e.page==`string`}function aye(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 oye(e,t,n){return dye((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await rye(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(aye).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function sye(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 cye(e,t,{includeHydrateFallback:n}={}){return lye(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 lye(e){return[...new Set(e)]}function uye(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function dye(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!iye(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(uye(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function oO(){let e=h.useContext(ID);return aO(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function fye(){let e=h.useContext(LD);return aO(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var sO=h.createContext(void 0);sO.displayName=`FrameworkContext`;function cO(){let e=h.useContext(sO);return aO(e,`You must render this element inside a <HydratedRouter> element`),e}function pye(e,t){let n=h.useContext(sO),[r,i]=h.useState(!1),[a,o]=h.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=h.useRef(null);h.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),h.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:lO(s,p),onBlur:lO(c,m),onMouseEnter:lO(l,p),onMouseLeave:lO(u,m),onTouchStart:lO(d,p)}]:[a,f,{}]:[!1,f,{}]}function lO(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function mye({page:e,...t}){let n=uve(),{nonce:r}=cO(),{router:i}=oO(),a=h.useMemo(()=>D_e(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?h.createElement(gye,{page:e,matches:a,...t}):h.createElement(_ye,{page:e,matches:a,...t})):null}function hye(e){let{manifest:t,routeModules:n}=cO(),[r,i]=h.useState([]);return h.useEffect(()=>{let r=!1;return oye(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function gye({page:e,matches:t,...n}){let r=UD(),{future:i}=cO(),{basename:a}=oO(),o=h.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=nye(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 _ye({page:e,matches:t,...n}){let r=UD(),{future:i,manifest:a,routeModules:o}=cO(),{basename:s}=oO(),{loaderData:c,matches:l}=fye(),u=h.useMemo(()=>sye(e,t,l,a,r,`data`),[e,t,l,a,r]),d=h.useMemo(()=>sye(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=nye(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(()=>cye(d,a),[d,a]),m=hye(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 vye(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}h.Component;var yye=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{yye&&(window.__reactRouterVersion=`7.18.0`)}catch{}function bye({basename:e,children:t,useTransitions:n,window:r}){let i=h.useRef();i.current??=S_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 xye({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})}xye.displayName=`unstable_HistoryRouter`;var uO=h.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:g,navigator:_,useTransitions:v}=h.useContext(RD),y=typeof l==`string`&&CD.test(l),b=ive(l,g);l=b.to;let x=yve(l,{relative:r}),S=UD(),C=null;if(o){let e=ND(o,[],S.mask?S.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:PD([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=pye(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:vye(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?h.createElement(h.Fragment,null,A,h.createElement(mye,{page:x})):A});uO.displayName=`Link`;var Sye=h.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=GD(a,{relative:c.relative}),d=UD(),f=h.useContext(LD),{navigator:p,basename:m}=h.useContext(RD),g=f!=null&&Pye(u)&&o===!0,_=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&m&&(y=AD(y,m)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return h.createElement(uO,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Sye.displayName=`NavLink`;var Cye=h.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=$D,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:g}=h.useContext(RD),_=Aye(),v=jye(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&CD.test(s);return h.createElement(`form`,{ref:m,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});g&&n!==!1?h.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});Cye.displayName=`Form`;function wye({getKey:e,storageKey:t,...n}){let r=h.useContext(sO),{basename:i}=h.useContext(RD),a=UD(),o=Ive();Mye({getKey:e,storageKey:t});let s=h.useMemo(()=>{if(!r||!e)return null;let t=hO(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})(${tye(JSON.stringify(t||pO))}, ${tye(JSON.stringify(s))})`}})}wye.displayName=`ScrollRestoration`;function dO(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fO(e){let t=h.useContext(ID);return wD(t,dO(e)),t}function Tye(e){let t=h.useContext(LD);return wD(t,dO(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=WD(),d=UD(),f=GD(e,{relative:o});return h.useCallback(p=>{if(Jve(p,t)){p.preventDefault();let t=n===void 0?DD(d)===DD(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?h.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Dye(e){TD(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=h.useRef(nO(e)),n=h.useRef(!1),r=UD(),i=h.useMemo(()=>Yve(r.search,n.current?null:t.current),[r.search]),a=WD();return[i,h.useCallback((e,t)=>{let r=nO(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Oye=0,kye=()=>`__${String(++Oye)}__`;function Aye(){let{router:e}=fO(`useSubmit`),{basename:t}=h.useContext(RD),n=Pve(),r=e.fetch,i=e.navigate;return h.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Qve(e,t);a.navigate===!1?await r(a.fetcherKey||kye(),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 jye(e,{relative:t}={}){let{basename:n}=h.useContext(RD),r=h.useContext(BD);wD(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...GD(e||`.`,{relative:t})},o=UD();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:PD([n,a.pathname])),DD(a)}var pO=`react-router-scroll-positions`,mO={};function hO(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:AD(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Mye({getKey:e,storageKey:t}={}){let{router:n}=fO(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Tye(`useScrollRestoration`),{basename:a}=h.useContext(RD),o=UD(),s=Ive(),c=Fve();h.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Nye(h.useCallback(()=>{if(c.state===`idle`){let t=hO(o,s,a,e);mO[t]=window.scrollY}try{sessionStorage.setItem(t||pO,JSON.stringify(mO))}catch(e){TD(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(h.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||pO);e&&(mO=JSON.parse(e))}catch{}},[t]),h.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(mO,()=>window.scrollY,e?(t,n)=>hO(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),h.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{TD(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Nye(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 Pye(e,{relative:t}={}){let n=h.useContext(dve);wD(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=fO(`useViewTransitionState`),i=GD(e,{relative:t});if(!n.isTransitioning)return!1;let a=AD(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=AD(n.nextLocation.pathname,r)||n.nextLocation.pathname;return kD(i.pathname,o)!=null||kD(i.pathname,a)!=null}function gO(e,t){return function(){return e.apply(t,arguments)}}var{toString:Fye}=Object.prototype,{getPrototypeOf:_O}=Object,{iterator:vO,toStringTag:yO}=Symbol,bO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xO=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),bO(n,t))return!0;n=_O(n)}return!1},Iye=(e,t)=>e!=null&&xO(e,t)?e[t]:void 0,SO=(e=>t=>{let n=Fye.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),CO=e=>(e=e.toLowerCase(),t=>SO(t)===e),wO=e=>t=>typeof t===e,{isArray:TO}=Array,EO=wO(`undefined`);function DO(e){return e!==null&&!EO(e)&&e.constructor!==null&&!EO(e.constructor)&&kO(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var OO=CO(`ArrayBuffer`);function Lye(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&OO(e.buffer),t}var Rye=wO(`string`),kO=wO(`function`),AO=wO(`number`),jO=e=>typeof e==`object`&&!!e,zye=e=>e===!0||e===!1,MO=e=>{if(!jO(e))return!1;let t=_O(e);return(t===null||t===Object.prototype||_O(t)===null)&&!xO(e,yO)&&!xO(e,vO)},Bye=e=>{if(!jO(e)||DO(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Vye=CO(`Date`),Hye=CO(`File`),Uye=e=>!!(e&&e.uri!==void 0),Wye=e=>e&&e.getParts!==void 0,Gye=CO(`Blob`),Kye=CO(`FileList`),qye=e=>jO(e)&&kO(e.pipe);function Jye(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var NO=Jye(),PO=NO.FormData===void 0?void 0:NO.FormData,Yye=e=>{if(!e)return!1;if(PO&&e instanceof PO)return!0;let t=_O(e);if(!t||t===Object.prototype||!kO(e.append))return!1;let n=SO(e);return n===`formdata`||n===`object`&&kO(e.toString)&&e.toString()===`[object FormData]`},Xye=CO(`URLSearchParams`),[Zye,Qye,$ye,ebe]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(CO),tbe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function FO(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),TO(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(DO(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 IO(e,t){if(DO(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 LO=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,RO=e=>!EO(e)&&e!==LO;function zO(...e){let{caseless:t,skipUndefined:n}=RO(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&IO(r,i)||i,o=bO(r,a)?r[a]:void 0;MO(o)&&MO(e)?r[a]=zO(o,e):MO(e)?r[a]=zO({},e):TO(e)?r[a]=e.slice():(!n||!EO(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||DO(n)||(FO(n,i),typeof n!=`object`||TO(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];pbe.call(n,t)&&i(n[t],t)}}return r}var nbe=(e,t,n,{allOwnKeys:r}={})=>(FO(t,(t,r)=>{n&&kO(t)?Object.defineProperty(e,r,{__proto__:null,value:gO(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),rbe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ibe=(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)},abe=(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&&_O(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},obe=(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},sbe=e=>{if(!e)return null;if(TO(e))return e;let t=e.length;if(!AO(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},cbe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&_O(Uint8Array)),lbe=(e,t)=>{let n=(e&&e[vO]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},ube=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dbe=CO(`HTMLFormElement`),fbe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:pbe}=Object.prototype,mbe=CO(`RegExp`),BO=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};FO(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},hbe=e=>{BO(e,(t,n)=>{if(kO(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(kO(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},gbe=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return TO(e)?r(e):r(String(e).split(t)),n},_be=()=>{},vbe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ybe(e){return!!(e&&kO(e.append)&&e[yO]===`FormData`&&e[vO])}var bbe=e=>{let t=new WeakSet,n=e=>{if(jO(e)){if(t.has(e))return;if(DO(e))return e;if(!(`toJSON`in e)){t.add(e);let r=TO(e)?[]:{};return FO(e,(e,t)=>{let i=n(e);!EO(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},xbe=CO(`AsyncFunction`),Sbe=e=>e&&(jO(e)||kO(e))&&kO(e.then)&&kO(e.catch),VO=((e,t)=>e?setImmediate:t?((e,t)=>(LO.addEventListener(`message`,({source:n,data:r})=>{n===LO&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),LO.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,kO(LO.postMessage)),Cbe=typeof queueMicrotask<`u`?queueMicrotask.bind(LO):typeof process<`u`&&process.nextTick||VO,HO=e=>e!=null&&kO(e[vO]),J={isArray:TO,isArrayBuffer:OO,isBuffer:DO,isFormData:Yye,isArrayBufferView:Lye,isString:Rye,isNumber:AO,isBoolean:zye,isObject:jO,isPlainObject:MO,isEmptyObject:Bye,isReadableStream:Zye,isRequest:Qye,isResponse:$ye,isHeaders:ebe,isUndefined:EO,isDate:Vye,isFile:Hye,isReactNativeBlob:Uye,isReactNative:Wye,isBlob:Gye,isRegExp:mbe,isFunction:kO,isStream:qye,isURLSearchParams:Xye,isTypedArray:cbe,isFileList:Kye,forEach:FO,merge:zO,extend:nbe,trim:tbe,stripBOM:rbe,inherits:ibe,toFlatObject:abe,kindOf:SO,kindOfTest:CO,endsWith:obe,toArray:sbe,forEachEntry:lbe,matchAll:ube,isHTMLForm:dbe,hasOwnProperty:bO,hasOwnProp:bO,hasOwnInPrototypeChain:xO,getSafeProp:Iye,reduceDescriptors:BO,freezeMethods:hbe,toObjectSet:gbe,toCamelCase:fbe,noop:_be,toFiniteNumber:vbe,findKey:IO,global:LO,isContextDefined:RO,isSpecCompliantForm:ybe,toJSONObject:bbe,isAsyncFn:xbe,isThenable:Sbe,setImmediate:VO,asap:Cbe,isIterable:HO,isSafeIterable:e=>e!=null&&xO(e,vO)&&HO(e)},wbe=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`]),Tbe=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]&&wbe[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function Ebe(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 Dbe=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Obe=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function UO(e,t){return J.isArray(e)?e.map(e=>UO(e,t)):Ebe(String(e).replace(t,``))}var kbe=e=>UO(e,Dbe),Abe=e=>UO(e,Obe);function WO(e){let t=Object.create(null);return J.forEach(e.toJSON(),(e,n)=>{t[n]=Abe(e)}),t}var GO=Symbol(`internals`);function KO(e){return e&&String(e).trim().toLowerCase()}function qO(e){return e===!1||e==null?e:J.isArray(e)?e.map(qO):kbe(String(e))}function jbe(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 Mbe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function JO(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 Nbe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Pbe(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 YO=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=KO(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]=qO(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())&&!Mbe(e))a(Tbe(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=KO(e),e){let n=J.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return jbe(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=KO(e),e){let n=J.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||JO(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=KO(e),e){let i=J.findKey(n,e);i&&(!t||JO(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||JO(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]=qO(r),delete t[i];return}let o=e?Nbe(i):String(i).trim();o!==i&&delete t[i],t[o]=qO(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[GO]=this[GO]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=KO(e);t[r]||(Pbe(n,e),t[r]=!0)}return J.isArray(e)?e.forEach(r):r(e),this}};YO.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),J.reduceDescriptors(YO.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),J.freezeMethods(YO);var Fbe=`[REDACTED ****]`;function Ibe(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 Lbe(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 YO&&(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)&&Ibe(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?Fbe:i(a);J.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var XO=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?Lbe(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}}};XO.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,XO.ERR_BAD_OPTION=`ERR_BAD_OPTION`,XO.ECONNABORTED=`ECONNABORTED`,XO.ETIMEDOUT=`ETIMEDOUT`,XO.ECONNREFUSED=`ECONNREFUSED`,XO.ERR_NETWORK=`ERR_NETWORK`,XO.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,XO.ERR_DEPRECATED=`ERR_DEPRECATED`,XO.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,XO.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,XO.ERR_CANCELED=`ERR_CANCELED`,XO.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,XO.ERR_INVALID_URL=`ERR_INVALID_URL`,XO.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function ZO(e){return J.isPlainObject(e)||J.isArray(e)}function QO(e){return J.endsWith(e,`[]`)?e.slice(0,-2):e}function $O(e,t,n){return e?e.concat(t).map(function(e,t){return e=QO(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Rbe(e){return J.isArray(e)&&!e.some(ZO)}var zbe=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});function ek(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 XO(`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 XO(`Blob is not supported. Use a Buffer instead.`,XO.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new XO(`Object is too deeply nested (`+e+` levels). Max depth: `+c,XO.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($O(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)&&Rbe(e)||(J.isFileList(e)||J.endsWith(n,`[]`))&&(s=J.toArray(e)))return n=QO(n),s.forEach(function(e,r){!(J.isUndefined(e)||e===null)&&t.append(o===!0?$O([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return ZO(e)?!0:(t.append($O(i,n,a),d(e)),!1)}let h=Object.assign(zbe,{defaultVisitor:m,convertValue:d,isVisitable:ZO});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 tk(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function nk(e,t){this._pairs=[],e&&ek(e,this,t)}var rk=nk.prototype;rk.append=function(e,t){this._pairs.push([e,t])},rk.toString=function(e){let t=e?t=>e.call(this,t,tk):tk;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Bbe(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function ik(e,t,n){if(!t)return e;e||=``;let r=J.isFunction(n)?{serialize:n}:n,i=J.getSafeProp(r,`encode`)||Bbe,a=J.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):J.isURLSearchParams(t)?t.toString():new nk(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var ak=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)})}},ok={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Vbe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:nk,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Hbe=s({hasBrowserEnv:()=>sk,hasStandardBrowserEnv:()=>Ube,hasStandardBrowserWebWorkerEnv:()=>Wbe,navigator:()=>ck,origin:()=>Gbe}),sk=typeof window<`u`&&typeof document<`u`,ck=typeof navigator==`object`&&navigator||void 0,Ube=sk&&(!ck||[`ReactNative`,`NativeScript`,`NS`].indexOf(ck.product)<0),Wbe=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Gbe=sk&&window.location.href||`http://localhost`,lk={...Hbe,...Vbe};function Kbe(e,t){return ek(e,new lk.classes.URLSearchParams,{visitor:function(e,t,n,r){return lk.isNode&&J.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var uk=100;function dk(e){if(e>uk)throw new XO(`FormData field is too deeply nested (`+e+` levels). Max depth: `+uk,XO.ERR_FORM_DATA_DEPTH_EXCEEDED)}function qbe(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)dk(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Jbe(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 fk(e){function t(e,n,r,i){dk(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]=Jbe(r[a])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){let n={};return J.forEachEntry(e,(e,r)=>{t(qbe(e),r,n,0)}),n}return null}var pk=(e,t)=>e!=null&&J.hasOwnProp(e,t)?e[t]:void 0;function Ybe(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 mk={transitional:ok,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(fk(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=pk(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Kbe(e,t).toString();if((a=J.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=pk(this,`env`),r=n&&n.FormData;return ek(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Ybe(e)):e}],transformResponse:[function(e){let t=pk(this,`transitional`)||mk.transitional,n=t&&t.forcedJSONParsing,r=pk(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,pk(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?XO.from(e,XO.ERR_BAD_RESPONSE,this,null,pk(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:lk.classes.FormData,Blob:lk.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=>{mk.headers[e]={}});function hk(e,t){let n=this||mk,r=t||n,i=YO.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 gk(e){return!!(e&&e.__CANCEL__)}var _k=class extends XO{constructor(e,t,n){super(e??`canceled`,XO.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function vk(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new XO(`Request failed with status code `+n.status,n.status>=400&&n.status<500?XO.ERR_BAD_REQUEST:XO.ERR_BAD_RESPONSE,n.config,n.request,n))}function Xbe(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Zbe(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 Qbe(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 yk=(e,t,n=3)=>{let r=0,i=Zbe(50,250);return Qbe(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)},bk=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xk=e=>(...t)=>J.asap(()=>e(...t)),$be=lk.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,lk.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(lk.origin),lk.navigator&&/(msie|trident)/i.test(lk.navigator.userAgent)):()=>!0,exe=lk.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 txe(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function nxe(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var rxe=/^https?:(?!\/\/)/i,ixe=/[\t\n\r]/g;function axe(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function oxe(e){return axe(e).replace(ixe,``)}function Sk(e,t){if(typeof e==`string`&&rxe.test(oxe(e)))throw new XO(`Invalid URL: missing "//" after protocol`,XO.ERR_INVALID_URL,t)}function Ck(e,t,n,r){Sk(t,r);let i=!txe(t);return e&&(i||n===!1)?(Sk(e,r),nxe(e,t)):t}var wk=e=>e instanceof YO?{...e}:e;function Tk(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(wk(e),wk(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 sxe=[`content-type`,`content-length`];function cxe(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{sxe.includes(t.toLowerCase())&&e.set(t,n)})}var lxe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Ek(e){let t=Tk({},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=YO.from(s),t.url=ik(Ck(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?lxe(n):``)))}catch(t){throw XO.from(t,XO.ERR_BAD_OPTION_VALUE,e)}}if(J.isFormData(r)&&(lk.hasStandardBrowserEnv||lk.hasStandardBrowserWebWorkerEnv||J.isReactNative(r)?s.setContentType(void 0):J.isFunction(r.getHeaders)&&cxe(s,r.getHeaders(),n(`formDataHeaderPolicy`))),lk.hasStandardBrowserEnv&&(J.isFunction(i)&&(i=i(t)),i===!0||i==null&&$be(t.url))){let e=a&&o&&exe.read(o);e&&s.set(a,e)}return t}var uxe=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Ek(e),i=r.data,a=YO.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=YO.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());vk(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 XO(`Request aborted`,XO.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new XO(t&&t.message?t.message:`Network Error`,XO.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||ok;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new XO(t,i.clarifyTimeoutError?XO.ETIMEDOUT:XO.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&J.forEach(WO(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]=yk(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=yk(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new _k(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 _=Xbe(r.url);if(_&&!lk.protocols.includes(_)){n(new XO(`Unsupported protocol `+_+`:`,XO.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},dxe=(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 XO?t:new _k(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new XO(`timeout of ${t}ms exceeded`,XO.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},fxe=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},pxe=async function*(e,t){for await(let n of mxe(e))yield*fxe(n,t)},mxe=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()}},Dk=(e,t,n,r)=>{let i=pxe(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})},Ok=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,hxe=(e,t,n)=>t+2<n&&Ok(e.charCodeAt(t+1))&&Ok(e.charCodeAt(t+2));function gxe(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);Ok(t)&&Ok(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&&hxe(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 kk=`1.18.1`,Ak=64*1024,{isFunction:jk}=J,_xe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Mk=e=>{if(!J.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Nk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vxe=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},yxe=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?jk(i):typeof fetch==`function`,c=jk(a),l=jk(o);if(!s)return!1;let u=s&&jk(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&&Nk(()=>{let e=!1,t=new a(lk.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&&Nk(()=>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 XO(`Response type '${e}' is not supported`,XO.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(lk.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}=Ek(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=dxe([l,d&&d.toAbortSignal()],_),j=null,M=A&&A.unsubscribe&&(()=>{A.unsubscribe()}),N,P=null,F=()=>new XO(`Request body larger than maxBodyLength limit`,XO.ERR_BAD_REQUEST,e,j);try{let i,l=O(`auth`);if(l&&(i={username:J.getSafeProp(l,`username`)||``,password:J.getSafeProp(l,`password`)||``}),vxe(t)){let e=new URL(t,lk.origin);!i&&(e.username||e.password)&&(i={username:Mk(e.username),password:Mk(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(_xe((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&gxe(t)>w)throw new XO(`maxContentLength size of `+w+` exceeded`,XO.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)=>Dk(e,Ak,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&&bk(N,yk(xk(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 XO(`Stream request bodies are not supported by the current fetch implementation`,XO.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/`+kk,!1);let L={...C,signal:A,method:n.toUpperCase(),headers:WO(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=YO.from(R.headers);if(E){let t=J.toFiniteNumber(z.getContentLength());if(t!=null&&t>w)throw new XO(`maxContentLength size of `+w+` exceeded`,XO.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&&bk(n,yk(xk(v),!0))||[],a=0;R=new o(Dk(R.body,Ak,t=>{if(E&&(a=t,a>w))throw new XO(`maxContentLength size of `+w+` exceeded`,XO.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 XO(`maxContentLength size of `+w+` exceeded`,XO.ERR_BAD_RESPONSE,e,j)}return!B&&M&&M(),await new Promise((t,n)=>{vk(t,n,{data:V,headers:YO.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:j})})}catch(t){if(M&&M(),A&&A.aborted&&A.reason instanceof XO){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 XO)throw j&&!t.request&&(t.request=j),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new XO(`Network Error`,XO.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 XO.from(t,t&&t.code,e,j,t&&t.response)}}},bxe=new Map,Pk=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=bxe;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:yxe(t)),l=c;return c};Pk();var Fk={http:null,xhr:uxe,fetch:{get:Pk}};J.forEach(Fk,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Ik=e=>`- ${e}`,xxe=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,!xxe(r)&&(i=Fk[(n=String(r)).toLowerCase()],i===void 0))throw new XO(`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 XO(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
||
`+e.map(Ik).join(`
|
||
`):` `+Ik(e[0]):`as no adapter specified`),XO.ERR_NOT_SUPPORT)}return i}var Lk={getAdapter:Sxe,adapters:Fk};function Rk(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _k(null,e)}function zk(e){return Rk(e),e.headers=YO.from(e.headers),e.data=hk.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Lk.getAdapter(e.adapter||mk.adapter,e)(e).then(function(t){Rk(e),e.response=t;try{t.data=hk.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=YO.from(t.headers),t},function(t){if(!gk(t)&&(Rk(e),t&&t.response)){e.response=t.response;try{t.response.data=hk.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=YO.from(t.response.headers)}return Promise.reject(t)})}var Bk={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Bk[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Vk={};Bk.transitional=function(e,t,n){function r(e,t){return`[Axios v`+kk+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new XO(r(i,` has been removed`+(t?` in `+t:``)),XO.ERR_DEPRECATED);return t&&!Vk[i]&&(Vk[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}},Bk.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 XO(`options must be an object`,XO.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 XO(`option `+a+` must be `+n,XO.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new XO(`Unknown option `+a,XO.ERR_BAD_OPTION)}}var Hk={assertOptions:Cxe,validators:Bk},Uk=Hk.validators,Wk=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ak,response:new ak}}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=Tk(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Hk.assertOptions(n,{silentJSONParsing:Uk.transitional(Uk.boolean),forcedJSONParsing:Uk.transitional(Uk.boolean),clarifyTimeoutError:Uk.transitional(Uk.boolean),legacyInterceptorReqResOrdering:Uk.transitional(Uk.boolean),advertiseZstdAcceptEncoding:Uk.transitional(Uk.boolean),validateStatusUndefinedResolves:Uk.transitional(Uk.boolean)},!1),r!=null&&(J.isFunction(r)?t.paramsSerializer={serialize:r}:Hk.assertOptions(r,{encode:Uk.function,serialize:Uk.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Hk.assertOptions(t,{baseUrl:Uk.spelling(`baseURL`),withXsrfToken:Uk.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=YO.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||ok;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=[zk.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=zk.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=Tk(this.defaults,e),ik(Ck(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};J.forEach([`delete`,`get`,`head`,`options`],function(e){Wk.prototype[e]=function(t,n){return this.request(Tk(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(Tk(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Wk.prototype[e]=t(),e!==`query`&&(Wk.prototype[e+`Form`]=t(!0))});var wxe=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 _k(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 Txe(e){return function(t){return e.apply(null,t)}}function Exe(e){return J.isObject(e)&&e.isAxiosError===!0}var Gk={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(Gk).forEach(([e,t])=>{Gk[t]=e});function Kk(e){let t=new Wk(e),n=gO(Wk.prototype.request,t);return J.extend(n,Wk.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Kk(Tk(e,t))},n}var qk=Kk(mk);qk.Axios=Wk,qk.CanceledError=_k,qk.CancelToken=wxe,qk.isCancel=gk,qk.VERSION=kk,qk.toFormData=ek,qk.AxiosError=XO,qk.Cancel=qk.CanceledError,qk.all=function(e){return Promise.all(e)},qk.spread=Txe,qk.isAxiosError=Exe,qk.mergeConfig=Tk,qk.AxiosHeaders=YO,qk.formToJSON=e=>fk(J.isHTMLForm(e)?new FormData(e):e),qk.getAdapter=Lk.getAdapter,qk.HttpStatusCode=Gk,qk.default=qk;var Dxe=l(p_e(),1),Jk=qk.create({baseURL:`/api`});Jk.interceptors.request.use(e=>{let t=localStorage.getItem(`access_token`);return t&&(e.headers.Authorization=`Bearer ${t}`),e}),Jk.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 qk.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}`,Jk(t)}catch{localStorage.removeItem(`access_token`),localStorage.removeItem(`refresh_token`),window.location.href=`/login`}}return Promise.reject(e)});var Yk={register:(e,t)=>Jk.post(`/auth/register`,{username:e,password:t}),login:(e,t)=>Jk.post(`/auth/login`,{username:e,password:t}),me:()=>Jk.get(`/auth/me`)},Oxe={public:()=>Jk.get(`/settings/public`)},Xk={getSettings:()=>Jk.get(`/admin/settings`),updateSettings:e=>Jk.patch(`/admin/settings`,e),updateProfile:e=>Jk.patch(`/admin/profile`,e),listUsers:()=>Jk.get(`/admin/users`),createUser:e=>Jk.post(`/admin/users`,e),resetUserPassword:(e,t)=>Jk.patch(`/admin/users/${e}`,{password:t}),deleteUser:e=>Jk.delete(`/admin/users/${e}`)},Zk={list:()=>Jk.get(`/students`),create:e=>Jk.post(`/students`,e),get:e=>Jk.get(`/students/${e}`),update:(e,t)=>Jk.patch(`/students/${e}`,t),remove:e=>Jk.delete(`/students/${e}`)},kxe={list:()=>Jk.get(`/subjects`)},Qk={list:e=>Jk.get(`/students/${e}/exams`),create:(e,t)=>Jk.post(`/students/${e}/exams`,t),update:(e,t)=>Jk.patch(`/exams/${e}`,t),updateReview:(e,t)=>Jk.patch(`/exams/${e}/review`,{reviews:t}),remove:e=>Jk.delete(`/exams/${e}`),trend:(e,t)=>Jk.get(`/students/${e}/scores/trend`,{params:{subject_id:t}}),exportCsv:e=>Jk.get(`/students/${e}/scores/export`,{responseType:`blob`})},$k={list:(e,t)=>Jk.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),Jk.post(`/students/${e}/wrong-questions`,i)},get:e=>Jk.get(`/wrong-questions/${e}`),update:(e,t)=>Jk.patch(`/wrong-questions/${e}`,t),remove:e=>Jk.delete(`/wrong-questions/${e}`),retryOcr:e=>Jk.post(`/wrong-questions/${e}/retry-ocr`),regenerate:e=>Jk.post(`/wrong-questions/${e}/regenerate-solution`),imageUrl:e=>`/api/wrong-questions/${e}/image`},Axe=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=Axe()}))(),eA=(0,h.createContext)(null);function jxe({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}Yk.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 Yk.login(e,t);localStorage.setItem(`access_token`,r.access_token),localStorage.setItem(`refresh_token`,r.refresh_token),n((await Yk.me()).data)};return(0,Y.jsx)(eA.Provider,{value:{user:t,loading:r,login:a,register:async(e,t)=>{await Yk.register(e,t),await a(e,t)},logout:()=>{localStorage.removeItem(`access_token`),localStorage.removeItem(`refresh_token`),n(null)}},children:e})}function tA(){let e=(0,h.useContext)(eA);if(!e)throw Error(`useAuth must be used within AuthProvider`);return e}var Mxe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`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 nA(){return nA=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},nA.apply(this,arguments)}var Nxe=h.forwardRef((e,t)=>h.createElement(W,nA({},e,{ref:t,icon:Mxe.default}))),Pxe=l(o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`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 rA(){return rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rA.apply(this,arguments)}var Fxe=h.forwardRef((e,t)=>h.createElement(W,rA({},e,{ref:t,icon:Pxe.default}))),Ixe=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 iA(){return iA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iA.apply(this,arguments)}var aA=h.forwardRef((e,t)=>h.createElement(W,iA({},e,{ref:t,icon:Ixe.default}))),Lxe=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 oA(){return oA=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},oA.apply(this,arguments)}var Rxe=h.forwardRef((e,t)=>h.createElement(W,oA({},e,{ref:t,icon:Lxe.default}))),zxe=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 sA(){return sA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sA.apply(this,arguments)}var Bxe=h.forwardRef((e,t)=>h.createElement(W,sA({},e,{ref:t,icon:zxe.default}))),Vxe=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 cA(){return cA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cA.apply(this,arguments)}var lA=h.forwardRef((e,t)=>h.createElement(W,cA({},e,{ref:t,icon:Vxe.default}))),Hxe=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 uA(){return uA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uA.apply(this,arguments)}var dA=h.forwardRef((e,t)=>h.createElement(W,uA({},e,{ref:t,icon:Hxe.default}))),Uxe=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 fA(){return fA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fA.apply(this,arguments)}var pA=h.forwardRef((e,t)=>h.createElement(W,fA({},e,{ref:t,icon:Uxe.default})));function mA(e,t){if(qk.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 Wxe(){let{user:e,login:t,register:n,loading:r}=tA(),i=WD(),[a]=jy.useForm(),[o]=jy.useForm(),[s,c]=(0,h.useState)(!0),[l,u]=(0,h.useState)(!0);if((0,h.useEffect)(()=>{Oxe.public().then(e=>c(e.data.registration_enabled)).catch(()=>c(!0)).finally(()=>u(!1))},[]),!r&&e)return(0,Y.jsx)(XD,{to:`/`,replace:!0});let d=async e=>{try{await t(e.username,e.password),ax.success(`登录成功`),i(`/`)}catch(e){ax.error(mA(e,`用户名或密码错误`))}},f=async e=>{if(e.password!==e.confirm){ax.error(`两次密码不一致`);return}try{await n(e.username,e.password),ax.success(`注册成功`),i(`/`)}catch(e){ax.error(mA(e,`注册失败,请稍后重试`))}},p=[{key:`login`,label:`登录`,children:(0,Y.jsxs)(jy,{form:a,onFinish:d,layout:`vertical`,children:[(0,Y.jsx)(jy.Item,{name:`username`,rules:[{required:!0,message:`请输入用户名`}],children:(0,Y.jsx)(ob,{prefix:(0,Y.jsx)(pA,{}),placeholder:`用户名`})}),(0,Y.jsx)(jy.Item,{name:`password`,rules:[{required:!0,message:`请输入密码`}],children:(0,Y.jsx)(ob.Password,{prefix:(0,Y.jsx)(aA,{}),placeholder:`密码`})}),(0,Y.jsx)(Cp,{type:`primary`,htmlType:`submit`,block:!0,children:`登录`})]})}];return s&&p.push({key:`register`,label:`注册`,children:(0,Y.jsxs)(jy,{form:o,onFinish:f,layout:`vertical`,children:[(0,Y.jsx)(jy.Item,{name:`username`,rules:[{required:!0,message:`请输入用户名`},{min:3,message:`至少3个字符`}],children:(0,Y.jsx)(ob,{prefix:(0,Y.jsx)(pA,{}),placeholder:`用户名`})}),(0,Y.jsx)(jy.Item,{name:`password`,rules:[{required:!0,message:`请输入密码`},{min:6,message:`至少6个字符`}],children:(0,Y.jsx)(ob.Password,{prefix:(0,Y.jsx)(aA,{}),placeholder:`密码`})}),(0,Y.jsx)(jy.Item,{name:`confirm`,rules:[{required:!0,message:`请确认密码`}],children:(0,Y.jsx)(ob.Password,{prefix:(0,Y.jsx)(aA,{}),placeholder:`确认密码`})}),(0,Y.jsx)(Cp,{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)(pg,{style:{width:`100%`,maxWidth:420},title:`中学生成绩档案`,children:[(0,Y.jsx)(eD.Paragraph,{type:`secondary`,style:{textAlign:`center`},children:`成绩录入 · 趋势分析 · 错题管理`}),(0,Y.jsxs)(LC,{spinning:l,children:[!l&&!s&&(0,Y.jsx)(eD.Paragraph,{type:`secondary`,style:{textAlign:`center`,marginBottom:16},children:`注册已关闭,请联系管理员获取账号`}),(0,Y.jsx)(dg,{items:p})]}),(0,Y.jsx)(eD.Paragraph,{type:`secondary`,style:{textAlign:`center`,fontSize:12,marginTop:16,marginBottom:0},children:`© 马建军 · 微信 dekun03 · 18364911125`})]})})}function Gxe(){let{user:e}=tA(),[t,n]=(0,h.useState)(null),[r,i]=(0,h.useState)([]),[a,o]=(0,h.useState)(!0),[s]=jy.useForm(),[c]=jy.useForm(),[l,u]=(0,h.useState)(!1),[d,f]=(0,h.useState)(null),[p]=jy.useForm(),[m]=jy.useForm(),g=jy.useWatch(`ai_provider`,m);if(!e?.is_superuser)return(0,Y.jsx)(XD,{to:`/`,replace:!0});let _=async()=>{o(!0);try{let[t,r]=await Promise.all([Xk.getSettings(),Xk.listUsers()]);n(t.data),i(r.data),s.setFieldsValue({username:e.username}),m.setFieldsValue({ai_provider:t.data.ai_provider,ollama_base_url:t.data.ollama_base_url||``,ollama_model:t.data.ollama_model||``,openai_base_url:t.data.openai_base_url||``,openai_model:t.data.openai_model||``,openai_api_key:``,ocr_service_url:t.data.ocr_service_url||``})}finally{o(!1)}};(0,h.useEffect)(()=>{_()},[]);let v=async e=>{let{data:t}=await Xk.updateSettings({registration_enabled:e});n(t),ax.success(e?`已开放注册`:`已关闭注册`)},y=async t=>{if(t.password&&t.password!==t.confirm){ax.error(`两次密码不一致`);return}await Xk.updateProfile({username:t.username===e?.username?void 0:t.username,current_password:t.password?t.current_password:void 0,password:t.password||void 0}),ax.success(`账号信息已更新,若修改了用户名或密码请重新登录`)},b=async e=>{await Xk.createUser(e),ax.success(`用户已创建`),u(!1),c.resetFields(),_()},x=async e=>{d&&(await Xk.resetUserPassword(d.id,e.password),ax.success(`密码已重置`),f(null),p.resetFields())},S=async e=>{await Xk.deleteUser(e),ax.success(`用户已删除`),_()};return(0,Y.jsxs)(`div`,{className:`page-container`,children:[(0,Y.jsxs)(Iy,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(eD.Title,{level:3,style:{margin:0},children:`系统设置`}),(0,Y.jsxs)(eD.Text,{type:`secondary`,children:[`超级管理员 · `,(0,Y.jsx)(uO,{to:`/`,children:`返回首页`})]})]}),(0,Y.jsx)(dg,{items:[{key:`general`,label:`基本设置`,children:(0,Y.jsxs)(Iy,{direction:`vertical`,size:`large`,style:{width:`100%`},children:[(0,Y.jsx)(pg,{title:`注册开关`,loading:a,children:(0,Y.jsxs)(Iy,{children:[(0,Y.jsx)(BC,{checked:t?.registration_enabled??!0,onChange:v}),(0,Y.jsx)(eD.Text,{children:t?.registration_enabled?`开放注册:用户可在登录页自行注册`:`关闭注册:仅超级管理员可添加用户`})]})}),(0,Y.jsx)(pg,{title:`管理员账号`,children:(0,Y.jsxs)(jy,{form:s,layout:`vertical`,onFinish:y,children:[(0,Y.jsx)(jy.Item,{name:`username`,label:`用户名`,rules:[{required:!0,min:3}],children:(0,Y.jsx)(ob,{prefix:(0,Y.jsx)(pA,{})})}),(0,Y.jsx)(jy.Item,{name:`current_password`,label:`当前密码(修改密码时必填)`,children:(0,Y.jsx)(ob.Password,{prefix:(0,Y.jsx)(aA,{})})}),(0,Y.jsx)(jy.Item,{name:`password`,label:`新密码(留空则不修改)`,children:(0,Y.jsx)(ob.Password,{prefix:(0,Y.jsx)(aA,{})})}),(0,Y.jsx)(jy.Item,{name:`confirm`,label:`确认新密码`,children:(0,Y.jsx)(ob.Password,{prefix:(0,Y.jsx)(aA,{})})}),(0,Y.jsx)(Cp,{type:`primary`,htmlType:`submit`,icon:(0,Y.jsx)(lA,{}),children:`保存`})]})})]})},{key:`ai`,label:`AI 模型`,children:(0,Y.jsx)(pg,{title:`解题 AI 配置`,loading:a,children:(0,Y.jsxs)(jy,{form:m,layout:`vertical`,onFinish:async e=>{let t={ai_provider:e.ai_provider,ollama_base_url:e.ollama_base_url||null,ollama_model:e.ollama_model||null,openai_base_url:e.openai_base_url||null,openai_model:e.openai_model||null,ocr_service_url:e.ocr_service_url?.trim()||null};e.openai_api_key?.trim()&&(t.openai_api_key=e.openai_api_key.trim());let{data:r}=await Xk.updateSettings(t);n(r),m.setFieldValue(`openai_api_key`,``),ax.success(`AI 模型配置已保存`)},children:[(0,Y.jsx)(jy.Item,{name:`ai_provider`,label:`AI 提供商`,rules:[{required:!0}],children:(0,Y.jsxs)(aS.Group,{children:[(0,Y.jsx)(aS.Button,{value:`ollama`,children:`本地 Ollama`}),(0,Y.jsx)(aS.Button,{value:`openai`,children:`OpenAI 兼容 API`})]})}),(g||t?.ai_provider)===`ollama`&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(jy.Item,{name:`ollama_base_url`,label:`Ollama 地址`,children:(0,Y.jsx)(ob,{placeholder:`http://127.0.0.1:11434`})}),(0,Y.jsx)(jy.Item,{name:`ollama_model`,label:`Ollama 模型`,children:(0,Y.jsx)(ob,{placeholder:`qwen2.5:7b`})})]}),(g||t?.ai_provider)===`openai`&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(jy.Item,{name:`openai_base_url`,label:`API Base URL`,children:(0,Y.jsx)(ob,{placeholder:`https://api.openai.com/v1`})}),(0,Y.jsx)(jy.Item,{name:`openai_model`,label:`模型名称`,children:(0,Y.jsx)(ob,{placeholder:`gpt-4o-mini`})}),(0,Y.jsx)(jy.Item,{name:`openai_api_key`,label:`API Key`,extra:t?.openai_api_key_set?`已配置 Key,留空则不修改`:`请输入 API Key`,children:(0,Y.jsx)(ob.Password,{placeholder:`sk-...`})})]}),(0,Y.jsx)(jy.Item,{name:`ocr_service_url`,label:`OCR 服务地址(局域网 GPU 机器)`,extra:`留空则在应用服务器本机 CPU 识别。同机部署时填 http://127.0.0.1:23567(install.sh 已自动配置)`,children:(0,Y.jsx)(ob,{placeholder:`http://192.168.8.100:23567`})}),(0,Y.jsx)(eD.Paragraph,{type:`secondary`,children:`错题/奥数解法将按学生学段(初中/高中)生成,并严格禁止超纲解题。`}),(0,Y.jsx)(Cp,{type:`primary`,htmlType:`submit`,children:`保存 AI 配置`})]})})},{key:`users`,label:`用户管理`,children:(0,Y.jsx)(pg,{title:`用户列表`,extra:(0,Y.jsx)(Cp,{type:`primary`,onClick:()=>u(!0),children:`添加用户`}),children:(0,Y.jsx)(FE,{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)(eD.Text,{type:`secondary`,children:`—`}):(0,Y.jsxs)(Iy,{children:[(0,Y.jsx)(Cp,{size:`small`,onClick:()=>f(t),children:`重置密码`}),(0,Y.jsx)(eS,{title:`确定删除该用户?`,onConfirm:()=>S(t.id),children:(0,Y.jsx)(Cp,{size:`small`,danger:!0,children:`删除`})})]})}]})})}]})]}),(0,Y.jsx)(Gx,{title:`添加用户`,open:l,onCancel:()=>u(!1),onOk:()=>c.submit(),destroyOnHidden:!0,children:(0,Y.jsxs)(jy,{form:c,layout:`vertical`,onFinish:b,children:[(0,Y.jsx)(jy.Item,{name:`username`,label:`用户名`,rules:[{required:!0,min:3}],children:(0,Y.jsx)(ob,{})}),(0,Y.jsx)(jy.Item,{name:`password`,label:`密码`,rules:[{required:!0,min:6}],children:(0,Y.jsx)(ob.Password,{})})]})}),(0,Y.jsx)(Gx,{title:`重置密码 — ${d?.username}`,open:!!d,onCancel:()=>f(null),onOk:()=>p.submit(),destroyOnHidden:!0,children:(0,Y.jsx)(jy,{form:p,layout:`vertical`,onFinish:x,children:(0,Y.jsx)(jy.Item,{name:`password`,label:`新密码`,rules:[{required:!0,min:6}],children:(0,Y.jsx)(ob.Password,{})})})})]})}var hA={careless:`粗心`,unknown:`不会`,nervous:`紧张`,normal:`正常发挥`},gA=Object.entries(hA).map(([e,t])=>({value:e,label:t})),_A={weekly:`周考`,monthly:`月考`,final:`期末`},vA={pending:`处理中`,ocr_done:`已识别`,solved:`已生成解法`,failed:`失败`},yA=function(e,t){return yA=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])},yA(e,t)};function bA(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);yA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var xA=function(){return xA=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},xA.apply(this,arguments)};function Kxe(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 SA(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 CA(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 wA=function(e,t){return wA=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])},wA(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`);wA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qxe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),TA=new(function(){function e(){this.browser=new qxe,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`?(TA.wxa=!0,TA.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?TA.worker=!0:!TA.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(TA.node=!0,TA.svgSupported=!0):Jxe(navigator.userAgent,TA);function Jxe(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 Yxe=`12px sans-serif`,Xxe=20,Zxe=100,Qxe=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function $xe(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)-Xxe)/Zxe}return t}var eSe=$xe(Qxe),EA={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=EA.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=eSe[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 DA(e){for(var t in EA)EA.hasOwnProperty(t)&&e[t]&&(EA[t]=e[t])}var tSe=s({EPSILON:()=>uSe,HashMap:()=>Tj,RADIAN_TO_DEGREE:()=>Mj,assert:()=>yj,assignProps:()=>HA,bind:()=>$A,clone:()=>zA,concatArray:()=>Dj,createCanvas:()=>oSe,createHashMap:()=>Ej,createObject:()=>Oj,curry:()=>ej,defaults:()=>UA,disableUserSelect:()=>kj,each:()=>Q,eqNaN:()=>pj,extend:()=>Z,filter:()=>XA,find:()=>ZA,guid:()=>LA,hasOwn:()=>Aj,indexOf:()=>WA,inherits:()=>GA,isArray:()=>tj,isArrayLike:()=>qA,isBuiltInObject:()=>sj,isDom:()=>lj,isFunction:()=>nj,isGradientObject:()=>uj,isImagePatternObject:()=>dj,isNumber:()=>aj,isObject:()=>oj,isPrimitive:()=>Cj,isRegExp:()=>fj,isString:()=>rj,isStringSafe:()=>ij,isTypedArray:()=>cj,keys:()=>QA,logError:()=>RA,map:()=>JA,merge:()=>BA,mergeAll:()=>VA,mixin:()=>KA,noop:()=>jj,normalizeCssArray:()=>vj,reduce:()=>YA,retrieve:()=>mj,retrieve2:()=>hj,retrieve3:()=>gj,setAsPrimitive:()=>Sj,slice:()=>_j,trim:()=>bj}),OA=YA([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),kA=YA([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),AA=Object.prototype.toString,jA=Array.prototype,nSe=jA.forEach,rSe=jA.filter,MA=jA.slice,iSe=jA.map,NA=function(){}.constructor,PA=NA?NA.prototype:null,FA=`__proto__`,IA=2311,aSe=2**53-1;function LA(){return IA>=aSe&&(IA=0),IA++}function RA(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function zA(e){if(typeof e!=`object`||!e)return e;var t=e,n=AA.call(e);if(n===`[object Array]`){if(!Cj(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=zA(e[r])}}else if(kA[n]){if(!Cj(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(!OA[n]&&!Cj(e)&&!lj(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==FA&&(t[o]=zA(e[o]));return t}function BA(e,t,n){if(!oj(t)||!oj(e))return n?zA(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==FA){var i=e[r],a=t[r];oj(a)&&oj(i)&&!tj(a)&&!tj(i)&&!lj(a)&&!lj(i)&&!sj(a)&&!sj(i)&&!Cj(a)&&!Cj(i)?BA(i,a,n):(n||!(r in e))&&(e[r]=zA(t[r]))}return e}function VA(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=BA(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!==FA&&(e[n]=t[n]);return e}function HA(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function UA(e,t,n){for(var r=QA(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 oSe=EA.createCanvas;function WA(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 GA(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 KA(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 UA(e,t,n)}function qA(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function Q(e,t,n){if(e&&t)if(e.forEach&&e.forEach===nSe)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 JA(e,t,n){if(!e)return[];if(!t)return _j(e);if(e.map&&e.map===iSe)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 YA(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 XA(e,t,n){if(!e)return[];if(!t)return _j(e);if(e.filter&&e.filter===rSe)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 ZA(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 QA(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 sSe(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(MA.call(arguments)))}}var $A=PA&&nj(PA.bind)?PA.call.bind(PA.bind):sSe;function ej(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(MA.call(arguments)))}}function tj(e){return Array.isArray?Array.isArray(e):AA.call(e)===`[object Array]`}function nj(e){return typeof e==`function`}function rj(e){return typeof e==`string`}function ij(e){return AA.call(e)===`[object String]`}function aj(e){return typeof e==`number`}function oj(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function sj(e){return!!OA[AA.call(e)]}function cj(e){return!!kA[AA.call(e)]}function lj(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function uj(e){return e.colorStops!=null}function dj(e){return e.image!=null}function fj(e){return AA.call(e)===`[object RegExp]`}function pj(e){return e!==e}function mj(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function hj(e,t){return e??t}function gj(e,t,n){return e??t??n}function _j(e){var t=[...arguments].slice(1);return MA.apply(e,t)}function vj(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 yj(e,t){if(!e)throw Error(t)}function bj(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var xj=`__ec_primitive__`;function Sj(e){e[xj]=!0}function Cj(e){return e[xj]}var cSe=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 QA(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),wj=typeof Map==`function`;function lSe(){return wj?new Map:new cSe}var Tj=function(){function e(t){var n=tj(t);this.data=lSe();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 wj?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Ej(e){return new Tj(e)}function Dj(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 Oj(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 kj(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function Aj(e,t){return e.hasOwnProperty(t)}function jj(){}var Mj=180/Math.PI,uSe=2**-52||2**-52,Nj=function(e,t){return Nj=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])},Nj(e,t)};function Pj(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Nj(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var dSe=s({add:()=>zj,applyTransform:()=>Zj,clone:()=>Lj,copy:()=>Ij,create:()=>Fj,dist:()=>qj,distSquare:()=>Yj,distance:()=>Kj,distanceSquare:()=>Jj,div:()=>hSe,dot:()=>gSe,len:()=>Hj,lenSquare:()=>Uj,length:()=>fSe,lengthSquare:()=>pSe,lerp:()=>Xj,max:()=>$j,min:()=>Qj,mul:()=>mSe,negate:()=>_Se,normalize:()=>Gj,scale:()=>Wj,scaleAndAdd:()=>Bj,set:()=>Rj,sub:()=>Vj});function Fj(e,t){return e??=0,t??=0,[e,t]}function Ij(e,t){return e[0]=t[0],e[1]=t[1],e}function Lj(e){return[e[0],e[1]]}function Rj(e,t,n){return e[0]=t,e[1]=n,e}function zj(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Bj(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Vj(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Hj(e){return Math.sqrt(Uj(e))}var fSe=Hj;function Uj(e){return e[0]*e[0]+e[1]*e[1]}var pSe=Uj;function mSe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function hSe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function gSe(e,t){return e[0]*t[0]+e[1]*t[1]}function Wj(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Gj(e,t){var n=Hj(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Kj(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var qj=Kj;function Jj(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Yj=Jj;function _Se(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Xj(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 Zj(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 Qj(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function $j(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var eM=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),vSe=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 eM(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 eM(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 eM(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new eM(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new eM(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new eM(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),tM=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}(),ySe=Math.log(2);function nM(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)/ySe);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]*nM(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function rM(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=nM(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)*nM(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 iM=`___zrEVENTSAVED`,aM=[];function bSe(e,t,n,r,i){return oM(aM,t,r,i,!0)&&oM(e,n,aM[0],aM[1])}function xSe(e,t){e&&n(e),t&&n(t);function n(e){var t=e[iM];t&&(t.clearMarkers&&t.clearMarkers(),delete e[iM])}}function oM(e,t,n,r,i){if(t.getBoundingClientRect&&TA.domSupported&&!sM(t)){var a=t[iM]||(t[iM]={}),o=CSe(SSe(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function SSe(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 CSe(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?rM(s,o):rM(o,s))}function sM(e){return e.nodeName.toUpperCase()===`CANVAS`}var wSe=/([&<>"'])/g,TSe={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function cM(e){return e==null?``:(e+``).replace(wSe,function(e,t){return TSe[t]})}var ESe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lM=[],DSe=TA.browser.firefox&&+TA.browser.version.split(`.`)[0]<39;function uM(e,t,n,r){return n||={},r?dM(e,t,n):DSe&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?dM(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function dM(e,t,n){if(TA.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(sM(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(oM(lM,e,r,i)){n.zrX=lM[0],n.zrY=lM[1];return}}n.zrX=n.zrY=0}function fM(e){return e||window.event}function pM(e,t,n){if(t=fM(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&&uM(e,i,t,n)}else{uM(e,t,t,n);var a=OSe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&ESe.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function OSe(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 mM(e,t,n,r){e.addEventListener(t,n,r)}function kSe(e,t,n,r){e.removeEventListener(t,n,r)}var hM=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function gM(e){return e.which===2||e.which===3}var ASe=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=uM(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 vM)if(vM.hasOwnProperty(t)){var n=vM[t](this._track,e);if(n)return n}},e}();function _M(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function jSe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var vM={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=_M(r)/_M(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=jSe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},MSe=s({clone:()=>DM,copy:()=>xM,create:()=>yM,identity:()=>bM,invert:()=>EM,mul:()=>SM,rotate:()=>wM,scale:()=>TM,translate:()=>CM});function yM(){return[1,0,0,1,0,0]}function bM(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function xM(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 SM(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 CM(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 wM(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 TM(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 EM(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 DM(e){var t=yM();return xM(t,e),t}var OM=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}(),kM=Math.min,AM=Math.max,jM=Math.abs,MM=[`x`,`y`],NSe=[`width`,`height`],NM=new OM,PM=new OM,FM=new OM,IM=new OM,LM=YM(),RM=LM.minTv,zM=LM.maxTv,BM=[0,0],VM=function(){function e(e,t,n,r){UM(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=kM(e.x,this.x),n=kM(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=AM(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=AM(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 GM(yM(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&OM.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=UM(FSe,t.x,t.y,t.width,t.height)),n instanceof e||(n=UM(ISe,n.x,n.y,n.width,n.height));var s=!!r;LM.reset(i,s);var c=LM.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)&&(BM[0]=1/0,BM[1]=0,JM(l,u,p,m,0,s,a,o),JM(d,f,h,g,1,s,a,o),s&&OM.copy(r,_?LM.useDir?LM.dirMinTv:RM:zM)),_},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){WM(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&&WM(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}NM.x=FM.x=t.x,NM.y=IM.y=t.y,PM.x=IM.x=t.x+t.width,PM.y=FM.y=t.y+t.height,NM.transform(n),IM.transform(n),PM.transform(n),FM.transform(n),e.x=kM(NM.x,PM.x,FM.x,IM.x),e.y=kM(NM.y,PM.y,FM.y,IM.y);var s=AM(NM.x,PM.x,FM.x,IM.x),c=AM(NM.y,PM.y,FM.y,IM.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=bM(e||[]),CM(e,e,Rj(qM,-t.x,-t.y)),TM(e,e,Rj(qM,r,i)),CM(e,e,Rj(qM,n.x,n.y)),e},e}(),HM=VM.create,UM=VM.set,WM=VM.copy,GM=VM.calculateTransform,KM=VM.applyTransform,PSe=VM.contain,FSe=new VM(0,0,0,0),ISe=new VM(0,0,0,0),qM=[];function JM(e,t,n,r,i,a,o,s){var c=jM(t-n),l=jM(r-e),u=kM(c,l),d=MM[i],f=MM[1-i],p=NSe[i];t<n||r<e?c<l?(a&&(zM[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(zM[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=AM(e,n),o[p]=kM(t,r)-o[d]),a&&(u<BM[0]||LM.useDir)&&(BM[0]=kM(u,BM[0]),(c<l||!LM.bidirectional)&&(RM[d]=c,RM[f]=0,LM.useDir&&LM.calcDirMTV()),(c>=l||!LM.bidirectional)&&(RM[d]=-l,RM[f]=0,LM.useDir&&LM.calcDirMTV())))}function YM(){var e=0,t=new OM,n=new OM,r={minTv:new OM,maxTv:new OM,useDir:!1,dirMinTv:new OM,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=AM(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 jM(e)<1e-10}return r}var XM=`silent`;function LSe(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:RSe}}function RSe(){hM(this.event)}var zSe=function(e){Pj(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}(tM),ZM=function(){function e(e,t){this.x=e,this.y=t}return e}(),BSe=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],QM=new VM(0,0,0,0),$M=function(e){Pj(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new ZM(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new zSe,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new vSe(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Q(BSe,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=tN(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 ZM(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 ZM(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=LSe(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 ZM(e,t);if(eN(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new VM(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)&&(QM.copy(u.getBoundingRect()),u.transform&&QM.applyTransform(u.transform),QM.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(eN(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 ASe;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 ZM;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(tM);Q([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){$M.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=tN(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||qj(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function VSe(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?XM:!0}return!1}function eN(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=VSe(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==XM)){t.target=o;break}}}function tN(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var nN=32,rN=7;function HSe(e){for(var t=0;e>=nN;)t|=e&1,e>>=1;return e+t}function iN(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++;USe(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function USe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function aN(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 oN(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 sN(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 WSe(e,t){var n=rN,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=sN(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=oN(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=sN(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=oN(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>=rN||m>=rN);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-sN(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-oN(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>=rN||g>=rN);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 cN(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<nN){a=iN(e,n,r,t),aN(e,n,r,n+a,t);return}var o=WSe(e,t),s=HSe(i);do{if(a=iN(e,n,r,t),a<s){var c=i;c>s&&(c=s),aN(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 lN=!1;function uN(){lN||(lN=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function dN(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var GSe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=dN}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,cN(n,dN)},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)&&(uN(),p.z=0),isNaN(p.z2)&&(uN(),p.z2=0),isNaN(p.zlevel)&&(uN(),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=WA(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}(),fN=TA.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},pN={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-pN.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?pN.bounceIn(e*2)*.5:pN.bounceOut(e*2-1)*.5+.5}},mN=Math.pow,hN=Math.sqrt,gN=1e-8,_N=1e-4,vN=hN(3),yN=1/3,bN=Fj(),xN=Fj(),SN=Fj();function CN(e){return e>-gN&&e<gN}function wN(e){return e>gN||e<-gN}function TN(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 EN(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function DN(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(CN(u)&&CN(d))if(CN(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(CN(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=hN(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-mN(-y,yN):mN(y,yN),b=b<0?-mN(-b,yN):mN(b,yN);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*hN(u*u*u)),S=Math.acos(x)/3,C=hN(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+vN*Math.sin(S)))/(3*o),T=(-s+C*(w-vN*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 ON(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(CN(o)){if(wN(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(CN(u))i[0]=-a/(2*o);else if(u>0){var d=hN(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 kN(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 AN(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;bN[0]=c,bN[1]=l;for(var v=0;v<1;v+=.05)xN[0]=TN(e,n,i,o,v),xN[1]=TN(t,r,a,s,v),g=Yj(bN,xN),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<_N);y++)m=d-f,h=d+f,xN[0]=TN(e,n,i,o,m),xN[1]=TN(t,r,a,s,m),g=Yj(xN,bN),m>=0&&g<p?(d=m,p=g):(SN[0]=TN(e,n,i,o,h),SN[1]=TN(t,r,a,s,h),_=Yj(SN,bN),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=TN(e,n,i,o,d),u[1]=TN(t,r,a,s,d)),hN(p)}function KSe(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=TN(e,n,i,o,m),g=TN(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function jN(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function MN(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function qSe(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(CN(a)){if(wN(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(CN(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=hN(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 NN(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function PN(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 FN(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;bN[0]=o,bN[1]=s;for(var f=0;f<1;f+=.05){xN[0]=jN(e,n,i,f),xN[1]=jN(t,r,a,f);var p=Yj(bN,xN);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<_N);m++){var h=l-u,g=l+u;xN[0]=jN(e,n,i,h),xN[1]=jN(t,r,a,h);var p=Yj(xN,bN);if(h>=0&&p<d)l=h,d=p;else{SN[0]=jN(e,n,i,g),SN[1]=jN(t,r,a,g);var _=Yj(SN,bN);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=jN(e,n,i,l),c[1]=jN(t,r,a,l)),hN(d)}function JSe(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=jN(e,n,i,f),m=jN(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var YSe=/cubic-bezier\(([0-9,\.e ]+)\)/;function IN(e){var t=e&&YSe.exec(e);if(t){var n=t[1].split(`,`),r=+bj(n[0]),i=+bj(n[1]),a=+bj(n[2]),o=+bj(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:DN(0,r,a,1,e,s)&&TN(0,i,o,1,s[0])}}}var XSe=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||jj,this.ondestroy=e.ondestroy||jj,this.onrestart=e.onrestart||jj,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=nj(e)?e:pN[e]||IN(e)},e}(),LN=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 LN(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}(),RN=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 LN(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}(),QSe=s({fastLerp:()=>eP,fastMapToColor:()=>nCe,lerp:()=>tP,lift:()=>$N,liftColor:()=>sP,lum:()=>aP,mapToColor:()=>rCe,modifyAlpha:()=>rP,modifyHSL:()=>nP,parse:()=>ZN,parseCssFloat:()=>UN,parseCssInt:()=>HN,random:()=>iCe,stringify:()=>iP,toHex:()=>tCe}),zN={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 BN(e){return e=Math.round(e),e<0?0:e>255?255:e}function $Se(e){return e=Math.round(e),e<0?0:e>360?360:e}function VN(e){return e<0?0:e>1?1:e}function HN(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?BN(parseFloat(t)/100*255):BN(parseInt(t,10))}function UN(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?VN(parseFloat(t)/100):VN(parseFloat(t))}function WN(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 GN(e,t,n){return e+(t-e)*n}function KN(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function qN(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var JN=new RN(20),YN=null;function XN(e,t){YN&&qN(YN,t),YN=JN.put(e,YN||t.slice())}function ZN(e,t){if(e){t||=[];var n=JN.get(e);if(n)return qN(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in zN)return qN(t,zN[r]),XN(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)){KN(t,0,0,0,1);return}return KN(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),XN(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){KN(t,0,0,0,1);return}return KN(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),XN(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?KN(t,+l[0],+l[1],+l[2],1):KN(t,0,0,0,1);u=UN(l.pop());case`rgb`:if(l.length>=3)return KN(t,HN(l[0]),HN(l[1]),HN(l[2]),l.length===3?u:UN(l[3])),XN(e,t),t;KN(t,0,0,0,1);return;case`hsla`:if(l.length!==4){KN(t,0,0,0,1);return}return l[3]=UN(l[3]),QN(l,t),XN(e,t),t;case`hsl`:if(l.length!==3){KN(t,0,0,0,1);return}return QN(l,t),XN(e,t),t;default:return}}KN(t,0,0,0,1)}}function QN(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=UN(e[1]),i=UN(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],KN(t,BN(WN(o,a,n+1/3)*255),BN(WN(o,a,n)*255),BN(WN(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function eCe(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 $N(e,t){var n=ZN(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 iP(n,n.length===4?`rgba`:`rgb`)}}function tCe(e){var t=ZN(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function eP(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]=BN(GN(o[0],s[0],c)),n[1]=BN(GN(o[1],s[1],c)),n[2]=BN(GN(o[2],s[2],c)),n[3]=VN(GN(o[3],s[3],c)),n}}var nCe=eP;function tP(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=ZN(t[i]),s=ZN(t[a]),c=r-i,l=iP([BN(GN(o[0],s[0],c)),BN(GN(o[1],s[1],c)),BN(GN(o[2],s[2],c)),VN(GN(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var rCe=tP;function nP(e,t,n,r){var i=ZN(e);if(e)return i=eCe(i),t!=null&&(i[0]=$Se(nj(t)?t(i[0]):t)),n!=null&&(i[1]=UN(nj(n)?n(i[1]):n)),r!=null&&(i[2]=UN(nj(r)?r(i[2]):r)),iP(QN(i),`rgba`)}function rP(e,t){var n=ZN(e);if(n&&t!=null)return n[3]=VN(t),iP(n,`rgba`)}function iP(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 aP(e,t){var n=ZN(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function iCe(){return iP([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var oP=new RN(100);function sP(e){if(rj(e)){var t=oP.get(e);return t||(t=$N(e,-.1),oP.put(e,t)),t}else if(uj(e)){var n=Z({},e);return n.colorStops=JA(e.colorStops,function(e){return{offset:e.offset,color:$N(e.color,-.1)}}),n}return e}var cP=Math.round;function lP(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=ZN(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var uP=1e-4;function dP(e){return e<uP&&e>-uP}function fP(e){return cP(e*1e3)/1e3}function pP(e){return cP(e*1e4)/1e4}function aCe(e){return`matrix(`+fP(e[0])+`,`+fP(e[1])+`,`+fP(e[2])+`,`+fP(e[3])+`,`+pP(e[4])+`,`+pP(e[5])+`)`}var oCe={left:`start`,right:`end`,center:`middle`,middle:`middle`};function sCe(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function cCe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function lCe(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 mP(e){return e&&!!e.image}function uCe(e){return e&&!!e.svgElement}function hP(e){return mP(e)||uCe(e)}function gP(e){return e.type===`linear`}function _P(e){return e.type===`radial`}function vP(e){return e&&(e.type===`linear`||e.type===`radial`)}function yP(e){return`url(#`+e+`)`}function bP(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 xP(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Mj,i=hj(e.scaleX,1),a=hj(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(`+cP(o*Mj)+`deg, `+cP(s*Mj)+`deg)`),c.join(` `)}var dCe=(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}})(),SP=Array.prototype.slice;function CP(e,t,n){return(t-e)*n+e}function wP(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=CP(t[a],n[a],r);return e}function fCe(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]=CP(t[o][s],n[o][s],r)}return e}function TP(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function EP(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 pCe(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 mCe(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]:SP.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 DP(e){if(qA(e)){var t=e.length;if(qA(e[0])){for(var n=[],r=0;r<t;r++)n.push(SP.call(e[r]));return n}return SP.call(e)}return e}function OP(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 hCe(e){return qA(e&&e[0])?2:1}var kP=0,AP=1,jP=2,MP=3,NP=4,PP=5,FP=6;function IP(e){return e===NP||e===PP}function LP(e){return e===AP||e===jP}var RP=[0,0,0,0],gCe=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=FP,s=t;if(qA(t)){var c=hCe(t);o=c,(c===1&&!aj(t[0])||c===2&&!aj(t[0][0]))&&(a=!0)}else if(aj(t)&&!pj(t))o=kP;else if(rj(t))if(!isNaN(+t))o=kP;else{var l=ZN(t);l&&(s=l,o=MP)}else if(uj(t)){var u=Z({},s);u.colorStops=JA(t.colorStops,function(e){return{offset:e.offset,color:ZN(e.color)}}),gP(t)?o=NP:_P(t)&&(o=PP),s=u}i===0?this.valType=o:(o!==this.valType||o===FP)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=nj(n)?n:pN[n]||IN(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=LP(r),c=IP(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?mCe(d,f,r):c&&pCe(d.colorStops,f.colorStops))}if(!o&&r!==PP&&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===kP?n[l].additiveValue=n[l].value-p:r===MP?n[l].additiveValue=TP([],n[l].value,p,-1):LP(r)&&(n[l].additiveValue=r===AP?TP([],n[l].value,p,-1):EP([],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===MP,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?RP:e[s];if((LP(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(LP(i))i===AP?wP(g,f[r],p[r],h):fCe(g,f[r],p[r],h);else if(IP(i)){var _=f[r],v=p[r],y=i===NP;e[s]={type:y?`linear`:`radial`,x:CP(_.x,v.x,h),y:CP(_.y,v.y,h),colorStops:JA(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:CP(e.offset,n.offset,h),color:OP(wP([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=CP(_.x2,v.x2,h),e[s].y2=CP(_.y2,v.y2,h)):e[s].r=CP(_.r,v.r,h)}else if(c)wP(g,f[r],p[r],h),n||(e[s]=OP(g));else{var b=CP(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===kP?e[n]=e[n]+r:t===MP?(ZN(e[n],RP),TP(RP,RP,r,1),e[n]=OP(RP)):t===AP?TP(e[n],e[n],r,1):t===jP&&EP(e[n],e[n],r,1)},e}(),zP=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){RA(`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,QA(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 gCe(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===MP&&c&&(c=OP(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,DP(c),r),this._trackKeys.push(o)}s.addKeyframe(e,DP(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 XSe({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 JA(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]=DP(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=QA(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 BP(){return new Date().getTime()}var _Ce=function(e){Pj(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=BP()-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&&(fN(t),!e._paused&&e.update())}fN(t)},t.prototype.start=function(){this._running||(this._time=BP(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=BP(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=BP()-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 zP(e,t.loop);return this.addAnimator(n),n},t}(tM),vCe=300,VP=TA.domSupported,HP=(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:JA(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),UP={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},WP=!1;function GP(e){var t=e.pointerType;return t===`pen`||t===`touch`}function yCe(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 KP(e){e&&(e.zrByTouch=!0)}function bCe(e,t){return pM(e.dom,new xCe(e,t),!0)}function qP(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 xCe=function(){function e(e,t){this.stopPropagation=jj,this.stopImmediatePropagation=jj,this.preventDefault=jj,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),JP={mousedown:function(e){e=pM(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=pM(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=pM(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=pM(this.dom,e);var t=e.toElement||e.relatedTarget;qP(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){WP=!0,e=pM(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){WP||(e=pM(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=pM(this.dom,e),KP(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),JP.mousemove.call(this,e),JP.mousedown.call(this,e)},touchmove:function(e){e=pM(this.dom,e),KP(e),this.handler.processGesture(e,`change`),JP.mousemove.call(this,e)},touchend:function(e){e=pM(this.dom,e),KP(e),this.handler.processGesture(e,`end`),JP.mouseup.call(this,e),new Date-+this.__lastTouchMoment<vCe&&JP.click.call(this,e)},pointerdown:function(e){JP.mousedown.call(this,e)},pointermove:function(e){GP(e)||JP.mousemove.call(this,e)},pointerup:function(e){JP.mouseup.call(this,e)},pointerout:function(e){GP(e)||JP.mouseout.call(this,e)}};Q([`click`,`dblclick`,`contextmenu`],function(e){JP[e]=function(t){t=pM(this.dom,t),this.trigger(e,t)}});var YP={pointermove:function(e){GP(e)||YP.mousemove.call(this,e)},pointerup:function(e){YP.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 SCe(e,t){var n=t.domHandlers;TA.pointerEventsSupported?Q(HP.pointer,function(r){XP(t,r,function(t){n[r].call(e,t)})}):(TA.touchEventsSupported&&Q(HP.touch,function(r){XP(t,r,function(i){n[r].call(e,i),yCe(t)})}),Q(HP.mouse,function(r){XP(t,r,function(i){i=fM(i),t.touching||n[r].call(e,i)})}))}function CCe(e,t){TA.pointerEventsSupported?Q(UP.pointer,n):TA.touchEventsSupported||Q(UP.mouse,n);function n(n){function r(r){r=fM(r),qP(e,r.target)||(r=bCe(e,r),t.domHandlers[n].call(e,r))}XP(t,n,r,{capture:!0})}}function XP(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,mM(e.domTarget,t,n,r)}function ZP(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&kSe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var QP=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),wCe=function(e){Pj(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 QP(t,JP),VP&&(r._globalHandlerScope=new QP(document,YP)),SCe(r,r._localHandlerScope),r}return t.prototype.dispose=function(){ZP(this._localHandlerScope),VP&&ZP(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,VP&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?CCe(this,t):ZP(t)}},t}(tM),$P=1;TA.hasGlobalWindow&&($P=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var eF=$P,tF=.4,nF=`#333`,rF=`#ccc`,TCe=`#eee`,iF=bM,aF=5e-5;function oF(e){return e>aF||e<-aF}var sF=[],cF=[],lF=yM(),uF=Math.abs,dF=function(){function e(){}return e.prototype.getLocalTransform=function(e){return fF(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 oF(this.rotation)||oF(this.x)||oF(this.y)||oF(this.scaleX-1)||oF(this.scaleY-1)||oF(this.skewX)||oF(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(iF(n),this.invTransform=null);return}n||=yM(),t?this.getLocalTransform(n):iF(n),e&&(t?SM(n,e,n):xM(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||yM(),EM(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(sF);var n=sF[0]<0?-1:1,r=sF[1]<0?-1:1,i=((sF[0]-n)*t+n)/sF[0]||0,a=((sF[1]-r)*t+r)/sF[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||yM(),SM(cF,e.invTransform,t),t=cF);var n=this.originX,r=this.originY;(n||r)&&(lF[4]=n,lF[5]=r,SM(cF,t,lF),cF[4]-=n,cF[5]-=r,t=cF),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&&Zj(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Zj(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&uF(e[0]-1)>1e-10&&uF(e[3]-1)>1e-10?Math.sqrt(uF(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){hF(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&&wM(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}(),fF=dF.getLocalTransform;function pF(){return new dF}var mF=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function hF(e,t){return HA(e,t,mF)}function gF(e){_F||=new RN(100),e||=`12px sans-serif`;var t=_F.get(e);return t||(t={font:e,strWidthCache:new RN(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:EA.measureText(`国`,e).width,asciiCharWidth:EA.measureText(`a`,e).width},_F.put(e,t)),t}var _F;function ECe(e){if(!(vF>=yF)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=EA.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?vF=yF:i>2&&vF++,t}}var vF=0,yF=5;function bF(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=ECe(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function xF(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=EA.measureText(t,e.font).width,n.put(t,r)),r}function SF(e,t,n,r){var i=xF(gF(t),e),a=EF(t);return new VM(wF(0,i,n),TF(0,a,r),i,a)}function CF(e,t,n,r){var i=((e||``)+``).split(`
|
||
`);if(i.length===1)return SF(i[0],t,n,r);for(var a=new VM(0,0,0,0),o=0;o<i.length;o++){var s=SF(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function wF(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function TF(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function EF(e){return gF(e).stWideCharWidth}function DF(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function OF(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+=DF(r[0],n.width),l+=DF(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 kF=`__zr_normal__`,AF=mF.concat([`ignore`]),DCe=YA(mF,function(e,t){return e[t]=!0,e},{ignore:!1}),jF={},OCe=new VM(0,0,0,0),MF=[],NF=function(){function e(e){this.id=LA(),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=OCe,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(jF,n,d):OF(jF,n,d),i.x=jF.x,i.y=jF.y,a=jF.align,o=jF.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=DF(f[0],d.width),m=DF(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 VM(0,0,0,0);i.getLocalTransform(MF),EM(MF,MF),VM.copy(_,d),_.applyTransform(MF)}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()?rF:nF},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&ZN(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,iP(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(oj(e))for(var n=QA(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,AF)},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(kF,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===kF;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(WA(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){RA(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=LF(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,zF(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=LF(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,zF(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=WA(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=WA(r,e),a=WA(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<AF.length;l++){var u=AF[l],d=i&&DCe[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 dF,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 zP(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=WA(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){PF(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){PF(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=PF(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}();KA(NF,tM),KA(NF,dF);function PF(e,t,n,r,i){n||={};var a=[];IF(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 FF(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function kCe(e){return qA(e[0])}function ACe(e,t,n){if(qA(t[n]))if(qA(e[n])||(e[n]=[]),cj(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),FF(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(kCe(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?FF(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else FF(a,i,o);a.length=i.length}else e[n]=t[n]}function jCe(e,t){return e===t||qA(e)&&qA(t)&&MCe(e,t)}function MCe(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 IF(e,t,n,r,i,a,o,s){for(var c=QA(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!oj(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(oj(v)&&!qA(v)&&!uj(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}IF(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=WA(m,x);m.splice(S,1)}}if(i.force||(h=XA(h,function(e){return!jCe(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[_]=DP(n[_]),ACe(n,r,_)}}var x=new zP(n,!1,!1,d?XA(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 LF(e,t,n,r){return!(n&&n.hoverLayer||r)||RF(e)||t&&RF(t)?0:1}function RF(e){return e.type===`text`||e.type===`tspan`}function zF(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var BF=function(e){Pj(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=WA(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=WA(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 VM(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?(VM.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(NF);BF.prototype.type=`group`;var NCe=s({dispose:()=>LCe,disposeAll:()=>RCe,getElementSSRData:()=>KF,getInstance:()=>zCe,init:()=>UF,registerPainter:()=>WF,registerSSRDataGetter:()=>qF,version:()=>BCe}),VF={},HF={};function PCe(e){delete HF[e]}function FCe(e){if(!e)return!1;if(typeof e==`string`)return aP(e,1)<tF;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=aP(t[i].color,1);return n/=r,n<tF}return!1}var ICe=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 GSe,a=n.renderer||`canvas`;VF[a]||(a=QA(VF)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new VF[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!TA.node&&!TA.worker&&!s?new wCe(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?TA.touchEventsSupported:!!l,d=44,f;u&&(f=hj(n.pointerSize,d)),this.handler=new $M(i,o,c,o.root,f),this.animation=new _Ce({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=FCe(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=BP(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=BP();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 BF&&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,PCe(this.id))},e}();function UF(e,t){var n=new ICe(LA(),e,t);return HF[n.id]=n,n}function LCe(e){e.dispose()}function RCe(){for(var e in HF)HF.hasOwnProperty(e)&&HF[e].dispose();HF={}}function zCe(e){return HF[e]}function WF(e,t){VF[e]=t}var GF;function KF(e){if(typeof GF==`function`)return GF(e)}function qF(e){GF=e}var BCe=`6.1.0`,JF=1e-4,YF=20;function VCe(e){return e.replace(/^\s+|\s+$/g,``)}var XF=Math.min,ZF=Math.max,QF=Math.abs,$F=Math.round,eI=Math.floor,tI=Math.ceil,nI=Math.pow,rI=Math.log,iI=Math.LN10,aI=Math.PI,HCe=Math.random;function oI(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 sI=UCe;function UCe(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 cI(e,t,n)}function cI(e,t,n){return rj(e)?lI(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function WCe(e){return rj(e)&&lI(e)}function lI(e){return!!VCe(e).match(/%$/)}function uI(e,t,n){return isNaN(t)?n?``+e:+e:(t=XF(ZF(0,t),YF),e=(+e).toFixed(t),n?e:+e)}function GCe(e,t,n){return t??=10,uI(e,t,n)}function dI(e){return e.sort(function(e,t){return e-t}),e}function fI(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if($F(e*t)/t===e)return n}return pI(e)}function pI(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 ZF(0,(a<0?0:i-1-a)-r)}function KCe(e,t){var n=eI(rI(e[1]-e[0])/iI),r=$F(rI(QF(t[1]-t[0]))/iI),i=XF(ZF(-n+r,0),YF);return isFinite(i)?i:YF}function mI(e,t,n){var r=QF(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=rI(2*QF(n||1)*QF(r))/iI,a=rI(QF(t))/iI,o=ZF(0,tI(-i+a));return isFinite(o)||(o=NaN),o}function qCe(e,t,n){return e[t]&&hI(e,n)[t]||0}function hI(e,t){var n=YA(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=nI(10,t),i=JA(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=JA(i,function(e){return eI(e)}),s=YA(o,function(e,t){return e+t},0),c=JA(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 JA(o,function(e){return e/r})}function gI(e,t){var n=ZF(fI(e),fI(t)),r=e+t;return n>YF?r:uI(r,n)}var _I=nI(2,53)-1;function vI(e){var t=aI*2;return(e%t+t)%t}function yI(e){return e>-JF&&e<JF}var JCe=/^(?:(\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 bI(e){if(e instanceof Date)return e;if(rj(e)){var t=JCe.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($F(e))}function xI(e){return nI(10,SI(e))}function SI(e){if(e===0)return 0;var t=eI(rI(e)/iI);return e/nI(10,t)>=10&&t++,t}function CI(e,t){var n=SI(e),r=nI(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,uI(e,-n)}function wI(e,t){var n=(e.length-1)*t+1,r=eI(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function TI(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 EI(e){var t=parseFloat(e);return t==e&&(t!==0||!rj(e)||e.indexOf(`x`)<=0)?t:NaN}function DI(e){return!isNaN(EI(e))}function OI(){return $F(HCe()*9)}function kI(e,t){return t===0?e:kI(t,e%t)}function AI(e,t){return e==null?t:t==null?e:e*t/kI(e,t)}function jI(e){return e!=null&&isFinite(e)}var YCe=`[ECharts] `,MI={},XCe=typeof console<`u`&&console.warn&&console.log;function ZCe(e,t,n){if(XCe){if(n){if(MI[t])return;MI[t]=!0}console[e](YCe+t)}}function NI(e,t){ZCe(`error`,e,t)}function PI(e){throw Error(e)}function FI(e,t,n){return(t-e)*n+e}var II=`series\0`,LI=`\0_ec_\0`;function RI(e){return e instanceof Array?e:e==null?[]:[e]}function zI(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 BI=`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 VI(e){return oj(e)&&!tj(e)&&!(e instanceof Date)?e.value:e}function QCe(e){return oj(e)&&!(e instanceof Array)}function HI(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=Ej();Q(t,function(e,n){if(!oj(e)){t[n]=null;return}});var s=$Ce(e,o,n);return(r||i)&&ewe(s,e,o,t),r&&twe(s,t),r||i?nwe(s,t,i):a&&rwe(s,t),iwe(s),s}function $Ce(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`||qI(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function ewe(e,t,n,r){Q(r,function(i,a){if(!(!i||i.id==null)){var o=WI(i.id),s=n.get(o);if(s!=null){var c=e[s];yj(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function twe(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)&&!qI(n)&&!qI(a)&&UI(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function nwe(e,t,n){Q(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||qI(r.existing)||r.existing&&t.id!=null&&!UI(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function rwe(e,t){Q(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function iwe(e){var t=Ej();Q(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),Q(e,function(e){var n=e.newOption;yj(!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(oj(i)){if(a.name=i.name==null?r?r.name:II+n:WI(i.name),r)a.id=WI(r.id);else if(i.id!=null)a.id=WI(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 UI(e,t,n){var r=GI(t[e],null),i=GI(n[e],null);return r!=null&&i!=null&&r===i}function WI(e){return GI(e,``)}function GI(e,t){return e==null?t:rj(e)?e:aj(e)||ij(e)?e+``:t}function KI(e){var t=e.name;return!!(t&&t.indexOf(II))}function qI(e){return e&&e.id!=null&&WI(e.id).indexOf(LI)===0}function awe(e){return LI+e}function owe(e,t,n){Q(e,function(e){var r=e.newOption;oj(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=swe(t,r,e.existing,n))})}function swe(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function cwe(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=GI(e[r].seriesId,null);if(a==null)return;for(var o=RI(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 JI(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return tj(t.dataIndex)?JA(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return tj(t.name)?JA(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function YI(){var e=`__ec_inner_`+lwe++;return function(t){return t[e]||(t[e]={})}}var lwe=OI();function XI(e,t,n){var r=ZI(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=$I(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 ZI(e,t){var n;if(rj(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=Ej(),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&&WA(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var QI={useDefault:!0,enableAll:!1,enableNone:!1},uwe={useDefault:!1,enableAll:!0,enableNone:!0};function $I(e,t,n,r){r||=QI;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 eL(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 tL(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function dwe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function fwe(e){return e===`auto`?TA.domSupported?`html`:`richText`:e||`html`}function nL(e,t){var n=Ej(),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 rL(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(aj(r)){var o=FI(n||0,r,i);return uI(o,a?Math.max(fI(n||0),fI(r)):t)}else if(rj(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=FI(p,m,i);s[d]=uI(o,a?Math.max(fI(p),fI(m)):t)}}return s}}var iL=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 aL(e){e.option=e.parentModel=e.ecModel=null}function oL(){return[1/0,-1/0]}function sL(e,t){uL(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function cL(e,t){uL(t)&&t<e[0]&&(e[0]=t)}function lL(e,t){uL(t)&&t>e[1]&&(e[1]=t)}function pwe(e,t){dL(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function uL(e){return e!=null&&isFinite(e)}function dL(e,t){return uL(e)&&uL(t)&&e<=t}function mwe(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function fL(e){dL(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function pL(){var e=`__ec_once_`+hwe++;return function(t,n){Aj(t,e)||(t[e]=1,n())}}var hwe=OI();function mL(e,t,n){var r=Ej(),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 hL(e,t){return hj(t,!0)?e.seriesIndex+2:0}function gL(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 _L(e,t){return{seriesType:e,overallReset:t}}function vL(e){return{overallReset:e}}var vwe=`.`,yL=`___EC__COMPONENT__CONTAINER___`,bL=`___EC__EXTENDED_CLASS___`;function xL(e){var t={main:``,sub:``};if(e){var n=e.split(vwe);t.main=n[0]||``,t.sub=n[1]||``}return t}function ywe(e){yj(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function bwe(e){return!!(e&&e[bL])}function SL(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return xwe(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)},GA(n,this)),Z(n.prototype,e),n[bL]=!0,n.extend=this.extend,n.superCall=wwe,n.superApply=Twe,n.superClass=t,n}}function xwe(e){return nj(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function CL(e,t){e.extend=t.extend}var Swe=Math.round(Math.random()*10);function Cwe(e){var t=[`__\0is_clz`,Swe++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function wwe(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Twe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function wL(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){ywe(r),e.prototype.type=r;var i=xL(r);if(!i.sub)t[i.main]=e;else if(i.sub!==yL){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[yL]&&(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=xL(e),r=[],i=t[n.main];return i&&i[yL]?Q(i,function(e,t){t!==yL&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[xL(e).main]},e.getAllClassMainTypes=function(){var e=[];return Q(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[xL(e).main];return n&&n[yL]};function n(e){var n=t[e.main];return(!n||!n[yL])&&(n=t[e.main]={},n[yL]=!0),n}}function TL(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&&WA(r,s)>=0||i&&WA(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Ewe=TL([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Dwe=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Ewe(this,e,t)},e}(),EL=new RN(50);function Owe(e){if(typeof e==`string`){var t=EL.get(e);return t&&t.image}else return e}function DL(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=EL.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!kL(t)&&a.pending.push(o)):(t=EA.loadImage(e,OL,OL),t.__zrImageSrc=e,EL.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function OL(){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 kL(e){return e&&e.width&&e.height}var AL=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function kwe(e,t,n,r,i){var a={};return jL(a,e,t,n,r,i),a.text}function jL(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
||
`);a=ML(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)NL(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
||
`),e.isTruncated=s}function ML(e,t,n,r){r||={};var i=Z({},r);n=hj(n,`...`),i.maxIterations=hj(r.maxIterations,2);var a=i.minChar=hj(r.minChar,0),o=i.fontMeasureInfo=gF(t),s=o.asciiCharWidth;i.placeholder=hj(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=xF(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 NL(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=xF(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?Awe(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=xF(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Awe(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=bF(n,e.charCodeAt(i));return i}function jwe(e,t,n,r){var i=BL(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=EF(l),f=hj(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?IL(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=ML(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)NL(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=gF(l),S=0;S<_.length;S++)w=Math.max(xF(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 Mwe=function(){function e(){}return e}(),PL=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Nwe=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 Pwe(e,t,n,r,i){var a=new Nwe,o=BL(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=AL.lastIndex=0,h;(h=AL.exec(o))!=null;){var g=h.index;g>m&&FL(a,o.substring(m,g),t,p),FL(a,h[2],t,p,h[1]),m=AL.lastIndex}m<o.length&&FL(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=EF(N);var P=hj(A.height,k.contentHeight);if(k.innerHeight=P,j&&(P+=j[0]+j[2]),k.height=P,k.lineHeight=gj(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=xF(gF(N),k.text);else{if(L){var R=A.backgroundColor,z=R&&R.image;z&&(z=Owe(z),kL(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):(jL(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=xF(gF(N),k.text)):k.contentWidth=xF(gF(N),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=hj(u,y),a.outerHeight=a.height=hj(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 FL(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=DF(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
||
`),l=!0),r.accumWidth=m}else{var h=IL(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=gF(c),_=0;_<u.length;_++){var v=u[_],y=new Mwe;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:xF(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new PL)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new PL([y]))}}function Fwe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Iwe=YA(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Lwe(e){return Fwe(e)?!!Iwe[e]:!0}function IL(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=gF(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=bF(d,p.charCodeAt(0)),h=r?!1:!Lwe(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 LL(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;VM.set(RL,wF(n,o,i),TF(r,s,a),o,s),VM.intersect(t,RL,null,zL);var c=zL.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=wF(c.x,c.width,i,!0),e.baseY=TF(c.y,c.height,a,!0)}}var RL=new VM(0,0,0,0),zL={outIntersectRect:{},clamp:!0};function BL(e){return e==null?e=``:e+=``}function Rwe(e){var t=BL(e.text),n=e.font;return VL(e,xF(gF(n),t),EF(n),null)}function VL(e,t,n,r){var i=new VM(wF(e.x||0,t,e.textAlign),TF(e.y||0,n,e.textBaseline),t,n),a=r??(HL(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function HL(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var UL=`__zr_style_`+Math.round(Math.random()*10),WL={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},GL={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};WL[UL]=!0;var KL=[`z`,`z2`,`invisible`],zwe=[`invisible`],qL=function(e){Pj(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=QA(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&&Bwe(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 VM(0,0,0,0),t?VM.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 VM(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 Oj(WL,e)},t.prototype.useStyle=function(e){e[UL]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[UL]},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,KL)},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=QA(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=QA(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?zwe:KL,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 GL},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}(NF),JL=new VM(0,0,0,0),YL=new VM(0,0,0,0);function Bwe(e,t,n){return JL.copy(e.getBoundingRect()),e.transform&&JL.applyTransform(e.transform),YL.width=t,YL.height=n,!JL.intersect(YL)}var XL=Math.min,ZL=Math.max,QL=Math.sin,$L=Math.cos,eR=Math.PI*2,tR=Fj(),nR=Fj(),rR=Fj();function iR(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=XL(i,r[0]),a=ZL(a,r[0]),o=XL(o,r[1]),s=ZL(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function aR(e,t,n,r,i,a){i[0]=XL(e,n),i[1]=XL(t,r),a[0]=ZL(e,n),a[1]=ZL(t,r)}var oR=[],sR=[];function Vwe(e,t,n,r,i,a,o,s,c,l){var u=ON,d=TN,f=u(e,n,i,o,oR);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,oR[p]);c[0]=XL(m,c[0]),l[0]=ZL(m,l[0])}f=u(t,r,a,s,sR);for(var p=0;p<f;p++){var h=d(t,r,a,s,sR[p]);c[1]=XL(h,c[1]),l[1]=ZL(h,l[1])}c[0]=XL(e,c[0]),l[0]=ZL(e,l[0]),c[0]=XL(o,c[0]),l[0]=ZL(o,l[0]),c[1]=XL(t,c[1]),l[1]=ZL(t,l[1]),c[1]=XL(s,c[1]),l[1]=ZL(s,l[1])}function Hwe(e,t,n,r,i,a,o,s){var c=NN,l=jN,u=ZL(XL(c(e,n,i),1),0),d=ZL(XL(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=XL(e,i,f),o[1]=XL(t,a,p),s[0]=ZL(e,i,f),s[1]=ZL(t,a,p)}function Uwe(e,t,n,r,i,a,o,s,c){var l=Qj,u=$j,d=Math.abs(i-a);if(d%eR<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(tR[0]=$L(i)*n+e,tR[1]=QL(i)*r+t,nR[0]=$L(a)*n+e,nR[1]=QL(a)*r+t,l(s,tR,nR),u(c,tR,nR),i%=eR,i<0&&(i+=eR),a%=eR,a<0&&(a+=eR),i>a&&!o?a+=eR:i<a&&o&&(i+=eR),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(rR[0]=$L(p)*n+e,rR[1]=QL(p)*r+t,l(s,rR,s),u(c,rR,c))}var cR={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},lR=[],uR=[],dR=[],fR=[],pR=[],mR=[],hR=Math.min,gR=Math.max,_R=Math.cos,vR=Math.sin,yR=Math.abs,bR=Math.PI,xR=bR*2,SR=typeof Float32Array<`u`,CR=[];function wR(e){return Math.round(e/bR*1e8)/1e8%2*bR}function TR(e,t){var n=wR(e[0]);n<0&&(n+=xR);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=xR?i=n+xR:t&&n-i>=xR?i=n-xR:!t&&n>i?i=n+(xR-wR(n-i)):t&&n<i&&(i=n-(xR-wR(i-n))),e[0]=n,e[1]=i}var ER=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=yR(n/eF/e)||0,this._uy=yR(n/eF/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(cR.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=yR(e-this._xi),r=yR(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(cR.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(cR.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(cR.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(),CR[0]=r,CR[1]=i,TR(CR,a),r=CR[0],i=CR[1];var o=i-r;return this.addData(cR.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=_R(i)*n+e,this._yi=vR(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(cR.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(cR.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)&&SR&&(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(SR&&(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,SR&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){dR[0]=dR[1]=pR[0]=pR[1]=Number.MAX_VALUE,fR[0]=fR[1]=mR[0]=mR[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 cR.M:t=r=e[a++],n=i=e[a++],pR[0]=r,pR[1]=i,mR[0]=r,mR[1]=i;break;case cR.L:aR(t,n,e[a],e[a+1],pR,mR),t=e[a++],n=e[a++];break;case cR.C:Vwe(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],pR,mR),t=e[a++],n=e[a++];break;case cR.Q:Hwe(t,n,e[a++],e[a++],e[a],e[a+1],pR,mR),t=e[a++],n=e[a++];break;case cR.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=_R(f)*u+c,i=vR(f)*d+l),Uwe(c,l,u,d,f,p,m,pR,mR),t=_R(p)*u+c,n=vR(p)*d+l;break;case cR.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];aR(r,i,r+h,i+g,pR,mR);break;case cR.Z:t=r,n=i;break}Qj(dR,dR,pR),$j(fR,fR,mR)}return a===0&&(dR[0]=dR[1]=fR[0]=fR[1]=0),new VM(dR[0],dR[1],fR[0]-dR[0],fR[1]-dR[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 cR.M:i=o=e[d++],a=s=e[d++];break;case cR.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(yR(_)>n||yR(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case cR.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=KSe(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case cR.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=JSe(i,a,y,b,h,g,10),i=h,a=g;break;case cR.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=_R(D)*T+C,s=vR(D)*E+w),m=gR(T,E)*hR(xR,Math.abs(O)),i=_R(k)*T+C,a=vR(k)*E+w;break;case cR.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case cR.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!==cR.L&&v>0&&(e.lineTo(y,b),v=0),S){case cR.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case cR.L:u=n[x++],d=n[x++];var w=yR(u-c),T=yR(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 cR.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;kN(c,k,j,N,D,lR),kN(l,A,M,P,D,uR),e.bezierCurveTo(lR[1],uR[1],lR[2],uR[2],lR[3],uR[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case cR.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;PN(c,k,j,D,lR),PN(l,A,M,D,uR),e.quadraticCurveTo(lR[1],uR[1],lR[2],uR[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case cR.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=yR(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=_R(z)*L+F,s=vR(z)*R+I),c=_R(G)*L+F,l=vR(G)*R+I;break;case cR.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+hR(ne,K),d),ne-=K,ne>0&&e.lineTo(u+K,d+hR(ne,te)),ne-=te,ne>0&&e.lineTo(u+gR(K-ne,0),d+te),ne-=K,ne>0&&e.lineTo(u,d+gR(te-ne,0));break lo}h+=E}e.rect(u,d,K,te);break;case cR.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=cR,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function DR(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 Wwe(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:AN(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function OR(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:FN(e,t,n,r,i,a,s,c,null)<=l/2}var kR=Math.PI*2;function AR(e){return e%=kR,e<0&&(e+=kR),e}var jR=Math.PI*2;function Gwe(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)%jR<1e-4)return!0;if(a){var d=r;r=AR(i),i=AR(d)}else r=AR(r),i=AR(i);r>i&&(i+=jR);var f=Math.atan2(c,s);return f<0&&(f+=jR),f>=r&&f<=i||f+jR>=r&&f+jR<=i}function MR(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 NR=ER.CMD,PR=Math.PI*2,Kwe=1e-4;function qwe(e,t){return Math.abs(e-t)<Kwe}var FR=[-1,-1,-1],IR=[-1,-1];function Jwe(){var e=IR[0];IR[0]=IR[1],IR[1]=e}function Ywe(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=DN(t,r,a,s,l,FR);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=FR[h],_=g===0||g===1?.5:1;TN(e,n,i,o,g)<c||(f<0&&(f=ON(t,r,a,s,IR),IR[1]<IR[0]&&f>1&&Jwe(),p=TN(t,r,a,s,IR[0]),f>1&&(m=TN(t,r,a,s,IR[1]))),f===2?g<IR[0]?d+=p<t?_:-_:g<IR[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<IR[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Xwe(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=qSe(t,r,a,s,FR);if(c===0)return 0;var l=NN(t,r,a);if(l>=0&&l<=1){for(var u=0,d=jN(t,r,a,l),f=0;f<c;f++){var p=FR[f]===0||FR[f]===1?.5:1,m=jN(e,n,i,FR[f]);m<o||(FR[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=FR[0]===0||FR[0]===1?.5:1,m=jN(e,n,i,FR[0]);return m<o?0:a<t?p:-p}}function Zwe(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);FR[0]=-c,FR[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=PR-1e-4){r=0,i=PR;var u=a?1:-1;return o>=FR[0]+e&&o<=FR[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=PR,i+=PR);for(var f=0,p=0;p<2;p++){var m=FR[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=PR+h),(h>=r&&h<=i||h+PR>=r&&h+PR<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function LR(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===NR.M&&m>1&&(n||(s+=MR(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case NR.M:u=a[m++],d=a[m++],c=u,l=d;break;case NR.L:if(n){if(DR(c,l,a[m],a[m+1],t,r,i))return!0}else s+=MR(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case NR.C:if(n){if(Wwe(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Ywe(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 NR.Q:if(n){if(OR(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Xwe(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case NR.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+=MR(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Gwe(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Zwe(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case NR.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(DR(u,d,f,d,t,r,i)||DR(f,d,f,p,t,r,i)||DR(f,p,u,p,t,r,i)||DR(u,p,u,d,t,r,i))return!0}else s+=MR(f,d,f,p,r,i),s+=MR(u,p,u,d,r,i);break;case NR.Z:if(n){if(DR(c,l,u,d,t,r,i))return!0}else s+=MR(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!qwe(l,d)&&(s+=MR(c,l,u,d,r,i)||0),s!==0}function Qwe(e,t,n){return LR(e,0,!1,t,n)}function $we(e,t,n,r){return LR(e,t,!0,n,r)}var RR=UA({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},WL),eTe={style:UA({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},GL.style)},zR=mF.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),BR=function(e){Pj(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<zR.length;++s)i[zR[s]]=this[zR[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=QA(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(rj(e)){var t=aP(e,0);return t>.5?nF:t>.2?TCe:rF}else if(e)return rF}return nF},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(rj(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==aP(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 ER(!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)),$we(a,o/s,e,t)))return!0}if(this.hasFill())return Qwe(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 Oj(RR,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=QA(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 eTe},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){Pj(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 zA(e.style)},n.prototype.getDefaultShape=function(){return zA(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}(qL),tTe=UA({strokeFirst:!0,font:Yxe,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},RR),VR=function(e){Pj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return HL(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Oj(tTe,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Rwe(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(qL);VR.prototype.type=`tspan`;var nTe=UA({x:0,y:0},WL),rTe={style:UA({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},GL.style)};function iTe(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var HR=function(e){Pj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Oj(nTe,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=iTe(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 rTe},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new VM(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(qL);HR.prototype.type=`image`;function aTe(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 UR=Math.round;function WR(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?(UR(r*2)===UR(i*2)&&(e.x1=e.x2=KR(r,s,!0)),UR(a*2)===UR(o*2)&&(e.y1=e.y2=KR(a,s,!0)),e):e}}function GR(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=KR(r,s,!0),e.y=KR(i,s,!0),e.width=Math.max(KR(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(KR(i+o,s,!1)-e.y,o===0?0:1),e):e}}function KR(e,t,n){if(!t)return e;var r=UR(e*2);return(r+UR(t))%2==0?r/2:(r+(n?1:-1))/2}var oTe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),sTe={},qR=function(e){Pj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new oTe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=GR(sTe,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?aTe(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(BR);qR.prototype.type=`rect`;var JR={fill:`#000`},YR=2,XR={},cTe={style:UA({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},GL.style)},ZR=function(e){Pj(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=JR,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,dTe(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 VM(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||JR},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=QA(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 cTe},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`;LL(XR,r.overflowRect,i,a,o,s),i=XR.baseX,a=XR.baseY;var c=jwe(oz(e),e,XR.outerWidth,XR.outerHeight),l=sz(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=TF(a,c.contentHeight,s);if(l||n){var _=wF(i,f,o),v=TF(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=az(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=iz(`fill`in e?e.fill:(x=!0,r.fill)),C=rz(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=YR,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(VR),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,ez(D,e),g+=m,E.setBoundingRect(VL(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;LL(XR,t.overflowRect,i,a,n,r),i=XR.baseX,a=XR.baseY;var o=Pwe(oz(e),e,XR.outerWidth,XR.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=wF(i,c,n),f=TF(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;sz(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&&sz(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=az(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(VR),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=iz(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=rz(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=YR,_=!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=gj(s.opacity,t.opacity,1),ez(p,s),y&&(p.lineWidth=gj(s.lineWidth,t.lineWidth,g),p.lineDash=hj(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(VL(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(qR),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=hj(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(HR),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=hj(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=gj(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return tz(e)&&(t=[e.fontStyle,e.fontWeight,$R(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&bj(t)||e.textFont||e.font},t}(qL),lTe={left:!0,right:1,center:1},uTe={top:1,bottom:1,middle:1},QR=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function $R(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function ez(e,t){for(var n=0;n<QR.length;n++){var r=QR[n],i=t[r];i!=null&&(e[r]=i)}}function tz(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function dTe(e){return nz(e),Q(e.rich,nz),e}function nz(e){if(e){e.font=ZR.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||lTe[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||uTe[n]?n:`top`,e.padding&&=vj(e.padding)}}function rz(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function iz(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function az(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function oz(e){var t=e.text;return t!=null&&(t+=``),t}function sz(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var cz=YI(),lz=function(e,t,n,r){if(r){var i=cz(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=cz(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},uz=`series`,dz=Ej([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),fz=`original`,pz=`arrayRows`,mz=`objectRows`,hz=`keyedColumns`,gz=`typedArray`,fTe=`unknown`,_z=`column`,vz=`Roam`,pTe=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],yz=function(){function e(e){Q(pTe,function(t){this[t]=$A(e[t],e)},this)}return e}();function bz(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var xz=1,Sz={},Cz=YI(),wz=YI(),Tz=[`emphasis`,`blur`,`select`],Ez=[`normal`,`emphasis`,`blur`,`select`],Dz=`highlight`,Oz=`downplay`,kz=`select`,Az=`unselect`,jz=`toggleSelect`,Mz=`selectchanged`;function Nz(e){return e!=null&&e!==`none`}function Pz(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Fz(e){Pz(e,`emphasis`,2)}function Iz(e){e.hoverState===2&&Pz(e,`normal`,0)}function Lz(e){Pz(e,`blur`,1)}function Rz(e){e.hoverState===1&&Pz(e,`normal`,0)}function mTe(e){e.selected=!0}function hTe(e){e.selected=!1}function zz(e,t,n){t(e,n)}function Bz(e,t,n){zz(e,t,n),e.isGroup&&e.traverse(function(e){zz(e,t,n)})}function Vz(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 gTe(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 _Te(e,t,n,r){var i=n&&WA(n,`select`)>=0,a=!1;if(e instanceof BR){var o=Cz(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Nz(s)||Nz(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=Z({},r),l=Z({},l),l.fill=s):!Nz(l.fill)&&Nz(s)?(a=!0,r=Z({},r),l=Z({},l),l.fill=sP(s)):!Nz(l.stroke)&&Nz(c)&&(a||(r=Z({},r),l=Z({},l)),l.stroke=sP(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 vTe(e,t,n){if(n&&n.z2==null){n=Z({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function yTe(e,t,n){var r=WA(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:gTe(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 Hz(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return _Te(this,e,t,n);if(e===`blur`)return yTe(this,e,n);if(e===`select`)return vTe(this,e,n)}return n}function Uz(e){e.stateProxy=Hz;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Hz),n&&(n.stateProxy=Hz)}function Wz(e,t){!Qz(e,t)&&!e.__highByOuter&&Bz(e,Fz)}function Gz(e,t){!Qz(e,t)&&!e.__highByOuter&&Bz(e,Iz)}function Kz(e,t){e.__highByOuter|=1<<(t||0),Bz(e,Fz)}function qz(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Bz(e,Iz)}function Jz(e){Bz(e,Lz)}function Yz(e){Bz(e,Rz)}function Xz(e){Bz(e,mTe)}function Zz(e){Bz(e,hTe)}function Qz(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function $z(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=wz(i),o=bz(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Rz(e)}),s&&n.push(i)),a.isBlured=!1}),Q(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function eB(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&&Yz(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`||Lz(e)}),qA(t))a(e.getData(),t);else if(oj(t))for(var u=QA(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),wz(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 tB(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){wz(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Lz(e)})}}}function bTe(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=JI(i,t);a=(tj(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=cz(o);eB(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&eB(r,u,d,n)}}}function nB(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(cz(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function xTe(e,t,n){var r=cz(e),i=nB(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&tB(r.componentMainType,r.componentIndex,n),Q(a,function(e){return Wz(e,t)})):(eB(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&tB(r.componentMainType,r.componentIndex,n),Wz(e,t))}function STe(e,t,n){$z(n);var r=cz(e),i=nB(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Q(i,function(e){return Gz(e,t)}):Gz(e,t)}function CTe(e,t,n){if(dB(t)){var r=t.dataType,i=JI(e.getData(r),t);tj(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function rB(e){Q(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Xz(t):Zz(t)})})}function wTe(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 iB(e,t,n){lB(e,!0),Bz(e,Uz),oB(e,t,n)}function TTe(e){lB(e,!1)}function aB(e,t,n,r){r?TTe(e):iB(e,t,n)}function oB(e,t,n){var r=cz(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var sB=[`emphasis`,`blur`,`select`],ETe={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function cB(e,t,n,r){n||=`itemStyle`;for(var i=0;i<sB.length;i++){var a=sB[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[ETe[n]]()}}function lB(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 uB(e){return!!(e&&e.__highDownDispatcher)}function DTe(e,t,n){var r=cz(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function OTe(e){var t=Sz[e];return t==null&&xz<=32&&(t=Sz[e]=xz++),t}function dB(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function fB(e){var t=e.type;return t===`highlight`||t===`downplay`}function kTe(e){var t=Cz(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 pB=ER.CMD,ATe=[[],[],[]],mB=Math.sqrt,jTe=Math.atan2;function hB(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=pB.M,d=pB.C,f=pB.L,p=pB.R,m=pB.A,h=pB.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=mB(t[0]*t[0]+t[1]*t[1]),y=mB(t[2]*t[2]+t[3]*t[3]),b=jTe(-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++],Zj(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Zj(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=ATe[c];x[0]=n[o++],x[1]=n[o++],Zj(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var gB=Math.sqrt,_B=Math.sin,vB=Math.cos,yB=Math.PI;function bB(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function xB(e,t){return(e[0]*t[0]+e[1]*t[1])/(bB(e)*bB(t))}function SB(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(xB(e,t))}function CB(e,t,n,r,i,a,o,s,c,l,u){var d=yB/180*c,f=vB(d)*(e-n)/2+_B(d)*(t-r)/2,p=-1*_B(d)*(e-n)/2+vB(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=gB(m),s*=gB(m));var h=(i===a?-1:1)*gB((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+vB(d)*g-_B(d)*_,y=(t+r)/2+_B(d)*g+vB(d)*_,b=SB([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=SB(x,S);if(xB(x,S)<=-1&&(C=yB),xB(x,S)>=1&&(C=0),C<0){var w=Math.round(C/yB*1e6)/1e6;C=yB*2+w%2*yB}u.addData(l,v,y,o,s,b,C,d,a)}var MTe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,NTe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function PTe(e){var t=new ER;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ER.CMD,c=e.match(MTe);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(NTe)||[],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,CB(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,CB(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 wB=function(e){Pj(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(BR);function TB(e){return e.setData!=null}function EB(e,t){var n=PTe(e),r=Z({},t);return r.buildPath=function(e){var t=TB(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){hB(n,e),this.dirtyShape()},r}function DB(e,t){return new wB(EB(e,t))}function FTe(e,t){var n=EB(e,t);return function(e){Pj(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(wB)}function ITe(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 BR(t);return o.createPathProxy(),o.buildPath=function(e){if(TB(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function OB(e,t){t||={};var n=new BR;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?hB(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 LTe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),kB=function(e){Pj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new LTe},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}(BR);kB.prototype.type=`circle`;var RTe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),AB=function(e){Pj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new RTe},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}(BR);AB.prototype.type=`ellipse`;var jB=Math.PI,MB=jB*2,NB=Math.sin,PB=Math.cos,zTe=Math.acos,FB=Math.atan2,IB=Math.abs,LB=Math.sqrt,RB=Math.max,zB=Math.min,BB=1e-4;function BTe(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<BB))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function VB(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/LB(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)*LB(RB(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 VTe(e){var t;if(tj(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 HTe(e,t){var n,r=RB(t.r,0),i=RB(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=IB(c-s),p=f>MB&&f%MB;if(p>BB&&(f=p),!(r>BB))e.moveTo(l,u);else if(f>MB-BB)e.moveTo(l+r*PB(s),u+r*NB(s)),e.arc(l,u,r,s,c,!d),i>BB&&(e.moveTo(l+i*PB(c),u+i*NB(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*PB(s),j=r*NB(s),M=i*PB(c),N=i*NB(c),P=f>BB;if(P){var F=t.cornerRadius;F&&(n=VTe(F),m=n[0],h=n[1],g=n[2],_=n[3]);var I=IB(r-i)/2;if(v=zB(I,g),y=zB(I,_),b=zB(I,m),x=zB(I,h),w=S=RB(v,y),T=C=RB(b,x),(S>BB||C>BB)&&(E=r*PB(c),D=r*NB(c),O=i*PB(s),k=i*NB(s),f<jB)){var L=BTe(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/NB(zTe((R*B+z*V)/(LB(R*R+z*z)*LB(B*B+V*V)))/2),U=LB(L[0]*L[0]+L[1]*L[1]);w=zB(S,(r-U)/(H+1)),T=zB(C,(i-U)/(H-1))}}}if(!P)e.moveTo(l+A,u+j);else if(w>BB){var W=zB(g,w),G=zB(_,w),ee=VB(O,k,A,j,r,W,d),K=VB(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,FB(ee.y0,ee.x0),FB(K.y0,K.x0),!d):(W>0&&e.arc(l+ee.cx,u+ee.cy,W,FB(ee.y0,ee.x0),FB(ee.y1,ee.x1),!d),e.arc(l,u,r,FB(ee.cy+ee.y1,ee.cx+ee.x1),FB(K.cy+K.y1,K.cx+K.x1),!d),G>0&&e.arc(l+K.cx,u+K.cy,G,FB(K.y1,K.x1),FB(K.y0,K.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>BB)||!P)e.lineTo(l+M,u+N);else if(T>BB){var W=zB(m,T),G=zB(h,T),ee=VB(M,N,E,D,i,-G,d),K=VB(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,FB(ee.y0,ee.x0),FB(K.y0,K.x0),!d):(G>0&&e.arc(l+ee.cx,u+ee.cy,G,FB(ee.y0,ee.x0),FB(ee.y1,ee.x1),!d),e.arc(l,u,i,FB(ee.cy+ee.y1,ee.cx+ee.x1),FB(K.cy+K.y1,K.cx+K.x1),d),W>0&&e.arc(l+K.cx,u+K.cy,W,FB(K.y1,K.x1),FB(K.y0,K.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var UTe=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}(),HB=function(e){Pj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new UTe},t.prototype.buildPath=function(e,t){HTe(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(BR);HB.prototype.type=`sector`;var WTe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),UB=function(e){Pj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new WTe},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}(BR);UB.prototype.type=`ring`;function GTe(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++)Qj(u,u,e[f]),$j(d,d,e[f]);Qj(u,u,r[0]),$j(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(Lj(e[f]));continue}else c=e[f-1],l=e[f+1];Vj(a,l,c),Wj(a,a,t);var h=Kj(m,c),g=Kj(m,l),_=h+g;_!==0&&(h/=_,g/=_),Wj(o,a,-h),Wj(s,a,g);var v=zj([],m,o),y=zj([],m,s);r&&($j(v,v,u),Qj(v,v,d),$j(y,y,u),Qj(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function WB(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=GTe(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 KTe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),GB=function(e){Pj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new KTe},t.prototype.buildPath=function(e,t){WB(e,t,!0)},t}(BR);GB.prototype.type=`polygon`;var qTe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),KB=function(e){Pj(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new qTe},t.prototype.buildPath=function(e,t){WB(e,t,!1)},t}(BR);KB.prototype.type=`polyline`;var JTe={},YTe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),qB=function(e){Pj(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 YTe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=WR(JTe,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}(BR);qB.prototype.type=`line`;var JB=[],XTe=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 YB(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?EN:TN)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?EN:TN)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?MN:jN)(e.x1,e.cpx1,e.x2,t),(n?MN:jN)(e.y1,e.cpy1,e.y2,t)]}var XB=function(e){Pj(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 XTe},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&&(PN(n,o,i,u,JB),o=JB[1],i=JB[2],PN(r,s,a,u,JB),s=JB[1],a=JB[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(kN(n,o,c,i,u,JB),o=JB[1],c=JB[2],i=JB[3],kN(r,s,l,a,u,JB),s=JB[1],l=JB[2],a=JB[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return YB(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=YB(this.shape,e,!0);return Gj(t,t)},t}(BR);XB.prototype.type=`bezier-curve`;var ZTe=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}(),ZB=function(e){Pj(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 ZTe},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}(BR);ZB.prototype.type=`arc`;var QB=function(e){Pj(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),BR.prototype.getBoundingRect.call(this)},t}(BR),$B=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),eV=function(e){Pj(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}($B),tV=function(e){Pj(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}($B),nV=Math.min,QTe=Math.max,rV=Math.abs,iV=[0,0],aV=[0,0],oV=YM(),sV=oV.minTv,cV=oV.maxTv,lV=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new OM;for(var n=0;n<2;n++)this._axes[n]=new OM;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);OM.sub(r[0],n[1],n[0]),OM.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&&OM.set(t,0,0),oV.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!oV.negativeSize&&OM.copy(t,r?oV.useDir?oV.dirMinTv:sV:cV),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,iV),e._getProjMinMaxOnAxis(a,t._corners,aV),oV.negativeSize||iV[1]<aV[0]||iV[0]>aV[1]){if(i=!1,oV.negativeSize||n)return i;var s=rV(aV[0]-iV[1]),c=rV(iV[0]-aV[1]);nV(s,c)>cV.len()&&(s<c?OM.scale(cV,o,-s*r):OM.scale(cV,o,c*r))}else if(!n){var s=rV(aV[0]-iV[1]),c=rV(iV[0]-aV[1]);(oV.useDir||nV(s,c)<sV.len())&&((s<c||!oV.bidirectional)&&(OM.scale(sV,o,s*r),oV.useDir&&oV.calcDirMTV()),(s>=c||!oV.bidirectional)&&(OM.scale(sV,o,-c*r),oV.useDir&&oV.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=nV(l,o),s=QTe(l,s)}n[0]=o+oV.touchThreshold,n[1]=s-oV.touchThreshold,oV.negativeSize=n[1]<n[0]},e}(),$Te=[],uV=function(e){Pj(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 VM(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($Te)),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}(qL),dV=YI();function fV(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=hj(r.duration,200),u=hj(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)),nj(d)&&(d=d(n,i)),nj(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function pV(e,t,n,r,i,a,o){var s=!1,c;nj(i)?(o=a,a=i,i=null):oj(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=fV(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 mV(e,t,n,r,i,a){pV(`update`,e,t,n,r,i,a)}function hV(e,t,n,r,i,a){pV(`enter`,e,t,n,r,i,a)}function gV(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 _V(e,t,n,r,i,a){gV(e)||pV(`leave`,e,t,n,r,i,a)}function vV(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),_V(e,{style:{opacity:0}},t,n,r)}function yV(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||vV(e,t,n,r)}):vV(e,t,n,r)}function bV(e){dV(e).oldStyle=e.style}function eEe(e){return dV(e).oldStyle}var xV=s({Arc:()=>ZB,BezierCurve:()=>XB,BoundingRect:()=>VM,Circle:()=>kB,CompoundPath:()=>QB,Ellipse:()=>AB,Group:()=>BF,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>HR,IncrementalDisplayable:()=>uV,Line:()=>qB,LinearGradient:()=>eV,OrientedBoundingRect:()=>lV,Path:()=>BR,Point:()=>OM,Polygon:()=>GB,Polyline:()=>KB,RadialGradient:()=>tV,Rect:()=>qR,Ring:()=>UB,Sector:()=>HB,Text:()=>ZR,WH:()=>wV,XY:()=>CV,applyTransform:()=>LV,calcZ2Range:()=>iH,clipPointsByRect:()=>VV,clipRectByRect:()=>HV,createIcon:()=>UV,decomposeTransform:()=>cH,ensureCopyRect:()=>tH,ensureCopyTransform:()=>nH,expandOrShrinkRect:()=>qV,extendPath:()=>EV,extendShape:()=>TV,getCurrentCanvasPainter:()=>uH,getShapeClass:()=>OV,getTransform:()=>IV,groupTransition:()=>BV,initProps:()=>hV,isBoundingRectAxisAligned:()=>$V,isElementRemoved:()=>gV,lineLineIntersect:()=>GV,linePolygonIntersect:()=>WV,makeImage:()=>AV,makePath:()=>kV,mergePath:()=>MV,payloadDisableAnimation:()=>sH,registerShape:()=>DV,removeElement:()=>_V,removeElementWithFadeOut:()=>yV,resizePath:()=>NV,retrieveZInfo:()=>rH,setTooltipConfig:()=>XV,subPixelOptimize:()=>FV,subPixelOptimizeLine:()=>PV,subPixelOptimizeRect:()=>nEe,transformDirection:()=>RV,traverseElements:()=>QV,traverseUpdateZ:()=>aH,updateProps:()=>mV}),SV={},CV=[`x`,`y`],wV=[`width`,`height`];function TV(e){return BR.extend(e)}var tEe=FTe;function EV(e,t){return tEe(e,t)}function DV(e,t){SV[e]=t}function OV(e){if(SV.hasOwnProperty(e))return SV[e]}function kV(e,t,n,r){var i=DB(e,t);return n&&(r===`center`&&(n=jV(n,i.getBoundingRect())),NV(i,n)),i}function AV(e,t,n){var r=new HR({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(jV(t,i))}}});return r}function jV(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 MV=ITe;function NV(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function PV(e,t){return WR(e,e,{lineWidth:t}),e}function nEe(e,t){return GR(e,e,t),e}var FV=KR;function IV(e,t){for(var n=bM([]);e&&e!==t;)SM(n,e.getLocalTransform(),n),e=e.parent;return n}function LV(e,t,n){return t&&!qA(t)&&(t=dF.getLocalTransform(t)),n&&(t=EM([],t)),Zj([],e,t)}function RV(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:QF(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:QF(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=LV(a,t,n),QF(a[0])>QF(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function zV(e){return!e.isGroup}function rEe(e){return e.shape!=null}function BV(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){zV(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return rEe(e)&&(t.shape=zA(e.shape)),t}var a=r(e);t.traverse(function(e){if(zV(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),mV(e,r,n,cz(e).dataIndex)}}})}function VV(e,t){return JA(e,function(e){var n=e[0];n=ZF(n,t.x),n=XF(n,t.x+t.width);var r=e[1];return r=ZF(r,t.y),r=XF(r,t.y+t.height),[n,r]})}function HV(e,t){var n=ZF(e.x,t.x),r=XF(e.x+e.width,t.x+t.width),i=ZF(e.y,t.y),a=XF(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 UV(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),UA(i,n),new HR(r)):kV(e.replace(`path://`,``),r,n,`center`)}function WV(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(GV(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function GV(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=KV(u,d,c,l);if(iEe(f))return!1;var p=e-i,m=t-a,h=KV(p,m,c,l)/f;if(h<0||h>1)return!1;var g=KV(p,m,u,d)/f;return!(g<0||g>1)}function KV(e,t,n,r){return e*r-n*t}function iEe(e){return e<=1e-6&&e>=-1e-6}function qV(e,t,n,r,i){return t==null?e:(aj(t)?JV[0]=JV[1]=JV[2]=JV[3]=t:(JV[0]=t[0],JV[1]=t[1],JV[2]=t[2],JV[3]=t[3]),r&&(JV[0]=ZF(0,JV[0]),JV[1]=ZF(0,JV[1]),JV[2]=ZF(0,JV[2]),JV[3]=ZF(0,JV[3])),n&&(JV[0]=-JV[0],JV[1]=-JV[1],JV[2]=-JV[2],JV[3]=-JV[3]),YV(e,JV,`x`,`width`,3,1,i&&i[0]||0),YV(e,JV,`y`,`height`,0,2,i&&i[1]||0),e)}var JV=[0,0,0,0];function YV(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=ZF(0,XF(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:QF(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function XV(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=rj(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(QA(c),function(e){Aj(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=cz(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:UA({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function ZV(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function QV(e,t){if(e)if(tj(e))for(var n=0;n<e.length;n++)ZV(e[n],t);else ZV(e,t)}function $V(e){return!e||QF(e[1])<eH&&QF(e[2])<eH||QF(e[0])<eH&&QF(e[3])<eH}var eH=1e-5;function tH(e,t){return e?VM.copy(e,t):t.clone()}function nH(e,t){return t?xM(e||yM(),t):void 0}function rH(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function iH(e){var t=-1/0,n=1/0;ZV(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 aH(e,t,n){oH(e,t,n,-1/0)}function oH(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=ZF(oH(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=ZF(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 sH(e){return e.animation={duration:0},e}function cH(e,t){return t?xM(lH.transform,t):bM(lH.transform),lH.decomposeTransform(),hF(e,lH),e}var lH=new dF;lH.transform=yM();function uH(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}DV(`circle`,kB),DV(`ellipse`,AB),DV(`sector`,HB),DV(`ring`,UB),DV(`polygon`,GB),DV(`polyline`,KB),DV(`rect`,qR),DV(`line`,qB),DV(`bezierCurve`,XB),DV(`arc`,ZB);var dH={};function fH(e,t){for(var n=0;n<Tz.length;n++){var r=Tz[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 pH(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??=nj(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Tz.length;l++){var u=Tz[l],d=t[u];c[u]=hj(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function mH(e,t,n,r){n||=dH;for(var i=e instanceof ZR,a=!1,o=0;o<Ez.length;o++){var s=t[Ez[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new ZR,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=pH(n,t),u=t.normal,d=!!u.getShallow(`show`),f=gH(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(_H(u,n,!1));for(var o=0;o<Tz.length;o++){var p=Tz[o],s=t[p];if(s){var m=c.ensureState(p),h=!!hj(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=gH(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=_H(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&&(CH(c).setLabelText=function(e){var r=pH(n,t,e);fH(c,r)})}else c&&(c.ignore=!0);e.dirty()}function hH(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Tz.length;r++){var i=Tz[r];n[i]=e.getModel([i,t])}return n}function gH(e,t,n,r,i){var a={};return aEe(a,e,n,r,i),t&&Z(a,t),a}function _H(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=hj(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 aEe(e,t,n,r,i){n||=dH;var a=t.ecModel,o=a&&a.option.textStyle,s=oEe(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=hj(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);xH(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=aj(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=EH.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=vj(_),h.__marginType=EH.textMargin)}xH(e,t,o,null,null,n,r,i,!0,!1)}function oEe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||dH).rich;if(n){t||={};for(var r=QA(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var vH=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],yH=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],bH=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function xH(e,t,n,r,i,a,o,s,c,l){n=!o&&n||dH;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=hj(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=hj(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=hj(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=hj(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;_<vH.length;_++){var v=vH[_],y=i!==!1&&r?gj(t.getShallow(v),r.getShallow(v),n[v]):hj(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<yH.length;_++){var v=yH[_],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;_<bH.length;_++){var v=bH[_],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 SH(e,t){var n=t&&t.getModel(`textStyle`);return bj([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 CH=YI();function wH(e,t,n,r){if(e){var i=CH(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 TH(e,t,n,r,i){var a=CH(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=hj(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=rL(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,fH(e,pH({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?hV:mV)(e,{percent:1},r,t,null,l)}var EH={minMargin:1,textMargin:2},sEe=[`textStyle`,`color`],DH=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],OH=new ZR,cEe=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(sEe):null)},e.prototype.getFont=function(){return SH({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<DH.length;n++)t[DH[n]]=this.getShallow(DH[n]);return OH.useStyle(t),OH.update(),OH.getBoundingRect()},e}(),kH=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],lEe=TL(kH),uEe=function(){function e(){}return e.prototype.getLineStyle=function(e){return lEe(this,e)},e}(),AH=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],dEe=TL(AH),fEe=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return dEe(this,e,t)},e}(),jH=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){BA(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(zA(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(!TA.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}();SL(jH),Cwe(jH),KA(jH,uEe),KA(jH,fEe),KA(jH,Dwe),KA(jH,cEe);var pEe=Math.round(Math.random()*10);function MH(e){return[e||``,pEe++].join(`_`)}function mEe(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=xL(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=xL(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function hEe(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){WA(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);WA(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){WA(t,e)>=0&&n.push(e)}),n}}function NH(e,t){return BA(BA({},e,!0),t,!0)}var gEe={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:`. `}}}},_Ee={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:``}}}},PH=`ZH`,FH=`EN`,IH=FH,LH={},RH={},zH=TA.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||IH).toUpperCase().indexOf(PH)>-1?PH:IH}():IH;function BH(e,t){e=e.toUpperCase(),RH[e]=new jH(t),LH[e]=t}function vEe(e){if(rj(e)){var t=LH[e.toUpperCase()]||{};return e===PH||e===FH?zA(t):BA(zA(t),zA(LH[IH]),!1)}else return BA(zA(e),zA(LH[IH]),!1)}function VH(e){return RH[e]}function yEe(){return RH[IH]}BH(FH,gEe),BH(PH,_Ee);var HH=null;function bEe(e){HH||=e}function UH(){return HH}function WH(e,t){var n=UH(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function GH(e){var t=e.brk;return t?t.breaks:[]}function KH(e){var t=e.brk;return t?t.hasBreaks():!1}var qH=1e3,JH=qH*60,YH=JH*60,XH=YH*24,ZH=XH*365,xEe={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})/},QH={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},SEe=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,$H=`{yyyy}-{MM}-{dd}`,eU={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:$H,hour:$H+` `+QH.hour,minute:$H+` `+QH.minute,second:$H+` `+QH.second,millisecond:SEe},tU=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],CEe=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function wEe(e){return!rj(e)&&!nj(e)?TEe(e):e}function TEe(e){e||={};var t={},n=!0;return Q(tU,function(t){n&&=e[t]==null}),Q(tU,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=tU[s],l=oj(a)&&!tj(a)?a[c]:a,u=void 0;tj(l)?(u=l.slice(),o=u[0]||``):rj(l)?(o=l,u=[o]):(o==null?o=QH[r]:xEe[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function nU(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function rU(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 EEe(e){return e===rU(e)}function DEe(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function iU(e,t,n,r){var i=bI(e),a=i[sU(n)](),o=i[cU(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[lU(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[uU(n)](),d=(u-1)%12+1,f=i[dU(n)](),p=i[fU(n)](),m=i[pU(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof jH?r:VH(r||zH)||yEe()).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,nU(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,nU(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,nU(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,nU(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,nU(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,nU(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,nU(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,nU(m,3)).replace(/{S}/g,m+``)}function OEe(e,t,n,r,i){var a=null;if(rj(n))a=n;else if(nj(n)){var o={time:e.time,level:e.time?e.time.level:0},s=UH();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=aU(e.value,i);a=n[u][u][0]}}return iU(new Date(e.value),a,i,r)}function aU(e,t){var n=bI(e),r=n[cU(t)]()+1,i=n[lU(t)](),a=n[uU(t)](),o=n[dU(t)](),s=n[fU(t)](),c=n[pU(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 oU(e,t,n){switch(t){case`year`:e[mU(n)](0);case`month`:e[hU(n)](1);case`day`:e[gU(n)](0);case`hour`:e[_U(n)](0);case`minute`:e[vU(n)](0);case`second`:e[yU(n)](0)}return e}function sU(e){return e?`getUTCFullYear`:`getFullYear`}function cU(e){return e?`getUTCMonth`:`getMonth`}function lU(e){return e?`getUTCDate`:`getDate`}function uU(e){return e?`getUTCHours`:`getHours`}function dU(e){return e?`getUTCMinutes`:`getMinutes`}function fU(e){return e?`getUTCSeconds`:`getSeconds`}function pU(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function kEe(e){return e?`setUTCFullYear`:`setFullYear`}function mU(e){return e?`setUTCMonth`:`setMonth`}function hU(e){return e?`setUTCDate`:`setDate`}function gU(e){return e?`setUTCHours`:`setHours`}function _U(e){return e?`setUTCMinutes`:`setMinutes`}function vU(e){return e?`setUTCSeconds`:`setSeconds`}function yU(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function AEe(e,t,n,r,i,a,o,s){return new ZR({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}function bU(e){if(!DI(e))return rj(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function xU(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 SU=vj;function CU(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&bj(e)?e:`-`}function a(e){return jI(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?bI(e):e;if(!isNaN(+c))return iU(c,r,n);if(s)return`-`}if(t===`ordinal`)return ij(e)?i(e):aj(e)&&a(e)?e+``:`-`;var l=EI(e);return a(l)?bU(l):ij(e)?i(e):typeof e==`boolean`?e+``:`-`}var wU=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],TU=function(e,t){return`{`+e+(t??``)+`}`};function EU(e,t,n){tj(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=wU[a];e=e.replace(TU(o),TU(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(TU(wU[c],s),n?cM(l):l)}return e}function DU(e,t,n){return Q(t,function(t,r){e=e.replace(`{`+r+`}`,n?cM(t):t)}),e}function OU(e,t){var n=rj(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:`+cM(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+cM(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 jEe(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
|
||
yyyy`);var r=bI(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`,nU(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,nU(a%100+``,2)).replace(`dd`,nU(s,2)).replace(`d`,s).replace(`hh`,nU(c,2)).replace(`h`,c).replace(`mm`,nU(l,2)).replace(`m`,l).replace(`ss`,nU(u,2)).replace(`s`,u).replace(`SSS`,nU(d,3)),e}function MEe(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function kU(e,t){return t||=`transparent`,rj(e)?e:oj(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function AU(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var jU={},MU={},NU=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(jU,!0),this._normalMasterList=n(MU,!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`){jU[e]=t;return}MU[e]=t},e.get=function(e){return MU[e]||jU[e]},e}();function NEe(e){return!!jU[e]}function PEe(e){PU.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var PU=Ej();function FU(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=PU.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function IU(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&&!NEe(n)&&(i=0))}return{coordSysType:n,kind:i}}function LU(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=IU(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 RU=function(e,t){var n=t.getReferringComponents(e,QI).models[0];return n&&n.coordinateSystem},zU=Q,BU=[`left`,`right`,`top`,`bottom`,`width`,`height`],VU=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function HU(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 UU=HU;ej(HU,`vertical`),ej(HU,`horizontal`);function WU(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 FEe(e,t){var n=YU(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===JU.point)a=n.refPoint,i=KU(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=tj(o)?o:[o,o];i=KU(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[sI(s[0],i.width)+i.x,sI(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function GU(e,t){var n=FEe(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);tj(a)||(a=[0,a]);var o=sI(r.width,t.getWidth()),s=sI(r.height,t.getHeight()),c=Math.min(o,s),l=sI(a[0],c/2),u=sI(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function KU(e,t,n){n=SU(n||0);var r=t.width,i=t.height,a=sI(e.left,r),o=sI(e.top,i),s=sI(e.right,r),c=sI(e.bottom,i),l=sI(e.width,r),u=sI(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 VM((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function qU(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`),KU(s,t)}var JU={rect:1,point:2};function YU(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=FU(e),l=c.coord,u=c.from;if(o.dataToLayout){a=JU.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=JU.point,s=u,i=o.dataToPoint(l))}return a??=JU.rect,a===JU.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 XU(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 VM(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=KU(UA({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 IEe(e,t){return e[VU[t][0]]!=null||e[VU[t][1]]!=null&&e[VU[t][2]]!=null}function ZU(e){var t=e.layoutMode||e.constructor.layoutMode;return oj(t)?t:t?{type:t}:null}function QU(e,t,n){var r=n&&n.ignoreSize;!tj(r)&&(r=[r,r]);var i=o(VU[0],0),a=o(VU[1],1);c(VU[0],e,i),c(VU[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(zU(n,function(t){c[t]=e[t]}),zU(n,function(e){Aj(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(!Aj(a,f)&&Aj(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){zU(e,function(e){t[e]=n[e]})}}function $U(e){return eW({},e)}function eW(e,t){return t&&e&&zU(BU,function(n){Aj(t,n)&&(e[n]=t[n])}),e}var LEe=YI(),tW=function(e){X(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=MH(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=ZU(this),r=n?$U(e):{};BA(e,t.getTheme().get(this.mainType)),BA(e,this.getDefaultOption()),n&&QU(e,r,n)},t.prototype.mergeOption=function(e,t){BA(this.option,e,!0);var n=ZU(this);n&&QU(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!bwe(e))return e.defaultOption;var t=LEe(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=BA(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return $I(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return WU(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}(jH);CL(tW,jH),wL(tW),mEe(tW),hEe(tW,REe);function REe(e){var t=[];return Q(tW.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=JA(t,function(e){return xL(e).main}),e!==`dataset`&&WA(t,`dataset`)<=0&&t.unshift(`dataset`),t}var $={color:{},darkColor:{},size:{}},nW=$.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 rW in Z(nW,{primary:nW.neutral80,secondary:nW.neutral70,tertiary:nW.neutral60,quaternary:nW.neutral50,disabled:nW.neutral20,border:nW.neutral30,borderTint:nW.neutral20,borderShade:nW.neutral40,background:nW.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:nW.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:nW.neutral70,axisLineTint:nW.neutral40,axisTick:nW.neutral70,axisTickMinor:nW.neutral60,axisLabel:nW.neutral70,axisSplitLine:nW.neutral15,axisMinorSplitLine:nW.neutral05}),nW)if(nW.hasOwnProperty(rW)){var iW=nW[rW];rW===`theme`?$.darkColor.theme=nW.theme.slice():rW===`highlight`?$.darkColor.highlight=`rgba(255,231,130,0.4)`:rW.indexOf(`accent`)===0?$.darkColor[rW]=nP(iW,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):$.darkColor[rW]=nP(iW,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 aW=``;typeof navigator<`u`&&(aW=navigator.platform||``);var oW=`rgba(0, 0, 0, 0.2)`,sW=$.color.theme[0],zEe=nP(sW,null,null,.9),cW={darkMode:`auto`,colorBy:`series`,color:$.color.theme,gradientColor:[zEe,sW],aria:{decal:{decals:[{color:oW,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:oW,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:oW,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:oW,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:oW,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:oW,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:aW.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},lW={Must:1,Might:2,Not:3},uW=YI();function BEe(e){uW(e).datasetMap=Ej()}function dW(e,t,n){var r={},i=pW(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=uW(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),Q(e,function(t,n){var i=oj(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 fW(e,t,n){var r={};if(!pW(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&Q(a,function(e,t){(oj(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=hW(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===lW.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===lW.Not)&&(e.n=c),f(e)&&s[e.n]!==lW.Not)return e;d||(u===lW.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 pW(e){if(!e.get(`data`,!0))return $I(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},QI).models[0]}function VEe(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:$I(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},QI).models}function mW(e,t){return hW(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function hW(e,t,n,r,i,a){var o,s=5;if(cj(e))return lW.Not;var c,l;if(r){var u=r[a];oj(u)?(c=u.name,l=u.type):rj(u)&&(c=u)}if(l!=null)return l===`ordinal`?lW.Must:lW.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 lW.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 lW.Not;var f=_[c];if(!f||cj(f))return lW.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=VI(g);if(!tj(y))return lW.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=rj(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?lW.Might:lW.Not;if(t&&e!==`-`)return lW.Must}return lW.Not}var gW=Ej();function HEe(e,t){yj(gW.get(e)==null&&t),gW.set(e,t)}function UEe(e,t,n){var r=gW.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var _W=YI(),WEe=YI(),vW=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=RI(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return bW(this,_W,r,i,e,t,n)},e.prototype.clearColorPalette=function(){KEe(this,_W)},e}();function yW(e,t,n,r){return bW(e,WEe,RI(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function GEe(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 bW(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:GEe(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 KEe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var xW,SW,CW,wW=`\0_ec_inner`,qEe=1,TW=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 jH(r),this._locale=new jH(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=OW(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,OW(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`?CW(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=Ej(),s=t&&t.replaceMergeMainTypeMap;BEe(this),Q(e,function(e,t){e!=null&&(tW.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?zA(e):BA(n[t],e,!0))}),s&&s.each(function(e,t){tW.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),tW.topologicalTravel(a,tW.getAllClassMainTypes(),c,this);function c(t){var a=UEe(this,t,RI(e[t])),o=r.get(t),c=HI(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);owe(c,t,tW),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=tW.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`&&xW(this)}this._seriesIndices||xW(this)},t.prototype.getOption=function(){var e=zA(this.option);return Q(e,function(t,n){if(tW.hasClass(n)){for(var r=RI(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!qI(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[wW],e},t.prototype.setTheme=function(e){this._theme=new jH(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?XA(a,function(e){return!!e}):EW(`name`,i,a):EW(`id`,r,a):(o=[],Q(RI(n),function(e){a[e]&&o.push(a[e])})),DW(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(DW(r?this.queryComponents(r):XA(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?XA(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(nj(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=rj(e)?r.get(e):oj(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=GI(e,null);return XA(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 XA(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return XA(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){SW(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){SW(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 SW(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){SW(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=Ej(n)},t.prototype.restoreData=function(e){xW(this);var t=this._componentsMap,n=[];t.each(function(e,t){tW.hasClass(t)&&n.push(t)}),tW.topologicalTravel(n,tW.getAllClassMainTypes(),function(n){Q(t.get(n),function(t){t&&(n!==`series`||!JEe(t,e))&&t.restoreData()})})},t.internalField=function(){xW=function(e){var t=e._seriesIndices=[];Q(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Ej(t)},SW=function(e){},CW=function(e,t){e.option={},e.option[wW]=qEe,e._componentsMap=Ej({series:[]}),e._componentsCount=Ej();var n=t.aria;oj(n)&&n.enabled==null&&(n.enabled=!0),YEe(t,e._theme.option),BA(t,cW,!1),e._mergeOption(t,null)}}(),t}(jH);function JEe(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 YEe(e,t){var n=e.color&&!e.colorLayer;Q(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||tW.hasClass(r)||(typeof t==`object`?e[r]=e[r]?BA(e[r],t,!1):zA(t):e[r]??(e[r]=t))})}function EW(e,t,n){if(tj(t)){var r=Ej();return Q(t,function(e){e!=null&&GI(e,null)!=null&&r.set(e,!0)}),XA(n,function(t){return t&&r.get(t[e])})}else{var i=GI(t,null);return XA(n,function(t){return t&&i!=null&&t[e]===i})}}function DW(e,t){return t.hasOwnProperty(`subType`)?XA(e,function(e){return e&&e.subType===t.subType}):e}function OW(e){var t=Ej();return e&&Q(RI(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}KA(TW,vW);var XEe=/^(min|max)?(.+)$/,ZEe=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Q(RI(e.series),function(e){e&&e.data&&cj(e.data)&&Sj(e.data)}),Q(RI(e.dataset),function(e){e&&e.source&&cj(e.source)&&Sj(e.source)})),e=zA(e);var r=this._optionBackup,i=QEe(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=[],zA(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=zA(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++)$Ee(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!tDe(a,this._currentMediaIndices)&&(o=JA(a,function(e){return zA(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function QEe(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&&tj(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 $Ee(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Q(e,function(e,t){var n=t.match(XEe);if(!(!n||!n[1]||!n[2])){var a=n[1];eDe(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function eDe(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function tDe(e,t){return e.join(`,`)===t.join(`,`)}var kW=Q,AW=oj,jW=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function MW(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=jW.length;n<r;n++){var i=jW[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?BA(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?BA(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function NW(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,UA(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 PW(e){NW(e,`itemStyle`),NW(e,`lineStyle`),NW(e,`areaStyle`),NW(e,`label`),NW(e,`labelLine`),NW(e,`upperLabel`),NW(e,`edgeLabel`)}function FW(e,t){var n=AW(e)&&e[t],r=AW(n)&&n.textStyle;if(r)for(var i=0,a=BI.length;i<a;i++){var o=BI[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function IW(e){e&&(PW(e),FW(e,`label`),e.emphasis&&FW(e.emphasis,`label`))}function nDe(e){if(AW(e)){MW(e),PW(e),FW(e,`label`),FW(e,`upperLabel`),FW(e,`edgeLabel`),e.emphasis&&(FW(e.emphasis,`label`),FW(e.emphasis,`upperLabel`),FW(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(MW(t),IW(t));var n=e.markLine;n&&(MW(n),IW(n));var r=e.markArea;r&&IW(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!cj(a))for(var o=0;o<a.length;o++)IW(a[o]);Q(e.categories,function(e){PW(e)})}if(i&&!cj(i))for(var o=0;o<i.length;o++)IW(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)IW(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)tj(c[o])?(IW(c[o][0]),IW(c[o][1])):IW(c[o]);e.type===`gauge`?(FW(e,`axisLabel`),FW(e,`title`),FW(e,`detail`)):e.type===`treemap`?(NW(e.breadcrumb,`itemStyle`),Q(e.levels,function(e){PW(e)})):e.type===`tree`&&PW(e.leaves)}}function LW(e){return tj(e)?e:e?[e]:[]}function RW(e){return(tj(e)?e[0]:e)||{}}function rDe(e,t){kW(LW(e.series),function(e){AW(e)&&nDe(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),kW(n,function(t){kW(LW(e[t]),function(e){e&&(FW(e,`axisLabel`),FW(e.axisPointer,`label`))})}),kW(LW(e.parallel),function(e){var t=e&&e.parallelAxisDefault;FW(t,`axisLabel`),FW(t&&t.axisPointer,`label`)}),kW(LW(e.calendar),function(e){NW(e,`itemStyle`),FW(e,`dayLabel`),FW(e,`monthLabel`),FW(e,`yearLabel`)}),kW(LW(e.radar),function(e){FW(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)}),kW(LW(e.geo),function(e){AW(e)&&(IW(e),kW(LW(e.regions),function(e){IW(e)}))}),kW(LW(e.timeline),function(e){IW(e),NW(e,`label`),NW(e,`itemStyle`),NW(e,`controlStyle`,!0);var t=e.data;tj(t)&&Q(t,function(e){oj(e)&&(NW(e,`label`),NW(e,`itemStyle`))})}),kW(LW(e.toolbox),function(e){NW(e,`iconStyle`),kW(e.feature,function(e){NW(e,`iconStyle`)})}),FW(RW(e.axisPointer),`label`),FW(RW(e.tooltip).axisPointer,`label`)}function iDe(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function aDe(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 zW(e){e&&Q(oDe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var oDe=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],sDe=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],BW=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function VW(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<BW.length;n++){var r=BW[n][1],i=BW[n][0];t[r]!=null&&(t[i]=t[r])}}function HW(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function UW(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function cDe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function WW(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&WW(e[n].children,t)}function GW(e,t){rDe(e,t),e.series=RI(e.series),Q(e.series,function(e){if(oj(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),HW(e.label);var n=e.data;if(n&&!cj(n))for(var r=0;r<n.length;r++)HW(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=iDe(e,`pointer.color`);i!=null&&aDe(e,`itemStyle.color`,i)}else if(t===`bar`){VW(e),VW(e.backgroundStyle),VW(e.emphasis);var n=e.data;if(n&&!cj(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(VW(n[r]),VW(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)),UW(e),WW(e.data,UW)}else t===`graph`||t===`sankey`?cDe(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&UA(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),zW(e)}}),e.dataRange&&(e.visualMap=e.dataRange),Q(sDe,function(t){var n=e[t];n&&(tj(n)||(n=[n]),Q(n,function(e){zW(e)}))})}var lDe=vL(uDe);function uDe(e){var t=Ej();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)}),dDe(e))})}function dDe(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=gI(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var KW=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&&mW(this,n)===lW.Must&&(r.type=`ordinal`)}}return e}();function qW(e){return e instanceof KW}function JW(e,t,n){n||=XW(e);var r=t.seriesLayoutBy,i=pDe(e,n,r,t.sourceHeader,t.dimensions);return new KW({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:zA(t)})}function YW(e){return new KW({data:e,sourceFormat:cj(e)?gz:fz})}function fDe(e){return new KW({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:zA(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function XW(e){var t=fTe;if(cj(e))t=gz;else if(tj(e)){e.length===0&&(t=pz);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(tj(i)||cj(i)){t=pz;break}else if(oj(i)){t=mz;break}}}}else if(oj(e)){for(var a in e)if(Aj(e,a)&&qA(e[a])){t=hz;break}}return t}function pDe(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:ZW(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?QW(function(e){e!=null&&e!==`-`&&(rj(e)?o??=1:o=0)},n,s,10):o=aj(r)?r:+!!r,!i&&o===1&&(i=[],QW(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||=mDe(e);else if(t===`keyedColumns`)i||(i=[],Q(e,function(e,t){i.push(t)}));else if(t===`original`){var c=VI(e[0]);a=tj(c)&&c.length||1}return{startIndex:o,dimensionsDefine:ZW(i),dimensionsDetectedCount:a}}function mDe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return QA(n)}function ZW(e){if(e){var t=Ej();return JA(e,function(e,n){e=oj(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 QW(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 $W(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var eG,tG,nG,rG,iG,aG,oG=function(){function e(e,t){var n=qW(e)?e:YW(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),aG(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;aG=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=iG[mG(o,s)];Z(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=$A(lG(o,s),null,i,c,l),e.count=$A(dG(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};iG=(e={},e[pz+`_`+_z]={pure:!0,appendData:i},e[pz+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[mz]={pure:!0,appendData:i},e[hz]={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[fz]={appendData:i},e[gz]={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}(),sG=function(e){tj(e)||NI(`series.data or dataset.source must be an array.`)};eG={},eG[pz+`_`+_z]=sG,eG[pz+`_row`]=sG,eG[mz]=sG,eG[hz]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??NI(`dimension name must not be null/undefined.`)},eG[fz]=sG;var cG=function(e,t,n,r){return e[r]},hDe=(tG={},tG[pz+`_`+_z]=function(e,t,n,r){return e[r+t]},tG[pz+`_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},tG[mz]=cG,tG[hz]=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},tG[fz]=cG,tG);function lG(e,t){return hDe[mG(e,t)]}var uG=function(e,t,n){return e.length},gDe=(nG={},nG[pz+`_`+_z]=function(e,t,n){return Math.max(0,e.length-t)},nG[pz+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},nG[mz]=uG,nG[hz]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},nG[fz]=uG,nG);function dG(e,t){return gDe[mG(e,t)]}var fG=function(e,t,n){return e[t]},_De=(rG={},rG[pz]=fG,rG[mz]=function(e,t,n){return e[n]},rG[hz]=fG,rG[fz]=function(e,t,n){var r=VI(e);return r instanceof Array?r[t]:r},rG[gz]=fG,rG);function pG(e){return _De[e]}function mG(e,t){return e===`arrayRows`?e+`_`+t:e}function hG(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 pG(a)(r,o,s)}else{var c=r;return a===`original`&&(c=VI(r)),c}}}}var vDe=/\{@(.+?)\}/g,gG=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&&tj(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),nj(i))return s.status=t,s.dimensionIndex=r,i(s);if(rj(i))return EU(i,s).replace(vDe,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=hG(o,e,i);if(a&&tj(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return hG(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function _G(e){var t,n;return oj(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function vG(e){return new yDe(e)}var yDe=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(tj(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){yG.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:yG.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),tj(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}(),yG=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 bG(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!aj(e)&&e!=null&&e!==`-`&&(e=+bI(e)),e==null||e===``?NaN:Number(e))}var bDe=Ej({number:function(e){return parseFloat(e)},time:function(e){return+bI(e)},trim:function(e){return rj(e)?bj(e):e}});function xG(e){return bDe.get(e)}var SG={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}},xDe=function(){function e(e,t){aj(t)||PI(``),this._opFn=SG[e],this._rvalFloat=EI(t)}return e.prototype.evaluate=function(e){return aj(e)?this._opFn(e,this._rvalFloat):this._opFn(EI(e),this._rvalFloat)},e}(),CG=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=aj(e)?e:EI(e),r=aj(t)?t:EI(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=rj(e),s=rj(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),SDe=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=EI(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=EI(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function CDe(e,t){return e===`eq`||e===`ne`?new SDe(e===`eq`,t):Aj(SG,e)?new xDe(e,t):null}function wG(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 TG(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var wDe=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 bG(e,t)},e}();function TDe(e,t){var n=new wDe,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&PI(``);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&&(Aj(s,n)&&PI(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=lG(i,_z);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=$A(EDe,null,e)),n.cloneRawData=$A(DDe,null,e),n.count=$A(dG(i,_z),null,r,a,o);var d=pG(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=$A(ODe,null,o,s),n.cloneAllDimensionInfo=$A(kDe,null,o),n}function EDe(e){var t=e.sourceFormat;return DG(t)||PI(``),e.data}function DDe(e){var t=e.sourceFormat,n=e.data;if(DG(t)||PI(``),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 ODe(e,t,n){if(n!=null){if(aj(n)||!isNaN(n)&&!Aj(t,n))return e[n];if(Aj(t,n))return t[n]}}function kDe(e){return zA(e)}var EG=Ej();function ADe(e){e=zA(e);var t=e.type,n=``;t||PI(n);var r=t.split(`:`);r.length!==2&&PI(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,EG.set(t,e)}function jDe(e,t,n){var r=RI(e),i=r.length;i||PI(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=MDe(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function MDe(e,t,n,r){var i=``;t.length||PI(i),oj(e)||PI(i);var a=e.type,o=EG.get(a);o||PI(i);var s=JA(t,function(e){return TDe(e,o)});return JA(RI(o.transform({upstream:s[0],upstreamList:s,config:zA(e.config)})),function(e,n){var r=``;oj(e)||PI(r),e.data||PI(r),DG(XW(e.data))||PI(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:_z,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:_z,sourceHeader:0,dimensions:e.dimensions};return JW(e.data,i,null)})}function DG(e){return e===`arrayRows`||e===`objectRows`}var NDe=typeof Uint32Array>`u`?Array:Uint32Array,PDe=typeof Uint16Array>`u`?Array:Uint16Array,OG=typeof Int32Array>`u`?Array:Int32Array,kG=typeof Float64Array>`u`?Array:Float64Array,AG={float:kG,int:OG,ordinal:Array,number:Array,time:kG},jG;function MG(e){return e>65535?NDe:PDe}function FDe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function NG(e,t,n,r,i){var a=AG[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 PG=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ej()}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=jG[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],$W(r),this._dimensions=JA(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 AG[t||`float`](this._rawCount),this._rawExtent[i]=oL(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=oL());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];NG(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=jG.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=JA(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=oL()),NG(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)}),dI(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=MG(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(MG(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=QA(e),i=r.length;if(!i)return this;var a=t.count(),o=new(MG(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=oL();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(MG(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(MG(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=oL(),d=new(MG(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=oL();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=wG(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||TG(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&&YA(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?FDe(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=zA(this._extent),e._rawExtent=zA(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 bG(e[r],this._dimensions[r])}jG={arrayRows:e,objectRows:function(e,t,n,r){return bG(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return bG(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),FG=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(LG(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=cj(o)?gz:fz,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=hj(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=hj(u.sourceHeader,d.sourceHeader),m=hj(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[JW(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=[JW(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&&RG(``);var i,a=[],o=[];return Q(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&RG(``),a.push(t),o.push(e._getVersionSign())}),n?i=jDe(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[fDe(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];LG(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new PG,o.initData(new oG(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(LG(e)){var t=pW(e);return t?[t.getSourceManager()]:[]}else return JA(VEe(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(LG(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 IG(e){e.option.transform&&Sj(e.option.transform)}function LG(e){return e.mainType===`series`}function RG(e){throw Error(e)}var IDe=`line-height:1`;function zG(e){var t=e.lineHeight;return t==null?IDe:`line-height:`+cM(t+``)+`px`}function BG(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:`+cM(r+``)+`px;color:`+cM(n)+`;font-weight:`+cM(i+``),valueStyle:`font-size:`+cM(o+``)+`px;color:`+cM(a)+`;font-weight:`+cM(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var LDe=[0,10,20,30],RDe=[``,`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function VG(e,t){return t.type=e,t}function HG(e){return e.type===`section`}function UG(e){return HG(e)?zDe:BDe}function WG(e){if(HG(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Q(e.blocks,function(e){var n=WG(e);n>=t&&(t=n+ +(r&&(!n||HG(e)&&!e.noHeader)))}),t}return 0}function zDe(e,t,n,r){var i=t.noHeader,a=VDe(WG(t)),o=[],s=t.blocks||[];yj(!s||tj(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Aj(l,c)){var u=new CG(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=UG(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):KG(r,o.join(``),i?n:a.html);if(i)return d;var f=CU(t.header,`ordinal`,e.useUTC),p=BG(r,e.renderMode).nameStyle,m=zG(r);return e.renderMode===`richText`?qG(e,f,p)+a.richText+d:KG(r,`<div style="`+p+`;`+m+`;">`+cM(f)+`</div>`+d,n)}function BDe(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=tj(e)?e:[e],JA(e,function(e,t){return CU(e,tj(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||$.color.secondary,i),f=a?``:CU(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=BG(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:qG(e,f,v))+(o?``:WDe(e,m,h,g,y)):KG(r,(s?``:d)+(a?``:HDe(f,!s,v))+(o?``:UDe(m,h,g,y)),n)}}function GG(e,t,n,r,i,a){if(e)return UG(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function VDe(e){return{html:LDe[e],richText:RDe[e]}}function KG(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=zG(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function HDe(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+cM(e)+`</span>`}function UDe(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=tj(e)?e:[e],`<span style="`+i+`;`+r+`">`+JA(e,function(e){return cM(e)}).join(` `)+`</span>`}function qG(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function WDe(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(tj(t)?t.join(` `):t,a)}function JG(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return kU(n)}function YG(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var XG=function(){function e(){this.richTextStyles={},this._nextStyleNameId=OI()}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=OU({color:t,type:e,renderMode:n,markerId:r});return rj(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};tj(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 ZG(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=tj(s),l=JG(t,n),u,d,f,p;if(o>1||c&&!o){var m=GDe(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=hG(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=KI(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return VG(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[VG(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!bj(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function GDe(e,t,n,r,i){var a=t.getData(),o=YA(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(hG(a,n,e),e)}):Q(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(VG(`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 QG=YI();function $G(e,t){return e.getName(t)||e.getId(t)}var eK=`__universalTransitionEnabled`,tK=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=vG({count:qDe,reset:JDe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(QG(this).sourceManager=new FG(this)).prepareSource();var r=this.getInitialData(e,n);rK(r,this),this.dataTask.context.data=r,QG(this).dataBeforeProcessed=r,nK(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=ZU(this),r=n?$U(e):{},i=this.subType;tW.hasClass(i)&&(i+=`Series`),BA(e,t.getTheme().get(this.subType)),BA(e,this.getDefaultOption()),zI(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&QU(e,r,n)},t.prototype.mergeOption=function(e,t){e=BA(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ZU(this);n&&QU(this.option,e,n);var r=QG(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);rK(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,QG(this).dataBeforeProcessed=i,nK(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!cj(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&zI(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=iK(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return QG(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=iK(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}QG(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return Ej(e)},t.prototype.getSourceManager=function(){return QG(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return QG(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 ZG({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(TA.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=vW.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=$G(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=QA(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[$G(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`){oj(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=$G(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=$G(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 tW.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}(tW);KA(tK,gG),KA(tK,vW),CL(tK,tW);function nK(e){var t=e.name;KI(e)||(e.name=KDe(e)||t)}function KDe(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 qDe(e){return e.model.getRawData().count()}function JDe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),YDe}function YDe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function rK(e,t){Q(Dj(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ej(XDe,t))})}function XDe(e,t){var n=iK(e);return n&&n.setOutputEnd((t||this).count()),t}function iK(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 aK=function(){function e(){this.group=new BF,this.uid=MH(`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}();SL(aK),wL(aK);function oK(){var e=YI();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 sK=YI(),ZDe=oK(),cK=function(){function e(){this.group=new BF,this.uid=MH(`viewChart`),this.renderTask=vG({plan:QDe,reset:$De}),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&&uK(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&uK(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){QV(this.group,e)},e.markUpdateMethod=function(e,t){sK(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function lK(e,t,n){e&&uB(e)&&(t===`emphasis`?Kz:qz)(e,n)}function uK(e,t,n){var r=JI(e,t),i=t&&t.highlightKey!=null?OTe(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){lK(e,n,i)}):Q(RI(r),function(t){lK(e.getItemGraphicEl(t),n,i)})}SL(cK,[`dispose`]),wL(cK);function QDe(e){return ZDe(e.model)}function $De(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&sK(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),eOe[c]}var eOe={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)}}},dK=`\0__throttleOriginMethod`,fK=`\0__throttleRate`,pK=`\0__throttleType`;function mK(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 hK(e,t,n,r){var i=e[t];if(i){var a=i[dK]||i,o=i[pK];if(i[fK]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=mK(a,n,r===`debounce`),i[dK]=a,i[pK]=r,i[fK]=n}return i}}function gK(e,t){var n=e[t];n&&n[dK]&&(n.clear&&n.clear(),e[t]=n[dK])}var _K=YI(),vK={itemStyle:TL(AH,!0),lineStyle:TL(kH,!0)},tOe={lineStyle:`stroke`,itemStyle:`fill`};function yK(e,t){return e.visualStyleMapper||vK[t]||(console.warn(`Unknown style type '`+t+`'.`),vK.itemStyle)}function bK(e,t){return e.visualDrawType||tOe[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var nOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=yK(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=bK(e,r),c=a[s],l=nj(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`||nj(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||nj(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)}}}},xK=new jH,rOe={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=yK(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){xK.option=n[r];var o=i(xK);Z(e.ensureUniqueItemVisual(t,`style`),o),xK.option.decal&&(e.setItemVisual(t,`decal`,xK.option.decal),xK.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},iOe={performRawSeries:!0,overallReset:function(e){var t=Ej();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();_K(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=_K(e).scope,a=bK(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)}})}})}},SK=Math.PI;function aOe(e,t){t||={},UA(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 BF,r=new qR({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ZR({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 qR({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 ZB({shape:{startAngle:-SK/2,endAngle:-SK/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:SK*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:SK*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 CK=function(){function e(e,t,n,r){this._stageTaskMap=Ej(),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):gL(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Ej();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,{});yj(!(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=Ej(),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)||vG({plan:uOe,reset:dOe,count:pOe}));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||vG({reset:oOe});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Ej(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;yj(!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,vG({reset:sOe,onDirty:lOe})));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 nj(e)&&(e={overallReset:e,seriesType:mOe(e)}),e.uid=MH(`stageHandler`),t&&(e.visualType=t),e},e}();function oOe(e){e.overallReset(e.ecModel,e.api,e.payload)}function sOe(e){return e.dirtyOnOverallProgress&&cOe}function cOe(){this.agent.dirty(),this.getDownstream().dirty()}function lOe(){this.agent&&this.agent.dirty()}function uOe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function dOe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=RI(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?JA(t,function(e,t){return wK(t)}):fOe}var fOe=wK(0);function wK(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 pOe(e){return e.data.count()}function mOe(e){DK=null;try{e(TK,EK)}catch{}return DK}var TK={},EK={},DK;OK(TK,TW),OK(EK,yz),TK.eachSeriesByType=TK.eachRawSeriesByType=function(e){DK=e},TK.eachComponent=function(e){e.mainType===`series`&&e.subType&&(DK=e.subType)};function OK(e,t){for(var n in t.prototype)e[n]=jj}var kK=$.darkColor,AK=kK.background,jK=function(){return{axisLine:{lineStyle:{color:kK.axisLine}},splitLine:{lineStyle:{color:kK.axisSplitLine}},splitArea:{areaStyle:{color:[kK.backgroundTint,kK.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:kK.axisMinorSplitLine}},axisLabel:{color:kK.axisLabel},axisName:{}}},MK={label:{color:kK.secondary},itemStyle:{borderColor:kK.borderTint},dividerLineStyle:{color:kK.border}},NK={darkMode:!0,color:kK.theme,backgroundColor:AK,axisPointer:{lineStyle:{color:kK.border},crossStyle:{color:kK.borderShade},label:{color:kK.tertiary}},legend:{textStyle:{color:kK.secondary},pageTextStyle:{color:kK.tertiary}},textStyle:{color:kK.secondary},title:{textStyle:{color:kK.primary},subtextStyle:{color:kK.quaternary}},toolbox:{iconStyle:{borderColor:kK.accent50},feature:{dataView:{backgroundColor:AK,textColor:kK.primary,textareaColor:kK.background,textareaBorderColor:kK.border,buttonColor:kK.accent50,buttonTextColor:kK.neutral00}}},tooltip:{backgroundColor:kK.neutral20,defaultBorderColor:kK.border,textStyle:{color:kK.tertiary}},dataZoom:{borderColor:kK.accent10,textStyle:{color:kK.tertiary},brushStyle:{color:kK.backgroundTint},handleStyle:{color:kK.neutral00,borderColor:kK.accent20},moveHandleStyle:{color:kK.accent40},emphasis:{handleStyle:{borderColor:kK.accent50}},dataBackground:{lineStyle:{color:kK.accent30},areaStyle:{color:kK.accent20}},selectedDataBackground:{lineStyle:{color:kK.accent50},areaStyle:{color:kK.accent30}}},visualMap:{textStyle:{color:kK.secondary},handleStyle:{borderColor:kK.neutral30}},timeline:{lineStyle:{color:kK.accent10},label:{color:kK.tertiary},controlStyle:{color:kK.accent30,borderColor:kK.accent30}},calendar:{itemStyle:{color:kK.neutral00,borderColor:kK.neutral20},dayLabel:{color:kK.tertiary},monthLabel:{color:kK.secondary},yearLabel:{color:kK.secondary}},matrix:{x:MK,y:MK,backgroundColor:{borderColor:kK.axisLine},body:{itemStyle:{borderColor:kK.borderTint}}},timeAxis:jK(),logAxis:jK(),valueAxis:jK(),categoryAxis:jK(),line:{symbol:`circle`},graph:{color:kK.theme},gauge:{title:{color:kK.secondary},axisLine:{lineStyle:{color:[[1,kK.neutral05]]}},axisLabel:{color:kK.axisLabel},detail:{color:kK.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:kK.background}},radar:function(){var e=jK();return e.axisName={color:kK.axisLabel},e.axisLine.lineStyle.color=kK.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:kK.neutral20,textStyle:{color:kK.secondary}},emphasis:{itemStyle:{color:kK.neutral30}}}},sunburst:{itemStyle:{borderColor:kK.background}},map:{itemStyle:{borderColor:kK.border,areaColor:kK.neutral10},label:{color:kK.tertiary},emphasis:{label:{color:kK.primary},itemStyle:{areaColor:kK.highlight}},select:{label:{color:kK.primary},itemStyle:{areaColor:kK.highlight}}},geo:{itemStyle:{borderColor:kK.border,areaColor:kK.neutral10},emphasis:{label:{color:kK.primary},itemStyle:{areaColor:kK.highlight}},select:{label:{color:kK.primary},itemStyle:{color:kK.highlight}}}};NK.categoryAxis.splitLine.show=!1;var hOe=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(rj(e)){var i=xL(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}(),PK=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],FK=PK.concat([`symbolKeepAspect`]),gOe={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<PK.length;o++){var s=PK[o],c=e.get(s);nj(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=QA(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}}},_Oe={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<FK.length;r++){var i=FK[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function IK(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 LK(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 RK(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 zK(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 BK(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=JI(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:tj(l)?c.getName(l[0]):c.getName(l),selected:rj(r)?r:Z({},r)})}})}function vOe(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(BK(`map`,`selectchanged`,t,r,e),BK(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(BK(`map`,`selected`,t,r,e),BK(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(BK(`map`,`unselected`,t,r,e),BK(`pie`,`unselected`,t,r,e))})}function VK(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var HK=new tM,UK={};function yOe(e,t){UK[e]=t}function WK(e){return UK[e]}var GK={};function KK(e,t){GK[e]=t}function bOe(e){return GK[e]}var qK=YI();function xOe(e){qK(e).prepare={}}function SOe(e){qK(e).fullUpdate={}}function JK(e){return qK(e).prepare}function YK(e){return qK(e).fullUpdate}var COe=Math.round(Math.random()*9),wOe=typeof Object.defineProperty==`function`,TOe=function(){function e(){this._id=`__ec_inner_`+COe++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return wOe?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}(),EOe=BR.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()}}),DOe={line:qB,rect:qR,roundRect:qR,square:qR,circle:kB,diamond:BR.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:BR.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:BR.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:EOe},OOe={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}},XK={};Q(DOe,function(e,t){XK[t]=new e});var kOe=BR.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=OF(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=XK[r];i||=(r=`rect`,XK[r]),OOe[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function AOe(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 ZK(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?AV(e.slice(8),new VM(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?kV(e.slice(7),{},new VM(t,n,r,i),o?`center`:`cover`):new kOe({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=AOe,a&&c.setColor(a),c}function QK(e){return tj(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function $K(e,t){if(e!=null)return tj(e)||(e=[e,e]),[sI(e[0],t[0])||0,sI(hj(e[1],e[0]),t[1])||0]}function eq(e){return isFinite(e)}function jOe(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=eq(r)?r:0,i=eq(i)?i:1,a=eq(a)?a:0,o=eq(o)?o:0,e.createLinearGradient(r,a,i,o)}function MOe(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=eq(o)?o:.5,s=eq(s)?s:.5,c=c>=0&&eq(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function tq(e,t,n){for(var r=t.type===`radial`?MOe(e,t,n):jOe(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function NOe(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 nq(e){return parseInt(e,10)}function rq(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]||nq(s[r])||nq(e.style[r]))-(nq(s[a])||0)-(nq(s[o])||0)||0}function POe(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:aj(e)?[e]:tj(e)?e:null}function iq(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&POe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=JA(n,function(e){return e/i}),r/=i)}return[n,r]}var FOe=new ER(!0);function aq(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function oq(e){return typeof e==`string`&&e!==`none`}function sq(e){var t=e.fill;return t!=null&&t!==`none`}function cq(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 lq(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 uq(e,t,n){var r=DL(t.image,t.__image,n);if(kL(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)*Mj),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function IOe(e,t,n,r,i){var a,o=aq(n),s=sq(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||FOe,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?tq(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?tq(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?uq(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?uq(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=iq(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&&lq(e,n),s&&cq(e,n)):(s&&cq(e,n),o&&lq(e,n)),T&&e.setLineDash([])}function LOe(e,t,n){var r=t.__image=DL(n.image,t.__image,t,t.onload);if(!(!r||!kL(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 ROe(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=iq(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(aq(n)&&e.strokeText(i,n.x,n.y),sq(n)&&e.fillText(i,n.x,n.y)):(sq(n)&&e.fillText(i,n.x,n.y),aq(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var dq=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],fq=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function pq(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){bq(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?WL.opacity:o}(r||t.blend!==n.blend)&&(a||=(bq(e,i),!0),e.globalCompositeOperation=t.blend||WL.blend);for(var s=0;s<dq.length;s++){var c=dq[s];(r||t[c]!==n[c])&&(a||=(bq(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(bq(e,i),!0),e.shadowColor=t.shadowColor||WL.shadowColor),a}function mq(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=pq(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(bq(e,i),!0),oq(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(bq(e,i),!0),oq(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(bq(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||=(bq(e,i),!0),e.lineWidth=c)}for(var l=0;l<fq.length;l++){var u=fq[l],d=u[0];(r||a[d]!==o[d])&&(s||=(bq(e,i),!0),e[d]=a[d]||u[1])}return s}function zOe(e,t,n,r,i){return pq(e,t.style,n&&n.style,r,i)}function hq(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 BOe(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),hq(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function VOe(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 gq=1,_q=2,vq=3,yq=4;function HOe(e){var t=sq(e),n=aq(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 bq(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function xq(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Sq(e,t,n),Cq(e,n)}function Sq(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||NOe(i,a))&&(a&&(bq(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(bq(e,n),e.save(),BOe(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 BR&&t.autoBatch&&HOe(o);s||VOe(r,l.transform)?(bq(e,n),hq(e,t)):u||bq(e,n),t instanceof BR?(n.lastDrawType!==gq&&(c=!0,n.lastDrawType=gq),mq(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),IOe(e,t,o,u,n)):t instanceof VR?(n.lastDrawType!==vq&&(c=!0,n.lastDrawType=vq),mq(e,t,l,c,n),ROe(e,t,o)):t instanceof HR?(n.lastDrawType!==_q&&(c=!0,n.lastDrawType=_q),zOe(e,t,l,c,n),LOe(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==yq&&(c=!0,n.lastDrawType=yq),UOe(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&bq(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Cq(e,t){bq(e,t),t.prevElClipPaths&&e.restore()}function UOe(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(),Sq(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Cq(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Sq(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Cq(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var wq=new TOe,Tq=new RN(100),Eq=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Dq(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&wq.delete(e);var a=wq.get(e);if(a)return a;var o=UA(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,wq.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Eq.length;++s){var c=o[Eq[s]];if(c!=null&&!tj(c)&&!rj(c)&&!aj(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Tq.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=kq(o.dashArrayX),f=WOe(o.dashArrayY),p=Oq(o.symbol),m=GOe(d),h=Aq(f),g=!i&&EA.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&&Tq.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=AI(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=AI(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=ZK(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 xq(y,u)}}}}function Oq(e){if(!e||e.length===0)return[[`rect`]];if(rj(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!rj(e[n])){t=!1;break}if(t)return Oq([e]);for(var r=[],n=0;n<e.length;++n)rj(e[n])?r.push([e[n]]):r.push(e[n]);return r}function kq(e){if(!e||e.length===0)return[[0,0]];if(aj(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!aj(e[r])){n=!1;break}if(n)return kq([e]);for(var i=[],r=0;r<e.length;++r)if(aj(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=JA(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function WOe(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(aj(e)){var t=Math.ceil(e);return[t,t]}var n=JA(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function GOe(e){return JA(e,function(e){return Aq(e)})}function Aq(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var KOe=vL(qOe);function qOe(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=Dq(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Dq(i,t)}}})}var JOe=`6.1.0`,YOe={zrender:`6.1.0`},XOe=1,ZOe=800,QOe=900,$Oe=920,eke=1e3,tke=2e3,jq=5e3,Mq=1e3,nke=1100,Nq=2e3,Pq=3e3,rke=4e3,Fq=4500,ike=4600,ake=5e3,oke=6e3,Iq=7e3,Lq={PROCESSOR:{SERIES_FILTER:ZOe,AXIS_STATISTICS:$Oe,FILTER:eke,STATISTIC:jq,STATISTICS:jq},VISUAL:{LAYOUT:Mq,PROGRESSIVE_LAYOUT:nke,GLOBAL:Nq,CHART:Pq,POST_CHART_LAYOUT:ike,COMPONENT:rke,BRUSH:ake,CHART_ITEM:Fq,ARIA:oke,DECAL:Iq}},Rq=`__flagInMainProcess`,zq=`__mainProcessVersion`,Bq=`__pendingUpdate`,Vq=`__needsUpdateStatus`,Hq=/^[a-zA-Z0-9_]+$/,Uq=`__connectUpdateStatus`,Wq=0,ske=1,cke=2;function Gq(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return qq(this,e,t)}}function Kq(e){return function(){var t=[...arguments];return qq(this,e,t)}}function qq(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),tM.prototype[t].apply(e,n)}var Jq=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(tM),Yq=Jq.prototype;Yq.on=Kq(`on`),Yq.off=Kq(`off`);var Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ=function(e){X(t,e);function t(t,n,r){var i=e.call(this,new hOe)||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[zq]=1,r.ssr&&qF(function(e){var t=cz(e),n=t.dataIndex;if(n!=null){var r=Ej();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=UF(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:hj(r.useDirtyRect,s),useCoarsePointer:hj(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=mK($A(c.flush,c),17),i._updateTheme(n),i._locale=vEe(r.locale||zH),i._coordSysMgr=new NU;var l=i._api=uJ(i);function u(e,t){return e.__prio-t.__prio}return cN(SJ,u),cN(bJ,u),i._scheduler=new CK(i,l,bJ,SJ),i._messageCenter=new Jq,i._initEvents(),i.resize=$A(i.resize,i),c.animation.on(`frame`,i._onframe,i),aJ(c,i),oJ(c,i),Sj(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(pJ(this),this[Bq]){var r=this[Bq].silent;this[Rq]=!0,mJ(this);try{Xq(this),$q.update.call(this,null,this[Bq].updateParams)}catch(e){throw this[Rq]=!1,this[Bq]=null,e}this._zr.flush(),this[Rq]=!1,this[Bq]=null,rJ.call(this,r),iJ.call(this,r)}else if(e.unfinished){var i=XOe;do{e.unfinished=!1;var a=EA.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),tJ(this,t),e.performVisualTasks(t),lJ(this,this._model,n,`remain`,{}),i-=EA.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[Rq]){if(this._disposed){this.id;return}var r,i,a;if(oj(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Rq]=!0,mJ(this),!this._model||t){var o=new ZEe(this._api),s=this._theme,c=this._model=new TW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},xJ);var l={seriesTransition:a,optionChanged:!0};if(n)this[Bq]={silent:r,updateParams:l},this[Rq]=!1,this.getZr().wakeUp();else{try{Xq(this),$q.update.call(this,null,l)}catch(e){throw this[Bq]=null,this[Rq]=!1,e}this._ssr||this._zr.flush(),this[Bq]=null,this[Rq]=!1,rJ.call(this,r),iJ.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[Rq]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[Bq]&&(r??=this[Bq].silent,i=this[Bq].updateParams,this[Bq]=null),this[Rq]=!0,mJ(this);try{this._updateTheme(e),n.setTheme(this._theme),Xq(this),$q.update.call(this,{type:`setTheme`},i)}catch(e){throw this[Rq]=!1,e}this[Rq]=!1,rJ.call(this,r),iJ.call(this,r)}}},t.prototype._updateTheme=function(e){rj(e)&&(e=CJ[e]),e&&(e=zA(e),e&&GW(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||TA.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(EJ[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Q(TJ,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(zA(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=EA.createCanvas(),h=UF(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 qR({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),Q(u,function(e){var t=new HR({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 eJ(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return eJ(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return eJ(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return Q(XI(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=XI(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?LK(i,t):IK(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(lke,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&VK(i,function(e){var t=cz(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(yJ,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),vOe(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()&&tL(this.getDom(),DJ,``);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 TJ[e.id]},t.prototype.resize=function(e){if(!this[Rq]){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[Bq]&&(r??=this[Bq].silent,n=!0,this[Bq]=null),this[Rq]=!0,mJ(this);try{n&&Xq(this),$q.update.call(this,{type:`resize`,animation:Z({duration:0},e&&e.animation)})}catch(e){throw this[Rq]=!1,e}this[Rq]=!1,rJ.call(this,r),iJ.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(oj(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),wJ[e]){var n=wJ[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=vJ[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(oj(t)||(t={silent:!!t}),_J[e.type]&&this._model){if(this[Rq]){this._pendingActions.push(e);return}var n=t.silent;nJ.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&TA.browser.weChat&&this._throttledZrFlush(),rJ.call(this,n),iJ.call(this,n)}},t.prototype.updateLabelLayout=function(){HK.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(){Xq=function(e){xOe(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),Zq(e,!0),Zq(e,!1),t.plan()},Zq=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=xL(e.type);u=new(t?aK.getClass(d.main,d.sub):cK.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)}},Qq=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=eL(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=Ej(),Q(RI(s),function(e){var t=GI(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null))if(fB(n))if(t instanceof tK)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&bTe(t,n,e._api);else{var r=nB(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&tB(t.mainType,t.componentIndex,e._api),a&&Q(a,function(e){n.type===`highlight`?Kz(e):qz(e)})}else dB(n)&&t instanceof tK&&(CTe(t,n,e._api),rB(t),fJ(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)}},$q={prepareAndUpdate:function(e){Xq(this),$q.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){SOe(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),HK.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),tJ(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),sJ(this,r,i,e,n),HK.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=Ej();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}),lJ(t,n,r,e,{},a),HK.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),cK.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),sJ(this,n,this._api,e,{}),HK.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()}),cK.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)}),HK.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){$q.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=XI(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}}eJ=e,tJ=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},nJ=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=_J[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&xL(s[0]);this[Rq]=!0,mJ(this);var u=[e],d=!1;e.batch&&(d=!0,u=JA(e.batch,function(t){return t=UA(Z({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=dB(e),_=fB(e);if(_&&$z(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=ZI(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;Qq(n,c,t,u),fJ(n)}else g?(Qq(n,c,t,`series`),fJ(n)):l&&Qq(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[Bq]?(Xq(this),$q.update.call(this,e),this[Bq]=null):$q[c].call(this,e)}catch(e){throw this[Rq]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[Rq]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;yj(oj(y)),v=UA({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)}},rJ=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();nJ.call(this,n,e)}},iJ=function(e){!e&&this.trigger(`updated`)},aJ=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[Bq]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},oJ=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=VK(n,uB);r&&(xTe(r,e,t._api),fJ(t))}).on(`mouseout`,function(e){var n=e.target,r=VK(n,uB);r&&(STe(r,e,t._api),fJ(t))}).on(`click`,function(e){var n=e.target,r=VK(n,function(e){return cz(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=cz(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;cN(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)})}}sJ=function(e,t,r,i,a){n(t),cJ(e,t,r,i,a),Q(e._chartsViews,function(e){e.__alive=!1}),lJ(e,t,r,i,a),Q(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},cJ=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)})},lJ=function(e,t,n,r,l,u){var d=e._scheduler;l=Z(l||{},{updatedSeries:t.getSeries()}),HK.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),rB(t)}),d.unfinished=f||d.unfinished,HK.trigger(`series:layoutlabels`,t,n,l),HK.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),HK.trigger(`series:afterupdate`,t,n,l)},fJ=function(e){e[Vq]=!0,e.getZr().wakeUp()},mJ=function(e){e[zq]=(e[zq]+1)%1e6},pJ=function(e){e[Vq]&&(e.getZr().storage.traverse(function(e){gV(e)||r(e)}),e[Vq]=!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>hj(t.get(`hoverLayerThreshold`),cW.hoverLayerThreshold)&&!TA.node&&!TA.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=rH(e);t.eachRendered(function(e){return aH(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!gV(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(gV(e))return;if(e instanceof BR&&kTe(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)}})}uJ=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){Kz(t,n),fJ(e)},n.prototype.leaveEmphasis=function(t,n){qz(t,n),fJ(e)},n.prototype.enterBlur=function(t){Jz(t),fJ(e)},n.prototype.leaveBlur=function(t){Yz(t),fJ(e)},n.prototype.enterSelect=function(t){Xz(t),fJ(e)},n.prototype.leaveSelect=function(t){Zz(t),fJ(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[zq]},n.prototype.usingTHL=function(){return e._usingTHL},n}(yz))(e)},dJ=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[Uq]=t}}Q(vJ,function(n,r){e._messageCenter.on(r,function(n){if(EJ[e.group]&&e[Uq]!==Wq){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Q(TJ,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,Wq),Q(i,function(e){e[Uq]!==ske&&e.dispatchAction(r)}),t(i,cke)}})})}}(),t}(tM),gJ=hJ.prototype;gJ.on=Gq(`on`),gJ.off=Gq(`off`),gJ.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 lke=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],_J={},vJ={},yJ={},bJ=[],xJ=[],SJ=[],CJ={},wJ={},TJ={},EJ={},uke=new Date-0,dke=new Date-0,DJ=`_echarts_instance_`;function fke(e,t,n){var r=!(n&&n.ssr);if(r){var i=kJ(e);if(i)return i}var a=new hJ(e,t,n);return a.id=`ec_`+uke++,TJ[a.id]=a,r&&tL(e,DJ,a.id),dJ(a),HK.trigger(`afterinit`,a),a}function pke(e){if(tj(e)){var t=e;e=null,Q(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+dke++,Q(t,function(t){t.group=e})}return EJ[e]=!0,e}function OJ(e){EJ[e]=!1}var mke=OJ;function hke(e){rj(e)?e=TJ[e]:e instanceof hJ||(e=kJ(e)),e instanceof hJ&&!e.isDisposed()&&e.dispose()}function kJ(e){return TJ[dwe(e,DJ)]}function gke(e){return TJ[e]}function AJ(e,t){CJ[e]=t}function jJ(e){WA(xJ,e)<0&&xJ.push(e)}function MJ(e,t){VJ(bJ,e,t,tke)}function NJ(e){FJ(`afterinit`,e)}function PJ(e){FJ(`afterupdate`,e)}function FJ(e,t){HK.on(e,t)}function IJ(e,t,n){var r,i,a,o,s;nj(t)&&(n=t,t=``),oj(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;_J[r]||(yj(Hq.test(r)&&Hq.test(i)),a&&yj(i!==r),_J[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},yJ[i]=1,a&&s&&(yJ[l]=1),vJ[l]=r)}function LJ(e,t){NU.register(e,t)}function _ke(e){var t=NU.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function vke(e,t){KK(e,t)}function RJ(e,t){VJ(SJ,e,t,Mq,`layout`,!0)}function zJ(e,t){VJ(SJ,e,t,Pq,`visual`,!0)}var BJ=[];function VJ(e,t,n,r,i,a){if((nj(t)||oj(t))&&(n=t,t=r),!(WA(BJ,n)>=0)){BJ.push(n);var o=CK.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function HJ(e,t){wJ[e]=t}function yke(e){DA({createCanvas:e})}function UJ(e,t,n){var r=WK(`registerMap`);r&&r(e,t,n)}function bke(e){var t=WK(`getMap`);return t&&t(e)}var WJ=ADe;zJ(Nq,nOe),zJ(Fq,rOe),zJ(Fq,iOe),zJ(Nq,gOe),zJ(Fq,_Oe),zJ(Iq,KOe),jJ(GW),MJ(QOe,lDe),HJ(`default`,aOe),IJ({type:Dz,event:Dz,update:Dz},jj),IJ({type:Oz,event:Oz,update:Oz},jj),IJ({type:kz,event:Mz,update:kz,action:jj,refineEvent:GJ,publishNonRefinedEvent:!0}),IJ({type:Az,event:Mz,update:Az,action:jj,refineEvent:GJ,publishNonRefinedEvent:!0}),IJ({type:jz,event:Mz,update:jz,action:jj,refineEvent:GJ,publishNonRefinedEvent:!0});function GJ(e,t,n,r){return{eventContent:{selected:wTe(n),isFromClick:t.isFromClick||!1}}}AJ(`default`,{}),AJ(`dark`,NK);var xke={},KJ=[],Ske={registerPreprocessor:jJ,registerProcessor:MJ,registerPostInit:NJ,registerPostUpdate:PJ,registerUpdateLifecycle:FJ,registerAction:IJ,registerCoordinateSystem:LJ,registerLayout:RJ,registerVisual:zJ,registerTransform:WJ,registerLoading:HJ,registerMap:UJ,registerImpl:yOe,PRIORITY:Lq,ComponentModel:tW,ComponentView:aK,SeriesModel:tK,ChartView:cK,registerComponentModel:function(e){tW.registerClass(e)},registerComponentView:function(e){aK.registerClass(e)},registerSeriesModel:function(e){tK.registerClass(e)},registerChartView:function(e){cK.registerClass(e)},registerCustomSeries:function(e,t){KK(e,t)},registerSubTypeDefaulter:function(e,t){tW.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){WF(e,t)}};function qJ(e){if(tj(e)){Q(e,function(e){qJ(e)});return}WA(KJ,e)>=0||(KJ.push(e),nj(e)&&(e={install:e}),e.install(Ske))}function JJ(e){return e==null?0:e.length||1}function YJ(e){return e}var XJ=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||YJ,this._newKeyGetter=r||YJ,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=JJ(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=JJ(c),d=JJ(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=JJ(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=JJ(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),Cke=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 wke(e,t){var n={},r=n.encode={},i=Ej(),a=[],o=[],s={};Q(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;ZJ(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),Tke(n.type)&&(a[0]=t),ZJ(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}dz.each(function(e,t){var i=ZJ(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=JA(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 Cke(s,t),n}function ZJ(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function QJ(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function Tke(e){return!(e===`ordinal`||e===`time`)}var $J=function(){function e(e){this.otherDims={},e!=null&&Z(this,e)}return e}(),Eke=YI(),Dke={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},eY=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||=rY(this.source))},e.prototype.getSourceDimensionIndex=function(e){return hj(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=$W(this.source),n=!iY(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+=Dke[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 tY(e){return e instanceof eY}function nY(e){for(var t=Ej(),n=0;n<(e||[]).length;n++){var r=e[n],i=oj(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function rY(e){var t=Eke(e);return t.dimNameMap||=nY(e.dimensionsDefine)}function iY(e){return e>30}var aY=oj,oY=JA,Oke=typeof Int32Array>`u`?Array:Int32Array,kke=`e\0\0`,sY=-1,Ake=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],jke=[`_approximateExtent`],cY,lY,uY,dY,fY,pY,mY,hY=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;tY(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=rj(u)?new $J({name:u}):u instanceof $J?u:new $J(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=Ej();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(aj(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 PG&&(i=e),!i){var a=this.dimensions,o=qW(e)||qA(e)?new oG(e,a.length):e;i=new PG;var s=oY(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=wke(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&&mY(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&&QCe(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=GI(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=GI(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)mY(this,o);cY(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){aY(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=uY(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 lY(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 tj(e)?r.getValues(oY(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)?sY:r},e.prototype.each=function(e,t,n){nj(e)&&(n=t,t=e,e=[]);var r=n||this,i=oY(dY(e),this._getStoreDimIndex,this);this._store.each(i,r?$A(t,r):t)},e.prototype.filterSelf=function(e,t,n){nj(e)&&(n=t,t=e,e=[]);var r=n||this,i=oY(dY(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?$A(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=QA(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){nj(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=oY(dY(e),this._getStoreDimIndex,this),o=pY(this);return o._store=this._store.map(a,i?$A(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=oY(dY(e),this._getStoreDimIndex,this);this._store.modify(a,i?$A(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=pY(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=pY(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=pY(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 jH(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new XJ(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return lY(e,t)},function(e){return lY(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||{},aY(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),tj(i)?i=i.slice():aY(i)&&(i=Z({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,aY(t)?Z(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){aY(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){lz(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:oY(this.dimensions,this._getDimInfo,this),this.hostModel),fY(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];nj(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(_j(arguments)))})},e.internalField=function(){cY=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 Oke(a.categories.length);for(var s=0;s<n.length;s++)n[s]=sY;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},uY=function(e,t,n){return GI(e._getCategory(t,n),null)},lY=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=uY(e,e._idDimIdx,t)),n??=kke+t,n},dY=function(e){return tj(e)||(e=e==null?[]:[e]),e},pY=function(t){var n=new e(t._schema?t._schema:oY(t.dimensions,t._getDimInfo,t),t.hostModel);return fY(n,t),n},fY=function(e,t){Q(Ake.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,Q(jke,function(n){e[n]=zA(t[n])}),e._calculationInfo=Z({},t._calculationInfo)},mY=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=uY(e,i,t)),s==null&&a!=null&&(r[t]=s=uY(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 Mke(e,t){return gY(e,t).dimensions}function gY(e,t){qW(e)||(e=YW(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Ej(),a=[],o=Nke(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&iY(o),c=r===e.dimensionsDefine,l=c?rY(e):nY(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Ej(u),f=new OG(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=oj(n)?n:{name:n},o=new $J,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=RI(e).slice();if(n.length===1&&!rj(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);Q(n,function(e,n){var i=rj(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(rj(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=RI(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(UA(o,i),t,a),o.name==null&&n){var s=n[a];!oj(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&UA(o.otherDims,r)})}});function g(e,t,n){dz.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=Pke(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(mW(e,S)===lW.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return mL(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new eY({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Nke(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Q(t,function(e){var t;oj(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Pke(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 Fke=function(){function e(e){this.coordSysDims=[],this.axisMap=Ej(),this.categoryAxisMap=Ej(),this.coordSysName=e}return e}();function Ike(e){var t=e.get(`coordinateSystem`),n=new Fke(t),r=Lke[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Lke={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,QI).models[0],a=e.getReferringComponents(`yAxis`,QI).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),_Y(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),_Y(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,QI).models[0];t.coordSysDims=[`single`],n.set(`single`,i),_Y(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,QI).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),_Y(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),_Y(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),_Y(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,QI).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 _Y(e){return e.get(`type`)===`category`}function vY(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Rke(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){rj(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 Rke(e){return!tY(e.schema)}function yY(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function bY(e,t){return yY(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function zke(e,t){var n=e.get(`coordinateSystem`),r=NU.get(n),i;return t&&t.coordSysDims&&(i=JA(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=QJ(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function Bke(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 xY(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=YW(e)):(i=r.getSource(),a=i.sourceFormat===fz);var o=Ike(t),s=zke(t,o),c=n.useEncodeDefaulter,l=nj(c)?c:c?ej(dW,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=gY(i,u),f=Bke(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=vY(t,{schema:d,store:p}),h=new hY(d,t);h.setCalculationInfo(m);var g=f!=null&&Vke(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 Vke(e){if(e.sourceFormat===`original`)return!tj(VI(Hke(e.data||[])))}function Hke(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var SY=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();wL(SY);var Uke=0,CY=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Uke,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&JA(r,Wke);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(!rj(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||=Ej(this.categories)},e}();function Wke(e){return oj(e)&&e.value!=null?e.value:e+``}var wY=QA({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 TY(e,t,n){var r;e||={};var i=UH();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(Q(wY,function(t){a[t]&&(e[t]=$A(a[t],a))}),r=a)}return r??jY(e,n),{brk:r,mapper:e}}function EY(e,t){Q(wY,function(n){e[n]=t[n]})}function DY(e,t){e.freeze=jj}function OY(e){return e.getExtentUnsafe(0,2)}function kY(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Gke(e){var t=kY(e,3);return t[1]-t[0]}function AY(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function jY(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():oL(),Z(n,Kke),n}var Kke={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=kY(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){MY(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),MY(r,e,t,n)},freeze:function(){}};function MY(e,t,n,r){dL(n,r)&&(e[t][0]=n,e[t][1]=r)}function NY(e){return PY(e)||IY(e)}function PY(e){return e.type===`interval`}function FY(e){return e.type===`time`}function IY(e){return e.type===`log`}function LY(e){return e.type===`ordinal`}function qke(e){var t=SI(e),n=nI(10,t),r=$F(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,uI(r*n,-t)}function RY(e){return fI(e)+2}function zY(e,t){return rI(e)/rI(t)}function BY(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 nI(t,e)}function VY(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=QF(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!uL(r[0])||!uL(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Jke(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function HY(e,t){return e||=t,$F(ZF(e,1))}function UY(e,t,n){var r=OY(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 WY=function(e){X(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,EY(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new CY({}),tj(i)&&(i=new CY({categories:JA(i,function(e){return oj(e)?e.value:e})})),r._ordinalMeta=i;var a=TY(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,DY(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:rj(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=$F(e),e},t.prototype.getTicks=function(){var e=[];return UY(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=XF(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=OY(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($F(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}(SY);SY.registerClass(WY);function GY(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=RY(f);u<t-1;){var m=uI(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=UH();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var KY=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=TY(r,WH(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 zA(this._cfg)},t.prototype.setConfig=function(e){var t=OY(this);this._cfg=e=zA(e),e.niceExtent??=t.slice(),e.intervalPrecision??=RY(e.interval)},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=OY(this),i=t.niceExtent,a=t.intervalPrecision,o=UH(),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?uI(i[0]-n,a):r[0]});for(var d=function(e,t){return $F((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=XF(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=uI(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=uI(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?uI(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 GY(this,e,GH(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=fI(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),bU(uI(e.value,n,!0))},t.type=`interval`,t}(SY);SY.registerClass(KY);var Yke=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},qY=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=TY(r,WH(r,n),null).brk,r}return t.prototype.getLabel=function(e){return iU(e.value,eU[DEe(rU(this._minLevelUnit))]||eU.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return OEe(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=OY(this),r=UH(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return UH().addBreaksToTicks(o,i.breaks,n),o;o=nAe(this._minLevelUnit,this._approxInterval,s,n,AY(this),i);var c=tU.length-1,l=0;return Q(o,function(e){e.time&&(c=Math.min(c,WA(tU,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&UH().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&UH().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(WA(tU,aU(e.vmin,s)),WA(tU,aU(e.vmax,s))),n=0,r=0;r<tU.length;r++)if(!YY(tU[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:tU[Math.max(i,t)],upperTimeUnit:tU[i]}}),o},t.prototype.getMinorTicks=function(e){return GY(this,e,GH(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 aj(e)?Math.round(e):+bI(e)},t.type=`time`,t}(SY),JY=[[`second`,qH],[`minute`,JH],[`hour`,YH],[`quarter-day`,YH*6],[`half-day`,YH*12],[`day`,XH*1.2],[`half-week`,XH*3.5],[`week`,XH*7],[`month`,XH*31],[`quarter`,XH*95],[`half-year`,ZH/2],[`year`,ZH]];function YY(e,t,n,r){return oU(new Date(t),e,r).getTime()===oU(new Date(n),e,r).getTime()}function Xke(e,t){return e/=XH,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Zke(e){var t=30*XH;return e/=t,e>6?6:e>3?3:e>2?2:1}function Qke(e){return e/=YH,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function XY(e,t){return e/=t?JH:qH,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function $ke(e){return ZF(CI(e,!0),1)}function eAe(e,t,n){var r=Math.max(0,WA(tU,t)-1);return oU(new Date(e),tU[r],n).getTime()}function tAe(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 nAe(e,t,n,r,i,a){var o=CEe,s=0;function c(e,t,n,i,o,c,l){for(var u=tAe(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(!YY(rU(e),r[0],r[1],n)){s&&(i=[{value:eAe(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/XH/365)),p=sU(n),m=kEe(n);break;case`half-year`:case`quarter`:case`month`:f=Zke(t),p=cU(n),m=mU(n);break;case`week`:case`half-week`:case`day`:f=Xke(t,31),p=lU(n),m=hU(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Qke(t),p=uU(n),m=gU(n);break;case`minute`:f=XY(t,!0),p=dU(n),m=_U(n);break;case`second`:f=XY(t,!1),p=fU(n),m=vU(n);break;case`millisecond`:f=$ke(t),p=pU(n),m=yU(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=rU(o[m]);if(EEe(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?rU(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=XA(JA(u,function(e){return XA(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=aU(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}mL(S,gwe,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=aU(r[0],n),k=aU(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 rAe=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=XH,n[1]+=XH),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]-XH}e.setExtent(n[0],n[1]);var i=HY(t.splitNumber,10),a=AY(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=JY.length,l=Math.min(Yke(JY,a,0,c),c-1),u=JY[l][1],d=JY[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};SY.registerClass(qY);var ZY=0,QY=1,iAe=2,$Y=function(e){X(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=KY.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[ZY]=i[QY]=a[ZY]=a[QY]=NaN,EY(r,t.mapperMethods);var s=UH(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},iAe,l),r.powStub=new KY({breakParsed:l.original}),r.intervalStub=new KY({breakParsed:l.transformed}),DY(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=UH(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return JA(i.getTicks(e||{}),function(e){var i=e.value,o=BY(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,GH(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return GY(this,e,GH(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(zY(e,this.base))},scale:function(e){return BY(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=zY(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return eX.depth=n,tX.lookup=this._lookup,BY(n===2?e:this.intervalStub.transformOut(e,eX),this.base,tX)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!dL(t,n)||t<=0||n<=0)){var r=nX,i=nX;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[ZY]=t,r[QY]=n);var o=this.base;this.intervalStub.setExtent2(e,i[ZY]=zY(t,o),i[QY]=zY(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return dL(t[0],t[1])&&jI(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}(SY);SY.registerClass($Y);var eX={},tX={},nX=[],rX={value:1,category:1,time:1,log:1},iX=YI();function aX(e){var t=e.get(`type`);return(t==null||!Aj(rX,t)&&!SY.getClass(t))&&(t=`value`),t}function oX(e,t,n){var r=UH(),i;switch(r&&(i=fX(e,t,n)),t){case`category`:return new WY({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:oL()});case`time`:return new qY({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new $Y({logBase:e.get(`logBase`),breakOption:i});case`value`:return new KY({breakOption:i});default:return new((SY.getClass(t))||KY)({})}}function aAe(e,t,n){var r=n?kY(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return dL(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function oAe(e){iX(e).noOnMyZero=!0}function sAe(e){return iX(e).noOnMyZero}function sX(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=wEe(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(rj(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(nj(t)){if(e.type===`category`)return function(n,r){return t(cX(e,n),n.value-e.scale.getExtent()[0],null)};var r=UH();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(cX(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function cX(e,t){var n=e.scale;return LY(n)?n.getLabel(t):t.value}function lX(e){return e.get(`interval`)??`auto`}function cAe(e){return e.type===`category`&&lX(e.getLabelModel())===0}function lAe(e,t){var n={};return Q(e.mapDimensionsAll(t),function(t){n[bY(e,t)]=!0}),QA(n)}function uX(e){return e===`middle`||e===`center`}function dX(e){return e.getShallow(`show`)}function fX(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!UH()||!n||!uAe(t)?void 0:r}function uAe(e){return e!==`category`}function pX(e,t,n,r,i,a){var o=IY(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=Jke(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function mX(e,t){return LY(e)?e.getRawOrdinalNumber(t.value):t.value}function hX(e,t){return LY(e)&&!!t.get(`boundaryGap`)}var gX=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),dAe=pL(),_X=YI(),fAe=YI();function vX(e,t){var n=e.model,r=_X(YK(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function pAe(e,t){return bX(vX(e,t))}function mAe(e,t){var n=[];return yX(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(bX(e))}),n}function yX(e,t){var n=_X(YK(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function bX(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function hAe(e,t){var n=e.model.ecModel,r=_X(YK(n)).axSer;r&&SX(n,r.get(e.model.uid),t)}function xX(e,t,n){var r=vX(e,t);r&&SX(e.model.ecModel,r.sers,n)}function SX(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function gAe(e,t){var n=vX(e,t);if(!n||!n.sers.length)return 0;var r=0;return SX(e.model.ecModel,n.sers,function(){r++}),r}function CX(e,t,n){var r=_X(YK(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function wX(e,t){var n=e.model,r=_X(YK(n.ecModel)).keys;r&&Q(r.get(n.uid),function(e){t(e)})}function _Ae(e){var t=fAe(JK(e)),n=t.keyed||=Ej();yX(e,function(t,r,i){var a=n.get(r)||n.set(r,Ej()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&TX.liPosMinGap(e,t,o)})}function vAe(e,t){TX[e]=t}var TX={};function EX(e,t,n){if(e){var r=t.ecModel,i=_X(YK(r)),a=e.model.uid,o=i.axSer||=Ej();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=kX.get(DX(s,c,n))||kX.get(DX(s,c,null));if(l){var u=i.keyed||=Ej(),d=i.keys||=Ej(),f=l.key,p=u.get(f)||u.set(f,Ej()),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 DX(e,t,n){return e+`|&`+hj(t,!0)+`|&`+(n||``)}function OX(e,t){var n=DX(t.seriesType,t.baseAxis,t.coordSysType);kX.set(n,t),dAe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:_Ae})})}var kX=Ej(),yAe=YI(),bAe=3,AX=function(){function e(e,t,n,r,i){var a=LY(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(PY(e)||IY(e)||FY(e))&&(cL(l,MX(e,t.get(`dataMin`,!0))),lL(l,MX(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]=MX(e,nj(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]=MX(e,nj(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=xAe(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,!uL(u[0])&&(u[0]=NaN),!uL(u[1])&&(u[1]=NaN);var g=s||pj(u[0])||pj(u[1])||a&&!o,_=PY(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=MX(e,t.get(`startValue`,!0)),x=b!=null;!jI(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),jI(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)),jX(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),jX(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 jX(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),fL(t))}function MX(e,t){return t==null?null:pj(t)?NaN:e.parse(t)}function xAe(e,t){var n;if(LY(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=tj(r)?r:[r,r]}return[NX(n[0]),NX(n[1])]}function NX(e){return DF(typeof e==`boolean`?0:e,1)||0}function PX(e){var t=yAe(e.scale);return t.extent||=oL(),t}function SAe(e,t){PX(e).dimIdxInCoord=t.get(e.dim)}function FX(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||CAe(n,e,i,r,t)}function CAe(e,t,n,r,i){var a=PX(t),o=a.extent,s=!1;hAe(t,function(r){if(r.boxCoordinateSystem){var i=FU(r).coord,c=a.dimIdxInCoord;if(c>=0&&tj(i)){var l=i[c];l!=null&&!tj(l)&&sL(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;Q(lAe(u,n),function(e){pwe(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=TAe(e,t,r);IX(e,new AX(e,r,o,s,c),i),a.extent=null}function wAe(e,t){var n=e.scale;IX(n,new AX(n,e.model,t,!1,!1),bAe)}function IX(e,t,n){e.rawExtentInfo=t,t.from=n}function LX(e,t){RX.set(e,t)}var RX=Ej();function zX(e,t,n,r,i){e.rawExtentInfo||wAe({scale:e,model:t},i||oL());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function TAe(e,t,n){var r=hX(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return wX(t,function(e){a=!!RX.get(e)||a}),a}function EAe(e,t,n,r){if(n.ctnShp){var i;if(wX(e,function(t){var n=RX.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],cL(i,a[0]),lL(i,a[1]),oAe(e))}}),i){var a=t.getExtent();if(LY(t))e.onBand||t.setExtent2(1,XF(a[0],a[0]+i[0]),ZF(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=XF(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=ZF(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 BX(e,t){var n=IY(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=VY(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?OAe(r,t):DAe(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=RY(d)),i[0]||(s[0]=uI(eI(s[0]/u)*u,l)),i[1]||(s[1]=uI(tI(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),pX(e,i,o,s,a,c)}function DAe(e,t){var n=HY(t.splitNumber,5),r=AY(e),i=t.minInterval,a=t.maxInterval,o=CI(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=RY(o),c=e.getExtent(),l=[uI(tI(c[0]/o)*o,s),uI(eI(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function OAe(e,t){var n=HY(t.splitNumber,10),r=e.getExtent(),i=AY(e),a=ZF(xI(i),1);n/i*a<=.5&&(a*=10);var o=RY(a),s=[uI(tI(r[0]/a)*a,o),uI(eI(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function VX(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;HX(t,n,r,i,null)}function HX(e,t,n,r,i){var a=zX(e,t,r,n,i),o=PY(e)||FY(e);UX(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&&EAe(n,e,a,r)}function UX(e,t){kAe[e.type](e,t)}var kAe={interval:BX,log:BX,time:rAe,ordinal:jj},AAe=s({createDimensions:()=>Mke,createList:()=>jAe,createScale:()=>NAe,createSymbol:()=>ZK,createTextStyle:()=>FAe,dataStack:()=>MAe,enableHoverEmphasis:()=>iB,getECData:()=>cz,getLayoutRect:()=>KU,mixinAxisModelCommonMethods:()=>PAe});function jAe(e){return xY(null,e)}var MAe={isDimensionStacked:yY,enableDataStack:vY,getStackedDimension:bY};function NAe(e,t){var n=t;t instanceof jH||(n=new jH(t));var r=aX(n),i=oX(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),HX(i,n,null,null,e),i}function PAe(e){KA(e,gX)}function FAe(e,t){return t||={},gH(e,null,null,t.state!==`normal`)}var IAe=1e-8;function WX(e,t){return Math.abs(e-t)<IAe}function GX(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+=MR(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!WX(i[0],s[0])||!WX(i[1],s[1]))&&(r+=MR(i[0],i[1],s[0],s[1],t,n)),r!==0}var LAe=[];function KX(e,t){for(var n=0;n<e.length;n++)Zj(e[n],e[n],t)}function qX(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])&&(Qj(t,t,a),$j(n,n,a))}}function RAe(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 JX=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}(),YX=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),XX=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),ZX=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 RAe(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`?qX(t.exterior,n,r,e):Q(t.points,function(t){qX(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 VM(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(GX(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(GX(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 VM(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(KX(u.exterior,s),Q(u.interiors,function(e){KX(e,s)})):Q(u.points,function(e){KX(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}(JX),zAe=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=bM(LAe),i=e;i&&!i.isGeoSVGGraphicRoot;)SM(r,i.getLocalTransform(),r),i=i.parent;return EM(r,r),Zj(n,n,r),n},t}(JX);function BAe(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=$X(i,r,n);break;case`Polygon`:QX(i,r,n);break;case`MultiLineString`:QX(i,r,n);break;case`MultiPolygon`:Q(i,function(e,t){return QX(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function QX(e,t,n){for(var r=0;r<e.length;r++)e[r]=$X(e[r],t[r],n)}function $X(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 eZ(e,t){return e=BAe(e),JA(XA(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 YX(a[0],a.slice(1)));break;case`MultiPolygon`:Q(r.coordinates,function(e){e[0]&&i.push(new YX(e[0],e.slice(1)))});break;case`LineString`:i.push(new XX([r.coordinates]));break;case`MultiLineString`:i.push(new XX(r.coordinates))}var o=new ZX(n[t||`name`],i,n.cp);return o.properties=n,o})}var VAe=s({MAX_SAFE_INTEGER:()=>_I,asc:()=>dI,getPercentWithPrecision:()=>qCe,getPixelPrecision:()=>KCe,getPrecision:()=>fI,getPrecisionSafe:()=>pI,isNumeric:()=>DI,isRadianAroundZero:()=>yI,linearMap:()=>oI,nice:()=>CI,numericToNumber:()=>EI,parseDate:()=>bI,parsePercent:()=>sI,quantile:()=>wI,quantity:()=>xI,quantityExponent:()=>SI,reformIntervals:()=>TI,remRadian:()=>vI,round:()=>GCe}),HAe=s({format:()=>iU,parse:()=>bI,roundTime:()=>oU}),UAe=s({Arc:()=>ZB,BezierCurve:()=>XB,BoundingRect:()=>VM,Circle:()=>kB,CompoundPath:()=>QB,Ellipse:()=>AB,Group:()=>BF,Image:()=>HR,IncrementalDisplayable:()=>uV,Line:()=>qB,LinearGradient:()=>eV,Polygon:()=>GB,Polyline:()=>KB,RadialGradient:()=>tV,Rect:()=>qR,Ring:()=>UB,Sector:()=>HB,Text:()=>ZR,clipPointsByRect:()=>VV,clipRectByRect:()=>HV,createIcon:()=>UV,extendPath:()=>EV,extendShape:()=>TV,getShapeClass:()=>OV,getTransform:()=>IV,initProps:()=>hV,makeImage:()=>AV,makePath:()=>kV,mergePath:()=>MV,registerShape:()=>DV,resizePath:()=>NV,updateProps:()=>mV}),WAe=s({addCommas:()=>bU,capitalFirst:()=>MEe,encodeHTML:()=>cM,formatTime:()=>jEe,formatTpl:()=>EU,getTextRect:()=>AEe,getTooltipMarker:()=>OU,normalizeCssArray:()=>SU,toCamelCase:()=>xU,truncateText:()=>kwe}),GAe=s({bind:()=>$A,clone:()=>zA,curry:()=>ej,defaults:()=>UA,each:()=>Q,extend:()=>Z,filter:()=>XA,indexOf:()=>WA,inherits:()=>GA,isArray:()=>tj,isFunction:()=>nj,isObject:()=>oj,isString:()=>rj,map:()=>JA,merge:()=>BA,reduce:()=>YA}),KAe=YI(),tZ=YI(),nZ={estimate:1,determine:2};function rZ(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function qAe(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:JA(iZ(n,r),function(t,n){return{formattedLabel:sX(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?YAe(e,t):ZAe(e)}function JAe(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:iZ(i,r)}:e.type===`category`?XAe(e,t):{ticks:r.getTicks(n)}}function iZ(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)}),mL(r,_we,null),dI(r),JA(r,function(e){return{value:e}})}function YAe(e,t){var n=e.getLabelModel(),r=aZ(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function aZ(e,t,n){var r=$Ae(e),i=lX(t),a=n.kind===nZ.estimate;if(!a){var o=sZ(r,i);if(o)return o}var s,c;nj(i)?s=uZ(e,i,!1):(c=i===`auto`?eje(e,n):i,s=uZ(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return cZ(r,i,l),!0}):cZ(r,i,l),l}function XAe(e,t){var n=QAe(e),r=lX(t),i=sZ(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),nj(r))a=uZ(e,r,!0);else if(r===`auto`){var s=aZ(e,e.getLabelModel(),rZ(nZ.determine));o=s.labelCategoryInterval,a=JA(s.labels,function(e){return e.tick})}else o=r,a=uZ(e,o,!0);return cZ(n,r,{ticks:a,tickCategoryInterval:o})}function ZAe(e){var t=e.scale.getTicks(),n=sX(e);return{labels:JA(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var QAe=oZ(`axisTick`),$Ae=oZ(`axisLabel`);function oZ(e){return function(t){return tZ(t)[e]||(tZ(t)[e]={list:[]})}}function sZ(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function cZ(e,t,n){return e.list.push({key:t,value:n}),n}function eje(e,t){if(t.kind===nZ.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return tZ(e).autoInterval=n,!0}),n}return tZ(e).autoInterval??(tZ(e).autoInterval=e.calculateCategoryInterval(t))}function tje(e,t){var n=t.kind,r=rje(e),i=sX(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=CF(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===nZ.estimate?(t.out.noPxChangeTryDetermine.push($A(nje,null,e,S,c)),S):lZ(e,S,c)??S}function nje(e,t,n){return lZ(e,t,n)==null}function lZ(e,t,n){var r=KAe(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 rje(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 uZ(e,t,n){var r=sX(e),i=e.scale,a=[],o=nj(t);return UY(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 ije=.8;function dZ(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Gke(r);jI(o)||(o=NaN);var s=e.getExtent(),c=QF(s[1]-s[0]);return LY(r)?aje(n,e,o,c):i&&oje(n,e,o,c,i),a!=null&&(n.w=jI(n.w)?ZF(a,n.w):a),n}function aje(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 oje(e,t,n,r,i){var a=!1,o=-1/0;Q(i.key?[pAe(t,i.key)]:mAe(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),jI(n)&&n>0&&jI(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*ije,e.w2=e.w*n/r)}var fZ=[0,1],pZ=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)),oI(e,fZ,mZ(this),t)},e.prototype.coordToData=function(e,t){var n=oI(e,mZ(this),fZ,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=JA(JAe(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(mX(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=sje(this,n,r);return JA(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(LY(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),JA(this.scale.getMinorTicks(e),function(e){return JA(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=rZ(nZ.determine),qAe(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 dZ(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=rZ(nZ.determine),tje(this,e)},e}();function mZ(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 sje(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=dZ(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 cje(e){var t=tW.extend(e);return tW.registerClass(t),t}function lje(e){var t=aK.extend(e);return aK.registerClass(t),t}function uje(e){var t=tK.extend(e);return tK.registerClass(t),t}function dje(e){var t=cK.extend(e);return cK.registerClass(t),t}var hZ=Math.PI*2,gZ=ER.CMD,fje=[`top`,`right`,`bottom`,`left`];function pje(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 mje(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)%hZ<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=AR(i),i=AR(f)}else r=AR(r),i=AR(i);r>i&&(i+=hZ);var p=Math.atan2(s,o);if(p<0&&(p+=hZ),p>=r&&p<=i||p+hZ>=r&&p+hZ<=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 _Z(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 vZ(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 yZ=[];function hje(e,t,n){var r=vZ(t.x,t.y,t.width,t.height,e.x,e.y,yZ);return n.set(yZ[0],yZ[1]),r}function gje(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 gZ.M:a=u[p++],o=u[p++],r=a,i=o;break;case gZ.L:h=_Z(r,i,u[p],u[p+1],d,f,yZ,!0),r=u[p++],i=u[p++];break;case gZ.C:h=AN(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,yZ),r=u[p++],i=u[p++];break;case gZ.Q:h=FN(r,i,u[p++],u[p++],u[p],u[p+1],d,f,yZ),r=u[p++],i=u[p++];break;case gZ.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=mje(g,_,y,b,b+x,S,C,f,yZ),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case gZ.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=vZ(a,o,w,T,d,f,yZ);break;case gZ.Z:h=_Z(r,i,a,o,d,f,yZ,!0),r=a,i=o;break}h<l&&(l=h,n.set(yZ[0],yZ[1]))}return l}var bZ=new OM,xZ=new OM,SZ=new OM,CZ=new OM,wZ=new OM;function TZ(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||fje,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&EM([],u),f=t.get(`length2`)||0;l&&SZ.copy(l);for(var p=0;p<o.length;p++){var m=o[p];pje(m,0,s,bZ,CZ),OM.scaleAndAdd(xZ,bZ,CZ,f),xZ.transform(d);var h=e.getBoundingRect(),g=l?l.distance(xZ):e instanceof BR?gje(xZ,e.path,SZ):hje(xZ,h,SZ);g<c&&(c=g,xZ.transform(u),SZ.transform(u),SZ.toArray(a[0]),xZ.toArray(a[1]),bZ.toArray(a[2]))}OZ(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var EZ=[],DZ=new OM;function OZ(e,t){if(t<=180&&t>0){t=t/180*Math.PI,bZ.fromArray(e[0]),xZ.fromArray(e[1]),SZ.fromArray(e[2]),OM.sub(CZ,bZ,xZ),OM.sub(wZ,SZ,xZ);var n=CZ.len(),r=wZ.len();if(!(n<.001||r<.001)){CZ.scale(1/n),wZ.scale(1/r);var i=CZ.dot(wZ);if(Math.cos(t)<i){var a=_Z(xZ.x,xZ.y,SZ.x,SZ.y,bZ.x,bZ.y,EZ,!1);DZ.fromArray(EZ),DZ.scaleAndAdd(wZ,a/Math.tan(Math.PI-t));var o=SZ.x===xZ.x?(DZ.y-xZ.y)/(SZ.y-xZ.y):(DZ.x-xZ.x)/(SZ.x-xZ.x);if(isNaN(o))return;o<0?OM.copy(DZ,xZ):o>1&&OM.copy(DZ,SZ),DZ.toArray(e[1])}}}}function _je(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,bZ.fromArray(e[0]),xZ.fromArray(e[1]),SZ.fromArray(e[2]),OM.sub(CZ,xZ,bZ),OM.sub(wZ,SZ,xZ);var r=CZ.len(),i=wZ.len();if(!(r<.001||i<.001)&&(CZ.scale(1/r),wZ.scale(1/i),CZ.dot(t)<Math.cos(n))){var a=_Z(xZ.x,xZ.y,SZ.x,SZ.y,bZ.x,bZ.y,EZ,!1);DZ.fromArray(EZ);var o=Math.PI/2,s=o+Math.acos(wZ.dot(t))-n;if(s>=o)OM.copy(DZ,SZ);else{DZ.scaleAndAdd(wZ,a/Math.tan(Math.PI/2-s));var c=SZ.x===xZ.x?(DZ.y-xZ.y)/(SZ.y-xZ.y):(DZ.x-xZ.x)/(SZ.x-xZ.x);if(isNaN(c))return;c<0?OM.copy(DZ,xZ):c>1&&OM.copy(DZ,SZ)}DZ.toArray(e[1])}}}function kZ(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 vje(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=qj(r[0],r[1]),a=qj(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=Xj([],r[1],r[0],o/i),c=Xj([],r[1],r[2],o/a),l=Xj([],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 AZ(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<Ez.length;c++){var l=Ez[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:hj(i.states[l]&&i.states[l].ignore,s))||!hj(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&kZ(r,!0,l,u);continue}r||(r=new KB,e.setTextGuideLine(r),!d&&(s||!o)&&kZ(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),kZ(r,!1,l,u)}}if(r){UA(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=vje}}function jZ(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Tz.length;r++){var i=Tz[r];n[i]=e.getModel([i,t])}return n}var MZ=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],yje=1,NZ=2,PZ=yje|NZ;function FZ(e,t,n){n||=PZ,t?e.dirty|=n:e.dirty&=~n}function IZ(e,t){return t||=PZ,e.dirty==null||!!(e.dirty&t)}function LZ(e){if(e)return IZ(e)&&RZ(e,e.label,e),e}function RZ(e,t,n){var r=t.getComputedTransform();e.transform=nH(e.transform,r);var i=e.localRect=tH(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=EH.textMargin);for(var d=0;d<4;d++)zZ[d]=u===EH.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===EH.textMargin&&qV(i,zZ,!1,!1);var f=e.rect=tH(e.rect,i);return r&&f.applyTransform(r),u===EH.minMargin&&qV(f,zZ,!1,!1),e.axisAligned=$V(r),(e.label=e.label||{}).ignore=t.ignore,FZ(e,!1),FZ(e,!0,NZ),e}var zZ=[0,0,0,0];function bje(e,t,n){return e.transform=nH(e.transform,n),e.localRect=tH(e.localRect,t),e.rect=tH(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=$V(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function BZ(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 VZ(e,t){for(var n=0;n<MZ.length;n++){var r=MZ[n];e[r]??(e[r]=t[r])}return LZ(e)}function HZ(e){var t=e.obb;return(!t||IZ(e,NZ))&&(e.obb=t||=new lV,t.fromBoundingRect(e.localRect,e.transform),FZ(e,!1,NZ)),t}function UZ(e,t,n,r,i){var a=e.length,o=CV[t],s=wV[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 xje(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 WZ(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=LZ(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(GZ(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function GZ(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:HZ(e).intersect(HZ(t),n,r)}function Sje(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function Cje(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:Sje(r&&r.shape.points)}}var KZ=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],qZ=new dF,JZ=YI(),wje=YI();function YZ(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var XZ=[`x`,`y`,`rotation`],Tje=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();VM.applyTransform(c,c,s),s?qZ.setLocalTransform(s):(qZ.x=qZ.y=qZ.rotation=qZ.originX=qZ.originY=0,qZ.scaleX=qZ.scaleY=1),qZ.rotation=AR(qZ.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();VM.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:qZ.x,y:qZ.y,scaleX:qZ.scaleX,scaleY:qZ.scaleY,rotation:qZ.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`);(nj(r)||QA(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=cz(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(){TZ(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=nj(a.layoutOptionOrCb)?a.layoutOptionOrCb(Cje(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=sI(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=sI(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=JZ(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<KZ.length;m++){var h=KZ[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(VZ({},e))});var i=XA(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=XA(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});UZ(i,0,0,t),UZ(a,1,0,n);var o=XA(r,function(e){return e.layoutOption.hideOverlap});xje(o),WZ(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=JZ(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=cz(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`);AZ(e,jZ(o),s),TZ(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&&!gV(e))){var i=JZ(n),a=i.oldLayout,o=cz(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&&(WA(u,`select`)>=0&&n.attr(i.oldLayoutSelect),WA(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),mV(n,c,t,s)}else if(n.attr(c),!CH(n).valueAnimation){var d=hj(n.style.opacity,1);n.style.opacity=0,hV(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};YZ(f,c,XZ),YZ(f,n.states.select,XZ)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};YZ(p,c,XZ),YZ(p,n.states.emphasis,XZ)}TH(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=wje(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),mV(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,hV(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),ZZ=YI();function Eje(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=ZZ(t).labelManager;r||=ZZ(t).labelManager=new Tje,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=ZZ(t).labelManager;Q(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var QZ=Math.sin,$Z=Math.cos,eQ=Math.PI,tQ=Math.PI*2,Dje=180/eQ,nQ=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=dP(u-tQ)||(l?c>=tQ:-c>=tQ),f=c>0?c%tQ:c%tQ+tQ,p=!1;p=d?!0:dP(u)?!1:f>=eQ==!!l;var m=e+n*$Z(a),h=t+r*QZ(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*Dje);if(d){var _=1/this._p,v=(l?1:-1)*(tQ-_);this._add(`A`,n,r,g,1,+l,e+n*$Z(a+v),t+r*QZ(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*$Z(o),b=t+r*QZ(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}(),rQ=`none`,Oje=Math.round;function kje(e){var t=e.fill;return t!=null&&t!==rQ}function Aje(e){var t=e.stroke;return t!=null&&t!==rQ}var iQ=[`lineCap`,`miterLimit`,`lineJoin`],jje=JA(iQ,function(e){return`stroke-`+e.toLowerCase()});function Mje(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof HR){e(`opacity`,i);return}if(kje(t)){var a=lP(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`,rQ);if(Aje(t)){var s=lP(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=iq(n),p=f[0],m=f[1];p&&(m=Oje(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,rQ);for(var h=0;h<iQ.length;h++){var g=iQ[h];if(r||t[g]!==RR[g]){var _=t[g]||RR[g];_&&e(jje[h],_)}}}else r&&e(`stroke`,rQ)}var aQ=`http://www.w3.org/2000/svg`,oQ=`http://www.w3.org/1999/xlink`,Nje=`http://www.w3.org/2000/xmlns/`,Pje=`http://www.w3.org/XML/1998/namespace`,Fje=`ecmeta_`;function sQ(e){return document.createElementNS(aQ,e)}function cQ(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function Ije(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 Lje(e){return`</`+e+`>`}function lQ(e,t){t||={};var n=t.newline?`
|
||
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return Ije(i,a)+(i===`style`?o||``:cM(o))+(t?``+n+JA(t,function(e){return r(e)}).join(n)+n:``)+Lje(i)}return r(e)}function Rje(e,t,n){n||={};var r=n.newline?`
|
||
`:``,i=` {`+r,a=r+`}`,o=JA(QA(e),function(t){return t+i+JA(QA(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=JA(QA(t),function(e){return`@keyframes `+e+i+JA(QA(t[e]),function(n){return n+i+JA(QA(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 uQ(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function dQ(e,t,n,r){return cQ(`svg`,`root`,{width:e,height:t,xmlns:aQ,"xmlns:xlink":oQ,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var zje=0;function fQ(){return zje++}var pQ={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`},mQ=`transform-origin`;function Bje(e,t,n){var r=Z({},e.shape);Z(r,t),e.buildPath(n,r);var i=new nQ;return i.reset(bP(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function Vje(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[mQ]=n+`px `+r+`px`)}var Hje={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function hQ(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Uje(e,t,n){var r=e.shape.paths,i={},a,o;if(Q(r,function(e){var t=uQ(n.zrId);t.animation=!0,_Q(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=QA(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=hQ(i,n);return a.replace(o,s)}}function gQ(e){return rj(e)?pQ[e]?`cubic-bezier(`+pQ[e]+`)`:IN(e)?e:``:``}function _Q(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof QB){var s=Uje(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=gQ(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=gQ(d.easing),m=d.rawValue;(rj(m)||aj(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={};hF(g,e),Z(g,s[h]);var _=xP(g),v=s[h][u];l[h]=_?{transform:_}:{},Vje(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 ER);var S=y.len();y.reset(),l[h].d=Bje(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 Hje[e]})}for(var w=QA(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][mQ]!==l[O][mQ]){T=!1;break}E=l[D][mQ]}if(T&&E){for(var h in l)l[h][mQ]&&delete l[h][mQ];t[mQ]=E}if(XA(w,function(e){return QA(l[e]).length>0}).length)return hQ(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-`+fQ();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function Wje(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};vQ(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=sP(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),vQ(r,t,n,!0)}}function vQ(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+fQ(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var yQ=Math.round;function bQ(e){return e&&rj(e.src)}function xQ(e){return e&&nj(e.toDataURL)}function SQ(e,t,n,r){Mje(function(i,a){var o=i===`fill`||i===`stroke`;o&&vP(a)?AQ(t,e,i,r):o&&hP(a)?jQ(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),Zje(n,e,r)}function CQ(e,t){var n=KF(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[Fje+`silent`]=`true`))}function wQ(e){return dP(e[0]-1)&&dP(e[1])&&dP(e[2])&&dP(e[3]-1)}function Gje(e){return dP(e[4])&&dP(e[5])}function TQ(e,t,n){if(t&&!(Gje(t)&&wQ(t))){var r=n?10:1e4;e.transform=wQ(t)?`translate(`+yQ(t[4]*r)/r+` `+yQ(t[5]*r)/r+`)`:aCe(t)}}function EQ(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(yQ(r[a][0]*n)/n),i.push(yQ(r[a][1]*n)/n);t.points=i.join(` `)}function DQ(e){return!e.smooth}function Kje(e){var t=JA(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]]=yQ(o*r)/r)}}}var qje={circle:[Kje([`cx`,`cy`,`r`])],polyline:[EQ,DQ],polygon:[EQ,DQ]};function Jje(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function OQ(e,t){var n=e.style,r=e.shape,i=qje[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&bP(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&Jje(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 nQ,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return TQ(a,e.transform),SQ(a,n,e,t),CQ(a,e),t.animation&&_Q(e,a,t),t.emphasis&&Wje(e,a,t),cQ(s,e.id+``,a)}function Yje(e,t){var n=e.style,r=n.image;if(r&&!rj(r)&&(bQ(r)?r=r.src:xQ(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),TQ(c,e.transform),SQ(c,n,e,t),CQ(c,e),t.animation&&_Q(e,c,t),cQ(`image`,e.id+``,c)}}function Xje(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=sCe(n.y||0,EF(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":oCe[n.textAlign]||n.textAlign};if(tz(n)){var c=``,l=n.fontStyle,u=$R(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),TQ(s,e.transform),SQ(s,n,e,t),CQ(s,e),t.animation&&_Q(e,s,t),cQ(`text`,e.id+``,s,void 0,r)}}function kQ(e,t){if(e instanceof BR)return OQ(e,t);if(e instanceof HR)return Yje(e,t);if(e instanceof VR)return Xje(e,t)}function Zje(e,t,n){var r=e.style;if(cCe(r)){var i=lCe(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=lP(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]=cQ(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[cQ(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=yP(o)}}function AQ(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(gP(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(_P(i))a=`radialGradient`,o.cx=hj(i.x,.5),o.cy=hj(i.y,.5),o.r=hj(i.r,.5);else return;for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=pP(s[l].offset)*100+`%`,f=s[l].color,p=lP(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(cQ(`stop`,l+``,g))}var _=lQ(cQ(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=cQ(a,y,o,c)),t[n]=yP(y)}function jQ(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(mP(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(rj(h)?m=h:bQ(h)?m=h.src:xQ(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;yj(f,g),yj(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=DL(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=cQ(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=zA(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=xP(i);x&&(o.patternTransform=x);var S=cQ(`pattern`,``,o,[d]),C=lQ(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=cQ(`pattern`,T,o,[d])),t[n]=yP(T)}}function Qje(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]=cQ(`clipPath`,a,o,[OQ(e,n)])}t[`clip-path`]=yP(a)}function MQ(e){return document.createTextNode(e)}function NQ(e,t,n){e.insertBefore(t,n)}function PQ(e,t){e.removeChild(t)}function FQ(e,t){e.appendChild(t)}function IQ(e){return e.parentNode}function LQ(e){return e.nextSibling}function RQ(e,t){e.textContent=t}var zQ=58,$je=120,eMe=cQ(``,``);function BQ(e){return e===void 0}function VQ(e){return e!==void 0}function tMe(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 HQ(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function UQ(e){var t,n=e.children,r=e.tag;if(VQ(r)){var i=e.elm=sQ(r);if(KQ(eMe,e),tj(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&FQ(i,UQ(a))}else VQ(e.text)&&!oj(e.text)&&FQ(i,MQ(e.text))}else e.elm=MQ(e.text);return e.elm}function WQ(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&NQ(e,UQ(a),t)}}function GQ(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(VQ(i.tag)?PQ(IQ(i.elm),i.elm):PQ(e,i.elm))}}function KQ(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)===$je?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(Nje,n,o):n.charCodeAt(3)===zQ?r.setAttributeNS(Pje,n,o):n.charCodeAt(5)===zQ?r.setAttributeNS(oQ,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function nMe(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]:HQ(o,l)?(qQ(o,l),o=t[++r],l=n[++i]):HQ(s,u)?(qQ(s,u),s=t[--a],u=n[--c]):HQ(o,u)?(qQ(o,u),NQ(e,o.elm,LQ(s.elm)),o=t[++r],u=n[--c]):HQ(s,l)?(qQ(s,l),NQ(e,s.elm,o.elm),s=t[--a],l=n[++i]):(BQ(d)&&(d=tMe(t,r,a)),f=d[l.key],BQ(f)?NQ(e,UQ(l),o.elm):(p=t[f],p.tag===l.tag?(qQ(p,l),t[f]=void 0,NQ(e,p.elm,o.elm)):NQ(e,UQ(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,WQ(e,m,n,i,c)):GQ(e,t,r,a))}function qQ(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(KQ(e,t),BQ(t.text)?VQ(r)&&VQ(i)?r!==i&&nMe(n,r,i):VQ(i)?(VQ(e.text)&&RQ(n,``),WQ(n,null,i,0,i.length-1)):VQ(r)?GQ(n,r,0,r.length-1):VQ(e.text)&&RQ(n,``):e.text!==t.text&&(VQ(r)&&GQ(n,r,0,r.length-1),RQ(n,t.text)))}function rMe(e,t){if(HQ(e,t))qQ(e,t);else{var n=e.elm,r=IQ(n);UQ(t),r!==null&&(NQ(r,t.elm,LQ(n)),GQ(r,[e],0,0))}return t}var iMe=0,aMe=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=oMe(`configLayer`),this.storage=t,this._opts=n=Z({},n),this.root=e,this._id=`zr`+iMe++,this._oldVNode=dQ(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=sQ(`svg`);KQ(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`,rMe(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return kQ(e,uQ(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=uQ(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=sMe(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=cQ(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=JA(QA(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(cQ(`defs`,`defs`,{},c)),e.animation){var l=Rje(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=cQ(`style`,`stl`,{},[],l);a.push(u)}}return dQ(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},lQ(this.renderToVNode({animation:hj(e.cssAnimation,!0),emphasis:hj(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:hj(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 _={};Qje(d[g],_,t);var v=cQ(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=kQ(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=rq(r,0,n),t=rq(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(hP(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=dCe(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function oMe(e){return function(){}}function sMe(e,t,n,r){var i;if(n&&n!==`none`)if(i=cQ(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),vP(n))AQ({fill:n},i.attrs,`fill`,r);else if(hP(n))jQ({style:{fill:n},dirty:jj,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=lP(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}return i}function cMe(e){e.registerPainter(`svg`,aMe)}function JQ(e,t,n){var r=EA.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 YQ(e){return!e.__cursors.get(0)}function XQ(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var ZQ=function(e){Pj(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||=eF,typeof t==`string`?a=JQ(t,n,r):oj(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(kj(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=XQ(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=JQ(`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 VM(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new VM(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 VM(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 VM(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=XQ(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;uj(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||tq(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):dj(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=uq(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}(tM),QQ=1e5,$Q=314159,e$=void 0,lMe=1,t$=2;function uMe(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function dMe(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 n$(e,t,n,r){var i=new ZQ(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,r$(i),i}function r$(e){e.__cursorStack=[],e.__cursors=Ej()}function fMe(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function pMe(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,fMe({key:r})))}function i$(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function a$(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function o$(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&s$)||s.__builtin__)&&(!(n&c$)||!s.__builtin__)&&(!(n&l$)||s!==e.hoverlayer))&&t(s,a,o,i)}}var s$=1,c$=2,l$=4,u$=s$|l$,mMe=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||eF,this._singleCanvas=i,this.root=e,e.style&&(kj(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=n$(a,this,$Q,0);c.initContext(),this._insertLayer(c,$Q,0,!0),this._domRoot=e}else{this._width=rq(e,0,n),this._height=rq(e,1,n);var l=this._domRoot=dMe(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&&!oj(e)?{paintAll:!!e}:e||{},n=hj(t.refresh,!0),r=hj(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=t$),!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 o$(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},c$),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=e$,n!==e$&&(!t&&n===t$&&(t=this._i.hoverlayer=this._ensureLayer(QQ)),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),Sq(i,s,r),c&&(s.style=l)}}i&&(Cq(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(QQ)},e.prototype.paintOne=function(e,t){xq(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)o$(this._i,function(e){e.afterBrush&&e.afterBrush()},u$),this._paintHoverList(e);else{var i=this;fN(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer($Q).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),o$(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},s$)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return o$(this._i,function(i){var a=!1;if(i$(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!YQ(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)}i$(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},u$),TA.wxa&&o$(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=YQ(e),c=s&&EA.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=t$),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(Sq(o,f,a),f.setPrevPaintRect(p))}else Sq(o,f,a);if(s&&EA.getTime()-c>15){d++;break}}}Cq(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=$Q,t=0);var i=a$(this._i,e)[t];return i||(i=n$(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&BA(i,this._layerConfig[e],!0),(n||r&&e!==$Q)&&(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])&&uMe(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=a$(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),a$(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 o$(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return o$(this._i,function(n,r){e.call(t,n,r)},s$)},e.prototype.eachOtherLayer=function(e,t){return o$(this._i,function(n,r){e.call(t,n,r)},c$)},e.prototype.getLayers=function(){var e={};return o$(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}}o$(n._i,function(e){e.__dirty=!1,i$(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},u$);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__)){RA(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=pMe(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))}o$(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;(YQ(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&&(i$(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===e$&&(n._hoverLayerDirty=lMe))},u$)},e.prototype.clear=function(){return o$(this._i,function(e){e.clear(),r$(e)},s$),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,o$(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?BA(n[e],t,!0):n[e]=t,o$(this._i,function(e,t){BA(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=rq(i,0,r),t=rq(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,o$(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($Q).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[$Q][0].dom;var t=new ZQ(`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;o$(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];Sq(n,l,a)}Cq(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function hMe(e){e.registerPainter(`canvas`,mMe)}var gMe=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 xY(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new BF,n=ZK(`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=ZK(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}(tK);function d$(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=hG(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(hG(e,t,n[o]));return a.join(` `)}}function f$(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!tj(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 p$=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=ZK(e,-1,-1,2,2,null,a);o.attr({z2:hj(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=_Me,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(){Kz(this.childAt(0))},t.prototype.downplay=function(){qz(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):mV(f,p,o,n),bV(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,hV(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=hH(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=$K(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 HR){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;mH(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):d$(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),aB(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=cz(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&_V(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();_V(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return QK(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(BF);function _Me(e,t){this.parent.drift(e,t)}function m$(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 h$(e){return e!=null&&!oj(e)&&(e={isIgnore:e}),e||{}}function g$(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:hH(t),cursorStyle:t.get(`cursor`)}}function _$(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 v$=function(){function e(e){this.group=new BF,this._SymbolCtor=e||p$}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=h$(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=g$(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);m$(e,i,r,t)&&_$(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!m$(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):mV(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);m$(t,s,i,e)?(o||=_$(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=g$(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=h$(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(m$(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){QV(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 y$(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=vMe(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=JA(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return yY(t,d[0])&&(f=!0,d[0]=p),yY(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 vMe(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:aj(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function b$(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 x$(e,t){return!isFinite(e)||!isFinite(t)}var yMe=typeof Float32Array<`u`?Float32Array:void 0,bMe=typeof Float64Array<`u`?Float64Array:void 0;function S$(e){return C$({ctor:yMe},e).arr}function C$(e,t){var n=e.arr,r=e.ctor;if(t>_I&&(t=_I),!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 xMe(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 SMe(e,t,n,r,i,a,o,s){for(var c=xMe(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=y$(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=b$(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=S$(M),P=S$(M),F=S$(M),I=S$(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 w$=Math.min,T$=Math.max;function E$(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(x$(_,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(;x$(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||x$(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=w$(O,T$(S,_)),k=w$(k,T$(C,v)),O=T$(O,w$(S,_)),k=T$(k,w$(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=w$(p,T$(l,_)),m=w$(m,T$(u,v)),p=T$(p,w$(l,_)),m=T$(m,w$(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 D$=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),CMe=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 D$},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&x$(n[i*2-2],n[i*2-1]);i--);for(;r<i&&x$(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=E$(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=ER.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?DN(i,u,f,m,e,s):DN(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?TN(a,d,p,h,b):TN(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(BR),wMe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(D$),O$=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 wMe},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&&x$(n[a*2-2],n[a*2-1]);a--);for(;i<a&&x$(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=E$(e,n,i,a,a,1,t.smooth,o,t.connectNulls);E$(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(BR);function k$(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 qR({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=nj(i)?function(e){i(e,d)}:null;hV(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function A$(e,t,n){var r=e.getArea(),i=uI(r.r0,1),a=uI(r.r,1),o=new HB({shape:{cx:uI(e.cx,1),cy:uI(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,hV(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function j$(e,t,n,r,i){return e?e.type===`polar`?A$(e,t,n):e.type===`cartesian2d`?k$(e,t,n,r,i):null:null}function M$(e,t,n){e?t.setClipPath(n):t.removeClipPath()}function N$(e){var t=e.coordinateSystem;if(e.get(`clip`,!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function P$(e,t){return e.type===t}function F$(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`&&!!e.getViewRect}function I$(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||Aj(e,`text`)))}function L$(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},Aj(r,`text`)&&(o.text=r.text),Aj(r,`rich`)&&(o.rich=r.rich),Aj(r,`textFill`)&&(o.fill=r.textFill),Aj(r,`textStroke`)&&(o.stroke=r.textStroke),Aj(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),Aj(r,`fontSize`)&&(o.fontSize=r.fontSize),Aj(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),Aj(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=Aj(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),Aj(r,`textPosition`)&&(i.position=r.textPosition),Aj(r,`textOffset`)&&(i.offset=r.textOffset),Aj(r,`textRotation`)&&(i.rotation=r.textRotation),Aj(r,`textDistance`)&&(i.distance=r.textDistance)}return R$(o,e),Q(o.rich,function(e){R$(e,e)}),{textConfig:i,textContent:a}}function R$(e,t){t&&(t.font=t.textFont||t.font,Aj(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),Aj(t,`textAlign`)&&(e.align=t.textAlign),Aj(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),Aj(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),Aj(t,`textWidth`)&&(e.width=t.textWidth),Aj(t,`textHeight`)&&(e.height=t.textHeight),Aj(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),Aj(t,`textPadding`)&&(e.padding=t.textPadding),Aj(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),Aj(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),Aj(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),Aj(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),Aj(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),Aj(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Aj(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function z$(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;B$(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){B$(e,e)}),r}function B$(e,t){t&&(Aj(t,`fill`)&&(e.textFill=t.fill),Aj(t,`stroke`)&&(e.textStroke=t.fill),Aj(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),Aj(t,`font`)&&(e.font=t.font),Aj(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),Aj(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),Aj(t,`fontSize`)&&(e.fontSize=t.fontSize),Aj(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),Aj(t,`align`)&&(e.textAlign=t.align),Aj(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),Aj(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),Aj(t,`width`)&&(e.textWidth=t.width),Aj(t,`height`)&&(e.textHeight=t.height),Aj(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),Aj(t,`padding`)&&(e.textPadding=t.padding),Aj(t,`borderColor`)&&(e.textBorderColor=t.borderColor),Aj(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),Aj(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),Aj(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),Aj(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),Aj(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Aj(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Aj(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),Aj(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),Aj(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),Aj(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}function V$(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function H$(e){for(var t=oL(),n=oL(),r=0;r<e.length;){var i=e[r++],a=e[r++];x$(i,a)||(sL(t,i),sL(n,a))}return[t,n]}function U$(e,t){var n=H$(e),r=n[0],i=n[1],a=H$(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 W$(e){return aj(e)?e:e?.5:0}function TMe(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=S$(r*2),a=0;a<r;a++){var o=b$(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function G$(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;x$(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 EMe(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:tP((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 DMe(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=JA(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=EMe(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 eV(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function OMe(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&kMe(a,t))){var o=t.mapDimension(a.dim),s={};return Q(a.getViewLabels(),function(e){e.tick.offInterval||(s[mX(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function kMe(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(p$.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function AMe(e){for(var t=e.length/2;t>0&&x$(e[t*2-2],e[t*2-1]);t--);return t-1}function K$(e,t){return[e[t*2],e[t*2+1]]}function jMe(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],!x$(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 q$(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Tz.length;t++)if(e.get([Tz[t],`endLabel`,`show`]))return!0;return!1}function J$(e,t,n,r){if(P$(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=q$(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=k$(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 A$(t,n,r)}function MMe(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 NMe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new BF,t=new v$;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=$A(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=y$(r,a,_),y=g&&TMe(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&OMe(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=DMe(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&&=G$(y,c,r,w,x),c=G$(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,kU(E)),m.setClipPath(J$(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,kU(E));var D=m.getClipPath();D?hV(D,{shape:J$(this,r,!1,e).shape},e):m.setClipPath(J$(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]]}}),(!V$(this._stackedOnPoints,y)||!V$(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=G$(y,c,r,w,x),c=G$(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(UA(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),cB(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}cz(f).seriesIndex=e.seriesIndex,aB(f,k,A,j);var N=W$(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(UA(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(I=W$(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:P,connectNulls:x}),cB(p,e,`areaStyle`),cz(p).seriesIndex=e.seriesIndex,aB(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){cz(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=JI(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(x$(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new p$(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 cK.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=JI(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 cK.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Vz(this._polyline,e),t&&Vz(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new CMe({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 O$({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`);nj(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=nj(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=nj(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(q$(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 ZR({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=AMe(o);c>=0&&(mH(a,hH(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?d$(i,e):f$(i,n)},enableTextSetter:!0},MMe(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=jMe(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=K$(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=rL(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=K$(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=CH(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=SMe(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=G$(u.stackedOnCurrent,u.current,n,i,o),d=G$(u.current,null,n,i,o),m=G$(u.stackedOnNext,u.next,n,i,o),p=G$(u.next,null,n,i,o)),U$(d,p)>3e3||c&&U$(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(),mV(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),mV(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}(cK);function Y$(e,t){return{seriesType:e,plan:oK(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=JA(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);yY(n,o[0])&&(o[0]=c),yY(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&&S$(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 PMe={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]}},FMe=function(e){return Math.round(e.length/2)};function X$(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;rj(i)?p=PMe[i]:nj(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,FMe))}}}}}function IMe(e){e.registerChartView(NMe),e.registerSeriesModel(gMe),e.registerLayout(Y$(`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,X$(`line`))}var Z$=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}(pZ),Q$=null;function LMe(e){Q$||=e}function $$(){return Q$}var e1=`expandAxisBreak`,RMe=`collapseAxisBreak`,zMe=`toggleAxisBreak`,t1=`axisbreakchanged`,BMe={type:e1,event:t1,update:`update`,refineEvent:n1},VMe={type:RMe,event:t1,update:`update`,refineEvent:n1},HMe={type:zMe,event:t1,update:`update`,refineEvent:n1};function n1(e,t,n,r){var i=[];return Q(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function UMe(e){e.registerAction(BMe,t),e.registerAction(VMe,t),e.registerAction(HMe,t);function t(e,t){var n=[],r=XI(t,e);function i(t,i){Q(r[t],function(t){Q(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(UA((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var r1=Math.PI,WMe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],GMe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],i1=YI(),a1=YI(),o1=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 KMe(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=b1(e.axisName)&&uX(e.nameLocation);Q(r,function(e){var t=LZ(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?EM(s1,n.transform):bM(s1),t.transform&&SM(s1,s1,t.transform),VM.copy(c1,t.localRect),c1.applyTransform(s1),s?s.union(c1):VM.copy(s=new VM(0,0,0,0),c1))}});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 VM(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var s1=yM(),c1=new VM(0,0,0,0),l1=function(e,t,n,r,i,a){if(uX(e.nameLocation)){var o=a.stOccupiedRect;o&&u1(bje({},o,a.transGroup.transform),r,i)}else d1(a.labelInfoList,a.dirVec,r,i)};function u1(e,t,n){var r=new OM;GZ(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&BZ(t,r)}function d1(e,t,n,r){for(var i=OM.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||u1(s,n,r)}}var f1=function(){function e(e,t,n,r){this.group=new BF,this._axisModel=e,this._api=t,this._local={},this._shared=r||new o1(l1),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=hj(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=hj(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:hj(e.nameDirection,1),tickDirection:hj(e.tickDirection,1),labelDirection:hj(e.labelDirection,1),labelOffset:hj(e.labelOffset,0),silent:hj(e.silent,!0),axisName:r,nameLocation:gj(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:b1(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new BF({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 OM(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(qMe,function(r){e[r]&&JMe[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=vI(t-e),i,a;return yI(r)?(a=n>0?`top`:`bottom`,i=`center`):yI(r-r1)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<r1?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}(),qMe=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],JMe={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&&(Zj(u,u,l),Zj(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`])&&KH(r.axis.scale))$$().buildAxisBreakLine(r,i,a,m);else{var h=new qB(Z({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));PV(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`]);rj(g)&&(g=[g,g]),(rj(_)||aj(_))&&(_=[_,_]);var v=$K(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=ZK(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){g1(t,i,s)&&p1(e,t,n,r,i,a,o,nZ.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){g1(t,i,s)&&p1(e,t,n,r,i,a,o,nZ.determine);var c=QMe(e,i,a,r);ZMe(e,t.labelLayoutList,c),$Me(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(b1(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 OM(0,0),_=new OM(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=yM();_.transform(wM(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*r1/180);var b,x;uX(u)?b=f1.innerTextLayout(e.rotation,y??e.rotation,d):(b=YMe(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=mj(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new ZR({x:g.x,y:g.y,rotation:b.rotation,silent:f1.isLabelSilent(r),style:gH(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(XV({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=f1.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,cz(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=LZ({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:uX(u)?WMe[E]:GMe[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 p1(e,t,n,r,i,a,o,s){_1(t)||eNe(e,t,i,s,r,o);var c=t.labelLayoutList;tNe(e,r,c,a),iNe(r,e.rotation,c);var l=e.optionHideOverlap;XMe(r,c,l),l&&WZ(XA(c,function(e){return e&&!e.label.ignore})),KMe(e,n,r,c)}function YMe(e,t,n,r){var i=vI(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return yI(i-r1/2)?(o=c?`bottom`:`top`,a=`center`):yI(i-r1*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<r1*1.5&&i>r1/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function XMe(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(cAe(r))return;function a(e,a,o){var s=LZ(t[a]),c=LZ(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=i1(s.label).labelInfo.tick;if(FY(l)&&u.notNice||LY(l)&&u.offInterval){m1(s.label);return}}if(e===!1||s.suggestIgnore){m1(s.label);return}if(c.suggestIgnore){m1(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=VZ({marginForce:f},s),c=VZ({marginForce:f},c)}GZ(s,c,null,{touchThreshold:d})&&m1(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 ZMe(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=a1(r),a=i1(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){m1(r);return}}})}function m1(e){e&&(e.ignore=!0)}function h1(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&&(Zj(o,o,t),Zj(s,s,t));var u=new qB({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});PV(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=a1(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function QMe(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=h1(i.getTicksCoords(),n.transform,c,UA(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function $Me(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=UA(c.getLineStyle(),UA(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=h1(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function g1(e,t,n){if(_1(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),v1(e,null,null,null))}return!0}function eNe(e,t,n,r,i,a){var o=i.axis,s=mj(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new BF;n.add(c);var l=rZ(r);if(!s||o.scale.isBlank()){v1(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(mj(e.raw.labelRotate,u.get(`rotate`))||0)*r1/180,p=f1.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=mX(o.scale,n);if(m&&m[f]){var y=m[f];oj(y)&&y.textStyle&&(l=new jH(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=hj(l.getShallow(`alignMinLabel`,!0),x),C=hj(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=hj(l.getShallow(`verticalAlignMinLabel`,!0),w),E=hj(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new ZR({x:0,y:0,rotation:0,silent:f1.isLabelSilent(i),z2:D,style:gH(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:nj(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=i1(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,XV({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=f1.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),cz(O).eventData=A,j&&rNe(i,a,O,j)}h.push(O),c.add(O)}),v1(t,JA(h,function(e){return{label:e,priority:i1(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function _1(e){return!!e.labelLayoutList}function v1(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function tNe(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);Q(n,function(n,a){var o=LZ(n);if(o){var s=o.label,c=i1(s);o.suggestIgnore=s.ignore,s.ignore=!1,hF(y1,nNe);var l=t.axis;y1.x=l.dataToCoord(mX(l.scale,c.labelInfo.tick)),y1.y=e.labelOffset+e.labelDirection*i,y1.rotation=c.layoutRotation,r.add(y1),y1.updateTransform(),r.remove(y1),y1.decomposeTransform(),hF(s,y1),s.markRedraw(),FZ(o,!0),LZ(o)}})}var y1=new qR,nNe=new qR;function b1(e){return!!e}function rNe(e,t,n,r){n.on(`click`,function(n){var i={type:e1,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function iNe(e,t,n){var r=UH();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&i1(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&Q(i,function(r){$$().adjustBreakLabelPair(e.axis.inverse,t,[LZ(n[r[0]]),LZ(n[r[1]])])})}}function x1(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),mj(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 aNe(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function oNe(e){var t={xAxisModel:null,yAxisModel:null};return Q(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,QI).models[0]}),t}function sNe(e,t,n,r,i,a){for(var o=x1(e,n),s=!1,c=!1,l=0;l<t.length;l++)NY(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 f1(n,r,o,i)}function cNe(e,t,n){var r=x1(t,n);e.updateCfg(r)}function lNe(e){return e.dim+`_`+e.index}function uNe(){vAe(`liPosMinGap`,dNe)}function dNe(e,t,n){var r=Ej(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=wG(u);function f(n){SX(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}C$(S1,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||TG(d,a))&&(l&&(a=c.transformIn(a,null)),S1.arr[m++]=a)}});var h=S1.typed?S1.arr.subarray(0,m):(S1.arr.length=m,S1.arr);S1.typed?h.sort():dI(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=jI(g)?g:m>0?-2:-1,n.serUids=r}var S1=C$({ctor:bMe},50);function C1(e){return function(t,n){var r=dZ(t,{fromStat:{key:e}});if(jI(r.w2))return[-r.w2/2,r.w2/2]}}function w1(e){return e+`|&`}function T1(e,t){return e+`|&`+t}function E1(e){return uNe(),{liPosMinGap:!LY(e.scale)}}var D1=`pictorialBar`;function O1(e,t,n,r){OX(e,{key:t,seriesType:n,coordSysType:r,getMetrics:E1})}function k1(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var A1={left:0,right:0,top:0,bottom:0},j1=[`25%`,`25%`],M1=`cartesian2d`,fNe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=$U(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&QU(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&QU(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:A1,outerBoundsContain:`all`,outerBoundsClampWidth:j1[0],outerBoundsClampHeight:j1[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},t}(tW),pNe=pL(),N1=`__ec_stack_`;function P1(e){return e.get(`stack`)||N1+e.seriesIndex}function mNe(e){if(LY(e.axis.scale)){for(var t=dZ(e.axis),n=[],r=0;r<e.count;r++)n.push(UA({stackId:N1+r},e));for(var i=F1({bandWidthResult:t,seriesInfo:n}),a=[],r=0;r<e.count;r++){var o=i[N1+r];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function hNe(e,t){var n=gNe(e,t);return n.columnMap=F1(n),n}function gNe(e,t){var n=T1(t,M1),r=[],i=dZ(e,{fromStat:{key:n},min:1});return xX(e,n,function(e){r.push({barWidth:sI(e.get(`barWidth`),i.w),barMaxWidth:sI(e.get(`barMaxWidth`),i.w),barMinWidth:sI(e.get(`barMinWidth`)||(R1(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:P1(e)})}),{bandWidthResult:i,seriesInfo:r}}function F1(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;Aj(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=XF(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??=ZF(35-o.length*4,15)+`%`;var c=sI(i,t),l=sI(a,1),u=(n-c)/(r+(r-1)*l);u=ZF(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=XF(o,i)),a&&(o=ZF(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=XF(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=ZF(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 I1(e){return{seriesType:e,overallReset:function(t){var n=T1(e,M1);CX(t,n,function(t){var r=hNe(t,e);xX(t,n,function(e){var t=r.columnMap[P1(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function L1(e){return{seriesType:e,plan:oK(),reset:function(e){if(aNe(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=yY(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(k1(i))),p=R1(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&&S$(r*3),c=p&&s&&S$(r*3),l=p&&S$(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,QF(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,QF(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 R1(e){return e.pipelineContext&&e.pipelineContext.large}function _Ne(e){return C1(T1(e,M1))}function z1(e){pNe(e,function(){function t(t){var n=T1(t,M1);O1(e,n,t,M1),LX(n,_Ne(t))}t(`bar`),t(`pictorialBar`)})}var B1=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 xY(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}(tK);tK.registerClass(B1);var vNe=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 xY(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=gL(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=NH(B1.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}(B1),yNe=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}(),V1=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 yNe},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}(BR);function bNe(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return OF(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)+H1(m,s+_,!1),x=u+p*y(m)+U1(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+H1(m,-s+_,!1),x=u+p*y(m)+U1(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)+H1(h,s+_,!0),x=u+p*y(h)+U1(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+H1(h,-s+_,!0),x=u+p*y(h)+U1(h,-s+_,!0),S=`right`,C=`middle`;break;default:return OF(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function xNe(e,t,n,r){if(aj(r)){e.setTextConfig({rotation:r});return}else if(tj(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 H1(e,t,n){return t*Math.sin(e)*(n?-1:1)}function U1(e,t,n){return t*Math.cos(e)*(n?1:-1)}function W1(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;tj(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:JA(r,function(e){return DF(e,i)})}}var G1=Math.max,K1=Math.min,SNe=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){QV(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=CNe(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=Q1[s.type](a,e);if(!t)return null;var n=ANe(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=Q1[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!Z1[s.type](r)))){var o=!1;f&&(o=q1[s.type](p,r));var g=J1[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),e0(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?Y1(d,u,g,r,t,l,!1,!1):hV(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=Q1[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=Q1[s.type](a,t),E=i0(l,T,s);mV(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!Z1[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=q1[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&yV(D,e,n),D=null),D?bV(D):D=J1[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=CH(k);A.prevValue!=null&&(A.prevValue=A.value)}}else e0(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?Y1(d,u,D,C,t,l,!0,x):mV(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&&yV(n,e,t)}).execute();var C=this._backgroundGroup||=new BF;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(),n0(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),n0(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&j$(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:JA(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){yV(t,e,cz(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}(cK),q1={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=G1(t.x,e.x),s=K1(t.x+t.width,i),c=G1(t.y,e.y),l=K1(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=K1(t.r,e.r),a=G1(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}},J1={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new qR({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?V1:HB,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=bNe($1(i),{isRoundCap:l===V1}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?mV:hV)(u,{shape:p},a)}return u}};function CNe(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 Y1(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?mV:hV)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?mV:hV)(n,{shape:l},u,i)}function X1(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var wNe=[`x`,`y`,`width`,`height`],TNe=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],Z1={cartesian2d:function(e){return!X1(e,wNe)},polar:function(e){return!X1(e,TNe)}},Q1={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?DNe(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 ENe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function $1(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 e0(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,W1(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?jNe(i,a.coordinateSystem):MNe(i,a.coordinateSystem),p=hH(r);mH(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:d$(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,xNe(e,h===`outside`?f:h,$1(o),r.get([`label`,`rotate`]))}wH(m,p,a.getRawValue(n),function(e){return f$(t,e)});var g=r.getModel([`emphasis`]);aB(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),cB(e,r),ENe(i)&&(e.style.fill=`none`,e.style.stroke=`none`,Q(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function DNe(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 ONe=function(){function e(){}return e}(),t0=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 ONe},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}(BR);function n0(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?hL(e):0;if(l){var d=new t0({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 t0({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,cz(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,r0),f.on(`mousemove`,r0)),n&&n.push(f)}var r0=mK(function(e){var t=this,n=kNe(t,e.offsetX,e.offsetY);cz(t).dataIndex=n>=0?n:null},30,!1);function kNe(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 i0(e,t,n){if(P$(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 ANe(e,t,n){return new(e.type===`polar`?HB:qR)({shape:i0(t,n,e),silent:!0,z2:0})}function jNe(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function MNe(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function NNe(e){e.registerChartView(SNe),e.registerSeriesModel(vNe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,I1(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,L1(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,X$(`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)})}),z1(e)}function a0(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 o0(e,t,n){t=tj(t)&&{coordDimensions:t}||Z({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=gY(r,t).dimensions,a=new hY(i,e);return a.initData(r,n),a}var s0=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}(),PNe=YI(),c0=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 s0($A(this.getData,this),$A(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return o0(this,{coordDimensions:[`value`],encodeDefaulter:ej(fW,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=PNe(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=hI(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){zI(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}(tK);PEe({fullType:c0.type,getCoord2:function(e){return e.getShallow(`center`)}});var FNe=Math.PI/180;function l0(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;u0(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}UZ(e,1,c,c+o)&&d(e)}function INe(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;p0(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(!p0(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,u0(m,g,!1)}}l0(l,t,n,r,1,i,a,o,s,d),l0(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!p0(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 u0(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)}d0(a,r)}}}function d0(e,t){f0.rect=e,RZ(f0,t,LNe)}var LNe={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},f0={};function p0(e){return e.position===`center`}function RNe(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*FNe,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=sI(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=sI(T,l);var E=w.get(`length2`);if(E=sI(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(aj(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 VM(0,0,0,0);d0(ee,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new OM(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`)&&INe(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):(OZ(x,g.minTurnAngle),_je(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new OM(x[0][0],x[0][1])})}}}var m0=Math.PI*2,h0=Math.PI/180,zNe=_L(`pie`,BNe);function BNe(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=GU(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*h0,d=e.get(`endAngle`),f=e.get(`padAngle`)*h0;d=d===`auto`?u-m0:-d*h0;var p=e.get(`minAngle`)*h0+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;TR(S,!_),u=S[0],d=S[1];var w=g0(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?oI(e,b,[c,s]):s}),O=i}),E<m0&&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 g0=YI(),VNe=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new ZR;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(W1(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?(hV(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,hV(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,mV(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),hV(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else bV(i),mV(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),cB(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)},W1(s.getModel(`itemStyle`),c)),Z(i.ensureState(`select`),{x:p,y:m,shape:W1(o.getModel([`select`,`itemStyle`]),c)}),Z(i.ensureState(`blur`),{shape:W1(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}),aB(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;mH(r,hH(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 KB,this.setTextGuideLine(d)),AZ(this,jZ(i),{stroke:s,opacity:gj(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(HB),HNe=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 HB({shape:zA(g0(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new VNe(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){yV(a.getItemGraphicEl(t),e,t)}).execute(),RNe(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}(cK);function UNe(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!(aj(r)&&!isNaN(r)&&r<0)})}}}function WNe(e){e.registerChartView(HNe),e.registerSeriesModel(c0),zK(`pie`,e.registerAction),e.registerLayout(zNe),e.registerProcessor(a0(`pie`)),e.registerProcessor(UNe(`pie`))}var GNe=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 xY(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}(tK),_0=4,KNe=function(){function e(){}return e}(),qNe=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 KNe},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]<_0,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 VM(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(BR),JNe=function(){function e(){this.group=new BF}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 qNe({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=ZK(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<_0;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=cz(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}(),YNe=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,v0(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),hL(t),v0(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=Y$(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(v0(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 JNe:new v$,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}(cK);function v0(e){return{clipShape:N$(e)}}var y0=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,QI).models[0]},t.type=`cartesian2dAxis`,t}(tW);KA(y0,gX);var b0={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`}},XNe=BA({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},b0),x0=BA({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}}},b0),S0={category:XNe,value:x0,time:BA({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},x0),log:UA({logBase:10},x0)};function C0(e,t,n,r){Q(rX,function(i,a){var o=BA(BA({},S0[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=ZU(this),r=n?$U(e):{};BA(e,t.getTheme().get(a+`Axis`)),BA(e,this.getDefaultOption()),e.type=w0(e),n&&QU(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=CY.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=$$();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,w0)}function w0(e){return e.type||(e.data?`category`:`value`)}var ZNe=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 JA(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),XA(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}(),T0=[`x`,`y`];function E0(e){return(e.type===`interval`||e.type===`time`)&&!KH(e)}var QNe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=M1,t.dimensions=T0,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!E0(e)||!E0(t))){var n=kY(e,null),r=kY(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=EM([],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 VM(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 Zj(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 Zj(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 VM(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(ZNe);function D0(e,t){var n=e.scale,r=e.model,i=zX(n,r,r.ecModel,e,null),a=IY(n),o=IY(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=QF(l[0].value-l[1].value),g=QF(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=VY(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*ZF(c,2):qke(E),D=RY(E)}function j(){w=uI(k-E*f,D)}function M(){T=uI(O+E*p,D)}function N(){k=f?uI(w+E*f,D):w}function P(){O=p?uI(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=QF(F[1]-F[0]);D=mI([T,w],I,.5/m),N(),P(),jI(D)&&(E=uI(E,D))}else{var L=C[1]-C[0];E=a?ZF(xI(L),1):CI(L/m,2),D=RY(E),b[0]?(w=C[0],A(function(){if(N(),O=uI(k+E*m,D),M(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(P(),k=uI(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=uI(tI(C[0]/E)*E,D),O=uI(eI(C[1]/E)*E,D);var e=$F((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=eI(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=uI(k-E*n[0],D),O=uI(O+E*n[1],D),j(),M(),w<=C[0]&&T>=C[1])return!0}})}pX(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}var O0=[[3,1],[0,2]],$Ne=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=T0,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){FX(e,1);var t=e.scale;LY(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=QA(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):VX(i)}Q(n,function(e){tPe(e,e.__alignTo)?VX(e):D0(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};Q(n.x,function(e){k0(n,`y`,e,i)}),Q(n.y,function(e){k0(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=YU(e,t),i=this._rect=KU(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(M0(a,i),!n){var c=iPe(i,o,a,s,t),l=void 0;if(s)P0?(P0(this._axesList,i),M0(a,i)):l=F0(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=aPe(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=F0(d,f,p,i,a,c,r))}I0(i,a,nZ.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]}oj(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`,QI).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,QI).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,WA(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 QNe(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),j0(o.x),j0(o.y);function c(t){return function(n,r){if(ePe(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=aX(n),u=new Z$(t,oX(n,l,!0),[0,0],l,c);u.onBand=hX(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);WA(t,i)<0&&t.push(i),WA(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){SAe(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;LU({targetModel:e,coordSysType:M1,coordSysProvider:r});function r(){var r=oNe(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(EX(t,e,M1),EX(n,e,M1))},this),r},e.dimensions=T0,e.dimIdxMap=nY(T0),e}();function ePe(e,t){return e.getCoordSysModel()===t}function k0(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)A0(s,i[c])&&(a=i[c]);else for(var l in i)if(Aj(i,l)&&A0(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 A0(e,t){if(!t)return!1;var n=t.scale,r=aAe(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&sAe(t)&&(i=!1),i}function j0(e){for(var t=QA(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];NY(a.scale)&&fX(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 tPe(e,t){return KH(e.scale)||KH(t.scale)||t.scale.getTicks().length<2}function nPe(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 M0(e,t){Q(e.x,function(e){return N0(e,t.x,t.width)}),Q(e.y,function(e){return N0(e,t.y,t.height)})}function N0(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),nPe(e,t)}var P0;function rPe(e){P0=e}function F0(e,t,n,r,i,a,o){I0(r,i,nZ.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=ZA(s,function(e){return e>0})==null;return qV(r,s,!0,!0,n),M0(i,r),c;function l(e){Q(i[CV[e]],function(t){if(dX(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(mX(t.scale,i1(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=uX(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[CV[n]]-t[CV[n]],a=t[wV[n]]+t[CV[n]]-(e[wV[n]]+e[CV[n]]);i=d(i,1-r),a=d(a,r);var o=O0[n][0],c=O0[n][1];s[o]=ZF(s[o],i),s[c]=ZF(s[c],a)}function d(e,t){return e>0&&!pj(t)&&t>1e-4&&(e/=t),e}}function iPe(e,t,n,r,i){var a=new o1(oPe);return Q(n,function(n){return Q(n,function(n){if(dX(n.model)){var o=!r;n.axisBuilder=sNe(e,t,n.model,i,a,o)}})}),a}function I0(e,t,n,r,i,a){var o=n===nZ.determine;Q(t,function(t){return Q(t,function(t){dX(t.model)&&(cNe(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[CV[1-t]]=e[wV[t]]<=a.refContainer[wV[t]]*.5?0:1-t==1?2:1}Q(t,function(e,t){return Q(e,function(e){dX(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function aPe(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=KU(e.get(`outerBounds`,!0)||A1,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||WA([`all`,`axisLabel`],a)<0?`all`:a,s=[cI(hj(e.get(`outerBoundsClampWidth`,!0),j1[0]),t.width),cI(hj(e.get(`outerBoundsClampHeight`,!0),j1[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var oPe=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;l1(e,t,n,r,i,a),uX(e.nameLocation)||Q(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&d1(e.labelInfoList,e.dirVec,r,i)})};function sPe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return cPe(n,e,t),n.seriesInvolved&&uPe(n,e),n}function cPe(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=B0(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(Q(n.getAxes(),ej(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,ej(p,d?`cross`:!0,u)),d&&Q(f.otherAxes,ej(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!z0(d))){s??=d.get(`triggerTooltip`),d=r?lPe(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=B0(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:z0(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=dPe(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function lPe(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]=zA(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&&UA(l,u.textStyle)}return e.model.getModel(`axisPointer`,new jH(c,n,r))}function uPe(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[B0(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 dPe(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(L0(a[r+`AxisId`],n.id)||L0(a[r+`AxisIndex`],n.componentIndex)||L0(a[r+`AxisName`],n.name))return i}}function L0(e,t){return e===`all`||tj(e)&&WA(e,t)>=0||e===t}function fPe(e){var t=R0(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=z0(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 R0(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[B0(e)]}function pPe(e){var t=R0(e);return t&&t.axisPointerModel}function z0(e){return!!e.get([`handle`,`show`])}function B0(e){return e.type+`||`+e.id}var V0={},H0=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&&fPe(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=pPe(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){V0[e]=t},t.getAxisPointerClass=function(e){return e&&V0[e]},t.type=`axis`,t}(aK),U0=YI();function W0(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=U0(e).splitAreaColors,f=Ej(),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=tj(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 qR({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:UA({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}U0(e).splitAreaColors=f}}}function G0(e){U0(e).splitAreaColors=null}var mPe=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],K0=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 BF,this.group.add(this._axisGroup),dX(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),Q(mPe,function(e){t.get([e,`show`])&&hPe[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||BV(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){G0(this)},t.type=`cartesianAxis`,t}(H0),hPe={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=tj(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 qB({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:UA({stroke:c[x]},_),silent:!0});PV(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 qB({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});PV(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){W0(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=$$(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},q0=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}(K0),gPe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=q0.type,t}return t.type=`yAxis`,t}(K0),_Pe=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 qR({shape:e.coordinateSystem.getRect(),style:UA({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(aK),J0={offset:0};function Y0(e){e.registerComponentView(_Pe),e.registerComponentModel(fNe),e.registerCoordinateSystem(`cartesian2d`,$Ne),C0(e,`x`,y0,J0),C0(e,`y`,y0,J0),e.registerComponentView(q0),e.registerComponentView(gPe),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var X0=`single`,Z0=`singleAxis`,Q0=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=Z0,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}(tW);KA(Q0,gX.prototype);function vPe(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 yPe=YI();function $0(e,t,n,r){if(e instanceof Z$&&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=LY(e.scale)?dZ(e).w:null;return o?e2(n,a,c,r):bPe(e,t,n,r,a,s)}function e2(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 bPe(e,t,n,r,i,a){var o=yPe(e);o.items||=[];var s=o.items,c=t2(s,t,n,r,i,a,1),l=t2(s,t,n,r,i,a,-1),u=Math.abs(c-n)<Math.abs(l-n)?c:l,d=LY(e.scale)?dZ(e).w:null,f=Math.abs(u-n);return f>i/2||d&&f>d/2-r?e2(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function t2(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 xPe(){return{seriesType:`scatter`,plan:oK(),reset:function(e){var t=e.coordinateSystem;if(!(!t||t.type!==`cartesian2d`&&t.type!==`single`)){var n=t.getBaseAxis&&t.getBaseAxis();if(n&&vPe(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=$0(n,l[0],l[1],d/2);i?r[c+1]=f:l[1]=f}else if(s){var f=$0(n,l[1],l[0],d/2);i?r[c]=f:l[0]=f}}}}}}}}}}function SPe(e){qJ(Y0),e.registerSeriesModel(GNe),e.registerChartView(YNe),e.registerLayout(Y$(`scatter`))}function CPe(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,xPe())}function wPe(e){var t=e.polar;if(t){tj(t)||(t=[t]);var n=[];Q(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],tj(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 n2=`radar`,TPe=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 s0($A(this.getData,this),$A(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return o0(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=JG(this,e);return VG(`section`,{header:o,sortBlocks:!0,blocks:JA(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return VG(`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(JA(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.`+n2,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}(tK),EPe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n2,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=QK(e.getItemVisual(t,`symbolSize`)),i=ZK(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]),xV[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 JA(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new GB,i=new KB,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),hV(r,o,e,t),hV(i,o,e,t);var s=new BF,u=new BF;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),bV(s),bV(i),mV(i,u,e),mV(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(UA(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),cB(r,n,`lineStyle`),cB(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=zA(l)})}),o.useStyle(UA(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof HR){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=``),mH(e,hH(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),aB(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=n2,t}(cK),r2=S0.value,i2=`radar`,a2=i2,DPe=i2;function o2(e,t){return UA({show:t},e)}var OPe=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=JA(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=UA({color:f.color},s));var m=BA(zA(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(rj(l)){var h=m.name;m.name=l.replace(`{value}`,h??``)}else nj(l)&&(m.name=l(m.name,m));var g=new jH(m,null,this.ecModel);return KA(g,gX.prototype),g.mainType=`radar`,g.componentIndex=this.componentIndex,g.uid=MH(`ec_radar`),g},this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=a2,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:BA({lineStyle:{color:$.color.neutral20}},r2.axisLine),axisLabel:o2(r2.axisLabel,!1),axisTick:o2(r2.axisTick,!1),splitLine:o2(r2.splitLine,!0),splitArea:o2(r2.splitArea,!0),indicator:[]},t}(tW),kPe=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(JA(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new f1(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=tj(u)?u:[u],p=tj(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 kB({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new UB({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=JA(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),JA(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 KB({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new GB({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();Q(h,function(e,t){this.group.add(MV(e,{style:UA({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),Q(m,function(e,t){this.group.add(MV(e,{style:UA({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(aK),APe=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}(pZ),jPe=function(){function e(e,t,n){this.type=i2,this.dimensions=[],this._model=e,this._indicatorAxes=JA(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new APe(n,new KY);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=YU(e,t).refContainer,r=e.get(`center`),i=e.get(`clockwise`)||!1,a=Math.min(n.width,n.height)/2;this.cx=sI(r[0],n.width)+n.x,this.cy=sI(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var o=e.get(`radius`);(rj(o)||aj(o))&&(o=[0,o]),this.r0=sI(o[0],a),this.r=sI(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=HY(r.get(`splitNumber`),5),a=new KY;a.setExtent(0,i),a.setConfig({interval:1}),Q(n,function(e){FX(e,1),D0(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(a2,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(DPe,function(e){if(e.get(`coordinateSystem`)===`radar`){var t=e.coordinateSystem=r[e.get(`radarIndex`)||0];t&&Q(t.getIndicatorAxes(),function(t){EX(t,e,i2)})}}),r},e.dimensions=[],e}();function MPe(e){e.registerCoordinateSystem(`radar`,jPe),e.registerComponentModel(OPe),e.registerComponentView(kPe),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 NPe=_L(n2,PPe);function PPe(e){e.eachSeriesByType(n2,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]=s2(i)?i:c2(r)})}),t.each(function(e){var i=ZA(n[e],function(e){return s2(e)})||c2(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function s2(e){return!isNaN(e[0])&&!isNaN(e[1])}function c2(e){return[e.cx,e.cy]}function FPe(e){qJ(MPe),e.registerChartView(EPe),e.registerSeriesModel(TPe),e.registerLayout(NPe),e.registerProcessor(a0(`radar`)),e.registerPreprocessor(wPe)}var l2=YI();function IPe(e,t,n){l2(e)[t]=n}function LPe(e,t,n){var r=l2(e);r[t]===n&&(r[t]=null)}function u2(e,t){return!!l2(e)[t]}IJ({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},jj);var RPe={axisPointer:1,tooltip:1,brush:1};function d2(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||RPe.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=rH(r),o=rH(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var f2=function(e){X(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=$A(n._mousedownHandler,n),i=$A(n._mousemoveHandler,n),a=$A(n._mouseupHandler,n),o=$A(n._mousewheelHandler,n),s=$A(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=rH(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:hj(c.z2,-1/0)},p=Z({},n.triggerInfo);this._opt=UA(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`)&&(h2(t,`mousedown`,r,f),h2(t,`mousemove`,i,f),h2(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(h2(t,`mousewheel`,o,f),h2(t,`pinch`,s,f)))},n.disable=function(){this._enabled&&(this._enabled=!1,g2(t,`mousedown`,r),g2(t,`mousemove`,i),g2(t,`mouseup`,a),g2(t,`mousewheel`,o),g2(t,`pinch`,s))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(d2(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(!(gM(e)||p2(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||u2(t,`globalPan`)||p2(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!v2(`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&&hM(e.event),e.__ecRoamConsumed=!0,_2(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!p2(e)){var t=this._zr;if(!gM(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!p2(e)){var t=v2(`zoomOnMouseWheel`,e,this._opt),n=v2(`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(!(u2(this._zr,`globalPan`)||p2(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(hM(r.event),r.__ecRoamConsumed=!0,_2(e,t,n,r,i))},t}(tM);function p2(e){return e.__ecRoamConsumed}var zPe=YI();function m2(e){var t=zPe(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function h2(e,t,n,r){for(var i=m2(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),BPe(e,t)}function g2(e,t,n){for(var r=m2(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||VPe(e,t);return}}function BPe(e,t){var n=m2(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function VPe(e,t){var n=m2(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function _2(e,t,n,r,i){i.isAvailableBehavior=$A(v2,null,n,r),e.trigger(t,i)}function v2(e,t,n){var r=n[e];return!e||r&&(!rj(r)||t.event[r+`Key`])}function y2(e){rj(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 b2,x2={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`},HPe=QA(x2),S2={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},UPe=QA(S2),WPe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t||={};var n=y2(e);this._defsUsePending=[];var r=new BF;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),w2(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;QPe(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=T2(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=aFe(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new BF,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 qR({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=b2[o];if(l&&Aj(b2,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=GPe[o];if(f&&Aj(GPe,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 VR({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});C2(t,n),w2(e,n,this._defsUsePending,!1,!1),YPe(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(){b2={g:function(e,t){var n=new BF;return C2(t,n),w2(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new qR;return C2(t,n),w2(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 kB;return C2(t,n),w2(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 qB;return C2(t,n),w2(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 AB;return C2(t,n),w2(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=JPe(n));var i=new GB({shape:{points:r||[]},silent:!0});return C2(t,i),w2(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=JPe(n));var i=new KB({shape:{points:r||[]},silent:!0});return C2(t,i),w2(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new HR;return C2(t,n),w2(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 BF;return C2(t,o),w2(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 BF;return C2(t,o),w2(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=DB(e.getAttribute(`d`)||``);return C2(t,n),w2(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),GPe={lineargradient:function(e){var t=new eV(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 KPe(e,t),qPe(e,t),t},radialgradient:function(e){var t=new tV(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return KPe(e,t),qPe(e,t),t}};function KPe(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function qPe(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={};rFe(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=ZN(o);c&&c[3]&&(c[3]*=UN(s),o=iP(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function C2(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},UA(t.__inheritedStyle,e.__inheritedStyle))}function JPe(e){for(var t=T2(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 w2(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(tFe(e,t),rFe(e,o,s),r||iFe(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=ZPe(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=ZPe(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=JA(T2(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function YPe(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 XPe=/^url\(\s*#(.*?)\)/;function ZPe(e,t,n,r){var i=n&&n.match(XPe);if(i){var a=bj(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function QPe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var $Pe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function T2(e){return e.match($Pe)||[]}var eFe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,E2=Math.PI/180;function tFe(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(eFe,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=T2(o);switch(i||=yM(),s){case`translate`:CM(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:TM(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:wM(i,i,-parseFloat(c[0])*E2,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*E2);SM(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*E2);SM(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 nFe=/([^\s:;]+)\s*:\s*([^:;]+)/g;function rFe(e,t,n){var r=e.getAttribute(`style`);if(r){nFe.lastIndex=0;for(var i;(i=nFe.exec(r))!=null;){var a=i[1],o=Aj(x2,a)?x2[a]:null;o&&(t[o]=i[2]);var s=Aj(S2,a)?S2[a]:null;s&&(n[s]=i[2])}}}function iFe(e,t,n){for(var r=0;r<HPe.length;r++){var i=HPe[r],a=e.getAttribute(i);a!=null&&(t[x2[i]]=a)}for(var r=0;r<UPe.length;r++){var i=UPe[r],a=e.getAttribute(i);a!=null&&(n[S2[i]]=a)}}function aFe(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 oFe(e,t){return new WPe().parse(e,t)}var sFe=Ej([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),cFe=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=Ej(),this._freedGraphics=[],this._mapName=e,this._parsedXML=y2(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=uFe(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&&oFe(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,yj(n!=null)}catch(e){throw Error(`Invalid svg format
|
||
`+e.message)}var r=new BF;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 VM(c,l,u,d)}if(o){var p=aFe(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new qR({shape:s.plain()}));var m=[];return Q(t.named,function(e){sFe.get(e.svgNodeTagLower)!=null&&(m.push(e),lFe(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 lFe(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function uFe(e){var t=[],n=Ej();return Q(e,function(e){if(e.namedFrom==null){var r=new zAe(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}for(var D2=[126,25],dFe=`南海诸岛`,O2=[[[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]]],k2=0;k2<O2.length;k2++)for(var A2=0;A2<O2[k2].length;A2++)O2[k2][A2][0]/=10.5,O2[k2][A2][1]/=-10.5/.75,O2[k2][A2][0]+=D2[0],O2[k2][A2][1]+=D2[1];function fFe(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===dFe)return;t.push(new ZX(dFe,JA(O2,function(e){return{type:`polygon`,exterior:e}}),D2))}}var pFe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function mFe(e,t){if(e===`china`){var n=pFe[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 hFe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function gFe(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:hFe[0]})}var _Fe=`name`,vFe=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=Ej(),this._mapName=e,this._specialAreas=n,this._geoJSON=bFe(t)}return e.prototype.load=function(e,t){t||=_Fe;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:yFe(r)})}var i=Ej(),a=[];return Q(n.regions,function(t){var n=t.name;e&&Aj(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new VM(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?eZ(n,e):[]}catch(e){throw Error(`Invalid geoJson format
|
||
`+e.message)}return fFe(t,r),Q(r,function(e){var n=e.name;mFe(t,e),gFe(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 yFe(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function bFe(e){return rj(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var j2=Ej(),M2={registerMap:function(e,t,n){if(t.svg){var r=new cFe(e,t.svg);j2.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new vFe(e,i,n);j2.set(e,r)}},getGeoResource:function(e){return j2.get(e)},getMapForUser:function(e){var t=j2.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=j2.get(e);if(r)return r.load(t,n)}};function N2(e){return e}var xFe=`view`,P2=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=xFe,i.dimensions=[`x`,`y`];var a=N2(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=pF(),o[1]=pF(),o[2]=pF(),a.mtRaw=yM(),a.mtRawInv=yM(),a.mtOverall=yM(),a.mtOverallInv=yM(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return CFe(null,this)},t.prototype.getViewRect=function(){return L2(null,this)},t.prototype.getRoamTransform=function(){return fF(N2(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?N2(this).mtRaw:N2(this).mtOverall;return n||=[],r?Zj(n,e,r):Ij(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=N2(this).mtOverallInv;return r?Zj(n,e,r):Ij(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=PFe(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=PFe(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=N2(this);return WM(F2,t.dataRect),KM(F2,F2,t.mtOverall),PSe(F2,e[0],e[1])},t.dimensions=[`x`,`y`],t}(dF),F2=HM();function I2(e,t){return xM(e||[],N2(t).mtOverall)}function SFe(e){return N2(e).zoom}function CFe(e,t){return WM(e||HM(),N2(t).dataRect)}function L2(e,t){return WM(e||HM(),N2(t).viewRect)}function R2(e,t,n){return hF(e||pF(),N2(t).trans[n])}function z2(e){return!!(e.dataRect&&e.viewRect)}function wFe(e,t,n,r){r===1?MFe(e,t.trans[0],n):hF(e,n)}function TFe(e,t,n){fF(n,B2),SM(B2,B2,t.mtRawInv),cH(e,B2)}var B2=yM();function V2(e,t){var n=N2(e);n.centerOption=t.getShallow(`center`);var r=n.zoomLimit=t.getShallow(`scaleLimit`);n.zoom=$2(t.getShallow(`zoom`)||1,r)||1,z2(n)&&W2(n)}function H2(e,t,n,r,i){var a=N2(e);a.dataRect=new VM(t,n,r,i),z2(a)&&W2(a)}function U2(e,t,n,r,i){var a=N2(e);a.viewRect=new VM(t,n,r,i),z2(a)&&W2(a)}function W2(e){EFe(e),kFe(e),AFe(e)}function EFe(e){var t=e.dataRect,n=e.viewRect,r=e.trans[0],i=e.invertY;i&&(t=WM(OFe,t),t.y=-t.y-t.height),GM(DFe,t,n),cH(r,DFe),i&&(r.scaleY=-r.scaleY);var a=fF(r,e.mtRaw);EM(e.mtRawInv,a)}var DFe=yM(),OFe=HM();function kFe(e){var t=FFe(e),n=HFe(G2,e,e.centerOption)?Zj(G2,G2,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 G2=[];function AFe(e){var t=e.trans,n=t[1],r=t[0],i=t[2];MFe(i,r,n);var a=fF(i,e.mtOverall),o=EM(e.mtOverallInv,a);jFe(e,i,a,o),jFe(e.lgGeo,i,a,o)}function jFe(e,t,n,r){e&&(hF(e,t),xM(e.transform||=[],n),xM(e.invTransform||=[],r))}function MFe(e,t,n){fF(t,NFe),fF(n,K2),SM(K2,K2,NFe),cH(e,K2)}var NFe=yM(),K2=yM();function PFe(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function FFe(e){var t=e.viewRect;return q2[0]=t.x+t.width/2,q2[1]=t.y+t.height/2,q2}var q2=[];function IFe(e){return e&&e.type===`view`}function J2(e,t,n,r){var i=N2(n);i.syncBackEl=e,i.syncBackType=t,r?mV(e,R2(null,n,t),r):(R2(e,n,t),e.dirty())}function LFe(e,t,n,r){var i=N2(e),a=i.syncBackEl;a?(a.stopAnimation(),wFe(Y2,i,a,i.syncBackType)):hF(Y2,i.trans[2]),TFe(X2,i,Y2),r?BFe(Y2,X2,i,r):hF(Y2,X2),TFe(Y2,i,Y2),KFe(i,t,n,Y2)}var Y2=pF(),X2=pF();function RFe(e,t,n){var r=Z2(t);r&&(LFe(r,t,n,e),V2(r,t))}function Z2(e){return e.__ownRoamView?e.__ownRoamView():null}function zFe(e,t,n,r){n.setUpdatePayload(sH(e));var i=bz(r,t);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(e,t,r)}function BFe(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=VFe(t),o=$2(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 VFe(e){return e.scaleX}function HFe(e,t,n){var r=t.dataRect;if(!n)return!1;var i=t.lgCt;return i?Rj(e,sI(n[0],i.w),sI(n[1],i.h)):r&&Rj(e,sI(n[0],r.width,r.x),sI(n[1],r.height,r.y)),!0}function UFe(e,t){var n=e.centerOption,r=e.dataRect;return!n||e.lgCt?t.slice():[WFe(0,t,n,r),WFe(1,t,n,r)]}function WFe(e,t,n,r){return n&&r&&r[wV[e]]&&WCe(n[e])?(t[e]-r[CV[e]])/r[wV[e]]*100+`%`:t[e]}function GFe(e,t){return t&&e&&e.getShallow(`legacyViewCoordSysCenterBase`)?{w:t.getWidth(),h:t.getHeight()}:null}function KFe(e,t,n,r){var i=FFe(e),a=VFe(r),o=QF(a)>1e-6;Q2[0]=o?(i[0]-r.x)/a:i[0],Q2[1]=o?(i[1]-r.y)/a:i[1],Zj(Q2,Q2,e.mtRawInv);var s=UFe(e,Q2);qFe(t,s,a),Q(n,function(e){e!==t&&qFe(e,s.slice(),a)})}var Q2=[];function qFe(e,t,n){var r=e.option;r.center=t,r.zoom=n}function $2(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 JFe(e,t){var n=t.getShallow(`nodeScaleRatio`,!0)||1,r=N2(e);return((r.zoom-1)*n+1)/(r.trans[2].scaleX||1)}function e4(e,t,n,r,i,a,o,s){if(!Z2(e)){n.disable();return}n.enable(hj(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=sH(UA({type:XFe(r,e.subType,vz)},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 YFe(e){return function(t,n,r){return t4.copy(e.getBoundingRect()),t4.applyTransform(e.getComputedTransform()),t4.contain(n,r)}}var t4=new VM(0,0,0,0);function n4(e,t,n){var r=XFe(t,n,vz);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(eL(e,t,n),function(t){RFe(e,t),zFe(e,t,r,i)})})}function XFe(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function ZFe(e){return e.zoom!=null}function r4(e,t,n,r,i,a,o){var s=new P2(null,GFe(e.ecModel,t));return H2(s,n,r,i,a),o?U2(s,o.x,o.y,o.width,o.height):U2(s,n,r,i,a),V2(s,e),s}var i4=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],QFe=Ej(i4),$Fe=Ej(i4.concat([`g`])),eIe=Ej(i4.concat([`g`])),tIe=YI();function a4(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function nIe(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var rIe=function(){function e(e){var t=this.group=new BF,n=this._transformGroup=new BF;t.add(n),this.uid=MH(`ec_map_draw`),this._controller=new f2(e.getZr()),n.add(this._regionsGroup=new BF),n.add(this._svgGroup=new BF)}return e.prototype.draw=function(e,t,n,r,i){var a=this,o=e.getData&&e.getData();o4(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=L2(null,c),this.group.setClipPath(new qR({shape:f.clone()}))):this.group.removeClipPath(),J2(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),e4(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){J2(this._transformGroup,1,e.coordinateSystem.view,null)},e.prototype._buildGeoJSON=function(e,t,n,r,i,a){var o=this._regionsGroupByName=Ej(),s=Ej(),c=this._regionsGroup,l=n.projection,u=l&&l.stream,d=fF(R2(null,e,0));function f(e,t){return t&&(e=t(e)),e&&Zj([],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 BF),c.add(d),h=i?i.indexOfName(n):null,g=o4(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=lIe(t,u)),Q(t,function(e){v.push(new GB(m(e)))})}else{var n=e.points;u&&(n=lIe(n,u,!0)),Q(n,function(e){y.push(new KB(m(e)))})}});var b=f(e.getCenter(),l&&l.project);function x(e,o){if(e.length){var s=new QB({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(s),iIe(t,i,a,s,h,g),aIe(r,i,s,n,g,h,b),o&&(nIe(s),Q(s.states,nIe))}}x(v),x(y,!0)}),o.each(function(e,t){var n=s.get(t),a=n.dataIdx,o=n.regionModel;oIe(r,i,e,t,o,a),sIe(r,i,e,t,o),cIe(r,e,t,o)},this)},e.prototype._buildSVG=function(e,t,n,r,i,a){var o=n.map;R2(this._svgGroup,e,0),this._svgResourceChanged(o)&&(this._freeSVG(),this._useSVG(o));var s=this._svgDispatcherMap=Ej(),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);QFe.get(o)!=null&&l instanceof qL&&iIe(t,i,a,l,u,d),l instanceof qL&&(l.culling=!0);var f=d.get(`silent`,!0);f!=null&&(l.silent=f),l.z2EmphasisLift=0,e.namedFrom||(eIe.get(o)!=null&&aIe(r,i,l,n,d,u,null),oIe(r,i,l,n,d,u),sIe(r,i,l,n,d),$Fe.get(o)!=null&&(cIe(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&&o4(t)){var n=t.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){Uz(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=M2.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=M2.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=tIe(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 iIe(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=a4(o),d=a4(s),f=a4(l),p=a4(c);if(t){var m=t.getItemVisual(i,`style`),h=t.getItemVisual(i,`decal`);n&&m.fill&&(u.fill=m.fill),h&&(u.decal=Dq(h,e))}r.setStyle(u),r.style.strokeNoScale=!0,r.ensureState(`emphasis`).style=d,r.ensureState(`select`).style=f,r.ensureState(`blur`).style=p,Uz(r)}function aIe(e,t,n,r,i,a,o){var s=t&&isNaN(t.get(t.mapDimension(`value`),a)),c=t&&t.getItemLayout(a);if(o4(e)||s||c&&c.showLabel){var l=o4(e)?r:a,u=void 0;(!t||a>=0)&&(u=e);var d=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;mH(n,hH(i),{labelFetcher:u,labelDataIndex:l,defaultText:r},d);var f=n.getTextContent();if(f&&(tIe(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 oIe(e,t,n,r,i,a){t?t.setItemGraphicEl(a,n):cz(n).eventData={componentType:`geo`,componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:r,region:i&&i.option||{}}}function sIe(e,t,n,r,i){t||XV({el:n,componentModel:e,itemName:r,itemTooltipOption:i.get(`tooltip`)})}function cIe(e,t,n,r){t.highDownSilentOnTouch=!!e.get(`selectedMode`);var i=r.getModel(`emphasis`),a=i.get(`focus`);return aB(t,a,i.get(`blurScope`),i.get(`disabled`)),o4(e)&&DTe(t,e,n),a}function lIe(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 o4(e){return e.mainType===`geo`}var uIe=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=o0(this,{coordDimensions:[`value`],encodeDefaulter:ej(fW,this)}),n=Ej(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return Q(M2.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&&BA(s,o)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){if(IU(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)}),VG(`section`,{header:o.join(`, `),noHeader:!o.length,blocks:[VG(`nameValue`,{name:a,value:i})]})},t.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=ZK(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 s4(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}(tK);function dIe(e){return e.indexOf(`i`)===0}function s4(e){return c4(e.seriesGroup)===e&&!e.getHostGeoModel()}function c4(e){return e.f[0]}function l4(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 fIe=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):s4(e)?(a||=this._mapDraw=new rIe(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;s4(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 kB({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=c4(e.seriesGroup).getData(),u=t.getName(i),d=l.indexOfName(u),f=t.getItemModel(i),p=f.getModel(`label`),m=l.getItemGraphicEl(d);mH(c,hH(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){Vz(c,e)}}n.add(c)}}})},t.type=`map`,t}(cK),pIe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},mIe=[`lng`,`lat`],hIe=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;i.dimensions=mIe,i.type=`geo`,i._nameCoordMap=Ej(),i.name=t;var a=r.projection,o=M2.load(n,r.nameMap,r.nameProperty),s=M2.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=pIe[s.type];i._clip=r.clip,i.view=new P2(a?!1:l.invertLongitute,GFe(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 H2(i.view,u.x,u.y,u.width,u.height),i.aspectScale=a?1:hj(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(rj(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=gIe(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=gIe(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=L2(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}(dF);function gIe(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,QI).models[0]||{}).coordinateSystem:null}function _Ie(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]);Qj(i,i,d),$j(a,a,d)}};d(s,c,l,c),d(l,c,l,u),d(l,u,s,u),d(s,u,l,c)}H2(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=YU(e,t).refContainer,g=f.width/f.height*this.aspectScale,_=!1,v,y;p&&m&&(v=[sI(p[0],h.width)+h.x,sI(p[1],h.height)+h.y],y=sI(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=KU(x,h),b=qU(e,b,g)}U2(n,b.x,b.y,b.width,b.height),V2(n,e)}function vIe(e,t){Q(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var yIe=new(function(){function e(){this.dimensions=mIe}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 hIe(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=_Ie,s.resize(i,t)}),e.eachSeries(function(e){LU({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,QI).models[0];return t&&t.coordinateSystem},allowNotFound:!0})}),Q(l4(e,!0),function(i,a){if(dIe(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 hIe(c,c,Z({nameMap:VA(s),api:t,ecModel:e},r(o))),u;Q(i.r,function(e){u=hj(u,e.get(`scaleLimit`))}),n.push(l),l.resize=_Ie,l.resize(o,t),Q(i.r,function(e){e.coordinateSystem=l,vIe(l,e)})}}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=Ej(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return Q(M2.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&&BA(n,r)}),i},e}()),bIe=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=M2.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=e.defaultItemStyleColor||$.color.backgroundTint)}zI(e,`label`,[`show`])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=yIe.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=YA(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new jH(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},Ej()),t.selectedMap||=n},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new jH(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(nj(r))return i.status=t,r(i);if(rj(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}(tW),xIe=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 rIe(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;VK(e.target,function(e){return(t=cz(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=cz(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}(aK);function SIe(e,t,n){M2.registerMap(e,t,n)}function CIe(e){e.registerCoordinateSystem(`geo`,yIe),e.registerComponentModel(bIe),e.registerComponentView(xIe),e.registerImpl(`registerMap`,SIe),e.registerImpl(`getMap`,function(e){return M2.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===uz;if(!(r!==`geo`&&!i)){var a=i?`map`:null;t.eachComponent(eL(e,r,a),function(r){i&&!s4(r)||(RFe(e,r,i?r.seriesGroup.r:null),zFe(e,r,t,n))})}})}var wIe=_L(`map`,TIe);function TIe(e){Q(l4(e),function(t,n){if(!(!c4(t)||!dIe(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=c4(t).getData();i.each(function(e){var t=i.getName(e),n=i.getItemLayout(e)||{};n.showLabel=!r[t],i.setItemLayout(e,n)})}})}function EIe(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 DIe=_L(`map`,OIe);function OIe(e){Q(l4(e),function(e){var t=c4(e);if(t){var n=EIe(JA(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 kIe(e){qJ(CIe),e.registerChartView(fIe),e.registerSeriesModel(uIe),e.registerLayout(wIe),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,DIe),zK(`map`,e.registerAction)}function AIe(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 jIe(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){PIe(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=FIe(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function MIe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function NIe(e){return arguments.length?e:RIe}function u4(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function PIe(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 FIe(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=d4(s),a=f4(a),s&&a;){i=d4(i),o=f4(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(LIe(IIe(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&&!d4(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!f4(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function d4(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function f4(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function IIe(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function LIe(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 RIe(e,t){return e.parentNode===t.parentNode?1:2}var p4=YI();function zIe(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,KIe(t,n,e),Q(n,function(n){Q(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,ej(BIe,e))})}),t.wrapMethod(`cloneShallow`,ej(HIe,e)),Q(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,ej(VIe,e))}),yj(n[t.dataType]===t)}function BIe(e,t){if(GIe(this)){var n=Z({},p4(this).datas);n[this.dataType]=t,KIe(t,n,e)}else m4(t,this.dataType,p4(this).mainData,e);return t}function VIe(e,t){return e.struct&&e.struct.update(),t}function HIe(e,t){return Q(p4(t).datas,function(n,r){n!==t&&m4(n.cloneShallow(),r,t,e)}),t}function UIe(e){var t=p4(this).mainData;return e==null||t==null?t:p4(t).datas[e]}function WIe(){var e=p4(this).mainData;return e==null?[{data:e}]:JA(QA(p4(e).datas),function(t){return{type:t,data:p4(e).datas[t]}})}function GIe(e){return p4(e).mainData===e}function KIe(e,t,n){p4(e).datas={},Q(t,function(t,r){m4(t,r,e,n)})}function m4(e,t,n,r){p4(n).datas[t]=e,p4(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=UIe,e.getLinkedDataAll=WIe}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){nj(e)&&(n=t,t=e,e=null),e||={},rj(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}(),h4=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,tj(n)?n.length:1),a.push(e);var r=new qIe(GI(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=gY(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new hY(c,n);return l.initData(a),r&&r(l),zIe({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 g4(e,t,n){if(e&&WA(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(rj(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 YIe(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function _4(e,t){return WA(YIe(e),t)>=0}function v4(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 y4=`tree`,XIe=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 jH(e.leaves||{},this,this.ecModel),r=h4.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 VG(`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=v4(r,this),n.collapsed=!r.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+y4,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}(tK),ZIe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),QIe=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 ZIe},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=sI(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}(BR),$Ie=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=y4,t._mainGroup=new BF,t}return t.prototype.init=function(e,t){this._controller=new f2(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;e.get(`layout`)===`radial`?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),e4(e,n,this._controller,YFe(this.group),null);var o=this._data;r.diff(o).add(function(t){eLe(r,t)&&tLe(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);if(!eLe(r,t)){i&&aLe(o,n,i,a,e);return}tLe(r,t,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&aLe(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){J2(this.group,2,t.coordinateSystem,null),ZFe(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=[];iR(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=r4(e,t,i[0],i[1],a[0]-i[0],a[1]-i[1]);J2(this.group,2,c,this._firstRender?null:e),this._min=i,this._max=a},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=JFe(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=y4,t}(cK);function eLe(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function tLe(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 p$(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,mV(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`?Dj(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(cz(n).focus=k),nLe(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||Vz(n.__edge,t)}})}function nLe(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 XB({shape:b4(u,d,f,i,i)}),mV(h,{shape:b4(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 QIe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:p}}),mV(h,{shape:{parentPoint:[o.x,o.y],childPoints:_}},e)}h&&!(l===`polyline`&&!t.isExpand)&&(h.useStyle(UA({strokeNoScale:!0,fill:null},m)),cB(h,c,`lineStyle`),Uz(h),s.add(h))}function rLe(e,t,n,r,i){var a=t.tree.root,o=iLe(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`?_V(d,{shape:b4(p,m,h,c,c),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):f===`polyline`&&r.get(`layout`)===`orthogonal`&&_V(d,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function iLe(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 aLe(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=iLe(o,a).sourceLayout,c={duration:i.get(`animationDurationUpdate`),easing:i.get(`animationEasingUpdate`)};_V(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){rLe(t,e,r,i,c)}),rLe(a,e,r,i,c)}function b4(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=u4(l,d),m=u4(l,d+(f-d)*n),h=u4(u,f+(d-f)*n),g=u4(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 oLe(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 x4(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 sLe(e,t){e.eachSeriesByType(`tree`,function(e){cLe(e,t)})}function cLe(e,t){var n=YU(e,t).refContainer,r=KU(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=NIe(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=NIe());var c=e.getData().tree.root,l=c.children[0];if(l){AIe(c),oLe(l,jIe,s),c.hierNode.modifier=-l.hierNode.prelim,x4(l,MIe);var u=l,d=l,f=l;x4(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),x4(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=u4(_,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),x4(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),x4(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 lLe(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:uz,subType:y4,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),n4(e,uz,y4)}var uLe=_L(y4,dLe);function dLe(e){e.eachSeriesByType(y4,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 fLe(e){e.registerChartView($Ie),e.registerSeriesModel(XIe),e.registerLayout(sLe),e.registerVisual(uLe),lLe(e)}var pLe=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function mLe(e){for(var t=0;t<pLe.length;t++)e.registerAction({type:pLe[t],update:`updateView`},jj);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=g4(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=_4(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function hLe(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=yW(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var gLe=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};_Le(n);var r=e.levels||[],i=new jH({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=vLe(r,t);var a=JA(r||[],function(e){return new jH(e,i,t)},this),o=h4.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 VG(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=v4(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=Ej(),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(){hLe(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}(tK);function _Le(e){var t=0;Q(e.children,function(e){_Le(e);var n=e.value;tj(n)&&(n=n[0]),t+=n});var n=e.value;tj(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),tj(e.value)?e.value[0]=n:e.value=n}function vLe(e,t){var n=RI(t.get(`color`)),r=RI(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;Q(e,function(e){var t=new jH(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 yLe=8,bLe=8,S4=5,xLe=function(){function e(e){this.group=new BF,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=YU(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=KU(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),XU(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=GI(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+yLe*2,t.emptyItemWidth);t.totalWidth+=o+bLe,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 GB({shape:{points:SLe(c,0,_,u,m===f.length-1,m===0)},style:UA(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new ZR({style:gH(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:ej(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=gH(o,{text:v}),y.ensureState(`emphasis`).style=p,aB(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),CLe(y,e,g),c+=_+bLe}},e.prototype.remove=function(){this.group.removeAll()},e}();function SLe(e,t,n,r,i,a){var o=[[i?e:e-S4,t],[e+n,t],[e+n,t+r],[i?e:e-S4,t+r]];return!a&&o.splice(2,0,[e+n+S4,t+r/2]),!i&&o.push([e,t+r/2]),o}function CLe(e,t,n){cz(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&&v4(n,t)}}var wLe=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 TLe(){return new wLe}var C4=Math.max,w4=Math.min,T4=Q,ELe=[`itemStyle`,`borderWidth`],DLe=[`itemStyle`,`gapWidth`],OLe=[`upperLabel`,`show`],kLe=[`upperLabel`,`height`],ALe={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=YU(e,n).refContainer,o=KU(e.getBoxLayoutParams(),a),s=r&&r.type,c=g4(r,[`treemapZoomToNode`,`treemapRootToNode`],e),l=s===`treemapRender`||s===`treemapMove`?r.rootRect:null,u=e.getViewRoot(),d=YIe(u);if(s!==`treemapMove`){var f=!1,p=s===`treemapZoomToNode`?(f=!0,RLe(e,c,u,o)):l?(f=!0,Z({},l)):Z({},o);if(f){var m=HLe(o,p);m=ULe(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(_),jLe(u,g,!1,0),_=u.getLayout(),T4(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(zLe(o,l,c),!0),e.setLayoutInfo(o),BLe(v,new VM(-o.x,-o.y,n.getWidth(),n.getHeight()),d,u,0)}};function jLe(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(ELe),l=s.get(DLe)/2,u=VLe(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=C4(i-2*f,0),a=C4(a-f-p,0);var m=i*a,h=MLe(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=w4(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=ILe(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,LLe(y,_,g,l,!1),_=w4(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&LLe(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++)jLe(h[b],t,n,r+1)}}}function MLe(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=XA(o,function(e){return!e.isRemoved()}),PLe(o,s);var l=FLe(t,o,s);if(l.sum===0||(l.sum=NLe(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 NLe(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 PLe(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 FLe(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=oL(),T4(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 ILe(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?C4(l*r/c,c/(l*i)):1/0}function LLe(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]]=C4(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=C4(v-2*r,0);m[s[o]]=n[s[o]]+w4(r,g/2),m[s[a]]=l+w4(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function RLe(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(ELe),v=Math.max(_,VLe(g));u+=4*_*_+(3*_+v)*u**.5,u>_I&&(u=_I),i=c}u<l&&(u=l);var y=(u/l)**.5;return{width:a*y,height:o*y}}function zLe(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 BLe(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 VM(t.x-a.x,t.y-a.y,t.width,t.height);T4(e.viewChildren||[],function(e){BLe(e,c,n,r,i+1)})}}function VLe(e){return e.get(OLe)?e.get(kLe):0}function HLe(e,t){return t.width/e.width||t.height/e.height||1}function ULe(e,t){return $2(e,t.get(`scaleLimit`,!0))}var E4=BF,WLe=qR,GLe=3,KLe=`label`,qLe=`upperLabel`,JLe=100,YLe=20,XLe=30,D4=TL([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),ZLe=function(e){var t=D4(e);return t.stroke=t.fill=t.lineWidth=null,t},O4=YI(),QLe=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=k4(),n}return t.prototype.render=function(e,t,n,r){if(!(WA(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=g4(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 E4,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=k4(),o=k4(),s=this._storage,c=[];function l(e,r,i,l){return $Le(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 XJ(t,e,a,a).add(o).update(o).remove(ej(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=k4();return e&&Q(e,function(e,n){var r=t[n];Q(e,function(e){e&&(r.push(e),O4(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=(nj(i)?0:i)||0,s=(nj(a)?null:a)||`cubicOut`,c=TLe();Q(t.willDeleteEls,function(e,t){Q(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=O4(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 BF?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($A(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this.seriesModel,r=this._controller;r||(r=this._controller=new f2(e.getZr()),r.on(`pan`,$A(this._onPan,this)),r.on(`zoom`,$A(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)>GLe||Math.abs(e.dy)>GLe)){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 VM(o.x,o.y,o.width,o.height),c=i.layoutInfo,l=HLe(c,o),u=l*r;u=ULe(u,i);var d=u/l;t-=c.x,n-=c.y;var f=yM();CM(f,f,[-t,-n]),TM(f,f,[d,d]),CM(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&&AU(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 xLe(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(_4(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=k4(),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}(cK);function k4(){return{nodeGroup:[],background:[],content:[]}}function $Le(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`,E4);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),O4(D).nodeWidth=p,O4(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=V(`background`,WLe,l,YLe);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)uB(D)&&lB(D,!1),O&&(lB(O,!M),d.setItemGraphicEl(o.dataIndex,O),oB(O,N,j));else{var P=V(`content`,WLe,l,XLe);P&&L(D,P),O.disableMorphing=!0,O&&uB(O)&&lB(O,!1),lB(D,!M),d.setItemGraphicEl(o.dataIndex,D);var F=f.getShallow(`cursor`);F&&P.attr(`cursor`,F),oB(D,N,j)}return D;function I(t,n,r){var i=cz(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=ZLe(S);c.fill=s;var l=D4(C);l.fill=C.get(`borderColor`);var u=D4(w);u.fill=w.get(`borderColor`);var d=D4(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,Uz(n)}t.add(n)}function L(t,n){var r=cz(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=ZLe(S);l.fill=c,l.decal=s.decal;var u=D4(C),d=D4(w),f=D4(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,Uz(n)}t.add(n)}function R(e){!e.invisible&&a.push(e)}function z(t,n,r,i){var a=f.getModel(i?qLe:KLe),s=GI(f.get(`name`),null),c=a.getShallow(`show`);mH(t,hH(f,i?qLe:KLe),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=vj(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 qL&&(s.z2=eRe(a,o)),U(c,s)),t[e][_]=s}function H(e,t){var n=e[_]={};t instanceof E4?(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 BF;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 eRe(e,t){return e*JLe+t}var A4=Q,tRe=oj,j4=-1,M4=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=zA(t);this.type=r,this.mappingMethod=n,this._normalizeData=oRe[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(N4(i),nRe(i)):n===`category`?i.categories?rRe(i):N4(i,!0):(yj(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 $A(this._normalizeData,this)},e.listVisualTypes=function(){return QA(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){oj(e)?Q(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=tj(t)?[]:oj(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&&A4(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(tj(e))e=e.slice();else if(tRe(e)){var t=[];A4(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||rj(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(B4(u[1],e,l[1]))return a}else if(l[1]===1/0){if(B4(u[0],l[0],e))return a}else if(B4(u[0],l[0],e)&&B4(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:F4(`color`),getColorMapper:function(){var e=this.option;return $A(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),I4.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=eP(t,e.parsedVisual,r),i?r:iP(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return iP(eP(e,this.option.parsedVisual),`rgba`)},category:I4,piecewise:function(e,t){var n=z4.call(this,t);return n??=iP(eP(e,this.option.parsedVisual),`rgba`),n},fixed:L4}},colorHue:P4(function(e,t){return nP(e,t)}),colorSaturation:P4(function(e,t){return nP(e,null,t)}),colorLightness:P4(function(e,t){return nP(e,null,null,t)}),colorAlpha:P4(function(e,t){return rP(e,t)}),decal:{applyVisual:F4(`decal`),_normalizedToVisual:{linear:null,category:I4,piecewise:null,fixed:null}},opacity:{applyVisual:F4(`opacity`),_normalizedToVisual:R4([0,1])},liftZ:{applyVisual:F4(`liftZ`),_normalizedToVisual:{linear:L4,category:L4,piecewise:L4,fixed:L4}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:iRe,category:I4,piecewise:function(e,t){var n=z4.call(this,t);return n??=iRe.call(this,e),n},fixed:L4}},symbolSize:{applyVisual:F4(`symbolSize`),_normalizedToVisual:R4([0,1])}},e}();function nRe(e){var t=e.pieceList;e.hasSpecialVisual=!1,Q(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function rRe(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(A4(t,function(e,t){n[e]=t}),!tj(r)){var i=[];oj(r)?A4(r,function(e,t){var r=n[t];i[r??j4]=e}):i[j4]=r,r=aRe(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=[];oj(n)?A4(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]),aRe(e,r)}function P4(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:R4([0,1])}}function iRe(e){var t=this.option.visual;return t[Math.round(oI(e,[0,1],[0,t.length-1],!0))]||{}}function F4(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function I4(e){var t=this.option.visual;return t[this.option.loop&&e!==j4?e%t.length:e]}function L4(){return this.option.visual[0]}function R4(e){return{linear:function(t){return oI(t,e,this.option.visual,!0)},category:I4,piecewise:function(t,n){var r=z4.call(this,n);return r??=oI(t,e,this.option.visual,!0),r},fixed:L4}}function z4(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[M4.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function aRe(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=JA(t,function(e){return ZN(e)||[0,0,0,1]})),t}var oRe={linear:function(e){return oI(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=M4.findPieceIndex(e,t,!0);if(n!=null)return oI(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??j4},fixed:jj};function B4(e,t,n){return e?t<=n:t<n}var sRe=`itemStyle`,cRe=YI(),lRe={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||uRe(t,{},e.getViewRoot().getAncestors(),e)}};function uRe(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(sRe),c=dRe(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=fRe(c),u=pRe(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=fRe(c),l.fill=f;else{var m=mRe(e,i,a,s,c,p);Q(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&uRe(e,hRe(i,c,e,t,m,r),n,r)})}}}function dRe(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 fRe(e){var t=V4(e,`color`);if(t){var n=V4(e,`colorAlpha`),r=V4(e,`colorSaturation`);return r&&(t=nP(t,null,null,r)),n&&(t=rP(t,n)),t}}function pRe(e,t){return t==null?null:nP(t,null,null,e)}function V4(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function mRe(e,t,n,r,i,a){if(!(!a||!a.length)){var o=H4(t,`color`)||i.color!=null&&i.color!==`none`&&(H4(t,`colorAlpha`)||H4(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 M4(d);return cRe(f).drColorMappingBy=u,f}}}function H4(e,t){var n=e.get(t);return tj(n)&&n.length?{name:t,range:n}:null}function hRe(e,t,n,r,i,a){var o=Z({},t);if(i){var s=i.type,c=s===`color`&&cRe(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 gRe(e){e.registerSeriesModel(gLe),e.registerChartView(QLe),e.registerVisual(lRe),e.registerLayout(ALe),mLe(e)}function U4(e){return`_EC_`+e}var _Re=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[U4(e)]){var r=new W4(e,t);return r.hostGraph=this,this.nodes.push(r),n[U4(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[U4(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(aj(e)&&(e=this.nodes[e]),aj(t)&&(t=this.nodes[t]),e instanceof W4||(e=r[U4(e)]),t instanceof W4||(t=r[U4(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new vRe(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 W4&&(e=e.id),t instanceof W4&&(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 W4||(t=this._nodesMap[U4(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}(),W4=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=Ej(),t=Ej(),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}(),vRe=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=Ej(),t=Ej();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 yRe(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)}}}KA(W4,yRe(`hostGraph`,`data`)),KA(vRe,yRe(`hostGraph`,`edgeData`));function G4(e,t,n,r,i){for(var a=new _Re(r),o=0;o<e.length;o++)a.addNode(mj(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(mj(GI(u.id,null),d+` > `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=xY(e,n);else{var h=NU.get(p),g=h&&h.dimensions||[];WA(g,`value`)<0&&g.concat([`value`]);var _=gY(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new hY(_,n),m.initData(e)}var v=new hY([`value`],n);return v.initData(c,s),i&&i(m,v),zIe({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var K4=`-->`,q4=function(e){return e.get(`autoCurveness`)||null},bRe=function(e,t){var n=q4(e),r=20,i=[];if(aj(n))r=n;else if(tj(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},J4=function(e,t,n){var r=[e.id,e.dataIndex].join(`.`),i=[t.id,t.dataIndex].join(`.`);return[n.uid,r,i].join(K4)},xRe=function(e){var t=e.split(K4);return[t[0],t[2],t[1]].join(K4)},SRe=function(e,t){var n=J4(e.node1,e.node2,t);return t.__edgeMap[n]},CRe=function(e,t){return Y4(J4(e.node1,e.node2,t),t)+Y4(J4(e.node2,e.node1,t),t)},Y4=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function wRe(e){q4(e)&&(e.__curvenessList=[],e.__edgeMap={},bRe(e))}function TRe(e,t,n,r){if(q4(n)){var i=J4(e,t,n),a=n.__edgeMap,o=a[xRe(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 X4(e,t,n,r){var i=q4(t),a=tj(i);if(!i)return null;var o=SRe(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=CRe(e,t);bRe(t,l),e.lineStyle=e.lineStyle||{};var u=J4(e.node1,e.node2,t),d=t.__curvenessList,f=a||l%2?0:1;if(o.isForward)return d[f+s];var p=Y4(xRe(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 Z4=`graph`,ERe=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 s0(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),zI(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){wRe(this);var a=G4(r,n,this,!0,o);return Q(a.edges,function(e){TRe(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=jH.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),VG(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return ZG({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=JA(this.option.categories||[],function(e){return e.value==null?Z({value:0},e):e}),t=new hY([`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 IFe(e)&&e},t.type=`series.`+Z4,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}(tK);function Q4(e){return e instanceof Array||(e=[e,e]),e}var DRe=_L(Z4,ORe);function ORe(e){e.eachSeriesByType(Z4,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=Q4(e.get(`edgeSymbol`)),i=Q4(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=Q4(r.getShallow(`symbol`,!0)),o=Q4(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 kRe(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`)])}),$4(n,e)}}function $4(e,t){e.eachEdge(function(e,n){var r=gj(e.getModel().get([`lineStyle`,`curveness`]),-X4(e,t,n,!0),0),i=Lj(e.node1.getLayout()),a=Lj(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 ARe=_L(Z4,jRe);function jRe(e,t){e.eachSeriesByType(Z4,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])}$4(r.graph,e)}else(!t||t===`none`)&&kRe(e)})}function e3(e){var t=e.coordinateSystem;return IFe(t)?JFe(t,e):1}function t3(e){var t=e.getVisual(`symbolSize`);return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var MRe=Math.PI,n3=[];function r3(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];Gj(h,h),Wj(h,h,u),n.setLayout([c+h[0],l+h[1]],!0),PRe(n,e.get([`circular`,`rotateLabel`]),c,l)}NRe[t](e,s,o,u,c,l,d),s.eachEdge(function(t,n){var r=gj(t.getModel().get([`lineStyle`,`curveness`]),X4(t,e,n),0),i=Lj(t.node1.getLayout()),a=Lj(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 NRe={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;n3.length=o;var c=e3(e);t.eachNode(function(e){var t=t3(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=c;var n=Math.asin(t/2/r);isNaN(n)&&(n=MRe/2),n3[e.dataIndex]=n,s+=n*2});var l=(2*MRe-s)/o/2,u=0;t.eachNode(function(e){var t=l+n3[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function PRe(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 FRe=_L(Z4,IRe);function IRe(e){e.eachSeriesByType(`graph`,function(e){e.get(`layout`)===`circular`&&r3(e,`symbolSize`)})}var i3=Bj;function LRe(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||=Fj(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1]),d.pp=Lj(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;Vj(t,u.p,s.p);var d=Hj(t)-o.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),Gj(t,t),!s.fixed&&i3(s.p,s.p,t,f*d*p),!u.fixed&&i3(u.p,u.p,t,-(1-f)*d*p)}}for(var a=0;a<n;a++){var g=r[a];g.fixed||(Vj(t,c,g.p),i3(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[_];Vj(t,u.p,s.p);var d=Hj(t);d===0&&(Rj(t,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&i3(s.pp,s.pp,t,v),!u.fixed&&i3(u.pp,u.pp,t,-v)}for(var y=[],a=0;a<n;a++){var g=r[a];g.fixed||(Vj(y,g.p,g.pp),i3(g.p,g.p,y,p),Ij(g.pp,g.p))}p*=.992;var b=p<.01;h&&h(r,i,b),e&&e(b)}}}var RRe=_L(Z4,zRe);function zRe(e){e.eachSeriesByType(Z4,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`?kRe(e):s===`circular`&&r3(e,`value`);var c=i.getDataExtent(`value`),l=a.getDataExtent(`value`),u=o.get(`repulsion`),d=o.get(`edgeLength`),f=tj(u)?u:[u,u],p=tj(d)?d:[d,d];p=[p[1],p[0]];var m=i.mapArray(`value`,function(e,t){var n=i.getItemLayout(t),r=oI(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=LRe(m,a.mapArray(`value`,function(t,n){var i=r.getEdgeByIndex(n),a=oI(t,l,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),s=gj(i.getModel().get([`lineStyle`,`curveness`]),-X4(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&&Ij(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]||[],Ij(f[0],u),Ij(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 BRe(e,t,n){var r=YU(e,t);return qU(e,KU(Z(e.getBoxLayoutParams(),{aspect:n}),r.refContainer),n)}function VRe(e,t){var n=[];return e.eachSeriesByType(`graph`,function(e){LU({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=[];iR(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=BRe(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=r4(e,t,a[0],a[1],l,u,c);return n.push(d),d}}),n}var HRe=qB.prototype,a3=XB.prototype,URe=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})(URe);function o3(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var WRe=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 URe},t.prototype.buildPath=function(e,t){o3(t)?HRe.buildPath.call(this,e,t):a3.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return o3(this.shape)?HRe.pointAt.call(this,e):a3.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=o3(t)?[t.x2-t.x1,t.y2-t.y1]:a3.tangentAt.call(this,e);return Gj(n,n)},t}(BR),s3=[`fromSymbol`,`toSymbol`];function GRe(e){return`_`+e+`Type`}function KRe(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=QK(i),l=$K(o||0,c);return r+c+l+(a||``)+(s||``)}function qRe(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=QK(i),l=$K(o||0,c),u=ZK(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 JRe(e){var t=new WRe({name:`line`,subPixelOptimize:!0});return c3(t.shape,e),t}function c3(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 l3=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=JRe(i);o.shape.percent=0,hV(o,{z2:hj(a,0),shape:{percent:1}},r,t),this.add(o),Q(s3,function(n){var r=qRe(n,e,t);this.add(r),this[GRe(n)]=KRe(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:{}};c3(o.shape,a),mV(i,o,r,t),Q(s3,function(n){var r=KRe(n,e,t),i=GRe(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=qRe(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=hH(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(s3,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<Tz.length;n++){var r=Tz[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);mH(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)?uI(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`);tj(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),aB(this,u,d,l)},t.prototype.highlight=function(){Kz(this)},t.prototype.downplay=function(){qz(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`);c3(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=Vj([],l,c);Gj(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}(BF),u3=function(){function e(e){this.group=new BF,this._LineCtor=e||l3}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=XRe(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=XRe(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!YRe(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i<e.end;i++)if(d3(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){QV(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(d3(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(!d3(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 YRe(e){return e.animators&&e.animators.length>0}function XRe(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:hH(t)}}function ZRe(e){return isNaN(e[0])||isNaN(e[1])}function d3(e){return e&&!ZRe(e[0])&&!ZRe(e[1])}var f3=[],p3=[],m3=[],h3=jN,g3=Yj,QRe=Math.abs;function $Re(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){f3[0]=h3(r[0],i[0],a[0],u),f3[1]=h3(r[1],i[1],a[1],u);var d=QRe(g3(f3,t)-c);d<o&&(o=d,s=u)}for(var f=0;f<32;f++){var p=s+l;p3[0]=h3(r[0],i[0],a[0],s),p3[1]=h3(r[1],i[1],a[1],s),m3[0]=h3(r[0],i[0],a[0],p),m3[1]=h3(r[1],i[1],a[1],p);var d=g3(p3,t)-c;if(QRe(d)<.01)break;var m=g3(m3,t)-c;l/=2,d<0?m>=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function _3(e,t){var n=[],r=PN,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=[Lj(c[0]),Lj(c[1])],c[2]&&c.__original.push(Lj(c[2])));var d=c.__original;if(c[2]!=null){if(Ij(i[0],d[0]),Ij(i[1],d[2]),Ij(i[2],d[1]),l&&l!==`none`){var f=t3(e.node1),p=$Re(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=t3(e.node2),p=$Re(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]}Ij(c[0],i[0]),Ij(c[1],i[2]),Ij(c[2],i[1])}else{if(Ij(a[0],d[0]),Ij(a[1],d[1]),Vj(o,a[1],a[0]),Gj(o,o),l&&l!==`none`){var f=t3(e.node1);Bj(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=t3(e.node2);Bj(a[1],a[1],o,-f*t)}Ij(c[0],a[0]),Ij(c[1],a[1])}})}var eze=YI();function tze(e){if(e)return eze(e).bridge}function nze(e,t){e&&(eze(e).bridge=t)}var rze=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Z4,t}return t.prototype.init=function(e,t){var n=new v$,r=new u3,i=this.group,a=new BF;this._controller=new f2(t.getZr()),a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=Z2(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&&J2(o,2,i,this._firstRender?null:e),_3(e.getGraph(),e3(e));var u=e.getData();c.updateData(u);var d=e.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),i&&e4(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),r3(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),$4(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`&&(cz(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(cz(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){PRe(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=Z2(t);!this._active||!r||(J2(this._mainGroup,2,r,null),ZFe(e)&&(this._updateNodeAndLinkScale(),_3(t.getGraph(),e3(t)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=e3(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(_3(e.getGraph(),e3(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=tze(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(I2(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new BF,o=n.group.children(),s=r.group.children(),c=new BF,l=new BF;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(zA(f.shape),{width:f.scaleX,height:f.scaleY,x:p-f.scaleX/2,y:m-f.scaleY/2}),g=zA(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=zA(v.style),h=zA(v.shape),y=new WRe({style:g,shape:h,z2:151});c.add(y)}i.bridge.renderContent({api:t,roamType:e.get(`roam`),viewportRect:null,group:a,targetTrans:I2(null,i.coordSys)})}},t.type=Z4,t}(cK),ize=_L(Z4,aze);function aze(e){var t=e.findComponents({mainType:`legend`});!t||!t.length||e.eachSeriesByType(Z4,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){aj(n)&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}var oze=_L(Z4,sze);function sze(e){var t={};e.eachSeriesByType(Z4,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){rj(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 cze(e){e.registerChartView(rze),e.registerSeriesModel(ERe),e.registerProcessor(ize),e.registerVisual(oze),e.registerVisual(DRe),e.registerLayout(ARe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,FRe),e.registerLayout(RRe),e.registerCoordinateSystem(`graphView`,{dimensions:P2.dimensions,create:VRe}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},jj),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},jj),n4(e,uz,Z4)}var v3=`chord`,lze=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 s0($A(this.getData,this),$A(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 G4(r,n,this,!0,i).data;function i(e,t){var n=jH.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),VG(`nameValue`,{name:c.join(` > `),value:r.value,noValue:r.value==null})}return VG(`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.`+v3,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}(tK),uze=function(e){X(t,e);function t(t,n,r){var i=e.call(this)||this;cz(i).dataType=`node`,i.z2=2;var a=new ZR;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(W1(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):mV(d,{shape:u},o,t);var f=Z(W1(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),cB(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),cB(d,s,`itemStyle`);var p=c.get(`focus`);aB(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=hH(t),u=n.getVisual(`style`);mH(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,gj(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}(HB);(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 dze=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;return cz(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(W1(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),fze(m,o,e,u)):(bV(m),fze(m,o,e,u),mV(m,{shape:p},a,n)),aB(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),cB(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(BR);function fze(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(rj(s)&&rj(c)){var l=e.shape;o.fill=new eV((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 pze=Math.PI/180,mze=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=v3,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`)*pze;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new uze(r,e,o);cz(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&yV(s,e,n);return}s?s.updateData(r,t,o):s=new uze(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&yV(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=sI(s[0],n.getWidth()),this.group.originY=sI(s[1],n.getHeight()),hV(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 dze(n,r,e,t);cz(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&&yV(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=v3,t}(cK),y3=Math.PI/180,hze=_L(v3,gze);function gze(e,t){e.eachSeriesByType(v3,function(e){_ze(e,t)})}function _ze(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=GU(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*y3,0),d=Math.max((e.get(`minAngle`)||0)*y3,0),f=-e.get(`startAngle`)*y3,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];TR(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 vze(e){e.registerChartView(mze),e.registerSeriesModel(lze),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,hze),e.registerProcessor(a0(`chord`))}var yze=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),bze=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 yze},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}(BR);function xze(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:sI(n[0],t.getWidth()),cy:sI(n[1],t.getHeight()),r:sI(e.get(`radius`),a/2)}}function b3(e,t){var n=e==null?``:e+``;return t&&(rj(t)?n=t.replace(`{value}`,n):nj(t)&&(n=t(e))),n}var Sze=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=xze(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`)?V1:HB,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];TR(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=sI(h.get(`length`),f),x=sI(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 qB({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=b3(uI(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:aj(L)&&(R=L*Math.PI/180),R===0?l.add(new ZR({style:gH(_,{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 ZR({style:gH(_,{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 qB({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=sI(r.get(`width`),i.r),o=sI(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=sI(c[0],i.r),u=sI(c[1],i.r),d=r.get(`keepAspect`),f=s?ZK(s,l-a/2,u-o,a,o,null,d):new bze({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`)?V1:HB,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=oI(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);hV(r,{rotation:-((isNaN(+n)?x[0]:oI(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);hV(i,{shape:{endAngle:oI(n,b,x,m.get(`clip`))}},e),l.add(i),lz(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,mV(s,{rotation:-((isNaN(+r)?x[0]:oI(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);mV(v,{shape:{endAngle:oI(r,b,x,m.get(`clip`))}},e),l.add(v),lz(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(oI(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 HR){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,cB(c,t),aB(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,cB(m,t),aB(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=ZK(i,t.cx-r/2+sI(a[0],t.r),t.cy-r/2+sI(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 BF,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new ZR({silent:!0}),f[e]=new ZR({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 BF,g=r(oI(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+sI(v[0],i.r),b=i.cy+sI(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:gH(_,{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+sI(C[0],i.r),T=i.cy+sI(C[1],i.r),E=sI(S.get(`width`),i.r),D=sI(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:gH(S,{x:w,y:T,text:b3(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),wH(x,{normal:S},a,function(e){return b3(e,k)}),p&&TH(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return b3(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}(cK),Cze=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 o0(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}(tK);function wze(e){e.registerChartView(Sze),e.registerSeriesModel(Cze)}var x3=`funnel`,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(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new s0($A(this.getData,this),$A(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return o0(this,{coordDimensions:[`value`],encodeDefaulter:ej(fW,this)})},t.prototype._defaultLabelLine=function(e){zI(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.`+x3,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}(tK),Eze=[`itemStyle`,`opacity`],Dze=function(e){X(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new KB,o=new ZR;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(Eze);c??=1,n||bV(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,hV(r,{style:{opacity:c}},i,t)):mV(r,{style:{opacity:c},shape:{points:o.points}},i,t),cB(r,a),this._updateLabel(e,t),aB(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;mH(i,hH(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 OM(d[0][0],d[0][1]):null},mV(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),AZ(n,jZ(o),{stroke:l})},t}(GB),Oze=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=x3,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 Dze(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){yV(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=x3,t}(cK);function kze(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 nj(t)?i.sort(t):t!==`none`&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}function Aze(e){var t=e.hostModel,n=Nze(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`);rj(i)&&(!n&&WA([`top`,`bottom`],i)>-1&&(i=`left`),n&&WA([`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 jze=_L(x3,Mze);function Mze(e,t){e.eachSeriesByType(x3,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=YU(e,t),o=KU(e.getBoxLayoutParams(),a.refContainer),s=Nze(e),c=o.width,l=o.height,u=kze(n,i),d=o.x,f=o.y,p=s?[sI(e.get(`minSize`),l),sI(e.get(`maxSize`),l)]:[sI(e.get(`minSize`),c),sI(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=oI(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=oI(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=sI(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=sI(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())})}}Aze(n)})}function Nze(e){return e.get(`orient`)===`horizontal`}function Pze(e){e.registerChartView(Oze),e.registerSeriesModel(Tze),e.registerLayout(jze),e.registerProcessor(a0(x3))}var Fze=.3,Ize=function(e){X(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new BF,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=Bze(e);a.diff(o).add(u).update(d).remove(f).execute();function u(e){S3(zze(a,i,e,c,s),a,e,l)}function d(t,n){var r=o.getItemGraphicEl(n);i.add(r);var u=Rze(a,t,c,s);a.setItemGraphicEl(t,r),mV(r,{shape:{points:u}},e,t),bV(r),S3(r,a,t,l)}function f(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(!this._initialized){this._initialized=!0;var p=Lze(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=zze(r,this._dataGroup,o,i.dimensions,i);s.incremental=hL(t),S3(s,r,o,Bze(t)),a.push(s)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type=`parallel`,t}(cK);function Lze(e,t,n){var r=e.model,i=e.getRect(),a=new qR({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),hV(a,{shape:{width:i.width,height:i.height}},t,n),a}function Rze(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);Vze(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function zze(e,t,n,r,i){var a=new KB({shape:{points:Rze(e,n,r,i)},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function Bze(e){var t=e.get(`smooth`,!0);return t===!0&&(t=Fze),t=EI(t),pj(t)&&(t=0),{smooth:t}}function S3(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`);cB(e,i,`lineStyle`),aB(e,a.get(`focus`),a.get(`blurScope`),a.get(`disabled`))}function Vze(e,t){return t===`category`?e==null:e==null||isNaN(e)}var Hze=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 xY(null,this,{useEncodeDefaulter:$A(Uze,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}(tK);function Uze(e){var t=e.ecModel.getComponent(`parallel`,e.get(`parallelIndex`));if(t){var n={};return Q(t.dimensions,function(e){n[e]=Wze(e)}),n}}function Wze(e){return+e.replace(`dim`,``)}var Gze=[`lineStyle`,`opacity`],Kze={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(Gze,!0);a!=null&&(i=a)}var o=t.ensureUniqueItemVisual(n,`style`);o.opacity=i},e.start,e.end)}}}};function qze(e){Jze(e),Yze(e)}function Jze(e){if(!e.parallel){var t=!1;Q(e.series,function(e){e&&e.type===`parallel`&&(t=!0)}),t&&(e.parallel=[{}])}}function Yze(e){Q(RI(e.parallelAxis),function(t){if(oj(t)){var n=t.parallelIndex||0,r=RI(e.parallel)[n];r&&r.parallelAxisDefault&&BA(t,r.parallelAxisDefault,!1)}})}var Xze=5,Zze=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(Qze,function(e,t){n.getZr().on(t,this._handlers[t]=$A(e,this))},this)),hK(this,`_throttledDispatchExpand`,e.get(`axisExpandRate`),`fixRate`)},t.prototype.dispose=function(e,t){gK(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}(aK),Qze={mousedown:function(e){C3(this,`click`)&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(C3(this,`click`)&&t){var n=[e.offsetX,e.offsetY];if((t[0]-n[0])**2+(t[1]-n[1])**2>Xze)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||!C3(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 C3(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var w3=`parallel`,T3=w3,$ze=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&&BA(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(XA(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=T3,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}(tW),eBe=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}(pZ);function E3(e,t,n,r,i,a){e||=0;var o=gI(n[1],-n[0]);if(i!=null&&(i=O3(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(gI(t[1],-t[0]));s=O3(s,[0,o]),i=a=O3(s,[i,a]),r=0}t[0]=O3(t[0],n),t[1]=O3(t[1],n);var c=D3(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=gI(u[0],l):u[1]=gI(u[1],-l),t[r]=O3(t[r],u);var d=D3(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=gI(t[r],c.sign*i)),d=D3(t,r),a!=null&&d.span>a&&(t[1-r]=gI(t[r],d.sign*a)),t}function D3(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 O3(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var tBe=function(){function e(e,t,n){this.type=w3,this._axesMap=Ej(),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=aX(a),s=this._axesMap.set(e,new eBe(e,oX(a,o,!1),[0,0],o,r));s.onBand=hX(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);FX(t,1),VX(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=YU(e,t).refContainer;this._rect=KU(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=k3(e.get(`axisExpandWidth`),s),u=k3(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=k3(f[1]-f[0],s),f[1]=f[0]+p):(p=k3(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||eI(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[eI(uI(f[0]/l,1))+1,tI(uI(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?rBe:nBe)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:aI/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=yM();wM(u,u,l),CM(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 LV([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return zA(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?E3(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[ZF(0,a[1]*o/f-f/2)],r[1]=XF(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function k3(e,t){return XF(ZF(e,t[0]),t[1])}function nBe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function rBe(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 iBe(e,t){var n=[];return e.eachComponent(T3,function(r,i){var a=new tBe(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(T3,QI).models[0].coordinateSystem;t&&Q(t.dimensions,function(n){EX(t.getAxis(n),e,w3)})}}),n}var aBe={create:iBe},A3=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 TL([[`fill`,`color`],[`lineWidth`,`borderWidth`],[`stroke`,`borderColor`],[`width`,`width`],[`opacity`,`opacity`]])(this.getModel(`areaSelectStyle`))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=zA(e);if(t)for(var n=t.length-1;n>=0;n--)dI(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}(tW);KA(A3,gX);var j3=!0,M3=Math.min,N3=Math.max,oBe=Math.pow,sBe=1e4,cBe=6,lBe=6,uBe=`globalPan`,dBe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},fBe={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},pBe={brushStyle:{lineWidth:2,stroke:$.color.backgroundTint,fill:$.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},mBe=0,P3=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 BF,n._uid=`brushController_`+mBe++,Q(PBe,function(e,t){this._handlers[t]=$A(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||IPe(t,uBe,this._uid),Q(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=BA(zA(pBe),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;LPe(e,uBe,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]=zA(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=JA(e,function(e){return BA(zA(pBe),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new XJ(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]:F3(i,r[t]=o==null?gBe(i,hBe(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),R3(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(tM);function hBe(e,t){var n=q3[t.brushType].createCover(e,t);return n.__brushOption=t,vBe(n,t),e.group.add(n),n}function gBe(e,t){var n=I3(t);return n.endCreating&&(n.endCreating(e,t),vBe(t,t.__brushOption)),t}function _Be(e,t){var n=t.__brushOption;I3(t).updateCoverShape(e,t,n.range,n)}function vBe(e,t){var n=t.z;n??=sBe,e.traverse(function(e){e.z=n,e.z2=n})}function F3(e,t){I3(t).updateCommon(e,t),_Be(e,t)}function I3(e){return q3[e.__brushOption.brushType]}function L3(e,t,n){var r=e._panels;if(!r)return j3;var i,a=e._transform;return Q(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function yBe(e,t){var n=e._panels;if(!n)return j3;var r=t.__brushOption.panelId;return r==null?j3:n[r]}function R3(e){var t=e._covers,n=t.length;return Q(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function z3(e,t){var n=JA(e._covers,function(e){var t=e.__brushOption,n=zA(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function bBe(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 oBe(i*i+a*a,.5)>cBe}function xBe(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function SBe(e,t,n,r){var i=new BF;return i.add(new qR({name:`main`,style:H3(n),silent:!0,draggable:!0,cursor:`move`,drift:ej(DBe,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:ej(z3,t,{isEnd:!0})})),Q(r,function(n){i.add(new qR({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ej(DBe,e,t,i,n),ondragend:ej(z3,t,{isEnd:!0})}))}),i}function CBe(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=N3(i,lBe),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;V3(e,t,`main`,o,s,m,h),r.transformable&&(V3(e,t,`w`,c,l,a,_),V3(e,t,`e`,f,l,a,_),V3(e,t,`n`,c,l,g,a),V3(e,t,`s`,c,p,g,a),V3(e,t,`nw`,c,l,a,a),V3(e,t,`ne`,f,l,a,a),V3(e,t,`sw`,c,p,a,a),V3(e,t,`se`,f,p,a,a))}function B3(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(H3(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?U3(e,n[0]):EBe(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?fBe[a]+`-resize`:null})})}function V3(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(ABe(W3(e,t,[[r,i],[r+a,i+o]])))}function H3(e){return UA({strokeNoScale:!0},e.brushStyle)}function wBe(e,t,n,r){var i=[M3(e,n),M3(t,r)],a=[N3(e,n),N3(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function TBe(e){return IV(e.group)}function U3(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[RV({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],TBe(e))]}function EBe(e,t){var n=[U3(e,t[0]),U3(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function DBe(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=kBe(t,i,a);Q(r,function(e){var t=dBe[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(wBe(s[0][0],s[1][0],s[0][1],s[1][1])),F3(t,n),z3(t,{isEnd:!1})}function OBe(e,t,n,r){var i=t.__brushOption.range,a=kBe(e,n,r);Q(i,function(e){e[0]+=a[0],e[1]+=a[1]}),F3(e,t),z3(e,{isEnd:!1})}function kBe(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 W3(e,t,n){var r=yBe(e,t);return r&&r!==j3?r.clipPath(n,e._transform):zA(n)}function ABe(e){var t=M3(e[0][0],e[1][0]),n=M3(e[0][1],e[1][1]),r=N3(e[0][0],e[1][0]),i=N3(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function jBe(e,t,n){if(!(!e._brushType||IBe(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=L3(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===j3||s.panelId===a.panelId)&&q3[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function G3(e){var t=e.event;t.preventDefault&&t.preventDefault()}function K3(e,t,n){return e.childOfName(`main`).contain(t,n)}function MBe(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),bBe(e)||i){if(a&&!i){o.brushMode===`single`&&R3(e);var c=zA(o);c.brushType=NBe(c.brushType,a),c.panelId=a===j3?null:a.panelId,i=e._creatingCover=hBe(e,c),e._covers.push(i)}if(i){var l=q3[NBe(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(W3(e,i,e._track)),r&&(gBe(e,i),l.updateCommon(e,i)),_Be(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&L3(e,t,n)&&R3(e)&&(s={isEnd:r,removeOnClick:!0});return s}function NBe(e,t){return e===`auto`?t.defaultBrushType:e}var PBe={mousedown:function(e){if(this._dragging)FBe(this,e);else if(!e.target||!e.target.draggable){G3(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=L3(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(jBe(this,e,r),this._dragging){G3(e);var i=MBe(this,e,r,!1);i&&z3(this,i)}},mouseup:function(e){FBe(this,e)}};function FBe(e,t){if(e._dragging){G3(t);var n=t.offsetX,r=t.offsetY,i=MBe(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&z3(e,i)}}function IBe(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var q3={lineX:LBe(0),lineY:LBe(1),rect:{createCover:function(e,t){function n(e){return e}return SBe({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=xBe(e);return wBe(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){CBe(e,t,n,r)},updateCommon:B3,contain:K3},polygon:{createCover:function(e,t){var n=new BF;return n.add(new KB({name:`main`,style:H3(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new GB({name:`main`,draggable:!0,drift:ej(OBe,e,t),ondragend:ej(z3,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:W3(e,t,n)})},updateCommon:B3,contain:K3}};function LBe(e){return{createCover:function(t,n){return SBe({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=xBe(t);return[M3(n[0][e],n[1][e]),N3(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=yBe(t,n);if(o!==j3&&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(),CBe(t,n,c,i)},updateCommon:B3,contain:K3}}function RBe(e){return e=J3(e),function(t){return VV(t,e)}}function zBe(e,t){return e=J3(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 BBe(e,t,n){var r=J3(e);return function(e,i){return r.contain(i[0],i[1])&&!d2(e,t,n)}}function J3(e){return VM.create(e)}var VBe=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 P3(n.getZr())).on(`brush`,$A(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!HBe(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new BF,this.group.add(this._axisGroup),e.get(`show`)){var a=WBe(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 f1(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),BV(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=VM.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:RBe(l),isTargetByCursor:BBe(l,a,r),getLinearBrushOtherExtent:zBe(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(UBe(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=JA(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}(aK);function HBe(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function UBe(e){var t=e.axis;return JA(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function WBe(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var GBe={type:`axisAreaSelect`,event:`axisAreaSelected`};function KBe(e){e.registerAction(GBe,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 qBe={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function JBe(e){e.registerComponentView(Zze),e.registerComponentModel($ze),e.registerCoordinateSystem(`parallel`,aBe),e.registerPreprocessor(qze),e.registerComponentModel(A3),e.registerComponentView(VBe),C0(e,`parallel`,A3,qBe),KBe(e)}function YBe(e){qJ(JBe),e.registerChartView(Ize),e.registerSeriesModel(Hze),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Kze)}var Y3=`sankey`,XBe=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 jH(i[o],this,t));return G4(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 VG(`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 VG(`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.`+Y3,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}(tK),ZBe=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}(),QBe=function(e){X(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ZBe},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(){Kz(this)},t.prototype.downplay=function(){qz(this)},t}(BR),$Be=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Y3,t._mainGroup=new BF,t}return t.prototype.init=function(e,t){this._controller=new f2(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getGraph(),i=this._mainGroup,a=e.layoutInfo,o=a.width,s=a.height,c=e.getData(),l=e.getData(`edge`),u=e.get(`orient`);i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(e,n),e4(e,n,this._controller,YFe(i),null),r.eachEdge(function(t){var n=new QBe,r=cz(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()),eVe(n.style,u,t);var k=``+a.get(`value`),A=hH(a,`edgeLabel`);mH(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,gj(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=a.getModel(`emphasis`);cB(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return eVe(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);aB(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 qR({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});mH(f,hH(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),cB(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),cz(f).dataType=`node`;var p=u.get(`focus`);aB(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(tVe(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){J2(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=r4(e,t,n.x,n.y,n.width,n.height);J2(this.group,2,r,this._firstRender?null:e)},t.type=Y3,t}(cK);function eVe(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`);rj(r)&&rj(i)&&(e.fill=new eV(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function tVe(e,t,n){var r=new qR({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return hV(r,{shape:{width:e.width+20}},t,n),r}var nVe=_L(Y3,rVe);function rVe(e,t){e.eachSeriesByType(Y3,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=YU(e,t).refContainer,a=KU(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;aVe(l),iVe(l,u,n,r,o,s,XA(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function iVe(e,t,n,r,i,a,o,s,c){oVe(e,t,n,i,a,s,c),dVe(e,t,a,i,r,o,s),bVe(e,s)}function aVe(e){Q(e,function(e){var t=$3(e.outEdges,Q3),n=$3(e.inEdges,Q3),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function oVe(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=WA(t,y);s[b]=0;var x=y.node2,S=WA(e,x);--c[S]===0&&WA(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`&&cVe(e,o,a,C),uVe(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function sVe(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function cVe(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];WA(i,u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}Q(e,function(e){sVe(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else t===`justify`&&lVe(e,r)}function lVe(e,t){Q(e,function(e){!sVe(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function uVe(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 dVe(e,t,n,r,i,a,o){var s=fVe(e,o);pVe(s,t,n,r,i,o),X3(s,i,n,r,o);for(var c=1;a>0;a--)c*=.99,mVe(s,c,o),X3(s,i,n,r,o),yVe(s,c,o),X3(s,i,n,r,o)}function fVe(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=nL(e,function(e){return e.getLayout()[r]});return dI(i.keys),Q(i.keys,function(e){n.push(i.buckets.get(e))}),n}function pVe(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 X3(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 mVe(e,t,n){Q(e.slice().reverse(),function(e){Q(e,function(e){if(e.outEdges.length){var r=$3(e.outEdges,hVe,n)/$3(e.outEdges,Q3);if(isNaN(r)){var i=e.outEdges.length;r=i?$3(e.outEdges,gVe,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-Z3(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Z3(e,n))*t;e.setLayout({y:o},!0)}}})})}function hVe(e,t){return Z3(e.node2,t)*e.getValue()}function gVe(e,t){return Z3(e.node2,t)}function _Ve(e,t){return Z3(e.node1,t)*e.getValue()}function vVe(e,t){return Z3(e.node1,t)}function Z3(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Q3(e){return e.getValue()}function $3(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 yVe(e,t,n){Q(e,function(e){Q(e,function(e){if(e.inEdges.length){var r=$3(e.inEdges,_Ve,n)/$3(e.inEdges,Q3);if(isNaN(r)){var i=e.inEdges.length;r=i?$3(e.inEdges,vVe,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-Z3(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-Z3(e,n))*t;e.setLayout({y:o},!0)}}})})}function bVe(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 xVe=_L(Y3,SVe);function SVe(e){e.eachSeriesByType(Y3,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 M4({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 CVe(e){e.registerChartView($Be),e.registerSeriesModel(XBe),e.registerLayout(nVe),e.registerVisual(xVe),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:uz,subType:Y3,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),n4(e,uz,Y3)}var wVe=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;tj(e)?(n=e.slice(),e.unshift(t)):tj(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:QJ(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:f,type:QJ(h),dimsDef:v.slice()}];return o0(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:ej(dW,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 e6(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 t6=`boxplot`,TVe=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.`+t6,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}(tK);KA(TVe,wVe,!0);var EVe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=t6,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&&j$(c,!1,e);r.diff(a).add(function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=s?e6(l,t):0;if(n===2)return;var a=kVe(t,r,e,o,!0);M$(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?e6(l,c):0;if(d===2){i.remove(n);return}n?(bV(n),AVe(c,n,r,e)):n=kVe(c,r,e,o),M$(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=t6,t}(cK),DVe=function(){function e(){}return e}(),OVe=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 DVe},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}(BR);function kVe(e,t,n,r,i){var a=e.ends,o=new OVe({shape:{points:i?jVe(a,r,e):a}});return AVe(e,o,t,n,i),o}function AVe(e,t,n,r,i){var a=n.hostModel,o=xV[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`);cB(t,s),aB(t,c.get(`focus`),c.get(`blurScope`),c.get(`disabled`))}function jVe(e,t,n){return JA(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}var MVe=pL(),NVe=_L(t6,PVe);function PVe(e){var t=w1(t6);CX(e,t,function(e){var n=gAe(e,t);if(n){var r=FVe(e,n);xX(e,t,function(e){var t=e.seriesIndex;IVe(e,r.boxOffsetList[t],r.boxWidthList[t])})}})}function FVe(e,t){var n=[],r=[],i=[],a=dZ(e,{fromStat:{key:w1(t6)},min:1}).w;xX(e,w1(t6),function(e){var t=e.get(`boxWidth`);tj(t)||(t=[t,t]),i[e.seriesIndex]=[sI(t[0],a)||0,sI(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 xX(e,w1(t6),function(e){var t=e.seriesIndex;r[t]=l,l+=s+c,n[t]=XF(ZF(c,i[t][0]),i[t][1])}),{boxOffsetList:r,boxWidthList:n}}function IVe(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 LVe(e){MVe(e,function(){var t=w1(t6);OX(e,{key:t,seriesType:t6,getMetrics:E1}),LX(t,C1(t))})}function RVe(e,t){t||={};for(var n=[],r=[],i=t.boundIQR,a=i===`none`||i===0,o=0;o<e.length;o++){var s=dI(e[o].slice()),c=wI(s,.25),l=wI(s,.5),u=wI(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,_=nj(g)?g({value:o}):rj(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 zVe={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&PI(``);var n=RVe(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function BVe(e){e.registerSeriesModel(TVe),e.registerChartView(EVe),e.registerLayout(NVe),e.registerTransform(zVe),LVe(e)}var n6=`candlestick`,VVe=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.`+n6,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}(tK);KA(VVe,wVe,!0);var HVe=[`itemStyle`,`borderColor`],UVe=[`itemStyle`,`borderColor0`],WVe=[`itemStyle`,`borderColorDoji`],GVe=[`itemStyle`,`color`],KVe=[`itemStyle`,`color0`];function r6(e,t){return t.get(e>0?GVe:KVe)}function i6(e,t){return t.get(e===0?WVe:e>0?HVe:UVe)}var qVe={seriesType:n6,plan:oK(),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=r6(i,r),a.stroke=i6(i,r)||a.fill,Z(t.ensureUniqueItemVisual(n,`style`),a)}}}}},JVe=[`color`,`borderColor`],YVe=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){QV(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&&j$(o,!1,e);this._data||r.removeAll();var l=$Ve(e);t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n),u=a?e6(s,o):0;if(u===2)return;var d=a6(o,n,l,!0);hV(d,{shape:{points:o.ends}},e,n),M$(u===1,d,c),o6(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?e6(s,f):0;if(p===2){r.remove(d);return}d?(mV(d,{shape:{points:f.ends}},e,o),bV(d)):d=a6(f,o,l),o6(d,t,o,i),M$(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(),tHe(e,this.group);var t=e.get(`clip`,!0)?j$(e.coordinateSystem,!1,e):null;M$(!!t,this.group,t)},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i=$Ve(t),a;(a=e.next())!=null;){var o=a6(n.getItemLayout(a),a,i);o6(o,n,a,r),o.incremental=hL(t),this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){tHe(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),M$(!1,this.group,null),this._data=null},t.type=n6,t}(cK),XVe=function(){function e(){}return e}(),ZVe=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 XVe},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}(BR);function a6(e,t,n,r){var i=e.ends;return new ZVe({shape:{points:r?QVe(i,n,e):i},z2:100})}function o6(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,cB(e,i);var o=t.getItemLayout(n).sign;Q(e.states,function(e,t){var n=i.getModel(t),r=r6(o,n),a=i6(o,n)||r,s=e.style||={};r&&(s.fill=r),a&&(s.stroke=a)});var s=i.getModel(`emphasis`);aB(e,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}function QVe(e,t,n){return JA(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function $Ve(e){return+(e.getWhiskerBoxesLayout()===`horizontal`)}var eHe=function(){function e(){}return e}(),s6=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 eHe},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}(BR);function tHe(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new s6({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new s6({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new s6({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),c6(1,o,e,i),c6(-1,s,e,i),c6(0,c,e,i),r&&(o.incremental=hL(e),s.incremental=hL(e),c.incremental=hL(e)),n&&n.push(o,s,c)}function c6(e,t,n,r){var i=i6(e,n)||r6(e,n),a=n.getModel(`itemStyle`).getItemStyle(JVe);t.useStyle(a),t.style.fill=null,t.style.stroke=i;var o=n.get(`cursor`);o&&t.attr(`cursor`,o)}function nHe(e){!e||!tj(e.series)||Q(e.series,function(e){oj(e)&&e.type===`k`&&(e.type=n6)})}var rHe=pL(),iHe={seriesType:n6,plan:oK(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=oHe(e,n),i=e.getWhiskerBoxesLayout()===`horizontal`?0:1,a=1-i,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=JA(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=XF(m,h),y=ZF(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:aHe(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]=FV(a[i]+r/2,1,!1),o[i]=FV(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]=FV(e[i],1),e}}function m(n,r){for(var o=S$(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++]=aHe(_,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 aHe(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 oHe(e,t){var n=dZ(e.getBaseAxis(),{fromStat:{key:w1(n6)},min:1}).w,r=sI(hj(e.get(`barMaxWidth`),n),n),i=sI(hj(e.get(`barMinWidth`),1),n),a=e.get(`barWidth`);return a==null?ZF(XF(n/2,r),i):sI(a,n)}function sHe(e){rHe(e,function(){var t=w1(n6);OX(e,{key:t,seriesType:n6,getMetrics:E1}),LX(t,C1(t))})}function cHe(e){e.registerChartView(YVe),e.registerSeriesModel(VVe),e.registerPreprocessor(nHe),e.registerVisual(qVe),e.registerLayout(iHe),sHe(e)}function lHe(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 uHe=function(e){X(t,e);function t(t,n){var r=e.call(this)||this,i=new p$(t,n),a=new BF;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=ZK(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)}lHe(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}}lHe(n,e)},t.prototype.highlight=function(){Kz(this)},t.prototype.downplay=function(){qz(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=QK(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=$K(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,aB(this,u.get(`focus`),u.get(`blurScope`),u.get(`disabled`))},t.prototype.fadeOut=function(e){e&&e()},t}(BF),dHe=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 v$(uHe)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,fHe(e)),this.group.add(i.group)},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=Y$(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(fHe(e))},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=DM(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type=`effectScatter`,t}(cK);function fHe(e){return{clipShape:N$(e)}}var pHe=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 xY(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}(tK);function mHe(e){e.registerChartView(dHe),e.registerSeriesModel(pHe),e.registerLayout(Y$(`effectScatter`))}var hHe=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 l3(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel(`effect`),r=n.get(`symbolSize`),i=n.get(`symbol`);tj(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=ZK(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=mj(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=nj(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 qj(e.__p1,e.__cp1)+qj(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=jN,c=MN;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=qj(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*qj(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}(BF),gHe=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 KB({shape:{points:e.getItemLayout(t)}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;mV(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,aB(this,o,s,c)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.stopAnimation(),n.setShape(`points`,e.getItemLayout(t))},t}(BF),_He=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 gHe(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+=qj(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}(hHe),vHe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),yHe=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 vHe},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(DR(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(OR(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(DR(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 VM(n,r,i,a)}return e},t}(BR),bHe=function(){function e(){this.group=new BF}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 yHe({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=cz(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}(),xHe={seriesType:`lines`,plan:oK(),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)}}}}}},SHe=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=!!uH(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)&&j$(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(),hL(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=xHe.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 bHe:new u3(i?r?_He:gHe:r?hHe:l3),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=uH(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}(cK),CHe=typeof Uint32Array>`u`?Array:Uint32Array,wHe=typeof Float64Array>`u`?Array:Float64Array;function THe(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=JA(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),VA([t,e[0],e[1]])}))}var EHe=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||[],THe(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(THe(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=Dj(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Dj(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),aj(e[0])){for(var n=e.length,r=new CHe(n),i=new wHe(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 hY([`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 VG(`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}(tK);function l6(e){return e instanceof Array||(e=[e,e]),e}var DHe={seriesType:`lines`,reset:function(e){var t=l6(e.get(`symbol`)),n=l6(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=l6(n.getShallow(`symbol`,!0)),i=l6(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 OHe(e){e.registerChartView(SHe),e.registerSeriesModel(EHe),e.registerLayout(xHe),e.registerVisual(DHe)}var kHe=256,AHe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=EA.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*(kHe-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||=EA.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 jHe(e,t,n){var r=e[1]-e[0];t=JA(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 MHe(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 NHe=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()):F$(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&&(F$(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){QV(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=P$(a,`cartesian2d`),s=P$(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=dZ(f).w+.5,l=dZ(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=hH(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 qR({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(pj(M.x))continue;D=new qR({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(pj(M.x)||pj(M.y))continue;D=new qR({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=hH(P)}D.shape.r=y;var I=e.getRawValue(E),L=`-`;I&&I[2]!=null&&(L=I[2]+``),mH(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,aB(D,S,C,w),D.incremental=hL(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new AHe;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`?MHe(v,n.option.range):jHe(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 HR({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(cK),PHe=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 xY(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=NU.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}(tK);function FHe(e){e.registerChartView(NHe),e.registerSeriesModel(PHe)}var IHe=[`itemStyle`,`borderWidth`],LHe=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],u6=new kB,RHe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=D1,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:LHe[+s],categoryDim:LHe[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=zHe(i,e,YHe(i,e),l),n=QHe(i,l,t);i.setItemGraphicEl(e,n),r.add(n),nUe(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=zHe(i,e,YHe(i,e),l),s=tUe(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?$He(n,l,o):n=QHe(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),nUe(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&eUe(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?j$(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){eUe(r,cz(t).dataIndex,e,t)}):n.removeAll()},t.type=D1,t}(cK);function zHe(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};BHe(n,a,i,r,d),VHe(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),HHe(n,d.symbolScale,c,r,d);var f=d.symbolSize;return UHe(n,f,i,a,o,$K(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function BHe(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(tj(o)){var d=[d6(s,o[0])-c,d6(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]:d6(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 d6(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function VHe(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=tj(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=sI(m[d.index],f),m[u.index]=sI(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 HHe(e,t,n,r,i){var a=e.get(IHe)||0;a&&(u6.attr({scaleX:t[0],scaleY:t[1],rotation:n}),u6.updateTransform(),a/=u6.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function UHe(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=mj(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=sI(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=DI(r),w=C?r:rUe((_+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?rUe((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 WHe(e){var t=e.symbolPatternSize,n=ZK(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function GHe(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(f6(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?p6(e,null,m(u),n,r):p6(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<l;u++){var f=WHe(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var p=m(u);p6(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 KHe(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?p6(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=WHe(n),i.add(a),p6(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 qHe(e,t,n){var r=Z({},t.barRectShape),i=e.__pictorialBarRect;i?p6(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new qR({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function JHe(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)mV(i,{shape:a},s,c);else{a[o.wh]=0,i=new qR({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],xV[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function YHe(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=XHe,n.isAnimationEnabled=ZHe,n}function XHe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function ZHe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function QHe(e,t,n,r){var i=new BF,a=new BF;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?GHe(i,t,n):KHe(i,t,n),qHe(i,n,r),JHe(i,t,n,r),i.__pictorialShapeStr=tUe(e,n),i.__pictorialSymbolMeta=n,i}function $He(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;mV(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?GHe(e,t,n,!0):KHe(e,t,n,!0),qHe(e,n,!0),JHe(e,t,n,!0)}function eUe(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];f6(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Q(a,function(e){_V(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function tUe(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function f6(e,t,n){Q(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function p6(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&xV[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function nUe(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`);f6(e,function(e){if(e instanceof HR){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,mH(m,hH(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:d$(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),aB(e,u,d,a.get(`disabled`))}function rUe(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var iUe=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.`+D1,t.dependencies=[`grid`],t.defaultOption=NH(B1.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}(B1);function aUe(e){e.registerChartView(RHe),e.registerSeriesModel(iUe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,I1(D1)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,L1(D1)),z1(e)}var m6=2,h6=`themeRiver`,oUe=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 s0($A(this.getData,this),$A(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=nL(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`,QI).models[0].get(`type`),r=XA(e.data,function(e){return e[2]!==void 0}),i=this.fixData(r||[]),a=[],o=this.nameMap=Ej(),s=0,c=0;c<i.length;++c)a.push(i[c][m6]),o.get(i[c][m6])||(o.set(i[c][m6],s),s++);var l=gY(i,{coordDimensions:[`single`],dimensionsDefine:[{name:`time`,type:QJ(n)},{name:`value`,type:`float`},{name:`name`,type:`ordinal`}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new hY(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=nL(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){tj(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 VG(`nameValue`,{name:r.getName(e),value:r.get(r.mapDimension(`value`),e)})},t.type=`series.`+h6,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}(tK),sUe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=h6,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 XJ(this._layersSeries||[],o,u,u),f=[];d.add($A(p,this,`add`)).update($A(p,this,`update`)).remove($A(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 BF;y=new O$({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(y),a.add(C),e.isAnimationEnabled()&&y.setClipPath(cUe(y.getBoundingRect(),e,function(){y.removeClipPath()}))}else{var C=c[s];y=C.childAt(0),a.add(C),f[n]=C,mV(y,{shape:{points:l,stackedOnPoints:u}},e),bV(y)}mH(y,hH(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),cB(y,e),aB(y,S.get(`focus`),S.get(`blurScope`),S.get(`disabled`))}this._layersSeries=o,this._layers=f},t.type=h6,t}(cK);function cUe(e,t,n){var r=new qR({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return hV(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var lUe=_L(h6,uUe);function uUe(e,t){e.eachSeriesByType(h6,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]=sI(a[0],i.height),a[1]=sI(a[1],i.height),dUe(t,e,i.height-a[0]-a[1])):(a[0]=sI(a[0],i.width),a[1]=sI(a[1],i.width),dUe(t,e,i.width-a[0]-a[1])),t.setLayout(`layoutInfo`,r)})}function dUe(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension(`single`),o=e.mapDimension(`value`),s=JA(i,function(t){return JA(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(o,t),n})}),c=fUe(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 fUe(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 pUe(e){e.registerChartView(sUe),e.registerSeriesModel(oUe),e.registerLayout(lUe),e.registerProcessor(a0(h6))}var mUe=2,hUe=4,gUe=function(e){X(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=mUe,a.textConfig={inside:!0},cz(a).seriesIndex=n.seriesIndex;var o=new ZR({z2:hUe,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;cz(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=Dq(d,i)),Z(l,W1(o.getModel(`itemStyle`),l,!0)),Q(Tz,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=W1(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,hV(a,{shape:{r:c.r}},n,t.dataIndex)):(mV(a,{shape:l},n),bV(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`?Dj(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;aB(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(Ez,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=gH(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=AR(w===`tangential`?Math.PI/2-o:o),O=D>T&&!yI(D-T)&&D<E;v===`outside`?(x=i.r+S,C=O?`right`:`left`):!C||C===`center`?(x=i.r0===0&&yI(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=AR(-o)+(O?Math.PI:0):w===`tangential`?k=AR(Math.PI/2-o)+(O?Math.PI:0):aj(w)&&(k=w*Math.PI/180),h.rotation=AR(k)});function p(e,t){return e.get(t)??r.get(t)}u.dirtyStyle()},t}(HB),g6=`sunburst`,_Ue=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};vUe(n);var r=this._levelModels=JA(e.levels||[],function(e){return new jH(e,this,t)},this),i=h4.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=v4(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(){hLe(this)},t.type=`series.`+g6,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}(tK);function vUe(e){var t=0;Q(e.children,function(e){vUe(e);var n=e.value;tj(n)&&(n=n[0]),t+=n});var n=e.value;tj(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),tj(e.value)?e.value[0]=n:e.value=n}var _6=`sunburstRootToNode`,yUe=`sunburstHighlight`,bUe=`sunburstUnhighlight`;function xUe(e){e.registerAction({type:_6,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},n);function n(t,n){var r=g4(e,[_6],t);if(r){var i=t.getViewRoot();i&&(e.direction=_4(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}}),e.registerAction({type:yUe,update:`none`},function(e,t,n){e=Z({},e),t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},r);function r(t){var n=g4(e,[yUe],t);n&&(e.dataIndex=n.node.dataIndex)}n.dispatchAction(Z(e,{type:`highlight`}))}),e.registerAction({type:bUe,update:`updateView`},function(e,t,n){e=Z({},e),n.dispatchAction(Z(e,{type:`downplay`}))})}var SUe=function(e){X(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=g6,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 XJ(t,e,n,n).add(r).update(r).remove(ej(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 gUe(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 gUe(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&&AU(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:_6,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=g6,t}(cK),CUe=_L(g6,wUe);function wUe(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&&rj(a)&&(a=$N(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(g6,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 TUe=Math.PI/180,EUe=_L(g6,DUe);function DUe(e,t){e.eachSeriesByType(g6,function(e){var n=e.get(`center`),r=e.get(`radius`);tj(r)||(r=[0,r]),tj(n)||(n=[n,n]);var i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a),s=sI(n[0],i),c=sI(n[1],a),l=sI(r[0],o/2),u=sI(r[1],o/2),d=-e.get(`startAngle`)*TUe,f=e.get(`minAngle`)*TUe,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&OUe(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=sI(_,o/2)),x!=null&&(m=sI(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 OUe(e,t){var n=e.children||[];e.children=kUe(n,t),n.length&&Q(e.children,function(e){OUe(e,t)})}function kUe(e,t){if(nj(t)){var n=JA(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)}),JA(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 AUe(e){e.registerChartView(SUe),e.registerSeriesModel(_Ue),e.registerLayout(EUe),e.registerVisual(CUe),xUe(e)}var jUe={color:`fill`,borderColor:`stroke`},MUe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},v6=YI(),NUe=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 xY(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=v6(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}(tK);function PUe(e,t){return t||=[0,0],JA([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?dZ(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function FUe(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:$A(PUe,e)}}}function IUe(e,t){return t||=[0,0],JA([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 LUe(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:SFe(t)},api:{coord:function(t){return e.dataToPoint(t)},size:$A(IUe,e)}}}function RUe(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`?dZ(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function zUe(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:$A(RUe,e)}}}function BUe(e,t){return t||=[0,0],JA([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?dZ(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function VUe(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:$A(BUe,e)}}}function HUe(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 UUe(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 WUe={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},GUe=QA(WUe);YA(mF,function(e,t){return e[t]=1,e},{}),mF.join(`, `);var y6=[``,`style`,`shape`,`extra`],b6=YI();function x6(e,t,n,r,i){var a=e+`Animation`,o=fV(e,r,i)||{},s=b6(t).userDuring;return o.duration>0&&(o.during=s?$A(ZUe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Z(o,n[a]),o}function S6(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=b6(e),l=t.style;c.userDuring=t.during;var u={},d={};if(eWe(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];E6(`shape`,h,f[m])}else E6(`shape`,t,d),E6(`extra`,t,d);if(!a&&s&&($Ue(e,t,u),QUe(`shape`,e,t,u),QUe(`extra`,e,t,u),tWe(e,t,l,u)),d.style=l,qUe(e,d,o),YUe(e,t),s)if(a){var g={};Q(y6,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),Z(e?g[e]:g,n.enterFrom))});var _=x6(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else JUe(e,t,i||0,n,u);KUe(e,t),l?e.dirty():e.markRedraw()}function KUe(e,t){for(var n=b6(e).leaveToProps,r=0;r<y6.length;r++){var i=y6[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=b6(e).leaveToProps={},i&&(n[i]=n[i]||{}),Z(i?n[i]:n,a.leaveTo))}}function C6(e,t,n,r){if(e){var i=e.parent,a=b6(e).leaveToProps;if(a){var o=x6(`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 w6(e){return e===`all`}function qUe(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 JUe(e,t,n,r,i){if(i){var a=x6(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function YUe(e,t){Aj(t,`silent`)&&(e.silent=t.silent),Aj(t,`ignore`)&&(e.ignore=t.ignore),e instanceof qL&&Aj(t,`invisible`)&&(e.invisible=t.invisible),e instanceof BR&&Aj(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var T6={},XUe={setTransform:function(e,t){return T6.el[e]=t,this},getTransform:function(e){return T6.el[e]},setShape:function(e,t){var n=T6.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=T6.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=T6.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=T6.el.style;if(t)return t[e]},setExtra:function(e,t){var n=T6.el.extra||(T6.el.extra={});return n[e]=t,this},getExtra:function(e){var t=T6.el.extra;if(t)return t[e]}};function ZUe(){var e=this,t=e.el;if(t){var n=b6(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}T6.el=t,r(XUe)}}function QUe(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]={}),w6(c))Z(o,a);else for(var l=RI(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(w6(s)||WA(s,e)>=0){!o&&(o=r[e]={});for(var p=QA(a),u=0;u<p.length;u++){var d=p[u],f=a[d];nWe(i[d],f)&&(o[d]=f)}}}}}function E6(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=QA(r),o=0;o<a.length;o++){var s=a[o];i[s]=DP(r[s])}}function $Ue(e,t,n){for(var r=t.transition,i=w6(r)?mF:RI(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function eWe(e,t,n){for(var r=0;r<GUe.length;r++){var i=GUe[r],a=WUe[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<mF.length;r++){var s=mF[r];t[s]!=null&&(n[s]=t[s])}}function tWe(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!w6(o)){var c=RI(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&&(w6(s)||w6(o)||WA(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=QA(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function nWe(e,t){return qA(e)?e!==t:e!=null&&isFinite(e)}var rWe=YI(),iWe=[`percent`,`easing`,`shape`,`style`,`extra`];function aWe(e){e.stopAnimation(`keyframe`),e.attr(rWe(e))}function D6(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(tj(t)){Q(t,function(t){D6(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=fV(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=rWe(e);Q(y6,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=QA(c);if(n||(l=XA(l,function(e){return WA(iWe,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 O6=`emphasis`,k6=`normal`,A6=`blur`,j6=`select`,M6=[k6,O6,A6,j6],N6={normal:[`itemStyle`],emphasis:[O6,`itemStyle`],blur:[A6,`itemStyle`],select:[j6,`itemStyle`]},P6={normal:[`label`],emphasis:[O6,`label`],blur:[A6,`label`],select:[j6,`label`]},oWe=[`x`,`y`],sWe=`e\0\0`,F6={normal:{},emphasis:{},blur:{},select:{}},cWe={cartesian2d:FUe,geo:LUe,single:zUe,polar:VUe,calendar:HUe,matrix:UUe};function I6(e){return e instanceof BR}function L6(e){return e instanceof qL}function lWe(e,t){t.copyTransform(e),L6(t)&&L6(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,I6(t)&&I6(e)&&t.setShape(e.shape))}var 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.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=mWe(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){B6(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&C6(n,v6(n).option,e)}).update(function(t,c){B6(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?j$(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=mWe(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=hL(t),e.ensureState(`emphasis`).hoverLayer=2)}for(var l=e.start;l<e.end;l++){var u=B6(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){QV(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}(cK);function R6(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=EWe(r);n=kV(a,null,i,r.layout||`center`),v6(n).customPathData=a}else if(t===`image`)n=new HR({}),v6(n).customImagePath=e.style.image;else if(t===`text`)n=new ZR({});else if(t===`group`)n=new BF;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;PI(o)}n=new QB({shape:{paths:JA(r.paths,function(e){if(e.type===`path`)return kV(e.shape.pathData,e,null);var t=OV(e.type);return t||PI(``),new t})}})}else{var s=OV(t);if(!s){var o=``;PI(o)}n=new s}return v6(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function z6(e,t,n,r,i,a,o){aWe(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=oWe);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;Aj(l,`textFill`)&&(l.fill=l.textFill),Aj(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=I6(t)?c.decal:null;e&&d&&(d.dirty=!0,u=Dq(d,e)),c.__decalPattern=u}if(L6(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}S6(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),D6(t,r.keyframeAnimation,a)}function dWe(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),Uz(a)}}function fWe(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<M6.length;s++)pWe(r,t,M6[s])}}function pWe(e,t,n){var r=n===k6,i=r?t:H6(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function mWe(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=bOe(i);a&&(i=a)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):cWe[o.type](o));for(var c=UA({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:hWe(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<M6.length;g++){var _=M6[g];m[_]=e.getModel(N6[_]),h[_]=e.getModel(P6[_])}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(N6[n])):v(e).getModel(N6[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(P6[n])):v(e).getModel(P6[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(UA({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,k6).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:rj(a)?a:$.color.neutral99},l=b(r,k6),d=gH(l,null,c,!1,!0);d.text=l.getShallow(`show`)?hj(e.getFormattedLabel(r,k6),d$(t,r)):null;var f=_H(l,c,!1);return E(n,s),s=z$(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,O6).getItemStyle(),a=b(r,O6),o=gH(a,null,null,!0,!0);o.text=a.getShallow(`show`)?gj(e.getFormattedLabel(r,O6),e.getFormattedLabel(r,k6),d$(t,r)):null;var s=_H(a,null,!0);return E(n,i),i=z$(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)Aj(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,Aj(jUe,e)){var r=t.getItemVisual(n,`style`);return r?r[jUe[e]]:null}if(Aj(MUe,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return mNe(UA({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return SH(e,n)}}function hWe(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 B6(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=V6(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&aB(s,r.focus,r.blurScope,r.emphasisDisabled),s}function V6(e,t,n,r,i,a){var o=-1,s=t;t&&gWe(t,r,i)&&(o=WA(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=R6(r),s&&lWe(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),F6.normal.cfg=F6.normal.conOpt=F6.emphasis.cfg=F6.emphasis.conOpt=F6.blur.cfg=F6.blur.conOpt=F6.select.cfg=F6.select.conOpt=null,F6.isLegacy=!1,vWe(l,n,r,i,c,F6),_We(l,n,r,i,c),z6(e,l,n,r,F6,i,c),Aj(r,`info`)&&(v6(l).info=r.info);for(var u=0;u<M6.length;u++){var d=M6[u];if(d!==k6){var f=H6(r,d),p=U6(r,f,d);dWe(d,l,f,p,F6)}}return fWe(l,r,i),r.type===`group`&&bWe(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function gWe(e,t,n){var r=v6(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&DWe(a)&&EWe(a)!==r.customPathData||i===`image`&&Aj(o,`image`)&&o.image!==r.customImagePath}function _We(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&&gWe(o,a,r)&&(o=null),o||(o=R6(a),e.setClipPath(o)),z6(null,o,t,a,null,r,i)}}function vWe(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){yWe(n,null,a),yWe(n,O6,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=R6(o),e.setTextContent(u)),z6(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<M6.length;f++){var p=M6[f];if(p!==k6){var m=a[p].conOpt;dWe(p,u,m,U6(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function yWe(e,t,n){var r=t?H6(e,t):e,i=t?U6(e,r,O6):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?H6(s,t):s:null;if(i&&(n.isLegacy||I$(i,a,!!o,!!c))){n.isLegacy=!0;var l=L$(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 H6(e,t){return t?e?e[t]:null:e}function U6(e,t,n){var r=t&&t.style;return r==null&&n===O6&&e&&(r=e.styleEmphasis),r}function bWe(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){SWe({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,V6(e,f,n,d,i,t)):f.ignore=!0}for(var p=t.childCount()-1;p>=u;p--)xWe(t,t.childAt(p),i)}}function xWe(e,t,n){t&&C6(t,v6(e).option,n)}function SWe(e){new XJ(e.oldChildren,e.newChildren,CWe,CWe,e).add(wWe).update(wWe).remove(TWe).execute()}function CWe(e,t){return(e&&e.name)??sWe+t}function wWe(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];V6(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function TWe(e){var t=this.context,n=t.oldChildren[e];n&&C6(n,v6(n).option,t.seriesModel)}function EWe(e){return e&&(e.pathData||e.d)}function DWe(e){return e&&(Aj(e,`pathData`)||Aj(e,`d`))}function OWe(e){e.registerChartView(uWe),e.registerSeriesModel(NUe)}var W6=YI(),kWe=zA,G6=$A,K6=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 BF,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ej(AWe,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}NWe(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&&dZ(r).w>o)return!0;if(a){var s=R0(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=W6(e).pointerEl=new xV[i.type](kWe(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=W6(e).labelEl=new ZR(kWe(t.label));e.add(i),MWe(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=W6(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=W6(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),MWe(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=UV(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){hM(e.event)},onmousedown:G6(this._onHandleDragMove,this,0,0),drift:G6(this._onHandleDragMove,this),ondragend:G6(this._onHandleDragEnd,this)}),n.add(r)),NWe(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);tj(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,hK(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){AWe(this._axisPointerModel,!t&&this._moveAnimation,this._handle,q6(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(q6(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(q6(r)),W6(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),gK(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 AWe(e,t,n,r){jWe(W6(n).lastProp,r)||(W6(n).lastProp=r,t?mV(n,r,e):(n.stopAnimation(),n.attr(r)))}function jWe(e,t){if(oj(e)&&oj(t)){var n=!0;return Q(t,function(t,r){n&&=jWe(e[r],t)}),!!n}else return e===t}function MWe(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function q6(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function NWe(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 J6(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 PWe(e,t,n,r,i){var a=IWe(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=SU(o.get(`padding`)||0),c=o.getFont(),l=CF(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),FWe(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:gH(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function FWe(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 IWe(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:cX(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)}),rj(o)?a=o.replace(`{value}`,a):nj(o)&&(a=o(s))}return a}function Y6(e,t,n){var r=yM();return wM(r,r,n.rotation),CM(r,r,n.position),LV([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function LWe(e,t,n,r,i,a){var o=f1.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),PWe(t,r,i,a,{position:Y6(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function X6(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function RWe(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function zWe(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}function Z6(e,t,n){return dZ(e,{fromStat:{sers:JA(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function Q6(e,t,n){return[ZF(XF(t[0],t[1]),e-n/2),XF(e+n/2,ZF(t[0],t[1]))]}var BWe=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=VWe(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=J6(r),f=HWe[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}LWe(t,e,x1(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=x1(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=Y6(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=VWe(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=XF(o[1],l[c]),l[c]=ZF(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}(K6);function VWe(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var HWe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:X6([t,r[0]],[t,r[1]],UWe(e))}},shadow:function(e,t,n,r,i,a){var o=Z6(e,i,a),s=r[1]-r[0],c=Q6(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:RWe([l,r[0]],[u-l,s],UWe(e))}}};function UWe(e){return e.dim===`x`?0:1}var WWe=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}(tW),$6=YI(),GWe=Q;function KWe(e,t,n){if(!TA.node){var r=t.getZr();$6(r).records||($6(r).records={}),qWe(r,t);var i=$6(r).records[e]||($6(r).records[e]={});i.handler=n}}function qWe(e,t){if($6(e).initialized)return;$6(e).initialized=!0,n(`click`,ej(e8,`click`)),n(`mousemove`,ej(e8,`mousemove`)),n(`mousewheel`,ej(e8,`mousewheel`)),n(`globalout`,YWe);function n(n,r){e.on(n,function(n){var i=XWe(t);GWe($6(e).records,function(e){e&&r(e,n,i.dispatchAction)}),JWe(i.pendings,t)})}}function JWe(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 YWe(e,t,n){e.handler(`leave`,null,n)}function e8(e,t,n,r){t.handler(e,n,r)}function XWe(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 t8(e,t){if(!TA.node){var n=t.getZr();($6(n).records||{})[e]&&($6(n).records[e]=null)}}var ZWe=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`;KWe(`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){t8(`axisPointer`,t)},t.prototype.dispose=function(e,t){t8(`axisPointer`,t)},t.type=`axisPointer`,t}(aK);function QWe(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=JI(a,e);if(o==null||o<0||tj(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(JA(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 $We=YI();function eGe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||$A(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){n8(i)&&(i=QWe({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=n8(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||n8(i),f={},p={},m={list:[],map:{}},h={showPointer:ej(rGe,p),showTooltip:ej(iGe,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=cGe(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&tGe(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,lGe(t),lGe(e)))),g[e.key]=a}})}),Q(g,function(e,t){tGe(u[t],e,h,!0,f)}),aGe(p,u,f),oGe(m,i,e,o),sGe(u,o,n),f}}function tGe(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=nGe(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 nGe(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(jI(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 rGe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function iGe(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=B0(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 aGe(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 oGe(e,t,n,r){if(n8(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 sGe(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=$We(r)[i]||{},o=$We(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 cGe(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 lGe(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 n8(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function r8(e){H0.registerAxisPointerClass(`CartesianAxisPointer`,BWe),e.registerComponentModel(WWe),e.registerComponentView(ZWe),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!tj(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=sPe(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},eGe)}function uGe(e){qJ(Y0),qJ(r8)}var dGe=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=J6(r),f=pGe[u](a,o,l,s,c,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}PWe(e,n,r,i,fGe(t,n,r,o,r.get([`label`,`margin`])))},t}(K6);function fGe(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=yM();wM(f,f,s),CM(f,f,[r.cx,r.cy]),l=LV([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=f1.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 pGe={line:function(e,t,n,r,i){return e.dim===`angle`?{type:`Line`,shape:X6(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=Z6(e,a,o),l;if(e.dim===`angle`)l=zWe(t.cx,t.cy,i[0],i[1],(-n-c/2)*s,(-n+c/2)*s);else{var u=Q6(n,r,c),d=u[0],f=u[1];l=zWe(t.cx,t.cy,d,f,0,Math.PI*2)}return{type:`Sector`,shape:l}}},i8=`polar`,mGe=i8,hGe=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=i8,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(tW),a8=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,QI).models[0]},t.type=`polarAxis`,t}(tW);KA(a8,gX);var gGe=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}(a8),_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.type=`radiusAxis`,t}(a8),o8=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}(pZ);o8.prototype.dataToRadius=pZ.prototype.dataToCoord,o8.prototype.radiusToData=pZ.prototype.coordToData;var vGe=YI(),s8=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=CF(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=vGe(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}(pZ);s8.prototype.dataToAngle=pZ.prototype.dataToCoord,s8.prototype.angleToData=pZ.prototype.coordToData;var yGe=[`radius`,`angle`],bGe=function(){function e(e){this.dimensions=yGe,this.type=i8,this.cx=0,this.cy=0,this._radiusAxis=new o8,this._angleAxis=new s8,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 xGe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return xGe(t)===this?this.pointToData(n):null},e}();function xGe(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function SGe(e,t,n){var r=t.get(`center`),i=YU(t,n).refContainer;e.cx=sI(r[0],i.width)+i.x,e.cy=sI(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%`]:tj(s)||(s=[0,s]);var c=[sI(s[0],o),sI(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function CGe(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(FX(r,1),FX(i,1),VX(r),VX(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 wGe(e){return e.mainType===`angleAxis`}function TGe(e,t){if(e.type=aX(t),e.scale=oX(t,e.type,!1),e.onBand=hX(e.scale,t),e.inverse=t.get(`inverse`),wGe(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 EGe={dimensions:yGe,create:function(e,t){var n=[];return e.eachComponent(mGe,function(e,r){var i=new bGe(r+``);i.update=CGe;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);TGe(a,s),TGe(o,c),SGe(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(mGe,QI).models[0].coordinateSystem;t&&(EX(t.getRadiusAxis(),e,i8),EX(t.getAngleAxis(),e,i8))}}),n}},DGe=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function c8(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 l8(e){return+!e.getRadiusAxis().inverse}function OGe(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 kGe=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=zA(e);var t=n.scale;e.coord=n.dataToCoord(mX(t,e.tick)),s.push(e)}}),OGe(s),OGe(a),Q(DGe,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&AGe[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(H0),AGe={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=l8(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new xV[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 UB({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[l8(n)],l=JA(r,function(e){return new qB({shape:c8(n,[c,c+s],e.coord)})});e.add(MV(l,{style:UA(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[l8(n)],u=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)u.push(new qB({shape:c8(n,[l,l+c],i[d][f].coord)}));e.add(MV(u,{style:UA(s.getModel(`lineStyle`).getLineStyle(),UA(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[l8(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];oj(v)&&v.textStyle&&(o=new jH(v.textStyle,c,c.ecModel))}var y=new ZR({silent:f1.isLabelSilent(t),style:gH(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),XV({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=f1.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,cz(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 qB({shape:c8(n,a,r[u].coord)}))}for(var u=0;u<l.length;u++)e.add(MV(l[u],{style:UA({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 qB({shape:c8(n,a,i[c][l].coord)}));e.add(MV(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 HB({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(MV(l[h],{style:UA({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},jGe=[`splitLine`,`splitArea`,`minorSplitLine`],MGe=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 BF;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 f1(e,n,PGe(o,e,u));f.build(),i.add(f.group),BV(r,i,e),Q(jGe,function(t){e.get([t,`show`])&&!a.scale.isBlank()&&NGe[t](this.group,e,o,u,d,c,l)},this)}},t.type=`radiusAxis`,t}(H0),NGe={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 xV[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(MV(p[m],{style:UA({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 kB({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(MV(c,{style:UA({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 HB({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(MV(l[d],{style:UA({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function PGe(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 FGe=pL();function IGe(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}var LGe=_L(`bar`,RGe);function RGe(e){var t=T1(`bar`,i8);CX(e,t,function(e){var n=BGe(e,`bar`),r={};xX(e,t,function(t){zGe(e,t,n,r)})})}function zGe(e,t,n,r){var i=t.getData(),a=IGe(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),_=yY(i,h),v=e.dim!==`radius`||!t.get(`roundCap`,!0),y=u.dataToCoord(k1(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);QF(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);QF(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*aI/180,endAngle:-k*aI/180,clockwise:O>=k})}}function BGe(e,t){var n=T1(t,i8),r=dZ(e,{fromStat:{key:n},min:1}).w,i=r,a=0,o=`20%`,s=`30%`,c={};xX(e,n,function(e){var t=IGe(e);c[t]||a++,c[t]=c[t]||{width:0,maxWidth:0};var n=sI(e.get(`barWidth`),r),l=sI(e.get(`barMaxWidth`),r),u=e.get(`barGap`),d=e.get(`barCategoryGap`);n&&!c[t].width&&(n=XF(i,n),c[t].width=n,i-=n),l&&(c[t].maxWidth=l),u!=null&&(s=u),d!=null&&(o=d)});var l={},u=sI(o,r),d=sI(s,1),f=(i-u)/(a+(a-1)*d);f=ZF(f,0),Q(c,function(e,t){var n=e.maxWidth;n&&n<f&&(n=XF(n,i),e.width&&(n=XF(n,e.width)),i-=n,e.width=n,a--)}),f=(i-u)/(a+(a-1)*d),f=ZF(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 VGe(e,t){FGe(e,function(){var n=T1(t,i8);O1(e,n,t,i8),LX(n,C1(n))})}var HGe={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},UGe={splitNumber:5},WGe=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}(aK);function GGe(e){qJ(r8),H0.registerAxisPointerClass(`PolarAxisPointer`,dGe),e.registerCoordinateSystem(`polar`,EGe),e.registerComponentModel(hGe),e.registerComponentView(WGe),C0(e,`angle`,gGe,HGe),C0(e,`radius`,_Ge,UGe),e.registerComponentView(kGe),e.registerComponentView(MGe),e.registerLayout(LGe),VGe(e,`bar`)}function u8(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),mj(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 KGe=[`splitArea`,`splitLine`,`breakArea`],qGe=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 BF;var s=new f1(t,r,u8(t));s.build(),a.add(this._axisGroup),a.add(s.group),Q(KGe,function(e){t.get([e,`show`])&&JGe[e](this,this.group,this._axisGroup,t,r)},this),BV(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){G0(this)},t.type=`singleAxis`,t}(H0),JGe={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 qB({shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},silent:!0});PV(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(MV(f[_],{style:UA({stroke:c[_%c.length]},x),silent:!0}))}},splitArea:function(e,t,n,r,i){W0(e,n,r,r)},breakArea:function(e,t,n,r,i){var a=$$(),o=r.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,r,r.coordinateSystem.getRect(),i)}},YGe=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}(pZ),XGe=[`single`],ZGe=function(){function e(e,t,n){this.type=X0,this.dimension=`single`,this.dimensions=XGe,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=aX(e),a=new YGe(r,oX(e,i,!0),[0,0],i,e.get(`position`));a.onBand=hX(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;FX(n,1),VX(n)},e.prototype.resize=function(e,t){var n=YU(e,t).refContainer;this._rect=KU(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 QGe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return QGe(t)===this?this.pointToData(n):null},e}();function QGe(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function $Ge(e,t){var n=[];return e.eachComponent(Z0,function(r,i){var a=new ZGe(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(Z0,QI).models[0],n=e.coordinateSystem=t&&t.coordinateSystem;n&&EX(n.getAxis(),e,X0)}}),n}var eKe={create:$Ge,dimensions:XGe},tKe=[`x`,`y`],nKe=[`width`,`height`],rKe=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=d8(a),c=f8(o,s),l=f8(o,1-s),u=o.dataToPoint(t)[0],d=r.get(`type`);if(d&&d!==`none`){var f=J6(r),p=iKe[d](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);p.style=f,e.graphicKey=p.type,e.pointer=p}LWe(t,e,u8(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=u8(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=Y6(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=d8(i),s=f8(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=f8(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}(K6),iKe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:X6([t,r[0]],[t,r[1]],d8(e))}},shadow:function(e,t,n,r,i,a){var o=Z6(e,i,a),s=r[1]-r[0],c=Q6(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:RWe([l,r[0]],[u-l,s],d8(e))}}};function d8(e){return+!e.isHorizontal()}function f8(e,t){var n=e.getRect();return[n[tKe[t]],n[tKe[t]]+n[nKe[t]]]}var aKe=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}(aK);function oKe(e){qJ(r8),H0.registerAxisPointerClass(`SingleAxisPointer`,rKe),e.registerComponentView(aKe),e.registerComponentView(qGe),e.registerComponentModel(Q0),C0(e,`single`,Q0,Q0.defaultOption),e.registerCoordinateSystem(`single`,eKe)}var sKe=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=$U(t);e.prototype.init.apply(this,arguments),cKe(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),cKe(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}(tW);function cKe(e,t){var n=e.cellSize,r=tj(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),QU(e,t,{type:`box`,ignoreSize:JA([0,1],function(e){return IEe(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var lKe=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 qR({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 KB({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 rj(e)&&e?DU(e,t):nj(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 ZR({z2:30,style:gH(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||rj(a))&&(a&&(t=VH(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 ZR({z2:30,style:Z(gH(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||rj(c))&&(c&&(t=VH(c)||t),c=t.get([`time`,`dayOfWeekShort`])||JA(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=sI(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 ZR({z2:30,style:Z(gH(a,{text:c[_]}),this._weekTextPositionControl(g,r,s,l,f)),silent:p});i.add(v)}}},t.type=`calendar`,t}(aK),p8=864e5,uKe=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=bI(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=KU(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||=[],tj(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+p8))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,VM.copy(i,r),qV(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=m8(t);return r===this?r.dataToPoint(n):null},e.prototype.convertToLayout=function(e,t,n){var r=m8(t);return r===this?r.dataToLayout(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=m8(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(tj(e)&&e.length===1&&(e=e[0]),tj(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/p8)-Math.floor(t[0].time/p8)+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){LU({targetModel:t,coordSysType:`calendar`,coordSysProvider:RU})}),r},e.dimensions=[`time`,`value`],e}();function m8(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function dKe(e){e.registerComponentModel(sKe),e.registerComponentView(lKe),e.registerCoordinateSystem(`calendar`,uKe)}var h8={level:1,leaf:2,nonLeaf:3},g8={none:0,all:1,body:2,corner:3};function _8(e,t,n){var r=t[CV[n]].getCell(e);return!r&&aj(e)&&e<0&&(r=t[CV[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function fKe(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 pKe(e,t,n,r,i){mKe(e[0],t,i,n,r,0),mKe(e[1],t,i,n,r,1)}function mKe(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=tj(o)?o:[o],c=s.length,l=!!n;if(c>=1?(hKe(e,t,s,l,i,a,0),c>1&&hKe(e,t,s,l,i,a,c-1)):e[0]=e[1]=NaN,l){var u=-i[CV[1-a]].getLocatorCount(a),d=i[CV[a]].getLocatorCount(a)-1;n===g8.body?u=ZF(0,u):n===g8.corner&&(d=XF(-1,d)),d<u&&(u=d=NaN),pj(e[0])&&(e[0]=u),pj(e[1])&&(e[1]=d),e[0]=ZF(XF(e[0],d),u),e[1]=ZF(XF(e[1],d),u)}}function hKe(e,t,n,r,i,a,o){var s=_8(n[o],i,a);if(!s){e[0]=e[1]=NaN;return}var c=s.id[CV[a]],l=c,u=CKe(s);u&&(l+=u.span[CV[a]]-1),e[0]=XF(e[0],c,l),e[1]=ZF(e[1],c,l)}function v8(e,t){return pj(e[t][0])||pj(e[t][1])}function gKe(e,t,n,r){t||=_Ke;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&&vKe(e,o.locatorRange)&&(t[i]=!0,a=!0)}if(!a)break}}var _Ke=[];function vKe(e,t){return!yKe(e[0],t[0])||!yKe(e[1],t[1])?!1:(e[0][0]=XF(e[0][0],t[0][0]),e[0][1]=ZF(e[0][1],t[0][1]),e[1][0]=XF(e[1][0],t[1][0]),e[1][1]=ZF(e[1][1],t[1][1]),!0)}function yKe(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function bKe(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 xKe(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 SKe(e,t,n,r){var i=_8(t[r][0],n,r),a=_8(t[r][1],n,r);e[CV[r]]=e[wV[r]]=NaN,i&&a&&(e[CV[r]]=i.xy,e[wV[r]]=a.xy+a.wh-i.xy)}function y8(e,t,n,r){return e[CV[t]]=n,e[CV[1-t]]=r,e}function CKe(e){return e&&(e.type===h8.leaf||e.type===h8.nonLeaf)?e:null}function b8(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var wKe=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=TKe(e);var n=t.get(`data`,!0),r=t.get(`length`,!0);if(n!=null&&!tj(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;rj(e)?u={value:e}:oj(e)?(u=e,e.value!=null&&!rj(e.value)&&(u={value:null})):u={value:null};var d={type:h8.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new OM,span:y8(new OM,t.dimIdx,1,1),option:u,xy:NaN,wh:NaN,dim:t,rect:b8()};a++,(i[n]||(i[n]=[])).push(d),r[s]||(r[s]={type:h8.level,xy:NaN,wh:NaN,option:null,id:new OM,dim:t});var f=o(u.children,n,s+1),p=Math.max(1,f);d.span[CV[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 WY({ordinalMeta:t._ordinalMeta=new CY({categories:e,needCollect:!1,deduplication:!1})});for(var c=0;c<t._leavesCount;c++){var l=t._cells[c];l.type=h8.leaf,l.span[CV[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:h8.level,xy:NaN,wh:NaN,option:null,id:new OM,dim:e}],e._initLevelIdOptions(),e._scale=new WY({ordinalMeta:e._ordinalMeta=new CY({needCollect:!0,deduplication:!0,onCollect:function(t,n){var r=e._cells[n]={type:h8.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new OM,span:y8(new OM,e.dimIdx,1,1),option:{value:t+``},xy:NaN,wh:NaN,dim:e,rect:b8()};e._leavesCount++,e._setCellId(r)}})})},e.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;y8(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){y8(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=tj(n)?n:[],Q(this._levels,function(r,i){y8(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 iL,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 iL).reset(this._cells,0)},e.prototype.resetLevelIterator=function(e){return(e||new iL).reset(this._levels,0)},e.prototype.getLayout=function(e,t,n){var r=this.getUnitLayoutInfo(t,n);e[CV[t]]=r?r.xy:NaN,e[wV[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 pj(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 TKe(e){var t=e.toUpperCase(),n=RegExp(`^`+t+`([0-9]+)$`),r=0;function i(e){var t;e!=null&&(t=e.match(n))&&(r=ZF(r,+t[1]+1))}function a(){return``+t+r++}function o(e,t){for(var n=Ej(),r=0;r<e.length;r++){var i=e[r];(i==null||n.get(i)!=null)&&(e[r]=i=a(),t[r].option=UA({value:i},t[r].option)),n.set(i,!0)}}return{calcDupBase:i,ensureValueUnique:o}}var EKe=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=Ej(),n()),t;function n(){var t=[],n=e._model.getShallow(`data`);n&&!tj(n)&&(n=null),Q(n,function(n,r){if(!(!oj(n)||!tj(n.coord))){var i=fKe([]);if(pKe(i,null,n.coord,e._dims,n.coordClamp?g8[e._kind]:g8.none),!(v8(i,0)||v8(i,1))){var a=n&&n.mergeCells,o={id:new OM,span:new OM,locatorRange:i,option:n,cellMergeOwner:a};bKe(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;gKe(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 OM,span:new OM,locatorRange:s,option:l,cellMergeOwner:!0};bKe(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=b8(),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=DKe(e,n),i=t.get(r);return i||=t.set(r,{id:new OM(e,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1}),i}},e.prototype.getCell=function(e){return this._ensureCellMap().get(DKe(e[0],e[1]))},e.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},e.prototype.expandRangeByCellMerge=function(e){if(!v8(e,0)&&!v8(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){x8[0]=e[0][0],x8[1]=e[1][0];var t=this.getCell(x8),n=t&&t.inSpanOf;if(n){xKe(e,n.locatorRange);return}}var r=this._cellMergeOwnerList;gKe(e,null,r,r.length)},e}(),x8=[];function DKe(e,t){return e+`|`+t}var S8={show:!0,color:$.color.secondary,overflow:`break`,lineOverflow:`truncate`,padding:[2,3,2,3],distance:0};function C8(e){return{color:`none`,borderWidth:1,borderColor:e?`none`:$.color.borderTint}}var OKe={show:!0,label:S8,itemStyle:C8(!1),silent:void 0,dividerLineStyle:{width:1,color:$.color.border}},kKe={z:-50,left:`10%`,top:`10%`,right:`10%`,bottom:`10%`,x:OKe,y:OKe,body:{label:S8,itemStyle:C8(!1),silent:void 0},corner:{label:S8,itemStyle:C8(!0),silent:void 0},backgroundStyle:{color:`none`,borderColor:$.color.axisLine,borderWidth:1},triggerEvent:!1},AKe=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 jKe(this.get(`x`,!0)||{}),y:new jKe(this.get(`y`,!0)||{})};e.x.option.type=e.y.option.type=`category`;var t={x:e.x.dim=new wKe(`x`,e.x),y:e.y.dim=new wKe(`y`,e.y)};this._body=new EKe(`body`,new jH(this.getShallow(`body`)),t),this._corner=new EKe(`corner`,new jH(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=kKe,t}(tW),jKe=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}(jH),w8=Math.round,MKe=0,NKe=99,PKe={normal:25,special:100},FKe={normal:50,special:125},IKe=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;LKe(n,e,t),RKe(n,e,o,s,t);var c=hj(e.getShallow(`borderZ2`,!0),NKe),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=k8(r.clone(),u,MKe),p=k8(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(BKe({x1:r.x,y1:h.xy,x2:r.x+r.width,y2:h.xy},i.getModel(`dividerLineStyle`).getLineStyle(),l)),s.shouldShow()&&n.add(BKe({x1:m.xy,y1:r.y,x2:m.xy,y2:r.y+r.height},a.getModel(`dividerLineStyle`).getLineStyle(),l)))},t.type=`matrix`,t}(aK);function LKe(e,t,n){r(0),r(1);function r(r){var i=t.getDimensionModel(CV[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={};VM.copy(f,d.rect),Rj(l,d.id.x,d.id.y),zKe(l,t,e,n,d.option,o,s,i,f,d.option.value,FKe,c,r===0?`x`:`y`)}}}function RKe(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 jH(t.getShallow(n,!0)),c=s.getModel(`itemStyle`),l=s.getModel(`label`),u=new iL,d=new iL,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;Rj(f,m.id.x,h.id.y);var g=r.getCell(f);if(!(g&&g.inSpanOf&&g.inSpanOf!==g)){var _={};g&&g.span?VM.copy(_,g.spanRect):(m.dim.getLayout(_,0,f[0]),h.dim.getLayout(_,1,f[1]));var v=g?g.option:null;zKe(f,t,e,i,v,c,l,s,_,v?v.value:null,PKe,p,n)}}}}function zKe(e,t,n,r,i,a,o,s,c,l,u,d,f){E8.option=i?i.itemStyle:null,E8.parentModel=a,T8.option=i,T8.parentModel=s;var p=hj(T8.getShallow(`z2`),i&&i.itemStyle?u.special:u.normal),m=d&&d.show,h=k8(c,E8.getItemStyle(),p);n.add(h);var g=T8.get(`cursor`);g!=null&&h.attr(`cursor`,g);var _;if(l!=null){var v=l+``;D8.option=i?i.label:null,D8.parentModel=o,D8.ecModel=r;var y=D8.getShallow(`formatter`);if(y){var b={componentType:`matrix`,componentIndex:t.componentIndex,name:v,value:l,coord:e.slice(),$vars:[`name`,`value`,`coord`]};if(rj(y))v=DU(y,b);else if(nj(y)){var x=y(b);x!=null&&(v=x+``)}}if(mH(h,{normal:D8},{defaultText:v,autoOverflowArea:!0,layoutRect:zA(h.shape)}),_=h.getTextContent(),_){_.z2=p+1;var S=_.style;if(S&&S.overflow&&S.overflow!==`none`&&S.lineOverflow){var C={};VM.copy(C,c),qV(C,(h.style?.lineWidth||0)/2,!0,!0),h.updateInnerText(),_.getLocalTransform(O8),EM(O8,O8),VM.applyTransform(C,C,O8),_.setClipPath(new qR({shape:C}))}}XV({el:h,componentModel:t,itemName:v,itemTooltipOption:d,formatterParamsExtra:{xyLocator:e.slice()}})}var w=t.get(`triggerEvent`,!0);if(_){var T=D8.get(`silent`);T??=!(w||m),_.silent=T,_.ignoreHostSilent=!0}var E=T8.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()};cz(h).eventData=D}aL(T8),aL(E8),aL(D8)}var T8=new jH,E8=new jH,D8=new jH,O8=[];function k8(e,t,n){var r=t.lineWidth;if(r){var i=e.x+e.width,a=e.y+e.height;e.x=KR(e.x,r,!0),e.y=KR(e.y,r,!0),e.width=KR(i,r,!0)-e.x,e.height=KR(a,r,!0)-e.y}return new qR({shape:e,style:t,z2:n})}function BKe(e,t,n){var r=t.lineWidth;return r&&(w8(e.x1*2)===w8(e.x2*2)&&(e.x1=e.x2=KR(e.x1,r,!0)),w8(e.y1*2)===w8(e.y2*2)&&(e.y1=e.y2=KR(e.y1,r,!0))),new qB({shape:e,style:t,silent:!0,z2:n})}var VKe=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){LU({targetModel:t,coordSysType:`matrix`,coordSysProvider:RU})}),r},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(e,t){var n=this._dims,r=this._dimModels,i=this._rect=KU(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});HKe(r,n,i,0),HKe(r,n,i,1),UKe(0,n),UKe(1,n),WKe(this._model.getBody(),n),WKe(this._model.getCorner(),n)},e.prototype.dataToPoint=function(e,t,n){return n||=[],this.dataToLayout(e,t,A8),n[0]=A8.rect.x+A8.rect.width/2,n[1]=A8.rect.y+A8.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=fKe(n.matrixXYLocatorRange);return tj(e)?(pKe(a,null,e,r,hj(t&&t.clamp,g8.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==g8.corner)&&this._model.getBody().expandRangeByCellMerge(a),(!t||t.clamp!==g8.body)&&this._model.getCorner().expandRangeByCellMerge(a)),SKe(i,a,r,0),SKe(i,a,r,1),n):n},e.prototype.pointToData=function(e,t,n){var r=this._dims;return KKe(L8,0,r,e,t&&t.clamp),KKe(L8,1,r,e,t&&t.clamp),n||=[],n[0]=n[1]=NaN,L8.y===I8.inCorner&&L8.x===I8.inBody?qKe(L8,n,0,r):L8.x===I8.inCorner&&L8.y===I8.inBody?qKe(L8,n,1,r):(JKe(L8,n,0,r),JKe(L8,n,1,r)),n},e.prototype.convertToPixel=function(e,t,n,r){var i=F8(t);return i===this?i.dataToPoint(n,r):void 0},e.prototype.convertToLayout=function(e,t,n,r){var i=F8(t);return i===this?i.dataToLayout(n,r):void 0},e.prototype.convertFromPixel=function(e,t,n,r){var i=F8(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}(),A8={rect:b8()},j8=new iL,M8=new iL;function HKe(e,t,n,r){for(var i=1-r,a=t[CV[r]],o=t[CV[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[wV[r]],d=a.getLocatorCount(r)+o.getLocatorCount(r),f=new jH,p=o.resetLevelIterator();p.next();)f.option=p.item.option,f.parentModel=e[CV[i]],g(p.item,s?f.get(`levelSize`):0);for(var m=new jH,h=a.resetCellIterator();h.next();)h.item.type===h8.leaf&&(m.option=h.item.option,m.parentModel=void 0,g(h.item,m.get(`size`)));function g(e,t){var i=GKe(t,r,n);pj(i)||(e.wh=P8(i,u),u=P8(u-e.wh),d--)}var _=d?u/d:0,v=!d&&u>=1,y=n[CV[r]],b=a.getLocatorCount(r)-1,x=new iL;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){pj(e.wh)&&(e.wh=_),e.xy=y,e.id[CV[r]]===b&&!v&&(e.wh=n[CV[r]]+n[wV[r]]-e.xy),y+=e.wh}}function UKe(e,t){for(var n=t[CV[e]].resetCellIterator();n.next();){var r=n.item;N8(r.rect,e,r.id,r.span,t),N8(r.rect,1-e,r.id,r.span,t),r.type===h8.nonLeaf&&(r.xy=r.rect[CV[e]],r.wh=r.rect[wV[e]])}}function WKe(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;N8(r,0,i,n,t),N8(r,1,i,n,t)}})}function N8(e,t,n,r,i){e[wV[t]]=0;var a=n[CV[t]]<0?i[CV[1-t]]:i[CV[t]],o=a.getUnitLayoutInfo(t,n[CV[t]]);if(e[CV[t]]=o.xy,e[wV[t]]=o.wh,r[CV[t]]>1){var s=a.getUnitLayoutInfo(t,n[CV[t]]+r[CV[t]]-1);e[wV[t]]=s.xy+s.wh-o.xy}}function GKe(e,t,n){return P8(cI(e,n[wV[t]]),n[wV[t]])}function P8(e,t){return Math.max(Math.min(e,hj(t,1/0)),0)}function F8(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var I8={inBody:1,inCorner:2,outside:3},L8={x:null,y:null,point:[]};function KKe(e,t,n,r,i){var a=n[CV[t]],o=n[CV[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[CV[t]]=I8.outside;return}if(i===g8.body){c?(e[CV[t]]=I8.inBody,d=XF(s.xy+s.wh,ZF(c.xy,d)),e.point[t]=d):e[CV[t]]=I8.outside;return}else if(i===g8.corner){u?(e[CV[t]]=I8.inCorner,d=XF(u.xy+u.wh,ZF(l.xy,d)),e.point[t]=d):e[CV[t]]=I8.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[CV[t]]=I8.outside;return}d=p}else if(d>m){if(!i){e[CV[t]]=I8.outside;return}d=m}e.point[t]=d,e[CV[t]]=f<=d&&d<=m?I8.inBody:p<=d&&d<=f?I8.inCorner:I8.outside}function qKe(e,t,n,r){var i=1-n;if(e[CV[n]]!==I8.outside)for(r[CV[n]].resetCellIterator(M8);M8.next();){var a=M8.item;if(XKe(e.point[n],a.rect,n)&&XKe(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[CV[i]];return}}}function JKe(e,t,n,r){if(e[CV[n]]!==I8.outside){for((e[CV[n]]===I8.inCorner?r[CV[1-n]]:r[CV[n]]).resetLayoutIterator(j8,n);j8.next();)if(YKe(e.point[n],j8.item)){t[n]=j8.item.id[CV[n]];return}}}function YKe(e,t){return t.xy<=e&&e<=t.xy+t.wh}function XKe(e,t,n){return t[CV[n]]<=e&&e<=t[CV[n]]+t[wV[n]]}function ZKe(e){e.registerComponentModel(AKe),e.registerComponentView(IKe),e.registerCoordinateSystem(`matrix`,VKe)}function QKe(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 $Ke(e,t){var n;return Q(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function eqe(e,t,n){var r=Z({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(BA(i,r,!0),QU(i,r,{ignoreSize:!0}),eW(n,i),R8(n,i),R8(n,i,`shape`),R8(n,i,`style`),R8(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var tqe=[`transition`,`enterFrom`,`leaveTo`],nqe=tqe.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function R8(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?tqe:nqe,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function rqe(e,t){if(e&&(e.hv=t.hv=[$Ke(t,[`left`,`right`]),$Ke(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var iqe=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=HI(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];Q(o,function(e,t){var n=e.newOption;n&&(s.push(n),QKe(e,n),eqe(i,t,n),rqe(i[t],n))},this),n.elements=XA(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}(tW),aqe={path:null,compoundPath:null,group:BF,image:HR,text:ZR},z8=YI(),oqe=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=Ej()},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=GI(t.id,null),s=o==null?null:n.get(o),c=GI(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&&I$(d,u,!!p,!!f)){var m=L$(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=lqe(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=sqe(o,l,t.type,n):(b&&(z8(b).isNew=!1),aWe(b)),b&&(S6(b,h,e,{isInit:y}),cqe(b,t,i,a))}else if(v){V8(s,t,n,e);var x=sqe(o,l,t.type,n);x&&(S6(x,h,e,{isInit:!0}),cqe(x,t,i,a))}else g===`remove`&&(KUe(s,t),V8(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new ZR(f))}else v&&S.setTextContent(new ZR(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||z8(D).type!==T,E=y?B8(T):D}else v&&(y=!0,E=B8(T));S.setClipPath(E),S6(E,w,e,{isInit:y}),D6(E,w.keyframeAnimation,e)}var O=z8(S);S.setTextConfig(p),O.option=t,uqe(S,e,t),XV({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),D6(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=GI(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=z8(d),h=z8(f);m.width=sI(m.option.width,p?a:h.width)||0,m.height=sI(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=GI(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=z8(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=XU(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!z8(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(w6(y)||WA(y,S)>=0)?b[S]=C:d[S]=C}mV(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){V8(n,z8(n).option,t,e._lastGraphicModel)}),this._elMap=Ej()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(aK);function B8(e){var t=new(Aj(aqe,e)?aqe[e]:OV(e))({});return z8(t).type=e,t}function sqe(e,t,n,r){var i=B8(n);return t.add(i),r.set(e,i),z8(i).id=e,z8(i).isNew=!0,i}function V8(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){V8(e,t,n,r)}),C6(e,t,r),n.removeKey(z8(e).id))}function cqe(e,t,n,r){e.isGroup||Q([[`cursor`,qL.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];Aj(t,r)?e[r]=hj(t[r],n[1]):e[r]??(e[r]=n[1])}),Q(QA(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=nj(r)?r:null}}),Aj(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function lqe(e){return e=Z({},e),Q([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(BU),function(t){delete e[t]}),e}function uqe(e,t,n){var r=cz(e).eventData;!e.silent&&!e.ignore&&!r&&(r=cz(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function dqe(e){e.registerComponentModel(iqe),e.registerComponentView(oqe),e.registerPreprocessor(function(e){var t=e.graphic;tj(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var fqe=[`x`,`y`,`radius`,`angle`,`single`],pqe=YI(),mqe=[`cartesian2d`,`polar`,`singleAxis`];function hqe(e){return WA(mqe,e.get(`coordinateSystem`))>=0}function H8(e){return e+`Axis`}function gqe(e,t){var n=Ej(),r=[],i=Ej();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 _qe(e){var t=e.ecModel,n={infoList:[],infoMap:Ej()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(H8(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 vqe(e){var t=pqe(JK(e));return t.axisProxyMap||=Ej()}function U8(e){if(e)return vqe(e.ecModel).get(e.uid)}function yqe(e,t){vqe(e.ecModel).set(e.uid,t)}function bqe(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?U8(n.model):null}var W8=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}(),G8=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=xqe(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=xqe(e);BA(this.option,e,!0),BA(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=Ej();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(fqe,function(n){var r=this.getReferringComponents(H8(n),uwe);if(r.specified){t=!0;var i=new W8;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 W8;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,QI).models[0];o&&Q(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,QI).models[0]&&a.add(e.componentIndex)})}}}r&&Q(fqe,function(t){if(r){var i=n.findComponents({mainType:H8(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new W8;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(H8(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 U8(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(H8(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 U8(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}(tW);function xqe(e){var t={};return Q([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var Sqe=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}(G8),K8=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}(aK),Cqe=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}(K8),wqe=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 zA(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(hqe(t)){var n=H8(this._dimName),r=t.getReferringComponents(n,QI).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 zA(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=oI(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=oI(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),dI(s),dI(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`;E3(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=oI(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);fL(t)}var f=LY(r)||FY(r),p=n.getExtent(),m=QF(p[1]-p[0]),h=f?0:mI(s,m,.5);Q([[0,tI],[1,eI]],function(e){var n=e[0],r=e[1];!l[n]||!isFinite(h)||(s[n]=uI(s[n],h),s[n]=XF(t[1],ZF(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),fL(s);var g=[oI(s[0],t,a,!0),oI(s[1],t,a,!0)];return fL(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;FX(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=UA({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=JA(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=oI(i,[0,100],n,!0)-n[0]):i=oI(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),Tqe={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(H8(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!U8(i)){var o=new wqe(t,r,a,e);n.push(o),yqe(i,o)}});var r=Ej();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=bqe(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 Eqe(e){e.registerAction(`dataZoom`,function(e,t){Q(gqe(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Dqe=pL();function q8(e){Dqe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Tqe),Eqe(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function Oqe(e){e.registerComponentModel(Sqe),e.registerComponentView(Cqe),q8(e)}var J8=function(){function e(){}return e}(),kqe={};function Y8(e,t){kqe[e]=t}function Aqe(e){return kqe[e]}var jqe=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=Aqe(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(BA(e,n[t]),n[t]=null),BA(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}(tW);function Mqe(e,t){var n=SU(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new qR({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 Nqe=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||=Ej(),l=[];Q(s,function(e,t){l.push(t)}),new XJ(this._featureNames||[],l).add(u).update(u).remove(ej(u,null)).execute(),this._featureNames=XA(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 jH(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(Pqe(p))_={onclick:h.option.onclick,featureName:p};else{var v=Aqe(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){Fqe(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=MH(`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`?Kz:qz)(r[e])},Fqe(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof J8&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;rj(d)?(p={},p[c]=d):p=d,rj(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};Q(p,function(c,d){var f=UV(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 ZR({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:SH({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),XV({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`?Kz:qz)(f),i.add(f),f.on(`click`,$A(s.onclick,s,t,n,d)),h[d]=f})}var f=YU(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=KU(p,f,m);UU(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),XU(i,p,f,m),i.add(Mqe(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&&!nj(c)&&t){var l=c.style||={},u=CF(t,ZR.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 J8&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){Q(this._features,function(n){n&&n instanceof J8&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(aK);function Pqe(e){return e.indexOf(`my`)===0}function Fqe(e){return e instanceof J8}var Iqe=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=TA.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}(J8),X8=`__ec_magicType_stack__`,Lqe=[[`line`,`bar`],[`stack`]],Rqe=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(zqe[n]){var a={series:[]};Q(Lqe,function(e){WA(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=zqe[n](t,i,e,r);o&&(UA(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,QI).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=BA({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}(J8),zqe={line:function(e,t,n,r){if(e===`bar`)return BA({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 BA({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`)===X8;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),BA({id:t,stack:i?``:X8},r.get([`option`,`stack`])||{},!0)}};IJ({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var Z8=Array(60).join(`-`),Q8=` `;function Bqe(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=lNe(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 Vqe(e){var t=[];return Q(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(JA(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(Q8)],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(Q8))}t.push(s.join(`
|
||
`))}),t.join(`
|
||
|
||
`+Z8+`
|
||
|
||
`)}function Hqe(e){return JA(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+Q8:``)+r.join(Q8))}),n.join(`
|
||
`)}).join(`
|
||
|
||
`+Z8+`
|
||
|
||
`)}function Uqe(e){var t=Bqe(e);return{value:XA([Vqe(t.seriesGroupByCategoryAxis),Hqe(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
|
||
|
||
`+Z8+`
|
||
|
||
`),meta:t.meta}}function $8(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function Wqe(e){if(e.slice(0,e.indexOf(`
|
||
`)).indexOf(Q8)>=0)return!0}var e5=RegExp(`[`+Q8+`]+`,`g`);function Gqe(e){for(var t=e.split(/\n+/g),n=$8(t.shift()).split(e5),r=[],i=JA(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=$8(t[a]).split(e5);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 Kqe(e){for(var t=e.split(/\n+/g),n=$8(t.shift()),r=[],i=0;i<t.length;i++){var a=$8(t[i]);if(a){var o=a.split(e5),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 qqe(e,t){var n=e.split(RegExp(`
|
||
*`+Z8+`
|
||
*`,`g`)),r={series:[]};return Q(n,function(e,n){if(Wqe(e)){var i=Gqe(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=Kqe(e);r.series.push(i)}}),r}var Jqe=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=Uqe(e);if(nj(l)){var f=l(t.getOption());rj(f)?s.innerHTML=f:lj(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}mM(_,`click`,b),mM(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=nj(u)?u(s,t.getOption()):qqe(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}(J8);function Yqe(e,t){return JA(e,function(e,n){var r=t&&t[n];if(oj(r)&&!tj(r)){oj(e)&&!tj(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=UA(e,r),i&&delete e.name,e}else return e})}IJ({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:Yqe(e.data,i)})}}),t.mergeOption(UA({series:n},e.newOption))});var Xqe=Q,Zqe=YI();function Qqe(e,t){var n=t5(e);Xqe(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 $qe(e){var t=t5(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Xqe(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 eJe(e){Zqe(e).snapshots=null}function tJe(e){return t5(e).length}function t5(e){var t=Zqe(e);return t.snapshots||=[{}],t.snapshots}var nJe=function(e){X(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){eJe(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}(J8);IJ({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var rJe=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],n5=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=iJe(t,e);Q(aJe,function(e,t){(!n||!n.include||WA(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=i5[e.brushType](0,n,t);e.__rangeOffset={offset:lJe[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,i5[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=i5[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?lJe[e.brushType](r.values,i.offset,dJe(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return JA(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:RBe(r),isTargetByCursor:BBe(r,e,n.coordSysModel),getLinearBrushOtherExtent:zBe(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&WA(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=iJe(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<oJe.length;s++)if(oJe[s](r,a))return a}return!0},e}();function r5(e){return e[0]>e[1]&&e.reverse(),e}function iJe(e,t){return XI(e,t,{includeMainTypes:rJe})}var aJe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=Ej(),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){(WA(n,e.getAxis(`x`).model)>=0||WA(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:sJe.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:sJe.geo})})}},oJe=[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}],sJe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=CFe(null,e);return KM(t,t,I2(null,e)),t}},i5={lineX:ej(cJe,0),lineY:ej(cJe,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=[r5([i[0],a[0]]),r5([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[oL(),oL()];return{values:JA(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 cJe(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=r5(JA([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 lJe={lineX:ej(uJe,0),lineY:ej(uJe,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 JA(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function uJe(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function dJe(e,t){var n=fJe(e),r=fJe(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 fJe(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var a5=Q,pJe=awe(`toolbox-dataZoom_`),mJe={x:`width`,y:`height`},hJe=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 P3(n.getZr()),this._brushController.on(`brush`,$A(this._onBrush,this)).mount()),vJe(e,t,this,r,n),_Je(e,t)},t.prototype.onclick=function(e,t,n){gJe[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 n5(o5(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)}}),Qqe(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=E3(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=mI(d,i[mJe[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?uI(o[0],f):o[0],endValue:isFinite(f)?uI(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=[];a5(e,function(e,n){t.push(zA(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}(J8),gJe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction($qe(this.ecModel))}};function o5(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 _Je(e,t){e.setIconStatus(`back`,tJe(t)>1?`emphasis`:`normal`)}function vJe(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 n5(o5(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)}HEe(`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=XI(e,o5(r));a5(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),a5(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:pJe+t+a};o[n]=a,i.push(o)}return i});function yJe(e){e.registerComponentModel(jqe),e.registerComponentView(Nqe),Y8(`saveAsImage`,Iqe),Y8(`magicType`,Rqe),Y8(`dataView`,Jqe),Y8(`dataZoom`,hJe),Y8(`restore`,nJe),qJ(Oqe)}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=`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}(tW);function xJe(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function SJe(e){if(TA.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var CJe=SJe([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),wJe=SJe([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function TJe(e,t){if(!e)return t;t=xU(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function EJe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var DJe=TJe(wJe,`transition`),s5=TJe(CJe,`transform`),OJe=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(TA.transform3dSupported?`will-change:transform;`:``);function kJe(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function AJe(e,t,n){if(!rj(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=kU(t);var a=kJe(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=s5+`:`,l;WA([`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 jJe(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?`,`:``)+(TA.transformSupported?``+s5+i:`,left`+i+`,top`+i)),DJe+`:`+a}function MJe(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!TA.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=TA.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+s5+`:`+o+`;`:[[`top`,0],[`left`,0],[CJe,o]]}function NJe(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=hj(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 PJe(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=YG(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(jJe(a,n,r)),o&&i.push(`background-color:`+o),Q([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=xU(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(NJe(d)),f!=null&&i.push(`padding:`+SU(f).join(`px `)+`px`),i.join(`;`)+`;`}function FJe(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&bSe(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 IJe=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,TA.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&&(rj(i)?document.querySelector(i):lj(i)?i:nj(i)&&i(e.getDom()));FJe(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;pM(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=EJe(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=OJe+PJe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+MJe(i[0],i[1],!0)+(`border-color:`+kU(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(rj(i)&&n.get(`trigger`)===`item`&&!xJe(n)&&(o=AJe(n,r,i)),rj(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,tj(e)||(e=[e]);for(var s=0;s<e.length;s++)lj(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(FJe(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;Q(MJe(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`,TA.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($A(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;xSe(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}(),LJe=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),zJe(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;oj(e)&&PI(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new ZR({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:YG(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=RJe(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;zJe(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=c5(i.borderWidth||0),o=RJe(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($A(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function c5(e){return Math.max(0,e)}function RJe(e){var t=c5(e.shadowBlur||0),n=c5(e.shadowOffsetX||0),r=c5(e.shadowOffsetY||0);return{left:c5(t-n),right:c5(t+n),top:c5(t-r),bottom:c5(t+r)}}function zJe(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var BJe=new qR({shape:{x:-1,y:-1,width:2,height:2}}),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.init=function(e,t){if(!(TA.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=fwe(n.get(`renderMode`));this._tooltipContent=r===`richText`?new LJe(t):new IJe(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(TA.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`)?hK(this,`_updatePosition`,50,`fixRate`):gK(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);KWe(`itemTooltip`,this._api,$A(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||TA.node||!n.getDom())){var i=HJe(r,n);this._ticket=``;var a=r.dataByCoordSys,o=qJe(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=BJe;c.x=r.x,c.y=r.y,c.update(),cz(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=QWe(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(HJe(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&&l5([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(cz(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;VK(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(cz(e).dataIndex==null?cz(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=$A(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=l5([t.tooltipOption],r),o=this._renderMode,s=[],c=VG(`section`,{blocks:[],noHeader:!0}),l=[],u=new XG;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=IWe(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=VG(`section`,{header:f,noHeader:!bj(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=cX(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,kU(m.color),o);var h=_G(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=l5([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=GG(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=cz(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=l5([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 XG;h.marker=g.makeTooltipMarker(`item`,kU(h.color),d);var _=_G(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?GG(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=cz(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(rj(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=zA(a),a.content=cM(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=l5(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new XG;this._showOrMove(d,function(){var n=zA(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(rj(u)){var p=e.ecModel.get(`useUTC`),m=tj(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=iU(m.axisValue,d,p)),d=EU(d,n,!0)}else if(nj(u)){var g=$A(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`||tj(t))return{color:r||i};if(!tj(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),nj(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),tj(t))n=sI(t[0],s),r=sI(t[1],c);else if(oj(t)){var p=t;p.width=l[0],p.height=l[1];var m=KU(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(rj(t)&&o){var h=GJe(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=UJe(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=KJe(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=KJe(d)?l[1]/2:d===`bottom`?l[1]:0),xJe(e)){var h=WJe(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){TA.node||!t.getDom()||(gK(this,`_updatePosition`),this._tooltipContent.dispose(),t8(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(aK);function l5(e,t,n){var r=t.ecModel,i;n?(i=new jH(n,r,r),i=new jH(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof jH&&(o=o.get(`tooltip`,!0)),rj(o)&&(o={formatter:o}),o&&(i=new jH(o,i,r)))}return i}function HJe(e,t){return e.dispatchAction||$A(t.dispatchAction,t)}function UJe(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 WJe(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 GJe(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 KJe(e){return e===`center`||e===`middle`}function qJe(e,t,n){var r=ZI(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=$I(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=cz(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function JJe(e){qJ(r8),e.registerComponentModel(bJe),e.registerComponentView(VJe),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},jj),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},jj)}var YJe=[`rect`,`polygon`,`keep`,`clear`];function XJe(e,t){var n=RI(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;tj(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),mL(s,function(e){return e+``},null),t&&!s.length&&s.push.apply(s,YJe)}}var ZJe=Q;function QJe(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function u5(e,t,n){var r={};return ZJe(t,function(t){var a=r[t]=i();ZJe(e[t],function(e,r){if(M4.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new M4(i),r===`opacity`&&(i=zA(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new M4(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function $Je(e,t,n){var r;Q(n,function(e){t.hasOwnProperty(e)&&QJe(t[e])&&(r=!0)}),r&&Q(n,function(n){t.hasOwnProperty(n)&&QJe(t[n])?e[n]=zA(t[n]):delete e[n]})}function eYe(e,t,n,r,i,a){var o={};Q(e,function(e){o[e]=M4.prepareVisualTypes(t[e])});var s;function c(e){return IK(n,s,e)}function l(e,t){RK(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 tYe(e,t,n,r){var i={};return Q(e,function(e){i[e]=M4.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return IK(a,l,e)}function c(e,t){RK(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 nYe(e){var t=e.brushType,n={point:function(r){return rYe[t].point(r,n,e)},rect:function(r){return rYe[t].rect(r,n,e)}};return n}var rYe={lineX:iYe(0),lineY:iYe(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])&&GX(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(GX(r,i,a)||GX(r,i+o,a)||GX(r,i,a+s)||GX(r,i+o,a+s)||VM.create(e).contain(c[0],c[1])||WV(i,a,i+o,a,r)||WV(i,a,i,a+s,r)||WV(i+o,a,i+o,a+s,r)||WV(i,a+s,i+o,a+s,r))return!0}}};function iYe(e){var t=[`x`,`y`],n=[`width`,`height`];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return d5(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(),d5(s[0],o)||d5(s[1],o)||d5(o[0],s)||d5(o[1],s)}}}}function d5(e,t){return t[0]<=e&&e<=t[1]}var aYe=[`inBrush`,`outOfBrush`],f5=`__ecBrushSelect`,p5=`__ecInBrushSelectEvent`;function oYe(e){e.eachComponent({mainType:`brush`},function(t){(t.brushTargetManager=new n5(t.option,e)).setInputRanges(t.areas,e)})}var sYe=vL(cYe);function cYe(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})}),oYe(e),e.eachComponent({mainType:`brush`},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:zA(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=JA(t.areas,function(e){var t=pYe[e.brushType],n=UA({boundingRect:t?t(e):void 0},e);return n.selectors=nYe(n),n}),m=u5(t.option,aYe,function(e){e.mappingMethod=`fixed`});tj(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||fYe(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){dYe(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 dYe(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),`inBrush`):`outOfBrush`};(h(t)?f:g(r))&&eYe(aYe,m,i,a)})}),lYe(t,i,a,r,n)}function lYe(e,t,n,r,i){if(i){var a=e.getZr();a[p5]||(a[f5]||(a[f5]=uYe),hK(a,f5,n,t)(e,r))}}function uYe(e,t){if(!e.isDisposed()){var n=e.getZr();n[p5]=!0,e.dispatchAction({type:`brushSelect`,batch:t}),n[p5]=!1}}function dYe(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 fYe(e,t){var n=e.option.seriesIndex;return n!=null&&n!==`all`&&(tj(n)?WA(n,t)<0:t!==n)}var pYe={rect:function(e){return mYe(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t||=[oL(),oL()];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&&mYe(t)}};function mYe(e){return new VM(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var hYe=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 P3(t.getZr())).on(`brush`,$A(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){oYe(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:zA(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:zA(n),$from:t})},t.type=`brush`,t}(aK),gYe=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&&$Je(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=JA(e,function(e){return _Ye(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=_Ye(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}(tW);function _Ye(e,t){return BA({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new jH(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var vYe=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],yYe=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:vYe.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}(J8);function bYe(e){e.registerComponentView(hYe),e.registerComponentModel(gYe),e.registerPreprocessor(XJe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,sYe),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`},jj),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},jj),Y8(`brush`,yYe)}var xYe=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}(tW),SYe=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=hj(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new ZR({style:gH(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new ZR({style:gH(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(){AU(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){AU(p,`_`+e.get(`subtarget`))}),cz(c).eventData=cz(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 _=KU(g,YU(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 qR({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}(aK);function CYe(e){e.registerComponentModel(xYe),e.registerComponentView(SYe)}var wYe=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=GI(VI(e),``),a;oj(e)?(a=zA(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 hY([{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}(tW),TYe=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=NH(wYe.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}(wYe);KA(TYe,gG.prototype);var EYe=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}(aK),DYe=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}(pZ),m5=Math.PI,OYe=YI(),kYe=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 VG(`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=AYe(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?`+`:`-`:rj(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:m5/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*m5/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=yM(),o=i.x,s=i.y+i.height;CM(a,a,[-o,-s]),wM(a,a,-m5/2),CM(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||rj(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=oX(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]),UX(i,{fixMinMax:[!0,!0]});var o=new DYe(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new BF;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 qB({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 qB({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:UA({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=MYe(s,c,t,{x:o,y:0,onclick:$A(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),iB(d);var f=cz(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 ZR({x:n.dataToCoord(o),y:0,rotation:e.labelRotation-e.rotation,onclick:$A(i._changeTimeline,i,o),silent:!1,style:gH(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=gH(l),d.ensureState(`progress`).style=gH(u),t.add(d),iB(d),OYe(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`,$A(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,$A(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,$A(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=DF(hj(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=jYe(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),iB(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=$A(s._handlePointerDrag,s),e.ondragend=$A(s._handlePointerDragend,s),NYe(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){NYe(e,s._progressLine,a,n,r)}};this._currentPointer=MYe(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=dI(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 LV(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`,OYe(n[r]).dataIndex<=e)},t.type=`timeline.slider`,t}(EYe);function AYe(e,t){return KU(e.getBoxLayoutParams(),YU(e,t).refContainer,e.get(`padding`))}function jYe(e,t,n,r){var i=r.style,a=UV(e.get([`controlStyle`,t]),r||{},new VM(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function MYe(e,t,n,r,i,a){var o=t.get(`color`);i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):(i=ZK(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=BA({rectHover:!0,z2:100},r,!0);var c=QK(e.get(`symbolSize`));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var l=$K(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 NYe(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 PYe(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)}),UA({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 FYe(e){var t=e&&e.timeline;tj(t)||(t=t?[t]:[]),Q(t,function(e){e&&IYe(e)})}function IYe(e){var t=e.type,n={number:`value`,time:`time`};if(n[t]&&(e.axisType=n[t],delete e.type),LYe(e),h5(e,`controlPosition`)){var r=e.controlStyle||={};h5(r,`position`)||(r.position=e.controlPosition),r.position===`none`&&!h5(r,`show`)&&(r.show=!1,delete r.position),delete e.controlPosition}Q(e.data||[],function(e){oj(e)&&!tj(e)&&(!h5(e,`value`)&&h5(e,`name`)&&(e.value=e.name),LYe(e))})}function LYe(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]&&!h5(i,t)&&(i[t]=e)}),n.label&&!h5(r,`emphasis`)&&(r.emphasis=n.label,delete n.label)}function h5(e,t){return e.hasOwnProperty(t)}function RYe(e){e.registerComponentModel(TYe),e.registerComponentView(kYe),e.registerSubTypeDefaulter(`timeline`,function(){return`slider`}),PYe(e),e.registerPreprocessor(FYe)}function g5(e,t){if(!e)return!1;for(var n=tj(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function _5(e){zI(e,`label`,[`show`])}var v5=YI(),y5=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(TA.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=v5(e)[i];if(!n||!n.data){v5(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&_5(n),Q(n.data,function(e){e instanceof Array?(_5(e[0]),_5(e[1])):_5(e)}),a=this.createMarkerModelFromSeries(n,this,t),Z(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),v5(e)[i]=a},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return VG(`section`,{header:this.name,blocks:[VG(`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=gG.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 v5(e)[t]},t.type=`marker`,t.dependencies=[`series`,`grid`,`polar`,`geo`],t}(tW);KA(y5,gG.prototype);var zYe=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}(y5);function b5(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function BYe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function x5(e,t,n,r,i,a,o){var s=[],c=yY(t,i)?t.getCalculationInfo(`stackResultDimension`):i,l=T5(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=fI(t.get(i,u));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var S5={min:ej(x5,`min`),max:ej(x5,`max`),average:ej(x5,`average`),median:ej(x5,`median`)};function C5(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!BYe(t)&&!tj(t.coord)&&tj(i)){var a=VYe(t,n,r,e);if(t=zA(t),t.type&&S5[t.type]&&a.baseAxis&&a.valueAxis){var o=WA(i,a.baseAxis.dim),s=WA(i,a.valueAxis.dim),c=S5[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||!tj(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&S5[t.type]){var u=r.getOtherAxis(l);u&&(t.value=T5(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)S5[d[f]]&&(d[f]=T5(n,n.mapDimension(i[f]),d[f]));return t}}function VYe(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(HYe(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 HYe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function w5(e,t){return e&&e.containData&&t.coord&&!b5(t)?e.containData(t.coord):!0}function UYe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!b5(t)&&!b5(n)?e.containZone(t.coord,n.coord):!0}function WYe(e,t){return e?function(e,n,r,i){return bG(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return bG(e.value,t[i])}}function T5(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 E5=YI(),D5=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=Ej()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){E5(e).keep=!1}),t.eachSeries(function(e){var i=y5.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!E5(e).keep&&r.group.remove(e.group)}),GYe(t,i,this.type)},t.prototype.markKeep=function(e){E5(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Q(e,function(e){var r=y5.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?Jz(e):Yz(e))})})},t.type=`marker`,t}(aK);function GYe(e,t,n){e.eachSeries(function(e){var r=y5.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=rH(r),o=a.z,s=a.zlevel;aH(i.group,o,s)}})}function KYe(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=sI(s.get(`x`),l)+d,h=sI(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 qYe=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=y5.getMarkerModelFromSeries(e,`markPoint`);t&&(KYe(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 v$),l=JYe(i,e,t);t.setData(l),KYe(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(nj(r)||nj(i)||nj(a)||nj(s)){var u=t.getRawValue(e),d=t.getDataParams(e);nj(r)&&(r=r(u,d)),nj(i)&&(i=i(u,d)),nj(a)&&(a=a(u,d)),nj(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=LK(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:hj(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){cz(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(D5);function JYe(e,t,n){var r=e?JA(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 hY(r,n),a=JA(n.get(`data`),ej(C5,t));e&&(a=XA(a,ej(w5,e)));var o=WYe(!!e,r);return i.initData(a,null,o),i}function YYe(e){e.registerComponentModel(zYe),e.registerComponentView(qYe),e.registerPreprocessor(function(e){g5(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var XYe=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}(y5),O5=YI(),ZYe=function(e,t,n,r){var i=e.getData(),a;if(tj(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=mj(r.yAxis,r.xAxis);else{var l=VYe(r,i,t,e);s=l.valueAxis,c=T5(i,bY(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=zA(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&&aj(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=[C5(e,a[0]),C5(e,a[1]),Z({},a[2])];return h[2].type=h[2].type||null,BA(h[2],h[0]),BA(h[2],h[1]),h};function k5(e){return!isNaN(e)&&!isFinite(e)}function QYe(e,t,n,r){var i=1-e,a=r.dimensions[e];return k5(t[i])&&k5(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function $Ye(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(QYe(1,n,r,e)||QYe(0,n,r,e)))return!0}return w5(e,t[0])&&w5(e,t[1])}function A5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=sI(o.get(`x`),i.getWidth()),l=sI(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(P$(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;k5(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):k5(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 eXe=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=y5.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=O5(t).from,a=O5(t).to;i.each(function(t){A5(i,t,!0,e,n),A5(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 u3);this.group.add(c.group);var l=tXe(i,e,t),u=l.from,d=l.to,f=l.line;O5(t).from=u,O5(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);tj(p)||(p=[p,p]),tj(m)||(m=[m,m]),tj(h)||(h=[h,h]),tj(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:hj(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){cz(e).dataModel=t,e.traverse(function(e){cz(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);A5(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=LK(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:hj(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:hj(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:hj(a.get(`symbolSize`),m[+!i]),symbol:hj(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(D5);function tXe(e,t,n){var r=e?JA(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 hY(r,n),a=new hY(r,n),o=new hY([],n),s=JA(n.get(`data`),ej(ZYe,t,e,n));e&&(s=XA(s,ej($Ye,e)));var c=WYe(!!e,r);return i.initData(JA(s,function(e){return e[0]}),null,c),a.initData(JA(s,function(e){return e[1]}),null,c),o.initData(JA(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function nXe(e){e.registerComponentModel(XYe),e.registerComponentView(eXe),e.registerPreprocessor(function(e){g5(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var rXe=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}(y5),j5=YI(),iXe=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=C5(e,i),s=C5(e,a),c=o.coord,l=s.coord;c[0]=mj(c[0],-1/0),c[1]=mj(c[1],-1/0),l[0]=mj(l[0],1/0),l[1]=mj(l[1],1/0);var u=VA([{},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 M5(e){return!isNaN(e)&&!isFinite(e)}function aXe(e,t,n,r){var i=1-e;return M5(t[i])&&M5(n[i])}function oXe(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 P$(e,`cartesian2d`)?n&&r&&(aXe(1,n,r,e)||aXe(0,n,r,e))?!0:UYe(e,i,a):w5(e,i)||w5(e,a)}function sXe(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=sI(o.get(n[0]),i.getWidth()),l=sI(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(P$(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);M5(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):M5(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 cXe=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],lXe=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=y5.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=JA(cXe,function(i){return sXe(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 BF});this.group.add(c.group),this.markKeep(c);var l=uXe(i,e,t);t.setData(l),l.each(function(t){var n=JA(cXe,function(n){return sXe(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))];dI(d),dI(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`),_=LK(o,`color`);h.fill||(h.fill=_,rj(h.fill)&&(h.fill=rP(h.fill,.4))),h.stroke||=_,l.setItemVisual(t,`style`,h),l.setItemVisual(t,`z2`,hj(g,0))}),l.diff(j5(c).data).add(function(e){var t=l.getItemLayout(e),n=l.getItemVisual(e,`z2`);if(!t.allClipped){var r=new GB({z2:hj(n,0),shape:{points:t.points}});l.setItemGraphicEl(e,r),c.group.add(r)}}).update(function(e,n){var r=j5(c).data.getItemGraphicEl(n),i=l.getItemLayout(e),a=l.getItemVisual(e,`z2`);i.allClipped?r&&c.group.remove(r):(r?mV(r,{z2:hj(a,0),shape:{points:i.points}},t,e):r=new GB({shape:{points:i.points}}),l.setItemGraphicEl(e,r),c.group.add(r))}).remove(function(e){var t=j5(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`)),mH(e,hH(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||``,inheritColor:rj(i.fill)?rP(i.fill,1):$.color.neutral99}),cB(e,r),aB(e,null,null,r.get([`emphasis`,`disabled`])),cz(e).dataModel=t}),j5(c).data=l,c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markArea`,t}(D5);function uXe(e,t,n){var r,i,a=[`x0`,`y0`,`x1`,`y1`];if(e){var o=JA(e&&e.dimensions,function(e){var n=t.getData();return Z(Z({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});i=JA(a,function(e,t){return{name:e,type:o[t%2].type}}),r=new hY(i,n)}else i=[{name:`value`,type:`float`}],r=new hY(i,n);var s=JA(n.get(`data`),ej(iXe,t,e,n));e&&(s=XA(s,ej(oXe,e)));var c=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return bG(a,i[r])}:function(e,t,n,r){return bG(e.value,i[r])};return r.initData(s,null,c),r.hasItemOption=!0,r}function dXe(e){e.registerComponentModel(rXe),e.registerComponentView(lXe),e.registerPreprocessor(function(e){g5(e.series,`markArea`)&&(e.markArea=e.markArea||{})})}var fXe=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`])}},N5=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`]),tj(t)&&Q(t,function(e,r){rj(e)&&(e={type:e}),t[r]=BA(e,fXe(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&&KI(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=Ej(),a=JA(r,function(e){return(rj(e)||aj(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new jH(e,this,this.ecModel))},this);this._data=XA(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])&&WA(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}(tW),P5=ej,F5=Q,I5=BF,pXe=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 I5),this.group.add(this._selectorGroup=new I5),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=YU(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=KU(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=KU(UA({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=Mqe(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=Ej(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),F5(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
|
||
`)){var p=new I5;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`,P5(gXe,f,null,r,d)).on(`mouseover`,P5(L5,m.name,null,r,d)).on(`mouseout`,P5(R5,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=cz(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`),_=ZN(h.fill);_&&_[3]===0&&(_[3]=.2,h=Z(Z({},h),{fill:iP(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,P5(gXe,null,f,r,d)).on(`mouseover`,P5(L5,null,f,r,d)).on(`mouseout`,P5(R5,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=cz(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};cz(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();F5(e,function(e){var r=e.type,i=new ZR({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),mH(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),iB(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=mXe(c,r,o,s,d,m,u),y=new I5,b=r.getModel(`textStyle`);if(nj(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(hXe({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;rj(w)&&w?T=w.replace(`{name}`,t??``):nj(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new ZR({style:gH(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new qR({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&XV({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),iB(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();UU(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){UU(`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}(aK);function mXe(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),F5(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:Dq(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 hXe(e){var t=e.icon||`roundRect`,n=ZK(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 gXe(e,t,n,r){R5(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),L5(e,t,n,r)}function L5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function R5(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function z5(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),_Xe(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){Q(i,function(t,n){e[t?`select`:`unSelect`](n)}),_Xe(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function _Xe(e,t){var n=t||{};return Q(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
|
||
`||r===``)){var i=e.isSelected(r);Aj(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function vXe(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,ej(z5,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,ej(z5,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,ej(z5,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,ej(z5,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,ej(z5,`unSelect`))}var yXe=vL(bXe);function bXe(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 xXe(e){e.registerComponentModel(N5),e.registerComponentView(pXe),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,yXe),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),vXe(e)}var SXe=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=$U(t);e.prototype.init.call(this,t,n,r),CXe(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),CXe(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=NH(N5.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}(N5);function CXe(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,QU(t,n,{type:`box`,ignoreSize:!!i})}var wXe=BF,B5=[`width`,`height`],V5=[`x`,`y`],TXe=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 wXe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new wXe)},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=tj(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new ZR({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=UV(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:$A(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=B5[s],l=V5[s],u=B5[1-s],d=V5[1-s];i&&UU(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=zA(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;UU(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),UU(`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],_=hj(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 qR({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&&mV(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`,rj(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=B5[i],o=V5[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}(pXe);function EXe(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 DXe(e){qJ(xXe),e.registerComponentModel(SXe),e.registerComponentView(TXe),EXe(e)}function OXe(e){qJ(xXe),qJ(DXe)}var kXe=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=NH(G8.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(G8),H5=YI();function AXe(e,t,n){H5(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function jXe(e,t){for(var n=H5(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||MXe(n,o))}}}function MXe(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function NXe(e,t){var n={model:t,containsPoint:ej(FXe,t),dispatchAction:ej(PXe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new f2(e.getZr());return Q([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function PXe(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function FXe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function IXe(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=hj(t.get(`cursorGrab`,!0),s),c=hj(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 LXe(e){e.registerUpdateLifecycle(`coordsys:aftercreate`,function(e,t){var n=H5(t),r=n.coordSysRecordMap||=Ej();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){Q(_qe(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,NXe(t,n.model));(a.dataZoomInfoMap||=Ej()).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){MXe(r,e);return}var s=IXe(a,e,t);n.enable(s.controlType,s.opt),hK(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var RXe=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(),AXe(r,t,{pan:$A(U5.pan,this),zoom:$A(U5.zoom,this),scrollMove:$A(U5.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){jXe(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(K8),U5={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=W5[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(E3(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:zXe(function(e,t,n,r,i,a){var o=W5[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:zXe(function(e,t,n,r,i,a){return W5[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function zXe(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(E3(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 W5={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 BXe(e){q8(e),e.registerComponentModel(kXe),e.registerComponentView(RXe),LXe(e)}var VXe=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=NH(G8.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}(G8),G5=qR,HXe=1,K5=30,UXe=7,q5=`horizontal`,WXe=`vertical`,GXe=5,KXe=[`line`,`bar`,`candlestick`,`scatter`],qXe={easing:`cubicOut`,duration:100,delay:0},JXe=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=$A(this._onBrush,this),this._onBrushEnd=$A(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),hK(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(){gK(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 BF;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`)?UXe:0,r=YU(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===q5?{right:r.width-i.x-i.width,top:r.height-K5-a-n,width:i.width,height:K5}:{right:a,top:i.y,width:K5,height:i.height},s=$U(e.option);Q([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=KU(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===WXe&&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===q5&&!i?{scaleY:o?1:-1,scaleX:1}:n===q5&&i?{scaleY:o?1:-1,scaleX:-1}:n===WXe&&!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 G5({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new G5({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:$A(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:oI(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 BF,r=new GB({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new KB({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&&WA(KXe,e.get(`type`))<0)){var o=r.getComponent(H8(i),a).axis,s=XXe(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 G5({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new G5({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:HXe,fill:$.color.transparent}})),Q([0,1],function(t){var a=o.get(`handleIcon`);!XK[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=ZK(a,-1,0,2,2,null,!0);s.attr({cursor:ZXe(this._orient),draggable:!0,drift:$A(this._onDragMove,this,t),ondragend:$A(this._onDragEnd,this),onmouseover:$A(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$A(this._onOverDataInfoTriggerArea,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=sI(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(),iB(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 ZR({silent:!0,invisible:!f,style:gH(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=sI(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new qR({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=ZK(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 qR({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:$A(this._onActualMoveZoneDrift,this),ondragstart:$A(this._onActualMoveZoneDragStart,this),ondragend:$A(this._onActualMoveZoneDragEnd,this),onmouseover:$A(this._onOverDataInfoTriggerArea,this,!0),onmouseout:$A(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[oI(e[0],[0,100],t,!0),oI(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];E3(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:oI(a.minSpan,o,i,!0),a.maxSpan==null?null:oI(a.maxSpan,o,i,!0));var s=this._range,c=this._range=dI([oI(r[0],i,o,!0),oI(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=dI(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 qR,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=bqe(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=[YXe(t,0,l,s),YXe(t,1,l,s)]}}var p=dI(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(e){var t=IV(n.handles[e].parent,this.group),o=RV(e===0?`right`:`left`,t),s=this._handleWidth/2+GXe,c=LV([p[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===q5?`middle`:o,align:i===q5?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,hM(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=LV([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 OM(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();E3(0,a,r,0,o.minSpan==null?null:oI(o.minSpan,i,r,!0),o.maxSpan==null?null:oI(o.maxSpan,i,r,!0)),this._range=dI([oI(a[0],r,i,!0),oI(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(hM(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 G5({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?qXe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=_qe(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}(K8);function YXe(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)?``:LY(r)||FY(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?uI(o,a,!0):o+``;return nj(i)?i(o,s):rj(i)?i.replace(`{value}`,s):s}function XXe(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function ZXe(e){return e===`vertical`?`ns-resize`:`ew-resize`}function QXe(e){e.registerComponentModel(VXe),e.registerComponentView(JXe),q8(e)}function $Xe(e){qJ(BXe),qJ(QXe)}var eZe={get:function(e,t,n){var r=zA((tZe[e]||{})[t]);return n&&tj(r)?r[r.length-1]:r}},tZe={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]}},nZe=M4.mapVisual,rZe=M4.eachVisual,iZe=tj,J5=Q,aZe=dI,oZe=oI,Y5=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&&$Je(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=$A(e,this),this.controllerVisuals=u5(this.option.controller,t,e),this.targetVisuals=u5(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 J5(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=$I(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return JA(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||=[`<`,`>`],tj(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(rj(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(nj(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=aZe([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=ZA(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||={};BA(r,n),BA(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){iZe(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]={},J5(r,function(e,t){if(M4.isValidType(t)){var n=eZe.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`;J5(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&zA(t)||(a?i:[i]),c.symbolSize??=n&&zA(n)||(a?s[0]:[s[0],s[0]]),c.symbol=nZe(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;rZe(l,function(e){e>u&&(u=e)}),c.symbolSize=nZe(l,function(e){return oZe(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}(tW),sZe=[20,140],cZe=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]=sZe[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=sZe[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):tj(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=dI((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=hj(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=lZe(this,`outOfRange`,this.getExtent()),n=lZe(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=NH(Y5.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}(Y5);function lZe(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 uZe=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=SU(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new qR({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(M4.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),M4.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=YU(t,n).refContainer;XU(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(aK),dZe=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function fZe(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=dZe[o],c=[0,null,10],l={},u=0;u<3;u++)l[dZe[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=KU(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 X5(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 Z5=oI,pZe=Q,mZe=Math.min,Q5=Math.max,hZe=12,gZe=6,_Ze=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=$A(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=$A(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 ZR({style:gH(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=fZe(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new BF;s.add(c),c.add(n.outOfRange=vZe()),c.add(n.inRange=vZe(null,a?xZe(this._orient):null,$A(this._dragHandle,this,`all`,!1),$A(this._dragHandle,this,`all`,!0))),c.setClipPath(new qR({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=Q5(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=$A(this._dragHandle,this,n,!1),s=$A(this._dragHandle,this,n,!0),c=DF(e.get(`handleSize`),r[0]),l=ZK(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=xZe(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){hM(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(),lB(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new ZR({cursor:u,draggable:!0,drift:o,onmousemove:function(e){hM(e.event)},ondragend:s,style:gH(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=DF(e.get(`indicatorSize`),n[0]),o=ZK(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 HR){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 ZR({silent:!0,invisible:!0,style:gH(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:gZe)+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():bZe(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=[Z5(t[0],n,r,!0),Z5(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]];E3(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[Z5(r[0],i,a,!0),Z5(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 eV(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 BF(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);pZe([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=Z5(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=LV(n.handleLabelPoints[l],IV(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=Z5(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=LV(c.indicatorLabelPoint,IV(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]=mZe(Q5(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=mZe(Q5(i[0],e),i[1]);var o=yZe(n,a,i),s=[e-o,e+o],c=Z5(e,i,a,!0),l=[Z5(s[0],i,a,!0),Z5(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||bZe(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=cwe(u,d);this._dispatchHighDown(`downplay`,X5(f[0],n)),this._dispatchHighDown(`highlight`,X5(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(VK(e.target,function(e){var n=cz(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`,X5(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=IV(t,r?null:this.group);return tj(e)?LV(e,i,n):RV(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}(uZe);function vZe(e,t,n,r){return new GB({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){hM(e.event)},ondragend:r})}function yZe(e,t,n){var r=hZe/2,i=e.get(`hoverLinkDataSize`);return i&&(r=Z5(i,t,n,!0)/2),r}function bZe(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function xZe(e){return e===`vertical`?`ns-resize`:`ew-resize`}var SZe={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},CZe=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},wZe=[{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(tYe(t.stateList,t.targetVisuals,$A(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($A(TZe,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function TZe(e,t,n,r){for(var i=t.targetVisuals[r],a=M4.prepareVisualTypes(i),o={color:LK(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 EZe=Q;function DZe(e){var t=e&&e.visualMap;tj(t)||(t=t?[t]:[]),EZe(t,function(e){if(e){$5(e,`splitList`)&&!$5(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&tj(t)&&EZe(t,function(e){oj(e)&&($5(e,`start`)&&!$5(e,`min`)&&(e.min=e.start),$5(e,`end`)&&!$5(e,`max`)&&(e.max=e.end))})}})}function $5(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var OZe=!1;function kZe(e){OZe||(OZe=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(SZe,CZe),Q(wZe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(DZe))}function AZe(e){e.registerComponentModel(cZe),e.registerComponentView(_Ze),kZe(e)}var jZe=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=[],MZe[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=zA(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=JA(this._pieceList,function(e){return e=zA(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=M4.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]=eZe.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=zA(e)},t.prototype.getValueState=function(e){var t=M4.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){M4.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=NH(Y5.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}(Y5),MZe={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]}),TI(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),NZe(t,e)},pieces:function(e){var t=this.option;Q(t.pieces,function(t,n){oj(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=M4.retrieveVisuals(t),e.push(r)},this),NZe(t,e),TI(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 NZe(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}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.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=mj(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 BF;u.onclick=$A(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 ZR({style:gH(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:hj(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),UU(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:X5(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return fZe(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 BF,o=this.visualMapModel.textStyleModel;a.add(new ZR({style:gH(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=JA(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=ZK(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=zA(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}(uZe);function FZe(e){e.registerComponentModel(jZe),e.registerComponentView(PZe),kZe(e)}function IZe(e){qJ(AZe),qJ(FZe)}var LZe=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:iH(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}(),RZe=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 LZe(this);this._target=null,this.ecModel.eachSeries(function(e){nze(e,null)}),this.shouldShow()&&nze(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}(tW),zZe=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 P2,!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=YU(e,n).refContainer,s=KU(WU(e,!0),o),c=a.lineWidth||0,l=this._contentRect=qV(s.clone(),c/2,!0,!0),u=new BF;r.add(u),u.setClipPath(new qR({shape:l.plain()}));var d=this._targetGroup=new BF;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new qR({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new qR({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),VZe(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),VZe(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,H2(n,a.x,a.y,a.width,a.height);var o=KU({left:`center`,top:`center`,aspect:a.width/a.height},r);U2(n,o.x,o.y,o.width,o.height),R2(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=EM([],e.targetTrans),n=SM([],I2(null,this._coordSys),t);this._transThisToTarget=EM([],n);var r=e.viewportRect;r=r?r.clone():new VM(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(UA({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new f2(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,$A(this._onPan,this)).on(`zoom`,$A(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=Zj([],[e.oldX,e.oldY],t),r=Zj([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(BZe(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=Zj([],[e.originX,e.originY],t);this._api.dispatchAction(BZe(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}(aK);function BZe(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 VZe(e,t){var n=rH(e);aH(t.group,n.z,n.zlevel)}function HZe(e){e.registerComponentModel(RZe),e.registerComponentView(zZe)}var UZe={label:{enabled:!0},decal:{show:!1}},WZe=YI(),GZe=YI(),KZe=vL(qZe);function qZe(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=GZe(e).scope||(GZe(e).scope={}),i=zA(UZe);BA(i.label,e.getLocaleModel().get(`aria`),!1),BA(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Ej();e.eachSeries(function(e){e.isColorBySeries()||(WZe(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(nj(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=yW(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=WZe(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=yW(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=UA(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?XA(i.getValues(_),function(e,t){return WA(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(!rj(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 JZe(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 YZe(e){e.registerPreprocessor(JZe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,KZe)}var XZe={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},ZZe=function(){function e(e){(this._condVal=rj(e)?new RegExp(e):fj(e)?e:null)??PI(``)}return e.prototype.evaluate=function(e){var t=typeof e;return rj(t)?this._condVal.test(e):aj(t)?this._condVal.test(e+``):!1},e}(),QZe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),$Ze=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}(),eQe=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}(),tQe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),nQe=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 e7(e,t){if(e===!0||e===!1){var n=new QZe;return n.value=e,n}return oQe(e)||PI(``),e.and?rQe(`and`,e,t):e.or?rQe(`or`,e,t):e.not?iQe(e,t):aQe(e,t)}function rQe(e,t,n){var r=t[e],i=``;tj(r)||PI(i),r.length||PI(i);var a=e===`and`?new $Ze:new eQe;return a.children=JA(r,function(e){return e7(e,n)}),a.children.length||PI(i),a}function iQe(e,t){var n=e.not,r=``;oQe(n)||PI(r);var i=new tQe;return i.child=e7(n,t),i.child||PI(r),i}function aQe(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=QA(e),o=e.parser,s=o?xG(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=Aj(XZe,l)?XZe[l]:l,d=e[l],f=s?s(d):d,p=CDe(u,f)||u===`reg`&&new ZZe(f);p||PI(n),i.push(p)}}i.length||PI(n);var m=new nQe;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function oQe(e){return oj(e)&&!qA(e)}var sQe=function(){function e(e,t){this._cond=e7(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function cQe(e,t){return new sQe(e,t)}var lQe={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=cQe(e.config,{valueGetterAttrMap:Ej({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;Aj(e,`dimension`)||PI(n);var i=t.getDimensionInfo(r);return i||PI(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}}},uQe={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=RI(n);i.length||PI(r);var a=[];Q(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n??PI(r),i!==`asc`&&i!==`desc`&&PI(r),s&&s!==`min`&&s!==`max`&&PI(``),i!==`asc`&&i!==`desc`&&PI(``);var c=t.getDimensionInfo(n);c||PI(r);var l=o?xG(o):null;o&&!l&&PI(r),a.push({dimIdx:c.index,parser:l,comparator:new CG(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&PI(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 dQe(e){e.registerTransform(lQe),e.registerTransform(uQe)}var fQe=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 FG(this),IG(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),IG(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:_z},t}(tW),pQe=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}(aK);function mQe(e){e.registerComponentModel(fQe),e.registerComponentView(pQe)}var t7=ER.CMD;function n7(e,t){return Math.abs(e-t)<1e-5}function r7(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){n7(e,n)&&n7(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,(_===t7.L||_===t7.C||_===t7.Q)&&(i=[s,c])),_){case t7.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case t7.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case t7.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case t7.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 t7.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 t7.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 t7.Z:i&&u(a,o,s,c),a=s,o=c;break}}return i&&i.length>2&&r.push(i),r}function i7(e,t,n,r,i,a,o,s,c,l){if(n7(e,n)&&n7(t,r)&&n7(i,o)&&n7(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=[];kN(e,n,i,o,.5,T),kN(t,r,a,s,.5,E),i7(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),i7(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function hQe(e,t){var n=r7(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++];i7(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function gQe(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 _Qe(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=gQe([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 vQe(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=gQe([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 yQe(e,t,n,r){return e*r-n*t}function bQe(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=yQe(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=yQe(e-i,t-a,u,d)/f;return p<0||p>1?null:new OM(p*c+e,p*l+t)}function xQe(e,t,n){var r=new OM;OM.sub(r,n,t),r.normalize();var i=new OM;return OM.sub(i,e,t),i.dot(r)}function a7(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function SQe(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=bQe(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:xQe(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++)a7(m,e[a].slice());a7(m,p),a7(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)a7(h,e[a%r].slice());return a7(h,f),a7(h,p),[{points:m},{points:h}]}function CQe(e){var t=e.points,n=[],r=[];iR(t,n,r);var i=new VM(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 OM,u=new OM;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),SQe(t,l,u)}function o7(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);o7(e,a[0],i,r),o7(e,a[1],n-i,r)}return r}function wQe(e,t){for(var n=[],r=0;r<t;r++)n.push(OB(e));return n}function TQe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function EQe(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function DQe(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:vQe(r,t,n),i=qR;break;case`sector`:_Qe(r,t,n),i=HB;break;case`circle`:_Qe({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=HB;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=JA(hQe(e.getUpdatedPathProxy(),o),function(e){return EQe(e)}),c=s.length;if(c===0)o7(CQe,{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=JA(s,function(e){var t=[],n=[];iR(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||(o7(CQe,{points:p.poly},m,n),f-=m)}}i=GB;break}if(!i)return wQe(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),TQe(e,g),h.push(g)}return h}function OQe(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;kN(m,g,v,b,w,i),kN(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 kQe(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 AQe(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=OQe(c,l),u=n[0],d=n[1],r=u,i=d):(d=kQe(i||c,c),u=c):(u=kQe(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function jQe(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 MQe(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 NQe(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 PQe(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=jQe(s),u=jQe(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=NQe(s));for(var _=MQe(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 s7(e){return e.__isCombineMorphing}var FQe=`__mOriginal_`;function c7(e,t,n){var r=FQe+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 l7(e,t){var n=FQe+t;e[n]&&(e[t]=e[n],e[n]=null)}function IQe(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 LQe(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=AQe(r7(n),r7(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&IQe(a,s),c&&IQe(o,c),c7(t,`updateTransform`,{replace:l}),t.transform=null;var u=PQe(a,o,10,Math.PI),d=[];c7(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);Xj(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 u7(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;LQe(e,t),t.__morphT=0;function a(){l7(t,`buildPath`),l7(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},UA({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function RQe(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 d7(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return JA(JA(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:RQe(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 zQe(e){return DQe(e.path,e.count)}function f7(){return{fromIndividuals:[],toIndividuals:[],count:0}}function BQe(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];s7(n)?i(n.childrenRef()):n instanceof BR&&r.push(n)}}i(e);var a=r.length;if(!a)return f7();var o=(n.dividePath||zQe)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),f7();r=d7(r),o=d7(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new dF,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||LQe(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)}c7(t,`addSelfToZr`,{after:function(e){m(e)}}),c7(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,l7(t,`addSelfToZr`),l7(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?UA({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;u7(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},UA({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++)l7(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function VQe(e,t,n){var r=t.length,i=[],a=n.dividePath||zQe;function o(e){for(var t=0;t<e.length;t++){var n=e[t];s7(n)?o(n.childrenRef()):n instanceof BR&&i.push(n)}}if(s7(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(OB(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`),f7()}i=d7(i),t=d7(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?UA({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;u7(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function HQe(e){return tj(e[0])}function UQe(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 WQe={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=OB(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function p7(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=fV(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Z({setToFinal:!0},o),l,u;HQe(e)&&(l=e,u=t),HQe(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(s7(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?UA({delay:s(r,i)},c):c;u7(f,p,m),a(f,p,f,p,m)}}else for(var h=UA({dividePath:WQe[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?BQe(l,u,h):VQe(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?UA({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?UQe(u,l):UQe(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 m7(e){if(!e)return[];if(tj(e)){for(var t=[],n=0;n<e.length;n++)t.push(m7(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof BR&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var GQe=1e4,KQe=0,qQe=1,JQe=2,YQe=YI();function XQe(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 ZQe(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 QQe(e,t,n,r){var i=XQe(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return ZQe(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 $Qe(e){var t=[];return Q(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>GQe))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:QQe(n,a,r,!1),childGroupId:QQe(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function h7(e,t,n){e.traverse(function(e){e instanceof BR&&hV(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function g7(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function _7(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function e$e(e,t,n){var r=fV(`update`,n,t);r&&e.traverse(function(e){if(e instanceof qL){var t=eEe(e);t&&e.animateFrom({style:t},r)}})}function t$e(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function n$e(e,t,n){var r=$Qe(e),i=$Qe(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=KQe,c=Ej(),l=Ej();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=qQe;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=JQe;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===qQe?n.childGroupId:n.groupId:s===JQe?n.childGroupId:n.groupId}}var m=t$e(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&e$e(u,s.dataIndex,c);return}l&&h[l.id]||u&&(_7(u),l?(_7(l),g7(l),o=!0,p7(m7(l),m7(u),s.divide,c,e,a)):h7(u,c,e))}new XJ(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=XA(JA(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(_7(l),u.length?(Q(u,function(e){_7(e),g7(e)}),o=!0,p7(m7(u),m7(l),n.divide,c,e,a)):h7(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=XA(JA(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 _7(e)}),s?(_7(s),g7(s),o=!0,p7(m7(s),m7(c),n.divide,l,e[0],a)):Q(c,function(t){return h7(t,l,e[0])}))}}).updateManyToMany(function(e,t){new XJ(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=fV(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof BR&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function r$e(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function i$e(e){return tj(e)?e.sort().join(`,`):e}function v7(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function a$e(e,t){var n=Ej(),r=Ej(),i=Ej();return Q(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=r$e(t),c=i$e(s);r.set(c,{dataGroupId:a,data:o}),tj(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=r$e(e),s=i$e(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:v7(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:v7(a),data:a}]});else if(tj(o)){var l=[];Q(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:v7(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:v7(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:v7(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:v7(a)})}}}}),n}function o$e(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function s$e(e,t,n,r){var i=[],a=[];Q(RI(e.from),function(e){var n=o$e(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:v7(t.oldData[n]),groupIdDim:e.dimension})}),Q(RI(e.to),function(e){var r=o$e(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:v7(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&n$e(i,a,r)}function c$e(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){Q(RI(n.seriesTransition),function(e){Q(RI(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][eK]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=YQe(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Q(RI(i),function(e){s$e(e,r,n,t)});else{var a=a$e(r,n);Q(a.keys(),function(e){var n=a.get(e);n$e(n.oldSeries,n.newSeries,t)})}Q(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[eK]=!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()<GQe&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}var l$e=function(){function e(t,n){EY(this,e.decoratedMethods),this._outOfBrk=jY(null,n);var r=this._linear=jY(null,n);DY(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){dL(t,n)&&(e===0&&p$e(this,[t,n]),this._outOfBrk.setExtent2(e,t,n),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(n,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&t.depth===2)return e;for(var n=d$e,r=f$e,i=!0,a=0;a<this.breaks.length;a++){var o=this.breaks[a];if(e<=o.vmax){e>o.vmin?n+=o.vmin-r+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:n+=e-r,r=o.vmax,i=!1;break}n+=o.vmin-r+o.gapReal,r=o.vmax}return i&&(n+=e-r),n},transformOut:function(e,t){if(t&&t.depth===2)return e;for(var n=d$e,r=f$e,i=!0,a=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],c=n+s.vmin-r,l=c+s.gapReal;if(e<=l){a=e>c?s.vmin+(e-c)/(l-c)*(s.vmax-s.vmin):r+e-n,r=s.vmax,i=!1;break}n=l,r=s.vmax}return i&&(a=r+e-n),a}},e}();function u$e(e,t){return new l$e(e,t)}var d$e=0,f$e=0;function p$e(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};Q(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=y7(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:ZF(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function m$e(e,t,n,r,i,a){e!==`no`&&Q(n,function(n){var o=y7(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 h$e(e,t,n,r){Q(t,function(t){var i=y7(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 y7(e,t){var n=ZF(e.vmin,t[0]),r=XF(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 b7(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:zA(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(rj(e.gap)){var s=bj(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:XA(r,function(e){return!!e})}}function x7(e,t){return S7(t)===S7(e)}function S7(e){return e.start+`_\0_`+e.end}function g$e(e,t,n){var r=[];Q(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),Q(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=ZA(r,function(n){return x7(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 _$e(e,t,n,r){if(t.break){var i=t.break.parsedBreak,a=ZA(n,function(e){return x7(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:zA(a.gapParsed),gapReal:i.gapReal};return{tickVal:s[t.break.type],vBreak:{type:t.break.type,parsedBreak:s}}}}function v$e(e,t,n,r,i){i.original=b7(e,t,n);var a=i.transformed=b7(e,t,n),o=i.lookup;a.breaks=JA(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 y$e={vmin:`start`,vmax:`end`};function b$e(e,t){return t&&(e||={},e.break={type:y$e[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function x$e(){bEe({createBreakScaleMapper:u$e,pruneTicksByBreak:m$e,addBreaksToTicks:h$e,parseAxisBreakOption:b7,identifyAxisBreak:x7,serializeAxisBreakIdentifier:S7,retrieveAxisBreakPairs:g$e,getTicksBreakOutwardTransform:_$e,parseAxisBreakOptionInwardTransform:v$e,makeAxisLabelFormatterParamBreak:b$e})}var S$e=YI();function C$e(e,t){var n=ZA(e,function(e){return UH().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function w$e(e){Q(e,function(e){return e.shouldRemove=!0})}function T$e(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function E$e(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!UH())return;var o=UH().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 BF({ignoreModelZ:!0}),y=a.isHorizontal(),b=S$e(t).visualList||(S$e(t).visualList=[]);w$e(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]<r[0]&&r.reverse();var s=C$e(b,t);s.shouldRemove=!1;var c=new BF;C(s.zigzagRandomList,c,r[0],r[1],y,t),d&&c.on(`click`,function(){var e={type:e1,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),T$e(b);function C(e,t,n,i,a,o){var s={stroke:m,lineWidth:h,lineDash:g,fill:`none`},d=+!a,v=1-d,y=r[CV[v]]+r[wV[v]];function b(e){var t=[],n=[];t[d]=n[d]=e,t[v]=r[CV[v]],n[v]=y;var i={x1:t[0],y1:t[1],x2:n[0],y2:n[1]};return WR(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[CV[v]],T=0;;T++){var E=w===r[CV[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=UH().serializeAxisBreakIdentifier(o.breakOption);if(t.add(new KB({anid:`break_a_`+j,shape:{points:x},style:s,z:f})),o.gapReal!==0){t.add(new KB({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 GB({anid:`break_c_`+j,shape:{points:N},style:{fill:_,opacity:p.opacity},z:f}))}}}function D$e(e,t,n,r){var i=e.axis,a=n.transform;yj(r.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=JA(UH().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:UH().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&&(Zj(e,e,a),Zj(t,t,a))}function c(e,t){var n={x1:e[0],y1:e[1],x2:t[0],y2:t[1]};WR(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 qB(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 O$e(e,t,n){if(ZA(n,function(e){return!e}))return;var r=new OM;if(!GZ(n[0],n[1],r,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var i=yM();wM(i,i,-t);var a=JA(n,function(e){return e.transform?SM(yM(),i,e.transform):i});function o(e){var t=n[0].localRect,r=new OM(t[wV[e]]*a[0][0],t[wV[e]]*a[0][1]);return Math.abs(r.y)<1e-5}var s=.5;if(o(0)||o(1)){var c=JA(n,function(e,t){var n=e.localRect.clone();return n.applyTransform(a[t]),n}),l=new OM;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 OM,h=new OM;OM.scale(m,r,-s),OM.scale(h,r,1-s),BZ(n[0],m),BZ(n[1],h)}function k$e(e,t){var n={breaks:[]};return Q(t.breaks,function(r){if(r){var i=ZA(e.get(`breaks`,!0),function(e){return UH().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 A$e(){LMe({adjustBreakLabelPair:O$e,buildAxisBreakLine:D$e,rectCoordBuildBreakAxis:E$e,updateModelAxisBreak:k$e})}function j$e(e){UMe(e),x$e(),A$e()}function M$e(){rPe(N$e)}function N$e(e,t){Q(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=P$e(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function P$e(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof WY?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=sX(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 VM(e.x,e.y,a,o)}}var F$e=s({Axis:()=>pZ,ChartView:()=>cK,ComponentModel:()=>tW,ComponentView:()=>aK,List:()=>hY,Model:()=>jH,PRIORITY:()=>Lq,SeriesModel:()=>tK,color:()=>QSe,connect:()=>pke,dataTool:()=>xke,dependencies:()=>YOe,disConnect:()=>mke,disconnect:()=>OJ,dispose:()=>hke,env:()=>TA,extendChartView:()=>dje,extendComponentModel:()=>cje,extendComponentView:()=>lje,extendSeriesModel:()=>uje,format:()=>WAe,getCoordinateSystemDimensions:()=>_ke,getInstanceByDom:()=>kJ,getInstanceById:()=>gke,getMap:()=>bke,graphic:()=>UAe,helper:()=>AAe,init:()=>fke,innerDrawElementOnCanvas:()=>xq,matrix:()=>MSe,number:()=>VAe,parseGeoJSON:()=>eZ,parseGeoJson:()=>eZ,registerAction:()=>IJ,registerCoordinateSystem:()=>LJ,registerCustomSeries:()=>vke,registerLayout:()=>RJ,registerLoading:()=>HJ,registerLocale:()=>BH,registerMap:()=>UJ,registerPostInit:()=>NJ,registerPostUpdate:()=>PJ,registerPreprocessor:()=>jJ,registerProcessor:()=>MJ,registerTheme:()=>AJ,registerTransform:()=>WJ,registerUpdateLifecycle:()=>FJ,registerVisual:()=>zJ,setCanvasCreator:()=>yke,setPlatformAPI:()=>DA,throttle:()=>mK,time:()=>HAe,use:()=>qJ,util:()=>GAe,vector:()=>dSe,version:()=>JOe,zrUtil:()=>tSe,zrender:()=>NCe});qJ([hMe]),qJ([cMe]),qJ([IMe,NNe,WNe,SPe,FPe,kIe,fLe,gRe,cze,vze,wze,Pze,YBe,CVe,BVe,cHe,mHe,OHe,FHe,aUe,pUe,AUe,OWe]),qJ(uGe),qJ(GGe),qJ(CIe),qJ(oKe),qJ(JBe),qJ(dKe),qJ(ZKe),qJ(dqe),qJ(yJe),qJ(JJe),qJ(r8),qJ(bYe),qJ(CYe),qJ(RYe),qJ(YYe),qJ(nXe),qJ(dXe),qJ(OXe),qJ($Xe),qJ(BXe),qJ(QXe),qJ(IZe),qJ(AZe),qJ(FZe),qJ(HZe),qJ(YZe),qJ(dQe),qJ(mQe),qJ(c$e),qJ(Eje),qJ(j$e),qJ(M$e),qJ(CPe);var I$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return`${t++}`}})),L$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,n=null;return function(){var r=this,i=[...arguments];clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}})),C7=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`})),R$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=r(L$e()),n=C7();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()}}}})),z$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=C7(),n=r(L$e());function r(e){return e&&e.__esModule?e:{default:e}}e.createSensor=function(e,r){var i=void 0,a=[],o=(0,n.default)(function(){a.forEach(function(t){t(e)})}),s=function(){var t=new ResizeObserver(o);return t.observe(e),o(),t},c=function(e){i||=s(),a.indexOf(e)===-1&&a.push(e)},l=function(){i&&i.disconnect(),a=[],i=void 0,e.removeAttribute(t.SizeSensorId),r&&r()};return{element:e,bind:c,destroy:l,unbind:function(e){var t=a.indexOf(e);t!==-1&&a.splice(t,1),a.length===0&&i&&l()}}}})),B$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var t=R$e(),n=z$e();e.createSensor=typeof ResizeObserver<`u`?n.createSensor:t.createSensor})),V$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=e.Sensors=void 0;var t=i(I$e()),n=B$e(),r=C7();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)}})),H$e=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var t=V$e();e.bind=function(e,n){var r=(0,t.getSensor)(e);return r.bind(n),function(){r.unbind(n)}},e.clear=function(e){var n=(0,t.getSensor)(e);(0,t.removeSensor)(n)},e.ver=`1.0.3`}))();function U$e(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}function w7(e){return typeof e==`function`}function W$e(e){return typeof e==`string`}var T7=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}}))()),G$e=function(e){bA(t,e);function t(t){var n=e.call(this,t)||this;return n.echarts=F$e,n}return t}(function(e){bA(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(!(w7(t)&&!t(e,this.props))){if(!(0,T7.default)(e.theme,this.props.theme)||!(0,T7.default)(e.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}var n=this.getEchartsInstance();(0,T7.default)(e.onEvents,this.props.onEvents)||(this.unbindEvents(n),this.bindEvents(n,this.props.onEvents));var r=[`option`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`];(0,T7.default)(U$e(this.props,r),U$e(e,r))||this.updateEChartsOption(),(!(0,T7.default)(e.style,this.props.style)||!(0,T7.default)(e.className,this.props.className))&&this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.initEchartsInstance=function(){return SA(this,void 0,void 0,function(){var e=this;return CA(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=xA({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,H$e.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){return SA(this,void 0,void 0,function(){var e,t,n,r,i,a,o=this;return CA(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||{}),w7(n)&&n(a),this.ele&&i&&(0,H$e.bind)(this.ele,function(){o.resize()}),[2]}})})},t.prototype.bindEvents=function(e,t){var n=this,r=function(t,r){if(W$e(t)&&w7(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=Kxe(t,[`style`,`className`,`echarts`,`option`,`theme`,`notMerge`,`replaceMerge`,`lazyUpdate`,`showLoading`,`loadingOption`,`opts`,`onChartReady`,`onEvents`,`shouldSetOption`,`autoResize`]),o=xA({height:300},n);return h.createElement(`div`,xA({ref:function(t){e.ele=t},style:o,className:`echarts-for-react ${i}`},a))},t}(h.PureComponent)),K$e=[`careless`,`unknown`,`nervous`,`normal`],q$e={careless:`#fa8c16`,unknown:`#ff4d4f`,nervous:`#722ed1`,normal:`#52c41a`};function J$e(e){let t={careless:{},unknown:{},nervous:{},normal:{}};for(let n of e)for(let e of n.scores){let n=e.subject_name||`科目${e.subject_id}`;for(let r of e.review_statuses||[])t[r][n]=(t[r][n]||0)+1}let n=K$e.map(e=>{let n=t[e],r=Object.entries(n).map(([t,n])=>({name:`${t} (${n})`,value:n,itemStyle:{color:q$e[e]}})),i=r.reduce((e,t)=>e+t.value,0);return i===0?null:{name:`${hA[e]} (${i})`,value:i,itemStyle:{color:q$e[e]},children:r}}).filter(Boolean);return{name:`复盘统计`,children:n.length?n:[{name:`暂无数据`,value:0}]}}function Y$e({exams:e}){let t=J$e(e);return K$e.some(t=>e.some(e=>e.scores.some(e=>(e.review_statuses||[]).includes(t))))?(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(G$e,{option:{tooltip:{trigger:`item`,formatter:e=>e.value!=null&&e.value>0?`${e.name}<br/>次数: ${e.value}`:e.name},series:[{type:`tree`,data:[t],top:20,left:40,bottom:20,right:120,symbolSize:10,orient:`LR`,label:{position:`left`,verticalAlign:`middle`,align:`right`,fontSize:13},leaves:{label:{position:`right`,verticalAlign:`middle`,align:`left`}},emphasis:{focus:`descendant`},expandAndCollapse:!0,animationDuration:400,animationDurationUpdate:400}]},style:{height:360,width:`100%`},notMerge:!0}),(0,Y.jsx)(`p`,{style:{color:`#888`,fontSize:12,marginTop:8},children:`树状图按「状态 → 科目」统计次数;同一科可多选状态,分别计数`})]}):(0,Y.jsx)(`div`,{style:{textAlign:`center`,padding:32,color:`#999`},children:`暂无复盘数据,请在录入成绩或下方复盘中填写考试状态`})}function X$e(e,t){if(e&&typeof e==`object`&&`response`in e){let t=e.response?.data?.detail;if(typeof t==`string`)return t;if(Array.isArray(t))return t.map(e=>e?.msg||String(e)).join(`;`)}return t}function Z$e({exams:e,onRefresh:t}){let[n,r]=(0,h.useState)(!1),[i,a]=(0,h.useState)(),[o,s]=(0,h.useState)({}),[c,l]=(0,h.useState)(!1),u=(0,h.useMemo)(()=>e.map(e=>({value:e.id,label:`${e.exam_date} · ${_A[e.exam_type]}${e.title?` · ${e.title}`:``}`})),[e]),d=e.find(e=>e.id===i);return(0,h.useEffect)(()=>{n&&!i&&e.length&&a(e[0].id)},[n,i,e]),(0,h.useEffect)(()=>{if(!d){s({});return}let e={};for(let t of d.scores)e[t.subject_id]=[...t.review_statuses||[]];s(e)},[d]),(0,Y.jsx)(np,{style:{marginTop:16},activeKey:n?[`review`]:[],onChange:e=>r(e.includes(`review`)),items:[{key:`review`,label:`复盘`,children:(0,Y.jsxs)(Iy,{direction:`vertical`,size:`middle`,style:{width:`100%`},children:[e.length===0?(0,Y.jsx)(eD.Text,{type:`secondary`,children:`请先录入至少一次考试成绩`}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Iy,{wrap:!0,style:{width:`100%`},children:[(0,Y.jsx)(hC,{style:{minWidth:260,flex:1},placeholder:`选择考试`,value:i,onChange:a,options:u}),(0,Y.jsx)(Cp,{type:`primary`,loading:c,onClick:async()=>{if(!d){ax.warning(`请选择考试`);return}l(!0);try{await Qk.update(d.id,{scores:d.scores.map(e=>({subject_id:e.subject_id,total_score:Number(e.total_score),obtained_score:Number(e.obtained_score),review_statuses:o[e.subject_id]||[]}))}),ax.success(`复盘已保存`),t()}catch(e){ax.error(X$e(e,`保存失败`))}finally{l(!1)}},children:`保存复盘`})]}),d&&(0,Y.jsx)(FE,{size:`small`,pagination:!1,rowKey:`subject_id`,dataSource:d.scores,scroll:{x:480},columns:[{title:`科目`,dataIndex:`subject_name`,width:80},{title:`得分`,width:100,render:(e,t)=>`${t.obtained_score}/${t.total_score}`},{title:`考试状态(可多选)`,render:(e,t)=>(0,Y.jsx)(xg.Group,{options:gA,value:o[t.subject_id]||[],onChange:e=>s(n=>({...n,[t.subject_id]:e}))})}]})]}),(0,Y.jsx)(eD.Text,{strong:!0,children:`复盘统计`}),(0,Y.jsx)(Y$e,{exams:e})]})}]})}function Q$e({studentId:e,subjects:t,exams:n,onRefresh:r}){let[i,a]=(0,h.useState)(!1),[o,s]=(0,h.useState)(null),[c]=jy.useForm(),[l,u]=(0,h.useState)(!1);(0,h.useEffect)(()=>{i&&o?c.setFieldsValue({exam_type:o.exam_type,exam_date:(0,Ng.default)(o.exam_date),title:o.title,scores:t.map(e=>{let t=o.scores.find(t=>t.subject_id===e.id);return t?{subject_id:e.id,total_score:t.total_score,obtained_score:t.obtained_score,review_statuses:t.review_statuses||[]}:{subject_id:e.id,total_score:void 0,obtained_score:void 0,review_statuses:[]}})}):i&&c.setFieldsValue({exam_type:`weekly`,exam_date:(0,Ng.default)(),scores:t.map(e=>({subject_id:e.id,review_statuses:[]}))})},[i,o,t,c]);let d=()=>{s(null),a(!0)},f=e=>{s(e),a(!0)},p=async()=>{try{let n=await c.validateFields(),i=(n.scores||[]).map((e,n)=>({subject_id:t[n]?.id??e.subject_id,total_score:e.total_score,obtained_score:e.obtained_score,review_statuses:e.review_statuses||[]})).filter(e=>e.subject_id!=null&&e.total_score!=null&&e.obtained_score!=null&&e.total_score>0).map(e=>({subject_id:e.subject_id,total_score:Number(e.total_score),obtained_score:Number(e.obtained_score),review_statuses:e.review_statuses||[]}));if(i.length===0){ax.warning(`请至少录入一科成绩`);return}u(!0);let s={exam_type:n.exam_type,exam_date:n.exam_date.format(`YYYY-MM-DD`),title:n.title||void 0,scores:i};o?(await Qk.update(o.id,s),ax.success(`已更新`)):(await Qk.create(e,s),ax.success(`已添加`)),a(!1),r()}catch{}finally{u(!1)}},m=async e=>{Gx.confirm({title:`确认删除该考试记录?`,onOk:async()=>{await Qk.remove(e.id),ax.success(`已删除`),r()}})};return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(Cp,{type:`primary`,onClick:d,style:{marginBottom:16},children:`录入成绩`}),(0,Y.jsx)(FE,{rowKey:`id`,columns:[{title:`日期`,dataIndex:`exam_date`,key:`exam_date`,width:110},{title:`类型`,dataIndex:`exam_type`,key:`exam_type`,width:80,render:e=>_A[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)(Iy,{children:[(0,Y.jsx)(Cp,{type:`link`,icon:(0,Y.jsx)(phe,{}),onClick:()=>f(t)}),(0,Y.jsx)(Cp,{type:`link`,danger:!0,icon:(0,Y.jsx)(fD,{}),onClick:()=>m(t)})]})}],dataSource:n,pagination:{pageSize:10},scroll:{x:600}}),(0,Y.jsx)(Z$e,{exams:n,onRefresh:r}),(0,Y.jsx)(Gx,{title:o?`编辑考试`:`录入成绩`,open:i,onCancel:()=>a(!1),onOk:p,confirmLoading:l,width:900,destroyOnHidden:!0,children:(0,Y.jsxs)(jy,{form:c,layout:`vertical`,children:[(0,Y.jsxs)(Iy,{style:{width:`100%`},size:`large`,wrap:!0,children:[(0,Y.jsx)(jy.Item,{name:`exam_type`,label:`考试类型`,rules:[{required:!0}],children:(0,Y.jsx)(hC,{style:{width:120},options:Object.entries(_A).map(([e,t])=>({value:e,label:t}))})}),(0,Y.jsx)(jy.Item,{name:`exam_date`,label:`考试日期`,rules:[{required:!0}],children:(0,Y.jsx)(Wv,{})}),(0,Y.jsx)(jy.Item,{name:`title`,label:`备注标题`,children:(0,Y.jsx)(ob,{placeholder:`可选`,style:{width:200}})})]}),(0,Y.jsx)(jy.List,{name:`scores`,children:e=>(0,Y.jsx)(FE,{size:`small`,pagination:!1,dataSource:e.map((e,n)=>({...e,subject:t[n]})),rowKey:`key`,scroll:{x:720},columns:[{title:`科目`,width:70,render:(e,t)=>(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(jy.Item,{name:[t.name,`subject_id`],hidden:!0,initialValue:t.subject?.id,children:(0,Y.jsx)(Db,{})}),t.subject?.name]})},{title:`总分`,width:100,render:(e,t)=>(0,Y.jsx)(jy.Item,{name:[t.name,`total_score`],noStyle:!0,children:(0,Y.jsx)(Db,{min:0,placeholder:`总分`,style:{width:90}})})},{title:`得分`,width:100,render:(e,t)=>(0,Y.jsx)(jy.Item,{name:[t.name,`obtained_score`],noStyle:!0,children:(0,Y.jsx)(Db,{min:0,placeholder:`得分`,style:{width:90}})})},{title:`占比`,width:70,render:(e,t)=>{let n=c.getFieldValue([`scores`,t.name,`total_score`]),r=c.getFieldValue([`scores`,t.name,`obtained_score`]);return n>0&&r!=null?`${(r/n*100).toFixed(1)}%`:`-`}},{title:`考试状态`,render:(e,t)=>(0,Y.jsx)(jy.Item,{name:[t.name,`review_statuses`],noStyle:!0,initialValue:[],children:(0,Y.jsx)(xg.Group,{options:gA})})}]})})]})})]})}function $$e({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)(BE,{children:_A[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)(BE,{color:`orange`,style:{marginTop:4},children:[e.exam_date,` `,_A[e.exam_type]]},e.id))]}),(0,Y.jsx)(FE,{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 E7={up:`#52c41a`,down:`#ff4d4f`,flat:`#8c8c8c`,volatile:`#fa8c16`};function e1e({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=E7.flat;return e.direction===`up`&&(n=E7.up),e.direction===`down`&&(n=E7.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:E7.volatile,borderColor:`#fff`,borderWidth:2},label:{show:!1}}));return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(G$e,{option:{title:{text:`${t} 成绩占比趋势`,left:`center`,textStyle:{fontSize:16}},tooltip:{trigger:`axis`,formatter:t=>{let n=e[t[0]?.dataIndex??0];if(!n)return``;let r=_A[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?E7.volatile:n?.direction===`up`?E7.up:n?.direction===`down`?E7.down:`#1677ff`}},lineStyle:{opacity:0},markPoint:o.length?{data:o}:void 0,z:10},...a],legend:{bottom:0,data:[{name:`上升`,itemStyle:{color:E7.up}},{name:`下降`,itemStyle:{color:E7.down}},{name:`大幅波动`,itemStyle:{color:E7.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 D7(e){return e.error_message?!1:e.status===`pending`||e.status===`ocr_done`&&!e.question_text}function O7(e){return e.status===`pending`?`正在识别文字(约 10–30 秒)…`:e.status===`ocr_done`?`正在标注错题并生成解题思路(约 30–90 秒)…`:`正在识别、标注并生成解题思路…`}function t1e({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 Jk.get(e,{responseType:`blob`});if(r)return;n=URL.createObjectURL(t.data),o(n),c(!1)}catch{t&&!r?await i(t):r||c(!0)}},a=`/wrong-questions/${e}/annotated-image`,s=`/wrong-questions/${e}/cropped-image`,l=`/wrong-questions/${e}/image`;return t===`annotated`?i(a,l):t===`cropped`?i(s,a):i(l),()=>{r=!0,n&&URL.revokeObjectURL(n)}},[e,t]),s?(0,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 n1e(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var r1e=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i1e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a1e={};function o1e(e,t){return((t||a1e).jsx?i1e:r1e).test(e)}var s1e=/[ \t\n\f\r]/g;function c1e(e){return typeof e==`object`?e.type===`text`?l1e(e.value):!1:l1e(e)}function l1e(e){return e.replace(s1e,``)===``}var k7=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};k7.prototype.normal={},k7.prototype.property={},k7.prototype.space=void 0;function u1e(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new k7(n,r,t)}function A7(e){return e.toLowerCase()}var j7=class{constructor(e,t){this.attribute=t,this.property=e}};j7.prototype.attribute=``,j7.prototype.booleanish=!1,j7.prototype.boolean=!1,j7.prototype.commaOrSpaceSeparated=!1,j7.prototype.commaSeparated=!1,j7.prototype.defined=!1,j7.prototype.mustUseProperty=!1,j7.prototype.number=!1,j7.prototype.overloadedBoolean=!1,j7.prototype.property=``,j7.prototype.spaceSeparated=!1,j7.prototype.space=void 0;var M7=s({boolean:()=>N7,booleanish:()=>P7,commaOrSpaceSeparated:()=>z7,commaSeparated:()=>R7,number:()=>I7,overloadedBoolean:()=>F7,spaceSeparated:()=>L7}),d1e=0,N7=B7(),P7=B7(),F7=B7(),I7=B7(),L7=B7(),R7=B7(),z7=B7();function B7(){return 2**++d1e}var V7=Object.keys(M7),H7=class extends j7{constructor(e,t,n,r){let i=-1;if(super(e,t),f1e(this,`space`,r),typeof n==`number`)for(;++i<V7.length;){let e=V7[i];f1e(this,V7[i],(n&M7[e])===M7[e])}}};H7.prototype.defined=!0;function f1e(e,t,n){n&&(e[t]=n)}function U7(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new H7(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[A7(r)]=r,n[A7(a.attribute)]=r}return new k7(t,n,e.space)}var p1e=U7({properties:{ariaActiveDescendant:null,ariaAtomic:P7,ariaAutoComplete:null,ariaBusy:P7,ariaChecked:P7,ariaColCount:I7,ariaColIndex:I7,ariaColSpan:I7,ariaControls:L7,ariaCurrent:null,ariaDescribedBy:L7,ariaDetails:null,ariaDisabled:P7,ariaDropEffect:L7,ariaErrorMessage:null,ariaExpanded:P7,ariaFlowTo:L7,ariaGrabbed:P7,ariaHasPopup:null,ariaHidden:P7,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:L7,ariaLevel:I7,ariaLive:null,ariaModal:P7,ariaMultiLine:P7,ariaMultiSelectable:P7,ariaOrientation:null,ariaOwns:L7,ariaPlaceholder:null,ariaPosInSet:I7,ariaPressed:P7,ariaReadOnly:P7,ariaRelevant:null,ariaRequired:P7,ariaRoleDescription:L7,ariaRowCount:I7,ariaRowIndex:I7,ariaRowSpan:I7,ariaSelected:P7,ariaSetSize:I7,ariaSort:null,ariaValueMax:I7,ariaValueMin:I7,ariaValueNow:I7,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function m1e(e,t){return t in e?e[t]:t}function h1e(e,t){return m1e(e,t.toLowerCase())}var g1e=U7({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:R7,acceptCharset:L7,accessKey:L7,action:null,allow:null,allowFullScreen:N7,allowPaymentRequest:N7,allowUserMedia:N7,alpha:N7,alt:null,as:null,async:N7,autoCapitalize:null,autoComplete:L7,autoFocus:N7,autoPlay:N7,blocking:L7,capture:null,charSet:null,checked:N7,cite:null,className:L7,closedBy:null,colorSpace:null,cols:I7,colSpan:I7,command:null,commandFor:null,content:null,contentEditable:P7,controls:N7,controlsList:L7,coords:I7|R7,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N7,defer:N7,dir:null,dirName:null,disabled:N7,download:F7,draggable:P7,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N7,formTarget:null,headers:L7,height:I7,hidden:F7,high:I7,href:null,hrefLang:null,htmlFor:L7,httpEquiv:L7,id:null,imageSizes:null,imageSrcSet:null,inert:N7,inputMode:null,integrity:null,is:null,isMap:N7,itemId:null,itemProp:L7,itemRef:L7,itemScope:N7,itemType:L7,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N7,low:I7,manifest:null,max:null,maxLength:I7,media:null,method:null,min:null,minLength:I7,multiple:N7,muted:N7,name:null,nonce:null,noModule:N7,noValidate:N7,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:N7,optimum:I7,pattern:null,ping:L7,placeholder:null,playsInline:N7,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N7,referrerPolicy:null,rel:L7,required:N7,reversed:N7,rows:I7,rowSpan:I7,sandbox:L7,scope:null,scoped:N7,seamless:N7,selected:N7,shadowRootClonable:N7,shadowRootCustomElementRegistry:N7,shadowRootDelegatesFocus:N7,shadowRootMode:null,shadowRootSerializable:N7,shape:null,size:I7,sizes:null,slot:null,span:I7,spellCheck:P7,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I7,step:null,style:null,tabIndex:I7,target:null,title:null,translate:null,type:null,typeMustMatch:N7,useMap:null,value:P7,width:I7,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:L7,axis:null,background:null,bgColor:null,border:I7,borderColor:null,bottomMargin:I7,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N7,declare:N7,event:null,face:null,frame:null,frameBorder:null,hSpace:I7,leftMargin:I7,link:null,longDesc:null,lowSrc:null,marginHeight:I7,marginWidth:I7,noResize:N7,noHref:N7,noShade:N7,noWrap:N7,object:null,profile:null,prompt:null,rev:null,rightMargin:I7,rules:null,scheme:null,scrolling:P7,standby:null,summary:null,text:null,topMargin:I7,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I7,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:N7,disablePictureInPicture:N7,disableRemotePlayback:N7,exportParts:R7,part:L7,prefix:null,property:null,results:I7,security:null,unselectable:null},space:`html`,transform:h1e}),_1e=U7({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:z7,accentHeight:I7,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I7,amplitude:I7,arabicForm:null,ascent:I7,attributeName:null,attributeType:null,azimuth:I7,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I7,by:null,calcMode:null,capHeight:I7,className:L7,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:I7,diffuseConstant:I7,direction:null,display:null,dur:null,divisor:I7,dominantBaseline:null,download:N7,dx:null,dy:null,edgeMode:null,editable:null,elevation:I7,enableBackground:null,end:null,event:null,exponent:I7,externalResourcesRequired:null,fill:null,fillOpacity:I7,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:R7,g2:R7,glyphName:R7,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I7,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I7,horizOriginX:I7,horizOriginY:I7,id:null,ideographic:I7,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I7,k:I7,k1:I7,k2:I7,k3:I7,k4:I7,kernelMatrix:z7,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I7,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:I7,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:I7,overlineThickness:I7,paintOrder:null,panose1:null,path:null,pathLength:I7,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:L7,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I7,pointsAtY:I7,pointsAtZ:I7,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:z7,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:z7,rev:z7,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:z7,requiredFeatures:z7,requiredFonts:z7,requiredFormats:z7,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:I7,specularExponent:I7,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I7,strikethroughThickness:I7,string:null,stroke:null,strokeDashArray:z7,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I7,strokeOpacity:I7,strokeWidth:null,style:null,surfaceScale:I7,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:z7,tabIndex:I7,tableValues:null,target:null,targetX:I7,targetY:I7,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:z7,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I7,underlineThickness:I7,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I7,values:null,vAlphabetic:I7,vMathematical:I7,vectorEffect:null,vHanging:I7,vIdeographic:I7,version:null,vertAdvY:I7,vertOriginX:I7,vertOriginY:I7,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I7,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:m1e}),v1e=U7({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()}}),y1e=U7({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:h1e}),b1e=U7({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),x1e={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`},S1e=/[A-Z]/g,C1e=/-[a-z]/g,w1e=/^data[-\w.:]+$/i;function T1e(e,t){let n=A7(t),r=t,i=j7;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&w1e.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(C1e,D1e);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!C1e.test(e)){let n=e.replace(S1e,E1e);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=H7}return new i(r,t)}function E1e(e){return`-`+e.toLowerCase()}function D1e(e){return e.charAt(1).toUpperCase()}var O1e=u1e([p1e,g1e,v1e,y1e,b1e],`html`),W7=u1e([p1e,_1e,v1e,y1e,b1e],`svg`);function k1e(e){return e.join(` `).trim()}var A1e=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})),j1e=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(A1e());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}})),M1e=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))}})),N1e=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(j1e()),r=M1e();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})),P1e=F1e(`end`),G7=F1e(`start`);function F1e(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 I1e(e){let t=G7(e),n=P1e(e);if(t&&n)return{start:t,end:n}}function K7(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?L1e(e.position):`start`in e||`end`in e?L1e(e):`line`in e||`column`in e?q7(e):``}function q7(e){return R1e(e&&e.line)+`:`+R1e(e&&e.column)}function L1e(e){return q7(e&&e.start)+`-`+q7(e&&e.end)}function R1e(e){return e&&typeof e==`number`?e:1}var J7=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=K7(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}};J7.prototype.file=``,J7.prototype.name=``,J7.prototype.reason=``,J7.prototype.message=``,J7.prototype.stack=``,J7.prototype.column=void 0,J7.prototype.line=void 0,J7.prototype.ancestors=void 0,J7.prototype.cause=void 0,J7.prototype.fatal=void 0,J7.prototype.place=void 0,J7.prototype.ruleId=void 0,J7.prototype.source=void 0;var z1e=l(N1e(),1),Y7={}.hasOwnProperty,B1e=new Map,V1e=/[A-Z]/g,H1e=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),U1e=new Set([`td`,`th`]);function W1e(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=e0e(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=$1e(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`?W7:O1e,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=G1e(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function G1e(e,t,n){if(t.type===`element`)return K1e(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return q1e(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Y1e(e,t,n);if(t.type===`mdxjsEsm`)return J1e(e,t);if(t.type===`root`)return X1e(e,t,n);if(t.type===`text`)return Z1e(e,t)}function K1e(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=W7,e.schema=i),e.ancestors.push(t);let a=a0e(e,t.tagName,!1),o=t0e(e,t),s=Z7(e,t);return H1e.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!c1e(e):!0})),Q1e(e,o,a,t),X7(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function q1e(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)}Q7(e,t.position)}function J1e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Q7(e,t.position)}function Y1e(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=W7,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:a0e(e,t.name,!0),o=n0e(e,t),s=Z7(e,t);return Q1e(e,o,a,t),X7(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function X1e(e,t,n){let r={};return X7(r,Z7(e,t)),e.create(t,e.Fragment,r,n)}function Z1e(e,t){return t.value}function Q1e(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function X7(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function $1e(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 e0e(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=G7(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 t0e(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Y7.call(t.properties,i)){let a=r0e(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&U1e.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 n0e(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 Q7(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 Q7(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Z7(e,t){let n=[],r=-1,i=e.passKeys?new Map:B1e;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=G1e(e,a,o);s!==void 0&&n.push(s)}return n}function r0e(e,t,n){let r=T1e(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?n1e(n):k1e(n)),r.property===`style`){let t=typeof n==`object`?n:i0e(e,String(n));return e.stylePropertyNameCase===`css`&&(t=o0e(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?x1e[r.property]||r.property:r.attribute,n]}}function i0e(e,t){try{return(0,z1e.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new J7("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 a0e(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=o1e(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=o1e(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Y7.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Q7(e)}function Q7(e,t){let n=new J7("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 o0e(e){let t={},n;for(n in e)Y7.call(e,n)&&(t[s0e(n)]=e[n]);return t}function s0e(e){let t=e.replace(V1e,c0e);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function c0e(e){return`-`+e.toLowerCase()}var $7={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`]},l0e={};function u0e(e,t){let n=t||l0e;return d0e(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function d0e(e,t,n){if(p0e(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 f0e(e.children,t,n)}return Array.isArray(e)?f0e(e,t,n):``}function f0e(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=d0e(e[i],t,n);return r.join(``)}function p0e(e){return!!(e&&typeof e==`object`)}function e9(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 t9(e,t){return e.length>0?(e9(e,e.length,0,t),e):t}var m0e={}.hasOwnProperty;function h0e(e){let t={},n=-1;for(;++n<e.length;)g0e(t,e[n]);return t}function g0e(e,t){let n;for(n in t){let r=(m0e.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){m0e.call(r,a)||(r[a]=[]);let e=i[a];_0e(r[a],Array.isArray(e)?e:e?[e]:[])}}}function _0e(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);e9(e,0,0,r)}var n9=l9(/[A-Za-z]/),r9=l9(/[\dA-Za-z]/),v0e=l9(/[#-'*+\--9=?A-Z^-~]/);function i9(e){return e!==null&&(e<32||e===127)}var a9=l9(/\d/),y0e=l9(/[\dA-Fa-f]/),b0e=l9(/[!-/:-@[-`{-~]/);function o9(e){return e!==null&&e<-2}function s9(e){return e!==null&&(e<0||e===32)}function c9(e){return e===-2||e===-1||e===32}var x0e=l9(/\p{P}|\p{S}/u),S0e=l9(/\s/);function l9(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function u9(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return c9(r)?(e.enter(n),s(r)):t(r)}function s(r){return c9(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var C0e={tokenize:w0e};function w0e(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`),u9(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 o9(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var T0e={tokenize:D0e},E0e={tokenize:O0e};function D0e(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 e9(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(E0e,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(E0e,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 o9(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++;e9(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 O0e(e,t,n){return u9(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function k0e(e){if(e===null||s9(e)||S0e(e))return 1;if(x0e(e))return 2}function d9(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 f9={name:`attention`,resolveAll:A0e,tokenize:j0e};function A0e(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};M0e(d,-c),M0e(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=t9(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=t9(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=t9(l,d9(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=t9(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=t9(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,e9(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 j0e(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=k0e(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=k0e(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 M0e(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var N0e={name:`autolink`,tokenize:P0e};function P0e(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 n9(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||r9(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||r9(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||i9(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):v0e(t)?(e.consume(t),l):n(t)}function u(e){return r9(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||r9(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var p9={partial:!0,tokenize:F0e};function F0e(e,t,n){return r;function r(t){return c9(t)?u9(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||o9(e)?t(e):n(e)}}var I0e={continuation:{tokenize:R0e},exit:z0e,name:`blockQuote`,tokenize:L0e};function L0e(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 c9(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function R0e(e,t,n){let r=this;return i;function i(t){return c9(t)?u9(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(I0e,t,n)(r)}}function z0e(e){e.exit(`blockQuote`)}var B0e={name:`characterEscape`,tokenize:V0e};function V0e(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 b0e(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var H0e=document.createElement(`i`);function m9(e){let t=`&`+e+`;`;H0e.innerHTML=t;let n=H0e.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}var U0e={name:`characterReference`,tokenize:W0e};function W0e(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=r9,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=y0e,u):(e.enter(`characterReferenceValue`),a=7,o=a9,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===r9&&!m9(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 G0e={partial:!0,tokenize:J0e},K0e={concrete:!0,name:`codeFenced`,tokenize:q0e};function q0e(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`),c9(t)?u9(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||o9(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(G0e,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||o9(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):c9(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),u9(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||o9(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||o9(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&&c9(t)?u9(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||o9(t)?e.check(G0e,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||o9(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`),c9(t)?u9(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`),c9(t)?u9(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||o9(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function J0e(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 h9={name:`codeIndented`,tokenize:X0e},Y0e={partial:!0,tokenize:Z0e};function X0e(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),u9(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):o9(t)?e.attempt(Y0e,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||o9(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function Z0e(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):o9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):u9(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):o9(e)?i(e):n(e)}}var Q0e={name:`codeText`,previous:e2e,resolve:$0e,tokenize:t2e};function $0e(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 e2e(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function t2e(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)):o9(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||o9(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 n2e=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&&g9(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),g9(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),g9(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);g9(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);g9(this.left,t.reverse())}}};function g9(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 r2e(e){let t={},n=-1,r,i,a,o,s,c,l,u=new n2e(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,i2e(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 e9(e,0,1/0,u.slice(0)),!l}function i2e(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 a2e={resolve:s2e,tokenize:c2e},o2e={partial:!0,tokenize:l2e};function s2e(e){return r2e(e),e}function c2e(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):o9(t)?e.check(o2e,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 l2e(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),u9(e,a,`linePrefix`)}function a(i){if(i===null||o9(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 u2e(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||i9(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||o9(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||s9(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||i9(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 d2e(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):o9(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||o9(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!c9(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function f2e(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):o9(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),u9(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||o9(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 _9(e,t){let n;return r;function r(i){return o9(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):c9(i)?u9(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}function v9(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var p2e={name:`definition`,tokenize:h2e},m2e={partial:!0,tokenize:g2e};function h2e(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return d2e.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=v9(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 s9(t)?_9(e,l)(t):l(t)}function l(t){return u2e(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(m2e,d,d)(t)}function d(t){return c9(t)?u9(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||o9(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function g2e(e,t,n){return r;function r(t){return s9(t)?_9(e,i)(t):n(t)}function i(t){return f2e(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return c9(t)?u9(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||o9(e)?t(e):n(e)}}var _2e={name:`hardBreakEscape`,tokenize:v2e};function v2e(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return o9(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var y2e={name:`headingAtx`,resolve:b2e,tokenize:x2e};function b2e(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`},e9(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function x2e(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||s9(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||o9(n)?(e.exit(`atxHeading`),t(n)):c9(n)?u9(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||s9(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var S2e=`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(`.`),C2e=[`pre`,`script`,`style`,`textarea`],w2e={concrete:!0,name:`htmlFlow`,resolveTo:D2e,tokenize:O2e},T2e={partial:!0,tokenize:A2e},E2e={partial:!0,tokenize:k2e};function D2e(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 O2e(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):n9(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):n9(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 n9(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||s9(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&C2e.includes(l)?(i=1,r.interrupt?t(s):O(s)):S2e.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||r9(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 c9(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||n9(t)?(e.consume(t),b):c9(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||r9(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):c9(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):c9(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||o9(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||s9(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||c9(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||o9(t)?O(t):c9(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):o9(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(T2e,R,k)(t)):t===null||o9(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(E2e,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||o9(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 C2e.includes(n)?(e.consume(t),L):O(t)}return n9(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||o9(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function k2e(e,t,n){let r=this;return i;function i(t){return o9(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 A2e(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(p9,t,n)}}var j2e={name:`htmlText`,tokenize:M2e};function M2e(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):n9(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):n9(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):o9(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):o9(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):o9(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):o9(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return n9(t)?(e.consume(t),S):n(t)}function S(t){return t===45||r9(t)?(e.consume(t),S):C(t)}function C(t){return o9(t)?(o=C,N(t)):c9(t)?(e.consume(t),C):M(t)}function w(t){return t===45||r9(t)?(e.consume(t),w):t===47||t===62||s9(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||n9(t)?(e.consume(t),E):o9(t)?(o=T,N(t)):c9(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||r9(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):o9(t)?(o=D,N(t)):c9(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):o9(t)?(o=O,N(t)):c9(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):o9(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||s9(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||s9(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 c9(t)?u9(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 y9={name:`labelEnd`,resolveAll:I2e,resolveTo:L2e,tokenize:R2e},N2e={tokenize:z2e},P2e={tokenize:B2e},F2e={tokenize:V2e};function I2e(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&&e9(e,0,e.length,n),e}function L2e(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=t9(s,e.slice(a+1,a+r+3)),s=t9(s,[[`enter`,u,t]]),s=t9(s,d9(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=t9(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=t9(s,e.slice(o+1)),s=t9(s,[[`exit`,c,t]]),e9(e,a,e.length,s),e}function R2e(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(v9(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(N2e,u,o?u:d)(t):t===91?e.attempt(P2e,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(F2e,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function z2e(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 s9(t)?_9(e,a)(t):a(t)}function a(t){return t===41?u(t):u2e(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return s9(t)?_9(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?f2e(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return s9(t)?_9(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 B2e(e,t,n){let r=this;return i;function i(t){return d2e.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(v9(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function V2e(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 H2e={name:`labelStartImage`,resolveAll:y9.resolveAll,tokenize:U2e};function U2e(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 W2e={name:`labelStartLink`,resolveAll:y9.resolveAll,tokenize:G2e};function G2e(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 b9={name:`lineEnding`,tokenize:K2e};function K2e(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),u9(e,t,`linePrefix`)}}var x9={name:`thematicBreak`,tokenize:q2e};function q2e(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||o9(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),c9(t)?u9(e,s,`whitespace`)(t):s(t))}}var S9={continuation:{tokenize:Z2e},exit:$2e,name:`list`,tokenize:X2e},J2e={partial:!0,tokenize:e4e},Y2e={partial:!0,tokenize:Q2e};function X2e(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:a9(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(x9,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 a9(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(p9,r.interrupt?n:u,e.attempt(J2e,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return c9(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 Z2e(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(p9,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,u9(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!c9(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(Y2e,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,u9(e,e.attempt(S9,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Q2e(e,t,n){let r=this;return u9(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 $2e(e){e.exit(this.containerState.type)}function e4e(e,t,n){let r=this;return u9(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!c9(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var t4e={name:`setextUnderline`,resolveTo:n4e,tokenize:r4e};function n4e(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 r4e(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`),c9(t)?u9(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||o9(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var i4e={tokenize:a4e};function a4e(e){let t=this,n=e.attempt(p9,r,e.attempt(this.parser.constructs.flowInitial,i,u9(e,e.attempt(this.parser.constructs.flow,i,e.attempt(a2e,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 o4e={resolveAll:u4e()},s4e=l4e(`string`),c4e=l4e(`text`);function l4e(e){return{resolveAll:u4e(e===`text`?d4e: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 u4e(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 d4e(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 f4e=s({attentionMarkers:()=>b4e,contentInitial:()=>m4e,disable:()=>x4e,document:()=>p4e,flow:()=>g4e,flowInitial:()=>h4e,insideSpan:()=>y4e,string:()=>_4e,text:()=>v4e}),p4e={42:S9,43:S9,45:S9,48:S9,49:S9,50:S9,51:S9,52:S9,53:S9,54:S9,55:S9,56:S9,57:S9,62:I0e},m4e={91:p2e},h4e={[-2]:h9,[-1]:h9,32:h9},g4e={35:y2e,42:x9,45:[t4e,x9],60:w2e,61:t4e,95:x9,96:K0e,126:K0e},_4e={38:U0e,92:B0e},v4e={[-5]:b9,[-4]:b9,[-3]:b9,33:H2e,38:U0e,42:f9,60:[N0e,j2e],91:W2e,92:[_2e,B0e],93:y9,95:f9,96:Q0e},y4e={null:[f9,o4e]},b4e={null:[42,95]},x4e={null:[]};function S4e(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=t9(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=d9(a,l.events,l),l.events):[]}function f(e,t){return w4e(p(e),t)}function p(e){return C4e(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){o9(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&&e9(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 C4e(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 w4e(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 T4e(e){let t={constructs:h0e([f4e,...(e||{}).extensions||[]]),content:n(C0e),defined:[],document:n(T0e),flow:n(i4e),lazy:{},string:n(s4e),text:n(c4e)};return t;function n(e){return n;function n(n){return S4e(t,e,n)}}}function E4e(e){for(;!r2e(e););return e}var D4e=/[\0\t\n\r]/g;function O4e(){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(D4e.lastIndex=u,c=D4e.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 k4e(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 A4e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function j4e(e){return e.replace(A4e,M4e)}function M4e(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return k4e(n.slice(t?2:1),t?16:10)}return m9(n)||e}var N4e={}.hasOwnProperty;function P4e(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),F4e(n)(E4e(T4e(n).document().write(O4e()(e,t,!0))))}function F4e(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()}};I4e(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]];N4e.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]||R4e).call(a,void 0,e[0])}for(r.position={start:C9(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:C9(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:C9(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]||R4e).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+K7({start:e.start,end:e.end})+`): it’s not open`);n.position.end=C9(e.end)}function u(){return u0e(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=v9(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:C9(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=C9(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=C9(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=j4e(t),n.identifier=v9(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=v9(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=k4e(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=m9(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=C9(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 C9(e){return{line:e.line,column:e.column,offset:e.offset}}function I4e(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?I4e(e,r):L4e(e,r)}}function L4e(e,t){let n;for(n in t)if(N4e.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 R4e(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+K7({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+K7({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+K7({start:t.start,end:t.end})+`) is still open`)}function z4e(e){let t=this;t.parser=n;function n(n){return P4e(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}var B4e=typeof self==`object`?self:globalThis,V4e=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new B4e[e](t)},H4e=(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(V4e(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(V4e(a,o),i)};return r},U4e=e=>H4e(new Map,e)(0),w9=``,{toString:W4e}={},{keys:G4e}=Object,T9=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=W4e.call(e).slice(8,-1);switch(n){case`Array`:return[1,w9];case`Object`:return[2,w9];case`Date`:return[3,w9];case`RegExp`:return[4,w9];case`Map`:return[5,w9];case`Set`:return[6,w9];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},E9=([e,t])=>e===0&&(t===`function`||t===`symbol`),K4e=(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]=T9(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 G4e(r))(e||!E9(T9(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?w9: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||!(E9(T9(n))||E9(T9(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!E9(T9(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},q4e=(e,{json:t,lossy:n}={})=>{let r=[];return K4e(!(t||n),!!t,new Map,r)(e),r},D9=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?U4e(q4e(e,t)):structuredClone(e):(e,t)=>U4e(q4e(e,t));function O9(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&r9(e.charCodeAt(n+1))&&r9(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 J4e(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 Y4e(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function X4e(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||J4e,r=e.options.footnoteBackLabel||Y4e,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=O9(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:{...D9(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 Z4e=(function(e){if(e==null)return t3e;if(typeof e==`function`)return k9(e);if(typeof e==`object`)return Array.isArray(e)?Q4e(e):$4e(e);if(typeof e==`string`)return e3e(e);throw Error(`Expected function, string, or object as test`)});function Q4e(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Z4e(e[n]);return k9(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function $4e(e){let t=e;return k9(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function e3e(e){return k9(t);function t(t){return t&&t.type===e}}function k9(e){return t;function t(t,n,r){return!!(n3e(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function t3e(){return!0}function n3e(e){return typeof e==`object`&&!!e&&`type`in e}function r3e(e){return e}var i3e=[];function a3e(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Z4e(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 (`+r3e(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=i3e,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=o3e(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 o3e(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?i3e:[e]}function s3e(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),a3e(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 c3e(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 l3e(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
||
`}]}function u3e(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 d3e(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f3e(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p3e(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=O9(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 m3e(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 h3e(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function g3e(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 _3e(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return g3e(e,t);let i={src:O9(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 v3e(e,t){let n={src:O9(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 y3e(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 b3e(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return g3e(e,t);let i={href:O9(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 x3e(e,t){let n={href:O9(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 S3e(e,t,n){let r=e.all(t),i=n?C3e(n):w3e(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 C3e(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=w3e(n[r])}return t}function w3e(e){return e.spread??e.children.length>1}function T3e(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 E3e(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function D3e(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function O3e(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function k3e(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=G7(t.children[1]),o=P1e(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 A3e(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 j3e(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var M3e=9,N3e=32;function P3e(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(F3e(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(F3e(t.slice(i),i>0,!1)),a.join(``)}function F3e(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===M3e||t===N3e;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===M3e||t===N3e;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function I3e(e,t){let n={type:`text`,value:P3e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function L3e(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var R3e={blockquote:c3e,break:l3e,code:u3e,delete:d3e,emphasis:f3e,footnoteReference:p3e,heading:m3e,html:h3e,imageReference:_3e,image:v3e,inlineCode:y3e,linkReference:b3e,link:x3e,listItem:S3e,list:T3e,paragraph:E3e,root:D3e,strong:O3e,table:k3e,tableCell:j3e,tableRow:A3e,text:I3e,thematicBreak:L3e,toml:A9,yaml:A9,definition:A9,footnoteDefinition:A9};function A9(){}var j9={}.hasOwnProperty,z3e={};function B3e(e,t){let n=t||z3e,r=new Map,i=new Map,a={all:s,applyData:H3e,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...R3e,...n.handlers},one:o,options:n,patch:V3e,wrap:W3e};return s3e(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(j9.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=D9(n);return r.children=a.all(e),r}return D9(e)}return(a.options.unknownHandler||U3e)(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=G3e(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=G3e(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function V3e(e,t){e.position&&(t.position=I1e(e))}function H3e(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,D9(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function U3e(e,t){let n=t.data||{},r=`value`in t&&!(j9.call(n,`hProperties`)||j9.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 W3e(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 G3e(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function K3e(e,t){let n=B3e(e,t),r=n.one(e,void 0),i=X4e(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 q3e(e,t){return e&&`run`in e?async function(n,r){let i=K3e(n,{file:r,...t});await e.run(i,r)}:function(n,r){return K3e(n,{file:r,...e||t})}}function J3e(e){if(e)throw e}var Y3e=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 M9(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 X3e(){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?Z3e(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 Z3e(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 N9={basename:Q3e,dirname:$3e,extname:e6e,join:t6e,sep:`/`};function Q3e(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);P9(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 $3e(e){if(P9(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 e6e(e){P9(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 t6e(...e){let t=-1,n;for(;++t<e.length;)P9(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:n6e(n)}function n6e(e){P9(e);let t=e.codePointAt(0)===47,n=r6e(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function r6e(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 P9(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var i6e={cwd:a6e};function a6e(){return`/`}function F9(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function o6e(e){if(typeof e==`string`)e=new URL(e);else if(!F9(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 s6e(e)}function s6e(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 I9=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],c6e=class{constructor(e){let t;t=e?F9(e)?{path:e}:typeof e==`string`||u6e(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:i6e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<I9.length;){let e=I9[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)I9.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?N9.basename(this.path):void 0}set basename(e){R9(e,`basename`),L9(e,`basename`),this.path=N9.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?N9.dirname(this.path):void 0}set dirname(e){l6e(this.basename,`dirname`),this.path=N9.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?N9.extname(this.path):void 0}set extname(e){if(L9(e,`extname`),l6e(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=N9.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){F9(e)&&(e=o6e(e)),R9(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?N9.basename(this.path,this.extname):void 0}set stem(e){R9(e,`stem`),L9(e,`stem`),this.path=N9.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 J7(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 L9(e,t){if(e&&e.includes(N9.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+N9.sep+"`")}function R9(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function l6e(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function u6e(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var d6e=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),z9=l(Y3e(),1),f6e={}.hasOwnProperty,p6e=new class e extends d6e{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=X3e()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,z9.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(H9(`data`,this.frozen),this.namespace[e]=t,this):f6e.call(this.namespace,e)&&this.namespace[e]||void 0:e?(H9(`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=U9(e),n=this.parser||this.Parser;return B9(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),B9(`process`,this.parser||this.Parser),V9(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=U9(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);_6e(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(),B9(`processSync`,this.parser||this.Parser),V9(`processSync`,this.compiler||this.Compiler),this.process(e,r),h6e(`processSync`,`process`,t),n;function r(e,r){t=!0,J3e(e),n=r}}run(e,t,n){m6e(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=U9(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),h6e(`runSync`,`run`,n),r;function i(e,t){J3e(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=U9(t),r=this.compiler||this.Compiler;return V9(`stringify`,r),m6e(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(H9(`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,z9.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];M9(o)&&M9(r)&&(r=(0,z9.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function B9(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function V9(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function H9(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 m6e(e){if(!M9(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function h6e(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function U9(e){return g6e(e)?e:new c6e(e)}function g6e(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function _6e(e){return typeof e==`string`||v6e(e)}function v6e(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var y6e=[],b6e={allowDangerousHtml:!0},x6e=/^(https?|ircs?|mailto|xmpp)$/i,S6e=[{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 C6e(e){let t=w6e(e),n=T6e(e);return E6e(t.runSync(t.parse(n),n),e)}function w6e(e){let t=e.rehypePlugins||y6e,n=e.remarkPlugins||y6e,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...b6e}:b6e;return p6e().use(z4e).use(n).use(q3e,r).use(t)}function T6e(e){let t=e.children||``,n=new c6e;return typeof t==`string`?n.value=t:``+t,n}function E6e(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||D6e;for(let e of S6e)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return s3e(e,l),W1e(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 $7)if(Object.hasOwn($7,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=$7[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 D6e(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||x6e.test(e.slice(0,t))?e:``}function O6e({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 $k.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||!D7(a))return;let n=window.setInterval(async()=>{try{let{data:t}=await $k.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`),D7(t)||r()}catch{}},4e3);return()=>window.clearInterval(n)},[t,e,a?.status,a?.question_text,a?.error_message]),(0,Y.jsx)(Gx,{title:a?`${a.subject_name}${a.category===`olympiad`?` · 奥数`:``} · 详情`:`详情`,open:t,onCancel:n,width:`90%`,style:{maxWidth:960},footer:(0,Y.jsxs)(Iy,{wrap:!0,children:[(0,Y.jsx)(eS,{title:`确定删除该题?`,onConfirm:async()=>{C(!0);try{await $k.remove(e),ax.success(`已删除`),i?.(),n()}catch{ax.error(`删除失败`)}finally{C(!1)}},children:(0,Y.jsx)(Cp,{danger:!0,loading:S,children:`删除`})}),(0,Y.jsx)(Cp,{onClick:async()=>{await $k.retryOcr(e),ax.info(`已重新识别并标注,请稍后刷新`),r(),n()},children:`重新识别标注`}),(0,Y.jsx)(Cp,{loading:b,onClick:async()=>{x(!0);try{let{data:t}=await $k.regenerate(e);o(t),u(t.question_text||t.ocr_raw_text||``),f(t.solution_approach||``),m(t.solution_text||``),ax.success(`解题思路已重新生成`),r()}catch{ax.error(`生成失败,请检查 AI 模型配置`)}finally{x(!1)}},children:`重新生成思路`}),(0,Y.jsx)(Cp,{type:`primary`,loading:v,onClick:async()=>{y(!0);try{await $k.update(e,{question_text:l,solution_approach:d,solution_text:p}),ax.success(`已保存`),r()}finally{y(!1)}},children:`保存编辑`})]}),children:(0,Y.jsx)(LC,{spinning:s,children:a&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Iy,{wrap:!0,style:{marginBottom:8},children:[(0,Y.jsxs)(eD.Text,{type:`secondary`,children:[`状态:`,vA[a.status]]}),a.has_annotated_image&&!a.error_message&&(0,Y.jsx)(eD.Text,{type:`danger`,children:`红色框为自动标注的错误位置`})]}),a.error_message&&(0,Y.jsx)(jc,{message:`处理失败`,description:a.error_message,type:`error`,showIcon:!0,style:{marginBottom:12}}),a.status===`pending`&&!a.error_message&&(0,Y.jsx)(jc,{message:O7(a),type:`info`,showIcon:!0,style:{marginBottom:12}}),a.status===`ocr_done`&&!a.question_text&&!a.error_message&&(0,Y.jsx)(jc,{message:O7(a),type:`info`,showIcon:!0,style:{marginBottom:12}}),(a.solution_approach||a.solution_text)&&(0,Y.jsx)(jc,{message:`AI 识别与标注,请核对后再使用`,type:`warning`,showIcon:!0,style:{margin:`12px 0`}}),(0,Y.jsxs)(oS,{gutter:16,style:{marginTop:12},children:[(0,Y.jsxs)(Mg,{xs:24,md:10,children:[a.has_annotated_image&&(0,Y.jsx)(Ole,{block:!0,style:{marginBottom:8},value:g,onChange:e=>_(e),options:[{label:`标注图`,value:`annotated`},{label:`原图`,value:`original`}]}),(0,Y.jsx)(t1e,{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)(eD.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)(Mg,{xs:24,md:14,children:[(0,Y.jsx)(eD.Text,{strong:!0,children:`识别题目(可编辑)`}),(0,Y.jsx)(ob.TextArea,{rows:5,value:l,onChange:e=>u(e.target.value),style:{marginTop:8,marginBottom:16}}),(0,Y.jsx)(eD.Text,{strong:!0,children:`解题思路`}),(0,Y.jsx)(ob.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)(eD.Text,{type:`secondary`,style:{fontSize:12},children:`思路预览`}),(0,Y.jsx)(C6e,{children:d})]}),(0,Y.jsx)(eD.Text,{strong:!0,children:`详细解答`}),(0,Y.jsx)(ob.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)(eD.Text,{type:`secondary`,style:{fontSize:12},children:`解答预览`}),(0,Y.jsx)(C6e,{children:p})]})]})]})]})})})}function k6e(e){return e.error_message?{tone:`error`,text:e.error_message}:D7(e)?{tone:`pending`,text:O7(e)}:{tone:`normal`,text:e.question_text||e.ocr_raw_text||vA[e.status]}}function A6e({items:e,selectedId:t,onSelect:n,onRefresh:r,emptyText:i=`暂无记录`,pollWhenProcessing:a=!0}){let o=a&&e.some(D7);(0,h.useEffect)(()=>{if(!o)return;let e=window.setInterval(()=>r(),4e3);return()=>window.clearInterval(e)},[o,r]);let s=async e=>{try{await $k.remove(e),ax.success(`已删除`),t===e&&n(null),r()}catch{ax.error(`删除失败`)}};return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`wq-grid`,children:e.map(e=>{let t=k6e(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)(t1e,{questionId:e.id,variant:`annotated`,alt:`题目`,className:`wq-card-img`}),(0,Y.jsxs)(`div`,{className:`wq-card-body`,children:[(0,Y.jsxs)(Iy,{size:4,wrap:!0,children:[(0,Y.jsx)(eD.Text,{strong:!0,children:e.subject_name}),e.category===`olympiad`&&(0,Y.jsx)(BE,{color:`gold`,children:`奥数`}),(0,Y.jsx)(BE,{color:e.error_message||e.status===`failed`?`error`:D7(e)?`processing`:`default`,children:e.error_message?`失败`:vA[e.status]})]}),(0,Y.jsx)(eD.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)(eS,{title:`确定删除该题?`,onConfirm:()=>s(e.id),children:(0,Y.jsx)(Cp,{type:`text`,danger:!0,size:`small`,icon:(0,Y.jsx)(fD,{}),onClick:e=>e.stopPropagation(),children:`删除`})})})]},e.id)})}),e.length===0&&(0,Y.jsx)(eD.Text,{type:`secondary`,children:i}),t&&(0,Y.jsx)(O6e,{questionId:t,open:!!t,onClose:()=>n(null),onUpdated:r,onDeleted:()=>{n(null),r()}})]})}var j6e=o(((e,t)=>{var n=!1,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;function v(){if(!n){n=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),v=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),_=/Mobile/i.exec(e),p=!!/Win64/.exec(e),t){r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);c=y?parseFloat(y[1])+4:r,i=t[2]?parseFloat(t[2]):NaN,a=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=i=a=s=o=NaN;if(v){if(v[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=b?parseFloat(b[1].replace(`_`,`.`)):!0}else l=!1;u=!!v[2],d=!!v[3]}else l=u=d=!1}}var y={ie:function(){return v()||r},ieCompatibilityMode:function(){return v()||c>r},ie64:function(){return y.ie()&&p},firefox:function(){return v()||i},opera:function(){return v()||a},webkit:function(){return v()||o},safari:function(){return y.webkit()},chrome:function(){return v()||s},windows:function(){return v()||u},osx:function(){return v()||l},linux:function(){return v()||d},iphone:function(){return v()||m},mobile:function(){return v()||m||h||f||_},nativeApp:function(){return v()||g},android:function(){return v()||f},ipad:function(){return v()||h}};t.exports=y})),M6e=o(((e,t)=>{var n=!!(typeof window<`u`&&window.document&&window.document.createElement);t.exports={canUseDOM:n,canUseWorkers:typeof Worker<`u`,canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n}})),N6e=o(((e,t)=>{var n=M6e(),r;n.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature(``,``)!==!0);function i(e,t){if(!n.canUseDOM||t&&!(`addEventListener`in document))return!1;var i=`on`+e,a=i in document;if(!a){var o=document.createElement(`div`);o.setAttribute(i,`return;`),a=typeof o[i]==`function`}return!a&&r&&e===`wheel`&&(a=document.implementation.hasFeature(`Events.wheel`,`3.0`)),a}t.exports=i})),P6e=o(((e,t)=>{var n=j6e(),r=N6e(),i=10,a=40,o=800;function s(e){var t=0,n=0,r=0,s=0;return`detail`in e&&(n=e.detail),`wheelDelta`in e&&(n=-e.wheelDelta/120),`wheelDeltaY`in e&&(n=-e.wheelDeltaY/120),`wheelDeltaX`in e&&(t=-e.wheelDeltaX/120),`axis`in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*i,s=n*i,`deltaY`in e&&(s=e.deltaY),`deltaX`in e&&(r=e.deltaX),(r||s)&&e.deltaMode&&(e.deltaMode==1?(r*=a,s*=a):(r*=o,s*=o)),r&&!t&&(t=r<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:s}}s.getEventType=function(){return n.firefox()?`DOMMouseScroll`:r(`wheel`)?`wheel`:`mousewheel`},t.exports=s})),F6e=l(o(((e,t)=>{t.exports=P6e()}))(),1);function W9(e){"@babel/helpers - typeof";return W9=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},W9(e)}function I6e(e,t){if(W9(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(W9(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function L6e(e){var t=I6e(e,`string`);return W9(t)==`symbol`?t:t+``}function R6e(e,t,n){return(t=L6e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z6e(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 G9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?z6e(Object(n),!0).forEach(function(t){R6e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z6e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function B6e(e,t,n,r,i,a=0){let{width:o,height:s}=q9(e,t,a),c=Math.min(o,n),l=Math.min(s,r);return c>l*i?{width:l*i,height:l}:{width:c,height:c/i}}function V6e(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function K9(e,t,n,r,i=0){let{width:a,height:o}=q9(t.width,t.height,i);return{x:H6e(e.x,a,n.width,r),y:H6e(e.y,o,n.height,r)}}function H6e(e,t,n,r){let i=Math.abs(t*r/2-n/2);return J9(e,-i,i)}function U6e(e,t){return Math.sqrt((e.y-t.y)**2+(e.x-t.x)**2)}function W6e(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI}function G6e(e,t,n,r,i,a=0,o=!0){let s=o?K6e:q6e,c=q9(t.width,t.height,a),l=q9(t.naturalWidth,t.naturalHeight,a),u={x:s(100,((c.width-n.width/i)/2-e.x/i)/c.width*100),y:s(100,((c.height-n.height/i)/2-e.y/i)/c.height*100),width:s(100,n.width/c.width*100/i),height:s(100,n.height/c.height*100/i)},d=Math.round(s(l.width,u.width*l.width/100)),f=Math.round(s(l.height,u.height*l.height/100)),p=l.width>=l.height*r?{width:Math.round(f*r),height:f}:{width:d,height:Math.round(d/r)};return{croppedAreaPercentages:u,croppedAreaPixels:G9(G9({},p),{},{x:Math.round(s(l.width-p.width,u.x*l.width/100)),y:Math.round(s(l.height-p.height,u.y*l.height/100))})}}function K6e(e,t){return Math.min(e,Math.max(0,t))}function q6e(e,t){return t}function J6e(e,t,n,r,i,a){let o=q9(t.width,t.height,n),s=J9(r.width/o.width*(100/e.width),i,a);return{crop:{x:s*o.width/2-r.width/2-o.width*s*(e.x/100),y:s*o.height/2-r.height/2-o.height*s*(e.y/100)},zoom:s}}function Y6e(e,t,n){let r=V6e(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}function X6e(e,t,n=0,r,i,a){let o=q9(t.naturalWidth,t.naturalHeight,n),s=J9(Y6e(e,t,r),i,a),c=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((o.width-e.width)/2-e.x)*c,y:((o.height-e.height)/2-e.y)*c},zoom:s}}function Z6e(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Q6e(e){return e*Math.PI/180}function q9(e,t,n){let r=Q6e(n);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function J9(e,t,n){return Math.min(Math.max(e,t),n)}function Y9(...e){return e.filter(e=>typeof e==`string`&&e.length>0).join(` `).trim()}var $6e=`.reactEasyCrop_Container {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
overflow: hidden;
|
||
user-select: none;
|
||
touch-action: none;
|
||
cursor: move;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
|
||
.reactEasyCrop_Image,
|
||
.reactEasyCrop_Video {
|
||
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
|
||
max-width: unset; /* prevent global img/video reset rules from constraining the cropper media */
|
||
}
|
||
|
||
.reactEasyCrop_Contain {
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
margin: auto;
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
.reactEasyCrop_Cover_Horizontal {
|
||
width: 100%;
|
||
height: auto;
|
||
}
|
||
.reactEasyCrop_Cover_Vertical {
|
||
width: auto;
|
||
height: 100%;
|
||
}
|
||
|
||
.reactEasyCrop_CropArea {
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translate(-50%, -50%);
|
||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||
box-sizing: border-box;
|
||
box-shadow: 0 0 0 9999em;
|
||
color: rgba(0, 0, 0, 0.5);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.reactEasyCrop_CropAreaRound {
|
||
border-radius: 50%;
|
||
}
|
||
|
||
.reactEasyCrop_CropAreaGrid::before {
|
||
content: ' ';
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 33.33%;
|
||
right: 33.33%;
|
||
border-top: 0;
|
||
border-bottom: 0;
|
||
}
|
||
|
||
.reactEasyCrop_CropAreaGrid::after {
|
||
content: ' ';
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||
top: 33.33%;
|
||
bottom: 33.33%;
|
||
left: 0;
|
||
right: 0;
|
||
border-left: 0;
|
||
border-right: 0;
|
||
}
|
||
`,e8e=1,t8e=3,n8e=1,X9=class e extends h.Component{constructor(...t){super(...t),this.cropperRef=h.createRef(),this.imageRef=h.createRef(),this.videoRef=h.createRef(),this.containerPosition={x:0,y:0},this.containerRef=null,this.styleRef=null,this.containerRect=null,this.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},this.dragStartPosition={x:0,y:0},this.dragStartCrop={x:0,y:0},this.gestureZoomStart=0,this.gestureRotationStart=0,this.isTouching=!1,this.lastPinchDistance=0,this.lastPinchRotation=0,this.rafDragTimeout=null,this.rafPinchTimeout=null,this.wheelTimer=null,this.currentDoc=typeof document<`u`?document:null,this.currentWindow=typeof window<`u`?window:null,this.resizeObserver=null,this.previousCropSize=null,this.isInitialized=!1,this.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},this.initResizeObserver=()=>{if(window.ResizeObserver===void 0||!this.containerRef)return;let e=!0;this.resizeObserver=new window.ResizeObserver(t=>{if(e){e=!1;return}this.computeSizes()}),this.resizeObserver.observe(this.containerRef)},this.preventZoomSafari=e=>e.preventDefault(),this.cleanEvents=()=>{this.currentDoc&&(this.currentDoc.removeEventListener(`mousemove`,this.onMouseMove),this.currentDoc.removeEventListener(`mouseup`,this.onDragStopped),this.currentDoc.removeEventListener(`touchmove`,this.onTouchMove),this.currentDoc.removeEventListener(`touchend`,this.onDragStopped),this.currentDoc.removeEventListener(`gesturechange`,this.onGestureChange),this.currentDoc.removeEventListener(`gestureend`,this.onGestureEnd),this.currentDoc.removeEventListener(`scroll`,this.onScroll))},this.clearScrollEvent=()=>{this.containerRef&&this.containerRef.removeEventListener(`wheel`,this.onWheel),this.wheelTimer&&clearTimeout(this.wheelTimer)},this.onMediaLoad=()=>{let e=this.computeSizes();e&&(this.previousCropSize=e,this.emitCropData(),this.setInitialCrop(e),this.isInitialized=!0),this.props.onMediaLoaded&&this.props.onMediaLoaded(this.mediaSize)},this.setInitialCrop=e=>{if(this.props.initialCroppedAreaPercentages){let{crop:t,zoom:n}=J6e(this.props.initialCroppedAreaPercentages,this.mediaSize,this.props.rotation,e,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(t),this.props.onZoomChange&&this.props.onZoomChange(n)}else if(this.props.initialCroppedAreaPixels){let{crop:t,zoom:n}=X6e(this.props.initialCroppedAreaPixels,this.mediaSize,this.props.rotation,e,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(t),this.props.onZoomChange&&this.props.onZoomChange(n)}},this.computeSizes=()=>{let e=this.imageRef.current||this.videoRef.current;if(e&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect(),this.saveContainerPosition();let t=this.containerRect.width/this.containerRect.height,n=this.imageRef.current?.naturalWidth||this.videoRef.current?.videoWidth||0,r=this.imageRef.current?.naturalHeight||this.videoRef.current?.videoHeight||0,i=e.offsetWidth<n||e.offsetHeight<r,a=n/r,o;if(i)switch(this.state.mediaObjectFit){default:case`contain`:o=t>a?{width:this.containerRect.height*a,height:this.containerRect.height}:{width:this.containerRect.width,height:this.containerRect.width/a};break;case`horizontal-cover`:o={width:this.containerRect.width,height:this.containerRect.width/a};break;case`vertical-cover`:o={width:this.containerRect.height*a,height:this.containerRect.height};break}else o={width:e.offsetWidth,height:e.offsetHeight};this.mediaSize=G9(G9({},o),{},{naturalWidth:n,naturalHeight:r}),this.props.setMediaSize&&this.props.setMediaSize(this.mediaSize);let s=this.props.cropSize?this.props.cropSize:B6e(this.mediaSize.width,this.mediaSize.height,this.containerRect.width,this.containerRect.height,this.props.aspect,this.props.rotation);return(this.state.cropSize?.height!==s.height||this.state.cropSize?.width!==s.width)&&this.props.onCropSizeChange&&this.props.onCropSizeChange(s),this.setState({cropSize:s},this.recomputeCropPosition),this.props.setCropSize&&this.props.setCropSize(s),s}},this.saveContainerPosition=()=>{if(this.containerRef){let e=this.containerRef.getBoundingClientRect();this.containerPosition={x:e.left,y:e.top}}},this.onMouseDown=t=>{this.currentDoc&&(t.preventDefault(),this.currentDoc.addEventListener(`mousemove`,this.onMouseMove),this.currentDoc.addEventListener(`mouseup`,this.onDragStopped),this.saveContainerPosition(),this.onDragStart(e.getMousePoint(t)))},this.onMouseMove=t=>this.onDrag(e.getMousePoint(t)),this.onScroll=e=>{this.currentDoc&&(e.preventDefault(),this.saveContainerPosition())},this.onTouchStart=t=>{this.currentDoc&&(this.isTouching=!0,!(this.props.onTouchRequest&&!this.props.onTouchRequest(t))&&(this.currentDoc.addEventListener(`touchmove`,this.onTouchMove,{passive:!1}),this.currentDoc.addEventListener(`touchend`,this.onDragStopped),this.saveContainerPosition(),t.touches.length===2?this.onPinchStart(t):t.touches.length===1&&this.onDragStart(e.getTouchPoint(t.touches[0]))))},this.onTouchMove=t=>{t.preventDefault(),t.touches.length===2?this.onPinchMove(t):t.touches.length===1&&this.onDrag(e.getTouchPoint(t.touches[0]))},this.onGestureStart=e=>{this.currentDoc&&(e.preventDefault(),this.currentDoc.addEventListener(`gesturechange`,this.onGestureChange),this.currentDoc.addEventListener(`gestureend`,this.onGestureEnd),this.gestureZoomStart=this.props.zoom,this.gestureRotationStart=this.props.rotation)},this.onGestureChange=t=>{if(t.preventDefault(),this.isTouching)return;let n=e.getMousePoint(t),r=this.gestureZoomStart-1+t.scale;if(this.setNewZoom(r,n,{shouldUpdatePosition:!0}),this.props.onRotationChange){let e=this.gestureRotationStart+t.rotation;this.props.onRotationChange(e)}},this.onGestureEnd=e=>{this.cleanEvents()},this.onDragStart=({x:e,y:t})=>{var n,r;this.dragStartPosition={x:e,y:t},this.dragStartCrop=G9({},this.props.crop),(n=(r=this.props).onInteractionStart)==null||n.call(r)},this.onDrag=({x:e,y:t})=>{this.currentWindow&&(this.rafDragTimeout&&this.currentWindow.cancelAnimationFrame(this.rafDragTimeout),this.rafDragTimeout=this.currentWindow.requestAnimationFrame(()=>{if(!this.state.cropSize||e===void 0||t===void 0)return;let n=e-this.dragStartPosition.x,r=t-this.dragStartPosition.y,i={x:this.dragStartCrop.x+n,y:this.dragStartCrop.y+r},a=this.props.restrictPosition?K9(i,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):i;this.props.onCropChange(a)}))},this.onDragStopped=()=>{var e,t;this.isTouching=!1,this.cleanEvents(),this.emitCropData(),(e=(t=this.props).onInteractionEnd)==null||e.call(t)},this.onWheel=t=>{if(!this.currentWindow||this.props.onWheelRequest&&!this.props.onWheelRequest(t))return;t.preventDefault();let n=e.getMousePoint(t),{pixelY:r}=(0,F6e.default)(t),i=this.props.zoom-r*this.props.zoomSpeed/200;this.setNewZoom(i,n,{shouldUpdatePosition:!0}),this.state.hasWheelJustStarted||this.setState({hasWheelJustStarted:!0},()=>{var e;return(e=this.props).onInteractionStart?.call(e)}),this.wheelTimer&&clearTimeout(this.wheelTimer),this.wheelTimer=this.currentWindow.setTimeout(()=>this.setState({hasWheelJustStarted:!1},()=>{var e;return(e=this.props).onInteractionEnd?.call(e)}),250)},this.getPointOnContainer=({x:e,y:t},n)=>{if(!this.containerRect)throw Error(`The Cropper is not mounted`);return{x:this.containerRect.width/2-(e-n.x),y:this.containerRect.height/2-(t-n.y)}},this.getPointOnMedia=({x:e,y:t})=>{let{crop:n,zoom:r}=this.props;return{x:(e+n.x)/r,y:(t+n.y)/r}},this.setNewZoom=(e,t,{shouldUpdatePosition:n=!0}={})=>{if(!this.state.cropSize||!this.props.onZoomChange)return;let r=J9(e,this.props.minZoom,this.props.maxZoom);if(n){let e=this.getPointOnContainer(t,this.containerPosition),n=this.getPointOnMedia(e),i={x:n.x*r-e.x,y:n.y*r-e.y},a=this.props.restrictPosition?K9(i,this.mediaSize,this.state.cropSize,r,this.props.rotation):i;this.props.onCropChange(a)}this.props.onZoomChange(r)},this.getCropData=()=>this.state.cropSize?G6e(this.props.restrictPosition?K9(this.props.crop,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):this.props.crop,this.mediaSize,this.state.cropSize,this.getAspect(),this.props.zoom,this.props.rotation,this.props.restrictPosition):null,this.emitCropData=()=>{let e=this.getCropData();if(!e)return;let{croppedAreaPercentages:t,croppedAreaPixels:n}=e;this.props.onCropComplete&&this.props.onCropComplete(t,n),this.props.onCropAreaChange&&this.props.onCropAreaChange(t,n)},this.emitCropAreaChange=()=>{let e=this.getCropData();if(!e)return;let{croppedAreaPercentages:t,croppedAreaPixels:n}=e;this.props.onCropAreaChange&&this.props.onCropAreaChange(t,n)},this.recomputeCropPosition=()=>{if(!this.state.cropSize)return;let e=this.props.crop;if(this.isInitialized&&this.previousCropSize?.width&&this.previousCropSize?.height&&(Math.abs(this.previousCropSize.width-this.state.cropSize.width)>1e-6||Math.abs(this.previousCropSize.height-this.state.cropSize.height)>1e-6)){let t=this.state.cropSize.width/this.previousCropSize.width,n=this.state.cropSize.height/this.previousCropSize.height;e={x:this.props.crop.x*t,y:this.props.crop.y*n}}let t=this.props.restrictPosition?K9(e,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):e;this.previousCropSize=this.state.cropSize,this.props.onCropChange(t),this.emitCropData()},this.onKeyDown=e=>{let{crop:t,onCropChange:n,keyboardStep:r,zoom:i,rotation:a}=this.props,o=r;if(!this.state.cropSize)return;e.shiftKey&&(o*=.2);let s=G9({},t);switch(e.key){case`ArrowUp`:s.y-=o,e.preventDefault();break;case`ArrowDown`:s.y+=o,e.preventDefault();break;case`ArrowLeft`:s.x-=o,e.preventDefault();break;case`ArrowRight`:s.x+=o,e.preventDefault();break;default:return}if(this.props.restrictPosition&&(s=K9(s,this.mediaSize,this.state.cropSize,i,a)),!e.repeat){var c,l;(c=(l=this.props).onInteractionStart)==null||c.call(l)}n(s)},this.onKeyUp=e=>{var t,n;switch(e.key){case`ArrowUp`:case`ArrowDown`:case`ArrowLeft`:case`ArrowRight`:e.preventDefault();break;default:return}this.emitCropData(),(t=(n=this.props).onInteractionEnd)==null||t.call(n)}}componentDidMount(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),window.ResizeObserver===void 0&&this.currentWindow.addEventListener(`resize`,this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener(`wheel`,this.onWheel,{passive:!1}),this.containerRef.addEventListener(`gesturestart`,this.onGestureStart)),this.currentDoc.addEventListener(`scroll`,this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement(`style`),this.styleRef.setAttribute(`type`,`text/css`),this.props.nonce&&this.styleRef.setAttribute(`nonce`,this.props.nonce),this.styleRef.innerHTML=$6e,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))}componentWillUnmount(){var e;if(!(!this.currentDoc||!this.currentWindow)){if(window.ResizeObserver===void 0&&this.currentWindow.removeEventListener(`resize`,this.computeSizes),(e=this.resizeObserver)==null||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener(`gesturestart`,this.preventZoomSafari),this.styleRef){var t;(t=this.styleRef.parentNode)==null||t.removeChild(this.styleRef)}this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()}}componentDidUpdate(e){if(e.rotation===this.props.rotation?e.aspect===this.props.aspect&&e.objectFit===this.props.objectFit?e.zoom===this.props.zoom?e.cropSize?.height!==this.props.cropSize?.height||e.cropSize?.width!==this.props.cropSize?.width?this.computeSizes():(e.crop?.x!==this.props.crop?.x||e.crop?.y!==this.props.crop?.y)&&this.emitCropAreaChange():this.recomputeCropPosition():this.computeSizes():(this.computeSizes(),this.recomputeCropPosition()),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener(`wheel`,this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video){var t;(t=this.videoRef.current)==null||t.load()}let n=this.getObjectFit();n!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:n},this.computeSizes)}getAspect(){let{cropSize:e,aspect:t}=this.props;return e?e.width/e.height:t}getObjectFit(){if(this.props.objectFit===`cover`){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();let e=this.containerRect.width/this.containerRect.height;return(this.imageRef.current?.naturalWidth||this.videoRef.current?.videoWidth||0)/(this.imageRef.current?.naturalHeight||this.videoRef.current?.videoHeight||0)<e?`horizontal-cover`:`vertical-cover`}return`horizontal-cover`}return this.props.objectFit}onPinchStart(t){let n=e.getTouchPoint(t.touches[0]),r=e.getTouchPoint(t.touches[1]);this.lastPinchDistance=U6e(n,r),this.lastPinchRotation=W6e(n,r),this.onDragStart(Z6e(n,r))}onPinchMove(t){if(!this.currentDoc||!this.currentWindow)return;let n=e.getTouchPoint(t.touches[0]),r=e.getTouchPoint(t.touches[1]),i=Z6e(n,r);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(()=>{let e=U6e(n,r),t=this.props.zoom*(e/this.lastPinchDistance);this.setNewZoom(t,i,{shouldUpdatePosition:!1}),this.lastPinchDistance=e;let a=W6e(n,r),o=this.props.rotation+(a-this.lastPinchRotation);this.props.onRotationChange&&this.props.onRotationChange(o),this.lastPinchRotation=a})}render(){let{image:e,video:t,mediaProps:n,cropperProps:r,transform:i,crop:{x:a,y:o},rotation:s,zoom:c,cropShape:l,showGrid:u,roundCropAreaPixels:d,style:{containerStyle:f,cropAreaStyle:p,mediaStyle:m},classes:{containerClassName:g,cropAreaClassName:_,mediaClassName:v}}=this.props,y=this.state.mediaObjectFit??this.getObjectFit();return h.createElement(`div`,{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:e=>this.containerRef=e,"data-testid":`container`,style:f,className:Y9(`reactEasyCrop_Container`,g)},e?h.createElement(`img`,G9(G9({alt:``,className:Y9(`reactEasyCrop_Image`,y===`contain`&&`reactEasyCrop_Contain`,y===`horizontal-cover`&&`reactEasyCrop_Cover_Horizontal`,y===`vertical-cover`&&`reactEasyCrop_Cover_Vertical`,v)},n),{},{src:e,ref:this.imageRef,style:G9(G9({},m),{},{transform:i||`translate(${a}px, ${o}px) rotate(${s}deg) scale(${c})`}),onLoad:this.onMediaLoad})):t&&h.createElement(`video`,G9(G9({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:Y9(`reactEasyCrop_Video`,y===`contain`&&`reactEasyCrop_Contain`,y===`horizontal-cover`&&`reactEasyCrop_Cover_Horizontal`,y===`vertical-cover`&&`reactEasyCrop_Cover_Vertical`,v)},n),{},{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:G9(G9({},m),{},{transform:i||`translate(${a}px, ${o}px) rotate(${s}deg) scale(${c})`}),controls:!1}),(Array.isArray(t)?t:[{src:t}]).map(e=>h.createElement(`source`,G9({key:e.src},e)))),this.state.cropSize&&h.createElement(`div`,G9({ref:this.cropperRef,style:G9(G9({},p),{},{width:d?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:d?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":`cropper`,className:Y9(`reactEasyCrop_CropArea`,l===`round`&&`reactEasyCrop_CropAreaRound`,u&&`reactEasyCrop_CropAreaGrid`,_)},r)))}};X9.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:t8e,minZoom:e8e,cropShape:`rect`,objectFit:`contain`,showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:n8e},X9.getMousePoint=e=>({x:Number(e.clientX),y:Number(e.clientY)}),X9.getTouchPoint=e=>({x:Number(e.clientX),y:Number(e.clientY)});var r8e=X9;function i8e(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>t(r),r.onerror=n,r.src=e})}async function a8e(e,t,n=`image/jpeg`,r=.92){let i=await i8e(e),a=document.createElement(`canvas`);a.width=Math.max(1,Math.round(t.width)),a.height=Math.max(1,Math.round(t.height));let o=a.getContext(`2d`);if(!o)throw Error(`无法创建画布`);return o.drawImage(i,t.x,t.y,t.width,t.height,0,0,t.width,t.height),new Promise((e,t)=>{a.toBlob(n=>n?e(n):t(Error(`裁剪失败`)),n,r)})}function o8e(e,t){return new File([e],t,{type:e.type||`image/jpeg`})}function s8e({open:e,imageSrc:t,filename:n,onCancel:r,onConfirm:i,onSkip:a,originalFile:o}){let[s,c]=(0,h.useState)({x:0,y:0}),[l,u]=(0,h.useState)(1),[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(!1),g=(0,h.useCallback)((e,t)=>{f(t)},[]);return(0,Y.jsxs)(Gx,{title:`裁剪题目区域`,open:e,onCancel:r,width:`92%`,style:{maxWidth:560},destroyOnHidden:!0,footer:(0,Y.jsxs)(Iy,{wrap:!0,children:[(0,Y.jsx)(Cp,{onClick:r,children:`取消`}),a&&o&&(0,Y.jsx)(Cp,{onClick:()=>{o&&a&&a(o)},disabled:p,children:`不裁剪,直接上传`}),(0,Y.jsx)(Cp,{type:`primary`,loading:p,onClick:async()=>{if(!(!t||!d)){m(!0);try{i(o8e(await a8e(t,d),n.replace(/\.\w+$/,``)+`.jpg`))}finally{m(!1)}}},children:`确认上传`})]}),children:[(0,Y.jsx)(`p`,{style:{margin:`0 0 12px`,color:`#666`,fontSize:13},children:`拖动框选仅保留错题区域,识别会更准确`}),(0,Y.jsx)(`div`,{style:{position:`relative`,width:`100%`,height:320,background:`#111`,borderRadius:8,overflow:`hidden`},children:t&&(0,Y.jsx)(r8e,{image:t,crop:s,zoom:l,aspect:void 0,onCropChange:c,onZoomChange:u,onCropComplete:g})}),(0,Y.jsxs)(`div`,{style:{marginTop:12},children:[(0,Y.jsx)(`span`,{style:{fontSize:12,color:`#666`},children:`缩放`}),(0,Y.jsx)(ode,{min:1,max:3,step:.05,value:l,onChange:u})]})]})}function c8e({studentId:e,subjects:t,category:n,onUploaded:r}){let i=n===`olympiad`,a=(0,h.useMemo)(()=>i?t.filter(e=>e.name===`数学`):t,[t,i]),[o,s]=(0,h.useState)(),[c,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[f,p]=(0,h.useState)(null),[m,g]=(0,h.useState)(null),_=(0,h.useRef)(null);(0,h.useEffect)(()=>{a.length&&s(a[0].id)},[a]);let v=()=>{f&&URL.revokeObjectURL(f),d(!1),p(null),g(null)},y=e=>{if(!o){ax.warning(i?`未找到数学科目`:`请选择科目`);return}p(URL.createObjectURL(e)),g(e),d(!0)},b=async t=>{if(!o){ax.warning(i?`未找到数学科目`:`请选择科目`);return}l(!0);try{await $k.upload(e,o,t,n),ax.success(`上传成功,正在识别并生成解法…`),r()}catch{ax.error(`上传失败`)}finally{l(!1)}},x=e=>(y(e),!1);return(0,Y.jsxs)(Iy,{direction:`vertical`,size:`middle`,style:{width:`100%`,marginBottom:16},children:[i?(0,Y.jsx)(eD.Text,{children:`科目:数学(奥数区仅支持数学)`}):(0,Y.jsx)(hC,{style:{width:`100%`,maxWidth:200},placeholder:`选择科目`,value:o,onChange:s,options:a.map(e=>({value:e.id,label:e.name}))}),(0,Y.jsxs)(Iy,{wrap:!0,className:`upload-actions`,children:[(0,Y.jsxs)(`span`,{className:`upload-mobile-only`,children:[(0,Y.jsx)(xD,{beforeUpload:x,showUploadList:!1,accept:`image/*`,children:(0,Y.jsx)(Cp,{icon:(0,Y.jsx)(yge,{}),loading:c,type:`primary`,size:`large`,children:`相册选图`})}),(0,Y.jsx)(Cp,{icon:(0,Y.jsx)(Fxe,{}),loading:c,size:`large`,onClick:()=>_.current?.click(),children:`拍照上传`}),(0,Y.jsx)(`input`,{ref:_,type:`file`,accept:`image/*`,capture:`environment`,style:{display:`none`},onChange:e=>{let t=e.target.files?.[0];e.target.value=``,t&&y(t)}})]}),(0,Y.jsx)(`span`,{className:`upload-desktop-only`,children:(0,Y.jsx)(xD,{beforeUpload:x,showUploadList:!1,accept:`image/*`,children:(0,Y.jsx)(Cp,{icon:(0,Y.jsx)(dA,{}),loading:c,type:`primary`,size:`large`,children:`上传图片`})})}),!i&&(0,Y.jsx)(`span`,{className:`upload-mobile-only`,children:(0,Y.jsx)(xD,{beforeUpload:x,showUploadList:!1,accept:`image/*`,children:(0,Y.jsx)(Cp,{icon:(0,Y.jsx)(dA,{}),loading:c,size:`large`,children:`上传图片`})})})]}),i&&(0,Y.jsx)(`span`,{style:{color:`#666`,fontSize:13},children:`奥数区仅数学,按学生学段(初中/高中)生成解题思路,严禁超纲`}),(0,Y.jsx)(s8e,{open:u,imageSrc:f,filename:m?.name||`question.jpg`,originalFile:m,onCancel:v,onConfirm:async e=>{v(),await b(e)},onSkip:async e=>{v(),await b(e)}})]})}function l8e({subjectId:e,onSubjectChange:t,search:n,onSearchChange:r,onRefresh:i,subjects:a,hideSubjectFilter:o}){return(0,Y.jsxs)(Iy,{wrap:!0,style:{marginBottom:16,width:`100%`},children:[!o&&(0,Y.jsx)(hC,{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)(ob.Search,{placeholder:`搜索题目/解法`,value:n,onChange:e=>r(e.target.value),onSearch:()=>i(),style:{width:`100%`,maxWidth:260},allowClear:!0}),(0,Y.jsx)(Cp,{icon:(0,Y.jsx)(Bxe,{}),onClick:i,children:`刷新`})]})}var Z9={junior_high:`初中`,senior_high:`高中`},u8e={junior_high:[`初一`,`初二`,`初三`],senior_high:[`高一`,`高二`,`高三`]};function Q9(e){let t=[Z9[e.school_level],e.grade,e.class_name].filter(Boolean);return t.length?t.join(` · `):`未设置学段年级`}var d8e=[`scores`,`overview`,`trend`,`wrong`,`olympiad`];function f8e(){let{id:e}=Cve(),[t,n]=Dye(),r=t.get(`tab`),i=d8e.includes(r)?r:`scores`,[a,o]=(0,h.useState)(null),[s,c]=(0,h.useState)([]),[l,u]=(0,h.useState)([]),[d,f]=(0,h.useState)(null),[p,m]=(0,h.useState)(),[g,_]=(0,h.useState)([]),[v,y]=(0,h.useState)([]),[b,x]=(0,h.useState)(),[S,C]=(0,h.useState)(``),[w,T]=(0,h.useState)(``),[E,D]=(0,h.useState)(null),[O,k]=(0,h.useState)(null),[A,j]=(0,h.useState)(!0),M=(0,h.useMemo)(()=>s.find(e=>e.name===`数学`),[s]),N=Object.fromEntries(s.map(e=>[e.id,e.name])),P=(0,h.useCallback)(async()=>{if(!e)return;let{data:t}=await Qk.list(e);u(t)},[e]),F=(0,h.useCallback)(async()=>{if(!e||!p)return;let{data:t}=await Qk.trend(e,p);f(t)},[e,p]),I=(0,h.useCallback)(async()=>{if(!e)return;let{data:t}=await $k.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 $k.list(e,{subject_id:M?.id,q:w||void 0,category:`olympiad`});y(t)},[e,M?.id,w]);(0,h.useEffect)(()=>{if(!e)return;let t=!1;return(async()=>{j(!0);try{let[n,r]=await Promise.all([Zk.get(e),kxe.list()]);if(t)return;o(n.data),c(r.data),r.data.length&&m(r.data[0].id);let i=await Qk.list(e);t||u(i.data)}finally{t||j(!1)}})(),()=>{t=!0}},[e]),(0,h.useEffect)(()=>{I()},[I]),(0,h.useEffect)(()=>{L()},[L]),(0,h.useEffect)(()=>{F()},[F]);let R=e=>{n({tab:e},{replace:!0})},z=async()=>{if(e)try{let{data:t}=await Qk.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{ax.error(`导出失败`)}};if(A)return(0,Y.jsx)(`div`,{style:{textAlign:`center`,padding:80},children:(0,Y.jsx)(LC,{size:`large`})});if(!a)return(0,Y.jsx)(eD.Text,{children:`学生不存在`});let B=Z9[a.school_level];return(0,Y.jsxs)(`div`,{className:`page-container`,children:[(0,Y.jsxs)(Iy,{className:`page-header`,wrap:!0,children:[(0,Y.jsx)(uO,{to:`/`,children:(0,Y.jsx)(Cp,{icon:(0,Y.jsx)(Nxe,{}),children:`返回`})}),(0,Y.jsx)(eD.Title,{level:4,style:{margin:0},children:a.name}),(0,Y.jsx)(BE,{color:a.school_level===`senior_high`?`purple`:`blue`,children:B}),(0,Y.jsx)(eD.Text,{type:`secondary`,children:Q9(a)}),(0,Y.jsx)(Cp,{icon:(0,Y.jsx)(Oge,{}),onClick:z,children:`导出 CSV`})]}),(0,Y.jsx)(dg,{className:`student-tabs`,activeKey:i,onChange:R,destroyInactiveTabPane:!1,items:[{key:`scores`,label:`成绩录入`,children:(0,Y.jsx)(Q$e,{studentId:e,subjects:s,exams:l,onRefresh:P})},{key:`overview`,label:`成绩总览`,children:(0,Y.jsx)($$e,{exams:l,subjectNames:N})},{key:`trend`,label:`分科曲线`,children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(hC,{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)(e1e,{points:d.points,subjectName:d.subject_name,threshold:d.threshold})]})},{key:`wrong`,label:`错题库`,children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(eD.Paragraph,{type:`secondary`,style:{marginBottom:12},children:[`上传后自动标注错误位置(红框),并生成解题思路,按`,B,`课内标准解题`]}),(0,Y.jsx)(c8e,{studentId:e,subjects:s,category:`regular`,onUploaded:I}),(0,Y.jsx)(l8e,{subjectId:b,onSubjectChange:x,search:S,onSearchChange:C,onRefresh:I,subjects:s}),(0,Y.jsx)(A6e,{items:g,selectedId:E,onSelect:D,onRefresh:I,emptyText:`暂无错题`})]})},{key:`olympiad`,label:`奥数区`,children:(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(eD.Paragraph,{type:`secondary`,style:{marginBottom:12},children:[B,`数学奥数,严格限制在`,B,`奥数培优范围内,禁止超纲`]}),(0,Y.jsx)(c8e,{studentId:e,subjects:s,category:`olympiad`,onUploaded:L}),(0,Y.jsx)(l8e,{search:w,onSearchChange:T,onRefresh:L,subjects:s,hideSubjectFilter:!0}),(0,Y.jsx)(A6e,{items:v,selectedId:O,onSelect:k,onRefresh:L,emptyText:`暂无奥数题`})]})}]})]})}function p8e(){let{user:e,logout:t}=tA(),[n,r]=(0,h.useState)([]),[i,a]=(0,h.useState)(!0),[o,s]=(0,h.useState)(!1),[c]=jy.useForm(),l=jy.useWatch(`school_level`,c),u=async()=>{a(!0);try{let{data:e}=await Zk.list();r(e)}finally{a(!1)}};return(0,h.useEffect)(()=>{u()},[]),(0,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)(eD.Title,{level:3,style:{margin:0},children:`学生档案`}),(0,Y.jsxs)(eD.Text,{type:`secondary`,children:[`欢迎,`,e?.username]})]}),(0,Y.jsxs)(Iy,{wrap:!0,children:[e?.is_superuser&&(0,Y.jsx)(uO,{to:`/settings`,children:(0,Y.jsx)(Cp,{icon:(0,Y.jsx)(lA,{}),children:`系统设置`})}),(0,Y.jsx)(Cp,{type:`primary`,icon:(0,Y.jsx)(Pm,{}),onClick:()=>{c.setFieldsValue({school_level:`junior_high`,grade:void 0}),s(!0)},children:`添加学生`}),(0,Y.jsx)(Cp,{icon:(0,Y.jsx)(Rxe,{}),onClick:t,children:`退出`})]})]}),(0,Y.jsx)(LC,{spinning:i,children:(0,Y.jsxs)(oS,{gutter:[16,16],children:[n.map(e=>(0,Y.jsx)(Mg,{xs:24,sm:12,md:8,children:(0,Y.jsx)(uO,{to:`/students/${e.id}`,style:{textDecoration:`none`},children:(0,Y.jsx)(pg,{hoverable:!0,children:(0,Y.jsxs)(Iy,{align:`start`,children:[(0,Y.jsx)(pA,{style:{fontSize:24,color:`#1677ff`}}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(Iy,{size:4,children:[(0,Y.jsx)(eD.Text,{strong:!0,children:e.name}),(0,Y.jsx)(BE,{color:e.school_level===`senior_high`?`purple`:`blue`,children:Z9[e.school_level]})]}),(0,Y.jsx)(`br`,{}),(0,Y.jsx)(eD.Text,{type:`secondary`,style:{fontSize:12},children:Q9(e)})]})]})})})},e.id)),!i&&n.length===0&&(0,Y.jsx)(Mg,{span:24,children:(0,Y.jsx)(pg,{children:(0,Y.jsx)(eD.Text,{type:`secondary`,children:`暂无学生,点击「添加学生」开始`})})})]})}),(0,Y.jsx)(Gx,{title:`添加学生`,open:o,onCancel:()=>s(!1),onOk:async()=>{let e=await c.validateFields();await Zk.create(e),ax.success(`学生已添加`),s(!1),c.resetFields(),u()},destroyOnHidden:!0,children:(0,Y.jsxs)(jy,{form:c,layout:`vertical`,initialValues:{school_level:`junior_high`},children:[(0,Y.jsx)(jy.Item,{name:`name`,label:`姓名`,rules:[{required:!0}],children:(0,Y.jsx)(ob,{})}),(0,Y.jsx)(jy.Item,{name:`school_level`,label:`学段`,rules:[{required:!0}],children:(0,Y.jsx)(hC,{options:Object.entries(Z9).map(([e,t])=>({value:e,label:t})),onChange:()=>c.setFieldValue(`grade`,void 0)})}),(0,Y.jsx)(jy.Item,{name:`grade`,label:`年级`,children:(0,Y.jsx)(hC,{allowClear:!0,placeholder:l===`senior_high`?`如:高一`:`如:初二`,options:(u8e[l||`junior_high`]||[]).map(e=>({value:e,label:e}))})}),(0,Y.jsx)(jy.Item,{name:`class_name`,label:`班级`,children:(0,Y.jsx)(ob,{placeholder:`如:3班`})})]})})]})}function $9({children:e}){let{user:t,loading:n}=tA();return n?null:t?(0,Y.jsx)(Y.Fragment,{children:e}):(0,Y.jsx)(XD,{to:`/login`,replace:!0})}function m8e(){return(0,Y.jsxs)(Uve,{children:[(0,Y.jsx)(ZD,{path:`/login`,element:(0,Y.jsx)(Wxe,{})}),(0,Y.jsx)(ZD,{path:`/`,element:(0,Y.jsx)($9,{children:(0,Y.jsx)(p8e,{})})}),(0,Y.jsx)(ZD,{path:`/students/:id`,element:(0,Y.jsx)($9,{children:(0,Y.jsx)(f8e,{})})}),(0,Y.jsx)(ZD,{path:`/settings`,element:(0,Y.jsx)($9,{children:(0,Y.jsx)(Gxe,{})})}),(0,Y.jsx)(ZD,{path:`*`,element:(0,Y.jsx)(XD,{to:`/`,replace:!0})})]})}(0,hn.createRoot)(document.getElementById(`root`)).render((0,Y.jsx)(h.StrictMode,{children:(0,Y.jsx)(Iu,{locale:Dxe.default,children:(0,Y.jsx)(bye,{children:(0,Y.jsx)(jxe,{children:(0,Y.jsx)(m8e,{})})})})})); |