col-browser 2.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +798 -0
- package/es/col-browser.css +1 -0
- package/es/index.js +7967 -0
- package/es/index.js.map +1 -0
- package/package.json +79 -0
- package/umd/col-browser.js +96500 -0
- package/umd/col-browser.js.map +1 -0
- package/umd/col-browser.min.js +32 -0
- package/umd/col-browser.min.js.map +1 -0
- package/umd/main.css +127 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* col-browser v2.0.0-rc.6
|
|
3
|
+
* MIT Licensed
|
|
4
|
+
*/
|
|
5
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("maplibre-gl")):"function"==typeof define&&define.amd?define(["maplibre-gl"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).ColBrowser=t(e.maplibregl)}(this,function(e){"use strict";var t,n,r=Object.defineProperty,o=(e,t,n)=>((e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),i=void 0!==globalThis.setImmediate?globalThis.setImmediate:function(e){return setTimeout(e,0)},a=function(){function e(e){this._s=e}return e.prototype.toString=function(e){return"base64"===e?btoa(this._s):this._s},e.from=function(t){return new e(t)},e.isBuffer=function(){return!1},e}();function l(e,t){for(var n=0;n<t.length;n++){const r=t[n];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(r,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u,d,h={exports:{}},p={};function f(){if(u)return p;u=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function b(){}function x(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},b.prototype=v.prototype;var w=x.prototype=new b;w.constructor=x,g(w,v.prototype),w.isPureReactComponent=!0;var C=Array.isArray;function k(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function $(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function O(n,r,o,i,a){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s,c,u=!1;if(null===n)u=!0;else switch(l){case"bigint":case"string":case"number":u=!0;break;case"object":switch(n.$$typeof){case e:case t:u=!0;break;case d:return O((u=n._init)(n._payload),r,o,i,a)}}if(u)return a=a(n),u=""===i?"."+M(n,0):i,C(a)?(o="",null!=u&&(o=u.replace(P,"$&/")+"/"),O(a,r,o,"",function(e){return e})):null!=a&&(T(a)&&(s=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+u,a=$(s.type,c,s.props)),r.push(a)),1;u=0;var h,p=""===i?".":i+":";if(C(n))for(var m=0;m<n.length;m++)u+=O(i=n[m],r,o,l=p+M(i,m),a);else if("function"==typeof(m=null===(h=n)||"object"!=typeof h?null:"function"==typeof(h=f&&h[f]||h["@@iterator"])?h:null))for(n=m.call(n),m=0;!(i=n.next()).done;)u+=O(i=i.value,r,o,l=p+M(i,m++),a);else if("object"===l){if("function"==typeof n.then)return O(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return u}function N(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",function(e){return t.call(n,e,o++)}),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},R={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return p.Activity=h,p.Children=R,p.Component=v,p.Fragment=n,p.Profiler=o,p.PureComponent=x,p.StrictMode=r,p.Suspense=s,p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,p.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},p.cache=function(e){return function(){return e.apply(null,arguments)}},p.cacheSignal=function(){return null},p.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+2];r.children=a}return $(e.type,o,r)},p.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},p.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var l=Array(a),s=0;s<a;s++)l[s]=arguments[s+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return $(e,i,o)},p.createRef=function(){return{current:null}},p.forwardRef=function(e){return{$$typeof:l,render:e}},p.isValidElement=T,p.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:A}},p.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},p.startTransition=function(e){var t=S.T,n={};S.T=n;try{var r=e(),o=S.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,I)}catch(e){I(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),S.T=t}},p.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},p.use=function(e){return S.H.use(e)},p.useActionState=function(e,t,n){return S.H.useActionState(e,t,n)},p.useCallback=function(e,t){return S.H.useCallback(e,t)},p.useContext=function(e){return S.H.useContext(e)},p.useDebugValue=function(){},p.useDeferredValue=function(e,t){return S.H.useDeferredValue(e,t)},p.useEffect=function(e,t){return S.H.useEffect(e,t)},p.useEffectEvent=function(e){return S.H.useEffectEvent(e)},p.useId=function(){return S.H.useId()},p.useImperativeHandle=function(e,t,n){return S.H.useImperativeHandle(e,t,n)},p.useInsertionEffect=function(e,t){return S.H.useInsertionEffect(e,t)},p.useLayoutEffect=function(e,t){return S.H.useLayoutEffect(e,t)},p.useMemo=function(e,t){return S.H.useMemo(e,t)},p.useOptimistic=function(e,t){return S.H.useOptimistic(e,t)},p.useReducer=function(e,t,n){return S.H.useReducer(e,t,n)},p.useRef=function(e){return S.H.useRef(e)},p.useState=function(e){return S.H.useState(e)},p.useSyncExternalStore=function(e,t,n){return S.H.useSyncExternalStore(e,t,n)},p.useTransition=function(){return S.H.useTransition()},p.version="19.2.6",p}function m(){return d||(d=1,h.exports=f()),h.exports}var g=m();const y=c(g),v=l({__proto__:null,default:y},[g]);var b,x,w={exports:{}},C={},k={exports:{}},S={};function E(){return x||(x=1,k.exports=(b||(b=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,x=void 0!==i?i:null;function w(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(c,o)}o=n(u)}}function C(e){if(g=!1,w(e),!m)if(null!==n(c))m=!0,S||(S=!0,k());else{var t=n(u);null!==t&&A(C,t.startTime-e)}}var k,S=!1,E=-1,$=5,T=-1;function P(){return!(!y&&e.unstable_now()-T<$)}function M(){if(y=!1,S){var t=e.unstable_now();T=t;var o=!0;try{e:{m=!1,g&&(g=!1,b(E),E=-1),f=!0;var i=p;try{t:{for(w(t),h=n(c);null!==h&&!(h.expirationTime>t&&P());){var a=h.callback;if("function"==typeof a){h.callback=null,p=h.priorityLevel;var l=a(h.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){h.callback=l,w(t),o=!0;break t}h===n(c)&&r(c),w(t)}else r(c);h=n(c)}if(null!==h)o=!0;else{var s=n(u);null!==s&&A(C,s.startTime-t),o=!1}}break e}finally{h=null,p=i,f=!1}o=void 0}}finally{o?k():S=!1}}}if("function"==typeof x)k=function(){x(M)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,N=O.port2;O.port1.onmessage=M,k=function(){N.postMessage(null)}}else k=function(){v(M,0)};function A(t,n){E=v(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"):$=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_requestPaint=function(){y=!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=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:d++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(c)&&r===n(u)&&(g?(b(E),E=-1):g=!0,A(C,i-a))):(r.sortIndex=l,t(c,r),m||f||(m=!0,S||(S=!0,k()))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(S)),S)),k.exports}var $,T,P,M,O={exports:{}},N={};function A(){if($)return N;$=1;var e=m();function t(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 n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return N.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,N.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},N.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},N.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},N.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},N.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},N.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},N.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},N.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},N.requestFormReset=function(e){r.d.r(e)},N.unstable_batchedUpdates=function(e,t){return e(t)},N.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},N.useFormStatus=function(){return i.H.useHostTransitionStatus()},N.version="19.2.6",N}function I(){if(T)return O.exports;return T=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),O.exports=A(),O.exports}
|
|
6
|
+
/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react-dom-client.production.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/function R(){if(P)return C;P=1;var e=E(),t=m(),n=I();function r(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 o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function l(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function s(e){if(i(e)!==e)throw Error(r(188))}function c(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=c(e)))return t;e=e.sibling}return null}var u=Object.assign,d=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),O=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var A=Symbol.for("react.client.reference");function R(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case f:return"Fragment";case y:return"Profiler";case g:return"StrictMode";case w:return"Suspense";case k:return"SuspenseList";case T:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case p:return"Portal";case b:return e.displayName||"Context";case v:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case S:return null!==(t=e.displayName||null)?t:R(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return R(e(t))}catch(e){}}return null}var L=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},j=[],_=-1;function F(e){return{current:e}}function H(e){0>_||(e.current=j[_],j[_]=null,_--)}function W(e,t){_++,j[_]=e.current,e.current=t}var K,V,U=F(null),q=F(null),G=F(null),X=F(null);function Y(e,t){switch(W(G,t),W(q,e),W(U,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=xd(t=bd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(U),W(U,e)}function Z(){H(U),H(q),H(G)}function Q(e){null!==e.memoizedState&&W(X,e);var t=U.current,n=xd(t,e.type);t!==n&&(W(q,e),W(U,n))}function J(e){q.current===e&&(H(U),H(q)),X.current===e&&(H(X),hh._currentValue=D)}function ee(e){if(void 0===K)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);K=t&&t[1]||"",V=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+K+e+V}var te=!1;function ne(e,t){if(!e||te)return"";te=!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()}}),"object"==typeof Reflect&&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())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],l=i[1];if(a&&l){var s=a.split("\n"),c=l.split("\n");for(o=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(r===s.length||o===c.length)for(r=s.length-1,o=c.length-1;1<=r&&0<=o&&s[r]!==c[o];)o--;for(;1<=r&&0<=o;r--,o--)if(s[r]!==c[o]){if(1!==r||1!==o)do{if(r--,0>--o||s[r]!==c[o]){var u="\n"+s[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ee(n):""}function re(e,t){switch(e.tag){case 26:case 27:case 5:return ee(e.type);case 16:return ee("Lazy");case 13:return e.child!==t&&null!==t?ee("Suspense Fallback"):ee("Suspense");case 19:return ee("SuspenseList");case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return ee("Activity");default:return""}}function oe(e){try{var t="",n=null;do{t+=re(e,n),n=e,e=e.return}while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ie=Object.prototype.hasOwnProperty,ae=e.unstable_scheduleCallback,le=e.unstable_cancelCallback,se=e.unstable_shouldYield,ce=e.unstable_requestPaint,ue=e.unstable_now,de=e.unstable_getCurrentPriorityLevel,he=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,fe=e.unstable_NormalPriority,me=e.unstable_LowPriority,ge=e.unstable_IdlePriority,ye=e.log,ve=e.unstable_setDisableYieldValue,be=null,xe=null;function we(e){if("function"==typeof ye&&ve(e),xe&&"function"==typeof xe.setStrictMode)try{xe.setStrictMode(be,e)}catch(e){}}var Ce=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2;var Ee=256,$e=262144,Te=4194304;function Pe(e){var t=42&e;if(0!==t)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 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Me(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=134217727&r;return 0!==l?0!==(r=l&~i)?o=Pe(r):0!==(a&=l)?o=Pe(a):n||0!==(n=l&~e)&&(o=Pe(n)):0!==(l=r&~i)?o=Pe(l):0!==a?o=Pe(a):n||0!==(n=r&~e)&&(o=Pe(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&4194048&n)?t:o}function Oe(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ne(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;default:return-1}}function Ae(){var e=Te;return!(62914560&(Te<<=1))&&(Te=4194304),e}function Ie(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Re(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Le(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ce(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Be(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ce(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function ze(e,t){var n=t&-t;return 0!==((n=42&n?1:De(n))&(e.suspendedLanes|t))?0:n}function De(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 je(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function _e(){var e=z.p;return 0!==e?e:void 0===(e=window.event)?32:Ph(e.type)}function Fe(e,t){var n=z.p;try{return z.p=e,t()}finally{z.p=n}}var He=Math.random().toString(36).slice(2),We="__reactFiber$"+He,Ke="__reactProps$"+He,Ve="__reactContainer$"+He,Ue="__reactEvents$"+He,qe="__reactListeners$"+He,Ge="__reactHandles$"+He,Xe="__reactResources$"+He,Ye="__reactMarker$"+He;function Ze(e){delete e[We],delete e[Ke],delete e[Ue],delete e[qe],delete e[Ge]}function Qe(e){var t=e[We];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ve]||n[We]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[We])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Je(e){if(e=e[We]||e[Ve]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function et(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(r(33))}function tt(e){var t=e[Xe];return t||(t=e[Xe]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Ye]=!0}var rt=new Set,ot={};function it(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(ot[e]=t,e=0;e<t.length;e++)rt.add(t[e])}var lt=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]*$"),st={},ct={};function ut(e,t,n){if(o=t,ie.call(ct,o)||!ie.call(st,o)&&(lt.test(o)?ct[o]=!0:(st[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function dt(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ht(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function mt(e){if(!e._valueTracker){var t=ft(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.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]}}}}(e,t,""+e[t])}}function gt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function yt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var vt=/[\n"\\]/g;function bt(e){return e.replace(vt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function xt(e,t,n,r,o,i,a,l){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?Ct(e,a,pt(t)):null!=n?Ct(e,a,pt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!=typeof o&&"symbol"!=typeof o),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+pt(l):e.removeAttribute("name")}function wt(e,t,n,r,o,i,a,l){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void mt(e);n=null!=n?""+pt(n):"",t=null!=t?""+pt(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:o)&&"symbol"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),mt(e)}function Ct(e,t,n){"number"===t&&yt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+pt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+pt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function Et(e,t,n,o){if(null==t){if(null!=o){if(null!=n)throw Error(r(92));if(L(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}null==n&&(n=""),t=n}n=pt(t),e.defaultValue=n,(o=e.textContent)===n&&""!==o&&null!==o&&(e.value=o),mt(e)}function $t(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Tt=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 Pt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||Tt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Mt(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(r(62));if(e=e.style,null!=n){for(var o in n)!n.hasOwnProperty(o)||null!=t&&t.hasOwnProperty(o)||(0===o.indexOf("--")?e.setProperty(o,""):"float"===o?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&n[i]!==o&&Pt(e,i,o)}else for(var a in t)t.hasOwnProperty(a)&&Pt(e,a,t[a])}function Ot(e){if(-1===e.indexOf("-"))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 Nt=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"]]),At=/^[\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 It(e){return At.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rt(){}var Lt=null;function Bt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var zt=null,Dt=null;function jt(e){var t=Je(e);if(t&&(e=t.stateNode)){var n=e[Ke]||null;e:switch(e=t.stateNode,t.type){case"input":if(xt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=o[Ke]||null;if(!i)throw Error(r(90));xt(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(o=n[t]).form===e.form&>(o)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var _t=!1;function Ft(e,t,n){if(_t)return e(t,n);_t=!0;try{return e(t)}finally{if(_t=!1,(null!==zt||null!==Dt)&&(tu(),zt&&(t=zt,e=Dt,Dt=zt=null,jt(t),e)))for(t=0;t<e.length;t++)jt(e[t])}}function Ht(e,t){var n=e.stateNode;if(null===n)return null;var o=n[Ke]||null;if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var Wt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Kt=!1;if(Wt)try{var Vt={};Object.defineProperty(Vt,"passive",{get:function(){Kt=!0}}),window.addEventListener("test",Vt,Vt),window.removeEventListener("test",Vt,Vt)}catch(e){Kt=!1}var Ut=null,qt=null,Gt=null;function Xt(){if(Gt)return Gt;var e,t,n=qt,r=n.length,o="value"in Ut?Ut.value:Ut.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Gt=o.slice(e,1<t?1-t:void 0)}function Yt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Zt(){return!0}function Qt(){return!1}function Jt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Zt:Qt,this.isPropagationStopped=Qt,this}return u(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Zt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Zt)},persist:function(){},isPersistent:Zt}),t}var en,tn,nn,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},on=Jt(rn),an=u({},rn,{view:0,detail:0}),ln=Jt(an),sn=u({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nn&&(nn&&"mousemove"===e.type?(en=e.screenX-nn.screenX,tn=e.screenY-nn.screenY):tn=en=0,nn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),cn=Jt(sn),un=Jt(u({},sn,{dataTransfer:0})),dn=Jt(u({},an,{relatedTarget:0})),hn=Jt(u({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Jt(u({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fn=Jt(u({},rn,{data:0})),mn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gn={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"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function bn(){return vn}var xn=Jt(u({},an,{key:function(e){if(e.key){var t=mn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?gn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bn,charCode:function(e){return"keypress"===e.type?Yt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),wn=Jt(u({},sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=Jt(u({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bn})),kn=Jt(u({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Jt(u({},sn,{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})),En=Jt(u({},rn,{newState:0,oldState:0})),$n=[9,13,27,32],Tn=Wt&&"CompositionEvent"in window,Pn=null;Wt&&"documentMode"in document&&(Pn=document.documentMode);var Mn=Wt&&"TextEvent"in window&&!Pn,On=Wt&&(!Tn||Pn&&8<Pn&&11>=Pn),Nn=String.fromCharCode(32),An=!1;function In(e,t){switch(e){case"keyup":return-1!==$n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1;var Bn={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 zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function Dn(e,t,n,r){zt?Dt?Dt.push(r):Dt=[r]:zt=r,0<(t=id(t,"onChange")).length&&(n=new on("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jn=null,_n=null;function Fn(e){Zu(e,0)}function Hn(e){if(gt(et(e)))return e}function Wn(e,t){if("change"===e)return t}var Kn=!1;if(Wt){var Vn;if(Wt){var Un="oninput"in document;if(!Un){var qn=document.createElement("div");qn.setAttribute("oninput","return;"),Un="function"==typeof qn.oninput}Vn=Un}else Vn=!1;Kn=Vn&&(!document.documentMode||9<document.documentMode)}function Gn(){jn&&(jn.detachEvent("onpropertychange",Xn),_n=jn=null)}function Xn(e){if("value"===e.propertyName&&Hn(_n)){var t=[];Dn(t,_n,e,Bt(e)),Ft(Fn,t)}}function Yn(e,t,n){"focusin"===e?(Gn(),_n=n,(jn=t).attachEvent("onpropertychange",Xn)):"focusout"===e&&Gn()}function Zn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Hn(_n)}function Qn(e,t){if("click"===e)return Hn(t)}function Jn(e,t){if("input"===e||"change"===e)return Hn(t)}var er="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function tr(e,t){if(er(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===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 o=n[r];if(!ie.call(t,o)||!er(e[o],t[o]))return!1}return!0}function nr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rr(e,t){var n,r=nr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nr(r)}}function or(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?or(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ir(e){for(var t=yt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=yt((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var lr=Wt&&"documentMode"in document&&11>=document.documentMode,sr=null,cr=null,ur=null,dr=!1;function hr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==sr||sr!==yt(r)||("selectionStart"in(r=sr)&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ur&&tr(ur,r)||(ur=r,0<(r=id(cr,"onSelect")).length&&(t=new on("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sr)))}function pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},mr={},gr={};function yr(e){if(mr[e])return mr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in gr)return mr[e]=n[t];return e}Wt&&(gr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var vr=yr("animationend"),br=yr("animationiteration"),xr=yr("animationstart"),wr=yr("transitionrun"),Cr=yr("transitionstart"),kr=yr("transitioncancel"),Sr=yr("transitionend"),Er=new Map,$r="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(" ");function Tr(e,t){Er.set(e,t),it(t,[e])}$r.push("scrollEnd");var Pr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Mr=[],Or=0,Nr=0;function Ar(){for(var e=Or,t=Nr=Or=0;t<e;){var n=Mr[t];Mr[t++]=null;var r=Mr[t];Mr[t++]=null;var o=Mr[t];Mr[t++]=null;var i=Mr[t];if(Mr[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Br(n,o,i)}}function Ir(e,t,n,r){Mr[Or++]=e,Mr[Or++]=t,Mr[Or++]=n,Mr[Or++]=r,Nr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Rr(e,t,n,r){return Ir(e,t,n,r),zr(e)}function Lr(e,t){return Ir(e,null,null,t),zr(e)}function Br(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-Ce(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function zr(e){if(50<Uc)throw Uc=0,qc=null,Error(r(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function jr(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 _r(e,t,n,r){return new jr(e,t,n,r)}function Fr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hr(e,t){var n=e.alternate;return null===n?((n=_r(e.tag,t,e.key,e.mode)).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=65011712&e.flags,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=null===t?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 Wr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Kr(e,t,n,o,i,a){var l=0;if(o=e,"function"==typeof e)Fr(e)&&(l=1);else if("string"==typeof e)l=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,U.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=_r(31,n,t,i)).elementType=T,e.lanes=a,e;case f:return Vr(n.children,i,a,t);case g:l=8,i|=24;break;case y:return(e=_r(12,n,t,2|i)).elementType=y,e.lanes=a,e;case w:return(e=_r(13,n,t,i)).elementType=w,e.lanes=a,e;case k:return(e=_r(19,n,t,i)).elementType=k,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case b:l=10;break e;case v:l=9;break e;case x:l=11;break e;case S:l=14;break e;case $:l=16,o=null;break e}l=29,n=Error(r(130,null===e?"null":typeof e,"")),o=null}return(t=_r(l,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Vr(e,t,n,r){return(e=_r(7,e,r,t)).lanes=n,e}function Ur(e,t,n){return(e=_r(6,e,null,t)).lanes=n,e}function qr(e){var t=_r(18,null,null,0);return t.stateNode=e,t}function Gr(e,t,n){return(t=_r(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xr=new WeakMap;function Yr(e,t){if("object"==typeof e&&null!==e){var n=Xr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:oe(t)},Xr.set(e,t),t)}return{value:e,source:t,stack:oe(t)}}var Zr=[],Qr=0,Jr=null,eo=0,to=[],no=0,ro=null,oo=1,io="";function ao(e,t){Zr[Qr++]=eo,Zr[Qr++]=Jr,Jr=e,eo=t}function lo(e,t,n){to[no++]=oo,to[no++]=io,to[no++]=ro,ro=e;var r=oo;e=io;var o=32-Ce(r)-1;r&=~(1<<o),n+=1;var i=32-Ce(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,oo=1<<32-Ce(t)+o|n<<o|r,io=i+e}else oo=1<<i|n<<o|r,io=e}function so(e){null!==e.return&&(ao(e,1),lo(e,1,0))}function co(e){for(;e===Jr;)Jr=Zr[--Qr],Zr[Qr]=null,eo=Zr[--Qr],Zr[Qr]=null;for(;e===ro;)ro=to[--no],to[no]=null,io=to[--no],to[no]=null,oo=to[--no],to[no]=null}function uo(e,t){to[no++]=oo,to[no++]=io,to[no++]=ro,oo=t.id,io=t.overflow,ro=e}var ho=null,po=null,fo=!1,mo=null,go=!1,yo=Error(r(519));function vo(e){throw So(Yr(Error(r(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),yo}function bo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[We]=e,t[Ke]=r,n){case"dialog":Qu("cancel",t),Qu("close",t);break;case"iframe":case"object":case"embed":Qu("load",t);break;case"video":case"audio":for(n=0;n<Xu.length;n++)Qu(Xu[n],t);break;case"source":Qu("error",t);break;case"img":case"image":case"link":Qu("error",t),Qu("load",t);break;case"details":Qu("toggle",t);break;case"input":Qu("invalid",t),wt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Qu("invalid",t);break;case"textarea":Qu("invalid",t),Et(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||dd(t.textContent,n)?(null!=r.popover&&(Qu("beforetoggle",t),Qu("toggle",t)),null!=r.onScroll&&Qu("scroll",t),null!=r.onScrollEnd&&Qu("scrollend",t),null!=r.onClick&&(t.onclick=Rt),t=!0):t=!1,t||vo(e,!0)}function xo(e){for(ho=e.return;ho;)switch(ho.tag){case 5:case 31:case 13:return void(go=!1);case 27:case 3:return void(go=!0);default:ho=ho.return}}function wo(e){if(e!==ho)return!1;if(!fo)return xo(e),fo=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||wd(e.type,e.memoizedProps)),t=!t),t&&po&&vo(e),xo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=zd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));po=zd(e)}else 27===n?(n=po,Pd(e.type)?(e=Bd,Bd=null,po=e):po=n):po=ho?Ld(e.stateNode.nextSibling):null;return!0}function Co(){po=ho=null,fo=!1}function ko(){var e=mo;return null!==e&&(null===Ac?Ac=e:Ac.push.apply(Ac,e),mo=null),e}function So(e){null===mo?mo=[e]:mo.push(e)}var Eo=F(null),$o=null,To=null;function Po(e,t,n){W(Eo,t._currentValue),t._currentValue=n}function Mo(e){e._currentValue=Eo.current,H(Eo)}function Oo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function No(e,t,n,o){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var l=i.child;a=a.firstContext;e:for(;null!==a;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Oo(a.return,n,e),o||(l=null);break e}a=s.next}}else if(18===i.tag){if(null===(l=i.return))throw Error(r(341));l.lanes|=n,null!==(a=l.alternate)&&(a.lanes|=n),Oo(l,n,e),l=null}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===e){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}}function Ao(e,t,n,o){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(524288&i.flags)a=!0;else if(262144&i.flags)break;if(10===i.tag){var l=i.alternate;if(null===l)throw Error(r(387));if(null!==(l=l.memoizedProps)){var s=i.type;er(i.pendingProps.value,l.value)||(null!==e?e.push(s):e=[s])}}else if(i===X.current){if(null===(l=i.alternate))throw Error(r(387));l.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(hh):e=[hh])}i=i.return}null!==e&&No(t,e,n,o),t.flags|=262144}function Io(e){for(e=e.firstContext;null!==e;){if(!er(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ro(e){$o=e,To=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Lo(e){return zo($o,e)}function Bo(e,t){return null===$o&&Ro(e),zo(e,t)}function zo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===To){if(null===e)throw Error(r(308));To=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else To=To.next=t;return n}var Do="undefined"!=typeof AbortController?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()})}},jo=e.unstable_scheduleCallback,_o=e.unstable_NormalPriority,Fo={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ho(){return{controller:new Do,data:new Map,refCount:0}}function Wo(e){e.refCount--,0===e.refCount&&jo(_o,function(){e.controller.abort()})}var Ko=null,Vo=0,Uo=0,qo=null;function Go(){if(0===--Vo&&null!==Ko){null!==qo&&(qo.status="fulfilled");var e=Ko;Ko=null,Uo=0,qo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Xo=B.S;B.S=function(e,t){Lc=ue(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===Ko){var n=Ko=[];Vo=0,Uo=Ku(),qo={status:"pending",value:void 0,then:function(e){n.push(e)}}}Vo++,t.then(Go,Go)}(0,t),null!==Xo&&Xo(e,t)};var Yo=F(null);function Zo(){var e=Yo.current;return null!==e?e:gc.pooledCache}function Qo(e,t){W(Yo,null===t?Yo.current:t.pool)}function Jo(){var e=Zo();return null===e?null:{parent:Fo._currentValue,pool:e}}var ei=Error(r(460)),ti=Error(r(474)),ni=Error(r(542)),ri={then:function(){}};function oi(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ii(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Rt,Rt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e;default:if("string"==typeof t.status)t.then(Rt,Rt);else{if(null!==(e=gc)&&100<e.shellSuspendCounter)throw Error(r(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ci(e=t.reason),e}throw li=t,ei}}function ai(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw li=e,ei;throw e}}var li=null;function si(){if(null===li)throw Error(r(459));var e=li;return li=null,e}function ci(e){if(e===ei||e===ni)throw Error(r(483))}var ui=null,di=0;function hi(e){var t=di;return di+=1,null===ui&&(ui=[]),ii(ui,e,t)}function pi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function fi(e,t){if(t.$$typeof===d)throw Error(r(525));throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Hr(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ur(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===f?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===$&&ai(o)===t.type)?(pi(t=i(t,n.props),n),t.return=e,t):(pi(t=Kr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Vr(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function m(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Ur(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case h:return pi(n=Kr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case p:return(t=Gr(t,e.mode,n)).return=e,t;case $:return m(e,t=ai(t),n)}if(L(t)||N(t))return(t=Vr(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return m(e,hi(t),n);if(t.$$typeof===b)return m(e,Bo(e,t),n);fi(e,t)}return null}function g(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case h:return n.key===o?c(e,t,n,r):null;case p:return n.key===o?u(e,t,n,r):null;case $:return g(e,t,n=ai(n),r)}if(L(n)||N(n))return null!==o?null:d(e,t,n,r,null);if("function"==typeof n.then)return g(e,t,hi(n),r);if(n.$$typeof===b)return g(e,t,Bo(e,n),r);fi(e,n)}return null}function y(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case h:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case p:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case $:return y(e,t,n,r=ai(r),o)}if(L(r)||N(r))return d(t,e=e.get(n)||null,r,o,null);if("function"==typeof r.then)return y(e,t,n,hi(r),o);if(r.$$typeof===b)return y(e,t,n,Bo(t,r),o);fi(t,r)}return null}function v(s,c,u,d){if("object"==typeof u&&null!==u&&u.type===f&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case h:e:{for(var x=u.key;null!==c;){if(c.key===x){if((x=u.type)===f){if(7===c.tag){n(s,c.sibling),(d=i(c,u.props.children)).return=s,s=d;break e}}else if(c.elementType===x||"object"==typeof x&&null!==x&&x.$$typeof===$&&ai(x)===c.type){n(s,c.sibling),pi(d=i(c,u.props),u),d.return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}u.type===f?((d=Vr(u.props.children,s.mode,d,u.key)).return=s,s=d):(pi(d=Kr(u.type,u.key,u.props,null,s.mode,d),u),d.return=s,s=d)}return l(s);case p:e:{for(x=u.key;null!==c;){if(c.key===x){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(s,c.sibling),(d=i(c,u.children||[])).return=s,s=d;break e}n(s,c);break}t(s,c),c=c.sibling}(d=Gr(u,s.mode,d)).return=s,s=d}return l(s);case $:return v(s,c,u=ai(u),d)}if(L(u))return function(r,i,l,s){for(var c=null,u=null,d=i,h=i=0,p=null;null!==d&&h<l.length;h++){d.index>h?(p=d,d=null):p=d.sibling;var f=g(r,d,l[h],s);if(null===f){null===d&&(d=p);break}e&&d&&null===f.alternate&&t(r,d),i=a(f,i,h),null===u?c=f:u.sibling=f,u=f,d=p}if(h===l.length)return n(r,d),fo&&ao(r,h),c;if(null===d){for(;h<l.length;h++)null!==(d=m(r,l[h],s))&&(i=a(d,i,h),null===u?c=d:u.sibling=d,u=d);return fo&&ao(r,h),c}for(d=o(d);h<l.length;h++)null!==(p=y(d,r,h,l[h],s))&&(e&&null!==p.alternate&&d.delete(null===p.key?h:p.key),i=a(p,i,h),null===u?c=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return t(r,e)}),fo&&ao(r,h),c}(s,c,u,d);if(N(u)){if("function"!=typeof(x=N(u)))throw Error(r(150));return function(i,l,s,c){if(null==s)throw Error(r(151));for(var u=null,d=null,h=l,p=l=0,f=null,v=s.next();null!==h&&!v.done;p++,v=s.next()){h.index>p?(f=h,h=null):f=h.sibling;var b=g(i,h,v.value,c);if(null===b){null===h&&(h=f);break}e&&h&&null===b.alternate&&t(i,h),l=a(b,l,p),null===d?u=b:d.sibling=b,d=b,h=f}if(v.done)return n(i,h),fo&&ao(i,p),u;if(null===h){for(;!v.done;p++,v=s.next())null!==(v=m(i,v.value,c))&&(l=a(v,l,p),null===d?u=v:d.sibling=v,d=v);return fo&&ao(i,p),u}for(h=o(h);!v.done;p++,v=s.next())null!==(v=y(h,i,p,v.value,c))&&(e&&null!==v.alternate&&h.delete(null===v.key?p:v.key),l=a(v,l,p),null===d?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),fo&&ao(i,p),u}(s,c,u=x.call(u),d)}if("function"==typeof u.then)return v(s,c,hi(u),d);if(u.$$typeof===b)return v(s,c,Bo(s,u),d);fi(s,u)}return"string"==typeof u&&""!==u||"number"==typeof u||"bigint"==typeof u?(u=""+u,null!==c&&6===c.tag?(n(s,c.sibling),(d=i(c,u)).return=s,s=d):(n(s,c),(d=Ur(u,s.mode,d)).return=s,s=d),l(s)):n(s,c)}return function(e,t,n,r){try{di=0;var o=v(e,t,n,r);return ui=null,o}catch(t){if(t===ei||t===ni)throw t;var i=_r(29,t,null,e.mode);return i.lanes=r,i.return=e,i}}}var gi=mi(!0),yi=mi(!1),vi=!1;function bi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xi(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 wi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ci(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&mc){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=zr(e),Br(e,null,n),t}return Ir(e,r,t,n),zr(e)}function ki(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Be(e,n)}}function Si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ei=!1;function $i(){if(Ei){if(null!==qo)throw qo}}function Ti(e,t,n,r){Ei=!1;var o=e.updateQueue;vi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var d=e.alternate;null!==d&&((l=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===l?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(null!==i){var h=o.baseState;for(a=0,d=c=s=null,l=i;;){var p=-536870913&l.lane,f=p!==l.lane;if(f?(vc&p)===p:(r&p)===p){0!==p&&p===Uo&&(Ei=!0),null!==d&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,g=l;p=t;var y=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){h=m.call(y,h,p);break e}h=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(y,h,p):m))break e;h=u({},h,p);break e;case 2:vi=!0}}null!==(p=l.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=o.callbacks)?o.callbacks=[p]:f.push(p))}else f={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===d?(c=d=f,s=h):d=d.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}null===d&&(s=h),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=d,null===i&&(o.shared.lanes=0),$c|=a,e.lanes=a,e.memoizedState=h}}function Pi(e,t){if("function"!=typeof e)throw Error(r(191,e));e.call(t)}function Mi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Pi(n[e],t)}var Oi=F(null),Ni=F(0);function Ai(e,t){W(Ni,e=Sc),W(Oi,t),Sc=e|t.baseLanes}function Ii(){W(Ni,Sc),W(Oi,Oi.current)}function Ri(){Sc=Ni.current,H(Oi),H(Ni)}var Li=F(null),Bi=null;function zi(e){var t=e.alternate;W(Hi,1&Hi.current),W(Li,e),null===Bi&&(null===t||null!==Oi.current||null!==t.memoizedState)&&(Bi=e)}function Di(e){W(Hi,Hi.current),W(Li,e),null===Bi&&(Bi=e)}function ji(e){22===e.tag?(W(Hi,Hi.current),W(Li,e),null===Bi&&(Bi=e)):_i()}function _i(){W(Hi,Hi.current),W(Li,Li.current)}function Fi(e){H(Li),Bi===e&&(Bi=null),H(Hi)}var Hi=F(0);function Wi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Id(n)||Rd(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ki=0,Vi=null,Ui=null,qi=null,Gi=!1,Xi=!1,Yi=!1,Zi=0,Qi=0,Ji=null,ea=0;function ta(){throw Error(r(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!er(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){return Ki=i,Vi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=null===e||null===e.memoizedState?vl:bl,Yi=!1,i=n(r,o),Yi=!1,Xi&&(i=ia(t,n,r,o)),oa(e),i}function oa(e){B.H=yl;var t=null!==Ui&&null!==Ui.next;if(Ki=0,qi=Ui=Vi=null,Gi=!1,Qi=0,Ji=null,t)throw Error(r(300));null===e||Ll||null!==(e=e.dependencies)&&Io(e)&&(Ll=!0)}function ia(e,t,n,o){Vi=e;var i=0;do{if(Xi&&(Ji=null),Qi=0,Xi=!1,25<=i)throw Error(r(301));if(i+=1,qi=Ui=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}B.H=xl,a=t(n,o)}while(Xi);return a}function aa(){var e=B.H,t=e.useState()[0];return t="function"==typeof t.then?ha(t):t,e=e.useState()[0],(null!==Ui?Ui.memoizedState:null)!==e&&(Vi.flags|=1024),t}function la(){var e=0!==Zi;return Zi=0,e}function sa(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ca(e){if(Gi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Gi=!1}Ki=0,qi=Ui=Vi=null,Xi=!1,Qi=Zi=0,Ji=null}function ua(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===qi?Vi.memoizedState=qi=e:qi=qi.next=e,qi}function da(){if(null===Ui){var e=Vi.alternate;e=null!==e?e.memoizedState:null}else e=Ui.next;var t=null===qi?Vi.memoizedState:qi.next;if(null!==t)qi=t,Ui=e;else{if(null===e){if(null===Vi.alternate)throw Error(r(467));throw Error(r(310))}e={memoizedState:(Ui=e).memoizedState,baseState:Ui.baseState,baseQueue:Ui.baseQueue,queue:Ui.queue,next:null},null===qi?Vi.memoizedState=qi=e:qi=qi.next=e}return qi}function ha(e){var t=Qi;return Qi+=1,null===Ji&&(Ji=[]),e=ii(Ji,e,t),t=Vi,null===(null===qi?t.memoizedState:qi.next)&&(t=t.alternate,B.H=null===t||null===t.memoizedState?vl:bl),e}function pa(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ha(e);if(e.$$typeof===b)return Lo(e)}throw Error(r(438,String(e)))}function fa(e){var t=null,n=Vi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Vi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Vi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=M;return t.index++,n}function ma(e,t){return"function"==typeof t?t(e):t}function ga(e){return ya(da(),Ui,e)}function ya(e,t,n){var o=e.queue;if(null===o)throw Error(r(311));o.lastRenderedReducer=n;var i=e.baseQueue,a=o.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}t.baseQueue=i=a,o.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var s=l=null,c=null,u=t=i.next,d=!1;do{var h=-536870913&u.lane;if(h!==u.lane?(vc&h)===h:(Ki&h)===h){var p=u.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===Uo&&(d=!0);else{if((Ki&p)===p){u=u.next,p===Uo&&(d=!0);continue}h={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=h,l=a):c=c.next=h,Vi.lanes|=p,$c|=p}h=u.action,Yi&&n(a,h),a=u.hasEagerState?u.eagerState:n(a,h)}else p={lane:h,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(s=c=p,l=a):c=c.next=p,Vi.lanes|=h,$c|=h;u=u.next}while(null!==u&&u!==t);if(null===c?l=a:c.next=s,!er(a,e.memoizedState)&&(Ll=!0,d&&null!==(n=qo)))throw n;e.memoizedState=a,e.baseState=l,e.baseQueue=c,o.lastRenderedState=a}return null===i&&(o.lanes=0),[e.memoizedState,o.dispatch]}function va(e){var t=da(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);er(a,t.memoizedState)||(Ll=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function ba(e,t,n){var o=Vi,i=da(),a=fo;if(a){if(void 0===n)throw Error(r(407));n=n()}else n=t();var l=!er((Ui||i).memoizedState,n);if(l&&(i.memoizedState=n,Ll=!0),i=i.queue,Ka(Ca.bind(null,o,i,e),[e]),i.getSnapshot!==t||l||null!==qi&&1&qi.memoizedState.tag){if(o.flags|=2048,ja(9,{destroy:void 0},wa.bind(null,o,i,n,t),null),null===gc)throw Error(r(349));a||127&Ki||xa(o,t,n)}return n}function xa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Vi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Vi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function wa(e,t,n,r){t.value=n,t.getSnapshot=r,ka(t)&&Sa(e)}function Ca(e,t,n){return n(function(){ka(t)&&Sa(e)})}function ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!er(e,n)}catch(e){return!0}}function Sa(e){var t=Lr(e,2);null!==t&&Yc(t,e,2)}function Ea(e){var t=ua();if("function"==typeof e){var n=e;if(e=n(),Yi){we(!0);try{n()}finally{we(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},t}function $a(e,t,n,r){return e.baseState=n,ya(e,Ui,"function"==typeof r?r:ma)}function Ta(e,t,n,o,i){if(fl(e))throw Error(r(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==B.T?n(!0):a.isTransition=!1,o(a),null===(n=t.pending)?(a.next=t.pending=a,Pa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Pa(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=B.T,a={};B.T=a;try{var l=n(o,r),s=B.S;null!==s&&s(a,l),Ma(e,t,l)}catch(n){Na(e,t,n)}finally{null!==i&&null!==a.types&&(i.types=a.types),B.T=i}}else try{Ma(e,t,i=n(o,r))}catch(n){Na(e,t,n)}}function Ma(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Oa(e,t,n)},function(n){return Na(e,t,n)}):Oa(e,t,n)}function Oa(e,t,n){t.status="fulfilled",t.value=n,Aa(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Pa(e,n)))}function Na(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Aa(t),t=t.next}while(t!==r)}e.action=null}function Aa(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ia(e,t){return t}function Ra(e,t){if(fo){var n=gc.formState;if(null!==n){e:{var r=Vi;if(fo){if(po){t:{for(var o=po,i=go;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Ld(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){po=Ld(o.nextSibling),r="F!"===o.data;break e}}vo(r)}r=!1}r&&(t=n[0])}}return(n=ua()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:t},n.queue=r,n=dl.bind(null,Vi,r),r.dispatch=n,r=Ea(!1),i=pl.bind(null,Vi,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=ua()).queue=o,n=Ta.bind(null,Vi,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function La(e){return Ba(da(),Ui,e)}function Ba(e,t,n){if(t=ya(e,t,Ia)[0],e=ga(ma)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=ha(t)}catch(e){if(e===ei)throw ni;throw e}else r=t;var o=(t=da()).queue,i=o.dispatch;return n!==t.memoizedState&&(Vi.flags|=2048,ja(9,{destroy:void 0},za.bind(null,o,n),null)),[r,i,e]}function za(e,t){e.action=t}function Da(e){var t=da(),n=Ui;if(null!==n)return Ba(t,n,e);da(),t=t.memoizedState;var r=(n=da()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ja(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Vi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Vi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function _a(){return da().memoizedState}function Fa(e,t,n,r){var o=ua();Vi.flags|=e,o.memoizedState=ja(1|t,{destroy:void 0},n,void 0===r?null:r)}function Ha(e,t,n,r){var o=da();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Ui&&null!==r&&na(r,Ui.memoizedState.deps)?o.memoizedState=ja(t,i,n,r):(Vi.flags|=e,o.memoizedState=ja(1|t,i,n,r))}function Wa(e,t){Fa(8390656,8,e,t)}function Ka(e,t){Ha(2048,8,e,t)}function Va(e){var t=da().memoizedState;return function(e){Vi.flags|=4;var t=Vi.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Vi.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&mc)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Ua(e,t){return Ha(4,2,e,t)}function qa(e,t){return Ha(4,4,e,t)}function Ga(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Xa(e,t,n){n=null!=n?n.concat([e]):null,Ha(4,4,Ga.bind(null,t,e),n)}function Ya(){}function Za(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&na(t,r[1]))return r[0];if(r=e(),Yi){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r}function Ja(e,t,n){return void 0===n||1073741824&Ki&&!(261930&vc)?e.memoizedState=t:(e.memoizedState=n,e=Xc(),Vi.lanes|=e,$c|=e,n)}function el(e,t,n,r){return er(n,t)?n:null!==Oi.current?(e=Ja(e,n,r),er(e,t)||(Ll=!0),e):42&Ki&&(!(1073741824&Ki)||261930&vc)?(e=Xc(),Vi.lanes|=e,$c|=e,t):(Ll=!0,e.memoizedState=n)}function tl(e,t,n,r,o){var i=z.p;z.p=0!==i&&8>i?i:8;var a,l,s,c=B.T,u={};B.T=u,pl(e,!1,t,n);try{var d=o(),h=B.S;if(null!==h&&h(u,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)hl(e,t,(a=r,l=[],s={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},d.then(function(){s.status="fulfilled",s.value=a;for(var e=0;e<l.length;e++)(0,l[e])(a)},function(e){for(s.status="rejected",s.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)}),s),Gc());else hl(e,t,r,Gc())}catch(n){hl(e,t,{then:function(){},status:"rejected",reason:n},Gc())}finally{z.p=i,null!==c&&null!==u.types&&(c.types=u.types),B.T=c}}function nl(){}function rl(e,t,n,o){if(5!==e.tag)throw Error(r(476));var i=ol(e).queue;tl(e,i,t,D,null===n?nl:function(){return il(e),n(o)})}function ol(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function il(e){var t=ol(e);null===t.next&&(t=e.alternate.memoizedState),hl(e,t.next.queue,{},Gc())}function al(){return Lo(hh)}function ll(){return da().memoizedState}function sl(){return da().memoizedState}function cl(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Gc(),r=Ci(t,e=wi(n),n);return null!==r&&(Yc(r,t,n),ki(r,t,n)),t={cache:Ho()},void(e.payload=t)}t=t.return}}function ul(e,t,n){var r=Gc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fl(e)?ml(t,n):null!==(n=Rr(e,t,n,r))&&(Yc(n,e,r),gl(n,t,r))}function dl(e,t,n){hl(e,t,n,Gc())}function hl(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fl(e))ml(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,er(l,a))return Ir(e,t,o,0),null===gc&&Ar(),!1}catch(e){}if(null!==(n=Rr(e,t,o,r)))return Yc(n,e,r),gl(n,t,r),!0}return!1}function pl(e,t,n,o){if(o={lane:2,revertLane:Ku(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},fl(e)){if(t)throw Error(r(479))}else null!==(t=Rr(e,n,o,2))&&Yc(t,e,2)}function fl(e){var t=e.alternate;return e===Vi||null!==t&&t===Vi}function ml(e,t){Xi=Gi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gl(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Be(e,n)}}var yl={readContext:Lo,use:pa,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useInsertionEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useSyncExternalStore:ta,useId:ta,useHostTransitionStatus:ta,useFormState:ta,useActionState:ta,useOptimistic:ta,useMemoCache:ta,useCacheRefresh:ta};yl.useEffectEvent=ta;var vl={readContext:Lo,use:pa,useCallback:function(e,t){return ua().memoizedState=[e,void 0===t?null:t],e},useContext:Lo,useEffect:Wa,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Fa(4194308,4,Ga.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){Fa(4,2,e,t)},useMemo:function(e,t){var n=ua();t=void 0===t?null:t;var r=e();if(Yi){we(!0);try{e()}finally{we(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ua();if(void 0!==n){var o=n(t);if(Yi){we(!0);try{n(t)}finally{we(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=ul.bind(null,Vi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ua().memoizedState=e},useState:function(e){var t=(e=Ea(e)).queue,n=dl.bind(null,Vi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ya,useDeferredValue:function(e,t){return Ja(ua(),e,t)},useTransition:function(){var e=Ea(!1);return e=tl.bind(null,Vi,e.queue,!0,!1),ua().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=Vi,i=ua();if(fo){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===gc)throw Error(r(349));127&vc||xa(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Wa(Ca.bind(null,o,a,e),[e]),o.flags|=2048,ja(9,{destroy:void 0},wa.bind(null,o,a,n,t),null),n},useId:function(){var e=ua(),t=gc.identifierPrefix;if(fo){var n=io;t="_"+t+"R_"+(n=(oo&~(1<<32-Ce(oo)-1)).toString(32)+n),0<(n=Zi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=ea++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:al,useFormState:Ra,useActionState:Ra,useOptimistic:function(e){var t=ua();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pl.bind(null,Vi,!0,n),n.dispatch=t,[e,t]},useMemoCache:fa,useCacheRefresh:function(){return ua().memoizedState=cl.bind(null,Vi)},useEffectEvent:function(e){var t=ua(),n={impl:e};return t.memoizedState=n,function(){if(2&mc)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},bl={readContext:Lo,use:pa,useCallback:Za,useContext:Lo,useEffect:Ka,useImperativeHandle:Xa,useInsertionEffect:Ua,useLayoutEffect:qa,useMemo:Qa,useReducer:ga,useRef:_a,useState:function(){return ga(ma)},useDebugValue:Ya,useDeferredValue:function(e,t){return el(da(),Ui.memoizedState,e,t)},useTransition:function(){var e=ga(ma)[0],t=da().memoizedState;return["boolean"==typeof e?e:ha(e),t]},useSyncExternalStore:ba,useId:ll,useHostTransitionStatus:al,useFormState:La,useActionState:La,useOptimistic:function(e,t){return $a(da(),0,e,t)},useMemoCache:fa,useCacheRefresh:sl};bl.useEffectEvent=Va;var xl={readContext:Lo,use:pa,useCallback:Za,useContext:Lo,useEffect:Ka,useImperativeHandle:Xa,useInsertionEffect:Ua,useLayoutEffect:qa,useMemo:Qa,useReducer:va,useRef:_a,useState:function(){return va(ma)},useDebugValue:Ya,useDeferredValue:function(e,t){var n=da();return null===Ui?Ja(n,e,t):el(n,Ui.memoizedState,e,t)},useTransition:function(){var e=va(ma)[0],t=da().memoizedState;return["boolean"==typeof e?e:ha(e),t]},useSyncExternalStore:ba,useId:ll,useHostTransitionStatus:al,useFormState:Da,useActionState:Da,useOptimistic:function(e,t){var n=da();return null!==Ui?$a(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fa,useCacheRefresh:sl};function wl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}xl.useEffectEvent=Va;var Cl={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=wi(r);o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gc(),o=wi(r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Ci(e,o,r))&&(Yc(t,e,r),ki(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gc(),r=wi(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ci(e,r,n))&&(Yc(t,e,n),ki(t,e,n))}};function kl(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!tr(n,r)||!tr(o,i))}function Sl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Cl.enqueueReplaceState(t,t.state,null)}function El(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=u({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function $l(e){Pr(e)}function Tl(e){console.error(e)}function Pl(e){Pr(e)}function Ml(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ol(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Nl(e,t,n){return(n=wi(n)).tag=3,n.payload={element:null},n.callback=function(){Ml(e,t)},n}function Al(e){return(e=wi(e)).tag=3,e}function Il(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"==typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Ol(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Ol(t,n,r),"function"!=typeof o&&(null===Dc?Dc=new Set([this]):Dc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Rl=Error(r(461)),Ll=!1;function Bl(e,t,n,r){t.child=null===e?yi(t,null,n,r):gi(t,e.child,n,r)}function zl(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var l in r)"ref"!==l&&(a[l]=r[l])}else a=r;return Ro(t),r=ra(e,t,n,a,i,o),l=la(),null===e||Ll?(fo&&l&&so(t),t.flags|=1,Bl(e,t,r,o),t.child):(sa(e,t,o),as(e,t,o))}function Dl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Fr(i)||void 0!==i.defaultProps||null!==n.compare?((e=Kr(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,jl(e,t,i,r,o))}if(i=e.child,!ls(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:tr)(a,r)&&e.ref===t.ref)return as(e,t,o)}return t.flags|=1,(e=Hr(i,r)).ref=t.ref,e.return=t,t.child=e}function jl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(tr(i,r)&&e.ref===t.ref){if(Ll=!1,t.pendingProps=r=i,!ls(e,o))return t.lanes=e.lanes,as(e,t,o);131072&e.flags&&(Ll=!0)}}return Ul(e,t,n,r,o)}function _l(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return Hl(e,t,i,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Hl(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Qo(0,null!==i?i.cachePool:null),null!==i?Ai(t,i):Ii(),ji(t)}else null!==i?(Qo(0,i.cachePool),Ai(t,i),_i(),t.memoizedState=null):(null!==e&&Qo(0,null),Ii(),_i());return Bl(e,t,o,n),t.child}function Fl(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hl(e,t,n,r,o){var i=Zo();return i=null===i?null:{parent:Fo._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Qo(0,null),Ii(),ji(t),null!==e&&Ao(e,t,r,!0),t.childLanes=o,null}function Wl(e,t){return(t=ts({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Kl(e,t,n){return gi(t,e.child,null,n),(e=Wl(t,t.pendingProps)).flags|=2,Fi(t),t.memoizedState=null,e}function Vl(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(r(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ul(e,t,n,r,o){return Ro(t),n=ra(e,t,n,r,void 0,o),r=la(),null===e||Ll?(fo&&r&&so(t),t.flags|=1,Bl(e,t,n,o),t.child):(sa(e,t,o),as(e,t,o))}function ql(e,t,n,r,o,i){return Ro(t),t.updateQueue=null,n=ia(t,r,n,o),oa(e),r=la(),null===e||Ll?(fo&&r&&so(t),t.flags|=1,Bl(e,t,n,i),t.child):(sa(e,t,i),as(e,t,i))}function Gl(e,t,n,r,o){if(Ro(t),null===t.stateNode){var i=Dr,a=n.contextType;"object"==typeof a&&null!==a&&(i=Lo(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Cl,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},bi(t),a=n.contextType,i.context="object"==typeof a&&null!==a?Lo(a):Dr,i.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(wl(t,n,a,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(a=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&Cl.enqueueReplaceState(i,i.state,null),Ti(t,r,i,o),$i(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var l=t.memoizedProps,s=El(n,l);i.props=s;var c=i.context,u=n.contextType;a=Dr,"object"==typeof u&&null!==u&&(a=Lo(u));var d=n.getDerivedStateFromProps;u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,l=t.pendingProps!==l,u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l||c!==a)&&Sl(t,i,r,a),vi=!1;var h=t.memoizedState;i.state=h,Ti(t,r,i,o),$i(),c=t.memoizedState,l||h!==c||vi?("function"==typeof d&&(wl(t,n,d,r),c=t.memoizedState),(s=vi||kl(t,n,s,r,h,c,a))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=a,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,xi(e,t),u=El(n,a=t.memoizedProps),i.props=u,d=t.pendingProps,h=i.context,c=n.contextType,s=Dr,"object"==typeof c&&null!==c&&(s=Lo(c)),(c="function"==typeof(l=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==d||h!==s)&&Sl(t,i,r,s),vi=!1,h=t.memoizedState,i.state=h,Ti(t,r,i,o),$i();var p=t.memoizedState;a!==d||h!==p||vi||null!==e&&null!==e.dependencies&&Io(e.dependencies)?("function"==typeof l&&(wl(t,n,l,r),p=t.memoizedState),(u=vi||kl(t,n,u,r,h,p,s)||null!==e&&null!==e.dependencies&&Io(e.dependencies))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Vl(e,t),r=!!(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=gi(t,e.child,null,o),t.child=gi(t,null,n,o)):Bl(e,t,n,o),t.memoizedState=i.state,e=t.child):e=as(e,t,o),e}function Xl(e,t,n,r){return Co(),t.flags|=256,Bl(e,t,n,r),t.child}var Yl={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zl(e){return{baseLanes:e,cachePool:Jo()}}function Ql(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Mc),e}function Jl(e,t,n){var o,i=t.pendingProps,a=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&Hi.current)),o&&(a=!0,t.flags&=-129),o=!!(32&t.flags),t.flags&=-33,null===e){if(fo){if(a?zi(t):_i(),(e=po)?null!==(e=null!==(e=Ad(e,go))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,ho=t,po=null):e=null,null===e)throw vo(t);return Rd(e)?t.lanes=32:t.lanes=536870912,null}var s=i.children;return i=i.fallback,a?(_i(),s=ts({mode:"hidden",children:s},a=t.mode),i=Vr(i,a,n,null),s.return=t,i.return=t,s.sibling=i,t.child=s,(i=t.child).memoizedState=Zl(n),i.childLanes=Ql(e,o,n),t.memoizedState=Yl,Fl(null,i)):(zi(t),es(t,s))}var c=e.memoizedState;if(null!==c&&null!==(s=c.dehydrated)){if(l)256&t.flags?(zi(t),t.flags&=-257,t=ns(e,t,n)):null!==t.memoizedState?(_i(),t.child=e.child,t.flags|=128,t=null):(_i(),s=i.fallback,a=t.mode,i=ts({mode:"visible",children:i.children},a),(s=Vr(s,a,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,gi(t,e.child,null,n),(i=t.child).memoizedState=Zl(n),i.childLanes=Ql(e,o,n),t.memoizedState=Yl,t=Fl(null,i));else if(zi(t),Rd(s)){if(o=s.nextSibling&&s.nextSibling.dataset)var u=o.dgst;o=u,(i=Error(r(419))).stack="",i.digest=o,So({value:i,source:null,stack:null}),t=ns(e,t,n)}else if(Ll||Ao(e,t,n,!1),o=0!==(n&e.childLanes),Ll||o){if(null!==(o=gc)&&(0!==(i=ze(o,n))&&i!==c.retryLane))throw c.retryLane=i,Lr(e,i),Yc(o,e,i),Rl;Id(s)||su(),t=ns(e,t,n)}else Id(s)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,po=Ld(s.nextSibling),ho=t,fo=!0,mo=null,go=!1,null!==e&&uo(t,e),(t=es(t,i.children)).flags|=4096);return t}return a?(_i(),s=i.fallback,a=t.mode,u=(c=e.child).sibling,(i=Hr(c,{mode:"hidden",children:i.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?s=Hr(u,s):(s=Vr(s,a,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,Fl(null,i),i=t.child,null===(s=e.child.memoizedState)?s=Zl(n):(null!==(a=s.cachePool)?(c=Fo._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=Jo(),s={baseLanes:s.baseLanes|n,cachePool:a}),i.memoizedState=s,i.childLanes=Ql(e,o,n),t.memoizedState=Yl,Fl(e.child,i)):(zi(t),e=(n=e.child).sibling,(n=Hr(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(o=t.deletions)?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function es(e,t){return(t=ts({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ts(e,t){return(e=_r(22,e,null,t)).lanes=0,e}function ns(e,t,n){return gi(t,e.child,null,n),(e=es(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function rs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oo(e.return,t,n)}function os(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function is(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=Hi.current,l=!!(2&a);if(l?(a=1&a|2,t.flags|=128):a&=1,W(Hi,a),Bl(e,t,r,n),r=fo?eo:0,!l&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rs(e,n,t);else if(19===e.tag)rs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Wi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),os(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Wi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}os(t,!0,n,null,i,r);break;case"together":os(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function as(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),$c|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ao(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Hr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ls(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Io(e))}function ss(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ll=!0;else{if(!(ls(e,n)||128&t.flags))return Ll=!1,function(e,t,n){switch(t.tag){case 3:Y(t,t.stateNode.containerInfo),Po(0,Fo,e.memoizedState.cache),Co();break;case 27:case 5:Q(t);break;case 4:Y(t,t.stateNode.containerInfo);break;case 10:Po(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Di(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(zi(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Jl(e,t,n):(zi(t),null!==(e=as(e,t,n))?e.sibling:null);zi(t);break;case 19:var o=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ao(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return is(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),W(Hi,Hi.current),r)break;return null;case 22:return t.lanes=0,_l(e,t,n,t.pendingProps);case 24:Po(0,Fo,e.memoizedState.cache)}return as(e,t,n)}(e,t,n);Ll=!!(131072&e.flags)}else Ll=!1,fo&&1048576&t.flags&&lo(t,eo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ai(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var i=e.$$typeof;if(i===x){t.tag=11,t=zl(null,t,e,o,n);break e}if(i===S){t.tag=14,t=Dl(null,t,e,o,n);break e}}throw t=R(e)||e,Error(r(306,t,""))}Fr(e)?(o=El(e,o),t.tag=1,t=Gl(null,t,e,o,n)):(t.tag=0,t=Ul(null,t,e,o,n))}return t;case 0:return Ul(e,t,t.type,t.pendingProps,n);case 1:return Gl(e,t,o=t.type,i=El(o,t.pendingProps),n);case 3:e:{if(Y(t,t.stateNode.containerInfo),null===e)throw Error(r(387));o=t.pendingProps;var a=t.memoizedState;i=a.element,xi(e,t),Ti(t,o,null,n);var l=t.memoizedState;if(o=l.cache,Po(0,Fo,o),o!==a.cache&&No(t,[Fo],n,!0),$i(),o=l.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Xl(e,t,o,n);break e}if(o!==i){So(i=Yr(Error(r(424)),t)),t=Xl(e,t,o,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(po=Ld(e.firstChild),ho=t,fo=!0,mo=null,go=!0,n=yi(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Co(),o===i){t=as(e,t,n);break e}Bl(e,t,o,n)}t=t.child}return t;case 26:return Vl(e,t),null===e?(n=qd(t.type,null,t.pendingProps,null))?t.memoizedState=n:fo||(n=t.type,e=t.pendingProps,(o=vd(G.current).createElement(n))[We]=t,o[Ke]=e,fd(o,n,e),nt(o),t.stateNode=o):t.memoizedState=qd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q(t),null===e&&fo&&(o=t.stateNode=jd(t.type,t.pendingProps,G.current),ho=t,go=!0,i=po,Pd(t.type)?(Bd=i,po=Ld(o.firstChild)):po=i),Bl(e,t,t.pendingProps.children,n),Vl(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&fo&&((i=o=po)&&(null!==(o=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ye])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Ld(e.nextSibling)))break}return null}(o,t.type,t.pendingProps,go))?(t.stateNode=o,ho=t,po=Ld(o.firstChild),go=!1,i=!0):i=!1),i||vo(t)),Q(t),i=t.type,a=t.pendingProps,l=null!==e?e.memoizedProps:null,o=a.children,wd(i,a)?o=null:null!==l&&wd(i,l)&&(t.flags|=32),null!==t.memoizedState&&(i=ra(e,t,aa,null,null,n),hh._currentValue=i),Vl(e,t),Bl(e,t,o,n),t.child;case 6:return null===e&&fo&&((e=n=po)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}(n,t.pendingProps,go))?(t.stateNode=n,ho=t,po=null,e=!0):e=!1),e||vo(t)),null;case 13:return Jl(e,t,n);case 4:return Y(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=gi(t,null,o,n):Bl(e,t,o,n),t.child;case 11:return zl(e,t,t.type,t.pendingProps,n);case 7:return Bl(e,t,t.pendingProps,n),t.child;case 8:case 12:return Bl(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Po(0,t.type,o.value),Bl(e,t,o.children,n),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,Ro(t),o=o(i=Lo(i)),t.flags|=1,Bl(e,t,o,n),t.child;case 14:return Dl(e,t,t.type,t.pendingProps,n);case 15:return jl(e,t,t.type,t.pendingProps,n);case 19:return is(e,t,n);case 31:return function(e,t,n){var o=t.pendingProps,i=!!(128&t.flags);if(t.flags&=-129,null===e){if(fo){if("hidden"===o.mode)return e=Wl(t,o),t.lanes=536870912,Fl(null,e);if(Di(t),(e=po)?null!==(e=null!==(e=Ad(e,go))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ro?{id:oo,overflow:io}:null,retryLane:536870912,hydrationErrors:null},(n=qr(e)).return=t,t.child=n,ho=t,po=null):e=null,null===e)throw vo(t);return t.lanes=536870912,null}return Wl(t,o)}var a=e.memoizedState;if(null!==a){var l=a.dehydrated;if(Di(t),i)if(256&t.flags)t.flags&=-257,t=Kl(e,t,n);else{if(null===t.memoizedState)throw Error(r(558));t.child=e.child,t.flags|=128,t=null}else if(Ll||Ao(e,t,n,!1),i=0!==(n&e.childLanes),Ll||i){if(null!==(o=gc)&&0!==(l=ze(o,n))&&l!==a.retryLane)throw a.retryLane=l,Lr(e,l),Yc(o,e,l),Rl;su(),t=Kl(e,t,n)}else e=a.treeContext,po=Ld(l.nextSibling),ho=t,fo=!0,mo=null,go=!1,null!==e&&uo(t,e),(t=Wl(t,o)).flags|=4096;return t}return(e=Hr(e.child,{mode:o.mode,children:o.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return _l(e,t,n,t.pendingProps);case 24:return Ro(t),o=Lo(Fo),null===e?(null===(i=Zo())&&(i=gc,a=Ho(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:o,cache:i},bi(t),Po(0,Fo,i)):(0!==(e.lanes&n)&&(xi(e,t),Ti(t,null,null,n),$i()),i=e.memoizedState,a=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Po(0,Fo,o)):(o=a.cache,Po(0,Fo,o),o!==i.cache&&No(t,[Fo],n,!0))),Bl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function cs(e){e.flags|=4}function us(e,t,n,r,o){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!iu())throw li=ri,ti;e.flags|=8192}}else e.flags&=-16777217}function ds(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!ah(t)){if(!iu())throw li=ri,ti;e.flags|=8192}}function hs(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ae():536870912,e.lanes|=t,Oc|=t)}function ps(e,t){if(!fo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ms(e,t,n){var o=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return fs(t),null;case 3:return n=t.stateNode,o=null,null!==e&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Mo(Fo),Z(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(wo(t)?cs(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,ko())),fs(t),null;case 26:var i=t.type,a=t.memoizedState;return null===e?(cs(t),null!==a?(fs(t),ds(t,a)):(fs(t),us(t,i,0,0,n))):a?a!==e.memoizedState?(cs(t),fs(t),ds(t,a)):(fs(t),t.flags&=-16777217):((e=e.memoizedProps)!==o&&cs(t),fs(t),us(t,i,0,0,n)),null;case 27:if(J(t),n=G.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cs(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return fs(t),null}e=U.current,wo(t)?bo(t):(e=jd(i,o,n),t.stateNode=e,cs(t))}return fs(t),null;case 5:if(J(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==o&&cs(t);else{if(!o){if(null===t.stateNode)throw Error(r(166));return fs(t),null}if(a=U.current,wo(t))bo(t);else{var l=vd(G.current);switch(a){case 1:a=l.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=l.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(a=l.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof o.is?l.createElement("select",{is:o.is}):l.createElement("select"),o.multiple?a.multiple=!0:o.size&&(a.size=o.size);break;default:a="string"==typeof o.is?l.createElement(i,{is:o.is}):l.createElement(i)}}a[We]=t,a[Ke]=o;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)a.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=a;e:switch(fd(a,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&cs(t)}}return fs(t),us(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==o&&cs(t);else{if("string"!=typeof o&&null===t.stateNode)throw Error(r(166));if(e=G.current,wo(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,null!==(i=ho))switch(i.tag){case 27:case 5:o=i.memoizedProps}e[We]=t,(e=!!(e.nodeValue===n||null!==o&&!0===o.suppressHydrationWarning||dd(e.nodeValue,n)))||vo(t,!0)}else(e=vd(e).createTextNode(o))[We]=t,t.stateNode=e}return fs(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(o=wo(t),null!==n){if(null===e){if(!o)throw Error(r(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(r(557));e[We]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fs(t),e=!1}else n=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Fi(t),t):(Fi(t),null);if(128&t.flags)throw Error(r(558))}return fs(t),null;case 13:if(o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=wo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!i)throw Error(r(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(r(317));i[We]=t}else Co(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fs(t),i=!1}else i=ko(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Fi(t),t):(Fi(t),null)}return Fi(t),128&t.flags?(t.lanes=n,t):(n=null!==o,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(o=t.child).alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(i=o.alternate.memoizedState.cachePool.pool),a=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(a=o.memoizedState.cachePool.pool),a!==i&&(o.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hs(t,t.updateQueue),fs(t),null);case 4:return Z(),null===e&&td(t.stateNode.containerInfo),fs(t),null;case 10:return Mo(t.type),fs(t),null;case 19:if(H(Hi),null===(o=t.memoizedState))return fs(t),null;if(i=!!(128&t.flags),null===(a=o.rendering))if(i)ps(o,!1);else{if(0!==Ec||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=Wi(e))){for(t.flags|=128,ps(o,!1),e=a.updateQueue,t.updateQueue=e,hs(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Wr(n,e),n=n.sibling;return W(Hi,1&Hi.current|2),fo&&ao(t,o.treeForkCount),t.child}e=e.sibling}null!==o.tail&&ue()>Bc&&(t.flags|=128,i=!0,ps(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Wi(a))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,hs(t,e),ps(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!fo)return fs(t),null}else 2*ue()-o.renderingStartTime>Bc&&536870912!==n&&(t.flags|=128,i=!0,ps(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ue(),e.sibling=null,n=Hi.current,W(Hi,i?1&n|2:1&n),fo&&ao(t,o.treeForkCount),e):(fs(t),null);case 22:case 23:return Fi(t),Ri(),o=null!==t.memoizedState,null!==e?null!==e.memoizedState!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?!!(536870912&n)&&!(128&t.flags)&&(fs(t),6&t.subtreeFlags&&(t.flags|=8192)):fs(t),null!==(n=t.updateQueue)&&hs(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),o=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),null!==e&&H(Yo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Mo(Fo),fs(t),null;case 25:case 30:return null}throw Error(r(156,t.tag))}function gs(e,t){switch(co(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Mo(Fo),Z(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return J(t),null;case 31:if(null!==t.memoizedState){if(Fi(t),null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Fi(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));Co()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return H(Hi),null;case 4:return Z(),null;case 10:return Mo(t.type),null;case 22:case 23:return Fi(t),Ri(),null!==e&&H(Yo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Mo(Fo),null;default:return null}}function ys(e,t){switch(co(t),t.tag){case 3:Mo(Fo),Z();break;case 26:case 27:case 5:J(t);break;case 4:Z();break;case 31:null!==t.memoizedState&&Fi(t);break;case 13:Fi(t);break;case 19:H(Hi);break;case 10:Mo(t.type);break;case 22:case 23:Fi(t),Ri(),null!==e&&H(Yo);break;case 24:Mo(Fo)}}function vs(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(e){Eu(t,t.return,e)}}function bs(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,l=a.destroy;if(void 0!==l){a.destroy=void 0,o=t;var s=n,c=l;try{c()}catch(e){Eu(o,s,e)}}}r=r.next}while(r!==i)}}catch(e){Eu(t,t.return,e)}}function xs(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Mi(t,n)}catch(t){Eu(e,e.return,t)}}}function ws(e,t,n){n.props=El(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Eu(e,t,n)}}function Cs(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){Eu(e,t,n)}}function ks(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){Eu(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function Ss(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Eu(e,e.return,t)}}function Es(e,t,n){try{var o=e.stateNode;!function(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,l=null,s=null,c=null,u=null,d=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&null!=h)switch(f){case"checked":case"value":break;case"defaultValue":c=h;default:o.hasOwnProperty(f)||hd(e,t,f,null,o,h)}}for(var p in o){var f=o[p];if(h=n[p],o.hasOwnProperty(p)&&(null!=f||null!=h))switch(p){case"type":a=f;break;case"name":i=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":l=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(r(137,t));break;default:f!==h&&hd(e,t,p,f,o,h)}}return void xt(e,l,s,c,u,d,a,i);case"select":for(a in f=l=s=p=null,n)if(c=n[a],n.hasOwnProperty(a)&&null!=c)switch(a){case"value":break;case"multiple":f=c;default:o.hasOwnProperty(a)||hd(e,t,a,null,o,c)}for(i in o)if(a=o[i],c=n[i],o.hasOwnProperty(i)&&(null!=a||null!=c))switch(i){case"value":p=a;break;case"defaultValue":s=a;break;case"multiple":l=a;default:a!==c&&hd(e,t,i,a,o,c)}return t=s,n=l,o=f,void(null!=p?kt(e,!!n,p,!1):!!o!=!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(s in f=p=null,n)if(i=n[s],n.hasOwnProperty(s)&&null!=i&&!o.hasOwnProperty(s))switch(s){case"value":case"children":break;default:hd(e,t,s,null,o,i)}for(l in o)if(i=o[l],a=n[l],o.hasOwnProperty(l)&&(null!=i||null!=a))switch(l){case"value":p=i;break;case"defaultValue":f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(r(91));break;default:i!==a&&hd(e,t,l,i,o,a)}return void St(e,p,f);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!o.hasOwnProperty(m))if("selected"===m)e.selected=!1;else hd(e,t,m,null,o,p);for(c in o)if(p=o[c],f=n[c],o.hasOwnProperty(c)&&p!==f&&(null!=p||null!=f))if("selected"===c)e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p;else hd(e,t,c,p,o,f);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)&&null!=p&&!o.hasOwnProperty(g)&&hd(e,t,g,null,o,p);for(u in o)if(p=o[u],f=n[u],o.hasOwnProperty(u)&&p!==f&&(null!=p||null!=f))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(r(137,t));break;default:hd(e,t,u,p,o,f)}return;default:if(Ot(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!o.hasOwnProperty(y)&&pd(e,t,y,void 0,o,p);for(d in o)p=o[d],f=n[d],!o.hasOwnProperty(d)||p===f||void 0===p&&void 0===f||pd(e,t,d,p,o,f);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!o.hasOwnProperty(v)&&hd(e,t,v,null,o,p);for(h in o)p=o[h],f=n[h],!o.hasOwnProperty(h)||p===f||null==p&&null==f||hd(e,t,h,p,o,f)}(o,e.type,n,t),o[Ke]=t}catch(t){Eu(e,e.return,t)}}function $s(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Pd(e.type)||4===e.tag}function Ts(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||$s(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Pd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ps(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Rt));else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Ps(e,t,n),e=e.sibling;null!==e;)Ps(e,t,n),e=e.sibling}function Ms(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Pd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Ms(e,t,n),e=e.sibling;null!==e;)Ms(e,t,n),e=e.sibling}function Os(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);fd(t,r,n),t[We]=e,t[Ke]=n}catch(t){Eu(e,e.return,t)}}var Ns=!1,As=!1,Is=!1,Rs="function"==typeof WeakSet?WeakSet:Set,Ls=null;function Bs(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ys(e,n),4&r&&vs(5,n);break;case 1:if(Ys(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){Eu(n,n.return,e)}else{var o=El(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Eu(n,n.return,e)}}64&r&&xs(n),512&r&&Cs(n,n.return);break;case 3:if(Ys(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Mi(e,t)}catch(e){Eu(n,n.return,e)}}break;case 27:null===t&&4&r&&Os(n);case 26:case 5:Ys(e,n),null===t&&4&r&&Ss(n),512&r&&Cs(n,n.return);break;case 12:Ys(e,n);break;case 31:Ys(e,n),4&r&&Hs(e,n);break;case 13:Ys(e,n),4&r&&Ws(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Mu.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Ns)){t=null!==t&&null!==t.memoizedState||As,o=Ns;var i=As;Ns=r,(As=t)&&!i?Qs(e,n,!!(8772&n.subtreeFlags)):Ys(e,n),Ns=o,As=i}break;case 30:break;default:Ys(e,n)}}function zs(e){var t=e.alternate;null!==t&&(e.alternate=null,zs(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ze(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 Ds=null,js=!1;function _s(e,t,n){for(n=n.child;null!==n;)Fs(e,t,n),n=n.sibling}function Fs(e,t,n){if(xe&&"function"==typeof xe.onCommitFiberUnmount)try{xe.onCommitFiberUnmount(be,n)}catch(e){}switch(n.tag){case 26:As||ks(n,t),_s(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:As||ks(n,t);var r=Ds,o=js;Pd(n.type)&&(Ds=n.stateNode,js=!1),_s(e,t,n),_d(n.stateNode),Ds=r,js=o;break;case 5:As||ks(n,t);case 6:if(r=Ds,o=js,Ds=null,_s(e,t,n),js=o,null!==(Ds=r))if(js)try{(9===Ds.nodeType?Ds.body:"HTML"===Ds.nodeName?Ds.ownerDocument.body:Ds).removeChild(n.stateNode)}catch(e){Eu(n,t,e)}else try{Ds.removeChild(n.stateNode)}catch(e){Eu(n,t,e)}break;case 18:null!==Ds&&(js?(Md(9===(e=Ds).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Uh(e)):Md(Ds,n.stateNode));break;case 4:r=Ds,o=js,Ds=n.stateNode.containerInfo,js=!0,_s(e,t,n),Ds=r,js=o;break;case 0:case 11:case 14:case 15:bs(2,n,t),As||bs(4,n,t),_s(e,t,n);break;case 1:As||(ks(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&ws(n,t,r)),_s(e,t,n);break;case 21:_s(e,t,n);break;case 22:As=(r=As)||null!==n.memoizedState,_s(e,t,n),As=r;break;default:_s(e,t,n)}}function Hs(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Uh(e)}catch(e){Eu(t,t.return,e)}}}function Ws(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Uh(e)}catch(e){Eu(t,t.return,e)}}function Ks(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Rs),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Rs),t;default:throw Error(r(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ou.bind(null,e,t);t.then(r,r)}})}function Vs(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o],a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 27:if(Pd(s.type)){Ds=s.stateNode,js=!1;break e}break;case 5:Ds=s.stateNode,js=!1;break e;case 3:case 4:Ds=s.stateNode.containerInfo,js=!0;break e}s=s.return}if(null===Ds)throw Error(r(160));Fs(a,l,i),Ds=null,js=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)qs(t,e),t=t.sibling}var Us=null;function qs(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vs(t,e),Gs(e),4&o&&(bs(3,e,e.return),vs(3,e),bs(5,e,e.return));break;case 1:Vs(t,e),Gs(e),512&o&&(As||null===n||ks(n,n.return)),64&o&&Ns&&(null!==(e=e.updateQueue)&&(null!==(o=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?o:n.concat(o))));break;case 26:var i=Us;if(Vs(t,e),Gs(e),512&o&&(As||null===n||ks(n,n.return)),4&o){var a=null!==n?n.memoizedState:null;if(o=e.memoizedState,null===n)if(null===o)if(null===e.stateNode){e:{o=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Ye]||a[We]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(o),i.head.insertBefore(a,i.querySelector("head > title"))),fd(a,o,n),a[We]=e,nt(a),o=a;break e;case"link":var l=oh("link","href",i).get(o+(n.href||""));if(l)for(var s=0;s<l.length;s++)if((a=l[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){l.splice(s,1);break t}fd(a=i.createElement(o),o,n),i.head.appendChild(a);break;case"meta":if(l=oh("meta","content",i).get(o+(n.content||"")))for(s=0;s<l.length;s++)if((a=l[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){l.splice(s,1);break t}fd(a=i.createElement(o),o,n),i.head.appendChild(a);break;default:throw Error(r(468,o))}a[We]=e,nt(a),o=a}e.stateNode=o}else ih(i,e.type,e.stateNode);else e.stateNode=Jd(i,o,e.memoizedProps);else a!==o?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===o?ih(i,e.type,e.stateNode):Jd(i,o,e.memoizedProps)):null===o&&null!==e.stateNode&&Es(e,e.memoizedProps,n.memoizedProps)}break;case 27:Vs(t,e),Gs(e),512&o&&(As||null===n||ks(n,n.return)),null!==n&&4&o&&Es(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Vs(t,e),Gs(e),512&o&&(As||null===n||ks(n,n.return)),32&e.flags){i=e.stateNode;try{$t(i,"")}catch(t){Eu(e,e.return,t)}}4&o&&null!=e.stateNode&&Es(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&o&&(Is=!0);break;case 6:if(Vs(t,e),Gs(e),4&o){if(null===e.stateNode)throw Error(r(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(t){Eu(e,e.return,t)}}break;case 3:if(rh=null,i=Us,Us=Wd(t.containerInfo),Vs(t,e),Us=i,Gs(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Uh(t.containerInfo)}catch(t){Eu(e,e.return,t)}Is&&(Is=!1,Xs(e));break;case 4:o=Us,Us=Wd(e.stateNode.containerInfo),Vs(t,e),Gs(e),Us=o;break;case 12:default:Vs(t,e),Gs(e);break;case 31:case 19:Vs(t,e),Gs(e),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Ks(e,o)));break;case 13:Vs(t,e),Gs(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Rc=ue()),4&o&&(null!==(o=e.updateQueue)&&(e.updateQueue=null,Ks(e,o)));break;case 22:i=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Ns,d=As;if(Ns=u||i,As=d||c,Vs(t,e),As=d,Ns=u,Gs(e),8192&o)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||c||Ns||As||Zs(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(a=c.stateNode,i)"function"==typeof(l=a.style).setProperty?l.setProperty("display","none","important"):l.display="none";else{s=c.stateNode;var h=c.memoizedProps.style,p=null!=h&&h.hasOwnProperty("display")?h.display:null;s.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(e){Eu(c,c.return,e)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(e){Eu(c,c.return,e)}}}else if(18===t.tag){if(null===n){c=t;try{var f=c.stateNode;i?Od(f,!0):Od(c.stateNode,!1)}catch(e){Eu(c,c.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&o&&(null!==(o=e.updateQueue)&&(null!==(n=o.retryQueue)&&(o.retryQueue=null,Ks(e,n))));case 30:case 21:}}function Gs(e){var t=e.flags;if(2&t){try{for(var n,o=e.return;null!==o;){if($s(o)){n=o;break}o=o.return}if(null==n)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode;Ms(e,Ts(e),i);break;case 5:var a=n.stateNode;32&n.flags&&($t(a,""),n.flags&=-33),Ms(e,Ts(e),a);break;case 3:case 4:var l=n.stateNode.containerInfo;Ps(e,Ts(e),l);break;default:throw Error(r(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Xs(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Xs(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ys(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Bs(e,t.alternate,t),t=t.sibling}function Zs(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bs(4,t,t.return),Zs(t);break;case 1:ks(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&ws(t,t.return,n),Zs(t);break;case 27:_d(t.stateNode);case 26:case 5:ks(t,t.return),Zs(t);break;case 22:null===t.memoizedState&&Zs(t);break;default:Zs(t)}e=e.sibling}}function Qs(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Qs(o,i,n),vs(4,i);break;case 1:if(Qs(o,i,n),"function"==typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){Eu(r,r.return,e)}if(null!==(o=(r=i).updateQueue)){var l=r.stateNode;try{var s=o.shared.hiddenCallbacks;if(null!==s)for(o.shared.hiddenCallbacks=null,o=0;o<s.length;o++)Pi(s[o],l)}catch(e){Eu(r,r.return,e)}}n&&64&a&&xs(i),Cs(i,i.return);break;case 27:Os(i);case 26:case 5:Qs(o,i,n),n&&null===r&&4&a&&Ss(i),Cs(i,i.return);break;case 12:Qs(o,i,n);break;case 31:Qs(o,i,n),n&&4&a&&Hs(o,i);break;case 13:Qs(o,i,n),n&&4&a&&Ws(o,i);break;case 22:null===i.memoizedState&&Qs(o,i,n),Cs(i,i.return);break;case 30:break;default:Qs(o,i,n)}t=t.sibling}}function Js(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Wo(n))}function ec(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Wo(e))}function tc(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)nc(e,t,n,r),t=t.sibling}function nc(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:tc(e,t,n,r),2048&o&&vs(9,t);break;case 1:case 31:case 13:default:tc(e,t,n,r);break;case 3:tc(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Wo(e)));break;case 12:if(2048&o){tc(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,l=i.onPostCommit;"function"==typeof l&&l(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){Eu(t,t.return,e)}}else tc(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?tc(e,t,n,r):oc(e,t):2&i._visibility?tc(e,t,n,r):(i._visibility|=2,rc(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&o&&Js(a,t);break;case 24:tc(e,t,n,r),2048&o&&ec(t.alternate,t)}}function rc(e,t,n,r,o){for(o=o&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,a=t,l=n,s=r,c=a.flags;switch(a.tag){case 0:case 11:case 15:rc(i,a,l,s,o),vs(8,a);break;case 23:break;case 22:var u=a.stateNode;null!==a.memoizedState?2&u._visibility?rc(i,a,l,s,o):oc(i,a):(u._visibility|=2,rc(i,a,l,s,o)),o&&2048&c&&Js(a.alternate,a);break;case 24:rc(i,a,l,s,o),o&&2048&c&&ec(a.alternate,a);break;default:rc(i,a,l,s,o)}t=t.sibling}}function oc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:oc(n,r),2048&o&&Js(r.alternate,r);break;case 24:oc(n,r),2048&o&&ec(r.alternate,r);break;default:oc(n,r)}t=t.sibling}}var ic=8192;function ac(e,t,n){if(e.subtreeFlags&ic)for(e=e.child;null!==e;)lc(e,t,n),e=e.sibling}function lc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&ic&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var o=Gd(r.href),i=t.querySelector(Xd(o));if(i)return null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=sh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void nt(i);i=t.ownerDocument||t,r=Yd(r),(o=Fd.get(o))&&th(r,o),nt(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),fd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=sh.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Us,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=Us;Us=Wd(e.stateNode.containerInfo),ac(e,t,n),Us=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ic,ic=16777216,ac(e,t,n),ic=r):ac(e,t,n))}}function sc(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function cc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ls=r,hc(r,e)}sc(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)uc(e),e=e.sibling}function uc(e){switch(e.tag){case 0:case 11:case 15:cc(e),2048&e.flags&&bs(9,e,e.return);break;case 3:case 12:default:cc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,dc(e)):cc(e)}}function dc(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ls=r,hc(r,e)}sc(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:bs(8,t,t.return),dc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function hc(e,t){for(;null!==Ls;){var n=Ls;switch(n.tag){case 0:case 11:case 15:bs(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Wo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ls=r;else e:for(n=e;null!==Ls;){var o=(r=Ls).sibling,i=r.return;if(zs(r),r===n){Ls=null;break e}if(null!==o){o.return=i,Ls=o;break e}Ls=i}}}var pc={getCacheForType:function(e){var t=Lo(Fo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Lo(Fo).controller.signal}},fc="function"==typeof WeakMap?WeakMap:Map,mc=0,gc=null,yc=null,vc=0,bc=0,xc=null,wc=!1,Cc=!1,kc=!1,Sc=0,Ec=0,$c=0,Tc=0,Pc=0,Mc=0,Oc=0,Nc=null,Ac=null,Ic=!1,Rc=0,Lc=0,Bc=1/0,zc=null,Dc=null,jc=0,_c=null,Fc=null,Hc=0,Wc=0,Kc=null,Vc=null,Uc=0,qc=null;function Gc(){return 2&mc&&0!==vc?vc&-vc:null!==B.T?Ku():_e()}function Xc(){if(0===Mc)if(536870912&vc&&!fo)Mc=536870912;else{var e=$e;!(3932160&($e<<=1))&&($e=262144),Mc=e}return null!==(e=Li.current)&&(e.flags|=32),Mc}function Yc(e,t,n){(e!==gc||2!==bc&&9!==bc)&&null===e.cancelPendingCommit||(ru(e,0),eu(e,vc,Mc,!1)),Re(e,n),2&mc&&e===gc||(e===gc&&(!(2&mc)&&(Tc|=n),4===Ec&&eu(e,vc,Mc,!1)),zu(e))}function Zc(e,t,n){if(6&mc)throw Error(r(327));for(var o=!n&&!(127&t)&&0===(t&e.expiredLanes)||Oe(e,t),i=o?function(e,t){var n=mc;mc|=2;var o=au(),i=lu();gc!==e||vc!==t?(zc=null,Bc=ue()+500,ru(e,t)):Cc=Oe(e,t);e:for(;;)try{if(0!==bc&&null!==yc){t=yc;var a=xc;t:switch(bc){case 1:bc=0,xc=null,fu(e,t,a,1);break;case 2:case 9:if(oi(a)){bc=0,xc=null,pu(t);break}t=function(){2!==bc&&9!==bc||gc!==e||(bc=7),zu(e)},a.then(t,t);break e;case 3:bc=7;break e;case 4:bc=5;break e;case 7:oi(a)?(bc=0,xc=null,pu(t)):(bc=0,xc=null,fu(e,t,a,7));break;case 5:var l=null;switch(yc.tag){case 26:l=yc.memoizedState;case 5:case 27:var s=yc;if(l?ah(l):s.stateNode.complete){bc=0,xc=null;var c=s.sibling;if(null!==c)yc=c;else{var u=s.return;null!==u?(yc=u,mu(u)):yc=null}break t}}bc=0,xc=null,fu(e,t,a,5);break;case 6:bc=0,xc=null,fu(e,t,a,6);break;case 8:nu(),Ec=6;break e;default:throw Error(r(462))}}du();break}catch(t){ou(e,t)}return To=$o=null,B.H=o,B.A=i,mc=n,null!==yc?0:(gc=null,vc=0,Ar(),Ec)}(e,t):cu(e,t,!0),a=o;;){if(0===i){Cc&&!o&&eu(e,t,0,!1);break}if(n=e.current.alternate,!a||Jc(n)){if(2===i){if(a=t,e.errorRecoveryDisabledLanes&a)var l=0;else l=0!==(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){t=l;e:{var s=e;i=Nc;var c=s.current.memoizedState.isDehydrated;if(c&&(ru(s,l).flags|=256),2!==(l=cu(s,l,!1))){if(kc&&!c){s.errorRecoveryDisabledLanes|=a,Tc|=a,i=4;break e}a=Ac,Ac=i,null!==a&&(null===Ac?Ac=a:Ac.push.apply(Ac,a))}i=l}if(a=!1,2!==i)continue}}if(1===i){ru(e,0),eu(e,t,0,!0);break}e:{switch(o=e,a=i){case 0:case 1:throw Error(r(345));case 4:if((4194048&t)!==t)break;case 6:eu(o,t,Mc,!wc);break e;case 2:Ac=null;break;case 3:case 5:break;default:throw Error(r(329))}if((62914560&t)===t&&10<(i=Rc+300-ue())){if(eu(o,t,Mc,!wc),0!==Me(o,0,!0))break e;Hc=t,o.timeoutHandle=kd(Qc.bind(null,o,n,Ac,zc,Ic,t,Mc,Tc,Oc,wc,a,"Throttled",-0,0),i)}else Qc(o,n,Ac,zc,Ic,t,Mc,Tc,Oc,wc,a,null,-0,0)}break}i=cu(e,t,!1),a=!1}zu(e)}function Qc(e,t,n,r,o,i,a,l,s,c,u,d,h,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){lc(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rt});var f=(62914560&i)===i?Rc-ue():(4194048&i)===i?Lc-ue():0;if(null!==(f=function(e,t){return e.stylesheets&&0===e.count&&uh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&uh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===lh&&(lh=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,l=o.duration;if(i&&l&&md(a)){for(a=0,l=o.responseEnd,r+=1;r<n.length;r++){var s=n[r],c=s.startTime;if(c>l)break;var u=s.transferSize,d=s.initiatorType;u&&md(d)&&(a+=u*((s=s.responseEnd)<l?1:(l-c)/(s-c)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&uh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>lh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,f)))return Hc=i,e.cancelPendingCommit=f(yu.bind(null,e,t,i,n,r,o,a,l,s,u,d,null,h,p)),void eu(e,i,a,!c)}yu(e,t,i,n,r,o,a,l,s)}function Jc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!er(i(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eu(e,t,n,r){t&=~Pc,t&=~Tc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-Ce(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Le(e,n,t)}function tu(){return!!(6&mc)||(Du(0),!1)}function nu(){if(null!==yc){if(0===bc)var e=yc.return;else To=$o=null,ca(e=yc),ui=null,di=0,e=yc;for(;null!==e;)ys(e.alternate,e),e=e.return;yc=null}}function ru(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Hc=0,nu(),gc=e,yc=n=Hr(e.current,null),vc=t,bc=0,xc=null,wc=!1,Cc=Oe(e,t),kc=!1,Oc=Mc=Pc=Tc=$c=Ec=0,Ac=Nc=null,Ic=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-Ce(r),i=1<<o;t|=e[o],r&=~i}return Sc=t,Ar(),n}function ou(e,t){Vi=null,B.H=yl,t===ei||t===ni?(t=si(),bc=3):t===ti?(t=si(),bc=4):bc=t===Rl?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,xc=t,null===yc&&(Ec=1,Ml(e,Yr(t,e.current)))}function iu(){var e=Li.current;return null===e||((4194048&vc)===vc?null===Bi:!!((62914560&vc)===vc||536870912&vc)&&e===Bi)}function au(){var e=B.H;return B.H=yl,null===e?yl:e}function lu(){var e=B.A;return B.A=pc,e}function su(){Ec=4,wc||(4194048&vc)!==vc&&null!==Li.current||(Cc=!0),!(134217727&$c)&&!(134217727&Tc)||null===gc||eu(gc,vc,Mc,!1)}function cu(e,t,n){var r=mc;mc|=2;var o=au(),i=lu();gc===e&&vc===t||(zc=null,ru(e,t)),t=!1;var a=Ec;e:for(;;)try{if(0!==bc&&null!==yc){var l=yc,s=xc;switch(bc){case 8:nu(),a=6;break e;case 3:case 2:case 9:case 6:null===Li.current&&(t=!0);var c=bc;if(bc=0,xc=null,fu(e,l,s,c),n&&Cc){a=0;break e}break;default:c=bc,bc=0,xc=null,fu(e,l,s,c)}}uu(),a=Ec;break}catch(t){ou(e,t)}return t&&e.shellSuspendCounter++,To=$o=null,mc=r,B.H=o,B.A=i,null===yc&&(gc=null,vc=0,Ar()),a}function uu(){for(;null!==yc;)hu(yc)}function du(){for(;null!==yc&&!se();)hu(yc)}function hu(e){var t=ss(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?mu(e):yc=t}function pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ql(n,t,t.pendingProps,t.type,void 0,vc);break;case 11:t=ql(n,t,t.pendingProps,t.type.render,t.ref,vc);break;case 5:ca(t);default:ys(n,t),t=ss(n,t=yc=Wr(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?mu(e):yc=t}function fu(e,t,n,o){To=$o=null,ca(t),ui=null,di=0;var i=t.return;try{if(function(e,t,n,o,i){if(n.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){if(null!==(t=n.alternate)&&Ao(t,n,i,!0),null!==(n=Li.current)){switch(n.tag){case 31:case 13:return null===Bi?su():null===n.alternate&&0===Ec&&(Ec=3),n.flags&=-257,n.flags|=65536,n.lanes=i,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([o]):t.add(o),$u(e,o,i)),!1;case 22:return n.flags|=65536,o===ri?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([o]):n.add(o),$u(e,o,i)),!1}throw Error(r(435,n.tag))}return $u(e,o,i),su(),!1}if(fo)return null!==(t=Li.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==yo&&So(Yr(e=Error(r(422),{cause:o}),n))):(o!==yo&&So(Yr(t=Error(r(423),{cause:o}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,o=Yr(o,n),Si(e,i=Nl(e.stateNode,o,i)),4!==Ec&&(Ec=2)),!1;var a=Error(r(520),{cause:o});if(a=Yr(a,n),null===Nc?Nc=[a]:Nc.push(a),4!==Ec&&(Ec=2),null===t)return!0;o=Yr(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Si(n,e=Nl(n.stateNode,o,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Dc&&Dc.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,Il(i=Al(i),e,n,o),Si(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,vc))return Ec=1,Ml(e,Yr(n,e.current)),void(yc=null)}catch(t){if(null!==i)throw yc=i,t;return Ec=1,Ml(e,Yr(n,e.current)),void(yc=null)}32768&t.flags?(fo||1===o?e=!0:Cc||536870912&vc?e=!1:(wc=e=!0,(2===o||9===o||3===o||6===o)&&(null!==(o=Li.current)&&13===o.tag&&(o.flags|=16384))),gu(t,e)):mu(t)}function mu(e){var t=e;do{if(32768&t.flags)return void gu(t,wc);e=t.return;var n=ms(t.alternate,t,Sc);if(null!==n)return void(yc=n);if(null!==(t=t.sibling))return void(yc=t);yc=t=e}while(null!==t);0===Ec&&(Ec=5)}function gu(e,t){do{var n=gs(e.alternate,e);if(null!==n)return n.flags&=32767,void(yc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(yc=e);yc=e=n}while(null!==e);Ec=6,yc=null}function yu(e,t,n,o,i,a,l,s,c){e.cancelPendingCommit=null;do{Cu()}while(0!==jc);if(6&mc)throw Error(r(327));if(null!==t){if(t===e.current)throw Error(r(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=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 l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-Ce(n),d=1<<u;l[u]=0,s[u]=-1;var h=c[u];if(null!==h)for(c[u]=null,u=0;u<h.length;u++){var p=h[u];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Le(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,a|=Nr,l,s,c),e===gc&&(yc=gc=null,vc=0),Fc=t,_c=e,Hc=n,Wc=a,Kc=i,Vc=o,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ae(fe,function(){return ku(),null})):(e.callbackNode=null,e.callbackPriority=0),o=!!(13878&t.flags),13878&t.subtreeFlags||o){o=B.T,B.T=null,i=z.p,z.p=2,l=mc,mc|=4;try{!function(e,t){if(e=e.containerInfo,gd=wh,ar(e=ir(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==i&&3!==h.nodeType||(s=l+i),h!==a||0!==o&&3!==h.nodeType||(c=l+o),3===h.nodeType&&(l+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++u===i&&(s=l),p===a&&++d===o&&(c=l),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(yd={focusedElem:e,selectionRange:n},wh=!1,Ls=t;null!==Ls;)if(e=(t=Ls).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ls=e;else for(;null!==Ls;){switch(a=(t=Ls).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,o=n.stateNode;try{var m=El(n.type,i);e=o.getSnapshotBeforeUpdate(m,a),o.__reactInternalSnapshotBeforeUpdate=e}catch(e){Eu(n,n.return,e)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Nd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nd(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(r(163))}if(null!==(e=t.sibling)){e.return=t.return,Ls=e;break}Ls=t.return}}(e,t)}finally{mc=l,z.p=i,B.T=o}}jc=1,vu(),bu(),xu()}}function vu(){if(1===jc){jc=0;var e=_c,t=Fc,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=B.T,B.T=null;var r=z.p;z.p=2;var o=mc;mc|=4;try{qs(t,e);var i=yd,a=ir(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(a!==l&&l&&l.ownerDocument&&or(l.ownerDocument.documentElement,l)){if(null!==s&&ar(l)){var c=s.start,u=s.end;if(void 0===u&&(u=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(u,l.value.length);else{var d=l.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),f=l.textContent.length,m=Math.min(s.start,f),g=void 0===s.end?m:Math.min(s.end,f);!p.extend&&m>g&&(a=g,g=m,m=a);var y=rr(l,m),v=rr(l,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),m>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(d=[],p=l;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<d.length;l++){var x=d[l];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}wh=!!gd,yd=gd=null}finally{mc=o,z.p=r,B.T=n}}e.current=t,jc=2}}function bu(){if(2===jc){jc=0;var e=_c,t=Fc,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=B.T,B.T=null;var r=z.p;z.p=2;var o=mc;mc|=4;try{Bs(e,t.alternate,t)}finally{mc=o,z.p=r,B.T=n}}jc=3}}function xu(){if(4===jc||3===jc){jc=0,ce();var e=_c,t=Fc,n=Hc,r=Vc;10256&t.subtreeFlags||10256&t.flags?jc=5:(jc=0,Fc=_c=null,wu(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Dc=null),je(n),t=t.stateNode,xe&&"function"==typeof xe.onCommitFiberRoot)try{xe.onCommitFiberRoot(be,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==r){t=B.T,o=z.p,z.p=2,B.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var l=r[a];i(l.value,{componentStack:l.stack})}}finally{B.T=t,z.p=o}}3&Hc&&Cu(),zu(e),o=e.pendingLanes,261930&n&&42&o?e===qc?Uc++:(Uc=0,qc=e):Uc=0,Du(0)}}function wu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Wo(t)))}function Cu(){return vu(),bu(),xu(),ku()}function ku(){if(5!==jc)return!1;var e=_c,t=Wc;Wc=0;var n=je(Hc),o=B.T,i=z.p;try{z.p=32>n?32:n,B.T=null,n=Kc,Kc=null;var a=_c,l=Hc;if(jc=0,Fc=_c=null,Hc=0,6&mc)throw Error(r(331));var s=mc;if(mc|=4,uc(a.current),nc(a,a.current,l,n),mc=s,Du(0,!1),xe&&"function"==typeof xe.onPostCommitFiberRoot)try{xe.onPostCommitFiberRoot(be,a)}catch(e){}return!0}finally{z.p=i,B.T=o,wu(e,t)}}function Su(e,t,n){t=Yr(n,t),null!==(e=Ci(e,t=Nl(e.stateNode,t,2),2))&&(Re(e,2),zu(e))}function Eu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Dc||!Dc.has(r))){e=Yr(n,e),null!==(r=Ci(t,n=Al(2),2))&&(Il(n,r,t,e),Re(r,2),zu(r));break}}t=t.return}}function $u(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(kc=!0,o.add(n),e=Tu.bind(null,e,t,n),t.then(e,e))}function Tu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,gc===e&&(vc&n)===n&&(4===Ec||3===Ec&&(62914560&vc)===vc&&300>ue()-Rc?!(2&mc)&&ru(e,0):Pc|=n,Oc===vc&&(Oc=0)),zu(e)}function Pu(e,t){0===t&&(t=Ae()),null!==(e=Lr(e,t))&&(Re(e,t),zu(e))}function Mu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Ou(e,t){var n=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(r(314))}null!==o&&o.delete(t),Pu(e,n)}var Nu=null,Au=null,Iu=!1,Ru=!1,Lu=!1,Bu=0;function zu(e){e!==Au&&null===e.next&&(null===Au?Nu=Au=e:Au=Au.next=e),Ru=!0,Iu||(Iu=!0,$d(function(){6&mc?ae(he,ju):_u()}))}function Du(e,t){if(!Lu&&Ru){Lu=!0;do{for(var n=!1,r=Nu;null!==r;){if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,l=r.pingedLanes;i=(1<<31-Ce(42|e)+1)-1,i=201326741&(i&=o&~(a&~l))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Wu(r,i))}else i=vc,!(3&(i=Me(r,r===gc?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Oe(r,i)||(n=!0,Wu(r,i));r=r.next}}while(n);Lu=!1}}function ju(){_u()}function _u(){Ru=Iu=!1;var e=0;0!==Bu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Cd&&(Cd=e,!0);return Cd=null,!1}()&&(e=Bu);for(var t=ue(),n=null,r=Nu;null!==r;){var o=r.next,i=Fu(r,t);0===i?(r.next=null,null===n?Nu=o:n.next=o,null===o&&(Au=n)):(n=r,(0!==e||3&i)&&(Ru=!0)),r=o}0!==jc&&5!==jc||Du(e),0!==Bu&&(Bu=0)}function Fu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-Ce(i),l=1<<a,s=o[a];-1===s?0!==(l&n)&&0===(l&r)||(o[a]=Ne(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(n=vc,n=Me(e,e===(t=gc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===bc||9===bc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&le(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Oe(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&le(r),je(n)){case 2:case 8:n=pe;break;case 32:default:n=fe;break;case 268435456:n=ge}return r=Hu.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&le(r),e.callbackPriority=2,e.callbackNode=null,2}function Hu(e,t){if(0!==jc&&5!==jc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=vc;return 0===(r=Me(e,e===gc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Zc(e,r,t),Fu(e,ue()),null!=e.callbackNode&&e.callbackNode===n?Hu.bind(null,e):null)}function Wu(e,t){if(Cu())return null;Zc(e,t,!0)}function Ku(){if(0===Bu){var e=Uo;0===e&&(e=Ee,!(261888&(Ee<<=1))&&(Ee=256)),Bu=e}return Bu}function Vu(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:It(""+e)}function Uu(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}for(var qu=0;qu<$r.length;qu++){var Gu=$r[qu];Tr(Gu.toLowerCase(),"on"+(Gu[0].toUpperCase()+Gu.slice(1)))}Tr(vr,"onAnimationEnd"),Tr(br,"onAnimationIteration"),Tr(xr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(wr,"onTransitionRun"),Tr(Cr,"onTransitionStart"),Tr(kr,"onTransitionCancel"),Tr(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),it("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),it("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),it("onBeforeInput",["compositionend","keypress","textInput","paste"]),it("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),it("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xu="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(" "),Yu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xu));function Zu(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;i=l,o.currentTarget=c;try{i(o)}catch(e){Pr(e)}o.currentTarget=null,i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;i=l,o.currentTarget=c;try{i(o)}catch(e){Pr(e)}o.currentTarget=null,i=s}}}}function Qu(e,t){var n=t[Ue];void 0===n&&(n=t[Ue]=new Set);var r=e+"__bubble";n.has(r)||(nd(t,e,2,!1),n.add(r))}function Ju(e,t,n){var r=0;t&&(r|=4),nd(n,e,r,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[ed]){e[ed]=!0,rt.forEach(function(t){"selectionchange"!==t&&(Yu.has(t)||Ju(t,!1,e),Ju(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ed]||(t[ed]=!0,Ju("selectionchange",!1,t))}}function nd(e,t,n,r){switch(Ph(t)){case 2:var o=Ch;break;case 8:o=kh;break;default:o=Sh}n=o.bind(null,t,n,e),o=void 0,!Kt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rd(e,t,n,r,o){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var l=r.tag;if(3===l||4===l){var s=r.stateNode.containerInfo;if(s===o)break;if(4===l)for(l=r.return;null!==l;){var c=l.tag;if((3===c||4===c)&&l.stateNode.containerInfo===o)return;l=l.return}for(;null!==s;){if(null===(l=Qe(s)))return;if(5===(c=l.tag)||6===c||26===c||27===c){r=a=l;continue e}s=s.parentNode}}r=r.return}Ft(function(){var r=a,o=Bt(n),l=[];e:{var s=Er.get(e);if(void 0!==s){var c=on,u=e;switch(e){case"keypress":if(0===Yt(n))break e;case"keydown":case"keyup":c=xn;break;case"focusin":u="focus",c=dn;break;case"focusout":u="blur",c=dn;break;case"beforeblur":case"afterblur":c=dn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=cn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=un;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Cn;break;case vr:case br:case xr:c=hn;break;case Sr:c=kn;break;case"scroll":case"scrollend":c=ln;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=pn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=wn;break;case"toggle":case"beforetoggle":c=En}var d=!!(4&t),h=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var f,m=r;null!==m;){var g=m;if(f=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===f||null===p||null!=(g=Ht(m,p))&&d.push(od(m,g,f)),h)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,o),l.push({event:s,listeners:d}))}}if(!(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Lt||!(u=n.relatedTarget||n.fromElement)||!Qe(u)&&!u[Ve])&&(c||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Qe(u):null)&&(h=i(u),d=u.tag,u!==h||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=cn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=wn,g="onPointerLeave",p="onPointerEnter",m="pointer"),h=null==c?s:et(c),f=null==u?s:et(u),(s=new d(g,m+"leave",c,n,o)).target=h,s.relatedTarget=f,g=null,Qe(o)===r&&((d=new d(p,m+"enter",u,n,o)).target=f,d.relatedTarget=h,g=d),h=g,c&&u)e:{for(d=ad,m=u,f=0,g=p=c;g;g=d(g))f++;g=0;for(var y=m;y;y=d(y))g++;for(;0<f-g;)p=d(p),f--;for(;0<g-f;)m=d(m),g--;for(;f--;){if(p===m||null!==m&&p===m.alternate){d=p;break e}p=d(p),m=d(m)}d=null}else d=null;null!==c&&ld(l,s,c,d,!1),null!==u&&null!==h&&ld(l,h,u,d,!0)}if("select"===(c=(s=r?et(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var v=Wn;else if(zn(s))if(Kn)v=Jn;else{v=Zn;var b=Yn}else!(c=s.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Ot(r.elementType)&&(v=Wn):v=Qn;switch(v&&(v=v(e,r))?Dn(l,v,n,o):(b&&b(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&Ct(s,"number",s.value)),b=r?et(r):window,e){case"focusin":(zn(b)||"true"===b.contentEditable)&&(sr=b,cr=r,ur=null);break;case"focusout":ur=cr=sr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,hr(l,n,o);break;case"selectionchange":if(lr)break;case"keydown":case"keyup":hr(l,n,o)}var x;if(Tn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Ln?In(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(On&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==w?"onCompositionEnd"===w&&Ln&&(x=Xt()):(qt="value"in(Ut=o)?Ut.value:Ut.textContent,Ln=!0)),0<(b=id(r,w)).length&&(w=new fn(w,e,null,n,o),l.push({event:w,listeners:b}),x?w.data=x:null!==(x=Rn(n))&&(w.data=x))),(x=Mn?function(e,t){switch(e){case"compositionend":return Rn(t);case"keypress":return 32!==t.which?null:(An=!0,Nn);case"textInput":return(e=t.data)===Nn&&An?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!Tn&&In(e,t)?(e=Xt(),Gt=qt=Ut=null,Ln=!1,e):null;switch(e){case"paste":default: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 On&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(w=id(r,"onBeforeInput")).length&&(b=new fn("onBeforeInput","beforeinput",null,n,o),l.push({event:b,listeners:w}),b.data=x)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=Vu((o[Ke]||null).action),a=r.submitter;a&&null!==(t=(t=a[Ke]||null)?Vu(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var l=new on("action","action",null,r,o);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Bu){var e=a?Uu(o,a):new FormData(o);rl(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"==typeof i&&(l.preventDefault(),e=a?Uu(o,a):new FormData(o),rl(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(l,e,r,n,o)}Zu(l,t)})}function od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function id(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Ht(e,n))&&r.unshift(od(e,o,i)),null!=(o=Ht(e,t))&&r.push(od(e,o,i))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function ld(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(l=l.tag,null!==s&&s===r)break;5!==l&&26!==l&&27!==l||null===c||(s=c,o?null!=(c=Ht(n,i))&&a.unshift(od(n,c,s)):o||null!=(c=Ht(n,i))&&a.push(od(n,c,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var sd=/\r\n?/g,cd=/\u0000|\uFFFD/g;function ud(e){return("string"==typeof e?e:""+e).replace(sd,"\n").replace(cd,"")}function dd(e,t){return t=ud(t),ud(e)===t}function hd(e,t,n,o,i,a){switch(n){case"children":"string"==typeof o?"body"===t||"textarea"===t&&""===o||$t(e,o):("number"==typeof o||"bigint"==typeof o)&&"body"!==t&&$t(e,""+o);break;case"className":dt(e,"class",o);break;case"tabIndex":dt(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":dt(e,n,o);break;case"style":Mt(e,o,a);break;case"data":if("object"!==t){dt(e,"data",o);break}case"src":case"href":if(""===o&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==o||"function"==typeof o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=It(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if("function"==typeof o){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}if("function"==typeof a&&("formAction"===n?("input"!==t&&hd(e,t,"name",i.name,i,null),hd(e,t,"formEncType",i.formEncType,i,null),hd(e,t,"formMethod",i.formMethod,i,null),hd(e,t,"formTarget",i.formTarget,i,null)):(hd(e,t,"encType",i.encType,i,null),hd(e,t,"method",i.method,i,null),hd(e,t,"target",i.target,i,null))),null==o||"symbol"==typeof o||"boolean"==typeof o){e.removeAttribute(n);break}o=It(""+o),e.setAttribute(n,o);break;case"onClick":null!=o&&(e.onclick=Rt);break;case"onScroll":null!=o&&Qu("scroll",e);break;case"onScrollEnd":null!=o&&Qu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"muted":e.muted=o&&"function"!=typeof o&&"symbol"!=typeof o;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==o||"function"==typeof o||"boolean"==typeof o||"symbol"==typeof o){e.removeAttribute("xlink:href");break}n=It(""+o),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":null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""+o):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":o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===o?e.setAttribute(n,""):!1!==o&&null!=o&&"function"!=typeof o&&"symbol"!=typeof o?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":null==o||"function"==typeof o||"symbol"==typeof o||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":Qu("beforetoggle",e),Qu("toggle",e),ut(e,"popover",o);break;case"xlinkActuate":ht(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ht(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ht(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ht(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ht(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ht(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ht(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ht(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ht(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ut(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&ut(e,n=Nt.get(n)||n,o)}}function pd(e,t,n,o,i,a){switch(n){case"style":Mt(e,o,a);break;case"dangerouslySetInnerHTML":if(null!=o){if("object"!=typeof o||!("__html"in o))throw Error(r(61));if(null!=(n=o.__html)){if(null!=i.children)throw Error(r(60));e.innerHTML=n}}break;case"children":"string"==typeof o?$t(e,o):("number"==typeof o||"bigint"==typeof o)&&$t(e,""+o);break;case"onScroll":null!=o&&Qu("scroll",e);break;case"onScrollEnd":null!=o&&Qu("scrollend",e);break;case"onClick":null!=o&&(e.onclick=Rt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:ot.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"==typeof(a=null!=(a=e[Ke]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!=typeof o)?n in e?e[n]=o:!0===o?e.setAttribute(n,""):ut(e,n,o):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,i)))}}function fd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qu("error",e),Qu("load",e);var o,i=!1,a=!1;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(null!=l)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:hd(e,t,o,l,n,null)}}return a&&hd(e,t,"srcSet",n.srcSet,n,null),void(i&&hd(e,t,"src",n.src,n,null));case"input":Qu("invalid",e);var s=o=l=a=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":a=d;break;case"type":l=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(r(137,t));break;default:hd(e,t,i,d,n,null)}}return void wt(e,o,s,c,u,l,a,!1);case"select":for(a in Qu("invalid",e),i=l=o=null,n)if(n.hasOwnProperty(a)&&null!=(s=n[a]))switch(a){case"value":o=s;break;case"defaultValue":l=s;break;case"multiple":i=s;default:hd(e,t,a,s,n,null)}return t=o,n=l,e.multiple=!!i,void(null!=t?kt(e,!!i,t,!1):null!=n&&kt(e,!!i,n,!0));case"textarea":for(l in Qu("invalid",e),o=a=i=null,n)if(n.hasOwnProperty(l)&&null!=(s=n[l]))switch(l){case"value":i=s;break;case"defaultValue":a=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(r(91));break;default:hd(e,t,l,s,n,null)}return void Et(e,i,a,o);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!=typeof i&&"symbol"!=typeof i;else hd(e,t,c,i,n,null);return;case"dialog":Qu("beforetoggle",e),Qu("toggle",e),Qu("cancel",e),Qu("close",e);break;case"iframe":case"object":Qu("load",e);break;case"video":case"audio":for(i=0;i<Xu.length;i++)Qu(Xu[i],e);break;case"image":Qu("error",e),Qu("load",e);break;case"details":Qu("toggle",e);break;case"embed":case"source":case"link":Qu("error",e),Qu("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)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:hd(e,t,u,i,n,null)}return;default:if(Ot(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&pd(e,t,d,i,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(null!=(i=n[s])&&hd(e,t,s,i,n,null))}function md(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var gd=null,yd=null;function vd(e){return 9===e.nodeType?e:e.ownerDocument}function bd(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 xd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function wd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Cd=null;var kd="function"==typeof setTimeout?setTimeout:void 0,Sd="function"==typeof clearTimeout?clearTimeout:void 0,Ed="function"==typeof Promise?Promise:void 0,$d="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ed?function(e){return Ed.resolve(null).then(e).catch(Td)}:kd;function Td(e){setTimeout(function(){throw e})}function Pd(e){return"head"===e}function Md(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Uh(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)_d(e.ownerDocument.documentElement);else if("head"===n){_d(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,l=i.nodeName;i[Ye]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&_d(e.ownerDocument.body);n=o}while(n);Uh(t)}function Od(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Nd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Nd(n),Ze(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Ad(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}function Id(e){return"$?"===e.data||"$~"===e.data}function Rd(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Bd=null;function zd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function jd(e,t,n){switch(t=vd(n),e){case"html":if(!(e=t.documentElement))throw Error(r(452));return e;case"head":if(!(e=t.head))throw Error(r(453));return e;case"body":if(!(e=t.body))throw Error(r(454));return e;default:throw Error(r(451))}}function _d(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ze(e)}var Fd=new Map,Hd=new Set;function Wd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Kd=z.d;z.d={f:function(){var e=Kd.f(),t=tu();return e||t},r:function(e){var t=Je(e);null!==t&&5===t.tag&&"form"===t.type?il(t):Kd.r(e)},D:function(e){Kd.D(e),Ud("dns-prefetch",e,null)},C:function(e,t){Kd.C(e,t),Ud("preconnect",e,t)},L:function(e,t,n){Kd.L(e,t,n);var r=Vd;if(r&&e&&t){var o='link[rel="preload"][as="'+bt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+bt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(o+='[imagesizes="'+bt(n.imageSizes)+'"]')):o+='[href="'+bt(e)+'"]';var i=o;switch(t){case"style":i=Gd(e);break;case"script":i=Zd(e)}Fd.has(i)||(e=u({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Fd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Xd(i))||"script"===t&&r.querySelector(Qd(i))||(fd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}},m:function(e,t){Kd.m(e,t);var n=Vd;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+bt(r)+'"][href="'+bt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Zd(e)}if(!Fd.has(i)&&(e=u({rel:"modulepreload",href:e},t),Fd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Qd(i)))return}fd(r=n.createElement("link"),"link",e),nt(r),n.head.appendChild(r)}}},X:function(e,t){Kd.X(e,t);var n=Vd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Qd(o)))||(e=u({src:e,async:!0},t),(t=Fd.get(o))&&nh(e,t),nt(i=n.createElement("script")),fd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){Kd.S(e,t,n);var r=Vd;if(r&&e){var o=tt(r).hoistableStyles,i=Gd(e);t=t||"default";var a=o.get(i);if(!a){var l={loading:0,preload:null};if(a=r.querySelector(Xd(i)))l.loading=5;else{e=u({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Fd.get(i))&&th(e,n);var s=a=r.createElement("link");nt(s),fd(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,eh(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:l},o.set(i,a)}}},M:function(e,t){Kd.M(e,t);var n=Vd;if(n&&e){var r=tt(n).hoistableScripts,o=Zd(e),i=r.get(o);i||((i=n.querySelector(Qd(o)))||(e=u({src:e,async:!0,type:"module"},t),(t=Fd.get(o))&&nh(e,t),nt(i=n.createElement("script")),fd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var Vd="undefined"==typeof document?null:document;function Ud(e,t,n){var r=Vd;if(r&&"string"==typeof t&&t){var o=bt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"==typeof n&&(o+='[crossorigin="'+n+'"]'),Hd.has(o)||(Hd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(fd(t=r.createElement("link"),"link",e),nt(t),r.head.appendChild(t)))}}function qd(e,t,n,o){var i,a,l,s,c=(c=G.current)?Wd(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=Gd(n.href),(o=(n=tt(c).hoistableStyles).get(t))||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=Gd(n.href);var u=tt(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Xd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Fd.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},Fd.set(e,n),u||(i=c,a=e,l=n,s=d.state,i.querySelector('link[rel="preload"][as="style"]['+a+"]")?s.loading=1:(a=i.createElement("link"),s.preload=a,a.addEventListener("load",function(){return s.loading|=1}),a.addEventListener("error",function(){return s.loading|=2}),fd(a,"link",l),nt(a),i.head.appendChild(a))))),t&&null===o)throw Error(r(528,""));return d}if(t&&null!==o)throw Error(r(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Zd(n),(o=(n=tt(c).hoistableScripts).get(t))||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gd(e){return'href="'+bt(e)+'"'}function Xd(e){return'link[rel="stylesheet"]['+e+"]"}function Yd(e){return u({},e,{"data-precedence":e.precedence,precedence:null})}function Zd(e){return'[src="'+bt(e)+'"]'}function Qd(e){return"script[async]"+e}function Jd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+bt(n.href)+'"]');if(o)return t.instance=o,nt(o),o;var i=u({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return nt(o=(e.ownerDocument||e).createElement("style")),fd(o,"style",i),eh(o,n.precedence,e),t.instance=o;case"stylesheet":i=Gd(n.href);var a=e.querySelector(Xd(i));if(a)return t.state.loading|=4,t.instance=a,nt(a),a;o=Yd(n),(i=Fd.get(i))&&th(o,i),nt(a=(e.ownerDocument||e).createElement("link"));var l=a;return l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),fd(a,"link",o),t.state.loading|=4,eh(a,n.precedence,e),t.instance=a;case"script":return a=Zd(n.src),(i=e.querySelector(Qd(a)))?(t.instance=i,nt(i),i):(o=n,(i=Fd.get(a))&&nh(o=u({},n),i),nt(i=(e=e.ownerDocument||e).createElement("script")),fd(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(o=t.instance,t.state.loading|=4,eh(o,n.precedence,e));return t.instance}function eh(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var l=r[a];if(l.dataset.precedence===t)i=l;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function th(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function nh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var rh=null;function oh(e,t,n){if(null===rh){var r=new Map,o=rh=new Map;o.set(n,r)}else(r=(o=rh).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ye]||i[We]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var l=r.get(a);l?l.push(i):r.set(a,[i])}}return r}function ih(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function ah(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var lh=0;function sh(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)uh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var ch=null;function uh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,ch=new Map,t.forEach(dh,e),ch=null,sh.call(e))}function dh(e,t){if(!(4&t.state.loading)){var n=ch.get(e);if(n)var r=n.get(null);else{n=new Map,ch.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=sh.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var hh={$$typeof:b,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function ph(e,t,n,r,o,i,a,l,s){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=Ie(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ie(0),this.hiddenUpdates=Ie(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function fh(e,t,n,r,o,i,a,l,s,c,u,d){return e=new ph(e,t,n,a,s,c,u,d,l),t=1,!0===i&&(t|=24),i=_r(3,null,null,t),e.current=i,i.stateNode=e,(t=Ho()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},bi(i),e}function mh(e){return e?e=Dr:Dr}function gh(e,t,n,r,o,i){o=mh(o),null===r.context?r.context=o:r.pendingContext=o,(r=wi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=Ci(e,r,t))&&(Yc(n,0,t),ki(n,e,t))}function yh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function vh(e,t){yh(e,t),(e=e.alternate)&&yh(e,t)}function bh(e){if(13===e.tag||31===e.tag){var t=Lr(e,67108864);null!==t&&Yc(t,0,67108864),vh(e,67108864)}}function xh(e){if(13===e.tag||31===e.tag){var t=Gc(),n=Lr(e,t=De(t));null!==n&&Yc(n,0,t),vh(e,t)}}var wh=!0;function Ch(e,t,n,r){var o=B.T;B.T=null;var i=z.p;try{z.p=2,Sh(e,t,n,r)}finally{z.p=i,B.T=o}}function kh(e,t,n,r){var o=B.T;B.T=null;var i=z.p;try{z.p=8,Sh(e,t,n,r)}finally{z.p=i,B.T=o}}function Sh(e,t,n,r){if(wh){var o=Eh(r);if(null===o)rd(e,t,r,$h,n),zh(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Oh=Dh(Oh,e,t,n,r,o),!0;case"dragenter":return Nh=Dh(Nh,e,t,n,r,o),!0;case"mouseover":return Ah=Dh(Ah,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ih.set(i,Dh(Ih.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rh.set(i,Dh(Rh.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(zh(e,r),4&t&&-1<Bh.indexOf(e)){for(;null!==o;){var i=Je(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Pe(i.pendingLanes);if(0!==a){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var s=1<<31-Ce(a);l.entanglements[1]|=s,a&=~s}zu(i),!(6&mc)&&(Bc=ue()+500,Du(0))}}break;case 31:case 13:null!==(l=Lr(i,2))&&Yc(l,0,2),tu(),vh(i,2)}if(null===(i=Eh(r))&&rd(e,t,r,$h,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else rd(e,t,r,null,n)}}function Eh(e){return Th(e=Bt(e))}var $h=null;function Th(e){if($h=null,null!==(e=Qe(e))){var t=i(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(t)))return e;e=null}else if(31===n){if(null!==(e=l(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return $h=e,null}function Ph(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(de()){case he:return 2;case pe:return 8;case fe:case me:return 32;case ge:return 268435456;default:return 32}default:return 32}}var Mh=!1,Oh=null,Nh=null,Ah=null,Ih=new Map,Rh=new Map,Lh=[],Bh="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 zh(e,t){switch(e){case"focusin":case"focusout":Oh=null;break;case"dragenter":case"dragleave":Nh=null;break;case"mouseover":case"mouseout":Ah=null;break;case"pointerover":case"pointerout":Ih.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rh.delete(t.pointerId)}}function Dh(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Je(t))&&bh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jh(e){var t=Qe(e.target);if(null!==t){var n=i(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void Fe(e.priority,function(){xh(n)})}else if(31===t){if(null!==(t=l(n)))return e.blockedOn=t,void Fe(e.priority,function(){xh(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function _h(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Eh(e.nativeEvent);if(null!==n)return null!==(t=Je(n))&&bh(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Lt=r,n.target.dispatchEvent(r),Lt=null,t.shift()}return!0}function Fh(e,t,n){_h(e)&&n.delete(t)}function Hh(){Mh=!1,null!==Oh&&_h(Oh)&&(Oh=null),null!==Nh&&_h(Nh)&&(Nh=null),null!==Ah&&_h(Ah)&&(Ah=null),Ih.forEach(Fh),Rh.forEach(Fh)}function Wh(t,n){t.blockedOn===n&&(t.blockedOn=null,Mh||(Mh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Hh)))}var Kh=null;function Vh(t){Kh!==t&&(Kh=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Kh===t&&(Kh=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],o=t[e+2];if("function"!=typeof r){if(null===Th(r||n))continue;break}var i=Je(n);null!==i&&(t.splice(e,3),e-=3,rl(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Uh(e){function t(t){return Wh(t,e)}null!==Oh&&Wh(Oh,e),null!==Nh&&Wh(Nh,e),null!==Ah&&Wh(Ah,e),Ih.forEach(t),Rh.forEach(t);for(var n=0;n<Lh.length;n++){var r=Lh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Lh.length&&null===(n=Lh[0]).blockedOn;)jh(n),null===n.blockedOn&&Lh.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[Ke]||null;if("function"==typeof i)a||Vh(n);else if(a){var l=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[Ke]||null)l=a.formAction;else if(null!==Th(o))continue}else l=a.action;"function"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),Vh(n)}}}function qh(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,o=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),null!==o&&(o(),o=null)}}}function Gh(e){this._internalRoot=e}function Xh(e){this._internalRoot=e}Xh.prototype.render=Gh.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));gh(t.current,Gc(),e,t,null,null)},Xh.prototype.unmount=Gh.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;gh(e.current,2,null,e,null,null),tu(),t[Ve]=null}},Xh.prototype.unstable_scheduleHydration=function(e){if(e){var t=_e();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lh.length&&0!==t&&t<Lh[n].priority;n++);Lh.splice(n,0,e),0===n&&jh(e)}};var Yh=t.version;if("19.2.6"!==Yh)throw Error(r(527,Yh,"19.2.6"));z.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=i(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var l=a.alternate;if(null===l){if(null!==(o=a.return)){n=o;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===n)return s(a),e;if(l===o)return s(a),t;l=l.sibling}throw Error(r(188))}if(n.return!==o.return)n=a,o=l;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,o=l;break}if(u===o){c=!0,o=a,n=l;break}u=u.sibling}if(!c){for(u=l.child;u;){if(u===n){c=!0,n=l,o=a;break}if(u===o){c=!0,o=l,n=a;break}u=u.sibling}if(!c)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?c(e):null)?null:e.stateNode};var Zh={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.6"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qh.isDisabled&&Qh.supportsFiber)try{be=Qh.inject(Zh),xe=Qh}catch(e){}}return C.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",a=$l,l=Tl,s=Pl;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(l=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError)),t=fh(e,1,!1,null,0,n,i,null,a,l,s,qh),e[Ve]=t.current,td(e),new Gh(t)},C.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,a="",l=$l,s=Tl,c=Pl,u=null;return null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(l=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=fh(e,1,!0,t,0,i,a,u,l,s,c,qh)).context=mh(null),n=t.current,(a=wi(i=De(i=Gc()))).callback=null,Ci(n,a,i),n=i,t.current.lanes=n,Re(t,n),zu(t),e[Ve]=t.current,td(e),new Xh(t)},C.version="19.2.6",C}var L=(M||(M=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),w.exports=R()),w.exports);const B=l({__proto__:null,default:c(L)},[L]);var z,D,j={exports:{}},_={};var F=(D||(D=1,j.exports=function(){if(z)return _;z=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return _.Fragment=t,_.jsx=n,_.jsxs=n,_}()),j.exports);const H=new Set;function W(e,t){const n=`${e}:${t}`;H.has(n)||(H.add(n),"undefined"!=typeof console&&console.warn&&console.warn(`[col-browser] <${e}> ${t}`))}function K(e){const t=e.displayName||e.name||"Component",n=n=>{const{catalogueKey:r,datasetKey:o,...i}=n;void 0!==r&&void 0===o&&W(t,"the `catalogueKey` prop is deprecated; rename it to `datasetKey`.");const a=void 0!==o?o:r;return F.jsx(e,{...i,datasetKey:a})};return n.displayName=`withDatasetKey(${t})`,n}const V=e=>{const t=g.useRef(e);t.current=e;return g.useCallback((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])};function U(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const q=U()?g.useLayoutEffect:g.useEffect,G=(e,t)=>{const n=g.useRef(!0);q(()=>e(n.current),t),q(()=>(n.current=!1,()=>{n.current=!0}),[])},X=e=>{const t=g.useRef(!1),[n,r]=g.useState(e);return g.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),[n,function(e,n){n&&t.current||r(e)}]};function Y(e,t){const[n,r]=g.useState(e),o=void 0!==t?t:n;return G(e=>{e||r(t)},[t]),[o,r]}let Z=0;function Q(e,t){return`${e}-${String(t).replace(/[^a-zA-Z0-9_.:-]/g,"-")}`}const J={...v}.useId,ee=J?function(e){const t=J();return e||t}:function(e){const[t,n]=g.useState("ssr-id");return g.useEffect(()=>{const e=Z;Z+=1,n(`rc_unique_${e}`)},[]),e||t};function te(e,t,n){const r=g.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var ne,re,oe={exports:{}},ie={};var ae=(re||(re=1,oe.exports=function(){if(ne)return ie;ne=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case p:case h:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),ie.ContextConsumer=l,ie.ContextProvider=a,ie.Element=t,ie.ForwardRef=c,ie.Fragment=r,ie.Lazy=p,ie.Memo=h,ie.Portal=n,ie.Profiler=i,ie.StrictMode=o,ie.Suspense=u,ie.SuspenseList=d,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(e){return m(e)===l},ie.isContextProvider=function(e){return m(e)===a},ie.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ie.isForwardRef=function(e){return m(e)===c},ie.isFragment=function(e){return m(e)===r},ie.isLazy=function(e){return m(e)===p},ie.isMemo=function(e){return m(e)===h},ie.isPortal=function(e){return m(e)===n},ie.isProfiler=function(e){return m(e)===i},ie.isStrictMode=function(e){return m(e)===o},ie.isSuspense=function(e){return m(e)===u},ie.isSuspenseList=function(e){return m(e)===d},ie.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===h||t.$$typeof===a||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},ie.typeOf=m,ie}()),oe.exports);const le=Symbol.for("react.element"),se=Symbol.for("react.transitional.element"),ce=Symbol.for("react.fragment");function ue(e){return e&&"object"==typeof e&&(e.$$typeof===le||e.$$typeof===se)&&e.type===ce}const de=Number(g.version.split(".")[0]),he=(e,t)=>{"function"==typeof e?e(t):"object"==typeof e&&e&&"current"in e&&(e.current=t)},pe=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{he(e,t)})}},fe=(...e)=>te(()=>pe(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),me=e=>{var t,n;if(!e)return!1;if(ge(e)&&de>=19)return!0;const r=ae.isMemo(e)?e.type.type:e.type;return!("function"==typeof r&&!(null==(t=r.prototype)?void 0:t.render)&&r.$$typeof!==ae.ForwardRef)&&!("function"==typeof e&&!(null==(n=e.prototype)?void 0:n.render)&&e.$$typeof!==ae.ForwardRef)};function ge(e){return g.isValidElement(e)&&!ue(e)}const ye=e=>ge(e)&&me(e),ve=e=>{if(e&&ge(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function be(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}const xe="data-rc-order",we="data-rc-priority",Ce=new Map;function ke({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function Se(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function Ee(e){return Array.from((Ce.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function $e(e,t={}){if(!U())return null;const{csp:n,prepend:r,priority:o=0}=t,i=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),a="prependQueue"===i,l=document.createElement("style");l.setAttribute(xe,i),a&&o&&l.setAttribute(we,`${o}`),(null==n?void 0:n.nonce)&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;const s=Se(t),{firstChild:c}=s;if(r){if(a){const e=(t.styles||Ee(s)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(xe)))return!1;const t=Number(e.getAttribute(we)||0);return o>=t});if(e.length)return s.insertBefore(l,e[e.length-1].nextSibling),l}s.insertBefore(l,c)}else s.appendChild(l);return l}function Te(e,t={}){let{styles:n}=t;return n||(n=Ee(Se(t))),n.find(n=>n.getAttribute(ke(t))===e)}function Pe(e,t={}){const n=Te(e,t);if(n){Se(t).removeChild(n)}}function Me(e,t,n={}){var r,o,i;const a=Se(n),l=Ee(a),s={...n,styles:l};!function(e,t){const n=Ce.get(e);if(!n||!be(document,n)){const n=$e("",t),{parentNode:r}=n;Ce.set(e,r),e.removeChild(n)}}(a,s);const c=Te(t,s);if(c)return(null==(r=s.csp)?void 0:r.nonce)&&c.nonce!==(null==(o=s.csp)?void 0:o.nonce)&&(c.nonce=null==(i=s.csp)?void 0:i.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const u=$e(e,s);return u.setAttribute(ke(s),t),u}function Oe(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ne(e){return e&&"object"==typeof e&&Oe(e.nativeElement)?e.nativeElement:Oe(e)?e:null}const Ae=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1};function Ie(e,t=!1){if(Ae(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o);let a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function Re(e,t=!1){const n=[...e.querySelectorAll("*")].filter(e=>Ie(e,t));return Ie(e,t)&&n.unshift(e),n}function Le(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const 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)}}}let Be=null,ze=[];const De=new Map,je=new Map;function _e(){return ze[ze.length-1]}function Fe(){const e=_e(),{activeElement:t}=document;if(!function(e){const t=_e();if(e&&t){let n;for(const[e,r]of De.entries())if(r===t){n=e;break}const r=je.get(n);return!!r&&(r===e||r.contains(e))}return!1}(t))if(e&&!function(e){const{activeElement:t}=document;return e===t||e.contains(t)}(e)){const t=Re(e),n=t.includes(Be)?Be:t[0];null==n||n.focus({preventScroll:!0})}else Be=t}function He(e){if("Tab"===e.key){const{activeElement:t}=document,n=Re(_e()),r=n[n.length-1];e.shiftKey&&t===n[0]?Be=r:e.shiftKey||t!==r||(Be=n[0])}}function We(e,t){return e&&(De.set(t,e),ze=ze.filter(t=>t!==e),ze.push(e),window.addEventListener("focusin",Fe),window.addEventListener("keydown",He,!0),Fe()),()=>{Be=null,ze=ze.filter(t=>t!==e),De.delete(t),je.delete(t),0===ze.length&&(window.removeEventListener("focusin",Fe),window.removeEventListener("keydown",He,!0))}}function Ke(e,t){const n=ee(),r=g.useRef(t);r.current=t;!function(e,t){const n=g.useRef(0),[r,o]=g.useState(0);g.useEffect(()=>{n.current=0},t),g.useEffect(()=>{const[t,r]=e(n.current);return r||(n.current+=1,o(e=>e+1)),t},[...t,r])}(t=>{if(!e)return[void 0,!0];const o=r.current();return o?[We(o,n),!0]:[void 0,t>=1]},[n,e]);return[e=>{e&&je.set(n,e)}]}function Ve(e){var t;return null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e)}function Ue(e){return function(e){return Ve(e)instanceof ShadowRoot}(e)?Ve(e):null}const qe={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};let Ge;function Xe(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;let o,i;if(r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll",e){const n=getComputedStyle(e);r.scrollbarColor=n.scrollbarColor,r.scrollbarWidth=n.scrollbarWidth;const a=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(a.width,10),s=parseInt(a.height,10);try{const e=l?`width: ${a.width};`:"";Me(`\n#${t}::-webkit-scrollbar {\n${e}\n${s?`height: ${a.height};`:""}\n}`,t)}catch(e){console.error(e),o=l,i=s}}document.body.appendChild(n);const a=e&&o&&!Number.isNaN(o)?o:n.offsetWidth-n.clientWidth,l=e&&i&&!Number.isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Pe(t),{width:a,height:l}}function Ye(e){return"undefined"==typeof document?0:(void 0===Ge&&(Ge=Xe()),Ge.width)}function Ze(e){return"undefined"!=typeof document&&e&&e instanceof Element?Xe(e):{width:0,height:0}}let Qe={};function Je(e,t){}function et(e,t){}function tt(e,t,n){t||Qe[n]||(e(!1,n),Qe[n]=!0)}function nt(e,t){tt(Je,e,t)}function rt(e,t,n=!1){const r=new Set;return function e(t,o,i=1){const a=r.has(t);if(nt(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);const l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(let n=0;n<t.length;n++)if(!e(t[n],o[n],l))return!1;return!0}if(t&&o&&"object"==typeof t&&"object"==typeof o){const n=Object.keys(t);return n.length===Object.keys(o).length&&n.every(n=>e(t[n],o[n],l))}return!1}(e,t)}nt.preMessage=e=>{},nt.resetWarned=function(){Qe={}},nt.noteOnce=function(e,t){tt(et,e,t)};var ot,it={exports:{}};function at(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}!function(){if(ot)return it.exports;ot=1,it.exports=r,it.exports.isMobile=r,it.exports.default=r;const e=/(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,t=/CrOS/,n=/android|ipad|playbook|silk/i;function r(r){r||(r={});let o=r.ua;if(o||"undefined"==typeof navigator||(o=navigator.userAgent),o&&o.headers&&"string"==typeof o.headers["user-agent"]&&(o=o.headers["user-agent"]),"string"!=typeof o)return!1;let i=e.test(o)&&!t.test(o)||!!r.tablet&&n.test(o);return!i&&r.tablet&&r.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==o.indexOf("Macintosh")&&-1!==o.indexOf("Safari")&&(i=!0),i}it.exports}();const lt="accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError".split(/[\s\n]+/);function st(e,t){return 0===e.indexOf(t)}function ct(e,t=!1){let n;n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:{...t};const r={};return Object.keys(e).forEach(t=>{(n.aria&&("role"===t||st(t,"aria-"))||n.data&&st(t,"data-")||n.attr&<.includes(t))&&(r[t]=e[t])}),r}let ut=e=>+setTimeout(e,16),dt=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(ut=e=>window.requestAnimationFrame(e),dt=e=>window.cancelAnimationFrame(e));let ht=0;const pt=new Map;function ft(e){pt.delete(e)}const mt=(e,t=1)=>{ht+=1;const n=ht;return function t(r){if(0===r)ft(n),e();else{const e=ut(()=>{t(r-1)});pt.set(n,e)}}(t),n};function gt(e,t={}){let n=[];return y.Children.forEach(e,e=>{(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(gt(e)):ue(e)&&e.props?n=n.concat(gt(e.props.children,t)):n.push(e))}),n}function yt(...e){const t={};for(const n of e)if(n)for(const e of Object.keys(n))void 0!==n[e]&&(t[e]=n[e]);return t}function vt(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(null==n)return;n=n[t[e]]}return n}function bt(e,t,n,r){if(!t.length)return n;const[o,...i]=t;let a;return a=e||"number"!=typeof o?Array.isArray(e)?[...e]:{...e}:[],r&&void 0===n&&1===i.length?delete a[o][i[0]]:a[o]=bt(a[o],i,n,r),a}function xt(e,t,n,r=!1){return t.length&&r&&void 0===n&&!vt(e,t.slice(0,-1))?e:bt(e,t,n,r)}function wt(e){return Array.isArray(e)?[]:{}}mt.cancel=e=>{const t=pt.get(e);return ft(e),dt(t)};const Ct="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function kt(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let o=wt(e[0]);return e.forEach(e=>{!function t(n,i){const a=new Set(i),l=vt(e,n),s=Array.isArray(l);if(s||"object"==typeof(c=l)&&null!==c&&Object.getPrototypeOf(c)===Object.prototype){if(!a.has(l)){a.add(l);const e=vt(o,n);s?o=xt(o,n,r(e,l)):e&&"object"==typeof e||(o=xt(o,n,wt(l))),Ct(l).forEach(e=>{Object.getOwnPropertyDescriptor(l,e).enumerable&&t([...n,e],a)})}}else o=xt(o,n,l);var c}([])}),o}function St(...e){return kt(e)}const Et="__rc_react_root__";function $t(e,t){const n=t[Et]||L.createRoot(t);n.render(e),t[Et]=n}async function Tt(e){return Promise.resolve().then(()=>{var t;null==(t=e[Et])||t.unmount(),delete e[Et]})}var Pt=I();function Mt(){}const Ot=g.createContext({}),Nt=()=>{const e=()=>{};return e.deprecated=Mt,e},At=g.createContext(null);const It=new Map;function Rt(e){e.forEach(e=>{var t;const{target:n}=e;null==(t=It.get(n))||t.forEach(e=>e(n))})}let Lt;function Bt(){return Lt||(Lt=new ResizeObserver(Rt)),Lt}function zt(e,t,n,r){const o=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),i=V(e=>{const{width:t,height:i}=e.getBoundingClientRect(),{offsetWidth:a,offsetHeight:l}=e,s=Math.floor(t),c=Math.floor(i);if(o.current.width!==s||o.current.height!==c||o.current.offsetWidth!==a||o.current.offsetHeight!==l){const u={width:s,height:c,offsetWidth:a,offsetHeight:l};o.current=u;const d=a===Math.round(t)?t:a,h=l===Math.round(i)?i:l,p={...u,offsetWidth:d,offsetHeight:h};null==r||r(p,e),Promise.resolve().then(()=>{null==n||n(p,e)})}}),a="function"==typeof t,l=g.useRef(0);g.useEffect(()=>{const n=a?t():t;var r,o;return n&&e?(r=n,o=i,It.has(r)||(It.set(r,new Set),Bt().observe(r)),It.get(r).add(o)):e&&a&&(l.current+=1),()=>{n&&function(e,t){It.has(e)&&(It.get(e).delete(t),It.get(e).size||(Bt().unobserve(e),It.delete(e)))}(n,i)}},[e,a?l.current:t])}function Dt(e,t){const{children:n,disabled:r,onResize:o,data:i}=e,a=g.useRef(null),l=g.useContext(At),s="function"==typeof n,c=s?n(a):n,u=!s&&g.isValidElement(c)&&me(c),d=u?ve(c):null,h=fe(d,a),p=()=>Ne(a.current);return g.useImperativeHandle(t,()=>p()),zt(!r,p,o,(e,t)=>{null==l||l(e,t,i)}),u?g.cloneElement(c,{ref:h}):c}const jt=g.forwardRef(Dt);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 Ft(e,t){const{children:n}=e;return("function"==typeof n?[n]:gt(n)).map((n,r)=>{const o=(null==n?void 0:n.key)||`rc-observer-key-${r}`;return g.createElement(jt,_t({},e,{key:o,ref:0===r?t:void 0}),n)})}const Ht=g.forwardRef(Ft);function Wt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Wt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Kt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Wt(e))&&(r&&(r+=" "),r+=t);return r}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ut(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}function qt(e){return function(e){if(Array.isArray(e))return Vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ut(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Ht.Collection=function({children:e,onBatchResize:t}){const n=g.useRef(0),r=g.useRef([]),o=g.useContext(At),i=g.useCallback((e,i,a)=>{n.current+=1;const l=n.current;r.current.push({size:e,element:i,data:a}),Promise.resolve().then(()=>{l===n.current&&(null==t||t(r.current),r.current=[])}),null==o||o(e,i,a)},[t,o]);return g.createElement(At.Provider,{value:i},e)};const Gt="ant",Xt="anticon",Yt=["outlined","borderless","filled","underlined"],Zt=g.createContext({getPrefixCls:(e,t)=>t||(e?`${Gt}-${e}`:Gt),iconPrefixCls:Xt}),{Consumer:Qt}=Zt,Jt={};function en(e){const t=g.useContext(Zt),{getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}=t,a=t[e];return{classNames:Jt,styles:Jt,...a,getPrefixCls:n,direction:r,getPopupContainer:o,renderEmpty:i}}function tn(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function nn(e){return e.join("%")}let rn=0;class on{constructor(e){o(this,"instanceId"),o(this,"cache",new Map),o(this,"updateTimes",new Map),o(this,"extracted",new Set),this.instanceId=e}get(e){return this.opGet(nn(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(nn(e),t)}opUpdate(e,t){const n=t(this.cache.get(e));null===n?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,rn),rn+=1)}}const an="data-token-hash",ln="data-css-hash",sn="__cssinjs_instance__";const cn=g.createContext({hashPriority:"low",cache:function(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${ln}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[sn]||(t[sn]=e),t[sn]===e&&document.head.insertBefore(t,n)});const r={};Array.from(document.querySelectorAll(`style[${ln}]`)).forEach(t=>{var n;const o=t.getAttribute(ln);r[o]?t[sn]===e&&(null==(n=t.parentNode)||n.removeChild(t)):r[o]=!0})}return new on(e)}(),defaultCache:!0,autoPrefix:!1});const un=class e{constructor(){o(this,"cache"),o(this,"keys"),o(this,"cacheCallTimes"),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=>{var t;n=n?null==(t=null==n?void 0:n.map)?void 0:t.get(e):void 0}),(null==n?void 0:n.value)&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[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){const[e]=this.keys.reduce((e,t)=>{const[,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,o)=>{if(o===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{const t=r.get(e);t?t.map||(t.map=new Map):r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){var n;const r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null==(n=r.value)?void 0:n[0];const o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!function(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}(t,e)),this.deleteByPath(this.cache,e)}};o(un,"MAX_CACHE_SIZE",20),o(un,"MAX_CACHE_OFFSET",5);let dn=un,hn=0;class pn{constructor(e){o(this,"derivatives"),o(this,"id"),this.derivatives=Array.isArray(e)?e:[e],this.id=hn,0===e.length&&e.length,hn+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}}const fn=new dn;function mn(e){const t=Array.isArray(e)?e:[e];return fn.has(t)||fn.set(t,new pn(t)),fn.get(t)}const gn=new WeakMap,yn={};const vn=new WeakMap;function bn(e){let t=vn.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,t+=r instanceof pn?r.id:r&&"object"==typeof r?bn(r):r}),t=tn(t),vn.set(e,t)),t}const xn=U();function wn(e){return"number"==typeof e?`${e}px`:e}function Cn(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return"low"===n?`:where(${r})`:r}function kn(e,t){const n="function"==typeof t?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}const Sn=(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(),En=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",scope:i}=n||{};if(!Object.keys(e).length)return"";const a=`${Cn({hashCls:r,hashPriority:o})}.${t}`,l=[i].flat().filter(Boolean);return`${l.length?l.map(e=>`${a}.${e}`).join(", "):a}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join("")}}`},$n=(e,t,n)=>{const{hashCls:r,hashPriority:o="low",prefix:i,unitless:a,ignore:l,preserve:s}=n||{},c={},u={};return Object.entries(e).forEach(([e,t])=>{if(null==s?void 0:s[e])u[e]=t;else if(("string"==typeof t||"number"==typeof t)&&!(null==l?void 0:l[e])){const n=Sn(e,i);c[n]="number"!=typeof t||(null==a?void 0:a[e])?String(t):`${t}px`,u[e]=`var(${n})`}}),[u,En(c,t,{scope:null==n?void 0:n.scope,hashCls:r,hashPriority:o})]},Tn=new Map;function Pn(e,t,n,r,o){const{cache:i}=g.useContext(cn),a=nn([e,...t]),l=e=>{i.opUpdate(a,t=>{const[r=0,o]=t||[void 0,void 0];const i=[r,o||n()];return e?e(i):i})};g.useMemo(()=>{l()},[a]);const s=i.opGet(a)[1];return g.useInsertionEffect(()=>(l(([e,t])=>[e+1,t]),Tn.has(a)||(null==o||o(s),Tn.set(a,!0),Promise.resolve().then(()=>{Tn.delete(a)})),()=>{i.opUpdate(a,e=>{const[t=0,n]=e||[];return 0===t-1?(null==r||r(n,!1),Tn.delete(a),null):[t-1,n]})}),[a]),s}const Mn={},On=new Map;function Nn(e,t){On.set(e,(On.get(e)||0)-1);const n=new Set;On.forEach((e,t)=>{e<=0&&n.add(t)}),On.size-n.size>-1&&n.forEach(e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${an}="${e}"]`).forEach(e=>{var n;e[sn]===t&&(null==(n=e.parentNode)||n.removeChild(e))})}(e,t),On.delete(e)})}function An(e,t,n){const{cache:{instanceId:r},container:o,hashPriority:i}=g.useContext(cn),{salt:a="",override:l=Mn,formatToken:s,getComputedToken:c,cssVar:u,nonce:d}=n,h=function(e,t){let n=gn;for(let e=0;e<t.length;e+=1){const r=t[e];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(yn)||n.set(yn,e()),n.get(yn)}(()=>Object.assign({},...t),t),p=bn(h),f=bn(l),m=bn(u),y=Pn("token",[a,e.id,p,f,m],()=>{const t=c?c(h,l,e):((e,t,n,r)=>{let o={...n.getDerivativeToken(e),...t};return r&&(o=r(o)),o})(h,l,e,s),n={...t},r=`${a}_${u.prefix}`,o=tn(r),d=`css-${o}`;n._tokenKey=function(e,t){return tn(`${t}_${bn(e)}`)}(n,r);const[p,f]=$n(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:i,hashCls:u.hashed?d:void 0});var m;return p._hashId=o,m=u.key,On.set(m,(On.get(m)||0)+1),[p,d,n,f,u.key]},([,,,,e])=>{Nn(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:ln,prepend:"queue",attachTo:o,priority:-999};n=kn(n,d);const i=Me(e,tn(`css-var-${t}`),n);i[sn]=r,i.setAttribute(an,t)});return y}var In={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},Rn="-ms-",Ln="-moz-",Bn="-webkit-",zn="comm",Dn="rule",jn="decl",_n="@keyframes",Fn=Math.abs,Hn=String.fromCharCode,Wn=Object.assign;function Kn(e){return e.trim()}function Vn(e,t){return(e=t.exec(e))?e[0]:e}function Un(e,t,n){return e.replace(t,n)}function qn(e,t){return e.indexOf(t)}function Gn(e,t){return 0|e.charCodeAt(t)}function Xn(e,t,n){return e.slice(t,n)}function Yn(e){return e.length}function Zn(e){return e.length}function Qn(e,t){return t.push(e),e}function Jn(e,t){return e.filter(function(e){return!Vn(e,t)})}var er=1,tr=1,nr=0,rr=0,or=0,ir="";function ar(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:er,column:tr,length:a,return:"",siblings:l}}function lr(e,t){return Wn(ar("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function sr(e){for(;e.root;)e=lr(e.root,{children:[e]});Qn(e,e.siblings)}function cr(){return or=rr>0?Gn(ir,--rr):0,tr--,10===or&&(tr=1,er--),or}function ur(){return or=rr<nr?Gn(ir,rr++):0,tr++,10===or&&(tr=1,er++),or}function dr(){return Gn(ir,rr)}function hr(){return rr}function pr(e,t){return Xn(ir,e,t)}function fr(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 mr(e){return Kn(pr(rr-1,vr(91===e?e+2:40===e?e+1:e)))}function gr(e){for(;(or=dr())&&or<33;)ur();return fr(e)>2||fr(or)>3?"":" "}function yr(e,t){for(;--t&&ur()&&!(or<48||or>102||or>57&&or<65||or>70&&or<97););return pr(e,hr()+(t<6&&32==dr()&&32==ur()))}function vr(e){for(;ur();)switch(or){case e:return rr;case 34:case 39:34!==e&&39!==e&&vr(or);break;case 40:41===e&&vr(e);break;case 92:ur()}return rr}function br(e,t){for(;ur()&&e+or!==57&&(e+or!==84||47!==dr()););return"/*"+pr(t,rr-1)+"*"+Hn(47===e?e:ur())}function xr(e){for(;!fr(dr());)ur();return pr(e,rr)}function wr(e){return function(e){return ir="",e}(Cr("",null,null,null,[""],e=function(e){return er=tr=1,nr=Yn(ir=e),rr=0,[]}(e),0,[0],e))}function Cr(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,h=0,p=0,f=0,m=1,g=1,y=1,v=0,b=0,x="",w=o,C=i,k=r,S=x;g;)switch(f=b,b=ur()){case 40:108!=f&&58==Gn(S,d-1)?(v++,S+="("):S+=mr(b);break;case 41:v--,S+=")";break;case 34:case 39:case 91:S+=mr(b);break;case 9:case 10:case 13:case 32:if(v>0){S+=Hn(b);break}S+=gr(f);break;case 92:S+=yr(hr()-1,7);continue;case 47:switch(dr()){case 42:case 47:Qn(Sr(br(ur(),hr()),t,n,s),s),5!=fr(f||1)&&5!=fr(dr()||1)||!Yn(S)||" "===Xn(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:l[c++]=Yn(S)*y;case 125*m:case 59:case 0:if(v>0&&b){S+=Hn(b);break}switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(S=Un(S,/\f/g,"")),p>0&&(Yn(S)-d||0===m)&&Qn(p>32?Er(S+";",r,n,d-1,s):Er(Un(S," ","")+";",r,n,d-2,s),s);break;case 59:S+=";";default:if(Qn(k=kr(S,t,n,c,u,o,l,x,w=[],C=[],d,i),i),123===b)if(0===u)Cr(S,t,k,k,w,i,d,l,C);else{switch(h){case 99:if(110===Gn(S,3))break;case 108:if(97===Gn(S,2))break;default:u=0;case 100:case 109:case 115:}u?Cr(e,k,k,r&&Qn(kr(e,k,k,0,0,o,l,x,o,w=[],d,C),C),o,C,d,l,r?w:C):Cr(S,k,k,k,[""],C,0,l,C)}}c=u=p=0,m=y=1,x=S="",d=a;break;case 58:d=1+Yn(S),p=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==cr())continue;switch(S+=Hn(b),b*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:if(v>0)break;l[c++]=(Yn(S)-1)*y,y=1;break;case 64:45===dr()&&(S+=mr(ur())),h=dr(),u=d=Yn(x=S+=xr(hr())),b++;break;case 45:45===f&&2==Yn(S)&&(m=0)}}return i}function kr(e,t,n,r,o,i,a,l,s,c,u,d){for(var h=o-1,p=0===o?i:[""],f=Zn(p),m=0,g=0,y=0;m<r;++m)for(var v=0,b=Xn(e,h+1,h=Fn(g=a[m])),x=e;v<f;++v)(x=Kn(g>0?p[v]+" "+b:Un(b,/&\f/g,p[v])))&&(s[y++]=x);return ar(e,t,n,0===o?Dn:l,s,c,u,d)}function Sr(e,t,n,r){return ar(e,t,n,zn,Hn(or),Xn(e,2,-2),0,r)}function Er(e,t,n,r,o){return ar(e,t,n,jn,Xn(e,0,r),Xn(e,r+1,-1),r,o)}function $r(e,t,n){switch(function(e,t){return 45^Gn(e,0)?(((t<<2^Gn(e,0))<<2^Gn(e,1))<<2^Gn(e,2))<<2^Gn(e,3):0}(e,t)){case 5103:return Bn+"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 Bn+e+e;case 4855:return Bn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Ln+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Bn+e+Ln+e+Rn+e+e;case 5936:switch(Gn(e,t+11)){case 114:return Bn+e+Rn+Un(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Bn+e+Rn+Un(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Bn+e+Rn+Un(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Bn+e+Rn+e+e;case 6165:return Bn+e+Rn+"flex-"+e+e;case 5187:return Bn+e+Un(e,/(\w+).+(:[^]+)/,Bn+"box-$1$2"+Rn+"flex-$1$2")+e;case 5443:return Bn+e+Rn+"flex-item-"+Un(e,/flex-|-self/g,"")+(Vn(e,/flex-|baseline/)?"":Rn+"grid-row-"+Un(e,/flex-|-self/g,""))+e;case 4675:return Bn+e+Rn+"flex-line-pack"+Un(e,/align-content|flex-|-self/g,"")+e;case 5548:return Bn+e+Rn+Un(e,"shrink","negative")+e;case 5292:return Bn+e+Rn+Un(e,"basis","preferred-size")+e;case 6060:return Bn+"box-"+Un(e,"-grow","")+Bn+e+Rn+Un(e,"grow","positive")+e;case 4554:return Bn+Un(e,/([^-])(transform)/g,"$1"+Bn+"$2")+e;case 6187:return Un(Un(Un(e,/(zoom-|grab)/,Bn+"$1"),/(image-set)/,Bn+"$1"),e,"")+e;case 5495:case 3959:return Un(e,/(image-set\([^]*)/,Bn+"$1$`$1");case 4968:return Un(Un(e,/(.+:)(flex-)?(.*)/,Bn+"box-pack:$3"+Rn+"flex-pack:$3"),/space-between/,"justify")+Bn+e+e;case 4200:if(!Vn(e,/flex-|baseline/))return Rn+"grid-column-align"+Xn(e,t)+e;break;case 2592:case 3360:return Rn+Un(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Vn(e.props,/grid-\w+-end/)})?~qn(e+(n=n[t].value),"span")?e:Rn+Un(e,"-start","")+e+Rn+"grid-row-span:"+(~qn(n,"span")?Vn(n,/\d+/):+Vn(n,/\d+/)-+Vn(e,/\d+/))+";":Rn+Un(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Vn(e.props,/grid-\w+-start/)})?e:Rn+Un(Un(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Un(e,/(.+)-inline(.+)/,Bn+"$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(Yn(e)-1-t>6)switch(Gn(e,t+1)){case 109:if(45!==Gn(e,t+4))break;case 102:return Un(e,/(.+:)(.+)-([^]+)/,"$1"+Bn+"$2-$3$1"+Ln+(108==Gn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qn(e,"stretch")?$r(Un(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Un(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,l){return Rn+n+":"+r+l+(o?Rn+n+"-span:"+(i?a:+a-+r)+l:"")+e});case 4949:if(121===Gn(e,t+6))return Un(e,":",":"+Bn)+e;break;case 6444:switch(Gn(e,45===Gn(e,14)?18:11)){case 120:return Un(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Bn+(45===Gn(e,14)?"inline-":"")+"box$3$1"+Bn+"$2$3$1"+Rn+"$2box$3")+e;case 100:return Un(e,":",":"+Rn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Un(e,"scroll-","scroll-snap-")+e}return e}function Tr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Pr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case jn:return e.return=e.return||e.value;case zn:return"";case _n:return e.return=e.value+"{"+Tr(e.children,r)+"}";case Dn:if(!Yn(e.value=e.props.join(",")))return""}return Yn(n=Tr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case jn:return void(e.return=$r(e.value,e.length,n));case _n:return Tr([lr(e,{value:Un(e.value,"@","@"+Bn)})],r);case Dn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Vn(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":sr(lr(e,{props:[Un(t,/:(read-\w+)/,":-moz-$1")]})),sr(lr(e,{props:[t]})),Wn(e,{props:Jn(n,r)});break;case"::placeholder":sr(lr(e,{props:[Un(t,/:(plac\w+)/,":"+Bn+"input-$1")]})),sr(lr(e,{props:[Un(t,/:(plac\w+)/,":-moz-$1")]})),sr(lr(e,{props:[Un(t,/:(plac\w+)/,Rn+"input-$1")]})),sr(lr(e,{props:[t]})),Wn(e,{props:Jn(n,r)})}return""})}}const Or="data-ant-cssinjs-cache-path",Nr="_FILE_STYLE__";let Ar,Ir=!0;function Rr(e){return function(){var e;if(!Ar&&(Ar={},U())){const t=document.createElement("div");t.className=Or,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(e=>{const[t,n]=e.split(":");Ar[t]=n});const r=document.querySelector(`style[${Or}]`);r&&(Ir=!1,null==(e=r.parentNode)||e.removeChild(r)),document.body.removeChild(t)}}(),!!Ar[e]}const Lr="_multi_value_";function Br(e,t){var n,r;return Tr(wr(e),t?(r=Zn(n=[Mr,Pr]),function(e,t,o,i){for(var a="",l=0;l<r;l++)a+=n[l](e,t,o,i)||"";return a}):Pr).replace(/\{%%%\:[^;];}/g,";")}function zr(e,t,n="high"){if(!t)return e;const r=Cn({hashCls:t,hashPriority:n});return e.split(",").map(e=>{var t;const n=e.trim().split(/\s+/);let o=n[0]||"";const i=(null==(t=o.match(/^\w+/))?void 0:t[0])||"";return o=`${i}${r}${o.slice(i.length)}`,[o,...n.slice(1)].join(" ")}).join(",")}const Dr=(e,t={},{root:n,injectHash:r,parentSelectors:o}={root:!0,parentSelectors:[]})=>{const{hashId:i,layer:a,path:l,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",h={};function p(e){const n=e.getName(i);if(!h[n]){const[r]=Dr(e.style,t,{root:!1,parentSelectors:o});h[n]=`@keyframes ${e.getName(i)}${r}`}}const f=function e(t,n=[]){return t.forEach(t=>{Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(e)?e:[e]);return f.forEach(e=>{const a="string"!=typeof e||n?e:{};if("string"==typeof a)d+=`${a}\n`;else if(a._keyframe)p(a);else{const e=c.reduce((e,t)=>{var n;return(null==(n=null==t?void 0:t.visit)?void 0:n.call(t,e))||e},a);Object.keys(e).forEach(a=>{const l=e[a];if("object"!=typeof l||!l||"animationName"===a&&l._keyframe||function(e){return"object"==typeof e&&e&&("_skip_check_"in e||Lr in e)}(l)){let e=function(e,t){const n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);let r=t;In[e]||"number"!=typeof r||0===r||(r=`${r}px`),"animationName"===e&&(null==t?void 0:t._keyframe)&&(p(t),r=t.getName(i)),d+=`${n}:${r};`};const t=(null==l?void 0:l.value)??l;"object"==typeof l&&(null==l?void 0:l[Lr])&&Array.isArray(t)?t.forEach(t=>{e(a,t)}):null!=t&&e(a,t)}else{let e=!1,c=a.trim(),u=!1;(n||r)&&i?c.startsWith("@")?e=!0:c=zr("&"===c?"":a,i,s):!n||i||"&"!==c&&""!==c||(c="",u=!0);const[p,f]=Dr(l,t,{root:u,injectHash:e,parentSelectors:[...o,c]});h={...h,...f},d+=`${c}${p}`}})}}),n?a&&(d&&(d=`@layer ${a.name} {${d}}`),a.dependencies&&(h[`@layer ${a.name}`]=a.dependencies.map(e=>`@layer ${e}, ${a.name};`).join("\n"))):d=`{${d}}`,[d,h]};function jr(e,t){return tn(`${e.join("%")}${t}`)}function _r(e,t){const{path:n,hashId:r,layer:o,nonce:i,clientOnly:a,order:l=0}=e,{mock:s,hashPriority:c,container:u,transformers:d,linters:h,cache:p,layer:f,autoPrefix:m}=g.useContext(cn),y=[r||""];f&&y.push("layer"),y.push(...n);let v=xn;Pn("style",y,()=>{const e=y.join("|");if(Rr(e)){const[t,n]=function(e){const t=Ar[e];let n=null;if(t&&U())if(Ir)n=Nr;else{const t=document.querySelector(`style[${ln}="${Ar[e]}"]`);t?n=t.innerHTML:delete Ar[e]}return[n,t]}(e);if(t)return[t,n,{},a,l]}const i=t(),[s,u]=Dr(i,{hashId:r,hashPriority:c,layer:f?o:void 0,path:n.join("-"),transformers:d,linters:h}),p=Br(s,m||!1);return[p,jr(y,p),u,a,l]},(e,t)=>{const[,n]=e;t&&xn&&Pe(n,{mark:ln,attachTo:u})},e=>{const[t,n,r,,o]=e;if(v&&t!==Nr){let e={mark:ln,prepend:!f&&"queue",attachTo:u,priority:o};e=kn(e,i);const a=[],l=[];Object.keys(r).forEach(e=>{e.startsWith("@layer")?a.push(e):l.push(e)}),a.forEach(t=>{Me(Br(r[t],m||!1),`_layer-${t}`,{...e,prepend:!0})});Me(t,n,e)[sn]=p.instanceId,l.forEach(t=>{Me(Br(r[t],m||!1),`_effect-${t}`,e)})}})}class Fr{constructor(e,t){o(this,"name"),o(this,"style"),o(this,"_keyframe",!0),this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}}function Hr(e){return e.notSplit=!0,e}function Wr(e){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Ut(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vr(e){var t=function(e,t){if("object"!=Wr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wr(t)?t:t+""}function Ur(e,t,n){return(t=Vr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qr(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 Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach(function(t){Ur(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yr(e,t,n){return t&&function(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,Vr(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qr(e,t){return(Qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Jr(e,t){if("function"!=typeof t&&null!==t)throw new 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&&Qr(e,t)}function eo(e){return(eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function to(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(to=function(){return!!e})()}function no(e,t){if(t&&("object"==Wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Zr(e)}function ro(e){var t=to();return function(){var n,r=eo(e);if(t){var o=eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return no(this,n)}}Hr(["borderTop","borderBottom"]),Hr(["borderTop"]),Hr(["borderBottom"]),Hr(["borderLeft","borderRight"]),Hr(["borderLeft"]),Hr(["borderRight"]);var oo=Yr(function e(){Xr(this,e)}),io="CALC_UNIT",ao=new RegExp(io,"g");function lo(e){return"number"==typeof e?"".concat(e).concat(io):e}var so=function(e){Jr(n,e);var t=ro(n);function n(e,r){var o;Xr(this,n),Ur(Zr(o=t.call(this)),"result",""),Ur(Zr(o),"unitlessCssVar",void 0),Ur(Zr(o),"lowPriority",void 0);var i=Wr(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=lo(e):"string"===i&&(o.result=e),o}return Yr(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(lo(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(lo(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(ao,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(oo),co=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function uo(e,t,n,r){var o=Gr({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=Kr(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))});var i=Gr(Gr({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i}var ho="undefined"!=typeof CSSINJS_STATISTIC,po=!0;function fo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!ho)return Object.assign.apply(Object,[{}].concat(t));po=!1;var r={};return t.forEach(function(e){"object"===Wr(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),po=!0,r}var mo={};function go(){}function yo(e,t,n){var r;return"function"==typeof n?n(fo(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}}var vo=new(function(){function e(){Xr(this,e),Ur(this,"map",new Map),Ur(this,"objectIDMap",new WeakMap),Ur(this,"nextID",0),Ur(this,"lastAccessBeat",new Map),Ur(this,"accessBeat",0)}return Yr(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&&"object"===Wr(e)?"obj_".concat(t.getObjectID(e)):"".concat(Wr(e),"_").concat(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>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());var bo=function(){return{}};const xo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function wo(e){return(e+8)/e}const Co={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"},ko={...Co,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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},So={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"},Eo=Math.round;function $o(e,t){const 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}const To=(e,t,n)=>0===n?e:e/100;function Po(e,t){const n=t||255;return e>n?n:e<0?0:e}class Mo{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(o(this,"isValid",!0),o(this,"r",0),o(this,"g",0),o(this,"b",0),o(this,"a",1),o(this,"_h"),o(this,"_hsl_s"),o(this,"_hsv_s"),o(this,"_l"),o(this,"_v"),o(this,"_max"),o(this,"_min"),o(this,"_brightness"),e)if("string"==typeof e){let t=function(e){return n.startsWith(e)};const n=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(t("rgb"))this.fromRgbString(n);else if(t("hsl"))this.fromHslString(n);else if(t("hsv")||t("hsb"))this.fromHsvString(n);else{const e=So[n.toLowerCase()];e&&this.fromHexString(parseInt(e,36).toString(16).padStart(6,"0"))}}else if(e instanceof Mo)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._hsl_s=e._hsl_s,this._hsv_s=e._hsv_s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Po(e.r),this.g=Po(e.g),this.b=Po(e.b),this.a="number"==typeof e.a?Po(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}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){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:Eo(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(void 0===this._hsv_s){const e=this.getMax()-this.getMin();this._hsv_s=0===e?0:e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(void 0===this._hsl_s){const e=this.getMax()-this.getMin();if(0===e)this._hsl_s=0;else{const t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let 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){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:Eo(o("r")),g:Eo(o("g")),b:Eo(o("b")),a:Eo(100*o("a"))/100};return this._c(i)}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){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Eo((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="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=Eo(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=Eo(100*this.getHSLSaturation()),n=Eo(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}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 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Po(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const 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}){const o=(e%360+360)%360;if(this._h=o,this._hsl_s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=Eo(255*n);return this.r=e,this.g=e,void(this.b=e)}let i=0,a=0,l=0;const s=o/60,c=(1-Math.abs(2*n-1))*t,u=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,a=u):s>=1&&s<2?(i=u,a=c):s>=2&&s<3?(a=c,l=u):s>=3&&s<4?(a=u,l=c):s>=4&&s<5?(i=u,l=c):s>=5&&s<6&&(i=c,l=u);const d=n-c/2;this.r=Eo(255*(i+d)),this.g=Eo(255*(a+d)),this.b=Eo(255*(l+d))}fromHsv({h:e,s:t,v:n,a:r}){const o=(e%360+360)%360;this._h=o,this._hsv_s=t,this._v=n,this.a="number"==typeof r?r:1;const i=Eo(255*n);if(this.r=i,this.g=i,this.b=i,t<=0)return;const a=o/60,l=Math.floor(a),s=a-l,c=Eo(n*(1-t)*255),u=Eo(n*(1-t*s)*255),d=Eo(n*(1-t*(1-s))*255);switch(l){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){const t=$o(e,To);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=$o(e,To);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=$o(e,(e,t)=>t.includes("%")?Eo(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const Oo=[{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 No(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,r<0?r+=360:r>=360&&(r-=360),r}function Ao(e,t,n){if(0===e.h&&0===e.s)return e.s;let r;return r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,r>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100}function Io(e,t,n){let r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Ro(e,t={}){const n=[],r=new Mo(e),o=r.toHsv();for(let e=5;e>0;e-=1){const t=new Mo({h:No(o,e,!0),s:Ao(o,e,!0),v:Io(o,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=4;e+=1){const t=new Mo({h:No(o,e),s:Ao(o,e),v:Io(o,e)});n.push(t)}return"dark"===t.theme?Oo.map(({index:e,amount:r})=>new Mo(t.backgroundColor||"#141414").mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}const Lo={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"},Bo=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Bo.primary=Bo[5];const zo=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];zo.primary=zo[5];const Do=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Do.primary=Do[5];const jo=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];jo.primary=jo[5];const _o=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];_o.primary=_o[5];const Fo=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Fo.primary=Fo[5];const Ho=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ho.primary=Ho[5];const Wo=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Wo.primary=Wo[5];const Ko=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ko.primary=Ko[5];const Vo=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Vo.primary=Vo[5];const Uo=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Uo.primary=Uo[5];const qo=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];qo.primary=qo[5];const Go=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Go.primary=Go[5];const Xo={red:Bo,volcano:zo,orange:Do,gold:jo,yellow:_o,lime:Fo,green:Ho,cyan:Wo,blue:Ko,geekblue:Vo,purple:Uo,magenta:qo,grey:Go};function Yo(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,u=t(l),d=t(r),h=t(o),p=t(i),f=t(a),m=n(s,c),g=e.colorLink||e.colorInfo,y=t(g),v=new Mo(p[1]).mix(new Mo(p[3]),50).toHexString(),b={};return xo.forEach(n=>{const r=e[n];if(r){const e=t(r);b[`${n}Hover`]=e[5],b[`${n}Active`]=e[7]}}),{...m,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:v,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:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:f[1],colorInfoBgHover:f[2],colorInfoBorder:f[3],colorInfoBorderHover:f[4],colorInfoHover:f[4],colorInfo:f[6],colorInfoActive:f[7],colorInfoTextHover:f[8],colorInfoText:f[9],colorInfoTextActive:f[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],...b,colorBgMask:new Mo("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const Zo=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function Qo(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1,...Zo(r)}}const Jo=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}},ei=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*Math.E**(r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:wo(e)}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function ti(e){const{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)}}const ni=(e,t)=>new Mo(e).setA(t).toRgbString(),ri=(e,t)=>new Mo(e).darken(t).toHexString(),oi=e=>{const t=Ro(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]}},ii=(e,t,n)=>{const r=e||"#fff",o=t||"#000";return{colorBgBase:r,colorTextBase:o,colorShadow:n||"#000",colorText:ni(o,.88),colorTextSecondary:ni(o,.65),colorTextTertiary:ni(o,.45),colorTextQuaternary:ni(o,.25),colorFill:ni(o,.15),colorFillSecondary:ni(o,.06),colorFillTertiary:ni(o,.04),colorFillQuaternary:ni(o,.02),colorBgSolid:ni(o,1),colorBgSolidHover:ni(o,.75),colorBgSolidActive:ni(o,.95),colorBgLayout:ri(r,4),colorBgContainer:ri(r,0),colorBgElevated:ri(r,0),colorBgSpotlight:ni(o,.85),colorBgBlur:"transparent",colorBorder:ri(r,15),colorBorderDisabled:ri(r,15),colorBorderSecondary:ri(r,6)}};function ai(e){Lo.pink=Lo.magenta,Xo.pink=Xo.magenta;const t=Object.keys(Co).map(t=>{const n=e[t]===Lo[t]?Xo[t]:Ro(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e={...e,...t},{});return{...e,...t,...Yo(e,{generateColorPalettes:oi,generateNeutralColorPalettes:ii}),...ei(e.fontSize),...ti(e),...Jo(e),...Qo(e)}}const li=mn(ai),si={token:ko,override:{override:ko},hashed:!0},ci=y.createContext(si);function ui(e){return e>=0&&e<=255}function di(e,t){const{r:n,g:r,b:o,a:i}=new Mo(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Mo(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),c=Math.round((o-s*(1-e))/e);if(ui(t)&&ui(i)&&ui(c))return new Mo({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Mo({r:n,g:r,b:o,a:1}).toRgbString()}const hi={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},pi={motionBase:!0,motionUnit:!0},fi={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},mi=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o,...i}=t;let a={...r,override:o};return a=function(e){const{override:t,...n}=e,r={...t};Object.keys(ko).forEach(e=>{delete r[e]});const o={...n,...r},i=new Mo(o.colorShadow),a=i.a,l=e=>i.clone().setA(a*e).toRgbString(),s=1200,c=1600,u=1920;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return{...o,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:di(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:di(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:di(o.colorWarningBg,o.colorBgContainer),colorErrorAffix:o.colorError,colorWarningAffix:o.colorWarning,fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:di(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`\n 0 6px 16px 0 ${l(.08)},\n 0 3px 6px -4px ${l(.12)},\n 0 9px 28px 8px ${l(.05)}\n `,boxShadowSecondary:`\n 0 6px 16px 0 ${l(.08)},\n 0 3px 6px -4px ${l(.12)},\n 0 9px 28px 8px ${l(.05)}\n `,boxShadowTertiary:`\n 0 1px 2px 0 ${l(.03)},\n 0 1px 6px -1px ${l(.02)},\n 0 2px 4px 0 ${l(.02)}\n `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:s,screenXLMin:s,screenXLMax:1599,screenXXL:c,screenXXLMin:c,screenXXLMax:1919,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${l(.05)}`,boxShadowCard:`\n 0 1px 2px -2px ${l(.16)},\n 0 3px 6px 0 ${l(.12)},\n 0 5px 12px 4px ${l(.09)}\n `,boxShadowDrawerRight:`\n -6px 0 16px 0 ${l(.08)},\n -3px 0 6px -4px ${l(.12)},\n -9px 0 28px 8px ${l(.05)}\n `,boxShadowDrawerLeft:`\n 6px 0 16px 0 ${l(.08)},\n 3px 0 6px -4px ${l(.12)},\n 9px 0 28px 8px ${l(.05)}\n `,boxShadowDrawerUp:`\n 0 6px 16px 0 ${l(.08)},\n 0 3px 6px -4px ${l(.12)},\n 0 9px 28px 8px ${l(.05)}\n `,boxShadowDrawerDown:`\n 0 -6px 16px 0 ${l(.08)},\n 0 -3px 6px -4px ${l(.12)},\n 0 -9px 28px 8px ${l(.05)}\n `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${l(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${l(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${l(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${l(.08)}`,...r}}(a),i&&Object.entries(i).forEach(([e,t])=>{const{theme:n,...r}=t;let o=r;n&&(o=mi({...a,...r},{override:r},n)),a[e]=o}),a};function gi(){const{token:e,hashed:t,theme:n,override:r,cssVar:o,zeroRuntime:i}=y.useContext(ci),{csp:a,getPrefixCls:l}=y.useContext(Zt),s={prefix:(null==o?void 0:o.prefix)??l(),key:(null==o?void 0:o.key)??"css-var-root"},c=`6.4.3-${t||""}`,u=n||li,[d,h,p]=An(u,[ko,e],{salt:c,override:r,getComputedToken:mi,cssVar:{...s,unitless:hi,ignore:pi,preserve:fi},nonce:null==a?void 0:a.nonce});return[u,p,t?h:"",d,s,!!i]}const yi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},vi=(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}),bi=(e,t)=>({outline:`${wn(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(e=>`${e} 0s`).join(", ")}),xi=(e,t)=>({"&:focus-visible":bi(e,t)}),wi=e=>({[`.${e}`]:{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"},[`.${e} .${e}-icon`]:{display:"block"}}}),Ci=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...xi(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:ki,genComponentStyleHook:Si,genSubStyleComponent:Ei}=function(e){var t=e.useCSP,n=void 0===t?bo:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function s(t,l,s){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Kr(u,1)[0],h=u.join("-"),p=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,u=r(),f=u.theme,m=u.realToken,v=u.hashId,b=u.token,x=u.cssVar,w=u.zeroRuntime;if(g.useMemo(function(){return w},[]))return v;var C,k,S=o(),E=S.rootPrefixCls,$=S.iconPrefixCls,T=n(),P=(C=function(){var e=new Set;return Object.keys(c.unitless||{}).forEach(function(t){e.add(Sn(t,x.prefix)),e.add(Sn(t,co(d,x.prefix)))}),function(e,t){var n=so;return function(e){return new n(e,t)}}(0,e)},k=["css",d,null==x?void 0:x.prefix],y.useMemo(function(){var e=vo.get(k);if(e)return e;var t=C();return vo.set(k,t),t},k)),M={max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return wn(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return wn(e)}).join(","),")")}},O=M.max,N=M.min,A={theme:f,token:b,hashId:v,nonce:function(){return T.nonce},clientOnly:c.clientOnly,layer:p,order:c.order||-999};return"function"==typeof i&&_r(Gr(Gr({},A),{},{clientOnly:!1,path:["Shared",E]}),function(){return i(b,{prefix:{rootPrefixCls:E,iconPrefixCls:$},csp:T})}),_r(Gr(Gr({},A),{},{path:[h,e,$]}),function(){if(!1===c.injectStyle)return[];var n=function(e){var t,n=e,r=go;return ho&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return po&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;mo[e]={global:Array.from(t),component:Gr(Gr({},null===(r=mo[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(b),r=n.token,o=n.flush,i=yo(d,m,s),u=".".concat(e),h=uo(d,m,i,{deprecatedTokens:c.deprecatedTokens});i&&"object"===Wr(i)&&Object.keys(i).forEach(function(e){i[e]="var(".concat(Sn(e,co(d,x.prefix)),")")});var p=fo(r,{componentCls:u,prefixCls:e,iconCls:".".concat($),antCls:".".concat(E),calc:P,max:O,min:N},i),f=l(p,{hashId:v,prefixCls:e,rootPrefixCls:E,iconPrefixCls:$});o(d,h);var g="function"==typeof a?a(p,e,t,c.resetFont):null;return[!1===c.resetStyle?null:g,f]}),v}}return{genStyleHooks:function(e,t,o,i){var a=Array.isArray(e)?e[0]:e;function c(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null==i?void 0:i.unitless)||{},d=Gr(Gr({},"function"==typeof l?l(e):{}),{},Ur({},c("zIndexPopup"),!0));Object.keys(u).forEach(function(e){d[c(e)]=u[e]});var h=Gr(Gr({},i),{},{unitless:d,prefixToken:c}),p=s(e,t,o,h),f=function(e,t,o){var i=o.unitless,a=o.prefixToken,l=o.ignore;return function(s){var c=r(),u=c.cssVar,d=c.realToken,h=n();return((e,t)=>{const{key:n,prefix:r,unitless:o,ignore:i,token:a,hashId:l,scope:s,nonce:c}=e,{cache:{instanceId:u},container:d,hashPriority:h}=g.useContext(cn),{_tokenKey:p}=a,f=Array.isArray(s)?s.join("@@"):s,m=[...e.path,n,f,p];Pn("cssVar",m,()=>{const e=t(),[a,c]=$n(e,n,{prefix:r,unitless:o,ignore:i,scope:s,hashPriority:h,hashCls:l});return[a,c,jr(m,c),n]},([,,e])=>{xn&&Pe(e,{mark:ln,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:ln,prepend:"queue",attachTo:d,priority:-999};r=kn(r,c);const o=Me(e,t,r);o[sn]=u,o.setAttribute(an,n)})})({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:l,token:d,scope:s,nonce:function(){return h.nonce}},function(){var n=yo(e,d,t),r=uo(e,d,n,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[a(e)]=r[e],delete r[e]}),r}),null==u?void 0:u.key}}(a,o,h);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=p(e,t),r=null==i?void 0:i.extraCssVarPrefixCls,o="function"==typeof r?r({prefixCls:e,rootCls:t}):r;return[n,f(null!=o&&o.length?[t].concat(qt(o)):t)]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,Gr({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:s}}({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=g.useContext(Zt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o,i]=gi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o,zeroRuntime:i}},useCSP:()=>{const{csp:e}=g.useContext(Zt);return e??{}},getResetStyles:(e,t)=>{const n=(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},...xi(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[n,{"&":n},wi((null==t?void 0:t.prefix.iconPrefixCls)??Xt)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...l,...a,[o]:a}}},getCompUnitless:()=>hi}),$i=(e,t)=>{const n=`--${e.replace(/\./g,"")}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function Ti(e,t){return xo.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return{...n,...t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l})}},{})}var Pi={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"};const Mi=g.createContext({});function Oi(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function Ni(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[o=n,o.replace(/-(.)/g,(e,t)=>t.toUpperCase())]=r;var o;return t},{})}function Ai(e,t,n){return n?y.createElement(e.tag,{key:t,...Ni(e.attrs),...n},(e.children||[]).map((n,r)=>Ai(n,`${t}-${e.tag}-${r}`))):y.createElement(e.tag,{key:t,...Ni(e.attrs)},(e.children||[]).map((n,r)=>Ai(n,`${t}-${e.tag}-${r}`)))}function Ii(e){return Ro(e)[0]}function Ri(e){return e?Array.isArray(e)?e:[e]:[]}const Li={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const Bi=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:i,secondaryColor:a,...l}=e,s=g.useRef(null);let c=Li;if(i&&(c={primaryColor:i,secondaryColor:a||Ii(i)}),(e=>{const{csp:t,prefixCls:n,layer:r}=g.useContext(Mi);let o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin {\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} {\n${o}\n}`),g.useEffect(()=>{const n=Ue(e.current);Me(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:n})},[])})(s),nt(Oi(t),`[@ant-design/icons] ${`icon should be icon definiton, but got ${t}`}`),!Oi(t))return null;let u=t;return u&&"function"==typeof u.icon&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),Ai(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:s})};function zi(e){const[t,n]=Ri(e);return Bi.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Di(){return Di=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Di.apply(this,arguments)}Bi.displayName="IconReact",Bi.getTwoToneColors=function(){return{...Li}},Bi.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){Li.primaryColor=e,Li.secondaryColor=t||Ii(e),Li.calculated=!!t},zi(Ko.primary);const ji=g.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:i,tabIndex:a,onClick:l,twoToneColor:s,...c}=e,{prefixCls:u="anticon",rootClassName:d}=g.useContext(Mi),h=Kt(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!o||"loading"===r.name},n);let p=a;void 0===p&&l&&(p=-1);const f=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[m,y]=Ri(s);return g.createElement("span",Di({role:"img","aria-label":r.name},c,{ref:t,tabIndex:p,onClick:l,className:h}),g.createElement(Bi,{icon:r,primaryColor:m,secondaryColor:y,style:f}))});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)}ji.getTwoToneColor=function(){const e=Bi.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},ji.setTwoToneColor=zi;const Fi=(e,t)=>g.createElement(ji,_i({},e,{ref:t,icon:Pi})),Hi=g.forwardRef(Fi);var Wi={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 Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ki.apply(this,arguments)}const Vi=(e,t)=>g.createElement(ji,Ki({},e,{ref:t,icon:Wi})),Ui=g.forwardRef(Vi);var qi={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 Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gi.apply(this,arguments)}const Xi=(e,t)=>g.createElement(ji,Gi({},e,{ref:t,icon:qi})),Yi=g.forwardRef(Xi);var Zi={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 Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qi.apply(this,arguments)}const Ji=(e,t)=>g.createElement(ji,Qi({},e,{ref:t,icon:Zi})),ea=g.forwardRef(Ji);var ta={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 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)}const ra=(e,t)=>g.createElement(ji,na({},e,{ref:t,icon:ta})),oa=g.forwardRef(ra),ia=g.createContext({}),aa=e=>{const{children:t,...n}=e,r=g.useMemo(()=>({motion:n.motion}),[n.motion]);return g.createElement(ia.Provider,{value:r},t)},la="none",sa="appear",ca="enter",ua="leave",da="none",ha="prepare",pa="start",fa="active",ma="end",ga="prepared";function ya(e,t){const 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}const va=function(e,t){const n={animationend:ya("Animation","AnimationEnd"),transitionend:ya("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(U(),"undefined"!=typeof window?window:{});let ba={};U()&&({style:ba}=document.createElement("div"));const xa={};function wa(e){if(xa[e])return xa[e];const t=va[e];if(t){const n=Object.keys(t),r=n.length;for(let o=0;o<r;o+=1){const r=n[o];if(Object.prototype.hasOwnProperty.call(t,r)&&r in ba)return xa[e]=t[r],xa[e]}}return""}const Ca=wa("animationend"),ka=wa("transitionend"),Sa=!(!Ca||!ka),Ea=Ca||"animationend",$a=ka||"transitionend";function Ta(e,t){if(!e)return null;if("object"==typeof e){return e[t.replace(/-\w/g,e=>e[1].toUpperCase())]}return`${e}-${t}`}const Pa=U()?g.useLayoutEffect:g.useEffect,Ma=[ha,pa,fa,ma],Oa=[ha,ga],Na=!1;function Aa(e){return e===fa||e===ma}const Ia=(e,t,n)=>{const[r,o]=X(da),[i,a]=(()=>{const e=g.useRef(null);function t(){mt.cancel(e.current)}return g.useEffect(()=>()=>{t()},[]),[function n(r,o=2){t();const i=mt(()=>{o<=1?r({isCanceled:()=>i!==e.current}):n(r,o-1)});e.current=i},t]})();const l=t?Oa:Ma;return Pa(()=>{if(r!==da&&r!==ma){const e=l.indexOf(r),t=l[e+1],a=n(r);a===Na?o(t,!0):t&&i(e=>{function n(){e.isCanceled()||o(t,!0)}!0===a?n():Promise.resolve(a).then(n)})}},[e,r]),g.useEffect(()=>()=>{a()},[]),[function(){o(ha,!0)},r]};function Ra(e,t,n,{motionEnter:r=!0,motionAppear:o=!0,motionLeave:i=!0,motionDeadline:a,motionLeaveImmediately:l,onAppearPrepare:s,onEnterPrepare:c,onLeavePrepare:u,onAppearStart:d,onEnterStart:h,onLeaveStart:p,onAppearActive:f,onEnterActive:m,onLeaveActive:y,onAppearEnd:v,onEnterEnd:b,onLeaveEnd:x,onVisibleChanged:w}){const[C,k]=g.useState(),[S,E]=function(e){const[,t]=g.useReducer(e=>e+1,0),n=g.useRef(e);return[V(()=>n.current),V(e=>{n.current="function"==typeof e?e(n.current):e,t()})]}(la),[$,T]=g.useState([null,null]),P=S(),M=g.useRef(!1),O=g.useRef(null);function N(){return n()}const A=g.useRef(!1);function I(){E(la),T([null,null])}const R=V(e=>{const t=S();if(t===la)return;const n=N();if(e&&!e.deadline&&e.target!==n)return;const r=A.current;let o;t===sa&&r?o=null==v?void 0:v(n,e):t===ca&&r?o=null==b?void 0:b(n,e):t===ua&&r&&(o=null==x?void 0:x(n,e)),r&&!1!==o&&I()}),[L]=(e=>{const t=g.useRef();function n(t){t&&(t.removeEventListener($a,e),t.removeEventListener(Ea,e))}return g.useEffect(()=>()=>{n(t.current),t.current=null},[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener($a,e),r.addEventListener(Ea,e),t.current=r)},n]})(R),B=e=>{switch(e){case sa:return{[ha]:s,[pa]:d,[fa]:f};case ca:return{[ha]:c,[pa]:h,[fa]:m};case ua:return{[ha]:u,[pa]:p,[fa]:y};default:return{}}},z=g.useMemo(()=>B(P),[P]),[D,j]=Ia(P,!e,e=>{var t;if(e===ha){const e=z[ha];return e?e(N()):Na}return e in z&&T([(null==(t=z[e])?void 0:t.call(z,N(),null))||null,e]),e===fa&&P!==la&&(L(N()),a>0&&(clearTimeout(O.current),O.current=setTimeout(()=>{R({deadline:!0})},a))),e===ga&&I(),true}),_=Aa(j);A.current=_;const F=g.useRef(null);Pa(()=>{if(M.current&&F.current===t)return;k(t);const n=M.current;let a;M.current=!0,!n&&t&&o&&(a=sa),n&&t&&r&&(a=ca),(n&&!t&&i||!n&&l&&!t&&i)&&(a=ua);const s=B(a);a&&(e||s[ha])?(E(a),D()):E(la),F.current=t},[t]),g.useEffect(()=>{(P===sa&&!o||P===ca&&!r||P===ua&&!i)&&E(la)},[o,r,i]),g.useEffect(()=>()=>{M.current=!1,clearTimeout(O.current)},[]);const H=g.useRef(!1);g.useEffect(()=>{C&&(H.current=!0),void 0!==C&&P===la&&((H.current||C)&&(null==w||w(C)),H.current=!0)},[C,P]);let W=$[0];z[ha]&&j===pa&&(W={transition:"none",...W});const K=$[1];return[S,j,W,C??t,!M.current&&P===la&&e&&o?"NONE":j!==pa&&j!==fa||K===j]}function La(e){return(null==e?void 0:e.length)<2}const Ba=function(e){let t=e;"object"==typeof e&&({transitionSupport:t}=e);const n=g.forwardRef((e,n)=>{const{visible:r=!0,removeOnLeave:o=!0,forceRender:i,children:a,motionName:l,leavedClassName:s,eventProps:c}=e,{motion:u}=g.useContext(ia),d=function(e,n){return!(!e.motionName||!t||!1===n)}(e,u),h=g.useRef();function p(){return Ne(h.current)}const[f,m,y,v,b]=Ra(d,r,p,e),x=f(),w=g.useRef(v);v&&(w.current=!0);const C=g.useMemo(()=>{const e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>f()!==la},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);g.useImperativeHandle(n,()=>C,[]);const k=g.useRef(0);b&&(k.current+=1);const S=g.useMemo(()=>{if("NONE"===b)return null;let e;const t={...c,visible:r};if(a)if(x===la)e=v?a({...t},h):!o&&w.current&&s?a({...t,className:s},h):i||!o&&!s?a({...t,style:{display:"none"}},h):null;else{let n;m===ha?n="prepare":Aa(m)?n="active":m===pa&&(n="start");const r=Ta(l,`${x}-${n}`);e=a({...t,className:Kt(Ta(l,x),{[r]:r&&n,[l]:"string"==typeof l}),style:y},h)}else e=null;return e},[k.current]);if(La(a)&&ye(S)){const e=ve(S);if(e!==h)return g.cloneElement(S,{ref:pe(e,h)})}return S});return n.displayName="CSSMotion",n}(Sa),za="add",Da="keep",ja="remove",_a="removed";function Fa(e){let t;return t=e&&"object"==typeof e&&"key"in e?e:{key:e},{...t,key:String(t.key)}}function Ha(e=[]){return e.map(Fa)}function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wa.apply(this,arguments)}const Ka=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Va=function(e,t=Ba){class n extends g.Component{constructor(){super(...arguments),o(this,"state",{keyEntities:[]}),o(this,"removeKey",e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key!==e?t:{...t,status:_a})}),()=>{const{keyEntities:e}=this.state;0===e.filter(({status:e})=>e!==_a).length&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:e},{keyEntities:t}){const n=Ha(e),r=function(e=[],t=[]){let n=[],r=0;const o=t.length,i=Ha(e),a=Ha(t);i.forEach(e=>{let t=!1;for(let i=r;i<o;i+=1){const o=a[i];if(o.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(e=>({...e,status:za}))),r=i),n.push({...o,status:Da}),r+=1,t=!0;break}}t||n.push({...e,status:ja})}),r<o&&(n=n.concat(a.slice(r).map(e=>({...e,status:za}))));const l={};return n.forEach(({key:e})=>{l[e]=(l[e]||0)+1}),Object.keys(l).filter(e=>l[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==ja),n.forEach(t=>{t.key===e&&(t.status=Da)})}),n}(t,n);return{keyEntities:r.filter(e=>{const n=t.find(({key:t})=>e.key===t);return!n||n.status!==_a||e.status!==ja})}}render(){const{keyEntities:e}=this.state,{component:n,children:r,onVisibleChanged:o,onAllRemoved:i,...a}=this.props,l=n||g.Fragment,s={};return Ka.forEach(e=>{s[e]=a[e],delete a[e]}),delete a.keys,g.createElement(l,a,e.map(({status:e,...n},i)=>{const a=e===za||e===Da;return g.createElement(t,Wa({},s,{key:n.key,visible:a,eventProps:n,onVisibleChanged:e=>{null==o||o(e,{key:n.key}),e||this.removeKey(n.key)}}),La(r)?e=>r({...e,index:i}):(e,t)=>r({...e,index:i},t))}))}}return o(n,"defaultProps",{component:"div"}),n}(),Ua=e=>null!=e,qa=e=>"number"==typeof e&&!Number.isNaN(e),Ga=e=>"string"==typeof e,Xa=e=>null!==e&&"object"==typeof e,Ya=e=>"function"==typeof e,Za=e=>Ua(e)&&Ya(e.then),Qa=e=>Xa(e)&&"propertyName"in e&&Ga(e.propertyName),Ja=(e,t)=>{const n={...e};return Object.keys(t).forEach(e=>{t[e]._default?n[e]||(n[e]={}):n[e]=Ja(n[e],t[e])}),n},el=(e={},...t)=>t.filter(e=>Boolean(e)).reduce((t,n)=>(Object.keys(n).forEach(r=>{const o=e[r],i=n[r];if(o)if(Xa(i))t[r]=el(o,t[r],i);else{const{_default:e}=o;e&&(t[r]=t[r]||{},t[r][e]=Kt(t[r][e],i))}else t[r]=Kt(t[r],i)}),t),{}),tl=(e,...t)=>g.useMemo(()=>el.apply(void 0,[e].concat(t)),[e].concat(t)),nl=(...e)=>e.filter(e=>Boolean(e)).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),rl=(...e)=>g.useMemo(()=>nl.apply(void 0,e),[].concat(e)),ol=(e,t)=>Ya(e)?e(t):e,il=(e,t,n,r)=>{const o=e.map(e=>e?ol(e,n):void 0),i=t.map(e=>e?ol(e,n):void 0),a=tl.apply(void 0,[r].concat(qt(o))),l=rl.apply(void 0,qt(i));return g.useMemo(()=>r?[Ja(a,r),Ja(l,r)]:[a,l],[a,l,r])},al=(e,t,n)=>({background:e,[`${n}-icon`]:{color:t}}),ll=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:h,withDescriptionPadding:p,defaultPadding:f,lineWidth:m,lineType:g,colorSuccessBorder:y,colorWarningBorder:v,colorErrorBorder:b,colorInfoBorder:x}=e;return{[t]:{...vi(e),position:"relative",display:"flex",alignItems:"center",padding:f,wordWrap:"break-word",borderRadius:s,borderWidth:wn(m),borderStyle:g,[`&${t}-success`]:{borderColor:y},[`&${t}-info`]:{borderColor:x},[`&${t}-warning`]:{borderColor:v},[`&${t}-error`]:{borderColor:b},[`&${t}-filled`]:{borderColor:"transparent"},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-title":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(e=>`${e} ${n} ${c}`).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:o,fontSize:u,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:h,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},sl=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBg:r,colorWarning:o,colorWarningBg:i,colorError:a,colorErrorBg:l,colorInfo:s,colorInfoBg:c}=e;return{[t]:{"&-success":al(r,n,t),"&-info":al(c,s,t),"&-warning":al(i,o,t),"&-error":{...al(l,a,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},cl=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-actions":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:wn(i),backgroundColor:"transparent",border:"none",cursor:"pointer",...xi(e),[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},ul=ki("Alert",e=>[ll(e),sl(e),cl(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`})),dl=e=>{const{icon:t,type:n,className:r,style:o,successIcon:i,infoIcon:a,warningIcon:l,errorIcon:s}=e,c={success:i??g.createElement(Hi,null),info:a??g.createElement(oa,null),error:s??g.createElement(Ui,null),warning:l??g.createElement(ea,null)};return g.createElement("span",{className:r,style:o},t??c[n])},hl=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i,className:a,style:l}=e,s=!0===r||void 0===r?g.createElement(Yi,null):r;return t?g.createElement("button",{type:"button",onClick:o,className:Kt(`${n}-close-icon`,a),tabIndex:0,style:l,...i},s):null},pl=g.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,title:i,banner:a,className:l,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:h,afterClose:p,showIcon:f,closable:m,closeText:y,closeIcon:v,action:b,id:x,styles:w,classNames:C,...k}=e,S=i??o,[E,$]=g.useState(!1),T=g.useRef(null);g.useImperativeHandle(t,()=>({nativeElement:T.current}));const{getPrefixCls:P,direction:M,variant:O,closable:N,closeIcon:A,className:I,style:R,classNames:L,styles:B,successIcon:z,infoIcon:D,warningIcon:j,errorIcon:_}=en("alert"),F=P("alert",r),[H,W]=ul(F),{onClose:K,afterClose:V}=Xa(m)?m:{},U=t=>{var n;$(!0),null==(n=K??e.onClose)||n(t)},q=g.useMemo(()=>void 0!==e.type?e.type:a?"warning":"info",[e.type,a]),G=e.variant??O??"outlined",X=g.useMemo(()=>!(!Xa(m)||!m.closeIcon)||(!!y||("boolean"==typeof m?m:!(!1===v||!Ua(v))||!!N)),[y,v,m,N]),Y=!(!a||void 0!==f)||f,Z={...e,prefixCls:F,variant:G,type:q,showIcon:Y,closable:X},[Q,J]=il([L,C],[B,w],{props:Z}),ee=Kt(F,`${F}-${q}`,`${F}-${G}`,{[`${F}-with-description`]:!!n,[`${F}-no-icon`]:!Y,[`${F}-banner`]:!!a,[`${F}-rtl`]:"rtl"===M},I,l,s,Q.root,W,H),te=ct(k,{aria:!0,data:!0}),ne=g.useMemo(()=>Xa(m)&&m.closeIcon?m.closeIcon:y||(void 0!==v?v:Xa(N)&&N.closeIcon?N.closeIcon:A),[v,m,N,y,A]),re=g.useMemo(()=>{const e=m??N;return Xa(e)?ct(e,{data:!0,aria:!0}):{}},[m,N]);return g.createElement(Ba,{visible:!E,motionName:`${F}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:V??p},({className:t,style:r},o)=>g.createElement("div",{id:x,ref:pe(T,o),"data-show":!E,className:Kt(ee,t),style:{...J.root,...R,...c,...r},onMouseEnter:u,onMouseLeave:d,onClick:h,role:"alert",...te},Y?g.createElement(dl,{className:Kt(`${F}-icon`,Q.icon),style:J.icon,description:n,icon:e.icon,prefixCls:F,type:q,successIcon:z,infoIcon:D,warningIcon:j,errorIcon:_}):null,g.createElement("div",{className:Kt(`${F}-section`,Q.section),style:J.section},S?g.createElement("div",{className:Kt(`${F}-title`,Q.title),style:J.title},S):null,n?g.createElement("div",{className:Kt(`${F}-description`,Q.description),style:J.description},n):null),b?g.createElement("div",{className:Kt(`${F}-actions`,Q.actions),style:J.actions},b):null,g.createElement(hl,{className:Q.close,style:J.close,isClosable:X,prefixCls:F,closeIcon:ne,handleClose:U,ariaProps:re})))});let fl=function(e){function t(){var e,n,r,o;return Xr(this,t),n=this,o=arguments,r=eo(r=t),(e=no(n,to()?Reflect.construct(r,o||[],eo(n).constructor):r.apply(n,o))).state={error:void 0,info:{}},e}return Jr(t,e),Yr(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,title:t,description:n,id:r,children:o}=this.props,{error:i,info:a}=this.state,l=t??e,s=(null==a?void 0:a.componentStack)||null,c=Ua(l)?l:null==i?void 0:i.toString(),u=Ua(n)?n:s;return i?g.createElement(pl,{id:r,type:"error",title:c,description:g.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},u)}):o}}])}(g.PureComponent);const ml=pl;ml.ErrorBoundary=fl;const gl=e=>"object"==typeof e&&null!=e&&1===e.nodeType,yl=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,vl=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return yl(n.overflowY,t)||yl(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},bl=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,xl=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},wl=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!gl(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let f=e;for(;gl(f)&&d(f);){if(f=xl(f),f===h){p.push(f);break}null!=f&&f===document.body&&vl(f)&&!vl(document.documentElement)||null!=f&&vl(f,u)&&p.push(f)}const m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:y,scrollY:v}=window,{height:b,width:x,top:w,right:C,bottom:k,left:S}=e.getBoundingClientRect(),{top:E,right:$,bottom:T,left:P}=(e=>{const 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);let M="start"===l||"nearest"===l?w-E:"end"===l?k+T:w+b/2-E+T,O="center"===s?S+x/2-P+$:"end"===s?C+$:S-P;const N=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:o,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&w>=0&&S>=0&&k<=g&&C<=m&&(t===h&&!vl(t)||w>=o&&k<=c&&S>=u&&C<=i))return N;const d=getComputedStyle(t),f=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),$=parseInt(d.borderRightWidth,10),T=parseInt(d.borderBottomWidth,10);let P=0,A=0;const I="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-$:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-T:0,L="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,B="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(h===t)P="start"===l?M:"end"===l?M-g:"nearest"===l?bl(v,v+g,g,E,T,v+M,v+M+b,b):M-g/2,A="start"===s?O:"center"===s?O-m/2:"end"===s?O-m:bl(y,y+m,m,f,$,y+O,y+O+x,x),P=Math.max(0,P+v),A=Math.max(0,A+y);else{P="start"===l?M-o-E:"end"===l?M-c+T+R:"nearest"===l?bl(o,c,n,E,T+R,M,M+b,b):M-(o+n/2)+R/2,A="start"===s?O-u-f:"center"===s?O-(u+r/2)+I/2:"end"===s?O-i+$+I:bl(u,i,r,f,$+I,O,O+x,x);const{scrollLeft:e,scrollTop:a}=t;P=0===B?0:Math.max(0,Math.min(a+P/B,t.scrollHeight-n/B+R)),A=0===L?0:Math.max(0,Math.min(e+A/L,t.scrollWidth-r/L+I)),M+=a-P,O+=e-A}N.push({el:t,top:P,left:A})}return N};function Cl(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;const n=(e=>{const 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("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(wl(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:i,left:a}of wl(e,(e=>{return!1===e?{block:"end",inline:"nearest"}:(t=e)===Object(t)&&0!==Object.keys(t).length?e:{block:"start",inline:"nearest"};var t})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}const kl=e=>Ua(e)&&e===e.window;function Sl(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=(e=>{var t;if("undefined"==typeof window)return 0;let n=0;return kl(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:e instanceof HTMLElement?n=e.scrollTop:e&&(n=e.scrollTop),!e||kl(e)||qa(n)||(n=null==(t=(e.ownerDocument??e).documentElement)?void 0:t.scrollTop),n})(i),l=Date.now();let s;const c=()=>{const t=Date.now()-l,n=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(t>o?o:t,a,e,o);kl(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<o?s=mt(c):Ya(r)&&r()};return s=mt(c),()=>{mt.cancel(s)}}const El=e=>`${e}-css-var`,$l=g.createContext(void 0),Tl={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"};function Pl(e){return(Pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ml(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 Ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(n),!0).forEach(function(t){Nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nl(e,t,n){var r;return r=function(e,t){if("object"!=Pl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Pl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==Pl(r)?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Al={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Il={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"],...Ol(Ol({},{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"})},timePickerLocale:{...Al}},Rl="${label} is not a valid ${type}",Ll={locale:"en",Pagination:Tl,DatePicker:Il,TimePicker:Al,Calendar:Il,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:Rl,method:Rl,array:Rl,object:Rl,number:Rl,date:Rl,boolean:Rl,integer:Rl,float:Rl,regexp:Rl,email:Rl,url:Rl,hex:Rl},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"}};let Bl={...Ll.Modal},zl=[];const Dl=()=>zl.reduce((e,t)=>({...e,...t}),Ll.Modal);function jl(){return Bl}const _l=g.createContext(void 0),Fl=(e,t)=>{const n=g.useContext(_l);return[g.useMemo(()=>{const r=t||Ll[e],o=(null==n?void 0:n[e])??{};return{...Ya(r)?r():r,...o||{}}},[e,t,n]),g.useMemo(()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Ll.locale:e},[n])]},Hl=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;g.useEffect(()=>{const e=function(e){if(e){const t={...e};return zl.push(t),Bl=Dl(),()=>{zl=zl.filter(e=>e!==t),Bl=Dl()}}Bl={...Ll.Modal}}(null==t?void 0:t.Modal);return e},[t]);const o=g.useMemo(()=>({...t,exist:!0}),[t]);return g.createElement(_l.Provider,{value:o},n)},Wl=g.createContext(null);const Kl=[];const Vl=`rc-util-locker-${Date.now()}`;let Ul=0;function ql(e){const t=!!e,[n]=g.useState(()=>(Ul+=1,`${Vl}_${Ul}`));G(()=>{if(t){const e=Ze(document.body).width;Me(`\nhtml body {\n overflow-y: hidden;\n ${document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?`width: calc(100% - ${e}px);`:""}\n}`,n)}else Pe(n);return()=>{Pe(n)}},[t,n])}let Gl=[];let Xl=0;const Yl=e=>{if("Escape"===e.key&&!e.isComposing){if(Date.now()-Xl<200)return;const t=Gl.length;for(let n=t-1;n>=0;n-=1)Gl[n].onEsc({top:n===t-1,event:e})}},Zl=()=>{Xl=Date.now()};function Ql(e,t){const n=ee(),r=V(t),o=()=>{Gl.find(e=>e.id===n)||Gl.push({id:n,onEsc:r})},i=()=>{Gl=Gl.filter(e=>e.id!==n)};g.useMemo(()=>{e?o():e||i()},[e]),g.useEffect(()=>{if(e)return o(),window.addEventListener("keydown",Yl),window.addEventListener("compositionend",Zl),()=>{i(),0===Gl.length&&(window.removeEventListener("keydown",Yl),window.removeEventListener("compositionend",Zl))}},[e])}const Jl=e=>!1!==e&&(U()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null),es=g.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:o,debug:i,autoDestroy:a=!0,children:l,onEsc:s}=e,[c,u]=g.useState(n),d=c||n;g.useEffect(()=>{(a||n)&&u(n)},[n,a]);const[h,p]=g.useState(()=>Jl(o));g.useEffect(()=>{const e=Jl(o);p(()=>e??null)});const[f,m]=function(e){const[t]=g.useState(()=>U()?document.createElement("div"):null),n=g.useRef(!1),r=g.useContext(Wl),[o,i]=g.useState(Kl),a=r||(n.current?void 0:e=>{i(t=>[e,...t])});function l(){t.parentElement||document.body.appendChild(t),n.current=!0}function s(){var e;null==(e=t.parentElement)||e.removeChild(t),n.current=!1}return G(()=>(e?r?r(l):l():s(),s),[e]),G(()=>{o.length&&(o.forEach(e=>e()),i(Kl))},[o]),[t,a]}(d&&!h),y=h??f;ql(r&&n&&U()&&(y===f||y===document.body)),Ql(n,s);let v=null;l&&me(l)&&t&&(v=ve(l));const b=fe(v,t);if(!d||!U()||void 0===h)return null;const x=!1===y||!1;let w=l;return t&&(w=g.cloneElement(l,{ref:b})),g.createElement(Wl.Provider,{value:m},x?w:Pt.createPortal(w,y))});function ts(e){const{prefixCls:t,align:n,arrow:r,arrowPos:o}=e,{className:i,content:a,style:l}=r||{},{x:s=0,y:c=0}=o,u=g.useRef(null);if(!n||!n.points)return null;const d={position:"absolute"};if(!1!==n.autoArrow){const e=n.points[0],t=n.points[1],r=e[0],o=e[1],i=t[0],a=t[1];r!==i&&["t","b"].includes(r)?"t"===r?d.top=0:d.bottom=0:d.top=c,o!==a&&["l","r"].includes(o)?"l"===o?d.left=0:d.right=0:d.left=s}return g.createElement("div",{ref:u,className:Kt(`${t}-arrow`,i),style:{...d,...l}},a)}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)}function rs(e){const{prefixCls:t,open:n,zIndex:r,mask:o,motion:i,mobile:a}=e;return o?g.createElement(Ba,ns({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>g.createElement("div",{style:{zIndex:r},className:Kt(`${t}-mask`,a&&`${t}-mobile-mask`,e)})):null}const os=g.memo(({children:e})=>e,(e,t)=>t.cache);function is(e,t,n,r,o,i,a,l){var s;const c="auto",u=e?{}:{left:"-1000vw",top:"-1000vh",right:c,bottom:c};if(!e&&(t||!n)){const{points:e}=r,t=r.dynamicInset||(null==(s=r._experimental)?void 0:s.dynamicInset),n=t&&"r"===e[0][1],d=t&&"b"===e[0][0];n?(u.right=o,u.left=c):(u.left=a,u.right=c),d?(u.bottom=i,u.top=c):(u.top=l,u.bottom=c)}return u}function as(){return as=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},as.apply(this,arguments)}const ls=g.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:o,prefixCls:i,style:a,target:l,onVisibleChanged:s,open:c,keepDom:u,fresh:d,onClick:h,mask:p,arrow:f,arrowPos:m,align:y,motion:v,maskMotion:b,mobile:x,forceRender:w,getPopupContainer:C,autoDestroy:k,portal:S,children:E,zIndex:$,onMouseEnter:T,onMouseLeave:P,onPointerEnter:M,onPointerDownCapture:O,ready:N,offsetX:A,offsetY:I,offsetR:R,offsetB:L,onAlign:B,onPrepare:z,onResize:D,stretch:j,targetWidth:_,targetHeight:F}=e,H="function"==typeof r?r():r,W=c||u,K=!!x,[U,q,X]=g.useMemo(()=>x?[x.mask,x.maskMotion,x.motion]:[p,b,v],[x,p,b,v]),Y=(null==C?void 0:C.length)>0,[Z,Q]=g.useState(!C||!Y);G(()=>{!Z&&Y&&l&&Q(!0)},[Z,Y,l]);const J=V((e,t)=>{null==D||D(e,t),B()}),ee=is(K,N,c,y,R,L,A,I);if(!Z)return null;const te={};return j&&(j.includes("height")&&F?te.height=F:j.includes("minHeight")&&F&&(te.minHeight=F),j.includes("width")&&_?te.width=_:j.includes("minWidth")&&_&&(te.minWidth=_)),c||(te.pointerEvents="none"),g.createElement(S,{open:w||W,getContainer:C&&(()=>C(l)),autoDestroy:k,onEsc:n},g.createElement(rs,{prefixCls:i,open:c,zIndex:$,mask:U,motion:q,mobile:K}),g.createElement(Ht,{onResize:J,disabled:!c},e=>g.createElement(Ba,as({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:`${i}-hidden`},X,{onAppearPrepare:z,onEnterPrepare:z,visible:c,onVisibleChanged:e=>{var t;null==(t=null==v?void 0:v.onVisibleChanged)||t.call(v,e),s(e)}}),({className:n,style:r},l)=>{const s=Kt(i,n,o,{[`${i}-mobile`]:K});return g.createElement("div",{ref:pe(e,t,l),className:s,style:{"--arrow-x":`${m.x||0}px`,"--arrow-y":`${m.y||0}px`,...ee,...te,...r,boxSizing:"border-box",zIndex:$,...a},onMouseEnter:T,onMouseLeave:P,onPointerEnter:M,onClick:h,onPointerDownCapture:O},f&&g.createElement(ts,{prefixCls:i,arrow:f,arrowPos:m,align:y}),g.createElement(os,{cache:!c&&!d},H))})),E)}),ss=g.createContext(null),cs=g.createContext(null);function us(e){return e?Array.isArray(e)?e:[e]:[]}function ds(e=[],t=[],n){const 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 hs(e,t,n,r){var o;const{points:i}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){const l=a[n];if(ds(null==(o=e[l])?void 0:o.points,i,r))return`${t}-placement-${l}`}return""}function ps(e){return e.ownerDocument.defaultView}function fs(e){const t=[];let n=null==e?void 0:e.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:e,overflowY:o,overflow:i}=ps(n).getComputedStyle(n);[e,o,i].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function ms(e,t=1){return Number.isNaN(e)?t:e}function gs(e){return ms(parseFloat(e),0)}function ys(e,t){const n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;const{overflow:t,overflowClipMargin:r,borderTopWidth:o,borderBottomWidth:i,borderLeftWidth:a,borderRightWidth:l}=ps(e).getComputedStyle(e),s=e.getBoundingClientRect(),{offsetHeight:c,clientHeight:u,offsetWidth:d,clientWidth:h}=e,p=gs(o),f=gs(i),m=gs(a),g=gs(l),y=ms(Math.round(s.width/d*1e3)/1e3),v=ms(Math.round(s.height/c*1e3)/1e3),b=(d-h-m-g)*y,x=(c-u-p-f)*v,w=p*v,C=f*v,k=m*y,S=g*y;let E=0,$=0;if("clip"===t){const e=gs(r);E=e*y,$=e*v}const T=s.x+k-E,P=s.y+w-$,M=T+s.width+2*E-k-S-b,O=P+s.height+2*$-w-C-x;n.left=Math.max(n.left,T),n.top=Math.max(n.top,P),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,O)}),n}function vs(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function bs(e,t){const[n,r]=t||[];return[vs(e.width,n),vs(e.height,r)]}function xs(e=""){return[e[0],e[1]]}function ws(e,t){const n=t[0],r=t[1];let o,i;return i="t"===n?e.y:"b"===n?e.y+e.height:e.y+e.height/2,o="l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,{x:o,y:i}}function Cs(e,t){const n=[...e];return n[t]={t:"b",b:"t",l:"r",r:"l"}[e[t]]||"c",n}function ks(e){return e.join("")}function Ss(e,t,n,r,o,i,a,l){const[s,c]=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),u=g.useRef(0),d=g.useMemo(()=>!t||l?[]:fs(t),[t]),h=g.useRef({});e||(h.current={});const p=V(()=>{var s,u;if(t&&n&&e&&!l){let e=function(e,t,n=U){const r=E.x+e,o=E.y+t,i=r+L,a=o+R,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))},l=function(){Ee=E.y+he,$e=Ee+R,Te=E.x+de,Pe=Te+L};const p=t,f=p.ownerDocument,m=ps(p),{position:g}=m.getComputedStyle(p),y=p.style.left,v=p.style.top,b=p.style.right,x=p.style.bottom,w=p.style.overflow,C={...o[r],...i},k=f.createElement("div");let S;if(null==(s=p.parentElement)||s.appendChild(k),k.style.left=`${p.offsetLeft}px`,k.style.top=`${p.offsetTop}px`,k.style.position=g,k.style.height=`${p.offsetHeight}px`,k.style.width=`${p.offsetWidth}px`,p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))S={x:n[0],y:n[1],width:0,height:0};else{const 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}}const E=p.getBoundingClientRect(),{height:$,width:T}=m.getComputedStyle(p);E.x=E.x??E.left,E.y=E.y??E.top;const{clientWidth:P,clientHeight:M,scrollWidth:O,scrollHeight:N,scrollTop:A,scrollLeft:I}=f.documentElement,R=E.height,L=E.width,B=S.height,z=S.width,D={left:0,top:0,right:P,bottom:M},j={left:-I,top:-A,right:O-I,bottom:N-A};let{htmlRegion:_}=C;const F="visible",H="visibleFirst";"scroll"!==_&&_!==H&&(_=F);const W=_===H,K=ys(j,d),V=ys(D,d),U=_===F?V:K,q=W?V:U;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";const G=p.getBoundingClientRect();p.style.left=y,p.style.top=v,p.style.right=b,p.style.bottom=x,p.style.overflow=w,null==(u=p.parentElement)||u.removeChild(k);const X=ms(Math.round(L/parseFloat(T)*1e3)/1e3),Y=ms(Math.round(R/parseFloat($)*1e3)/1e3);if(0===X||0===Y||Oe(n)&&!Ae(n))return;const{offset:Z,targetOffset:Q}=C;let[J,ee]=bs(E,Z);const[te,ne]=bs(S,Q);S.x-=te,S.y-=ne;const[re,oe]=C.points||[],ie=xs(oe),ae=xs(re),le=ws(S,ie),se=ws(E,ae),ce={...C};let ue=[ae,ie],de=le.x-se.x+J,he=le.y-se.y+ee;const pe=e(de,he),fe=e(de,he,V),me=ws(S,["t","l"]),ge=ws(E,["t","l"]),ye=ws(S,["b","r"]),ve=ws(E,["b","r"]),be=C.overflow||{},{adjustX:xe,adjustY:we,shiftX:Ce,shiftY:ke}=be,Se=e=>"boolean"==typeof e?e:e>=0;let Ee,$e,Te,Pe;l();const Me=Se(we),Ne=ae[0]===ie[0];if(Me&&"t"===ae[0]&&($e>q.bottom||h.current.bt)){let t=he;Ne?t-=R-B:t=me.y-ve.y-ee;const n=e(de,t),r=e(de,t,V);n>pe||n===pe&&(!W||r>=fe)?(h.current.bt=!0,he=t,ee=-ee,ue=[Cs(ue[0],0),Cs(ue[1],0)]):h.current.bt=!1}if(Me&&"b"===ae[0]&&(Ee<q.top||h.current.tb)){let t=he;Ne?t+=R-B:t=ye.y-ge.y-ee;const n=e(de,t),r=e(de,t,V);n>pe||n===pe&&(!W||r>=fe)?(h.current.tb=!0,he=t,ee=-ee,ue=[Cs(ue[0],0),Cs(ue[1],0)]):h.current.tb=!1}const Ie=Se(xe),Re=ae[1]===ie[1];if(Ie&&"l"===ae[1]&&(Pe>q.right||h.current.rl)){let t=de;Re?t-=L-z:t=me.x-ve.x-J;const n=e(t,he),r=e(t,he,V);n>pe||n===pe&&(!W||r>=fe)?(h.current.rl=!0,de=t,J=-J,ue=[Cs(ue[0],1),Cs(ue[1],1)]):h.current.rl=!1}if(Ie&&"r"===ae[1]&&(Te<q.left||h.current.lr)){let t=de;Re?t+=L-z:t=ye.x-ge.x-J;const n=e(t,he),r=e(t,he,V);n>pe||n===pe&&(!W||r>=fe)?(h.current.lr=!0,de=t,J=-J,ue=[Cs(ue[0],1),Cs(ue[1],1)]):h.current.lr=!1}ce.points=[ks(ue[0]),ks(ue[1])],l();const Le=!0===Ce?0:Ce;"number"==typeof Le&&(Te<V.left&&(de-=Te-V.left-J,S.x+z<V.left+Le&&(de+=S.x-V.left+z-Le)),Pe>V.right&&(de-=Pe-V.right-J,S.x>V.right-Le&&(de+=S.x-V.right+Le)));const Be=!0===ke?0:ke;"number"==typeof Be&&(Ee<V.top&&(he-=Ee-V.top-ee,S.y+B<V.top+Be&&(he+=S.y-V.top+B-Be)),$e>V.bottom&&(he-=$e-V.bottom-ee,S.y>V.bottom-Be&&(he+=S.y-V.bottom+Be)));const ze=E.x+de,De=ze+L,je=E.y+he,_e=je+R,Fe=S.x,He=Fe+z,We=S.y,Ke=We+B,Ve=(Math.max(ze,Fe)+Math.min(De,He))/2-ze,Ue=(Math.max(je,We)+Math.min(_e,Ke))/2-je;null==a||a(t,ce);let qe=G.right-E.x-(de+E.width),Ge=G.bottom-E.y-(he+E.height);1===X&&(de=Math.floor(de),qe=Math.floor(qe)),1===Y&&(he=Math.floor(he),Ge=Math.floor(Ge));c({ready:!0,offsetX:de/X,offsetY:he/Y,offsetR:qe/X,offsetB:Ge/Y,arrowX:Ve/X,arrowY:Ue/Y,scaleX:X,scaleY:Y,align:ce})}}),f=()=>{c(e=>({...e,ready:!1}))};return G(f,[r]),G(()=>{e||f()},[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,()=>{u.current+=1;const e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})}]}function Es(){const e=g.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)};return g.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),0===r?n():e.current=setTimeout(()=>{n()},1e3*r)}}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)}const Ts=e=>{const{prefixCls:t,isMobile:n,ready:r,open:o,align:i,offsetR:a,offsetB:l,offsetX:s,offsetY:c,arrowPos:u,popupSize:d,motion:h,uniqueContainerClassName:p,uniqueContainerStyle:f}=e,m=`${t}-unique-container`,[g,v]=y.useState(!1),b=is(n,r,o,i,a,l,s,c),x=y.useRef(b);r&&(x.current=b);const w={};return d&&(w.width=d.width,w.height=d.height),y.createElement(Ba,$s({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${m}-hidden`},h,{visible:o,onVisibleChanged:e=>{v(e)}}),({className:e,style:t})=>{const n=Kt(m,e,p,{[`${m}-visible`]:g});return y.createElement("div",{className:n,style:{"--arrow-x":`${(null==u?void 0:u.x)||0}px`,"--arrow-y":`${(null==u?void 0:u.y)||0}px`,...x.current,...w,...t,...f}})})},Ps=({children:e,postTriggerProps:t})=>{const[n,r,o,i]=function(){const[e,t]=y.useState(null),[n,r]=y.useState(!1),[o,i]=y.useState(!1),a=y.useRef(null),l=V(e=>{!1===e?(a.current=null,r(!1)):o&&n?a.current=e:(r(!0),t(e),a.current=null,n||i(!0))}),s=V(e=>{e?(i(!1),a.current&&(t(a.current),a.current=null)):(i(!1),a.current=null)});return[l,n,e,s]}(),a=g.useMemo(()=>o&&t?t(o):o,[o,t]),[l,s]=g.useState(null),[c,u]=g.useState(null),d=g.useRef(null),h=V(e=>{d.current=e,Oe(e)&&l!==e&&s(e)}),p=g.useRef(null),f=Es(),m=V((e,t)=>{p.current=t,f(()=>{n(e)},e.delay)}),v=e=>{f(()=>{var e;(null==(e=p.current)?void 0:e.call(p))||n(!1)},e)},b=V(e=>{i(e)}),[x,w,C,k,S,E,$,,,T,P]=Ss(r,l,null==a?void 0:a.target,null==a?void 0:a.popupPlacement,(null==a?void 0:a.builtinPlacements)||{},null==a?void 0:a.popupAlign,void 0,!1),M=g.useMemo(()=>{var e;if(!a)return"";return Kt(hs(a.builtinPlacements||{},a.prefixCls||"",T,!1),null==(e=a.getPopupClassNameFromAlign)?void 0:e.call(a,T))},[T,null==a?void 0:a.getPopupClassNameFromAlign,null==a?void 0:a.builtinPlacements,null==a?void 0:a.prefixCls]),O=g.useMemo(()=>({show:m,hide:v}),[]);g.useEffect(()=>{P()},[null==a?void 0:a.target]);const N=V(()=>(P(),Promise.resolve())),A=g.useRef({}),I=g.useContext(ss),R=g.useMemo(()=>({registerSubPopup:(e,t)=>{A.current[e]=t,null==I||I.registerSubPopup(e,t)}}),[I]),L=null==a?void 0:a.prefixCls;return g.createElement(cs.Provider,{value:O},e,a&&g.createElement(ss.Provider,{value:R},g.createElement(ls,{ref:h,portal:es,onEsc:a.onEsc,prefixCls:L,popup:a.popup,className:Kt(a.popupClassName,M,`${L}-unique-controlled`),style:a.popupStyle,target:a.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:b,ready:x,offsetX:w,offsetY:C,offsetR:k,offsetB:S,onAlign:P,onPrepare:N,onResize:e=>u({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:E,y:$},align:T,zIndex:a.zIndex,mask:a.mask,arrow:a.arrow,motion:a.popupMotion,maskMotion:a.maskMotion,getPopupContainer:a.getPopupContainer},g.createElement(Ts,{prefixCls:L,isMobile:!1,ready:x,open:r,align:T,offsetR:k,offsetB:S,offsetX:w,offsetY:C,arrowPos:{x:E,y:$},popupSize:c,motion:a.popupMotion,uniqueContainerClassName:Kt(a.uniqueContainerClassName,M),uniqueContainerStyle:a.uniqueContainerStyle}))))};const Ms=function(e=es){return g.forwardRef((t,n)=>{const{prefixCls:r="rc-trigger-popup",children:o,action:i="hover",showAction:a,hideAction:l,popupVisible:s,defaultPopupVisible:c,onOpenChange:u,afterOpenChange:d,onPopupVisibleChange:h,afterPopupVisibleChange:p,mouseEnterDelay:f,mouseLeaveDelay:m=.1,focusDelay:y,blurDelay:v,mask:b,maskClosable:x=!0,getPopupContainer:w,forceRender:C,autoDestroy:k,popup:S,popupClassName:E,uniqueContainerClassName:$,uniqueContainerStyle:T,popupStyle:P,popupPlacement:M,builtinPlacements:O={},popupAlign:N,zIndex:A,stretch:I,getPopupClassNameFromAlign:R,fresh:L,unique:B,alignPoint:z,onPopupClick:D,onPopupAlign:j,arrow:_,popupMotion:F,maskMotion:H,mobile:W,...K}=t,U=k||!1,q=void 0===s,X=!!W,Z=g.useRef({}),Q=g.useContext(ss),J=g.useMemo(()=>({registerSubPopup:(e,t)=>{Z.current[e]=t,null==Q||Q.registerSubPopup(e,t)}}),[Q]),te=g.useContext(cs),ne=ee(),[re,oe]=g.useState(null),ie=g.useRef(null),ae=V(e=>{ie.current=e,Oe(e)&&re!==e&&oe(e),null==Q||Q.registerSubPopup(ne,e)}),[le,se]=g.useState(null),ce=g.useRef(null),ue=V(e=>{const t=Ne(e);Oe(t)&&le!==t&&(se(t),ce.current=t)}),de={},he=V(e=>{var t,n;const r=le;return(null==r?void 0:r.contains(e))||(null==(t=Ue(r))?void 0:t.host)===e||e===r||(null==re?void 0:re.contains(e))||(null==(n=Ue(re))?void 0:n.host)===e||e===re||Object.values(Z.current).some(t=>(null==t?void 0:t.contains(e))||e===t)}),pe=_?{...!0!==_?_:{}}:null,[me,ge]=Y(c||!1,s),ye=me||!1,be=g.useMemo(()=>{const e="function"==typeof o?o({open:ye}):o;return g.Children.only(e)},[o,ye]),xe=(null==be?void 0:be.props)||{},we=V(()=>ye),Ce=V((e=0)=>({popup:S,target:le,delay:e,prefixCls:r,popupClassName:E,uniqueContainerClassName:$,uniqueContainerStyle:T,popupStyle:P,popupPlacement:M,builtinPlacements:O,popupAlign:N,zIndex:A,mask:b,maskClosable:x,popupMotion:F,maskMotion:H,arrow:pe,getPopupContainer:w,getPopupClassNameFromAlign:R,id:ne,onEsc:Te}));G(()=>{te&&B&&le&&!q&&!Q&&(ye?te.show(Ce(f),we):te.hide(m))},[ye,le]);const ke=g.useRef(ye);ke.current=ye;const Se=V(e=>{Pt.flushSync(()=>{ye!==e&&(ge(e),null==u||u(e),null==h||h(e))})}),Ee=Es(),$e=(e,t=0)=>{void 0===s&&te&&B&&q&&!Q?e?te.show(Ce(t),we):te.hide(t):Ee(()=>{Se(e)},t)};function Te({top:e}){e&&$e(!1)}const[Pe,Me]=g.useState(!1);G(e=>{e&&!ye||Me(!0)},[ye]);const[Ae,Ie]=g.useState(null),[Re,Le]=g.useState(null),Be=e=>{Le([e.clientX,e.clientY])},[ze,De,je,_e,Fe,He,We,Ke,Ve,qe,Ge]=Ss(ye,re,z&&null!==Re?Re:le,M,O,N,j,X),[Xe,Ye]=function(e,t,n){return g.useMemo(()=>{const r=us(t??e),o=us(n??e),i=new Set(r),a=new Set(o);return i.has("hover")&&!i.has("click")&&i.add("touch"),a.has("hover")&&!a.has("click")&&a.add("touch"),[i,a]},[e,t,n])}(i,a,l),Ze=Xe.has("click"),Qe=Ye.has("click")||Ye.has("contextMenu"),Je=V(()=>{Pe||Ge()});!function(e,t,n,r,o){G(()=>{if(e&&t&&n){let e=function(){r(),o()};const i=n,a=fs(t),l=fs(i),s=ps(i),c=new Set([s,...a,...l]);return c.forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),s.addEventListener("resize",e,{passive:!0}),r(),()=>{c.forEach(t=>{t.removeEventListener("scroll",e),s.removeEventListener("resize",e)})}}},[e,t,n])}(ye,le,re,Je,()=>{ke.current&&z&&Qe&&$e(!1)}),G(()=>{Je()},[Re,M]),G(()=>{ye&&!(null==O?void 0:O[M])&&Je()},[JSON.stringify(N)]);const et=g.useMemo(()=>Kt(hs(O,r,qe,z),null==R?void 0:R(qe)),[qe,R,O,r,z]);g.useImperativeHandle(n,()=>({nativeElement:ce.current,popupElement:ie.current,forceAlign:Je}));const[tt,nt]=g.useState(0),[rt,ot]=g.useState(0),it=()=>{if(I&&le){const e=le.getBoundingClientRect();nt(e.width),ot(e.height)}};function at(e,t,n,r,o){de[e]=(i,...a)=>{var l;o&&o()||(null==r||r(i),$e(t,n)),null==(l=xe[e])||l.call(xe,i,...a)}}G(()=>{Ae&&(Ge(),Ae(),Ie(null))},[Ae]);const lt=Xe.has("touch"),st=Ye.has("touch"),ct=g.useRef(!1);(lt||st)&&(de.onTouchStart=(...e)=>{var t;ct.current=!0,ke.current&&st?$e(!1):!ke.current&<&&$e(!0),null==(t=xe.onTouchStart)||t.call(xe,...e)}),(Ze||Qe)&&(de.onClick=(e,...t)=>{var n;ke.current&&Qe?$e(!1):!ke.current&&Ze&&(Be(e),$e(!0)),null==(n=xe.onClick)||n.call(xe,e,...t),ct.current=!1});const ut=function(e,t,n,r,o,i,a,l){const s=g.useRef(e);s.current=e;const c=g.useRef(!1);return g.useEffect(()=>{if(t&&r&&(!o||i)){const e=()=>{c.current=!1},t=e=>{var t,n;!s.current||a((null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)||c.current||l(!1)},o=ps(r);o.addEventListener("pointerdown",e,!0),o.addEventListener("mousedown",t,!0),o.addEventListener("contextmenu",t,!0);const i=Ue(n);return i&&(i.addEventListener("mousedown",t,!0),i.addEventListener("contextmenu",t,!0)),()=>{o.removeEventListener("pointerdown",e,!0),o.removeEventListener("mousedown",t,!0),o.removeEventListener("contextmenu",t,!0),i&&(i.removeEventListener("mousedown",t,!0),i.removeEventListener("contextmenu",t,!0))}}},[t,n,r,o,i]),function(){c.current=!0}}(ye,Qe||st,le,re,b,x,he,$e),dt=Xe.has("hover"),ht=Ye.has("hover");let pt,ft;const mt=()=>ct.current;if(dt){const e=e=>{Be(e)};at("onMouseEnter",!0,f,e,mt),at("onPointerEnter",!0,f,e,mt),pt=e=>{(ye||Pe)&&(null==re?void 0:re.contains(e.target))&&$e(!0,f)},z&&(de.onMouseMove=e=>{var t;null==(t=xe.onMouseMove)||t.call(xe,e)})}ht&&(at("onMouseLeave",!1,m,void 0,mt),at("onPointerLeave",!1,m,void 0,mt),ft=()=>{$e(!1,m)}),Xe.has("focus")&&at("onFocus",!0,y),Ye.has("focus")&&at("onBlur",!1,v),Xe.has("contextMenu")&&(de.onContextMenu=(e,...t)=>{var n;ke.current&&Ye.has("contextMenu")?$e(!1):(Be(e),$e(!0)),e.preventDefault(),null==(n=xe.onContextMenu)||n.call(xe,e,...t)});const gt=g.useRef(!1);gt.current||(gt.current=C||ye||Pe);const yt={...xe,...de},vt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(e=>{K[e]&&(vt[e]=(...t)=>{var n;null==(n=yt[e])||n.call(yt,...t),K[e](...t)})});const bt={x:He,y:We};zt(ye,le,()=>{it(),Je()});const xt=fe(ue,ve(be)),wt=g.cloneElement(be,{...yt,...vt,ref:xt});return g.createElement(g.Fragment,null,wt,gt.current&&(!te||!B)&&g.createElement(ss.Provider,{value:J},g.createElement(ls,{portal:e,ref:ae,prefixCls:r,popup:S,className:Kt(E,!X&&et),style:P,target:le,onMouseEnter:pt,onMouseLeave:ft,onPointerEnter:pt,zIndex:A,open:ye,keepDom:Pe,fresh:L,onClick:D,onPointerDownCapture:ut,mask:b,motion:F,maskMotion:H,onVisibleChanged:e=>{Me(!1),Ge(),null==d||d(e),null==p||p(e)},onPrepare:()=>new Promise(e=>{it(),Ie(()=>e)}),forceRender:C,autoDestroy:U,getPopupContainer:w,onEsc:Te,align:qe,arrow:pe,arrowPos:bt,ready:ze,offsetX:De,offsetY:je,offsetR:_e,offsetB:Fe,onAlign:Je,stretch:I,targetWidth:tt/Ke,targetHeight:rt/Ve,mobile:W})))})}(es);function Os(e){return e&&y.isValidElement(e)&&e.type===y.Fragment}const Ns=(e,t,n)=>y.isValidElement(e)?y.cloneElement(e,Ya(n)?n(e.props||{}):n):t;function As(e,t){return Ns(e,e,t)}const Is=({children:e})=>{const{getPrefixCls:t}=y.useContext(Zt),n=t();return y.isValidElement(e)?y.createElement(Ba,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>As(e,e=>({className:Kt(e.className,n),style:{...e.style,...t}}))):e},Rs=[null,null];const Ls=({children:e})=>y.createElement(Ps,{postTriggerProps:e=>{const{id:t,builtinPlacements:n,popup:r}=e,o=Ya(r)?r():r,i=function(e){if(Rs[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Rs[0]=e,Rs[1]=t}return Rs[1]}(n);return{...e,getPopupContainer:null,arrow:!1,popup:y.createElement(Is,{key:t},o),builtinPlacements:i}}},e),Bs=g.createContext(!1),zs=({children:e,disabled:t})=>{const n=g.useContext(Bs);return g.createElement(Bs.Provider,{value:t??n},e)},Ds=g.createContext(void 0),js=({children:e,size:t})=>{const n=g.useContext(Ds);return g.createElement(Ds.Provider,{value:t||n},e)};const _s=g.createContext(!0);function Fs(e){const t=g.useContext(_s),{children:n}=e,[,r]=gi(),{motion:o}=r,i=g.useRef(!1);return i.current||(i.current=t!==o),i.current?g.createElement(_s.Provider,{value:o},g.createElement(aa,{motion:o},n)):n}const Hs=()=>null,Ws=({iconPrefixCls:e,csp:t})=>(((e,t)=>{gi(),_r({hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>wi(e))})(e,t),null),Ks=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Vs,Us,qs,Gs;function Xs(){return Vs||Gt}function Ys(){return Us||Xt}const Zs=()=>({getPrefixCls:(e,t)=>t||(e?`${Xs()}-${e}`:Xs()),getIconPrefixCls:Ys,getRootPrefixCls:()=>Vs||Xs(),getTheme:()=>qs,holderRender:Gs}),Qs=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,affix:i,anchor:a,app:l,form:s,locale:c,componentSize:u,direction:d,space:h,splitter:p,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:y,popupOverflow:v,legacyLocale:b,parentContext:x,iconPrefixCls:w,theme:C,componentDisabled:k,segmented:S,statistic:E,spin:$,calendar:T,carousel:P,cascader:M,collapse:O,typography:N,checkbox:A,descriptions:I,divider:R,drawer:L,skeleton:B,steps:z,image:D,layout:j,list:_,mentions:F,modal:H,progress:W,result:K,slider:V,breadcrumb:U,masonry:q,menu:G,pagination:X,input:Y,inputPassword:Z,inputSearch:Q,textArea:J,otp:ee,empty:ne,badge:re,borderBeam:oe,radio:ie,rate:ae,ribbon:le,switch:se,transfer:ce,avatar:ue,message:de,tag:he,table:pe,card:fe,cardMeta:me,tabs:ge,timeline:ye,timePicker:ve,upload:be,notification:xe,tree:we,colorPicker:Ce,datePicker:ke,rangePicker:Se,flex:Ee,wave:$e,dropdown:Te,warning:Pe,tour:Me,tooltip:Oe,popover:Ne,popconfirm:Ae,qrcode:Ie,floatButton:Re,floatButtonGroup:Le,variant:Be,inputNumber:ze,treeSelect:De,watermark:je}=e,_e=g.useMemo(()=>{var e;return Xa(c)&&Object.prototype.hasOwnProperty.call(c,"default")&&(null==(e=c.default)?void 0:e.locale)?c.default:c},[c]),Fe=g.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||x.getPrefixCls("");return t?`${o}-${t}`:o},[x.getPrefixCls,e.prefixCls]),He=w||x.iconPrefixCls||Xt,We=n||x.csp,Ke=function(e,t,n){Nt();const r=e||{},o=!1!==r.inherit&&t?t:{...si,hashed:(null==t?void 0:t.hashed)??si.hashed,cssVar:null==t?void 0:t.cssVar},i=g.useId();return te(()=>{var a;if(!e)return t;const l={...o.components};Object.keys(e.components||{}).forEach(t=>{l[t]={...l[t],...e.components[t]}});const s=`css-var-${i.replace(/:/g,"")}`,c={prefix:null==n?void 0:n.prefixCls,...o.cssVar,...r.cssVar,key:(null==(a=r.cssVar)?void 0:a.key)||s};return{...o,...r,token:{...o.token,...r.token},components:l,cssVar:c}},[r,o],(e,t)=>e.some((e,n)=>!rt(e,t[n],!0)))}(C,x.theme,{prefixCls:Fe("")}),Ve={csp:We,autoInsertSpaceInButton:r,alert:o,affix:i,anchor:a,app:l,locale:_e||b,direction:d,space:h,splitter:p,virtual:f,popupMatchSelectWidth:y??m,popupOverflow:v,getPrefixCls:Fe,iconPrefixCls:He,theme:Ke,segmented:S,statistic:E,spin:$,calendar:T,carousel:P,cascader:M,collapse:O,typography:N,checkbox:A,descriptions:I,divider:R,drawer:L,skeleton:B,steps:z,image:D,input:Y,inputPassword:Z,inputSearch:Q,textArea:J,otp:ee,layout:j,list:_,mentions:F,modal:H,progress:W,result:K,slider:V,breadcrumb:U,masonry:q,menu:G,pagination:X,empty:ne,badge:re,borderBeam:oe,radio:ie,rate:ae,ribbon:le,switch:se,transfer:ce,avatar:ue,message:de,tag:he,table:pe,card:fe,cardMeta:me,tabs:ge,timeline:ye,timePicker:ve,upload:be,notification:xe,tree:we,colorPicker:Ce,datePicker:ke,rangePicker:Se,flex:Ee,wave:$e,dropdown:Te,warning:Pe,tour:Me,tooltip:Oe,popover:Ne,popconfirm:Ae,qrcode:Ie,floatButton:Re,floatButtonGroup:Le,variant:Be,inputNumber:ze,treeSelect:De,watermark:je},Ue={...x};Object.keys(Ve).forEach(e=>{void 0!==Ve[e]&&(Ue[e]=Ve[e])}),Ks.forEach(t=>{const n=e[t];n&&(Ue[t]=n)}),void 0!==r&&(Ue.button={autoInsertSpace:r,...Ue.button});const qe=te(()=>Ue,Ue,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:Ge}=g.useContext(cn),Xe=g.useMemo(()=>({prefixCls:He,csp:We,layer:Ge?"antd":void 0}),[He,We,Ge]);let Ye=g.createElement(g.Fragment,null,g.createElement(Ws,{iconPrefixCls:He,csp:We}),g.createElement(Hs,{dropdownMatchSelectWidth:m}),t);const Ze=g.useMemo(()=>{var e,t,n,r;return St((null==(e=Ll.Form)?void 0:e.defaultValidateMessages)||{},(null==(n=null==(t=qe.locale)?void 0:t.Form)?void 0:n.defaultValidateMessages)||{},(null==(r=qe.form)?void 0:r.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})},[qe,null==s?void 0:s.validateMessages]);Object.keys(Ze).length>0&&(Ye=g.createElement($l.Provider,{value:Ze},Ye)),_e&&(Ye=g.createElement(Hl,{locale:_e,_ANT_MARK__:"internalMark"},Ye)),Ye=g.createElement(Mi.Provider,{value:Xe},Ye),u&&(Ye=g.createElement(js,{size:u},Ye)),Ye=g.createElement(Fs,null,Ye),(null==Oe?void 0:Oe.unique)&&(Ye=g.createElement(Ls,null,Ye));const Qe=g.useMemo(()=>{const{algorithm:e,token:t,components:n,cssVar:r,...o}=Ke||{},i=e&&(!Array.isArray(e)||e.length>0)?mn(e):li,a={};Object.entries(n||{}).forEach(([e,t])=>{const n={...t};"algorithm"in n&&(!0===n.algorithm?n.theme=i:(Array.isArray(n.algorithm)||Ya(n.algorithm))&&(n.theme=mn(n.algorithm)),delete n.algorithm),a[e]=n});const l={...ko,...t};return{...o,theme:i,token:l,components:a,override:{override:l,...a},cssVar:r}},[Ke]);return C&&(Ye=g.createElement(ci.Provider,{value:Qe},Ye)),qe.warning&&(Ye=g.createElement(Ot.Provider,{value:qe.warning},Ye)),void 0!==k&&(Ye=g.createElement(zs,{disabled:k},Ye)),g.createElement(Zt.Provider,{value:qe},Ye)},Js=e=>{const t=g.useContext(Zt),n=g.useContext(_l);return g.createElement(Qs,{parentContext:t,legacyLocale:n,...e})};function ec(e,t,n=0){const[r,o]=function(){const[e,t]=g.useState({});return[e,g.useCallback((e,n)=>{if(!n)return void t(t=>{if(!(e in t))return t;const n={...t};return delete n[e],n});const r={width:n.offsetWidth,height:n.offsetHeight};t(t=>{const n=t[e];return n&&n.width===r.width&&n.height===r.height?t:{...t,[e]:r}})},[])]}(),[i,a,l,s]=g.useMemo(()=>{let o=0,i=0;const a=(null==t?void 0:t.threshold)??0,l=new Map;let s,c;return e.slice().reverse().forEach((e,u)=>{var d,h;const p=String(e.key),f=(null==(d=r[p])?void 0:d.height)??0,m=t&&u>0?o+(t.offset??0)-f:o;l.set(p,m),0===u&&(s=f,c=(null==(h=r[p])?void 0:h.width)??0),(!t||u<a)&&(i=Math.max(i,m+f)),t?o=m+f:o+=f+n}),[l,i,s,c]},[e,n,r,t]);return[i,o,a,l,s]}Js.ConfigContext=Zt,Js.SizeContext=Ds,Js.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Vs=t),void 0!==n&&(Us=n),"holderRender"in e&&(Gs=o),r&&(qs=r)},Js.useConfig=function(){return{componentDisabled:g.useContext(Bs),componentSize:g.useContext(Ds)}},Object.defineProperty(Js,"SizeContext",{get:()=>Ds});const tc=({className:e,style:t,percent:n})=>g.createElement("progress",{className:e,max:"100",value:n,style:t});function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nc.apply(this,arguments)}const rc=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,classNames:i,styles:a,components:l,title:s,description:c,icon:u,actions:d,role:h,closable:p,offset:f,notificationIndex:m,stackInThreshold:y,props:v,duration:b=4.5,showProgress:x,hovering:w,pauseOnHover:C=!0,onClick:k,onMouseEnter:S,onMouseLeave:E,onClose:$}=e,[T,P]=g.useState(0),M=`${n}-notice`,[O,N,A]=function(e){const t=g.useMemo(()=>!1===e?{closeIcon:null,disabled:!0}:"object"==typeof e&&null!==e?e:{},[e]),n=g.useMemo(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"×",disabled:t.disabled??!1}),[t]),r=g.useMemo(()=>ct(n,!0),[n]);return[!!e,n,r]}(p),I=V(()=>{var e;null==(e=N.onClose)||e.call(N),null==$||$()}),[R,L]=g.useState(!1),[B,z]=function(e,t,n){const r="number"==typeof e?e:0,o=1e3*Math.max(r,0),i=V(t),a=V(n),[l,s]=g.useState(o>0),c=g.useRef(0),u=g.useRef(null);function d(){const e=Date.now(),t=u.current;null!==t&&(c.current+=e-t),u.current=e}const h=g.useCallback(()=>{d(),s(!1)},[]),p=g.useCallback(()=>{o>0?(u.current=Date.now(),s(!0)):a(0)},[o]);return g.useEffect(()=>{c.current=0,s(o>0)},[o]),g.useEffect(()=>{if(!l)return;let e=null;return function t(){d(),c.current>=o?(a(1),i()):(a(Math.min(c.current/o,1)),e=mt(t))}(),()=>{mt.cancel(e)}},[o,l]),[p,h]}(b,I,P),D=100-Math.min(Math.max(100*T,0),100),j=(null==l?void 0:l.progress)||tc;g.useEffect(()=>{C&&(w?z():R||B())},[w,R,z,B,C]);const _=g.useRef(f);void 0!==f&&(_.current=f);const F=g.useRef(m);void 0!==m&&(F.current=m);const H=f??_.current,W=m??F.current??0,K=null!=s?g.createElement("div",{className:Kt(`${M}-title`,null==i?void 0:i.title),style:null==a?void 0:a.title},s):null,U=null!=c?g.createElement("div",{className:Kt(`${M}-description`,null==i?void 0:i.description),style:null==a?void 0:a.description},c):null;let q=null;q=null!==K&&null!==U?g.createElement("div",{className:Kt(`${M}-section`,null==i?void 0:i.section),style:null==a?void 0:a.section},K,U):K||U,null!=u&&(q=g.createElement("div",{className:Kt(`${M}-wrapper`,null==i?void 0:i.wrapper),style:null==a?void 0:a.wrapper},g.createElement("div",{className:Kt(`${M}-icon`,null==i?void 0:i.icon),style:null==a?void 0:a.icon},u),q));const G=d?g.createElement("div",{className:Kt(`${M}-actions`,null==i?void 0:i.actions),style:null==a?void 0:a.actions},d):null,X={"--notification-index":W,...null==a?void 0:a.root,...o};void 0!==H&&(X["--notification-y"]=`${H}px`);const Y=h??(null==v?void 0:v.role)??"alert";return g.createElement("div",nc({},v,{ref:t,role:Y,"data-notification-index":W,className:Kt(M,r,null==i?void 0:i.root,{[`${M}-closable`]:O,[`${M}-stack-in-threshold`]:y}),style:X,onClick:k,onMouseEnter:function(e){L(!0),C&&z(),null==S||S(e)},onMouseLeave:function(e){L(!1),C&&!w&&B(),null==E||E(e)}}),q,G,O&&g.createElement("button",nc({className:Kt(`${M}-close`,null==i?void 0:i.close),"aria-label":"Close"},A,{style:null==a?void 0:a.close,onClick:function(e){e.preventDefault(),e.stopPropagation(),I()}}),N.closeIcon),x&&"number"==typeof b&&b>0&&g.createElement(j,{className:Kt(`${M}-progress`,null==i?void 0:i.progress),percent:D,style:null==a?void 0:a.progress}))}),oc=g.createContext({}),ic=({children:e,classNames:t})=>{const n=g.useMemo(()=>({classNames:t}),[t]);return g.createElement(oc.Provider,{value:n},e)};function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ac.apply(this,arguments)}const lc=g.forwardRef((e,t)=>{const{listPrefixCls:n,height:r,topNoticeHeight:o=0,topNoticeWidth:i=0,className:a,style:l,...s}=e,c=`${n}-content`,u=g.useRef(r),d=r<u.current?"decrease":"increase";u.current=r;const h={...l,height:r,"--top-notificiation-height":`${o}px`,"--top-notificiation-width":`${i}px`};return g.createElement("div",ac({},s,{className:Kt(c,`${c}-${d}`,a),style:h,ref:t}))});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)}const cc=["wrapper","root","icon","section","title","description","actions","close","progress"];const uc=e=>{const{config:t,components:n,contextClassNames:r,classNames:o,styles:i,className:a,style:l,nodeRef:s,listHovering:c,stackEnabled:u,pauseOnHover:d,setNodeSize:h,onNoticeClose:p,...f}=e,{key:m,placement:y,...v}=t,b=String(m),x=g.useCallback(e=>{h(b,e)},[h,b]),w=fe(s,x);return g.createElement(rc,sc({},v,f,{ref:w,className:Kt(null==r?void 0:r.notice,t.className,a),style:{...l,...t.style},classNames:(k=[o,t.classNames],cc.reduce((e,t)=>(e[t]=Kt(...k.map(e=>null==e?void 0:e[t])),e),{})),styles:(C=[i,t.styles],cc.reduce((e,t)=>(e[t]=Object.assign({},...C.map(e=>null==e?void 0:e[t])),e),{})),components:{...n,...t.components},hovering:u&&c,pauseOnHover:t.pauseOnHover??d,onClose:()=>{var e;null==(e=t.onClose)||e.call(t),null==p||p(m)}}));var C,k},dc=e=>{const{configList:t=[],prefixCls:n="rc-notification",pauseOnHover:r,classNames:o,styles:i,components:a,stack:l,motion:s,placement:c,className:u,style:d,onNoticeClose:h,onAllRemoved:p}=e,{classNames:f}=g.useContext(oc),m=g.useMemo(()=>t.map(e=>({config:e,key:String(e.key)})),[t]),y="function"==typeof s?s(c):s,[v,{offset:b,threshold:x}]=(e=>{const t={offset:8,threshold:3};return e&&"object"==typeof e&&(t.offset=e.offset??8,t.threshold=e.threshold??3),[!!e,t]})(l),[w,C]=g.useState(!1),k=v&&(w||m.length<=x),S=g.useMemo(()=>{if(v&&!k)return{offset:b,threshold:x}},[k,b,v,x]),[E,$]=g.useState(0),T=g.useRef(null),[P,M,O,N,A]=ec(t,S,E),I=!!t.length;g.useEffect(()=>{const e=T.current;if(!e)return;const{gap:t,rowGap:n}=window.getComputedStyle(e),r=parseFloat(n||t)||0;$(e=>e===r?e:r)},[I]);const R=`${n}-list`;return g.createElement("div",{className:Kt(n,R,`${n}-${c}`,null==f?void 0:f.list,u,null==o?void 0:o.list,{[`${n}-stack`]:v,[`${n}-stack-expanded`]:k,[`${R}-hovered`]:w}),onMouseEnter:()=>{C(!0)},onMouseLeave:()=>{C(!1)},style:{...null==i?void 0:i.list,...d}},g.createElement(lc,{listPrefixCls:R,height:O,topNoticeHeight:N,topNoticeWidth:A,className:null==o?void 0:o.listContent,style:null==i?void 0:i.listContent,ref:T},g.createElement(Va,sc({component:!1,keys:m,motionAppear:!0},y,{onAllRemoved:()=>{c&&(null==p||p(c))}}),({config:e,className:t,style:l},s)=>{const{key:c}=e,u=String(c),d=function(e,t){const n=String(t),r=e.findIndex(e=>e.key===n);if(-1!==r)return e.length-r-1}(m,c),p=v&&void 0!==d&&d<x;return g.createElement(uc,{key:c,config:e,components:a,contextClassNames:f,classNames:o,styles:i,className:t,style:l,nodeRef:s,prefixCls:n,offset:P.get(u),notificationIndex:d,stackInThreshold:p,listHovering:w,stackEnabled:v,pauseOnHover:r,setNodeSize:M,onNoticeClose:h})})))},hc=g.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:o,maxCount:i,pauseOnHover:a,classNames:l,styles:s,components:c,className:u,style:d,onAllRemoved:h,stack:p,renderNotifications:f}=e,[m,y]=g.useState([]),[v,b]=g.useState({}),x=g.useRef(!1);g.useImperativeHandle(t,()=>({open:e=>{y(t=>{var n;let r=[...t];const o=r.findIndex(t=>t.key===e.key),a={...e};return o>=0?(a.times=((null==(n=t[o])?void 0:n.times)??0)+1,r[o]=a):(a.times=0,r.push(a)),i&&i>0&&r.length>i&&(r=r.slice(-i)),r})},close:e=>{y(t=>t.filter(t=>t.key!==e))},destroy:()=>{y([])}})),g.useEffect(()=>{const e={};m.forEach(t=>{const n=t.placement??"topRight";e[n]=e[n]||[],e[n].push(t)}),Object.keys(v).forEach(t=>{e[t]=e[t]||[]}),b(e)},[m]);const w=V(e=>{b(t=>{const n={...t};return(n[e]||[]).length||delete n[e],n})});if(g.useEffect(()=>{Object.keys(v).length>0?x.current=!0:x.current&&(null==h||h(),x.current=!1)},[v,h]),!r)return null;const C=Object.keys(v);return Pt.createPortal(g.createElement(g.Fragment,null,C.map(e=>{const t=g.createElement(dc,{key:e,configList:v[e],placement:e,prefixCls:n,pauseOnHover:a,classNames:l,styles:s,components:c,className:null==u?void 0:u(e),style:null==d?void 0:d(e),motion:o,stack:p,onNoticeClose:e=>{y(t=>t.filter(t=>t.key!==e))},onAllRemoved:w});return f?g.cloneElement(f(t,{prefixCls:n,key:e}),{key:e}):t})),r)}),pc=()=>document.body;let fc=0;function mc(e={}){const{getContainer:t=pc,motion:n,prefixCls:r,placement:o,closable:i,duration:a,showProgress:l,pauseOnHover:s,classNames:c,styles:u,components:d,maxCount:h,className:p,style:f,onAllRemoved:m,stack:y,renderNotifications:v}=e,b={placement:o,closable:i,duration:a,showProgress:l},[x,w]=g.useState(),C=g.useRef(null),[k,S]=g.useState([]),E=g.createElement(hc,{container:x,ref:C,prefixCls:r,motion:n,maxCount:h,pauseOnHover:s,classNames:c,styles:u,components:d,className:p,style:f,onAllRemoved:m,stack:y,renderNotifications:v}),$=V(e=>{const t=function(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{const r=e[n];void 0!==r&&(t[n]=r)})}),t}(b,e);null!==t.key&&void 0!==t.key||(t.key=`rc-notification-${fc}`,fc+=1),S(e=>[...e,{type:"open",config:t}])}),T=g.useMemo(()=>({open:$,close:e=>{S(t=>[...t,{type:"close",key:e}])},destroy:()=>{S(e=>[...e,{type:"destroy"}])}}),[]);return g.useEffect(()=>{w(t())}),g.useEffect(()=>{C.current&&k.length&&(k.forEach(e=>{var t,n,r;switch(e.type){case"open":null==(t=C.current)||t.open(e.config);break;case"close":null==(n=C.current)||n.close(e.key);break;case"destroy":null==(r=C.current)||r.destroy()}}),S(e=>{const t=e.filter(e=>!k.includes(e));return t.length===e.length?e:t}))},[k]),[T,E]}var gc={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 yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yc.apply(this,arguments)}const vc=(e,t)=>g.createElement(ji,yc({},e,{ref:t,icon:gc})),bc=g.forwardRef(vc);function xc(...e){return e.find(e=>void 0!==e)}const wc=e=>{const{allowClear:t,clearIcon:n,contextAllowClear:r,contextClearIcon:o,defaultAllowClear:i,componentName:a}=e;return g.useMemo(()=>!!(t??r??i)&&{clearIcon:xc(Xa(t)?null==t?void 0:t.clearIcon:n,Xa(r)?null==r?void 0:r.clearIcon:o,y.createElement(Ui,null)),disabled:(Xa(t)?null==t?void 0:t.disabled:void 0)??(Xa(r)?null==r?void 0:r.disabled:void 0)},[t,n,r,o,i])},Cc=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},kc={},Sc=(e,t)=>{if(!e&&(!1===e||!1===t||null===t))return!1;if(!Ua(e)&&!Ua(t))return null;let n={closeIcon:"boolean"!=typeof t&&Ua(t)?t:void 0};return Xa(e)&&(n={...n,...e}),n},Ec=(e,t,n=kc,r="Close")=>{const o=Sc(null==e?void 0:e.closable,null==e?void 0:e.closeIcon),i=Sc(null==t?void 0:t.closable,null==t?void 0:t.closeIcon),a={closeIcon:y.createElement(Yi,null),...n},l=((e,t,n)=>!1!==e&&(e?yt(n,t,e):!1!==t&&(t?yt(n,t):!!n.closable&&n)))(o,i,a),s="boolean"!=typeof l&&!!(null==l?void 0:l.disabled);if(!1===l)return[!1,null,s,{}];const[c,u]=((e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:o,...i}=e;let a=o;const l=ct(i,!0);return Ua(a)&&(r&&(a=r(a)),a=y.isValidElement(a)?y.cloneElement(a,{"aria-label":n,...a.props,...l}):y.createElement("span",{"aria-label":n,...l},a)),[a,l]})(l,a,r);return[!0,c,s,u]},$c=(e,t,n=kc)=>{const[r]=Fl("global",Ll.global);return y.useMemo(()=>Ec(e,t,{closeIcon:y.createElement(Yi,null),...n},r.close),[e,t,n,r.close])},Tc=()=>y.useReducer(e=>e+1,0),Pc=(e,t)=>{let n={};return Xa(e)&&(n=e),"boolean"==typeof e&&(n={enabled:e}),void 0===n.closable&&void 0!==t&&(n.closable=t),n},Mc=e=>"horizontal"===e||"vertical"===e,Oc=(e,t,n)=>g.useMemo(()=>{let r;if(Mc(e))r=e;else if("boolean"==typeof t)r=t?"vertical":"horizontal";else{r=Mc(n)?n:"horizontal"}return[r,"vertical"===r]},[n,e,t]),Nc=(e,t)=>g.useImperativeHandle(e,()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=n)._antProxy=r._antProxy||{},Object.keys(o).forEach(e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}}),r);var r,o}),Ac=y.createContext(void 0),Ic=100,Rc=1e3,Lc={Modal:Ic,Drawer:Ic,Popover:Ic,Popconfirm:Ic,Tooltip:Ic,Tour:Ic,FloatButton:Ic},Bc={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},zc=(e,t)=>{const[,n]=gi(),r=y.useContext(Ac),o=e in Lc;let i;if(void 0!==t)i=[t,t];else{let a=r??0;a+=o?(r?0:n.zIndexPopupBase)+Lc[e]:Bc[e],i=[void 0===r?t:a,a]}return i},Dc=e=>{const{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(", ")}},jc=(e,t)=>{const{componentCls:n,antCls:r,colorSuccess:o,colorInfo:i,colorWarning:a,colorError:l,colorTextHeading:s,colorText:c,boxShadow:u,borderRadiusLG:d,fontSize:h,lineHeight:p,notificationBg:f,notificationPadding:m,notificationMarginEdge:g,margin:y,calc:v}=e,b=`${n}-notice`,[x,w]=$i(r,"notification");return{[b]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${wn(v(g).mul(2).equal())})`,padding:m,pointerEvents:"auto",[x("icon-font-size")]:t.iconFontSize,[x("title-font-size")]:t.titleFontSize,[x("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:c,background:f,borderRadius:d,boxShadow:u,fontSize:h,lineHeight:p,wordWrap:"break-word",overflow:"visible",...Dc(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:v(y).mul(-1).equal(),height:y,content:'""'},...t.typeStyle&&{"&-success":{background:w("color-success-bg",f)},"&-error":{background:w("color-error-bg",f)},"&-info":{background:w("color-info-bg",f)},"&-warning":{background:w("color-warning-bg",f)}}},[`${b}-wrapper`]:{display:"flex",...t.contentStyle},[`${b}-title`]:{color:s,fontSize:w("title-font-size"),lineHeight:w("title-line-height")},[`${b}-icon`]:{flex:"none",fontSize:w("icon-font-size"),lineHeight:1,[`&${b}-icon-success`]:{color:o},[`&${b}-icon-info, &${b}-icon-loading`]:{color:i},[`&${b}-icon-warning`]:{color:a},[`&${b}-icon-error`]:{color:l}}}},_c=e=>{const{componentCls:t,progressBg:n,notificationProgressHeight:r,fontSize:o,borderRadiusLG:i,width:a,notificationIconSize:l,colorText:s,motionDurationMid:c,fontSizeLG:u,lineHeightLG:d,marginSM:h,marginXS:p,paddingLG:f,notificationPaddingVertical:m,notificationPaddingHorizontal:g,notificationCloseButtonSize:y,colorIcon:v,borderRadiusSM:b,colorIconHover:x,colorBgTextHover:w,colorBgTextActive:C}=e,k=`${t}-notice`;return{...jc(e,{width:a,iconFontSize:l,titleFontSize:u,titleLineHeight:d,contentStyle:{alignItems:"flex-start",gap:h},typeStyle:!0}),[`${k}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:p,minWidth:0},[`${k}-description`]:{color:s,fontSize:o},[`${k}-closable ${k}-title`]:{paddingInlineEnd:f},[`${k}-close`]:{position:"absolute",top:m,insetInlineEnd:g,display:"flex",alignItems:"center",justifyContent:"center",width:y,height:y,color:v,background:"none",border:"none",borderRadius:b,outline:"none",transition:["color","background-color"].map(e=>`${e} ${c}`).join(", "),"&:hover":{color:x,backgroundColor:w},"&:active":{backgroundColor:C},...xi(e)},[`${k}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${wn(i)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:i,background:n}},[`${k}-actions`]:{float:"right",marginTop:h}}},Fc=e=>{const{componentCls:t}=e;return{[t]:_c(e)}},Hc=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Wc=e=>`translate3d(${(null==e?void 0:e.x)??"0"}, ${(null==e?void 0:e.y)??"0"}, 0) scale(var(--notification-scale, 1))`,Kc=(e,t)=>{const n=e.startsWith("bottom")?"bottom":"top",r=e.endsWith("Right")?"right":"left",{blockEnd:o,inlineEnd:i}=((e,t)=>({blockEnd:"top"===e?"bottom":"top",inlineEnd:"left"===t?"right":"left"}))(n,r),a="top"===e||"bottom"===e,l="top"===e||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:n,blockEnd:o,horizontal:r,inlineEnd:i,motionOffset:a?{x:"-50%",y:l}:{x:l},baseMotionOffset:a?{x:"-50%"}:void 0,isCenterPlacement:a}},Vc=e=>"bottom"===e?"column-reverse":"column",Uc=e=>{const t="var(--notification-margin-edge, 0px)";return`calc(var(--notification-${e}, ${t}) - ${t})`},qc=e=>wn(e.calc(e.marginXXL).mul(-1).equal()),Gc=e=>{const t=qc(e);return`inset(${t} ${t} ${t} ${t})`},Xc=(e,t)=>{const n=qc(e);return"bottom"===t?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},Yc=(e,t)=>{const{componentCls:n}=e,{placement:r,vertical:o,blockEnd:i,horizontal:a,inlineEnd:l,isCenterPlacement:s}=t,c=`${n}-notice`,u=`${c}${n}-fade`,d=Wc(t.motionOffset),h=Wc(t.baseMotionOffset),p=(e=>"bottom"===e?"center top":"center bottom")(o);return{[`&${n}-${r}`]:{[o]:Uc(o),[i]:"auto",display:"flex",flexDirection:Vc(o),...s?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[a]:0,[l]:"auto"},[c]:{[o]:"var(--notification-y, 0)",...s?{left:"50%",transform:h}:{[a]:"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:h},[`${u}-leave-start`]:{opacity:1,transform:h},[`${u}-leave-active`]:{opacity:0,transform:d},[`&${n}-stack:not(${n}-stack-expanded)`]:{[c]:{clipPath:Xc(e,o)},[`${c}[data-notification-index='0']`]:{clipPath:Gc(e)}}}}},Zc=(e,t=Hc)=>{const{notificationMotionOffset:n}=e,r=wn(n);return{...t.reduce((t,n)=>({...t,...Yc(e,Kc(n,r))}),{})}},Qc=e=>{const{componentCls:t}=e;return{[t]:Zc(e)}},Jc=e=>({zIndexPopup:e.zIndexPopupBase+Rc+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),eu=e=>{const t=e.paddingMD,n=e.paddingLG;return fo(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:`${wn(e.paddingMD)} ${wn(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},tu=e=>{const{componentCls:t,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:o}=e,i=`${`${t}-list`}-content`;return{[i]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${i}-decrease`]:{transition:`height calc(${r} * 2) ${o} ${n}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},nu=(e,t)=>{const{componentCls:n,notificationMarginEdge:r}=e,o="--notification-margin-edge",i=`${n}-notice`,a=`${n}-list`,l=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(r).mul(2)).equal():"100%",s=`${i}:nth-last-child(n + ${(t.stackVisibleCount??3)+1})`,c=wn(e.calc(e.marginXXL).mul(-1).equal()),u=`inset(${d=c} ${d} ${d} ${d})`;var d;return{[n]:{...vi(e),[o]:wn(r),position:"fixed",zIndex:e.zIndexPopup,width:l,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${n}-hook-holder`]:{position:"relative"},[`&${a}`]:{maxHeight:"100vh",padding:`var(${o})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...tu(e),[`&${n}-stack`]:{[i]:{clipPath:u},[`&:not(${n}-stack-expanded)`]:{[i]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${i}:not(${i}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[s]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}}}};Ei(["Notification","PurePanel"],e=>(e=>{const{componentCls:t,width:n}=e,r=`${t}-notice`,o=`${r}-actions`,i=_c(e);return{[`${r}-pure-panel`]:{width:n,maxWidth:"100%",...i,[r]:{...i[r],position:"relative",width:"100%",maxWidth:"100%"},[o]:{...i[o],float:"none",textAlign:"end"}}}})(eu(e)),Jc);const ru=(e,t)=>{const n=t.itemStyle??Fc;return[nu(e,t),n(e),Qc(e)]};ki("Notification",e=>{const t=eu(e);return ru(t,{listWidthKey:"width"})},Jc);const ou=e=>{const t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),n=e.paddingSM;return fo(eu(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:n})},iu=e=>({zIndexPopup:e.zIndexPopupBase+Rc+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),au=e=>{const{fontSize:t,fontSizeLG:n,lineHeight:r}=e;return jc(e,{width:"max-content",iconFontSize:n,titleFontSize:t,titleLineHeight:r,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},lu=e=>{const{componentCls:t}=e,n=`${t}-notice`,r=`${t}-list-content`,o=au(e),{"&::after":i,...a}=o[n],l={...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":{...l,top:`calc(var(--top-notificiation-height) - ${wn(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${wn(e.margin)})`},"&::after":{...l,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${wn(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},su=Ei(["Message","PurePanel"],e=>(e=>{const{componentCls:t}=e,n=`${t}-notice`,r=au(e);return{[`${n}-pure-panel`]:{width:"max-content",maxWidth:"100%",...r,[n]:{...r[n],position:"relative",width:"max-content",maxWidth:"100%"}}}})(ou(e)),iu),cu=e=>({[e.componentCls]:au(e)}),uu=ki("Message",e=>{const t=ou(e);return[ru(t,{stackVisibleCount:1,itemStyle:cu}),lu(t)]},iu),du={info:g.createElement(oa,null),success:g.createElement(Hi,null),error:g.createElement(Ui,null),warning:g.createElement(ea,null),loading:g.createElement(bc,null)},hu=(e,t)=>t||e&&du[e]||null;function pu(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}const fu=3,mu=({children:e,prefixCls:t})=>{const n=El(t),[r,o]=uu(t,n);return g.createElement(ic,{classNames:{list:Kt(r,o,n)}},e)},gu=(e,{prefixCls:t,key:n})=>g.createElement(mu,{prefixCls:t,key:n},e),yu=g.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=fu,rtl:l,classNames:s,styles:c,transitionName:u,pauseOnHover:d=!0,stack:h,onAllRemoved:p}=e,{getPrefixCls:f,direction:m,getPopupContainer:y}=en("message"),{message:v}=g.useContext(Zt),b=r||f("message"),[x,w]=il([null==v?void 0:v.classNames,s],[null==v?void 0:v.styles,c],{props:e}),C=((e,t)=>g.useMemo(()=>{const n=e??t;return!!n&&{...Xa(t)?t:{},...Xa(n)?n:{}}},[e,t]))(h,false),[k,S]=mc({prefixCls:b,style:()=>function(e,t){return{...Ua(e)&&{"--notification-top":wn(e)},...Ua(t)&&{"--notification-bottom":wn(t)}}}(n??8),className:()=>Kt({[`${b}-rtl`]:l??"rtl"===m}),motion:()=>function(e,t){return{motionName:t??`${e}-fade`}}(b,u),closable:!1,duration:a,getContainer:()=>(null==o?void 0:o())||(null==y?void 0:y())||document.body,maxCount:i,onAllRemoved:p,classNames:x,styles:w,renderNotifications:gu,pauseOnHover:d,stack:C});return g.useImperativeHandle(t,()=>({...k,prefixCls:b,message:v})),S});let vu=0;function bu(e){const t=g.useRef(null);Nt();return[g.useMemo(()=>{const n=e=>{var n;null==(n=t.current)||n.close(e)},r=r=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:a}=t.current,l=(null==a?void 0:a.className)||{},s=(null==a?void 0:a.style)||{},c=`${i}-notice`,{content:u,icon:d,type:h,key:p,className:f,style:m,onClose:g,classNames:y={},styles:v={},...b}=r;let x=p;Ua(x)||(vu+=1,x=`antd-message-${vu}`);const w={...e,...r},C=ol(y,{props:w}),k=ol(v,{props:w}),S=hu(h,d),E=h?`${c}-icon-${h}`:void 0;return pu(e=>(o({...b,key:x,icon:S,title:u,classNames:{...C,wrapper:Kt(h&&`${i}-${h}`,C.wrapper),icon:Kt(E,C.icon)},styles:k,placement:"top",className:Kt({[`${c}-${h}`]:h},f,l),style:{...s,...m},onClose:()=>{null==g||g(),e()}}),()=>{n(x)}))},o={open:r,destroy:e=>{var r;void 0!==e?n(e):null==(r=t.current)||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{o[e]=(t,n,o)=>{let i,a,l;i=Xa(t)&&"content"in t?t:{content:t},Ya(n)?l=n:(a=n,l=o);const s={onClose:l,duration:a,...i,type:e};return r(s)}}),o},[]),g.createElement(yu,{key:"message-holder",...e,ref:t})]}const xu=()=>({height:0,opacity:0}),wu=e=>({height:(null==e?void 0:e.scrollHeight)??0,opacity:e?1:0}),Cu=e=>({height:(null==e?void 0:e.offsetHeight)??0}),ku=(e,t)=>!0===(null==t?void 0:t.deadline)||Qa(t)&&"height"===t.propertyName,Su=(e=Gt)=>({motionName:`${e}-motion-collapse`,onAppearStart:xu,onEnterStart:xu,onAppearActive:wu,onEnterActive:wu,onLeaveStart:Cu,onLeaveActive:xu,onAppearEnd:ku,onEnterEnd:ku,onLeaveEnd:ku,motionDeadline:500}),Eu=(e,t,n)=>void 0!==n?n:`${e}-${t}`,$u=Si("Wave",e=>{const{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:o,motionEaseOutCirc:i,antCls:a}=e,[,l]=$i(a,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:l("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(e=>`${e} ${i}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(e=>`${e} ${r} ${o}`).join(",")}}}}}),Tu=`${Gt}-wave-target`,Pu=e=>!!e&&(Ga(e)&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/i.test(e)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(e)&&"transparent"!==e&&"canvastext"!==e);function Mu(e){return Number.isNaN(e)?0:e}const Ou=e=>{const{className:t,target:n,component:r,colorSource:o}=e,i=g.useRef(null),{getPrefixCls:a}=g.useContext(Zt),l=a(),[s]=$i(l,"wave"),[c,u]=g.useState(null),[d,h]=g.useState([]),[p,f]=g.useState(0),[m,y]=g.useState(0),[v,b]=g.useState(0),[x,w]=g.useState(0),[C,k]=g.useState(!1),S={left:p,top:m,width:v,height:x,borderRadius:d.map(e=>`${e}px`).join(" ")};function E(){const e=getComputedStyle(n);u(function(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:o,backgroundColor:i}=n;return t&&Pu(n[t])?n[t]:[r,o,i].find(Pu)??null}(n,o));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:i}=e;f(t?n.offsetLeft:Mu(-Number.parseFloat(r))),y(t?n.offsetTop:Mu(-Number.parseFloat(i))),b(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c}=e;h([a,l,c,s].map(e=>Mu(Number.parseFloat(e))))}if(c&&(S[s("color")]=c),g.useEffect(()=>{if(n){const e=mt(()=>{E(),k(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(E),t.observe(n)),()=>{mt.cancel(e),null==t||t.disconnect()}}},[n]),!C)return null;const $=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(Tu));return g.createElement(Ba,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||Qa(t)&&"opacity"===t.propertyName){const e=null==(n=i.current)?void 0:n.parentElement;Tt(e).then(()=>{null==e||e.remove()})}return!1}},({className:e},n)=>g.createElement("div",{ref:pe(i,n),className:Kt(t,e,{"wave-quick":$}),style:S}))},Nu=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null==(n=e.querySelector("input"))?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),$t(g.createElement(Ou,{...t,target:e}),o)},Au=(e,t,n,r)=>{const{wave:o}=g.useContext(Zt),[,i,a]=gi(),l=V(l=>{const s=e.current;if((null==o?void 0:o.disabled)||!s)return;const c=s.querySelector(`.${Tu}`)||s,{showEffect:u}=o||{};(u||Nu)(c,{className:t,token:i,component:n,event:l,hashId:a,colorSource:r})}),s=g.useRef(null);g.useEffect(()=>()=>{mt.cancel(s.current)},[]);return e=>{mt.cancel(s.current),s.current=mt(()=>{l(e)})}},Iu={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},Ru=e=>{const{children:t,disabled:n,component:r,colorSource:o}=e,{getPrefixCls:i,wave:a}=g.useContext(Zt),l=g.useRef(null),s=i("wave"),c=$u(s),u=Au(l,Kt(s,c),r,o);if(y.useEffect(()=>{const e=l.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!Ae(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||u(t)},r=null==a?void 0:a.triggerType,o=r&&r in Iu?Iu[r]:"click";return e.addEventListener(o,t,!0),()=>{e.removeEventListener(o,t,!0)}},[n,null==a?void 0:a.triggerType]),!y.isValidElement(t))return t??null;return As(t,{ref:me(t)?pe(ve(t),l):l})},Lu=e=>{const t=y.useContext(Ds);return y.useMemo(()=>e?Ga(e)?e??t:Ya(e)?e(t):t:t,[e,t])},Bu=ki(["Space","Compact"],e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},()=>({}),{resetStyle:!1}),zu=g.createContext(null),Du=(e,t)=>{const n=g.useContext(zu),r=g.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return Kt(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},ju=e=>{const{children:t}=e;return g.createElement(zu.Provider,{value:null},t)},_u=e=>{const{children:t,...n}=e;return g.createElement(zu.Provider,{value:g.useMemo(()=>n,[n])},t)},Fu=e=>{const{getPrefixCls:t,direction:n}=g.useContext(Zt),{size:r,direction:o,orientation:i,block:a,prefixCls:l,className:s,rootClassName:c,children:u,vertical:d,...h}=e,[p,f]=Oc(i,d,o),m=Lu(e=>r??e),y=t("space-compact",l),[v]=Bu(y),b=Kt(y,v,{[`${y}-rtl`]:"rtl"===n,[`${y}-block`]:a,[`${y}-vertical`]:f},s,c),x=g.useContext(zu),w=gt(u),C=g.useMemo(()=>w.map((e,t)=>{const n=(null==e?void 0:e.key)||`${y}-item-${t}`;return g.createElement(_u,{key:n,compactSize:m,compactDirection:p,isFirstItem:0===t&&(!x||(null==x?void 0:x.isFirstItem)),isLastItem:t===w.length-1&&(!x||(null==x?void 0:x.isLastItem))},e)}),[w,x,p,m,y]);return 0===w.length?null:g.createElement("div",{className:b,...h},C)},Hu=g.createContext(void 0),Wu=/^[\u4E00-\u9FA5]{2}$/,Ku=Wu.test.bind(Wu);function Vu(e){return"danger"===e?{danger:!0}:{type:e}}function Uu(e){return"text"===e||"link"===e}function qu(e,t,n,r){let o=!1;const i=[];return y.Children.forEach(e,e=>{const t=Ga(e)||qa(e);if(o&&t){const t=i.length-1,n=i[t];i[t]=`${n}${e}`}else i.push(e);o=t}),y.Children.map(i,e=>function(e,t,n,r){if(!Ua(e)||""===e)return;const o=t?" ":"";return!Ga(e)&&!qa(e)&&Ga(e.type)&&Ku(e.props.children)?As(e,e=>{const t=Kt(e.className,r)||void 0,i={...n,...e.style};return{...e,children:e.children.split("").join(o),className:t,style:i}}):Ga(e)?y.createElement("span",{className:r,style:n},Ku(e)?e.split("").join(o):e):Os(e)?y.createElement("span",{className:r,style:n},e):As(e,e=>({...e,className:Kt(e.className,r)||void 0,style:{...e.style,...n}}))}(e,t,n,r))}["default","primary","danger"].concat(qt(xo));const Gu=g.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=Kt(`${i}-icon`,n);return y.createElement("span",{ref:t,className:a,style:r},o)}),Xu=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=Kt(`${n}-loading-icon`,r);return y.createElement(Gu,{prefixCls:n,className:a,style:o,ref:t},y.createElement(bc,{className:i}))}),Yu=()=>({width:0,opacity:0,transform:"scale(0)"}),Zu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Qu=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,l=!!n;return r?y.createElement(Xu,{prefixCls:t,className:o,style:i}):y.createElement(Ba,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Yu,onAppearActive:Zu,onEnterStart:Yu,onEnterActive:Zu,onLeaveStart:Zu,onLeaveActive:Yu},({className:e,style:n},r)=>{const a={...i,...n};return y.createElement(Xu,{prefixCls:t,className:Kt(o,e),style:a,ref:r})})},Ju=e=>{const{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:o}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(e=>`${e} ${r} ${o}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(e=>`${e} ${r} ${o}`).join(", ")} !important`}}}},ed=e=>({animationDuration:e,animationFillMode:"both"}),td=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:{...ed(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...ed(r),animationPlayState:"paused"},[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},nd=new Fr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),rd=new Fr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),od=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[td(r,nd,rd,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},id=new Fr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ad=new Fr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ld=new Fr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sd=new Fr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),cd=new Fr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ud=new Fr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),dd={"move-up":{inKeyframes:new Fr("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 Fr("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:id,outKeyframes:ad},"move-left":{inKeyframes:ld,outKeyframes:sd},"move-right":{inKeyframes:cd,outKeyframes:ud}},hd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=dd[t];return[td(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},pd=new Fr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),fd=new Fr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),md=new Fr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),gd=new Fr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),yd=new Fr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),vd=new Fr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bd=new Fr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xd=new Fr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),wd={"slide-up":{inKeyframes:pd,outKeyframes:fd},"slide-down":{inKeyframes:md,outKeyframes:gd},"slide-left":{inKeyframes:yd,outKeyframes:vd},"slide-right":{inKeyframes:bd,outKeyframes:xd}},Cd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=wd[t];return[td(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},kd=new Fr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sd=new Fr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Ed=new Fr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$d=new Fr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Td=new Fr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Pd=new Fr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Md=new Fr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Od=new Fr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Nd=new Fr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ad=new Fr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Id=new Fr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Rd=new Fr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Ld={zoom:{inKeyframes:kd,outKeyframes:Sd},"zoom-big":{inKeyframes:Ed,outKeyframes:$d},"zoom-big-fast":{inKeyframes:Ed,outKeyframes:$d},"zoom-left":{inKeyframes:Md,outKeyframes:Od},"zoom-right":{inKeyframes:Nd,outKeyframes:Ad},"zoom-up":{inKeyframes:Td,outKeyframes:Pd},"zoom-down":{inKeyframes:Id,outKeyframes:Rd}},Bd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Ld[t];return[td(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},zd=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Dd=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},zd(`${t}-primary`,o),zd(`${t}-danger`,i)]}},jd=e=>Math.round(Number(e||0));class _d extends Mo{constructor(e){super((e=>{if(e instanceof Mo)return e;if(e&&"object"==typeof e&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e})(e))}toHsbString(){const e=this.toHsb(),t=jd(100*e.s),n=jd(100*e.b),r=jd(e.h),o=e.a,i=`hsb(${r}, ${t}%, ${n}%)`,a=`hsba(${r}, ${t}%, ${n}%, ${o.toFixed(0===o?0:2)})`;return 1===o?i:a}toHsb(){const{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}}var Fd;(Fd="#1677ff")instanceof _d||new _d(Fd);let Hd=function(){return Yr(function e(t){var n;if(Xr(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null==(n=t.colors)?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new _d(this.colors[0].color.metaColor)):this.metaColor=new _d(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{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(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}();var Wd={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 Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kd.apply(this,arguments)}const Vd=(e,t)=>g.createElement(ji,Kd({},e,{ref:t,icon:Wd})),Ud=g.forwardRef(Vd);function qd(){return qd=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},qd.apply(null,arguments)}const Gd=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new _d(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},Xd=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return fo(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Yd=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,o=e.contentLineHeight??wo(t),i=e.contentLineHeightSM??wo(n),a=e.contentLineHeightLG??wo(r),l=Gd(new Hd(e.colorBgSolid),"#fff")?"#000":"#fff",s=xo.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${wn(e.controlOutlineWidth)} 0 ${di(e[`${n}1`],e.colorBgContainer)}`}),{}),c=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...s,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:l,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:o,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*o)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0),defaultBgDisabled:c,dashedBgDisabled:u}},Zd=e=>{const{componentCls:t,antCls:n,lineWidth:r}=e,[o,i]=$i(n,"btn");return{[t]:[{[o("border-width")]:r,[o("border-color")]:"#000",[o("border-color-hover")]:i("border-color"),[o("border-color-active")]:i("border-color"),[o("border-color-disabled")]:i("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color"),[o("text-color-disabled")]:i("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:i("bg-color"),[o("bg-color-active")]:i("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[i("border-width"),i("border-style"),i("border-color")].join(" "),color:i("text-color"),backgroundColor:i("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[i("border-width"),i("border-style"),i("border-color-hover")].join(" "),color:i("text-color-hover"),backgroundColor:i("bg-color-hover")},"&:active":{border:[i("border-width"),i("border-style"),i("border-color-active")].join(" "),color:i("text-color-active"),backgroundColor:i("bg-color-active")}}},{[`&${t}-variant-solid`]:{[o("solid-bg-color")]:i("color-base"),[o("solid-bg-color-hover")]:i("color-hover"),[o("solid-bg-color-active")]:i("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:i("solid-bg-color"),[o("bg-color-hover")]:i("solid-bg-color-hover"),[o("bg-color-active")]:i("solid-bg-color-active"),boxShadow:i("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("border-color")]:i("color-base"),[o("border-color-hover")]:i("color-hover"),[o("border-color-active")]:i("color-active"),[o("bg-color")]:i("bg-color-container"),[o("text-color")]:i("color-base"),[o("text-color-hover")]:i("color-hover"),[o("text-color-active")]:i("color-active"),boxShadow:i("shadow")},[`&${t}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:i("color-base"),[o("bg-color")]:i("color-light"),[o("bg-color-hover")]:i("color-light-hover"),[o("bg-color-active")]:i("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:i("color-base"),[o("text-color-hover")]:i("color-hover"),[o("text-color-active")]:i("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[o("bg-color-hover")]:i("color-light"),[o("bg-color-active")]:i("color-light-active")}},{[`&${t}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive,[o("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")}},[`&${t}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")}},[`&${t}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[o("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[o("text-color-hover")]:i("text-color"),[o("text-color-active")]:i("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},xo.map(n=>{const r=e[`${n}6`],i=e[`${n}1`],a=e[`${n}Hover`],l=e[`${n}2`],s=e[`${n}3`],c=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[o("color-base")]:r,[o("color-hover")]:a,[o("color-active")]:c,[o("color-light")]:i,[o("color-light-hover")]:l,[o("color-light-active")]:s,[o("shadow")]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:i("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[o("bg-color")]:e.ghostBg,[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg,[o("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[o("bg-color-hover")]:e.ghostBg,[o("bg-color-active")]:e.ghostBg}}}]}},Qd=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{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"}},[`${t}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"> a":{color:"currentColor"},"&:not(:disabled)":xi(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:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Jd=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),eh=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${wn(s)} ${wn(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:Jd(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},th=e=>{const t=fo(e,{fontSize:e.contentFontSize});return eh(t,e.componentCls)},nh=e=>{const t=fo(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return eh(t,`${e.componentCls}-sm`)},rh=e=>{const t=fo(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return eh(t,`${e.componentCls}-lg`)},oh=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},ih=ki("Button",e=>{const t=Xd(e);return[Qd(t),th(t),nh(t),rh(t),oh(t),Zd(t),Dd(t)]},Yd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ah(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,l=a?"> *":"",s=l?` ${l}`:"",c=e=>e.filter(Boolean).map(e=>`&:${e}${s}`).join(","),u=c(["hover",o?`hover${o}`:null]),d=c([i?"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},...o?{[`&${o}`]:{zIndex:3}}:{},[`&[disabled] ${l}`]:{zIndex:0}}}}function lh(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function sh(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return{[i]:{...ah(e,i,t,o),...lh(o,i,t)}}}function ch(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 uh(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...ch(e,t,e.componentCls),...(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}})}};var n,r}const dh=e=>{const{antCls:t,componentCls:n,lineWidth:r,calc:o,colorBgContainer:i}=e,a=`${n}-variant-solid:not([disabled])`,l=o(r).mul(-1).equal(),[s,c]=$i(t,"btn"),u=e=>{const t=`${n}-compact${e?"-vertical":""}-item`;return{[t]:{[s("compact-connect-border-color")]:c("bg-color-hover"),[`&${a}`]:{transition:"none",[`& + ${a}:before`]:[{position:"absolute",backgroundColor:c("compact-connect-border-color"),content:'""'},e?{top:l,insetInline:l,height:r}:{insetBlock:l,insetInlineStart:l,width:r}],"&:hover:before":{display:"none"}}}}};return[u(),u(!0),{[`${a}${n}-color-default`]:{[s("compact-connect-border-color")]:`color-mix(in srgb, ${c("bg-color-hover")} 75%, ${i})`}}]},hh=Ei(["Button","compact"],e=>{const t=Xd(e);return[sh(t),uh(t),dh(t)]},Yd);const ph={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},fh=y.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:o,color:i,variant:a,type:l,danger:s=!1,shape:c,size:u,disabled:d,className:h,rootClassName:p,children:f,icon:m,iconPosition:v,iconPlacement:b,ghost:x=!1,block:w=!1,htmlType:C="button",classNames:k,styles:S,style:E,autoInsertSpace:$,autoFocus:T,...P}=e,M=gt(f),O=l||"default",{getPrefixCls:N,direction:A,autoInsertSpace:I,className:R,style:L,classNames:B,styles:z,loadingIcon:D,shape:j,color:_,variant:F}=en("button"),H=c||j||"default",[W,K]=g.useMemo(()=>{if(i&&a)return[i,a];if(l||s){const e=ph[O]||[];return s?["danger",e[1]]:e}return"solid"===a?["primary",a]:_&&F?[_,F]:"solid"===F?["primary",F]:["default","outlined"]},[i,a,l,s,_,F,O]),[V,U]=g.useMemo(()=>x&&"solid"===K?[W,"outlined"]:[W,K],[W,K,x]),q="danger"===V,X=q?"dangerous":V,Y=$??I??!0,Z=N("btn",o),[Q,J]=ih(Z),ee=g.useContext(Bs),te=d??ee,ne=g.useContext(Hu),re=g.useMemo(()=>function(e){if(Xa(e)){let t=null==e?void 0:e.delay;return t=qa(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(r),[r]),[oe,ie]=g.useState(re.loading),[ae,le]=g.useState(!1),se=g.useRef(null),ce=fe(t,se),ue=1===M.length&&!m&&!Uu(U),de=g.useRef(!0);y.useEffect(()=>(de.current=!1,()=>{de.current=!0}),[]),G(()=>{let e=null;return re.delay>0?e=setTimeout(()=>{e=null,ie(!0)},re.delay):ie(re.loading),function(){e&&(clearTimeout(e),e=null)}},[re.delay,re.loading]),g.useEffect(()=>{if(!se.current||!Y)return;const e=se.current.textContent||"";ue&&Ku(e)?ae||le(!0):ae&&le(!1)}),g.useEffect(()=>{T&&se.current&&se.current.focus()},[]);const he=y.useCallback(t=>{var n;oe||te?t.preventDefault():null==(n=e.onClick)||n.call(e,t)},[e.onClick,oe,te]),{compactSize:pe,compactItemClassnames:me}=Du(Z,A),ge=Lu(e=>u??pe??ne??e),ye=oe?"loading":m,ve=b??v??"start",be=at(P,["navigate"]),xe={...e,type:O,color:V,variant:U,danger:q,shape:H,size:ge,disabled:te,loading:oe,iconPlacement:ve},[we,Ce]=il([n?void 0:B,k],[n?void 0:z,S],{props:xe}),ke=Kt(Z,Q,J,{[`${Z}-${H}`]:"default"!==H&&"square"!==H&&H,[`${Z}-${O}`]:O,[`${Z}-dangerous`]:s,[`${Z}-color-${X}`]:X,[`${Z}-variant-${U}`]:U,[`${Z}-lg`]:"large"===ge,[`${Z}-sm`]:"small"===ge,[`${Z}-icon-only`]:!f&&0!==f&&!!ye,[`${Z}-background-ghost`]:x&&!Uu(U),[`${Z}-loading`]:oe,[`${Z}-two-chinese-chars`]:ae&&Y&&!oe,[`${Z}-block`]:w,[`${Z}-rtl`]:"rtl"===A,[`${Z}-icon-end`]:"end"===ve},me,h,p,R,we.root),Se={...Ce.root,...L,...E},Ee={className:we.icon,style:Ce.icon},$e=e=>y.createElement(Gu,{prefixCls:Z,...Ee},e),Te=y.createElement(Qu,{existIcon:!!m,prefixCls:Z,loading:oe,mount:de.current,...Ee}),Pe=Xa(r)&&r.icon||D;let Me;Me=m&&!oe?$e(m):r&&Pe?$e(Pe):Te;const Oe=Ua(f)?qu(f,ue&&Y,Ce.content,we.content):null;if(void 0!==be.href)return y.createElement("a",{...be,className:Kt(ke,{[`${Z}-disabled`]:te}),href:te?void 0:be.href,style:Se,onClick:he,ref:ce,tabIndex:te?-1:0,"aria-disabled":te},Me,Oe);let Ne=y.createElement("button",{...P,type:C,className:ke,style:Se,onClick:he,disabled:te,ref:ce},Me,Oe,me&&y.createElement(hh,{prefixCls:Z}));return Uu(U)||(Ne=y.createElement(Ru,{component:"Button",disabled:oe},Ne)),Ne}),mh=fh;mh.Group=e=>{const{getPrefixCls:t,direction:n}=g.useContext(Zt),{prefixCls:r,size:o,className:i,...a}=e,l=t("btn-group",r),[,,s]=gi(),c=g.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),u=Kt(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:"rtl"===n},i,s);return g.createElement(Hu.Provider,{value:o},g.createElement("div",{...a,className:u}))},mh.__ANT_BUTTON=!0;const gh=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,d=g.useRef(!1),h=g.useRef(null),[p,f]=X(!1),m=(...e)=>{null==i||i(...e)};g.useEffect(()=>{let e=null;return a&&(e=setTimeout(()=>{var e;null==(e=h.current)||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[a]);return g.createElement(mh,{...Vu(t),onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void m();let t;if(l){if(t=u(e),c&&!Za(t))return d.current=!1,void m(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!Za(t))return void m();(e=>{Za(e)&&(f(!0),e.then((...e)=>{f(!1,!0),m.apply(void 0,e),d.current=!1},e=>{if(f(!1,!0),d.current=!1,!(null==s?void 0:s()))return Promise.reject(e)}))})(t)},loading:p,prefixCls:r,...o,ref:h},n)},yh=y.createContext({}),{Provider:vh}=yh,bh=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s,onClose:c}=g.useContext(yh);return o?y.createElement(gh,{isSilent:r,actionFn:l,close:(...e)=>{null==a||a(...e),null==s||s(!1),null==c||c()},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},xh=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:s,onClose:c}=g.useContext(yh);return y.createElement(gh,{isSilent:n,type:a||"primary",actionFn:s,close:(...e)=>{null==t||t(...e),null==l||l(!0),null==c||c()},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)},wh=g.createContext({});function Ch(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function kh(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r="scroll"+(t?"Top":"Left");if("number"!=typeof n){const t=e.document;n=t.documentElement[r],"number"!=typeof n&&(n=t.body[r])}return n}const Sh=g.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eh.apply(this,arguments)}const $h=y.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,title:i,ariaId:a,footer:l,closable:s,closeIcon:c,onClose:u,children:d,bodyStyle:h,bodyProps:p,modalRender:f,onMouseDown:m,onMouseUp:v,holderRef:b,visible:x,forceRender:w,width:C,height:k,classNames:S,styles:E,isFixedPos:$,focusTrap:T}=e,{panel:P}=y.useContext(wh),M=g.useRef(null),O=fe(b,P,M),[N]=Ke(x&&$&&!1!==T,()=>M.current);y.useImperativeHandle(t,()=>({focus:()=>{var e;null==(e=M.current)||e.focus({preventScroll:!0})}}));const A={};void 0!==C&&(A.width=C),void 0!==k&&(A.height=k);const I=l?y.createElement("div",{className:Kt(`${n}-footer`,null==S?void 0:S.footer),style:{...null==E?void 0:E.footer}},l):null,R=i?y.createElement("div",{className:Kt(`${n}-header`,null==S?void 0:S.header),style:{...null==E?void 0:E.header}},y.createElement("div",{className:Kt(`${n}-title`,null==S?void 0:S.title),id:a,style:{...null==E?void 0:E.title}},i)):null,L=g.useMemo(()=>"object"==typeof s&&null!==s?s:s?{closeIcon:c??y.createElement("span",{className:`${n}-close-x`})}:{},[s,c,n]),B=ct(L,!0),z="object"==typeof s&&s.disabled,D=s?y.createElement("button",Eh({type:"button",onClick:u,"aria-label":"Close"},B,{className:Kt(`${n}-close`,null==S?void 0:S.close),disabled:z,style:null==E?void 0:E.close}),L.closeIcon):null,j=y.createElement("div",{className:Kt(`${n}-container`,null==S?void 0:S.container),style:null==E?void 0:E.container},D,R,y.createElement("div",Eh({className:Kt(`${n}-body`,null==S?void 0:S.body),style:{...h,...null==E?void 0:E.body}},p),d),I);return y.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:{...o,...A},className:Kt(n,r),onMouseDown:m,onMouseUp:v,tabIndex:-1,onFocus:e=>{N(e.target)}},y.createElement(Sh,{shouldUpdate:x||w},f?f(j):j))});function Th(){return Th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Th.apply(this,arguments)}const Ph=g.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:o,className:i,visible:a,forceRender:l,destroyOnHidden:s,motionName:c,ariaId:u,onVisibleChanged:d,mousePosition:h}=e,p=g.useRef(null),f=g.useRef(null);g.useImperativeHandle(t,()=>({...f.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));const[m,y]=g.useState(),v={};function b(){var e;if(!(null==(e=p.current)?void 0:e.nativeElement))return;const t=function(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=kh(o),n.top+=kh(o,!0),n}(p.current.nativeElement);y(h&&(h.x||h.y)?`${h.x-t.left}px ${h.y-t.top}px`:"")}return m&&(v.transformOrigin=m),g.createElement(Ba,{visible:a,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:l,motionName:c,removeOnLeave:s,ref:p},({className:t,style:a},l)=>g.createElement($h,Th({},e,{ref:f,title:r,ariaId:u,prefixCls:n,holderRef:l,style:{...a,...o,...v},className:Kt(i,t)})))});function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mh.apply(this,arguments)}const Oh=e=>{const{prefixCls:t,style:n,visible:r,maskProps:o,motionName:i,className:a}=e;return g.createElement(Ba,{key:"mask",visible:r,motionName:i,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},i)=>g.createElement("div",Mh({ref:i,style:{...r,...n},className:Kt(`${t}-mask`,e,a)},o)))};function Nh(){return Nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nh.apply(this,arguments)}const Ah=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,focusTriggerAfterClose:o=!0,wrapStyle:i,wrapClassName:a,wrapProps:l,onClose:s,afterOpenChange:c,afterClose:u,transitionName:d,animation:h,closable:p=!0,mask:f=!0,maskTransitionName:m,maskAnimation:y,maskClosable:v=!0,maskStyle:b,maskProps:x,rootClassName:w,rootStyle:C,classNames:k,styles:S}=e,E=g.useRef(null),$=g.useRef(null),T=g.useRef(null),[P,M]=g.useState(r),[O,N]=g.useState(!1),A=ee();function I(){if(M(!1),f&&E.current&&o){try{E.current.focus({preventScroll:!0})}catch(e){}E.current=null}P&&(null==u||u())}function R(e){null==s||s(e)}const L=g.useRef(!1);let B=null;v&&(B=e=>{$.current===e.target&&L.current&&R(e)}),g.useEffect(()=>{if(r){if(L.current=!1,M(!0),be($.current,document.activeElement)||(E.current=document.activeElement),$.current){const e=getComputedStyle($.current);N("fixed"===e.position)}}else P&&T.current.enableMotion()&&!T.current.inMotion()&&I()},[r]);const z={zIndex:n,...i,...null==S?void 0:S.wrapper,display:P?null:"none"};return g.createElement("div",Nh({className:Kt(`${t}-root`,w),style:C},ct(e,{data:!0})),g.createElement(Oh,{prefixCls:t,visible:f&&r,motionName:Ch(t,m,y),style:{zIndex:n,...b,...null==S?void 0:S.mask},maskProps:x,className:null==k?void 0:k.mask}),g.createElement("div",Nh({className:Kt(`${t}-wrap`,a,null==k?void 0:k.wrapper),ref:$,onClick:B,onMouseDown:function(e){L.current=e.target===$.current},style:z},l),g.createElement(Ph,Nh({},e,{isFixedPos:O,ref:T,closable:p,ariaId:A,prefixCls:t,visible:r&&P,onClose:R,onVisibleChanged:function(e){var t;e?be($.current,document.activeElement)||null==(t=T.current)||t.focus():I(),null==c||c(e)},motionName:Ch(t,d,h)}))))};function Ih(){return Ih=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ih.apply(this,arguments)}const Rh=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:o=!1,afterClose:i,closable:a,panelRef:l,keyboard:s=!0,onClose:c}=e,[u,d]=g.useState(t),h=g.useMemo(()=>({panel:l}),[l]);return g.useEffect(()=>{t&&d(!0)},[t]),r||!o||u?g.createElement(wh.Provider,{value:h},g.createElement(es,{open:t||r||u,onEsc:({top:e,event:t})=>{if(e&&s)return t.stopPropagation(),void(null==c||c(t))},autoDestroy:!1,getContainer:n,autoLock:t||u},g.createElement(Ah,Ih({},e,{destroyOnHidden:o,afterClose:()=>{const e=a&&"object"==typeof a?a:{},{afterClose:t}=e||{};null==t||t(),null==i||i(),d(!1)}})))):null},Lh="RC_FORM_INTERNAL_HOOKS",Bh=()=>{nt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},zh=g.createContext({getFieldValue:Bh,getFieldsValue:Bh,getFieldError:Bh,getFieldWarning:Bh,getFieldsError:Bh,isFieldsTouched:Bh,isFieldTouched:Bh,isFieldValidating:Bh,isFieldsValidating:Bh,resetFields:Bh,setFields:Bh,setFieldValue:Bh,setFieldsValue:Bh,validateFields:Bh,submit:Bh,getInternalHooks:()=>(Bh(),{dispatch:Bh,initEntityValue:Bh,registerField:Bh,useSubscribe:Bh,setInitialValues:Bh,destroyForm:Bh,setCallbacks:Bh,registerWatch:Bh,getFields:Bh,setValidateMessages:Bh,setPreserve:Bh,getInitialValue:Bh})}),Dh=g.createContext(null);function jh(e){return null==e?[]:Array.isArray(e)?e:[e]}function _h(){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:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Fh=_h();function Hh(e){var t="function"==typeof Map?new Map:void 0;return Hh=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(to())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Qr(o,n.prototype),o}(e,arguments,eo(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Qr(n,e)},Hh(e)}var Wh=/%[sdj%]/g;function Kh(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Vh(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;return"function"==typeof e?e.apply(null,n):"string"==typeof e?e.replace(Wh,function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}}):e}function Uh(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!=typeof e||e))}function qh(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env;var Gh=function(e){Jr(n,e);var t=ro(n);function n(e,r){var o;return Xr(this,n),Ur(Zr(o=t.call(this,"Async Validation Error")),"errors",void 0),Ur(Zr(o),"fields",void 0),o.errors=e,o.fields=r,o}return Yr(n)}(Hh(Error));function Xh(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,qt(e[n]||[]))}),t}(e);qh(a,n,function(e){return r(e),e.length?i(new Gh(e,Kh(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new Gh(u,Kh(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?qh(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,qt(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}function Yh(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Zh(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===Wr(r)&&"object"===Wr(e[n])?e[n]=Gr(Gr({},e[n]),r):e[n]=r}return e}var Qh,Jh="enum",ep=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Uh(t,i||e.type)||r.push(Vh(o.messages.required,e.fullField))};var tp=/^(([^<>()\[\]\\.,;:\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,}))$/,np=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,rp=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,op={integer:function(e){return op.number(e)&&parseInt(e,10)===e},float:function(e){return op.number(e)&&!op.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===Wr(e)&&!op.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(tp)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(np)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(Qh)return Qh;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(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}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,h="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Qh=new RegExp("(?:^".concat(h,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(rp)}};const ip={required:ep,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Vh(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)ep(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(i)>-1?op[i](t)||r.push(Vh(o.messages.types[i],e.fullField,e.type)):i&&Wr(t)!==e.type&&r.push(Vh(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,h=Array.isArray(t);if(u?c="number":d?c="string":h&&(c="array"),!c)return!1;h&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(Vh(o.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(Vh(o.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(Vh(o.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(Vh(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[Jh]=Array.isArray(e[Jh])?e[Jh]:[],-1===e[Jh].indexOf(t)&&r.push(Vh(o.messages[Jh],e.fullField,e[Jh].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Vh(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(Vh(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};var ap=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t,i)&&!e.required)return n();ip.required(e,t,r,a,o,i),Uh(t,i)||ip.type(e,t,r,a,o)}n(a)};const lp={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t,"string")&&!e.required)return n();ip.required(e,t,r,i,o,"string"),Uh(t,"string")||(ip.type(e,t,r,i,o),ip.range(e,t,r,i,o),ip.pattern(e,t,r,i,o),!0===e.whitespace&&ip.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t)&&!e.required)return n();ip.required(e,t,r,i,o),void 0!==t&&ip.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Uh(t)&&!e.required)return n();ip.required(e,t,r,i,o),void 0!==t&&(ip.type(e,t,r,i,o),ip.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t)&&!e.required)return n();ip.required(e,t,r,i,o),void 0!==t&&ip.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t)&&!e.required)return n();ip.required(e,t,r,i,o),Uh(t)||ip.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t)&&!e.required)return n();ip.required(e,t,r,i,o),void 0!==t&&(ip.type(e,t,r,i,o),ip.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t)&&!e.required)return n();ip.required(e,t,r,i,o),void 0!==t&&(ip.type(e,t,r,i,o),ip.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();ip.required(e,t,r,i,o,"array"),null!=t&&(ip.type(e,t,r,i,o),ip.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t)&&!e.required)return n();ip.required(e,t,r,i,o),void 0!==t&&ip.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t)&&!e.required)return n();ip.required(e,t,r,i,o),void 0!==t&&ip.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t,"string")&&!e.required)return n();ip.required(e,t,r,i,o),Uh(t,"string")||ip.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t,"date")&&!e.required)return n();var a;if(ip.required(e,t,r,i,o),!Uh(t,"date"))a=t instanceof Date?t:new Date(t),ip.type(e,a,r,i,o),a&&ip.range(e,a.getTime(),r,i,o)}n(i)},url:ap,hex:ap,email:ap,tel:ap,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":Wr(t);ip.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Uh(t)&&!e.required)return n();ip.required(e,t,r,i,o)}n(i)}};var sp=function(){function e(t){Xr(this,e),Ur(this,"rules",null),Ur(this,"_messages",Fh),this.define(t)}return Yr(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==Wr(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=Zh(_h(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===Fh&&(a=_h()),Zh(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach(function(e){var o=n.rules[e],i=r[e];o.forEach(function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=Gr({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":Wr(i)))),(a="function"==typeof a?{validator:a}:Gr({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))})});var s={};return Xh(l,o,function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==Wr(a.fields)&&"object"!==Wr(a.defaultField));function c(e,t){return Gr(Gr({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(qt(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&null!==a.message&&(u=[].concat(a.message));var d=u.map(Yh(a,r));if(o.first&&d.length)return s[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(Yh(a,r)):o.error&&(d=[o.error(a,Vh(o.messages.required,a.field))]),n(d);var h={};a.defaultField&&Object.keys(t.value).map(function(e){h[e]=a.defaultField}),h=Gr(Gr({},h),t.rule.fields);var p={};Object.keys(h).forEach(function(e){var t=h[e],n=Array.isArray(t)?t:[t];p[e]=n.map(c.bind(null,e))});var f=new e(p);f.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),f.validate(t.value,t.rule.options||o,function(e){var t=[];d&&d.length&&t.push.apply(t,qt(d)),e&&e.length&&t.push.apply(t,qt(e)),n(t.length?t:null)})}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,h;null===(d=(h=console).error)||void 0===d||d.call(h,e),o.suppressValidatorError||setTimeout(function(){throw e},0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,qt(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=Kh(t),i(t,n)):i(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!lp.hasOwnProperty(e.type))throw new Error(Vh("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?lp.required:lp[this.getType(e)]||void 0}}]),e}();Ur(sp,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");lp[e]=t}),Ur(sp,"warning",function(){}),Ur(sp,"messages",Fh),Ur(sp,"validators",lp);const cp="'${name}' is not a valid ${type}",up={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:cp,method:cp,array:cp,object:cp,number:cp,date:cp,boolean:cp,integer:cp,float:cp,regexp:cp,email:cp,tel:cp,url:cp,hex:cp},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}"}},dp=sp;const hp="CODE_LOGIC_ERROR";async function pp(e,t,n,r,o){const i={...n};if(delete i.ruleIndex,dp.warning=()=>{},i.validator){const e=i.validator;i.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(hp)}}}let a=null;i&&"array"===i.type&&i.defaultField&&(a=i.defaultField,delete i.defaultField);const l=new dp({[e]:[i]}),s=St(up,r.validateMessages);l.messages(s);let c=[];try{await Promise.resolve(l.validate({[e]:t},{...r}))}catch(e){e.errors&&(c=e.errors.map(({message:e},t)=>{const n=e===hp?s.default:e;return g.isValidElement(n)?g.cloneElement(n,{key:`error_${t}`}):n}))}if(!c.length&&a&&Array.isArray(t)&&t.length>0){return(await Promise.all(t.map((t,n)=>pp(`${e}.${n}`,t,a,r,o)))).reduce((e,t)=>[...e,...t],[])}const u={...n,name:e,enum:(n.enum||[]).join(", "),...o},d=c.map(e=>"string"==typeof e?function(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>{if(e.startsWith("\\"))return e.slice(1);const n=e.slice(2,-1);return t[n]})}(e,u):e);return d}function fp(e,t,n,r,o,i){const a=e.join("."),l=n.map((e,t)=>{const n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let o=!1;const i=n(e,t,(...e)=>{Promise.resolve().then(()=>{nt(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r(...e)})});o=i&&"function"==typeof i.then&&"function"==typeof i.catch,nt(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then(()=>{r()}).catch(e=>{r(e||" ")})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1);let s;if(!0===o)s=new Promise(async(e,n)=>{for(let e=0;e<l.length;e+=1){const o=l[e],s=await pp(a,t,o,r,i);if(s.length)return void n([{errors:s,rule:o}])}e([])});else{const e=l.map(e=>pp(a,t,e,r,i).then(t=>({errors:t,rule:e})));s=(o?async function(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([])})})})}(e):async function(e){return Promise.all(e).then(e=>[].concat(...e))}(e)).then(e=>Promise.reject(e))}return s.catch(e=>e),s}function mp(e){return jh(e)}function gp(e,t){let n={};return t.forEach(t=>{const r=vt(e,t);n=xt(n,t,r)}),n}function yp(e,t,n=!1){return e&&e.some(e=>vp(t,e,n))}function vp(e,t,n=!1){return!(!e||!t)&&(!(!n&&e.length!==t.length)&&t.every((t,n)=>e[n]===t))}function bp(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const o=e[t],i=t-n;return i>0?[...e.slice(0,n),o,...e.slice(n,t),...e.slice(t+1,r)]:i<0?[...e.slice(0,t),...e.slice(t+1,n+1),o,...e.slice(n+1,r)]:e}const xp=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class wp{constructor(e){o(this,"namePathList",[]),o(this,"taskId",0),o(this,"watcherList",new Set),o(this,"form"),this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!vp(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;const e=this.taskId;xp(()=>{if(e===this.taskId&&this.watcherList.size){const e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}}function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cp.apply(this,arguments)}const kp=[],Sp=[];function Ep(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}class $p extends g.Component{constructor(e){if(super(e),o(this,"state",{resetCount:0}),o(this,"cancelRegisterFunc",null),o(this,"mounted",!1),o(this,"touched",!1),o(this,"dirty",!1),o(this,"validatePromise"),o(this,"prevValidating"),o(this,"errors",kp),o(this,"warnings",Sp),o(this,"cancelRegister",()=>{const{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,mp(n)),this.cancelRegisterFunc=null}),o(this,"getNamePath",()=>{const{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return void 0!==e?[...n,...e]:[]}),o(this,"getRules",()=>{const{rules:e=[],fieldContext:t}=this.props;return e.map(e=>"function"==typeof e?e(t):e)}),o(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))}),o(this,"metaCache",null),o(this,"triggerMetaEvent",e=>{const{onMetaChange:t}=this.props;if(t){const n={...this.getMeta(),destroy:e};rt(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null}),o(this,"onStoreChange",(e,t,n)=>{const{shouldUpdate:r,dependencies:o=[],onReset:i}=this.props,{store:a}=n,l=this.getNamePath(),s=this.getValue(e),c=this.getValue(a),u=t&&yp(t,l);switch("valueUpdate"!==n.type||"external"!==n.source||rt(s,c)||(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=kp,this.warnings=Sp,this.triggerMetaEvent()),n.type){case"reset":if(!t||u)return this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=kp,this.warnings=Sp,this.triggerMetaEvent(),null==i||i(),void this.refresh();break;case"remove":if(r&&Ep(r,e,a,s,c,n))return void this.reRender();break;case"setField":{const{data:o}=n;if(u)return"touched"in o&&(this.touched=o.touched),"validating"in o&&!("originRCField"in o)&&(this.validatePromise=o.validating?Promise.resolve([]):null),"errors"in o&&(this.errors=o.errors||kp),"warnings"in o&&(this.warnings=o.warnings||Sp),this.dirty=!0,this.triggerMetaEvent(),void this.reRender();if("value"in o&&yp(t,l,!0))return void this.reRender();if(r&&!l.length&&Ep(r,e,a,s,c,n))return void this.reRender();break}case"dependenciesUpdate":if(o.map(mp).some(e=>yp(n.relatedFields,e)))return void this.reRender();break;default:if(u||(!o.length||l.length||r)&&Ep(r,e,a,s,c,n))return void this.reRender()}!0===r&&this.reRender()}),o(this,"validateRules",e=>{const t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:o=!1,delayFrame:i}=e||{},a=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:o=!1,messageVariables:l,validateDebounce:s}=this.props;i&&await async function(){return new Promise(e=>{xp(()=>{mt(()=>{e()})})})}();let c=this.getRules();if(r&&(c=c.filter(e=>e).filter(e=>{const{validateTrigger:t}=e;if(!t)return!0;return jh(t).includes(r)})),s&&r&&(await new Promise(e=>{setTimeout(e,s)}),this.validatePromise!==a))return[];const u=fp(t,n,c,e,o,l);return u.catch(e=>e).then((e=kp)=>{var t;if(this.validatePromise===a){this.validatePromise=null;const n=[],r=[];null==(t=e.forEach)||t.call(e,({rule:{warningOnly:e},errors:t=kp})=>{e?r.push(...t):n.push(...t)}),this.errors=n,this.warnings=r,this.triggerMetaEvent(),this.reRender()}}),u});return o||(this.validatePromise=a,this.dirty=!0,this.errors=kp,this.warnings=Sp,this.triggerMetaEvent(),this.reRender()),a}),o(this,"isFieldValidating",()=>!!this.validatePromise),o(this,"isFieldTouched",()=>this.touched),o(this,"isFieldDirty",()=>{if(this.dirty||void 0!==this.props.initialValue)return!0;const{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(Lh);return void 0!==t(this.getNamePath())}),o(this,"getErrors",()=>this.errors),o(this,"getWarnings",()=>this.warnings),o(this,"isListField",()=>this.props.isListField),o(this,"isList",()=>this.props.isList),o(this,"isPreserve",()=>this.props.preserve),o(this,"getMeta",()=>{this.prevValidating=this.isFieldValidating();return{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:null===this.validatePromise}}),o(this,"getOnlyChild",e=>{if("function"==typeof e){const t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}const t=gt(e);return 1===t.length&&g.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}}),o(this,"getValue",e=>{const{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return vt(e||t(!0),n)}),o(this,"getControlled",(e={})=>{const{name:t,trigger:n="onChange",validateTrigger:r,getValueFromEvent:o,normalize:i,valuePropName:a="value",getValueProps:l,fieldContext:s}=this.props,c=void 0!==r?r:s.validateTrigger,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:h}=s,{dispatch:p}=d(Lh),f=this.getValue(),m=l||(e=>({[a]:e})),g=e[n],y=void 0!==t?m(f):{},v={...e,...y};v[n]=(...e)=>{let t;this.touched=!0,this.dirty=!0,this.triggerMetaEvent(),t=o?o(...e):function(e,...t){const n=t[0];return n&&n.target&&"object"==typeof n.target&&e in n.target?n.target[e]:n}(a,...e),i&&(t=i(t,f,h(!0))),t!==f&&p({type:"updateValue",namePath:u,value:t}),g&&g(...e)};return jh(c||[]).forEach(e=>{const t=v[e];v[e]=(...n)=>{t&&t(...n);const{rules:r}=this.props;r&&r.length&&p({type:"validateField",namePath:u,triggerName:e})}}),v}),e.fieldContext){const{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(Lh);n(this)}}componentDidMount(){const{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){const{getInternalHooks:e}=t,{registerField:n}=e(Lh);this.cancelRegisterFunc=n(this)}!0===e&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t);let o;return r?o=n:g.isValidElement(n)?o=g.cloneElement(n,this.getControlled(n.props)):(nt(!n,"`children` of Field is not validate ReactElement."),o=n),g.createElement(g.Fragment,{key:e},o)}}function Tp({name:e,...t}){const n=g.useContext(zh),r=g.useContext(Dh),o=void 0!==e?mp(e):void 0,i=t.isListField??!!r;let a="keep";return i||(a=`_${(o||[]).join("_")}`),g.createElement($p,Cp({key:a,name:o,isListField:i},t,{fieldContext:n}))}function Pp({name:e,initialValue:t,children:n,rules:r,validateTrigger:o,isListField:i}){const a=g.useContext(zh),l=g.useContext(Dh),s=g.useRef({keys:[],id:0}).current,c=g.useMemo(()=>[...mp(a.prefixName)||[],...mp(e)],[a.prefixName,e]),u=g.useMemo(()=>({...a,prefixName:c}),[a,c]),d=g.useMemo(()=>({getKey:e=>{const t=c.length,n=e[t];return[s.keys[n],e.slice(t+1)]}}),[s,c]);if("function"!=typeof n)return nt(!1,"Form.List only accepts function as children."),null;return g.createElement(Dh.Provider,{value:d},g.createElement(zh.Provider,{value:u},g.createElement(Tp,{name:[],shouldUpdate:(e,t,{source:n})=>"internal"!==n&&e!==t,rules:r,validateTrigger:o,initialValue:t,isList:!0,isListField:i??!!l},({value:e=[],onChange:t},r)=>{const{getFieldValue:o}=a,i=()=>o(c||[])||[],l={add:(e,n)=>{const r=i();n>=0&&n<=r.length?(s.keys=[...s.keys.slice(0,n),s.id,...s.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(s.keys=[...s.keys,s.id],t([...r,e])),s.id+=1},remove:e=>{const n=i(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(s.keys=s.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;const r=i();e<0||e>=r.length||n<0||n>=r.length||(s.keys=bp(s.keys,e,n),t(bp(r,e,n)))}};let u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=s.keys[t];return void 0===n&&(s.keys[t]=s.id,n=s.keys[t],s.id+=1),{name:t,key:n,isListField:!0}}),l,r)})))}o($p,"contextType",zh);const Mp="__@field_split__";function Op(e){return e.map(e=>`${typeof e}:${e}`).join(Mp)}class Np{constructor(){o(this,"kvs",new Map)}set(e,t){this.kvs.set(Op(e),t)}get(e){return this.kvs.get(Op(e))}getAsPrefix(e){const t=Op(e),n=t+Mp,r=[],o=this.kvs.get(t);return void 0!==o&&r.push(o),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){const n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Op(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>{const r=t.split(Mp);return e({key:r.map(e=>{const[,t,n]=e.match(/^([^:]*):(.*)$/);return"number"===t?Number(n):n}),value:n})})}toJSON(){const e={};return this.map(({key:t,value:n})=>(e[t.join(".")]=n,null)),e}}class Ap{constructor(e){o(this,"formHooked",!1),o(this,"forceRootUpdate"),o(this,"subscribable",!0),o(this,"store",{}),o(this,"fieldEntities",[]),o(this,"initialValues",{}),o(this,"callbacks",{}),o(this,"validateMessages",null),o(this,"preserve",null),o(this,"lastValidatePromise",null),o(this,"watcherCenter",new wp(this)),o(this,"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})),o(this,"getInternalHooks",e=>e===Lh?(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}):(nt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)),o(this,"useSubscribe",e=>{this.subscribable=e}),o(this,"prevWithoutPreserves",null),o(this,"setInitialValues",(e,t)=>{var n;if(this.initialValues=e||{},t){let t=St(e,this.store);null==(n=this.prevWithoutPreserves)||n.map(({key:n})=>{t=xt(t,n,vt(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}}),o(this,"destroyForm",e=>{if(e)this.updateStore({});else{const e=new Np;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}}),o(this,"getInitialValue",e=>{const t=vt(this.initialValues,e);return e.length?St(t):t}),o(this,"setCallbacks",e=>{this.callbacks=e}),o(this,"setValidateMessages",e=>{this.validateMessages=e}),o(this,"setPreserve",e=>{this.preserve=e}),o(this,"registerWatch",e=>this.watcherCenter.register(e)),o(this,"notifyWatch",(e=[])=>{this.watcherCenter.notify(e)}),o(this,"timeoutId",null),o(this,"warningUnhooked",()=>{}),o(this,"updateStore",e=>{this.store=e}),o(this,"getFieldEntities",(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities),o(this,"getFieldsMap",(e=!1)=>{const t=new Np;return this.getFieldEntities(e).forEach(e=>{const n=e.getNamePath();t.set(n,e)}),t}),o(this,"getFieldEntitiesForNamePathList",(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);const n=this.getFieldsMap(!0);return t?e.flatMap(e=>{const t=mp(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{const t=mp(e);return n.get(t)||{INVALIDATE_NAME_PATH:mp(e)}})}),o(this,"getFieldsValue",(e,t)=>{let n,r;if(this.warningUnhooked(),!0===e||Array.isArray(e)?(n=e,r=t):e&&"object"==typeof e&&(r=e.filter),!0===n&&!r)return this.store;const o=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),i=[],a=[];o.forEach(e=>{var t;const n=e.INVALIDATE_NAME_PATH||e.getNamePath();if(null==(t=e.isList)?void 0:t.call(e))a.push(n);else if(r){const t="getMeta"in e?e.getMeta():null;r(t)&&i.push(n)}else i.push(n)});let l=gp(this.store,i.map(mp));return a.forEach(e=>{vt(l,e)||(l=xt(l,e,[]))}),l}),o(this,"getFieldValue",e=>{this.warningUnhooked();const t=mp(e);return vt(this.store,t)}),o(this,"getFieldsError",e=>{this.warningUnhooked();return this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:mp(e[n]),errors:[],warnings:[]})}),o(this,"getFieldError",e=>{this.warningUnhooked();const t=mp(e);return this.getFieldsError([t])[0].errors}),o(this,"getFieldWarning",e=>{this.warningUnhooked();const t=mp(e);return this.getFieldsError([t])[0].warnings}),o(this,"isFieldsTouched",(...e)=>{this.warningUnhooked();const[t,n]=e;let r,o=!1;0===e.length?r=null:1===e.length?Array.isArray(t)?(r=t.map(mp),o=!1):(r=null,o=t):(r=t.map(mp),o=n);const i=this.getFieldEntities(!0),a=e=>e.isFieldTouched();if(!r)return o?i.every(e=>a(e)||e.isList()):i.some(a);const l=new Np;r.forEach(e=>{l.set(e,[])}),i.forEach(e=>{const t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&l.update(n,t=>[...t,e])})});const s=e=>e.some(a),c=l.map(({value:e})=>e);return o?c.every(s):c.some(s)}),o(this,"isFieldTouched",e=>(this.warningUnhooked(),this.isFieldsTouched([e]))),o(this,"isFieldsValidating",e=>{this.warningUnhooked();const t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());const n=e.map(mp);return t.some(e=>{const t=e.getNamePath();return yp(n,t)&&e.isFieldValidating()})}),o(this,"isFieldValidating",e=>(this.warningUnhooked(),this.isFieldsValidating([e]))),o(this,"resetWithFieldInitialValue",(e={})=>{const t=new Np,n=this.getFieldEntities(!0);n.forEach(e=>{const{initialValue:n}=e.props,r=e.getNamePath();if(void 0!==n){const o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}});let r;e.entities?r=e.entities:e.namePathList?(r=[],e.namePathList.forEach(e=>{const n=t.get(e);n&&r.push(...[...n].map(e=>e.entity))})):r=n,(n=>{n.forEach(n=>{const{initialValue:r}=n.props;if(void 0!==r){const r=n.getNamePath();if(void 0!==this.getInitialValue(r))nt(!1,`Form already set 'initialValues' with path '${r.join(".")}'. Field can not overwrite it.`);else{const o=t.get(r);if(o&&o.size>1)nt(!1,`Multiple Field with path '${r.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(o){const t=this.getFieldValue(r);n.isListField()||e.skipExist&&void 0!==t||this.updateStore(xt(this.store,r,[...o][0].value))}}}})})(r)}),o(this,"resetFields",e=>{this.warningUnhooked();const t=this.store;if(!e)return this.updateStore(St(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:"reset"}),void this.notifyWatch();const n=e.map(mp);n.forEach(e=>{const t=this.getInitialValue(e);this.updateStore(xt(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:"reset"}),this.notifyWatch(n)}),o(this,"setFields",e=>{this.warningUnhooked();const t=this.store,n=[];e.forEach(e=>{const{name:r,...o}=e,i=mp(r);n.push(i),"value"in o&&this.updateStore(xt(this.store,i,o.value)),this.notifyObservers(t,[i],{type:"setField",data:e})}),this.notifyWatch(n)}),o(this,"getFields",()=>this.getFieldEntities(!0).map(e=>{const t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,"originRCField",{value:!0}),n})),o(this,"initEntityValue",e=>{const{initialValue:t}=e.props;if(void 0!==t){const n=e.getNamePath();void 0===vt(this.store,n)&&this.updateStore(xt(this.store,n,t))}}),o(this,"isMergedPreserve",e=>(void 0!==e?e:this.preserve)??!0),o(this,"registerField",e=>{this.fieldEntities.push(e);const t=e.getNamePath();if(this.notifyWatch([t]),void 0!==e.props.initialValue){const t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return(n,r,o=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||o.length>1)){const e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!vp(e.getNamePath(),t))){const n=this.store;this.updateStore(xt(n,t,e,!0)),this.notifyObservers(n,[t],{type:"remove"}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}}),o(this,"dispatch",e=>{switch(e.type){case"updateValue":{const{namePath:t,value:n}=e;this.updateValue(t,n);break}case"validateField":{const{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}}}),o(this,"notifyObservers",(e,t,n)=>{if(this.subscribable){const r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()}),o(this,"triggerDependenciesUpdate",(e,t)=>{const n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t,...n]}),n}),o(this,"updateValue",(e,t)=>{const n=mp(e),r=this.store;this.updateStore(xt(this.store,n,t)),this.notifyObservers(r,[n],{type:"valueUpdate",source:"internal"}),this.notifyWatch([n]);const o=this.triggerDependenciesUpdate(r,n),{onValuesChange:i}=this.callbacks;if(i){const e=gp(this.store,[n]);i(e,xt(this.getFieldsValue(),n,vt(e,n)))}this.triggerOnFieldsChange([n,...o])}),o(this,"setFieldsValue",e=>{this.warningUnhooked();const t=this.store;if(e){const t=St(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()}),o(this,"setFieldValue",(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])}),o(this,"getDependencyChildrenFields",e=>{const t=new Set,n=[],r=new Np;this.getFieldEntities().forEach(e=>{const{dependencies:t}=e.props;(t||[]).forEach(t=>{const n=mp(t);r.update(n,(t=new Set)=>(t.add(e),t))})});const o=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);const r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),o(r))}})};return o(e),n}),o(this,"triggerOnFieldsChange",(e,t)=>{const{onFieldsChange:n}=this.callbacks;if(n){const r=this.getFields();if(t){const e=new Np;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}const o=r.filter(({name:t})=>yp(e,t));o.length&&n(o,r)}}),o(this,"validateFields",(e,t)=>{let n,r;this.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(n=e,r=t):r=e;const o=!!n,i=o?n.map(mp):[],a=[...i],l=[],s=String(Date.now()),c=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{const t=e.getNamePath();if(o||(e.isList()&&i.some(e=>vp(e,t,!0))||a.push(t),i.push(t)),e.props.rules&&e.props.rules.length&&(!d||e.isFieldDirty())&&(c.add(t.join(s)),!o||yp(i,t,u))){const n=e.validateRules({validateMessages:{...up,...this.validateMessages},...r});l.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{var n;const r=[],o=[];return null==(n=e.forEach)||n.call(e,({rule:{warningOnly:e},errors:t})=>{e?o.push(...t):r.push(...t)}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}});const h=function(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,i)=>{e.forEach((e,a)=>{e.catch(e=>(t=!0,e)).then(e=>{n-=1,r[a]=e,n>0||(t&&i(r),o(r))})})}):Promise.resolve([])}(l);this.lastValidatePromise=h,h.catch(e=>e).then(e=>{const t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:"validateFinish"}),this.triggerOnFieldsChange(t,e)});const p=h.then(()=>this.lastValidatePromise===h?Promise.resolve(this.getFieldsValue(a)):Promise.reject([])).catch(e=>{var t,n;const r=e.filter(e=>e&&e.errors.length),o=null==(n=null==(t=r[0])?void 0:t.errors)?void 0:n[0];return Promise.reject({message:o,values:this.getFieldsValue(i),errorFields:r,outOfDate:this.lastValidatePromise!==h})});p.catch(e=>e);const f=i.filter(e=>c.has(e.join(s)));return this.triggerOnFieldsChange(f),p}),o(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(e=>{const{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{const{onFinishFailed:t}=this.callbacks;t&&t(e)})}),this.forceRootUpdate=e}}function Ip(e){const t=g.useRef(null),[,n]=g.useState({});if(!t.current)if(e)t.current=e;else{const e=new Ap(()=>{n({})});t.current=e.getForm()}return[t.current]}const Rp=g.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Lp=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const o=g.useContext(Rp),i=g.useRef({});return g.createElement(Rp.Provider,{value:{...o,validateMessages:{...o.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:i.current}),o.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:i.current}),o.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(i.current={...i.current,[e]:t}),o.registerForm(e,t)},unregisterForm:e=>{const t={...i.current};delete t[e],i.current=t,o.unregisterForm(e)}}},r)};function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bp.apply(this,arguments)}const zp=({name:e,initialValues:t,fields:n,form:r,preserve:o,children:i,component:a="form",validateMessages:l,validateTrigger:s="onChange",onValuesChange:c,onFieldsChange:u,onFinish:d,onFinishFailed:h,clearOnDestroy:p,...f},m)=>{const y=g.useRef(null),v=g.useContext(Rp),[b]=Ip(r),{useSubscribe:x,setInitialValues:w,setCallbacks:C,setValidateMessages:k,setPreserve:S,destroyForm:E}=b.getInternalHooks(Lh);g.useImperativeHandle(m,()=>({...b,nativeElement:y.current})),g.useEffect(()=>(v.registerForm(e,b),()=>{v.unregisterForm(e)}),[v,b,e]),k({...v.validateMessages,...l}),C({onValuesChange:c,onFieldsChange:(t,...n)=>{v.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{v.triggerFormFinish(e,t),d&&d(t)},onFinishFailed:h}),S(o);const $=g.useRef(null);let T;w(t,!$.current),$.current||($.current=!0),g.useEffect(()=>()=>E(p),[]);const P="function"==typeof i;if(P){T=i(b.getFieldsValue(!0),b)}else T=i;x(!P);const M=g.useRef(null);g.useEffect(()=>{(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!=typeof e||"object"!=typeof t)return!1;const n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{const r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})})(M.current||[],n||[])||b.setFields(n||[]),M.current=n},[n,b]);const O=g.useMemo(()=>({...b,validateTrigger:s}),[b,s]),N=g.createElement(Dh.Provider,{value:null},g.createElement(zh.Provider,{value:O},T));return!1===a?N:g.createElement(a,Bp({},f,{ref:y,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),b.submit()},onReset:e=>{var t;e.preventDefault(),b.resetFields(),null==(t=f.onReset)||t.call(f,e)}}),N)};function Dp(e){try{return JSON.stringify(e)}catch{return Math.random()}}function jp(...e){const[t,n={}]=e,r=function(e){return e&&!!e._init}(n)?{form:n}:n,o=r.form,[i,a]=g.useState(()=>"function"==typeof t?t({}):void 0),l=g.useMemo(()=>Dp(i),[i]);g.useRef(l).current=l;const s=g.useContext(zh),c=o||s,u=c&&c._init,{getFieldsValue:d,getInternalHooks:h}=c,{registerWatch:p}=h(Lh),f=V((e,n)=>{const o=r.preserve?n??d(!0):e??d(),l="function"==typeof t?t(o):vt(o,mp(t));Dp(i)!==Dp(l)&&a(l)}),m="function"==typeof t?t:JSON.stringify(t);return g.useEffect(()=>{u&&f()},[u,m]),g.useEffect(()=>{if(!u)return;return p((e,t)=>{f(e,t)})},[u]),i}const _p=g.forwardRef(zp);_p.FormProvider=Lp,_p.Field=Tp,_p.List=Pp,_p.useForm=Ip,_p.useWatch=jp;const Fp=g.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),Hp=g.createContext(null),Wp=e=>{const t=at(e,["prefixCls"]);return g.createElement(Lp,{...t})},Kp=g.createContext({prefixCls:""}),Vp=g.createContext({}),Up=({children:e,status:t,override:n})=>{const r=g.useContext(Vp),o=g.useMemo(()=>{const e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return g.createElement(Vp.Provider,{value:o},e)},qp=g.createContext(void 0),Gp=e=>{const{space:t,form:n,children:r}=e;if(!Ua(r))return null;let o=r;return n&&(o=y.createElement(Up,{override:!0,status:!0},o)),t&&(o=y.createElement(ju,null,o)),o};const Xp=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=Kt({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=Kt({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),s=g.useMemo(()=>qa(o)?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return g.createElement("span",{className:Kt(t,a,l,n),style:{...s,...r}})},Yp=new Fr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Zp=e=>({height:e,lineHeight:wn(e)}),Qp=e=>({width:e,...Zp(e)}),Jp=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Yp,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ef=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Zp(e)}),tf=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...Qp(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...Qp(o)},[`${t}${t}-sm`]:{...Qp(i)}}},nf=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:n,...ef(t,l)},[`${r}-lg`]:{...ef(o,l)},[`${r}-sm`]:{...ef(i,l)}}},rf=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:o}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...Qp(o(r).mul(2).equal())}},of=e=>({[e.skeletonNodeCls]:{...rf(e)}}),af=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...rf(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...Qp(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%"}}},lf=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},sf=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Zp(e)}),cf=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal(),...sf(r,l)},...lf(e,r,n),[`${n}-lg`]:{...sf(o,l)},...lf(e,o,`${n}-lg`),[`${n}-sm`]:{...sf(i,l)},...lf(e,i,`${n}-sm`)}},uf=ki("Skeleton",e=>{const{componentCls:t,calc:n}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonNodeCls:l,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:h,padding:p,marginSM:f,borderRadius:m,titleHeight:g,blockRadius:y,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:h,...Qp(c)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...Qp(u)},[`${n}-sm`]:{...Qp(d)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:h,borderRadius:y,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:h,borderRadius:y,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:f,[`+ ${o}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...cf(e),...tf(e),...nf(e),...of(e),...af(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l},\n ${s}\n `]:{...Jp(e)}}}})(fo(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=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),df=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,internalClassName:i,style:a,styles:l,active:s,children:c}=e,{getPrefixCls:u}=g.useContext(Zt),d=u("skeleton",t),[h,p]=uf(d),f=Kt(d,`${d}-element`,{[`${d}-active`]:s},h,null==r?void 0:r.root,n,o,p);return g.createElement("div",{className:f,style:null==l?void 0:l.root},g.createElement("div",{className:Kt(null==r?void 0:r.content,i||`${d}-node`),style:{...null==l?void 0:l.content,...a}},c))},hf=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},pf=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((t,n)=>g.createElement("li",{key:n,style:{width:hf(n,e)}}));return g.createElement("ul",{className:Kt(t,n),style:r},i)},ff=({prefixCls:e,className:t,width:n,style:r})=>g.createElement("h3",{className:Kt(e,t),style:{width:n,...r}});function mf(e){return Xa(e)?e:{}}function gf(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function yf(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function vf(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}const bf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,classNames:i,style:a,styles:l,children:s,avatar:c=!1,title:u=!0,paragraph:d=!0,active:h,round:p}=e,{getPrefixCls:f,direction:m,className:y,style:v,classNames:b,styles:x}=en("skeleton"),w=f("skeleton",t),[C,k]=uf(w),S={...e,avatar:c,title:u,paragraph:d},[E,$]=il([b,i],[x,l],{props:S});if(n||!("loading"in e)){const e=!!c,t=!!u,n=!!d;let i,l;if(e){const e={className:E.avatar,prefixCls:`${w}-avatar`,...gf(t,n),...mf(c),style:$.avatar};i=g.createElement("div",{className:Kt(E.header,`${w}-header`),style:$.header},g.createElement(Xp,{...e}))}if(t||n){let r,o;if(t){const t={className:E.title,prefixCls:`${w}-title`,...yf(e,n),...mf(u),style:$.title};r=g.createElement(ff,{...t})}if(n){const n={className:E.paragraph,prefixCls:`${w}-paragraph`,...vf(e,t),...mf(d),style:$.paragraph};o=g.createElement(pf,{...n})}l=g.createElement("div",{className:Kt(E.section,`${w}-section`),style:$.section},r,o)}const s=Kt(w,{[`${w}-with-avatar`]:e,[`${w}-active`]:h,[`${w}-rtl`]:"rtl"===m,[`${w}-round`]:p},E.root,y,r,o,C,k);return g.createElement("div",{className:s,style:{...$.root,...v,...a}},i,l)}return s??null};function xf(){}bf.Button=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:o,active:i,style:a,styles:l,block:s=!1,size:c,...u}=e,{getPrefixCls:d}=g.useContext(Zt),h=d("skeleton",t),[p,f]=uf(h),m=Lu(e=>c??e),y=Kt(h,`${h}-element`,{[`${h}-active`]:i,[`${h}-block`]:s},null==o?void 0:o.root,n,r,p,f);return g.createElement("div",{className:y,style:null==l?void 0:l.root},g.createElement(Xp,{prefixCls:`${h}-button`,className:null==o?void 0:o.content,style:{...null==l?void 0:l.content,...a},size:m,...u}))},bf.Avatar=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:i,style:a,styles:l,shape:s="circle",size:c,...u}=e,{getPrefixCls:d}=g.useContext(Zt),h=d("skeleton",t),[p,f]=uf(h),m=Lu(e=>c??e),y=Kt(h,`${h}-element`,{[`${h}-active`]:i},null==r?void 0:r.root,n,o,p,f);return g.createElement("div",{className:y,style:null==l?void 0:l.root},g.createElement(Xp,{prefixCls:`${h}-avatar`,className:null==r?void 0:r.content,style:{...null==l?void 0:l.content,...a},shape:s,size:m,...u}))},bf.Input=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:o,active:i,block:a,style:l,styles:s,size:c,...u}=e,{getPrefixCls:d}=g.useContext(Zt),h=d("skeleton",t),[p,f]=uf(h),m=Lu(e=>c??e),y=Kt(h,`${h}-element`,{[`${h}-active`]:i,[`${h}-block`]:a},null==r?void 0:r.root,n,o,p,f);return g.createElement("div",{className:y,style:null==s?void 0:s.root},g.createElement(Xp,{prefixCls:`${h}-input`,className:null==r?void 0:r.content,style:{...null==s?void 0:s.content,...l},size:m,...u}))},bf.Image=e=>{const{getPrefixCls:t}=g.useContext(Zt),n=t("skeleton",e.prefixCls);return g.createElement(df,{...e,internalClassName:`${n}-image`},g.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},g.createElement("title",null,"Image placeholder"),g.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`})))},bf.Node=df;const wf=g.createContext({add:xf,remove:xf});const Cf=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=g.useContext(yh);return y.createElement(mh,{onClick:n,...e},t)},kf=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=g.useContext(yh);return y.createElement(mh,{...Vu(n),loading:e,onClick:o,...t},r)};function Sf(e,t){return y.createElement("span",{className:`${e}-close-x`},t||y.createElement(Yi,{className:`${e}-close-icon`}))}const Ef=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=Fl("Modal",jl()),d=t||(null==u?void 0:u.okText),h=r||(null==u?void 0:u.cancelText),p=y.useMemo(()=>({confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:d,cancelTextLocale:h,okType:n,onOk:i,onCancel:a}),[o,l,s,d,h,n,i,a]);let f;return Ya(c)||void 0===c?(f=y.createElement(y.Fragment,null,y.createElement(Cf,null),y.createElement(kf,null)),Ya(c)&&(f=c(f,{OkBtn:kf,CancelBtn:Cf})),f=y.createElement(vh,{value:p},f)):f=c,y.createElement(zs,{disabled:!1},f)},$f=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Tf=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r,antCls:o}=e,[i,a]=$i(o,"grid"),[,l]=$i(o,"col"),s={};for(let e=r;e>=0;e--)0===e?(s[`${n}${t}-${e}`]={display:"none"},s[`${n}-push-${e}`]={insetInlineStart:"auto"},s[`${n}-pull-${e}`]={insetInlineEnd:"auto"},s[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},s[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},s[`${n}${t}-offset-${e}`]={marginInlineStart:0},s[`${n}${t}-order-${e}`]={order:0}):(s[`${n}${t}-${e}`]=[{[i("display")]:"block",display:"block"},{display:a("display"),flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"}],s[`${n}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},s[`${n}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},s[`${n}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},s[`${n}${t}-order-${e}`]={order:e});return s[`${n}${t}-flex`]={flex:l(`${t.replace(/-/,"")}-flex`)},s})(e,t),Pf=ki("Grid",e=>{const{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"}}}},()=>({})),Mf=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Of=ki("Grid",e=>{const t=fo(e,{gridColumns:24}),n=Mf(t);return delete n.xs,[$f(t),Tf(t,""),Tf(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${wn(t)})`]:{...Tf(e,n)}}))(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},()=>({}));function Nf(e){return{position:e,inset:0}}const Af=e=>{const{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`]:{...Nf("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...Nf("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:od(e)}]},If=e=>{const{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:`${wn(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...vi(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${wn(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...bi(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:wn(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...xi(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${wn(e.borderRadiusLG)} ${wn(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:`${wn(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,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Rf=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Lf=e=>{const{componentCls:t}=e,n=Mf(e),r={...n};delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(e=>({[`@media (min-width: ${wn(r[e])})`]:{width:`var(${o}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(qt(Object.keys(n).map((e,t)=>{const r=Object.keys(n)[t-1];return r?{[`${o}${e}-width`]:`var(${o}${r}-width)`}:null})),[{width:`var(${o}xs-width)`}],qt(i))}}},Bf=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return fo(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()})},zf=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${wn(e.paddingMD)} ${wn(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${wn(e.padding)} ${wn(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${wn(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${wn(e.paddingXS)} ${wn(e.padding)}`:0,footerBorderTop:e.wireframe?`${wn(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${wn(e.borderRadiusLG)} ${wn(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${wn(2*e.padding)} ${wn(2*e.padding)} ${wn(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),Df=ki("Modal",e=>{const t=Bf(e);return[If(t),Rf(t),Af(t),Bd(t,"zoom"),Lf(t)]},zf,{unitless:{titleLineHeight:!0}});let jf;const _f=e=>{jf={x:e.pageX,y:e.pageY},setTimeout(()=>{jf=null},100)};U()&&window.document.documentElement&&document.documentElement.addEventListener("click",_f,!0);const Ff=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:a,getContainer:l,style:s,width:c=520,footer:u,classNames:d,styles:h,children:p,loading:f,confirmLoading:m,zIndex:y,mousePosition:v,onOk:b,onCancel:x,okButtonProps:w,cancelButtonProps:C,destroyOnHidden:k,destroyOnClose:S,panelRef:E=null,closable:$,mask:T,modalRender:P,maskClosable:M,focusTriggerAfterClose:O,focusable:N,...A}=e,{getPopupContainer:I,getPrefixCls:R,direction:L,className:B,style:z,classNames:D,styles:j,centered:_,cancelButtonProps:F,okButtonProps:H,mask:W,focusable:K}=en("modal"),{modal:U}=g.useContext(Zt),[q,G]=g.useMemo(()=>"boolean"==typeof $?[void 0,void 0]:[null==$?void 0:$.afterClose,null==$?void 0:$.onClose],[$]),X=R("modal",t),Y=R(),[Z,Q,J]=((e,t,n,r)=>g.useMemo(()=>{const o=Pc(e,r),i=Pc(t),a={blur:!1,...i,...o,closable:o.closable??r??i.closable??!0},l=a.blur?`${n}-mask-blur`:void 0;return[!1!==a.enabled,{mask:l},!!a.closable]},[e,t,n,r]))(T,W,X,M),ee=function(e,t,n){return g.useMemo(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}({...K,...N},Z,O),te=e=>{m||(null==x||x(e),null==G||G())},ne=El(X),[re,oe]=Df(X,ne),ie=Kt(i,{[`${X}-centered`]:a??_,[`${X}-wrap-rtl`]:"rtl"===L}),ae=null===u||f?null:g.createElement(Ef,{...e,okButtonProps:{...H,...w},onOk:e=>{null==b||b(e),null==G||G()},cancelButtonProps:{...F,...C},onCancel:te}),[le,se,ce,ue]=$c(Cc(e),Cc(U),{closable:!0,closeIcon:g.createElement(Yi,{className:`${X}-close-icon`}),closeIconRender:e=>Sf(X,e)}),de=!!le&&{disabled:ce,closeIcon:se,afterClose:q,...ue},he=P?e=>g.createElement("div",{className:`${X}-render`},P(e)):void 0,fe=function(e){const t=g.useContext(wf),n=g.useRef(null);return V(r=>{if(r){const o=e?r.querySelector(e):r;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}(`.${X}-${P?"render":"container"}`),me=pe(E,fe),[ge,ye]=zc("Modal",y),ve={...e,width:c,panelRef:E,focusTriggerAfterClose:ee.focusTriggerAfterClose,focusable:ee,mask:Z,maskClosable:J,zIndex:ge},[be,xe]=il([D,d,Q],[j,h],{props:ve}),[we,Ce]=g.useMemo(()=>Xa(c)?[void 0,c]:[c,void 0],[c]),ke=g.useMemo(()=>{const e={};return Ce&&Object.keys(Ce).forEach(t=>{const n=Ce[t];Ua(n)&&(e[`--${X}-${t}-width`]=qa(n)?`${n}px`:n)}),e},[X,Ce]);return g.createElement(Gp,{form:!0,space:!0},g.createElement(Ac.Provider,{value:ye},g.createElement(Rh,{width:we,...A,zIndex:ge,getContainer:void 0===l?I:l,prefixCls:X,rootClassName:Kt(re,r,oe,ne,be.root),rootStyle:xe.root,footer:ae,visible:o,mousePosition:v??jf,onClose:te,closable:de,closeIcon:se,transitionName:Eu(Y,"zoom",e.transitionName),maskTransitionName:Eu(Y,"fade",e.maskTransitionName),mask:Z,maskClosable:J,className:Kt(re,n,B),style:{...z,...s,...ke},classNames:{...be,wrapper:Kt(be.wrapper,ie)},styles:xe,panelRef:me,destroyOnHidden:k??S,modalRender:he,focusTriggerAfterClose:ee.focusTriggerAfterClose,focusTrap:ee.trap},f?g.createElement(bf,{active:!0,title:!1,paragraph:{rows:4},className:`${X}-body-skeleton`}):p)))},Hf=Ei(["Modal","confirm"],e=>(e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}},[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${wn(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${wn(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:i,lineHeight:a},[`${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},\n ${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}}})(Bf(e)),zf,{order:-1e3}),Wf=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c,autoFocusButton:u,focusable:d,...h}=e,{infoIcon:p,successIcon:f,errorIcon:m,warningIcon:y}=en("modal");let v=n;if(void 0===n)switch(a){case"info":v=xc(p,g.createElement(oa,null));break;case"success":v=xc(f,g.createElement(Hi,null));break;case"error":v=xc(m,g.createElement(Ui,null));break;default:v=xc(y,g.createElement(ea,null))}const b=l??"confirm"===a,x=g.useMemo(()=>{const e=(null==d?void 0:d.autoFocusButton)||u;return e||null===e?e:"ok"},[u,null==d?void 0:d.autoFocusButton]),[w]=Fl("Modal"),C=c||w,k=r||(b?null==C?void 0:C.okText:null==C?void 0:C.justOkText),S=o||(null==C?void 0:C.cancelText),{closable:E}=h,{onClose:$}=Xa(E)?E:{},T=g.useMemo(()=>({autoFocusButton:x,cancelTextLocale:S,okTextLocale:k,mergedOkCancel:b,onClose:$,...h}),[x,S,k,b,$,h]),P=g.createElement(g.Fragment,null,g.createElement(bh,null),g.createElement(xh,null)),M=Ua(e.title)&&""!==e.title,O=Ua(v),N=`${i}-body`;return g.createElement("div",{className:`${i}-body-wrapper`},g.createElement("div",{className:Kt(N,{[`${N}-has-title`]:M,[`${N}-no-icon`]:!O})},v,g.createElement("div",{className:`${i}-paragraph`},M&&g.createElement("span",{className:`${i}-title`},e.title),g.createElement("div",{className:`${i}-content`},e.content))),void 0===s||Ya(s)?g.createElement(vh,{value:T},g.createElement("div",{className:`${i}-btns`},Ya(s)?s(P,{OkBtn:xh,CancelBtn:bh}):P)):s,g.createElement(Hf,{prefixCls:t}))},Kf=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:l,bodyStyle:s,closable:c=!1,onConfirm:u,styles:d,title:h,mask:p,maskClosable:f,okButtonProps:m,cancelButtonProps:y}=e,{cancelButtonProps:v,okButtonProps:b}=en("modal"),x=`${i}-confirm`,w=e.width||416,C=e.style||{},k=Kt(x,`${x}-${e.type}`,{[`${x}-rtl`]:"rtl"===o},e.className),S=g.useMemo(()=>{const e=Pc(p,f);return e.closable??(e.closable=!1),e},[p,f]),[,E]=gi(),$=g.useMemo(()=>void 0!==n?n:E.zIndexPopupBase+Rc,[n,E]);return g.createElement(Ff,{...e,className:k,wrapClassName:Kt({[`${x}-centered`]:!!e.centered},a),onCancel:()=>{null==t||t({triggerCancel:!0}),null==u||u(!1)},title:h,footer:null,transitionName:Eu(l||"","zoom",e.transitionName),maskTransitionName:Eu(l||"","fade",e.maskTransitionName),mask:S,style:C,styles:{body:s,mask:r,...d},width:w,zIndex:$,closable:c},g.createElement(Wf,{...e,confirmPrefixCls:x,okButtonProps:{...b,...m},cancelButtonProps:{...v,...y}}))},Vf=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return g.createElement(Js,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},g.createElement(Kf,{...e}))},Uf=[];let qf="";function Gf(){return qf}const Xf=e=>{var t;const{prefixCls:n,getContainer:r,direction:o}=e,i=jl(),a=g.useContext(Zt),l=Gf()||a.getPrefixCls(),s=n||`${l}-modal`;let c=r;return!1===c&&(c=void 0),y.createElement(Vf,{...e,rootPrefixCls:l,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:o??a.direction,locale:(null==(t=a.locale)?void 0:t.Modal)??i,getContainer:c})};function Yf(e){const t=Zs(),n=document.createDocumentFragment();let r,o={...e,close:l,open:!0};function i(...t){var r;t.some(e=>null==e?void 0:e.triggerCancel)&&(null==(r=e.onCancel)||r.call(e,()=>{},...t.slice(1)));for(let e=0;e<Uf.length;e++){if(Uf[e]===l){Uf.splice(e,1);break}}Tt(n).then(()=>{})}const a=e=>{clearTimeout(r),r=setTimeout(()=>{const r=t.getPrefixCls(void 0,Gf()),o=t.getIconPrefixCls(),i=t.getTheme(),a=y.createElement(Xf,{...e});$t(y.createElement(Js,{prefixCls:r,iconPrefixCls:o,theme:i},Ya(t.holderRender)?t.holderRender(a):a),n)})};function l(...t){o={...o,open:!1,afterClose:()=>{Ya(e.afterClose)&&e.afterClose(),i.apply(this,t)}},a(o)}return a(o),Uf.push(l),{destroy:l,update:function(e){o=Ya(e)?e(o):{...o,...e},a(o)}}}function Zf(e){return{...e,type:"warning"}}function Qf(e){return{...e,type:"info"}}function Jf(e){return{...e,type:"success"}}function em(e){return{...e,type:"error"}}function tm(e){return{...e,type:"confirm"}}const nm=g.forwardRef((e,t)=>{const{afterClose:n,config:r,...o}=e,[i,a]=g.useState(!0),[l,s]=g.useState(r),{direction:c,getPrefixCls:u}=g.useContext(Zt),d=u("modal"),h=u(),p=(...e)=>{var t;a(!1);e.some(e=>null==e?void 0:e.triggerCancel)&&(null==(t=l.onCancel)||t.call(l,()=>{},...e.slice(1)))};g.useImperativeHandle(t,()=>({destroy:p,update:e=>{s(t=>{const n=Ya(e)?e(t):e;return{...t,...n}})}}));const f=l.okCancel??"confirm"===l.type,[m]=Fl("Modal",Ll.Modal);return g.createElement(Vf,{prefixCls:d,rootPrefixCls:h,...l,close:p,open:i,afterClose:()=>{var e;n(),null==(e=l.afterClose)||e.call(l)},okText:l.okText||(f?null==m?void 0:m.okText:null==m?void 0:m.justOkText),direction:l.direction||c,cancelText:l.cancelText||(null==m?void 0:m.cancelText),...o})});let rm=0;const om=g.memo(g.forwardRef((e,t)=>{const[n,r]=(()=>{const[e,t]=g.useState([]);return[e,g.useCallback(e=>(t(t=>[].concat(qt(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return g.useImperativeHandle(t,()=>({patchElement:r}),[r]),g.createElement(g.Fragment,null,n)}));const im=y.createContext({});function am(e){return t=>g.createElement(Js,{theme:{token:{motion:!1,zIndexPopupBase:0}}},g.createElement(e,{...t}))}const lm=(e,t,n,r,o)=>am(i=>{const{prefixCls:a,style:l}=i,s=g.useRef(null),[c,u]=g.useState(0),[d,h]=g.useState(0),[p,f]=Y(!1,i.open),{getPrefixCls:m}=g.useContext(Zt),y=m(r||"select",a);g.useEffect(()=>{if(f(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;u(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var n;const r=o?`.${o(y)}`:`.${y}-dropdown`,i=null==(n=s.current)?void 0:n.querySelector(r);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[y]);let v={...i,style:{...l,margin:0},open:p,getPopupContainer:()=>s.current};n&&(v=n(v)),t&&(v={...v,[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:c,position:"relative",minWidth:d};return g.createElement("div",{ref:s,style:b},g.createElement(e,{...v}))}),sm=g.createContext(null);function cm(){return g.useContext(sm)}function um(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function dm(){return dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dm.apply(this,arguments)}const hm=(e,t)=>{const{prefixCls:n,disabled:r,visible:o,children:i,popupElement:a,animation:l,transitionName:s,popupStyle:c,popupClassName:u,direction:d="ltr",placement:h,builtinPlacements:p,popupMatchSelectWidth:f,popupRender:m,popupAlign:y,getPopupContainer:v,empty:b,onPopupVisibleChange:x,onPopupMouseEnter:w,onPopupMouseDown:C,onPopupBlur:k,...S}=e,E=`${n}-dropdown`;let $=a;m&&($=m(a));const T=g.useMemo(()=>p||(e=>{const t=!0===e?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"}}})(f),[p,f]),P=l?`${E}-${l}`:s,M="number"==typeof f,O=g.useMemo(()=>M?null:!1===f?"minWidth":"width",[f,M]);let N=c;M&&(N={...c,width:f});const A=g.useRef(null);return g.useImperativeHandle(t,()=>({getPopupElement:()=>{var e;return null==(e=A.current)?void 0:e.popupElement}})),g.createElement(Ms,dm({},S,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:h||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:E,popupMotion:{motionName:P},popup:g.createElement("div",{onMouseEnter:w,onMouseDown:C,onBlur:k},$),ref:A,stretch:O,popupAlign:y,popupVisible:o,getPopupContainer:v,popupClassName:Kt(u,{[`${E}-empty`]:b}),popupStyle:N,onPopupVisibleChange:x}),i)},pm=g.forwardRef(hm);function fm(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),null!=n?n:void 0!==r?r:`rc-index-key-${t}`}function mm(e){return void 0!==e&&!Number.isNaN(e)}function gm(e,t){const{label:n,value:r,options:o,groupLabel:i}=e||{},a=n||(t?"children":"label");return{label:a,value:r||"value",options:o||"options",groupLabel:i||a}}function ym(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get:()=>(nt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t)}),t}function vm(e){const{visible:t,values:n}=e;if(!t)return null;return g.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)}const bm=(e,t=1)=>{t<=0?e():(e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)})(()=>{bm(e,t-1)})};function xm(e){const{children:t,...n}=e;return t?g.createElement("div",n,t):null}const wm=g.createContext(null);function Cm(){return g.useContext(wm)}const km=g.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:o,style:i,syncWidth:a,value:l,className:s,autoComplete:c,...u}=e,{prefixCls:d,mode:h,onSearch:p,onSearchSubmit:f,onInputBlur:m,autoFocus:y,tokenWithEnter:v,placeholder:b,components:{input:x="input"}}=Cm(),{id:w,classNames:C,styles:k,open:S,activeDescendantId:E,role:$,disabled:T}=cm()||{},P=Kt(`${d}-input`,null==C?void 0:C.input,s),M=g.useRef(!1),O=g.useRef(null),N=g.useRef(null);g.useImperativeHandle(t,()=>N.current);const[A,I]=g.useState(void 0);G(()=>{const e=N.current;if(a&&e){e.style.width="0px";const t=e.scrollWidth;I(t),e.style.width=""}},[a,l]);const R={id:w,type:"combobox"===h?"text":"search",...u,ref:N,style:{...null==k?void 0:k.input,...i,"--select-input-width":A},autoFocus:y,autoComplete:c||"off",className:P,disabled:T,value:l||"",onChange:e=>{let{value:t}=e.target;if(v&&O.current&&/[\r\n]/.test(O.current)){const e=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(e,O.current)}O.current=null,p&&p(t,!0,M.current),null==n||n(e)},onKeyDown:e=>{const{key:t}=e,{value:n}=e.currentTarget;"Enter"!==t||"tags"!==h||S||M.current||!f||f(n),null==r||r(e)},onBlur:e=>{null==m||m(),null==o||o(e)},onPaste:e=>{const{clipboardData:t}=e,n=null==t?void 0:t.getData("text");O.current=n||""},onCompositionStart:()=>{M.current=!0},onCompositionEnd:e=>{if(M.current=!1,"combobox"!==h){const{value:t}=e.currentTarget;null==p||p(t,!0,!1)}},role:$||"combobox","aria-expanded":S||!1,"aria-haspopup":"listbox","aria-owns":S?`${w}_list`:void 0,"aria-autocomplete":"list","aria-controls":S?`${w}_list`:void 0,"aria-activedescendant":S?E:void 0};if(g.isValidElement(x)){const t=x.props||{},n={placeholder:e.placeholder||b,...R,...t};return Object.keys(t).forEach(e=>{const r=t[e];"function"==typeof r&&(n[e]=(...t)=>{var n;r(...t),null==(n=R[e])||n.call(R,...t)})}),n.ref=pe(x.ref,R.ref),g.cloneElement(x,n)}const L=x;return g.createElement(L,R)});function Sm(e){const{prefixCls:t,placeholder:n,displayValues:r}=Cm(),{classNames:o,styles:i}=cm(),{show:a=!0}=e;return r.length?null:g.createElement("div",{className:Kt(`${t}-placeholder`,null==o?void 0:o.placeholder),style:{visibility:a?"visible":"hidden",...null==i?void 0:i.placeholder}},n)}const Em=g.createContext(null);function $m(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Tm(e){return["string","number"].includes(typeof e)}function Pm(e){let t;return e&&(Tm(e.title)?t=e.title.toString():Tm(e.label)&&(t=e.label.toString())),t}function Mm(){return Mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mm.apply(this,arguments)}const Om=g.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:o,displayValues:i,maxLength:a,mode:l,components:s}=Cm(),{triggerOpen:c,title:u,showSearch:d,classNames:h,styles:p}=cm(),f=g.useContext(Em),[m,y]=g.useState(!1),v="combobox"===l,b=i[0],x=g.useMemo(()=>v&&o&&!m&&c?o:d?r:"",[v,o,m,c,r,d]),[w,C,k,S]=g.useMemo(()=>{let e,t,n;if(b&&(null==f?void 0:f.flattenOptions)){const r=f.flattenOptions.find(e=>e.value===b.value);(null==r?void 0:r.data)&&(e=r.data.className,t=r.data.style,n=Pm(r.data))}b&&!n&&(n=Pm(b)),void 0!==u&&(n=u);return[e,t,n,!!e||!!t]},[b,null==f?void 0:f.flattenOptions,u]);g.useEffect(()=>{v&&y(!1)},[v,o]);const E=b&&null!==b.label&&void 0!==b.label&&""!==String(b.label).trim(),$=!(v&&(null==s?void 0:s.input))?b?S?g.createElement("div",{className:Kt(`${n}-content-value`,w),style:{...x?{visibility:"hidden"}:{},...C},title:k},b.label):b.label:g.createElement(Sm,{show:!x}):null;return g.createElement("div",{className:Kt(`${n}-content`,E&&`${n}-content-has-value`,x&&`${n}-content-has-search-value`,S&&`${n}-content-has-option-style`,null==h?void 0:h.content),style:null==p?void 0:p.content,title:S?void 0:k},$,g.createElement(km,Mm({ref:t},e,{value:x,maxLength:"combobox"===l?a:void 0,onChange:t=>{var n;y(!0),null==(n=e.onChange)||n.call(e,t)}})))}),Nm=void 0;function Am(e,t){const{prefixCls:n,invalidate:r,item:o,renderItem:i,responsive:a,responsiveDisabled:l,registerSize:s,itemKey:c,className:u,style:d,children:h,display:p,order:f,component:m="div",...y}=e,v=a&&!p;function b(e){s(c,e)}g.useEffect(()=>()=>{b(null)},[]);const x=i&&o!==Nm?i(o,{index:f}):h;let w;r||(w={opacity:v?0:1,height:v?0:Nm,overflowY:v?"hidden":Nm,order:a?f:Nm,pointerEvents:v?"none":Nm,position:v?"absolute":Nm});const C={};v&&(C["aria-hidden"]=!0);let k=g.createElement(m,qd({className:Kt(!r&&n,u),style:{...w,...d}},C,y,{ref:t}),x);return a&&(k=g.createElement(Ht,{onResize:({offsetWidth:e})=>{b(e)},disabled:l},k)),k}const Im=g.forwardRef(Am);function Rm(){const e=g.useRef(null);return t=>{e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)mt(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}(()=>{Pt.unstable_batchedUpdates(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Lm(e,t){const[n,r]=g.useState(t);return[n,V(t=>{e(()=>{r(t)})})]}const Bm=y.createContext(null),zm=(e,t)=>{const n=g.useContext(Bm);if(!n){const{component:n="div",...r}=e;return g.createElement(n,qd({},r,{ref:t}))}const{className:r,...o}=n,{className:i,...a}=e;return g.createElement(Bm.Provider,{value:null},g.createElement(Im,qd({ref:t,className:Kt(r,i)},o,a)))},Dm=g.forwardRef(zm),jm="responsive",_m="invalidate";function Fm(e){return`+ ${e.length} ...`}function Hm(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:o,renderRawItem:i,itemKey:a,itemWidth:l=10,ssr:s,style:c,className:u,maxCount:d,renderRest:h,renderRawRest:p,prefix:f,suffix:m,component:y="div",itemComponent:v,onVisibleChange:b,...x}=e,w="full"===s,C=Rm(),[k,S]=Lm(C,null),E=k||0,[$,T]=Lm(C,new Map),[P,M]=Lm(C,0),[O,N]=Lm(C,0),[A,I]=Lm(C,0),[R,L]=Lm(C,0),[B,z]=g.useState(null),[D,j]=g.useState(null),_=g.useMemo(()=>null===D&&w?Number.MAX_SAFE_INTEGER:D||0,[D,k]),[F,H]=g.useState(!1),W=`${n}-item`,K=Math.max(P,O),V=d===jm,U=r.length&&V,q=d===_m,X=U||"number"==typeof d&&r.length>d,Y=g.useMemo(()=>{let e=r;return U?e=null===k&&w?r:r.slice(0,Math.min(r.length,E/l)):"number"==typeof d&&(e=r.slice(0,d)),e},[r,l,k,d,U]),Z=g.useMemo(()=>U?r.slice(_+1):r.slice(Y.length),[r,Y,U,_]),Q=g.useCallback((e,t)=>"function"==typeof a?a(e):(a&&(null==e?void 0:e[a]))??t,[a]),J=g.useCallback(o||(e=>e),[o]);function ee(e,t,n){(D!==e||void 0!==t&&t!==B)&&(j(e),n||(H(e<r.length-1),null==b||b(e)),void 0!==t&&z(t))}function te(e,t){T(n=>{const r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function ne(e){return $.get(Q(Y[e],e))}G(()=>{if(E&&"number"==typeof K&&Y){let e=A+R;const t=Y.length,n=t-1;if(!t)return void ee(0,null);for(let r=0;r<t;r+=1){let t=ne(r);if(w&&(t=t||0),void 0===t){ee(r-1,void 0,!0);break}if(e+=t,0===n&&e<=E||r===n-1&&e+ne(n)<=E){ee(n,null);break}if(e+K>E){ee(r-1,e-t-R+O);break}}m&&ne(0)+R>E&&z(null)}},[E,$,O,A,R,Q,Y]);const re=F&&!!Z.length;let oe={};null!==B&&U&&(oe={position:"absolute",top:0,insetInlineStart:B});const ie={prefixCls:W,responsive:U,component:v,invalidate:q},ae=i?(e,t)=>{const n=Q(e,t);return g.createElement(Bm.Provider,{key:n,value:{...ie,order:t,item:e,itemKey:n,registerSize:te,display:t<=_}},i(e,t))}:(e,t)=>{const n=Q(e,t);return g.createElement(Im,qd({},ie,{order:t,key:n,item:e,renderItem:J,itemKey:n,registerSize:te,display:t<=_}))},le={order:re?_:Number.MAX_SAFE_INTEGER,className:`${W}-rest`,registerSize:function(e,t){N(t),M(O)},display:re},se=h||Fm,ce=p?g.createElement(Bm.Provider,{value:{...ie,...le}},p(Z)):g.createElement(Im,qd({},ie,le),"function"==typeof se?se(Z):se),ue=g.createElement(y,qd({className:Kt(!q&&n,u),style:c,ref:t},x),f&&g.createElement(Im,qd({},ie,{responsive:V,responsiveDisabled:!U,order:-1,className:`${W}-prefix`,registerSize:function(e,t){I(t)},display:!0}),f),Y.map(ae),X?ce:null,m&&g.createElement(Im,qd({},ie,{responsive:V,responsiveDisabled:!U,order:_,className:`${W}-suffix`,registerSize:function(e,t){L(t)},display:!0,style:oe}),m));return V?g.createElement(Ht,{onResize:function(e,t){S(t.clientWidth)},disabled:!U},ue):ue}const Wm=g.forwardRef(Hm);Wm.Item=Dm,Wm.RESPONSIVE=jm,Wm.INVALIDATE=_m;const Km=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:o,children:i,onMouseDown:a,onClick:l}=e,s="function"==typeof r?r(o):r;return g.createElement("span",{className:t,onMouseDown:e=>{e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==s?s:g.createElement("span",{className:Kt(t.split(/\s+/).map(e=>`${e}-icon`))},i))};function Vm(){return Vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vm.apply(this,arguments)}function Um(e){return e.key??e.value}const qm=e=>{e.preventDefault(),e.stopPropagation()},Gm=g.forwardRef(function({inputProps:e},t){const{prefixCls:n,displayValues:r,searchValue:o,mode:i,onSelectorRemove:a,removeIcon:l}=Cm(),{disabled:s,showSearch:c,triggerOpen:u,rawOpen:d,toggleOpen:h,autoClearSearchValue:p,tagRender:f,maxTagPlaceholder:m,maxTagTextLength:y,maxTagCount:v,classNames:b,styles:x}=cm(),w=`${n}-selection-item`;let C=o;d||"multiple"!==i||!1===p||(C="");const k=c&&C||"",S=c&&!s,E=l??"×",$=m??(e=>`+ ${e.length} ...`),T=f,P=(e,t,n,r,o)=>g.createElement("span",{title:Pm(e),className:Kt(w,{[`${w}-disabled`]:n},null==b?void 0:b.item),style:null==x?void 0:x.item},g.createElement("span",{className:Kt(`${w}-content`,null==b?void 0:b.itemContent),style:null==x?void 0:x.itemContent},t),r&&g.createElement(Km,{className:Kt(`${w}-remove`,null==b?void 0:b.itemRemove),style:null==x?void 0:x.itemRemove,onMouseDown:qm,onClick:o,customizeIcon:E},"×")),M=(e,t,n,r,o,i,a)=>g.createElement("span",{onMouseDown:e=>{qm(e),h(!u)}},T({label:t,value:e,index:null==a?void 0:a.index,disabled:n,closable:r,onClose:o,isMaxTag:!!i}));return g.createElement(Wm,{prefixCls:`${n}-content`,className:null==b?void 0:b.content,style:null==x?void 0:x.content,prefix:!r.length&&!k&&g.createElement(Sm,null),data:r,renderItem:(e,t)=>{const{disabled:n,label:r,value:o}=e,i=!s&&!n;let l=r;if("number"==typeof y&&("string"==typeof r||"number"==typeof r)){const e=String(l);e.length>y&&(l=`${e.slice(0,y)}...`)}const c=t=>{t&&t.stopPropagation(),(e=>{null==a||a(e)})(e)};return"function"==typeof T?M(o,l,n,i,c,void 0,t):P(e,l,n,i,c)},renderRest:e=>{if(!r.length)return null;const t="function"==typeof $?$(e):$;return"function"==typeof T?M(void 0,t,!1,!1,void 0,!0):P({title:t},t,!1)},suffix:g.createElement(km,Vm({ref:t,disabled:s,readOnly:!S},e,{value:k||"",syncWidth:!0})),itemKey:Um,maxCount:v})}),Xm=g.forwardRef(function(e,t){const{multiple:n,onInputKeyDown:r,tabIndex:o}=Cm(),i=cm(),{showSearch:a}=i,l={...ct(i,{aria:!0}),onKeyDown:r,readOnly:!a,tabIndex:o};return n?g.createElement(Gm,{ref:t,inputProps:l}):g.createElement(Om,{ref:t,inputProps:l})});function Ym(){return Ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ym.apply(this,arguments)}const Zm=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],Qm=g.forwardRef(function(e,t){const{prefixCls:n,className:r,style:o,prefix:i,suffix:a,clearIcon:l,children:s,multiple:c,displayValues:u,placeholder:d,mode:h,searchValue:p,onSearch:f,onSearchSubmit:m,onInputBlur:y,maxLength:v,autoFocus:b,onMouseDown:x,onClearMouseDown:w,onInputKeyDown:C,onSelectorRemove:k,tokenWithEnter:S,components:E,...$}=e,{triggerOpen:T,toggleOpen:P,showSearch:M,disabled:O,loading:N,classNames:A,styles:I}=cm(),R=g.useRef(null),L=g.useRef(null),B=V(e=>{const{which:t}=e,n=L.current instanceof HTMLTextAreaElement;if(n||!T||t!==qe.UP&&t!==qe.DOWN||e.preventDefault(),C&&C(e),n&&!T&&~[qe.UP,qe.DOWN,qe.LEFT,qe.RIGHT].indexOf(t))return;var r;e.ctrlKey||e.altKey||e.metaKey||(!(r=t)||[qe.ESC,qe.SHIFT,qe.BACKSPACE,qe.TAB,qe.WIN_KEY,qe.ALT,qe.META,qe.WIN_KEY_RIGHT,qe.CTRL,qe.SEMICOLON,qe.EQUALS,qe.CAPS_LOCK,qe.CONTEXT_MENU,qe.UP,qe.LEFT,qe.RIGHT,qe.F1,qe.F2,qe.F3,qe.F4,qe.F5,qe.F6,qe.F7,qe.F8,qe.F9,qe.F10,qe.F11,qe.F12].includes(r))||P(!0)});g.useImperativeHandle(t,()=>({focus:e=>{var t,n;null==(n=(t=L.current||R.current).focus)||n.call(t,e)},blur:()=>{var e,t;null==(t=(e=L.current||R.current).blur)||t.call(e)},nativeElement:Ne(R.current)}));const z=V(e=>{var t;if(!O){const n=Ne(L.current);e.nativeEvent._ori_target=n;const r=n===e.target||(null==n?void 0:n.contains(e.target));n&&!r&&e.preventDefault();const o=T&&!c&&("combobox"===h||M)||T&&c&&r;e.nativeEvent._select_lazy?T&&P(!1):(null==(t=L.current)||t.focus(),o||P())}null==x||x(e)}),{root:D}=E,j=at($,Zm),_=ct(j,{aria:!0}),F=Object.keys(_),H={...e,onInputKeyDown:B};if(D){const e=D.props||{},t={...e,...j};return Object.keys(e).forEach(n=>{const r=e[n],o=j[n];"function"==typeof r&&"function"==typeof o&&(t[n]=(...e)=>{o(...e),r(...e)})}),g.isValidElement(D)?g.cloneElement(D,{...t,ref:pe(D.ref,R)}):g.createElement(D,Ym({},t,{ref:R}))}return g.createElement(wm.Provider,{value:H},g.createElement("div",Ym({},at(j,F),{ref:R,className:r,style:o,onMouseDown:z}),g.createElement(xm,{className:Kt(`${n}-prefix`,null==A?void 0:A.prefix),style:null==I?void 0:I.prefix},i),g.createElement(Xm,{ref:L}),g.createElement(xm,{className:Kt(`${n}-suffix`,{[`${n}-suffix-loading`]:N},null==A?void 0:A.suffix),style:null==I?void 0:I.suffix},a),l&&g.createElement(xm,{className:Kt(`${n}-clear`,null==A?void 0:A.clear),style:null==I?void 0:I.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,null==w||w(e)}},l),s))});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)}const eg=e=>"tags"===e||"multiple"===e,tg=g.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:o,styles:i,classNames:a,showSearch:l,tagRender:s,showScrollBar:c="optional",direction:u,omitDomProps:d,displayValues:h,onDisplayValuesChange:p,emptyOptions:f,notFoundContent:m="Not Found",onClear:y,maxCount:v,placeholder:b,mode:x,disabled:w,loading:C,getInputElement:k,getRawInputElement:S,open:E,defaultOpen:$,onPopupVisibleChange:T,activeValue:P,onActiveValueChange:M,activeDescendantId:O,searchValue:N,autoClearSearchValue:A,onSearch:I,onSearchSplit:R,tokenSeparators:L,allowClear:B,prefix:z,suffix:D,suffixIcon:j,clearIcon:_,OptionList:F,animation:H,transitionName:W,popupStyle:K,popupClassName:U,popupMatchSelectWidth:q,popupRender:G,popupAlign:X,placement:Z,builtinPlacements:Q,getPopupContainer:J,showAction:ee=[],onFocus:te,onBlur:ne,onKeyUp:re,onKeyDown:oe,onMouseDown:ie,components:ae,...le}=e,se=eg(x),ce=g.useRef(null),ue=g.useRef(null),de=g.useRef(null),[he,pe]=g.useState(!1);g.useImperativeHandle(t,()=>{var e,t;return{focus:null==(e=ce.current)?void 0:e.focus,blur:null==(t=ce.current)?void 0:t.blur,scrollTo:e=>{var t;return null==(t=de.current)?void 0:t.scrollTo(e)},nativeElement:Ne(ce.current)}});const fe=function(e,t,n){return g.useMemo(()=>{let{root:r,input:o}=e||{};return n&&(r=n()),t&&(o=t()),{root:r,input:o}},[e,t,n])}(ae,k,S),me=g.useMemo(()=>{var e;if("combobox"!==x)return N;const t=null==(e=h[0])?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[N,x,h]),ge="combobox"===x&&"function"==typeof k&&k()||null,ye=!m&&f,[ve,be,xe,we]=function(e,t,n,r){const[o,i]=g.useState(!1);g.useEffect(()=>{i(!0)},[]);const[a,l]=Y(e,t),[s,c]=g.useState(!1),u=!!o&&a,d=r(u),h=g.useRef(0),p=V(e=>{n&&d!==e&&n(e),l(e)}),f=V((e,t={})=>{const{cancelFun:n}=t;h.current+=1;const r=h.current,o="boolean"==typeof e?e:!d;function i(){r!==h.current||(null==n?void 0:n())||(p(o),c(!1))}c(!o),o?i():bm(()=>{i()})});return[u,d,f,s]}($||!1,E,T,e=>!w&&!ye&&e),Ce=g.useMemo(()=>(L||[]).some(e=>["\n","\r\n"].includes(e)),[L]),ke=(e,t,n)=>{if(se&&mm(v)&&h.length>=v)return;let r=!0,o=e;null==M||M(null);const i=((e,t,n)=>{if(!t||!t.length)return null;let r=!1;const o=(e,[t,...n])=>{if(!t)return[e];const i=e.split(t);return r=r||i.length>1,i.reduce((e,t)=>[...e,...o(t,n)],[]).filter(Boolean)},i=o(e,t);return r?void 0!==n?i.slice(0,n):i:null})(e,L,mm(v)?v-h.length:void 0),a=n?null:i;return"combobox"!==x&&a&&(o="",null==R||R(a),xe(!1),r=!1),I&&me!==o&&I(o,{source:t?"typing":"effect"}),e&&t&&r&&xe(!0),r};g.useEffect(()=>{ve||se||"combobox"===x||ke("",!1,!1)},[ve]),g.useEffect(()=>{w&&(xe(!1),pe(!1))},[w,be]);const[Se,Ee]=function(e=250){const t=g.useRef(null),n=g.useRef(null);return g.useEffect(()=>()=>{window.clearTimeout(n.current)},[]),[()=>t.current,function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}]}(),$e=g.useRef(!1),Te=V(e=>{const t=h.filter(t=>t!==e);p(t,{type:"remove",values:[e]})}),Pe=()=>{var e;return[Ne(ce.current),null==(e=ue.current)?void 0:e.getPopupElement()]};!function(e,t,n,r){const o=V(o=>{if(r)return;let i=o.target;i.shadowRoot&&o.composed&&(i=o.composedPath()[0]||i),o._ori_target&&(i=o._ori_target),t&&!um(e(),i)&&n(!1)});g.useEffect(()=>(window.addEventListener("mousedown",o),()=>window.removeEventListener("mousedown",o)),[o])}(Pe,be,xe,!!fe.root);const Me=g.useRef(!1),Oe=()=>{be&&!Me.current&&xe(!1,{cancelFun:()=>um(Pe(),document.activeElement)})},Ae=(e,...t)=>{var n;const{target:r}=e,o=null==(n=ue.current)?void 0:n.getPopupElement();(null==o?void 0:o.contains(r))&&xe&&xe(!0),null==ie||ie(e,...t),Me.current=!0,bm(()=>{Me.current=!1})},[,Ie]=g.useState({});let Re;fe.root&&(Re=e=>{xe(e)});const Le=g.useMemo(()=>({...e,notFoundContent:m,open:be,triggerOpen:be,rawOpen:ve,id:n,showSearch:l,multiple:se,toggleOpen:xe,showScrollBar:c,styles:i,classNames:a,lockOptions:we}),[e,m,xe,n,l,se,be,ve,c,i,a,we]),Be=g.useMemo(()=>{const e=D??j;return"function"==typeof e?e({searchValue:me,open:be,focused:he,showSearch:l,loading:C}):e},[D,j,me,be,he,l,C]),{allowClear:ze,clearIcon:De}=((e,t,n,r,o=!1,i,a)=>{const l=g.useMemo(()=>"boolean"==typeof n?{allowClear:n}:n&&"object"==typeof n?n:{allowClear:!1},[n]);return g.useMemo(()=>{const e=!o&&!1!==l.allowClear&&(t.length||i)&&!("combobox"===a&&""===i);return{allowClear:e,clearIcon:e?l.clearIcon||r||"×":null}},[l,r,o,t.length,i,a])})(0,h,B,_,w,me,x),je=g.createElement(F,{ref:de}),_e=Kt(r,o,{[`${r}-focused`]:he,[`${r}-multiple`]:se,[`${r}-single`]:!se,[`${r}-allow-clear`]:ze,[`${r}-show-arrow`]:null!=Be,[`${r}-disabled`]:w,[`${r}-loading`]:C,[`${r}-open`]:be,[`${r}-customize-input`]:ge,[`${r}-show-search`]:l});let Fe=g.createElement(Qm,Jm({},le,{ref:ce,prefixCls:r,className:_e,focused:he,prefix:z,suffix:Be,clearIcon:De,multiple:se,mode:x,displayValues:h,placeholder:b,searchValue:me,activeValue:P,onSearch:ke,onSearchSubmit:e=>{e&&e.trim()&&I(e,{source:"submit"})},onInputBlur:()=>{$e.current=!1},onFocus:e=>{pe(!0),w||(ee.includes("focus")&&xe(!0),null==te||te(e))},onBlur:e=>{pe(!1),me&&("tags"===x?I(me,{source:"submit"}):"multiple"===x&&I("",{source:"blur"})),Oe(),w||null==ne||ne(e)},onClearMouseDown:()=>{var e;null==y||y(),null==(e=ce.current)||e.focus(),p([],{type:"clear",values:h}),ke("",!1,!1)},onKeyDown:e=>{var t;const n=Se(),{key:r}=e,o="Enter"===r,i=" "===r;if(o||i){const t="combobox"===x;(i&&!(t||l)||o&&!t)&&e.preventDefault(),be||xe(!0)}if(Ee(!!me),"Backspace"===r&&!n&&se&&!me&&h.length){const e=[...h];let t=null;for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:"remove",values:[t]})}!be||o&&$e.current||i||(o&&($e.current=!0),null==(t=de.current)||t.onKeyDown(e)),null==oe||oe(e)},onKeyUp:(e,...t)=>{var n;be&&(null==(n=de.current)||n.onKeyUp(e,...t)),"Enter"===e.key&&($e.current=!1),null==re||re(e,...t)},onSelectorRemove:Te,tokenWithEnter:Ce,onMouseDown:Ae,components:fe}));return Fe=g.createElement(pm,{ref:ue,disabled:w,prefixCls:r,visible:be,popupElement:je,animation:H,transitionName:W,popupStyle:K,popupClassName:U,direction:u,popupMatchSelectWidth:q,popupRender:G,popupAlign:X,placement:Z,builtinPlacements:Q,getPopupContainer:J,empty:f,onPopupVisibleChange:Re,onPopupMouseEnter:function(){Ie({})},onPopupMouseDown:Ae,onPopupBlur:Oe},Fe),g.createElement(sm.Provider,{value:Le},g.createElement(vm,{visible:he&&!be,values:h}),Fe)}),ng=()=>null;ng.isSelectOptGroup=!0;const rg=()=>null;rg.isSelectOption=!0;const og=g.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:o,onInnerResize:i,innerProps:a,rtl:l,extra:s},c)=>{let u={},d={display:"flex",flexDirection:"column"};return void 0!==t&&(u={height:e,position:"relative",overflow:"hidden"},d={...d,transform:`translateY(${t}px)`,[l?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),g.createElement("div",{style:u},g.createElement(Ht,{onResize:({offsetHeight:e})=>{e&&i&&i()}},g.createElement("div",qd({style:d,className:Kt({[`${o}-holder-inner`]:o}),ref:c},a),r,s)))});function ig({children:e,setRef:t}){const n=g.useCallback(e=>{t(e)},[]);return g.cloneElement(e,{ref:n})}function ag(e,t,n){const[r,o]=g.useState(e),[i,a]=g.useState(null);return g.useEffect(()=>{const n=function(e,t,n){const r=e.length,o=t.length;let i,a;if(0===r&&0===o)return null;r<o?(i=e,a=t):(i=t,a=e);const l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}let c=null,u=1!==Math.abs(r-o);for(let e=0;e<a.length;e+=1){const t=s(i[e]);if(t!==s(a[e])){c=e,u=u||t!==s(a[e+1]);break}}return null===c?null:{index:c,multiple:u}}(r||[],e||[],t);void 0!==(null==n?void 0:n.index)&&a(e[n.index]),o(e)},[e]),[i]}og.displayName="Filler";const lg="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),sg=(e,t,n,r)=>{const o=g.useRef(!1),i=g.useRef(null);const a=g.useRef({top:e,bottom:t,left:n,right:r});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=r,(e,t,n=!1)=>{const r=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&r?(clearTimeout(i.current),o.current=!1):r&&!o.current||(clearTimeout(i.current),o.current=!0,i.current=setTimeout(()=>{o.current=!1},50)),!o.current&&r}};function cg(e,t,n,r,o,i,a){const l=g.useRef(0),s=g.useRef(null),c=g.useRef(null),u=g.useRef(!1),d=sg(t,n,r,o);const h=g.useRef(null),p=g.useRef(null);return[function(t){if(!e)return;mt.cancel(p.current),p.current=mt(()=>{h.current=null},2);const{deltaX:n,deltaY:r,shiftKey:o}=t;let f=n,m=r;("sx"===h.current||!h.current&&o&&r&&!n)&&(f=r,m=0,h.current="sx");const g=Math.abs(f),y=Math.abs(m);null===h.current&&(h.current=i&&g>y?"x":"y"),"y"===h.current?function(e,t){if(mt.cancel(s.current),d(!1,t))return;const n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,c.current=t,lg||n.preventDefault(),s.current=mt(()=>{const e=u.current?10:1;a(l.current*e,!1),l.current=0}))}(t,m):function(e,t){a(t,!0),lg||e.preventDefault()}(t,f)},function(t){e&&(u.current=t.detail===c.current)}]}class ug{constructor(){o(this,"maps"),o(this,"id",0),o(this,"diffRecords",new Map),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 dg(e){const t=parseFloat(e);return isNaN(t)?0:t}const hg=14/15;function pg(e){return Math.floor(e**.5)}function fg(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function mg(e,t,n,r,o,i,a,l,s){const c=g.useRef(),[u,d]=g.useState(null);return G(()=>{if(u&&u.times<10){if(!e.current)return void d(e=>({...e}));a();const{targetAlign:s,originAlign:c,index:h,offset:p}=u,f=function(e,t){const n="function"==typeof e?e(t):e;return Number.isFinite(n)?n:0}(p,{getSize:i}),m=e.current.clientHeight;let g=!1,y=s,v=null;if(m){const i=s||c;let a=0,d=0,p=0;const b=Math.min(t.length-1,h);for(let e=0;e<=b;e+=1){const i=o(t[e]);d=a;const l=n.get(i);p=d+(void 0===l?r:l),a=p}let x="top"===i?f:m-f;for(let e=b;e>=0;e-=1){const r=o(t[e]),i=n.get(r);if(void 0===i){g=!0;break}if(x-=i,x<=0)break}switch(i){case"top":v=d-f;break;case"bottom":v=p-m+f;break;default:{const{scrollTop:t}=e.current;d<t?y="top":p>t+m&&(y="bottom")}}null!==v&&l(v),v!==u.lastTop&&(g=!0)}g&&d({...u,times:u.times+1,targetAlign:y,lastTop:v})}},[u,e.current]),e=>{if(null!=e){if(mt.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"==typeof e){let n;const{align:r}=e;"index"in e?({index:n}=e):n=t.findIndex(t=>o(t)===e.key);const{offset:i=0}=e;d({times:0,index:n,offset:i,originAlign:r})}}else s()}}const gg=g.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:o,scrollRange:i,onStartMove:a,onStopMove:l,onScroll:s,horizontal:c,spinSize:u,containerSize:d,style:h,thumbStyle:p,showScrollBar:f}=e,[m,y]=g.useState(!1),[v,b]=g.useState(null),[x,w]=g.useState(null),C=!r,k=g.useRef(),S=g.useRef(),[E,$]=g.useState(f),T=g.useRef(),P=()=>{!0!==f&&!1!==f&&(clearTimeout(T.current),$(!0),T.current=setTimeout(()=>{$(!1)},3e3))},M=i-d||0,O=d-u||0,N=g.useMemo(()=>{if(0===o||0===M)return 0;return o/M*O},[o,M,O]),A=g.useRef({top:N,dragging:m,pageY:v,startTop:x});A.current={top:N,dragging:m,pageY:v,startTop:x};const I=e=>{y(!0),b(fg(e,c)),w(A.current.top),a(),e.stopPropagation(),e.preventDefault()};g.useEffect(()=>{const e=e=>{e.preventDefault()},t=k.current,n=S.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",I,{passive:!1}),()=>{t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",I)}},[]);const R=g.useRef();R.current=M;const L=g.useRef();L.current=O,g.useEffect(()=>{if(m){let e;const t=t=>{const{dragging:n,pageY:r,startTop:o}=A.current;mt.cancel(e);const i=k.current.getBoundingClientRect(),a=d/(c?i.width:i.height);if(n){const n=(fg(t,c)-r)*a;let i=o;!C&&c?i-=n:i+=n;const l=R.current,u=L.current,d=u?i/u:0;let h=Math.ceil(d*l);h=Math.max(h,0),h=Math.min(h,l),e=mt(()=>{s(h,c)})}},n=()=>{y(!1),l()};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),mt.cancel(e)}}},[m]),g.useEffect(()=>(P(),()=>{clearTimeout(T.current)}),[o]),g.useImperativeHandle(t,()=>({delayHidden:P}));const B=`${n}-scrollbar`,z={position:"absolute",visibility:E?null:"hidden"},D={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(z,{height:8,left:0,right:0,bottom:0}),Object.assign(D,{height:"100%",width:u,[C?"left":"right"]:N})):(Object.assign(z,{width:8,top:0,bottom:0,[C?"right":"left"]:0}),Object.assign(D,{width:"100%",height:u,top:N})),g.createElement("div",{ref:k,className:Kt(B,{[`${B}-horizontal`]:c,[`${B}-vertical`]:!c,[`${B}-visible`]:E}),style:{...z,...h},onMouseDown:e=>{e.stopPropagation(),e.preventDefault()},onMouseMove:P},g.createElement("div",{ref:S,className:Kt(`${B}-thumb`,{[`${B}-thumb-moving`]:m}),style:{...D,...p},onMouseDown:I}))});function yg(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}const vg=[],bg={overflowY:"auto",overflowAnchor:"none"};function xg(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:o,itemHeight:i,fullHeight:a=!0,style:l,data:s,children:c,itemKey:u,virtual:d,direction:h,scrollWidth:p,component:f="div",onScroll:m,onVirtualScroll:y,onVisibleChange:v,innerProps:b,extraRender:x,styles:w,showScrollBar:C="optional",...k}=e,S=g.useCallback(e=>"function"==typeof u?u(e):null==e?void 0:e[u],[u]),[E,$,T,P]=function(e){const[t,n]=g.useState(0),r=g.useRef(new Map),o=g.useRef(new ug),i=g.useRef(0);function a(){i.current+=1}function l(e=!1){a();const t=()=>{let e=!1;r.current.forEach((t,n)=>{if(t&&t.offsetParent){const{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),l=r+dg(i)+dg(a);o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&n(e=>e+1)};if(e)t();else{i.current+=1;const e=i.current;Promise.resolve().then(()=>{e===i.current&&t()})}}return g.useEffect(()=>a,[]),[function(t,n){const o=e(t);r.current.get(o),n?(r.current.set(o,n),l()):r.current.delete(o)},l,o.current,t]}(S),M=!(!1===d||!o||!i),O=g.useMemo(()=>Object.values(T.maps).reduce((e,t)=>e+t,0),[T.id,T.maps]),N=M&&s&&(Math.max(i*s.length,O)>o||!!p),A="rtl"===h,I=Kt(n,{[`${n}-rtl`]:A},r),R=s||vg,L=g.useRef(),B=g.useRef(),z=g.useRef(),[D,j]=g.useState(0),[_,F]=g.useState(0),[H,W]=g.useState(!1),K=()=>{W(!0)},U=()=>{W(!1)},q={getKey:S};function X(e){j(t=>{let n;n="function"==typeof e?e(t):e;const r=function(e){let t=e;Number.isNaN(ue.current)||(t=Math.min(t,ue.current));return t=Math.max(t,0),t}(n);return L.current.scrollTop=r,r})}const Y=g.useRef({start:0,end:R.length}),Z=g.useRef(),[Q]=ag(R,S);Z.current=Q;const{scrollHeight:J,start:ee,end:te,offset:ne}=g.useMemo(()=>{var e;if(!M)return{scrollHeight:void 0,start:0,end:R.length-1,offset:void 0};if(!N)return{scrollHeight:(null==(e=B.current)?void 0:e.offsetHeight)||0,start:0,end:R.length-1,offset:void 0};let t,n,r,a=0;const l=R.length;for(let e=0;e<l;e+=1){const l=R[e],s=S(l),c=T.get(s),u=a+(void 0===c?i:c);u>=D&&void 0===t&&(t=e,n=a),u>D+o&&void 0===r&&(r=e),a=u}return void 0===t&&(t=0,n=0,r=Math.ceil(o/i)),void 0===r&&(r=R.length-1),r=Math.min(r+1,R.length-1),{scrollHeight:a,start:t,end:r,offset:n}},[N,M,D,R,P,o]);Y.current.start=ee,Y.current.end=te,g.useLayoutEffect(()=>{const e=T.getRecord();if(1===e.size){const t=Array.from(e.keys())[0],n=e.get(t),r=R[ee];if(r&&void 0===n){if(S(r)===t){const e=T.get(t)-i;X(t=>t+e)}}}T.resetRecord()},[J]);const[re,oe]=g.useState({width:0,height:o}),ie=g.useRef(),ae=g.useRef(),le=g.useMemo(()=>yg(re.width,p),[re.width,p]),se=g.useMemo(()=>yg(re.height,J),[re.height,J]),ce=J-o,ue=g.useRef(ce);ue.current=ce;const de=D<=0,he=D>=ce,pe=_<=0,fe=_>=p,me=sg(de,he,pe,fe),ge=()=>({x:A?-_:_,y:D}),ye=g.useRef(ge()),ve=V(e=>{if(y){const t={...ge(),...e};ye.current.x===t.x&&ye.current.y===t.y||(y(t),ye.current=t)}});function be(e,t){const n=e;t?(Pt.flushSync(()=>{F(n)}),ve()):X(n)}const xe=e=>{let t=e;const n=p?p-re.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},we=V((e,t)=>{t?(Pt.flushSync(()=>{F(t=>xe(t+(A?-e:e)))}),ve()):X(t=>t+e)}),[Ce,ke]=cg(M,de,he,pe,fe,!!p,we);!function(e,t,n){const r=g.useRef(!1),o=g.useRef(0),i=g.useRef(0),a=g.useRef(null),l=g.useRef(null);let s;const c=e=>{if(r.current){const t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY);let a=o.current-t,s=i.current-r;const c=Math.abs(a)>Math.abs(s);c?o.current=t:i.current=r;const u=n(c,c?a:s,!1,e);u&&e.preventDefault(),clearInterval(l.current),u&&(l.current=setInterval(()=>{c?a*=hg:s*=hg;const e=Math.floor(c?a:s);(!n(c,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)},16))}},u=()=>{r.current=!1,s()},d=e=>{s(),1!==e.touches.length||r.current||(r.current=!0,o.current=Math.ceil(e.touches[0].pageX),i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};s=()=>{a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},G(()=>(e&&t.current.addEventListener("touchstart",d,{passive:!0}),()=>{var e;null==(e=t.current)||e.removeEventListener("touchstart",d),s(),clearInterval(l.current)}),[e])}(M,L,(e,t,n,r)=>{const o=r;return!me(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),Ce({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){g.useEffect(()=>{const r=t.current;if(e&&r){let e,t,o=!1;const i=()=>{mt.cancel(e)},a=()=>{i(),e=mt(()=>{n(t),a()})},l=()=>{o=!1,i()},s=e=>{if(e.target.draggable||0!==e.button)return;const t=e;t._virtualHandled||(t._virtualHandled=!0,o=!0)},c=e=>{if(o){const n=fg(e,!1),{top:o,bottom:l}=r.getBoundingClientRect();n<=o?(t=-pg(o-n),a()):n>=l?(t=pg(n-l),a()):i()}};return r.addEventListener("mousedown",s),r.ownerDocument.addEventListener("mouseup",l),r.ownerDocument.addEventListener("mousemove",c),r.ownerDocument.addEventListener("dragend",l),()=>{r.removeEventListener("mousedown",s),r.ownerDocument.removeEventListener("mouseup",l),r.ownerDocument.removeEventListener("mousemove",c),r.ownerDocument.removeEventListener("dragend",l),i()}}},[e])}(N,L,e=>{X(t=>t+e)}),G(()=>{function e(e){const t=de&&e.detail<0,n=he&&e.detail>0;!M||t||n||e.preventDefault()}const t=L.current;return t.addEventListener("wheel",Ce,{passive:!1}),t.addEventListener("DOMMouseScroll",ke,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),()=>{t.removeEventListener("wheel",Ce),t.removeEventListener("DOMMouseScroll",ke),t.removeEventListener("MozMousePixelScroll",e)}},[M,de,he]),G(()=>{if(p){const e=xe(_);F(e),ve({x:e})}},[re.width,p]);const Se=()=>{var e,t;null==(e=ie.current)||e.delayHidden(),null==(t=ae.current)||t.delayHidden()},Ee=function(e,t,n,r){const[o,i]=g.useMemo(()=>[new Map,[]],[e,n.id,r]);return(a,l=a)=>{let s=o.get(a),c=o.get(l);if(void 0===s||void 0===c){const u=e.length;for(let d=i.length;d<u;d+=1){const u=e[d],h=t(u);o.set(h,d);const p=n.get(h)??r;if(i[d]=(i[d-1]||0)+p,h===a&&(s=d),h===l&&(c=d),void 0!==s&&void 0!==c)break}}return{top:i[s-1]||0,bottom:i[c]}}}(R,S,T,i),$e=mg(L,R,T,i,S,Ee,()=>$(!0),X,Se);g.useImperativeHandle(t,()=>({nativeElement:z.current,getScrollInfo:ge,scrollTo:e=>{var t;(t=e)&&"object"==typeof t&&("left"in t||"top"in t)?(void 0!==e.left&&F(xe(e.left)),$e(e.top)):$e(e)}})),G(()=>{if(v){const e=R.slice(ee,te+1);v(e,R)}},[ee,te,R]);const Te=null==x?void 0:x({start:ee,end:te,virtual:N,offsetX:_,scrollTop:D,offsetY:ne,rtl:A,getSize:Ee}),Pe=function(e,t,n,r,o,i,a,{getKey:l}){return e.slice(t,n+1).map((e,n)=>{const s=a(e,t+n,{style:{width:r},offsetX:o}),c=l(e);return g.createElement(ig,{key:c,setRef:t=>i(e,t)},s)})}(R,ee,te,p,_,E,c,q);let Me=null;o&&(Me={[a?"height":"maxHeight"]:o,...bg},M&&(Me.overflowY="hidden",p&&(Me.overflowX="hidden"),H&&(Me.pointerEvents="none")));const Oe={};return A&&(Oe.dir="rtl"),g.createElement("div",qd({ref:z,style:{...l,position:"relative"},className:I},Oe,k),g.createElement(Ht,{onResize:e=>{oe({width:e.offsetWidth,height:e.offsetHeight})}},g.createElement(f,{className:`${n}-holder`,style:Me,ref:L,onScroll:function(e){const{scrollTop:t}=e.currentTarget;t!==D&&X(t),null==m||m(e),ve()},onMouseEnter:Se},g.createElement(og,{prefixCls:n,height:J,offsetX:_,offsetY:ne,scrollWidth:p,onInnerResize:$,ref:B,innerProps:b,rtl:A,extra:Te},Pe))),N&&J>o&&g.createElement(gg,{ref:ie,prefixCls:n,scrollOffset:D,scrollRange:J,rtl:A,onScroll:be,onStartMove:K,onStopMove:U,spinSize:se,containerSize:re.height,style:null==w?void 0:w.verticalScrollBar,thumbStyle:null==w?void 0:w.verticalScrollBarThumb,showScrollBar:C}),N&&p>re.width&&g.createElement(gg,{ref:ae,prefixCls:n,scrollOffset:_,scrollRange:p,rtl:A,onScroll:be,onStartMove:K,onStopMove:U,spinSize:le,containerSize:re.width,horizontal:!0,style:null==w?void 0:w.horizontalScrollBar,thumbStyle:null==w?void 0:w.horizontalScrollBarThumb,showScrollBar:C}))}const wg=g.forwardRef(xg);wg.displayName="List";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)}function kg(e){return"string"==typeof e||"number"==typeof e}g.forwardRef((e,t)=>xg({...e,virtual:!1},t)).displayName="List";const Sg=(e,t)=>{var n,r;const{prefixCls:o,id:i,open:a,multiple:l,mode:s,searchValue:c,toggleOpen:u,notFoundContent:d,onPopupScroll:h,showScrollBar:p,lockOptions:f}=cm(),{maxCount:m,flattenOptions:y,onActiveValue:v,defaultActiveFirstOption:b,onSelect:x,menuItemSelectedIcon:w,rawValues:C,fieldNames:k,virtual:S,direction:E,listHeight:$,listItemHeight:T,optionRender:P,classNames:M,styles:O}=g.useContext(Em),N=`${o}-item`,A=te(()=>y,[a,f],(e,t)=>t[0]&&!t[1]),I=g.useRef(null),R=g.useMemo(()=>l&&mm(m)&&(null==C?void 0:C.size)>=m,[l,m,null==C?void 0:C.size]),L=e=>{e.preventDefault()},B=e=>{var t;null==(t=I.current)||t.scrollTo("number"==typeof e?{index:e}:e)},z=g.useCallback(e=>"combobox"!==s&&C.has(e),[s,[...C].toString(),C.size]),D=(e,t=1)=>{const n=A.length;for(let r=0;r<n;r+=1){const o=(e+r*t+n)%n,{group:i,data:a}=A[o]||{};if(!i&&!(null==a?void 0:a.disabled)&&(z(a.value)||!R))return o}return-1},[j,_]=g.useState(()=>D(0)),F=(e,t=!1)=>{_(e);const n={source:t?"keyboard":"mouse"},r=A[e];r?v(r.value,e,n):v(null,-1,n)};g.useEffect(()=>{F(!1!==b?D(0):-1)},[A.length,c]);const H=g.useCallback(e=>"combobox"===s?String(e).toLowerCase()===c.toLowerCase():C.has(e),[s,c,[...C].toString(),C.size]);g.useEffect(()=>{var e;let t;if(!l&&a&&1===C.size){const e=Array.from(C)[0],n=A.findIndex(({data:t})=>c?String(t.value).startsWith(c):t.value===e);-1!==n&&(F(n),t=setTimeout(()=>{B(n)}))}return a&&(null==(e=I.current)||e.scrollTo(void 0)),()=>clearTimeout(t)},[a,c]);const W=e=>{void 0!==e&&x(e,{selected:!C.has(e)}),l||u(!1)};if(g.useImperativeHandle(t,()=>({onKeyDown:e=>{const{which:t,ctrlKey:n}=e;switch(t){case qe.N:case qe.P:case qe.UP:case qe.DOWN:{let e=0;if(t===qe.UP?e=-1:t===qe.DOWN?e=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===qe.N?e=1:t===qe.P&&(e=-1)),0!==e){const t=D(j+e,e);B(t),F(t,!0)}break}case qe.TAB:case qe.ENTER:{const t=A[j];if(!t||t.data.disabled)return W(void 0);!R||C.has(t.value)?W(t.value):W(void 0),a&&e.preventDefault();break}case qe.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{B(e)}})),0===A.length)return g.createElement("div",{role:"listbox",id:`${i}_list`,className:`${N}-empty`,onMouseDown:L},d);const K=Object.keys(k).map(e=>k[e]),V=e=>e.label;function U(e,t){const{group:n}=e;return{role:n?"presentation":"option",id:`${i}_list_${t}`}}const q=e=>{const t=A[e];if(!t)return null;const n=t.data||{},{value:r,disabled:o}=n,{group:i}=t,a=ct(n,!0),l=V(t);return t?g.createElement("div",Cg({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},U(t,e),{"aria-selected":H(r),"aria-disabled":o}),r):null},G={role:"listbox",id:`${i}_list`};return g.createElement(g.Fragment,null,S&&g.createElement("div",Cg({},G,{style:{height:0,width:0,overflow:"hidden"}}),q(j-1),q(j),q(j+1)),g.createElement(wg,{itemKey:"key",ref:I,data:A,height:$,itemHeight:T,fullHeight:!1,onMouseDown:L,onScroll:h,virtual:S,direction:E,innerProps:S?null:G,showScrollBar:p,className:null==(n=null==M?void 0:M.popup)?void 0:n.list,style:null==(r=null==O?void 0:O.popup)?void 0:r.list},(e,t)=>{var n,r;const{group:o,groupOption:i,data:a,label:l,value:s}=e,{key:c}=a;if(o){const e=a.title??(kg(l)?l.toString():void 0);return g.createElement("div",{className:Kt(N,`${N}-group`,a.className),title:e},void 0!==l?l:c)}const{disabled:u,title:d,children:h,style:p,className:f,...m}=a,y=at(m,K),v=z(s),b=u||!v&&R,x=`${N}-option`,C=Kt(N,x,f,null==(n=null==M?void 0:M.popup)?void 0:n.listItem,{[`${x}-grouped`]:i,[`${x}-active`]:j===t&&!b,[`${x}-disabled`]:b,[`${x}-selected`]:v}),k=V(e),E=!w||"function"==typeof w||v,$="number"==typeof k?k:k||s;let T=kg($)?$.toString():void 0;return void 0!==d&&(T=d),g.createElement("div",Cg({},ct(y),S?{}:U(e,t),{"aria-selected":S?void 0:H(s),"aria-disabled":b,className:C,title:T,onMouseMove:()=>{j===t||b||F(t)},onClick:()=>{b||W(s)},style:{...null==(r=null==O?void 0:O.popup)?void 0:r.listItem,...p}}),g.createElement("div",{className:`${x}-content`},"function"==typeof P?P(e,{index:t}):$),g.isValidElement(w)||v,E&&g.createElement(Km,{className:`${N}-option-state`,customizeIcon:w,customizeIconProps:{value:s,disabled:b,isSelected:v}},v?"✓":null))}))},Eg=g.forwardRef(Sg);function $g(e,t){return $m(e).join("").toUpperCase().includes(t)}function Tg(e,t=!1){return gt(e).map((e,n)=>{if(!g.isValidElement(e)||!e.type)return null;const{type:{isSelectOptGroup:r},key:o,props:{children:i,...a}}=e;return t||!r?function(e){const{key:t,props:{children:n,value:r,...o}}=e;return{key:t,value:void 0!==r?r:t,children:n,...o}}(e):{key:`__RC_SELECT_GRP__${null===o?n:o}__`,label:o,...a,options:Tg(i)}}).filter(e=>e)}const Pg=(e,t,n,r,o)=>g.useMemo(()=>{let i=e;!e&&(i=Tg(t));const a=new Map,l=new Map,s=(e,t,n)=>{n&&"string"==typeof n&&e.set(t[n],t)},c=(e,t=!1)=>{for(let i=0;i<e.length;i+=1){const u=e[i];!u[n.options]||t?(a.set(u[n.value],u),s(l,u,n.label),r.forEach(e=>{s(l,u,e)}),s(l,u,o)):c(u[n.options],!0)}};return c(i),{options:i,valueOptions:a,labelOptions:l}},[e,t,n,r,o]);function Mg(e){const t=g.useRef();t.current=e;return g.useCallback((...e)=>t.current(...e),[])}function Og(){return Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Og.apply(this,arguments)}const Ng=["inputValue"];const Ag=g.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:o="rc-select",backfill:i,fieldNames:a,showSearch:l,searchValue:s,onSearch:c,autoClearSearchValue:u,filterOption:d,optionFilterProp:h,filterSort:p,onSelect:f,onDeselect:m,onActive:y,popupMatchSelectWidth:v=!0,optionLabelProp:b,options:x,optionRender:w,children:C,defaultActiveFirstOption:k,menuItemSelectedIcon:S,virtual:E,direction:$,listHeight:T=200,listItemHeight:P=20,labelRender:M,value:O,defaultValue:N,labelInValue:A,onChange:I,maxCount:R,classNames:L,styles:B,...z}=e,D={searchValue:s,onSearch:c,autoClearSearchValue:u,filterOption:d,optionFilterProp:h,filterSort:p},[j,_]=function(e,t,n){const{filterOption:r,searchValue:o,optionFilterProp:i,filterSort:a,onSearch:l,autoClearSearchValue:s}=t;return g.useMemo(()=>{const t="object"==typeof e,c={filterOption:r,searchValue:o,optionFilterProp:i,filterSort:a,onSearch:l,autoClearSearchValue:s,...t?e:{}};return[!!(t||"combobox"===n||"tags"===n||"multiple"===n&&void 0===e)||e,c]},[n,e,r,o,i,a,l,s])}(l,D,r),{filterOption:F,searchValue:H,optionFilterProp:W,filterSort:K,onSearch:V,autoClearSearchValue:U=!0}=_,q=g.useMemo(()=>W?Array.isArray(W)?W:[W]:[],[W]),G=ee(n),X=eg(r),Z=!(x||!C),Q=g.useMemo(()=>(void 0!==F||"combobox"!==r)&&F,[F,r]),J=g.useMemo(()=>gm(a,Z),[JSON.stringify(a),Z]),[te,ne]=Y("",H),re=te||"",oe=Pg(x,C,J,q,b),{valueOptions:ie,labelOptions:ae,options:le}=oe,se=g.useCallback(e=>$m(e).map(e=>{let t,n,r,o;!function(e){return!e||"object"!=typeof e}(e)?(n=e.label,t=e.value):t=e;const i=ie.get(t);return i&&(void 0===n&&(n=null==i?void 0:i[b||J.label]),r=null==i?void 0:i.disabled,o=null==i?void 0:i.title),{label:n,value:t,key:t,disabled:r,title:o}}),[J,b,ie]),[ce,ue]=Y(N,O),de=g.useMemo(()=>{var e;const t=se(X&&null===ce?[]:ce);return"combobox"===r&&function(e){return!e&&0!==e}(null==(e=t[0])?void 0:e.value)?[]:t},[ce,se,r,X]),[he,pe]=((e,t)=>{const n=g.useRef({values:new Map,options:new Map});return[g.useMemo(()=>{const{values:r,options:o}=n.current,i=e.map(e=>{var t;return void 0===e.label?{...e,label:null==(t=r.get(e.value))?void 0:t.label}:e}),a=new Map,l=new Map;return i.forEach(e=>{a.set(e.value,e),l.set(e.value,t.get(e.value)||o.get(e.value))}),n.current.values=a,n.current.options=l,i},[e,t]),g.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]})(de,ie),fe=g.useMemo(()=>{if(!r&&1===he.length){const e=he[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return he.map(e=>({...e,label:("function"==typeof M?M(e):e.label)??e.value}))},[r,he,M]),me=g.useMemo(()=>new Set(he.map(e=>e.value)),[he]);g.useEffect(()=>{var e;if("combobox"===r){const t=null==(e=he[0])?void 0:e.value;ne(function(e){return null!=e}(t)?String(t):"")}},[he]);const ge=Mg((e,t)=>{const n=t??e;return{[J.value]:e,[J.label]:n}}),ye=((e,t,n,r,o)=>g.useMemo(()=>{if(!n||!1===r)return e;const{options:i,label:a,value:l}=t,s=[],c="function"==typeof r,u=n.toUpperCase(),d=c?r:(e,t)=>o&&o.length?o.some(e=>$g(t[e],u)):t[i]?$g(t["children"!==a?a:"label"],u):$g(t[l],u),h=c?e=>ym(e):e=>e;return e.forEach(e=>{if(e[i])if(d(n,h(e)))s.push(e);else{const t=e[i].filter(e=>d(n,h(e)));t.length&&s.push({...e,[i]:t})}else d(n,h(e))&&s.push(e)}),s},[e,r,o,n,t]))(g.useMemo(()=>{if("tags"!==r)return le;const e=[...le];return[...he].sort((e,t)=>e.value<t.value?-1:1).forEach(t=>{const n=t.value;(e=>ie.has(e))(n)||e.push(ge(n,t.label))}),e},[ge,le,ie,he,r]),J,re,Q,q),ve=g.useMemo(()=>"tags"!==r||!re||ye.some(e=>(e=>q.length?q.some(t=>(null==e?void 0:e[t])===re):(null==e?void 0:e.value)===re)(e))||ye.some(e=>e[J.value]===re)?ye:[ge(re),...ye],[ge,q,r,ye,re,J]),be=e=>[...e].sort((e,t)=>K(e,t,{searchValue:re})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?be(e.options):e.options}:e),xe=g.useMemo(()=>K?be(ve):ve,[ve,K,re]),we=g.useMemo(()=>function(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:o,value:i,options:a,groupLabel:l}=gm(t,!1);return function e(t,s){Array.isArray(t)&&t.forEach(t=>{if(s||!(a in t)){const e=t[i];r.push({key:fm(t,r.length),groupOption:s,data:t,label:t[o],value:e})}else{let o=t[l];void 0===o&&n&&(o=t.label),r.push({key:fm(t,r.length),group:!0,data:t,label:o}),e(t[a],!0)}})}(e,!1),r}(xe,{fieldNames:J,childrenAsData:Z}),[xe,J,Z]),Ce=e=>{const t=se(e);if(ue(t),I&&(t.length!==he.length||t.some((e,t)=>{var n;return(null==(n=he[t])?void 0:n.value)!==(null==e?void 0:e.value)}))){const e=A?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>ym(pe(e.value)));I(X?e:e[0],X?n:n[0])}},[ke,Se]=g.useState(null),[Ee,$e]=g.useState(0),Te=void 0!==k?k:"combobox"!==r,Pe=g.useRef(),Me=g.useCallback((e,t,{source:n="keyboard"}={})=>{$e(t),i&&"combobox"===r&&null!==e&&"keyboard"===n&&Se(String(e));const o=Promise.resolve().then(()=>{Pe.current===o&&(null==y||y(e))});Pe.current=o},[i,r,y]),Oe=(e,t,n)=>{const r=()=>{const t=pe(e);return[A?{label:null==t?void 0:t[J.label],value:e}:e,ym(t)]};if(t&&f){const[e,t]=r();f(e,t)}else if(!t&&m&&"clear"!==n){const[e,t]=r();m(e,t)}},Ne=Mg((e,t)=>{let n;const o=!X||t.selected;n=o?X?[...he,e]:[e]:he.filter(t=>t.value!==e),Ce(n),Oe(e,o),"combobox"===r?Se(""):eg&&!U||(ne(""),Se(""))}),Ae=g.useMemo(()=>{const e=!1!==E&&!1!==v;return{...oe,flattenOptions:we,onActiveValue:Me,defaultActiveFirstOption:Te,onSelect:Ne,menuItemSelectedIcon:S,rawValues:me,fieldNames:J,virtual:e,direction:$,listHeight:T,listItemHeight:P,childrenAsData:Z,maxCount:R,optionRender:w,classNames:L,styles:B}},[R,oe,we,Me,Te,Ne,S,me,J,E,v,$,T,P,Z,w,L,B]);return g.createElement(Em.Provider,{value:Ae},g.createElement(tg,Og({},z,{id:G,prefixCls:o,ref:t,omitDomProps:Ng,mode:r,classNames:L,styles:B,displayValues:fe,onDisplayValuesChange:(e,t)=>{Ce(e);const{type:n,values:r}=t;"remove"!==n&&"clear"!==n||r.forEach(e=>{Oe(e.value,!1,n)})},maxCount:R,direction:$,showSearch:j,searchValue:re,onSearch:(e,t)=>{if(ne(e),Se(null),"submit"===t.source){const t=(e||"").trim();if(t){const e=Array.from(new Set([...me,t]));Ce(e),Oe(t,!0),ne("")}return}"blur"!==t.source&&("combobox"===r&&Ce(e),null==V||V(e))},autoClearSearchValue:U,onSearchSplit:e=>{let t=e;"tags"!==r&&(t=e.map(e=>{const t=ae.get(e);return null==t?void 0:t.value}).filter(e=>void 0!==e));const n=Array.from(new Set([...me,...t]));Ce(n),n.forEach(e=>{Oe(e,!0)})},popupMatchSelectWidth:v,OptionList:Eg,emptyOptions:!we.length,activeValue:ke,activeDescendantId:`${G}_list_${Ee}`})))});function Ig(e,t,n){return!1===e?null:!0===e?n:e&&void 0!==e[t]?e[t]:n}Ag.Option=rg,Ag.OptGroup=ng;const Rg=(e,t,n)=>Kt({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n}),Lg=(e,t)=>t||e,Bg=()=>{const[,e]=gi(),[t]=Fl("Empty"),n=new Mo(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return g.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},g.createElement("title",null,(null==t?void 0:t.description)||"Empty"),g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(24 31.7)"},g.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),g.createElement("path",{fill:"#aeb8c2",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"}),g.createElement("path",{fill:"#f5f5f7",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"}),g.createElement("path",{fill:"#dce0e6",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"})),g.createElement("path",{fill:"#dce0e6",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"}),g.createElement("g",{fill:"#fff",transform:"translate(149.7 15.4)"},g.createElement("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),g.createElement("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},zg=()=>{const[,e]=gi(),[t]=Fl("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:s}=g.useMemo(()=>({borderColor:new Mo(n).onBackground(i).toHexString(),shadowColor:new Mo(r).onBackground(i).toHexString(),contentColor:new Mo(o).onBackground(i).toHexString()}),[n,r,o,i]);return g.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},g.createElement("title",null,(null==t?void 0:t.description)||"Empty"),g.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},g.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),g.createElement("g",{fillRule:"nonzero",stroke:a},g.createElement("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),g.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:s}))))},Dg=ki("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e;return(e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,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:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})(fo(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),jg=g.createElement(Bg,null),_g=g.createElement(zg,null),Fg=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o,description:i,children:a,imageStyle:l,style:s,classNames:c,styles:u,...d}=e,{getPrefixCls:h,direction:p,className:f,style:m,classNames:y,styles:v,image:b}=en("empty"),x=h("empty",r),[w,C]=Dg(x),[k,S]=il([y,c],[v,u],{props:e}),[E]=Fl("Empty"),$=void 0!==i?i:null==E?void 0:E.description,T="string"==typeof $?$:"empty",P=o??b??jg;let M=null;return M="string"==typeof P?g.createElement("img",{draggable:!1,alt:T,src:P}):P,g.createElement("div",{className:Kt(w,C,x,f,{[`${x}-normal`]:P===_g,[`${x}-rtl`]:"rtl"===p},t,n,k.root),style:{...S.root,...m,...s},...d},g.createElement("div",{className:Kt(`${x}-image`,k.image),style:{...l,...S.image}},M),$&&g.createElement("div",{className:Kt(`${x}-description`,k.description),style:S.description},$),a&&g.createElement("div",{className:Kt(`${x}-footer`,k.footer),style:S.footer},a))};Fg.PRESENTED_IMAGE_DEFAULT=jg,Fg.PRESENTED_IMAGE_SIMPLE=_g;const Hg=e=>{const{componentName:t}=e,{getPrefixCls:n}=g.useContext(Zt),r=n("empty");switch(t){case"Table":case"List":return y.createElement(Fg,{image:Fg.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(Fg,{image:Fg.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return y.createElement(Fg,null)}},Wg=(e,t,n)=>{const{variant:r,[e]:o}=g.useContext(Zt),i=g.useContext(qp),a=null==o?void 0:o.variant;let l;l=void 0!==t?t:!1===n?"borderless":i??a??r??"outlined";return[l,Yt.includes(l)]};function Kg(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"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]}}})(t)}const Vg=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},Ug=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...vi(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,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:pd},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:md},[`${a}${l}bottomLeft`]:{animationName:fd},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:gd},"&-hidden":{display:"none"},[r]:{...Vg(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",...yi},"&-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},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...Vg(e),color:e.colorTextDisabled}},[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Cd(e,"slide-up"),Cd(e,"slide-down"),hd(e,"move-up"),hd(e,"move-down")]},qg=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}},Gg=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:o,paddingXXS:i,INTERNAL_FIXED_ITEM_MARGIN:a,lineWidth:l,colorIcon:s,colorIconHover:c,inputPaddingHorizontalBase:u,antCls:d}=e,[h,p]=$i(d,"select");return{"&-multiple":{[h("multi-item-background")]:e.multipleItemBg,[h("multi-item-border-color")]:"transparent",[h("multi-item-border-radius")]:e.borderRadiusSM,[h("multi-item-height")]:e.multipleItemHeight,[h("multi-padding-base")]:`calc((${p("height")} - ${p("multi-item-height")}) / 2)`,[h("multi-padding-vertical")]:`calc(${p("multi-padding-base")} - ${a} - ${l})`,[h("multi-item-padding-horizontal")]:`calc(${u} - ${p("multi-padding-vertical")} - ${l} * 2)`,paddingBlock:p("multi-padding-vertical"),paddingInlineStart:`calc(${p("multi-padding-base")} - ${l})`,[`${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% - 4px)"},[`${t}-content-item-prefix + ${t}-content-item-suffix,\n ${t}-content-item-suffix:first-child`]:{marginInlineStart:p("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${p("multi-item-height")} - ${l} * 2)`,border:`${l} solid ${p("multi-item-border-color")}`,display:"flex",marginBlock:a,marginInlineEnd:n(a).mul(2).equal(),background:p("multi-item-background"),borderRadius:p("multi-item-border-radius"),paddingInlineStart:o,paddingInlineEnd:i,transition:["height","line-height","padding"].map(t=>`${t} ${e.motionDurationSlow}`).join(","),"&-content":{...yi,marginInlineEnd:i},"&-remove":{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"},display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}},[`${t}-input`]:{lineHeight:n(a).mul(2).add(p("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:4,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[h("multi-item-height")]:e.multipleItemHeightSM,[h("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[h("multi-item-height")]:e.multipleItemHeightLG,[h("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[h("multi-item-border-color")]:e.colorSplit,[h("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[h("multi-item-border-color")]:"transparent"}}}}},Xg=(e,t)=>{const{componentCls:n,antCls:r}=e,[o]=$i(r,"select"),{border:i,borderHover:a,borderActive:l,borderOutline:s}=t,c=t.background||e.selectorBg||e.colorBgContainer;return{[o("border-color")]:i,[o("background-color")]:c,[o("affix-color")]:t.affixColor,[`&:not(${n}-disabled)`]:{"&:hover":{[o("border-color")]:a,[o("background-color")]:t.backgroundHover||c},[`&${n}-focused`]:{[o("border-color")]:l,[o("background-color")]:t.backgroundActive||c,boxShadow:`0 0 0 ${wn(e.controlOutlineWidth)} ${s}`}},[`&${n}-disabled`]:{[o("border-color")]:t.borderDisabled||t.border,[o("background-color")]:t.backgroundDisabled||t.background}}},Yg=(e,t,n,r={},o={},i)=>{const{componentCls:a}=e;return{[`&${a}-${t}`]:[Xg(e,n),{[`&${a}-status-error`]:Xg(e,{...n,...r}),[`&${a}-status-warning`]:Xg(e,{...n,...o})},i]}},Zg=e=>{const{componentCls:t,fontHeight:n,controlHeight:r,fontSizeIcon:o,showArrowPaddingInlineEnd:i,iconCls:a,antCls:l,max:s,calc:c}=e,[u,d]=$i(l,"select"),h=s(c(i).sub(o).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")]:c(e.paddingSM).sub(e.lineWidth).equal(),[u("padding-vertical")]:`calc((${d("height")} - ${d("font-height")}) / 2 - ${d("border-size")})`,...vi(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`]:{...yi,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:h,"&: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",[a]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[u("height")]:e.controlHeightSM,[u("padding-horizontal")]:c(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`]:{...yi,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}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:"transparent"}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},Gg(e),Yg(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}),Yg(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}),Yg(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),Yg(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"}),qg(e)]}},Qg=e=>{const{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...vi(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...yi,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,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)":i,"&:hover":i},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Jg=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Qg(e),Ug(e),{[`${t}-rtl`]:{direction:"rtl"}},sh(e,{focusElCls:`${t}-focused`})]},ey=ki("Select",(e,{rootPrefixCls:t})=>{const n=fo(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Jg(n),Zg(n)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:f,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:y,colorPrimaryHover:v,colorPrimary:b,controlOutline:x}=e,w=2*l,C=2*r,k=Math.min(o-w,o-C),S=Math.min(i-w,i-C),E=Math.min(a-w,a-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:f,clearBg:f,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:k,multipleItemHeightSM:S,multipleItemHeightLG:E,multipleSelectorBgDisabled:g,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:v,activeBorderColor:b,activeOutlineColor:x,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ty={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 ny(){return ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ny.apply(this,arguments)}const ry=(e,t)=>g.createElement(ji,ny({},e,{ref:t,icon:ty})),oy=g.forwardRef(ry);var iy={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 ay(){return ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ay.apply(this,arguments)}const ly=(e,t)=>g.createElement(ji,ay({},e,{ref:t,icon:iy})),sy=g.forwardRef(ly);var cy={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 uy(){return uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uy.apply(this,arguments)}const dy=(e,t)=>g.createElement(ji,uy({},e,{ref:t,icon:cy})),hy=g.forwardRef(dy);const py="SECRET_COMBOBOX_MODE_DO_NOT_USE",fy=(e,t)=>{var n,r;const{prefixCls:o,bordered:i,className:a,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:h,listItemHeight:p,size:f,disabled:m,notFoundContent:v,status:b,builtinPlacements:x,dropdownMatchSelectWidth:w,popupMatchSelectWidth:C,direction:k,style:S,allowClear:E,variant:$,popupStyle:T,dropdownStyle:P,transitionName:M,tagRender:O,maxCount:N,prefix:A,dropdownRender:I,popupRender:R,onDropdownVisibleChange:L,onOpenChange:B,styles:z,classNames:D,clearIcon:j,showSearch:_,...F}=e,{getPopupContainer:H,getPrefixCls:W,renderEmpty:K,direction:V,virtual:U,popupMatchSelectWidth:q,popupOverflow:G}=g.useContext(Zt),{showSearch:X,allowClear:Y,style:Z,styles:Q,className:J,classNames:ee,clearIcon:te,loadingIcon:ne,menuItemSelectedIcon:re,removeIcon:oe,suffixIcon:ie}=en("select"),[,ae]=gi(),le=p??(null==ae?void 0:ae.controlHeight),se=W("select",o),ce=W(),ue=k??V,{compactSize:de,compactItemClassnames:he}=Du(se,ue),[pe,fe]=Wg("select",$,i),me=El(se),[ge,ye]=ey(se,me),ve=g.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===py?"combobox":t},[e.mode]),be="multiple"===ve||"tags"===ve,xe=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),we=C??w??q,Ce=(ke=R||I,y.useMemo(()=>{if(ke)return(...e)=>y.createElement(Gp,{space:!0},ke.apply(void 0,e))},[ke]));var ke;const Se=B||L,{status:Ee,hasFeedback:$e,isFormItemInput:Te,feedbackIcon:Pe}=g.useContext(Vp),Me=Lg(Ee,b);let Oe;Oe=void 0!==v?v:"combobox"===ve?null:(null==K?void 0:K("Select"))||g.createElement(Hg,{componentName:"Select"});const{suffixIcon:Ne,itemIcon:Ae,removeIcon:Ie,clearIcon:Re}=function({suffixIcon:e,contextSuffixIcon:t,clearIcon:n,contextClearIcon:r,menuItemSelectedIcon:o,contextMenuItemSelectedIcon:i,removeIcon:a,contextRemoveIcon:l,loading:s,loadingIcon:c,contextLoadingIcon:u,searchIcon:d,contextSearchIcon:h,multiple:p,hasFeedback:f,showSuffixIcon:m,feedbackIcon:y,showArrow:v,componentName:b}){return g.useMemo(()=>{const b=xc(n,r,g.createElement(Ui,null)),x=t=>null!==e||f||v?g.createElement(g.Fragment,null,!1!==m&&t,f&&y):null;let w=null;return w=void 0!==e?x(e):s?x(xc(c,u,g.createElement(bc,{spin:!0}))):({open:e,showSearch:n})=>x(e&&n?xc(d,h,g.createElement(hy,null)):xc(t,g.createElement(sy,null))),{clearIcon:b,suffixIcon:w,itemIcon:xc(o,i,p?g.createElement(oy,null):null),removeIcon:xc(a,l,g.createElement(Yi,null))}},[e,t,n,r,o,i,a,l,s,c,u,d,h,p,f,m,y,v])}({...F,multiple:be,hasFeedback:$e,feedbackIcon:Pe,showSuffixIcon:xe,componentName:"Select",clearIcon:j,searchIcon:Ig(_,"searchIcon"),contextClearIcon:te,contextLoadingIcon:ne,contextMenuItemSelectedIcon:re,contextRemoveIcon:oe,contextSearchIcon:Ig(X,"searchIcon"),contextSuffixIcon:ie}),Le=E??Y,Be=!0===Le?{clearIcon:Re}:Le,ze=_??X,De=at(F,["suffixIcon","itemIcon"]),je=Lu(e=>f??de??e),_e=g.useContext(Bs),Fe=m??_e,He={...e,variant:pe,status:Me,disabled:Fe,size:je},[We,Ke]=il([ee,D],[Q,z],{props:He},{popup:{_default:"root"}}),Ve=Kt(We.popup.root,c,u,{[`${se}-dropdown-${ue}`]:"rtl"===ue},l,ye,me,ge),Ue={...null==(n=Ke.popup)?void 0:n.root,...T??P},qe=Kt({[`${se}-lg`]:"large"===je,[`${se}-sm`]:"small"===je,[`${se}-rtl`]:"rtl"===ue,[`${se}-${pe}`]:fe,[`${se}-in-form-item`]:Te},Rg(se,Me,$e),he,J,a,We.root,l,ye,me,ge),Ge=g.useMemo(()=>void 0!==h?h:"rtl"===ue?"bottomRight":"bottomLeft",[h,ue]),[Xe]=zc("SelectLike",(null==(r=Ke.popup.root)?void 0:r.zIndex)??Ue.zIndex);return g.createElement(Ag,{ref:t,virtual:U,classNames:We,styles:Ke,showSearch:ze,...De,style:{...Ke.root,...Z,...S},popupMatchSelectWidth:we,transitionName:Eu(ce,"slide-up",M),builtinPlacements:Kg(x,G),listHeight:d,listItemHeight:le,mode:ve,prefixCls:se,placement:Ge,direction:ue,prefix:A,suffixIcon:Ne,menuItemSelectedIcon:Ae,removeIcon:Ie,allowClear:Be,notFoundContent:Oe,className:qe,getPopupContainer:s||H,popupClassName:Ve,disabled:Fe,popupStyle:{...Ke.popup.root,...Ue,zIndex:Xe},maxCount:be?N:void 0,tagRender:be?O:void 0,popupRender:Ce,onPopupVisibleChange:Se})},my=g.forwardRef(fy),gy=lm(my,"popupAlign");my.SECRET_COMBOBOX_MODE_DO_NOT_USE=py,my.Option=rg,my.OptGroup=ng,my._InternalPanelDoNotUseOrYouWillBeFired=gy;const{Option:yy}=my;function vy(e){return(null==e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const by=(e,t)=>{const{prefixCls:n,className:r,style:o,popupClassName:i,dropdownClassName:a,children:l,dataSource:s,rootClassName:c,dropdownStyle:u,dropdownRender:d,popupRender:h,onDropdownVisibleChange:p,onOpenChange:f,styles:m,classNames:y,popupMatchSelectWidth:v,dropdownMatchSelectWidth:b}=e,x=gt(l),w=h||d,C=f||p,k=v??b;let S;1===x.length&&g.isValidElement(x[0])&&!vy(x[0])&&([S]=x);const E=S?()=>S:void 0;let $;$=x.length&&vy(x[0])?l:s?s.map(e=>{if(g.isValidElement(e))return e;switch(typeof e){case"string":return g.createElement(yy,{key:e,value:e},e);case"object":{const{value:t}=e;return g.createElement(yy,{key:t,value:t},e.text)}default:return}}):[];const{getPrefixCls:T}=g.useContext(Zt),P=T("select",n),M={...e,popupRender:w,onOpenChange:C,popupMatchSelectWidth:k},[O,N]=il([y],[m],{props:M},{popup:{_default:"root"}}),A=g.useMemo(()=>({root:Kt(`${P}-auto-complete`,r,c,O.root,{[`${P}-customize`]:S}),prefix:O.prefix,input:O.input,placeholder:O.placeholder,content:O.content,popup:{root:Kt(i,a,O.popup.root),list:O.popup.list,listItem:O.popup.listItem}}),[P,r,c,O,i,a]),I=g.useMemo(()=>({root:{...N.root,...o},input:N.input,prefix:N.prefix,placeholder:N.placeholder,content:N.content,popup:{root:{...u,...N.popup.root},list:N.popup.list,listItem:N.popup.listItem}}),[N,o,u]);return g.createElement(my,{ref:t,suffixIcon:null,...at(e,["dataSource","dropdownClassName","popupClassName"]),prefixCls:P,classNames:A,styles:I,mode:my.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:w,onPopupVisibleChange:C,popupMatchSelectWidth:k,getInputElement:E},$)},xy=g.forwardRef(by),{Option:wy}=my,Cy=lm(xy,"popupAlign",e=>at(e,["visible"])),ky=xy;ky.Option=wy,ky._InternalPanelDoNotUseOrYouWillBeFired=Cy;const Sy=["xxxl","xxl","xl","lg","md","sm","xs"],Ey=[].concat(Sy).reverse(),$y=()=>{const[,e]=gi(),t=(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)`}))((e=>{const t=e,n=[].concat(Sy).reverse();return n.forEach((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}}),e})(e));return y.useMemo(()=>{const e=new Map;let n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(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])=>{const n=({matches:t})=>{this.dispatch({...r,[e]:t})},o=window.matchMedia(t);Ya(o.addEventListener)&&o.addEventListener("change",n),this.matchHandlers[t]={mql:o,listener:n},n(o)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];Ya(null==t?void 0:t.mql.removeEventListener)&&t.mql.removeEventListener("change",null==t?void 0:t.listener)}),e.clear()}}},[t])};function Ty(e=!0,t={}){const n=g.useRef(t),[,r]=Tc(),o=$y();return G(()=>{const t=o.subscribe(t=>{n.current=t,e&&r()});return()=>o.unsubscribe(t)},[]),n.current}const Py=e=>e?Ya(e)?e():e:null,My=e=>{const{children:t,prefixCls:n,id:r,classNames:o,styles:i,className:a,style:l}=e;return g.createElement("div",{id:r,className:Kt(`${n}-container`,null==o?void 0:o.container,a),style:{...null==i?void 0:i.container,...l},role:"tooltip"},"function"==typeof t?t():t)},Oy={shiftX:64,adjustY:1},Ny={adjustX:1,shiftY:!0},Ay=[0,0],Iy={left:{points:["cr","cl"],overflow:Ny,offset:[-4,0],targetOffset:Ay},right:{points:["cl","cr"],overflow:Ny,offset:[4,0],targetOffset:Ay},top:{points:["bc","tc"],overflow:Oy,offset:[0,-4],targetOffset:Ay},bottom:{points:["tc","bc"],overflow:Oy,offset:[0,4],targetOffset:Ay},topLeft:{points:["bl","tl"],overflow:Oy,offset:[0,-4],targetOffset:Ay},leftTop:{points:["tr","tl"],overflow:Ny,offset:[-4,0],targetOffset:Ay},topRight:{points:["br","tr"],overflow:Oy,offset:[0,-4],targetOffset:Ay},rightTop:{points:["tl","tr"],overflow:Ny,offset:[4,0],targetOffset:Ay},bottomRight:{points:["tr","br"],overflow:Oy,offset:[0,4],targetOffset:Ay},rightBottom:{points:["bl","br"],overflow:Ny,offset:[4,0],targetOffset:Ay},bottomLeft:{points:["tl","bl"],overflow:Oy,offset:[0,4],targetOffset:Ay},leftBottom:{points:["br","bl"],overflow:Ny,offset:[-4,0],targetOffset:Ay}};function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ry.apply(this,arguments)}const Ly=g.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:o=.1,prefixCls:i="rc-tooltip",children:a,onVisibleChange:l,afterVisibleChange:s,motion:c,placement:u="right",align:d={},destroyOnHidden:h=!1,defaultVisible:p,getTooltipContainer:f,arrowContent:m,overlay:y,id:v,showArrow:b=!0,classNames:x,styles:w,...C}=e,k=ee(v),S=g.useRef(null);g.useImperativeHandle(t,()=>S.current);const E={...C};"visible"in e&&(E.popupVisible=e.visible);const $=g.useMemo(()=>{if(!b)return!1;const e=!0===b?{}:b;return{...e,className:Kt(e.className,null==x?void 0:x.arrow),style:{...e.style,...null==w?void 0:w.arrow},content:e.content??m}},[b,null==x?void 0:x.arrow,null==w?void 0:w.arrow,m]),T=({open:e})=>{const t=g.Children.only(a),n={"aria-describedby":y&&e?k:void 0};return g.cloneElement(t,n)};return g.createElement(Ms,Ry({popupClassName:null==x?void 0:x.root,prefixCls:i,popup:g.createElement(My,{key:"content",prefixCls:i,id:k,classNames:x,styles:w},y),action:n,builtinPlacements:Iy,popupPlacement:u,ref:S,popupAlign:d,getPopupContainer:f,onOpenChange:l,afterOpenChange:s,popupMotion:c,defaultPopupVisible:p,autoDestroy:h,mouseLeaveDelay:o,popupStyle:null==w?void 0:w.root,mouseEnterDelay:r,arrow:$,uniqueContainerClassName:null==x?void 0:x.uniqueContainer,uniqueContainerStyle:null==w?void 0:w.uniqueContainer},E),T)});function By(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),s=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-s,d=c,h=2*o-a,p=l,f=2*o-0,m=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${h} ${p} A ${r} ${r} 0 0 0 ${f} ${m} Z')`,arrowPolygon:`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`}}const zy=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${wn(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Dy(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function jy(e,t){return e?t:{}}const _y=(e,t,n)=>{const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a,antCls:l}=e,[s]=$i(l,"tooltip"),{arrowDistance:c=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...zy(e,t,o),"&:before":{background:t}}],...jy(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[s("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{[s("arrow-offset-x")]:`calc(100% - ${wn(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}}),...jy(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[s("arrow-offset-x")]:a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{[s("arrow-offset-x")]:`calc(100% - ${wn(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}}),...jy(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}}),...jy(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}})}}};const Fy={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"]}},Hy={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"]}},Wy=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ky(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={},c=Dy({contentRadius:i,limitVerticalRadius:!0});return Object.keys(Fy).forEach(e=>{const i={...r&&Hy[e]||Fy[e],offset:[0,0],dynamicInset:!0};switch(s[e]=i,Wy.has(e)&&(i.autoArrow=!1),e){case"top":case"topLeft":case"topRight":i.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":i.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":i.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":i.offset[0]=l+o}if(r)switch(e){case"topLeft":case"bottomLeft":i.offset[0]=-c.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":i.offset[0]=c.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":i.offset[1]=2*-c.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":i.offset[1]=2*c.arrowOffsetHorizontal-l}i.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=Xa(r)?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a={...i,...o};return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,c,t,n),a&&(i.htmlRegion="visibleFirst")}),s}const Vy=y.createContext(!1),Uy=(e,t)=>{const n=e=>"boolean"==typeof e?{show:e}:e||{};return y.useMemo(()=>{const r=n(e),o=n(t);return{...o,...r,show:r.show??o.show??!0}},[e,t])},qy=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:h,sizePopupArrow:p,antCls:f}=e,[m,g]=$i(f,"tooltip"),y=t(a).add(p).add(h).equal(),v={minWidth:t(a).mul(2).add(p).equal(),minHeight:s,padding:`${wn(e.calc(u).div(2).equal())} ${wn(d)}`,color:g("overlay-color",o),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},b={[m("valid-offset-x")]:g("arrow-offset-x","var(--arrow-x)"),transformOrigin:[g("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...vi(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...b,"&-hidden":{display:"none"},[m("arrow-background-color")]:i,[`${n}-container`]:[v,od(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"},...Ti(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[m("arrow-background-color")]:t}}})),"&-rtl":{direction:"rtl"}}},_y(e,g("arrow-background-color")),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...b,position:"absolute",zIndex:t(l).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},Gy=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Dy({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...By(fo(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Xy=(e,t,n=!0)=>ki("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:o}=e,i=fo(e,{tooltipMaxWidth:o,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[qy(i),Bd(e,"zoom-big-fast")]},Gy,{resetStyle:!1,injectStyle:n})(e,t),Yy=xo.map(e=>`${e}-inverse`),Zy=["success","processing","error","default","warning"];function Qy(e,t=!0){return t?[].concat(qt(Yy),qt(xo)).includes(e):xo.includes(e)}const Jy=(e,t,n)=>{const r=Qy(n),[o]=$i(e,"tooltip"),i=Kt({[`${t}-${n}`]:n&&r}),a={},l={},s=(e=>e instanceof Hd?e:new Hd(e))(n).toRgb(),c=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return n&&!r&&(a.background=n,a[o("overlay-color")]=c,l[o("arrow-background-color")]=n),{className:i,overlayStyle:a,arrowStyle:l}},ev=g.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:o,color:i,children:a,afterOpenChange:l,arrow:s,destroyTooltipOnHide:c,destroyOnHidden:u,title:d,overlay:h,trigger:p,builtinPlacements:f,autoAdjustOverflow:m=!0,motion:y,getPopupContainer:v,placement:b="top",mouseEnterDelay:x=.1,mouseLeaveDelay:w=.1,rootClassName:C,styles:k,classNames:S,onOpenChange:E,overlayInnerStyle:$,overlayStyle:T,overlayClassName:P,...M}=e,[,O]=gi(),N=e["data-popover-inject"],{getPopupContainer:A,getPrefixCls:I,direction:R,...L}=en("tooltip"),{className:B,style:z,classNames:D,styles:j,arrow:_,trigger:F}=N?{}:L,H=Uy(s,_),W=H.show,K=p||F||"hover",V=v||A,U=u??!!c,q=g.useContext(Vy);Nt();const G=g.useRef(null),X=()=>{var e;null==(e=G.current)||e.forceAlign()};g.useImperativeHandle(t,()=>{var e,t;return{forceAlign:X,nativeElement:null==(e=G.current)?void 0:e.nativeElement,popupElement:null==(t=G.current)?void 0:t.popupElement}});const[Z,Q]=Y(e.defaultOpen??!1,e.open),J=!d&&!h&&0!==d,ee=g.useMemo(()=>f||Ky({arrowPointAtCenter:(null==H?void 0:H.pointAtCenter)??!1,autoAdjustOverflow:m,arrowWidth:W?O.sizePopupArrow:0,borderRadius:O.borderRadius,offset:O.marginXXS,visibleFirst:!0}),[H,f,O,W,m]),te=g.useMemo(()=>0===d?d:h||d||"",[h,d]),ne=g.createElement(Gp,{space:!0,form:!0},Ya(te)?te():te),re={...e,trigger:K,builtinPlacements:ee,getPopupContainer:V,destroyOnHidden:U},[oe,ie]=il([D,S],[j,k],{props:re}),ae=I("tooltip",n),le=I();let se=Z;(!("open"in e)&&J||q)&&(se=!1);const ce=g.isValidElement(a)&&!Os(a)?a:g.createElement("span",null,a),ue=ce.props,de=ue.className&&"string"!=typeof ue.className?ue.className:Kt(ue.className,r||`${ae}-open`),he=El(ae),[pe,fe]=Xy(ae,he,!N),me=Jy(le,ae,i),ge=me.arrowStyle,ye=Kt(he,pe,fe),ve=Kt(P,{[`${ae}-rtl`]:"rtl"===R},me.className,C,ye,B,oe.root),[be,xe]=zc("Tooltip",M.zIndex),we={...ie.container,...$,...me.overlayStyle},Ce=g.createElement(Ly,{unique:!0,...M,zIndex:be,showArrow:W,placement:b,mouseEnterDelay:x,mouseLeaveDelay:w,prefixCls:ae,classNames:{root:ve,container:oe.container,arrow:oe.arrow,uniqueContainer:Kt(ye,oe.container)},styles:{root:{...ge,...ie.root,...z,...T},container:we,uniqueContainer:we,arrow:ie.arrow},ref:G,overlay:ne,visible:se,onVisibleChange:e=>{Q(!J&&e),!J&&E&&E(e)},afterVisibleChange:l,arrowContent:g.createElement("span",{className:`${ae}-arrow-content`}),motion:{motionName:Eu(le,"zoom-big-fast","string"==typeof(null==y?void 0:y.motionName)?null==y?void 0:y.motionName:void 0),motionDeadline:1e3},trigger:K,builtinPlacements:ee,getTooltipContainer:V,destroyOnHidden:U},se?As(ce,{className:de}):ce);return g.createElement(Ac.Provider,{value:xe},Ce)}),tv=ev;tv._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a,classNames:l,styles:s}=e,{getPrefixCls:c}=g.useContext(Zt),u=c("tooltip",t),d=c(),h=El(u),[p,f]=Xy(u,h),m=Jy(d,u,i),y=m.arrowStyle,v=g.useMemo(()=>({container:{...a,...m.overlayStyle}}),[a,m.overlayStyle]),b={...e,placement:r},[x,w]=il([l],[v,s],{props:b}),C=Kt(h,p,f,u,`${u}-pure`,`${u}-placement-${r}`,n,m.className);return g.createElement("div",{className:C,style:y},g.createElement("div",{className:`${u}-arrow`}),g.createElement(My,{...e,className:p,prefixCls:u,classNames:x,styles:w},o))},tv.UniqueProvider=Ls;const nv=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:h,titleBorderBottom:p,innerContentPadding:f,titlePadding:m,antCls:g}=e,[y,v]=$i(g,"tooltip");return[{[t]:{...vi(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[y("valid-offset-x")]:v("arrow-offset-x","var(--arrow-x)"),transformOrigin:[v("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" "),[y("arrow-background-color")]:d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:m},[`${t}-content`]:{color:n,padding:f}}},_y(e,v("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},rv=e=>{const{componentCls:t,antCls:n}=e,[r]=$i(n,"tooltip");return{[t]:xo.map(n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{[r("arrow-background-color")]:o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},ov=ki("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=fo(e,{popoverBg:t,popoverColor:n});return[nv(r),rv(r),Bd(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,h=n-r,p=h/2,f=h/2-t,m=o;return{titleMinWidth:177,zIndexPopup:a+30,...By(e),...Dy({contentRadius:l,limitVerticalRadius:!0}),innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${p}px ${m}px ${f}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${m}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),iv=e=>{const{title:t,content:n,prefixCls:r,classNames:o,styles:i}=e;return t||n?g.createElement(g.Fragment,null,t&&g.createElement("div",{className:Kt(`${r}-title`,null==o?void 0:o.title),style:null==i?void 0:i.title},t),n&&g.createElement("div",{className:Kt(`${r}-content`,null==o?void 0:o.content),style:null==i?void 0:i.content},n)):null},av=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s,classNames:c,styles:u}=e,d=Py(a),h=Py(l),p={...e,placement:i},[f,m]=il([c],[u],{props:p}),y=Kt(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return g.createElement("div",{className:y,style:o},g.createElement("div",{className:`${n}-arrow`}),g.createElement(My,{...e,className:t,prefixCls:n,classNames:f,styles:m},s||g.createElement(iv,{prefixCls:n,title:d,content:h,classNames:f,styles:m})))},lv=g.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:l,children:s,mouseEnterDelay:c=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:h={},styles:p,classNames:f,motion:m,arrow:y,...v}=e,{getPrefixCls:b,className:x,style:w,classNames:C,styles:k,arrow:S,trigger:E}=en("popover"),$=b("popover",n),[T,P]=ov($),M=b(),O=Uy(y,S),N=l||E||"hover",A={...e,placement:a,trigger:N,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:h,styles:p,classNames:f},[I,R]=il([C,f],[k,p],{props:A}),L=Kt(i,T,P,x,I.root),[B,z]=Y(e.defaultOpen??!1,e.open),D=Py(r),j=Py(o);return g.createElement(tv,{unique:!1,arrow:O,placement:a,trigger:N,mouseEnterDelay:c,mouseLeaveDelay:u,...v,prefixCls:$,classNames:{root:L,container:I.container,arrow:I.arrow},styles:{root:{...R.root,...w,...h},container:R.container,arrow:R.arrow},ref:t,open:B,onOpenChange:e=>{z(e),null==d||d(e)},overlay:D||j?g.createElement(iv,{prefixCls:$,title:D,content:j,classNames:I,styles:R}):null,motion:{motionName:Eu(M,"zoom-big","string"==typeof(null==m?void 0:m.motionName)?null==m?void 0:m.motionName:void 0)},"data-popover-inject":!0},s)});lv._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:o}=g.useContext(Zt),i=o("popover",t),[a,l]=ov(i);return g.createElement(av,{...r,prefixCls:i,hashId:a,className:Kt(n,l)})};var sv={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 cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cv.apply(this,arguments)}const uv=(e,t)=>g.createElement(ji,cv({},e,{ref:t,icon:sv})),dv=g.forwardRef(uv),{ESC:hv,TAB:pv}=qe;const fv=g.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:o}=e,i=g.useMemo(()=>{let e;return e="function"==typeof n?n():n,e},[n]),a=pe(t,ve(i));return y.createElement(y.Fragment,null,r&&y.createElement("div",{className:`${o}-arrow`}),y.cloneElement(i,{ref:me(i)?a:void 0}))}),mv={adjustX:1,adjustY:1},gv=[0,0],yv={topLeft:{points:["bl","tl"],overflow:mv,offset:[0,-4],targetOffset:gv},top:{points:["bc","tc"],overflow:mv,offset:[0,-4],targetOffset:gv},topRight:{points:["br","tr"],overflow:mv,offset:[0,-4],targetOffset:gv},bottomLeft:{points:["tl","bl"],overflow:mv,offset:[0,4],targetOffset:gv},bottom:{points:["tc","bc"],overflow:mv,offset:[0,4],targetOffset:gv},bottomRight:{points:["tr","br"],overflow:mv,offset:[0,4],targetOffset:gv}};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)}const bv=y.forwardRef((e,t)=>{var n;const{arrow:r=!1,prefixCls:o="rc-dropdown",transitionName:i,animation:a,align:l,placement:s="bottomLeft",placements:c=yv,getPopupContainer:u,showAction:d,hideAction:h,overlayClassName:p,overlayStyle:f,visible:m,trigger:v=["hover"],autoFocus:b,overlay:x,children:w,onVisibleChange:C,...k}=e,[S,E]=y.useState(),$="visible"in e?m:S,T=a?`${o}-${a}`:i,P=y.useRef(null),M=y.useRef(null),O=y.useRef(null);y.useImperativeHandle(t,()=>P.current);const N=e=>{E(e),null==C||C(e)};!function({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:o}){const i=g.useRef(!1),a=()=>{var r,o;e&&(null==(o=null==(r=t.current)?void 0:r.focus)||o.call(r),null==n||n(!1))},l=()=>{var e;return!!(null==(e=o.current)?void 0:e.focus)&&(o.current.focus(),i.current=!0,!0)},s=e=>{switch(e.keyCode){case hv:a();break;case pv:{let t=!1;i.current||(t=l()),t?e.preventDefault():a();break}}};g.useEffect(()=>e?(window.addEventListener("keydown",s),r&&mt(l,3),()=>{window.removeEventListener("keydown",s),i.current=!1}):()=>{i.current=!1},[e])}({visible:$,triggerRef:O,onVisibleChange:N,autoFocus:b,overlayRef:M});const A=()=>y.createElement(fv,{ref:M,overlay:x,prefixCls:o,arrow:r}),I=y.cloneElement(w,{className:Kt(null==(n=w.props)?void 0:n.className,$&&(()=>{const{openClassName:t}=e;return void 0!==t?t:`${o}-open`})()),ref:me(w)?pe(O,ve(w)):void 0});let R=h;return R||-1===v.indexOf("contextMenu")||(R=["click"]),y.createElement(Ms,vv({builtinPlacements:c},k,{prefixCls:o,ref:P,popupClassName:Kt(p,{[`${o}-show-arrow`]:r}),popupStyle:f,action:v,showAction:d,hideAction:R,popupPlacement:s,popupAlign:l,popupMotion:{motionName:T},popupVisible:$,stretch:(()=>{const{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return"minOverlayWidthMatchTrigger"in e?t:!n})()?"minWidth":"",popup:"function"==typeof x?A:A(),onOpenChange:N,onPopupClick:t=>{const{onOverlayClick:n}=e;E(!1),n&&n(t)},getPopupContainer:u}),I)}),xv=g.createContext(null);function wv(e,t){return`${e}-${t}`}function Cv(e){return wv(g.useContext(xv),e)}const kv=g.createContext(null);function Sv({children:e,locked:t,...n}){const r=g.useContext(kv),o=te(()=>function(e,t){const n={...e};return Object.keys(t).forEach(e=>{const r=t[e];void 0!==r&&(n[e]=r)}),n}(r,n),[r,n],(e,n)=>!(t||e[0]===n[0]&&rt(e[1],n[1],!0)));return g.createElement(kv.Provider,{value:o},e)}const Ev=[],$v=g.createContext(null);function Tv(){return g.useContext($v)}const Pv=g.createContext(Ev);function Mv(e){const t=g.useContext(Pv);return g.useMemo(()=>void 0!==e?[...t,e]:t,[t,e])}const Ov=g.createContext(null),Nv=g.createContext({}),{LEFT:Av,RIGHT:Iv,UP:Rv,DOWN:Lv,ENTER:Bv,ESC:zv,HOME:Dv,END:jv}=qe,_v=[Rv,Lv,Av,Iv];function Fv(e,t){return Re(e,!0).filter(e=>t.has(e))}function Hv(e,t,n,r=1){if(!e)return null;const o=Fv(e,t),i=o.length;let a=o.findIndex(e=>n===e);return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}const Wv=(e,t)=>{const n=new Set,r=new Map,o=new Map;return e.forEach(e=>{const i=document.querySelector(`[data-menu-id='${wv(t,e)}']`);i&&(n.add(i),o.set(i,e),r.set(e,i))}),{elements:n,key2element:r,element2key:o}};function Kv(e,t,n,r,o,i,a,l,s,c){const u=g.useRef(),d=g.useRef();d.current=t;const h=()=>{mt.cancel(u.current)};return g.useEffect(()=>()=>{h()},[]),p=>{const{which:f}=p;if([..._v,Bv,zv,Dv,jv].includes(f)){const c=i();let m=Wv(c,r);const{elements:g,key2element:y,element2key:v}=m,b=function(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),g),x=v.get(b),w=function(e,t,n,r){var o;const i="prev",a="next",l="children",s="parent";if("inline"===e&&r===Bv)return{inlineTrigger:!0};const c={[Rv]:i,[Lv]:a},u={[Av]:n?a:i,[Iv]:n?i:a,[Lv]:l,[Bv]:l},d={[Rv]:i,[Lv]:a,[Bv]:l,[zv]:s,[Av]:n?l:s,[Iv]:n?s:l};switch(null==(o={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}[`${e}${t?"":"Sub"}`])?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===a(x,!0).length,n,f);if(!w&&f!==Dv&&f!==jv)return;(_v.includes(f)||[Dv,jv].includes(f))&&p.preventDefault();const C=e=>{if(e){let t=e;const n=e.querySelector("a");(null==n?void 0:n.getAttribute("href"))&&(t=n);const r=v.get(e);l(r),h(),u.current=mt(()=>{d.current===r&&t.focus()})}};if([Dv,jv].includes(f)||w.sibling||!b){let t,n;t=b&&"inline"!==e?function(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(b):o.current;const r=Fv(t,g);n=f===Dv?r[0]:f===jv?r[r.length-1]:Hv(t,g,b,w.offset),C(n)}else if(w.inlineTrigger)s(x);else if(w.offset>0)s(x,!0),h(),u.current=mt(()=>{m=Wv(c,r);const e=b.getAttribute("aria-controls"),t=Hv(document.getElementById(e),m.elements);C(t)},5);else if(w.offset<0){const e=a(x,!0),t=e[e.length-2],n=y.get(t);s(t,!1),C(n)}}null==c||c(p)}}const Vv="__RC_UTIL_PATH_SPLIT__",Uv=e=>e.join(Vv),qv="rc-menu-more";function Gv(){const[,e]=g.useState({}),t=g.useRef(new Map),n=g.useRef(new Map),[r,o]=g.useState([]),i=g.useRef(0),a=g.useRef(!1),l=g.useCallback((r,o)=>{const l=Uv(o);n.current.set(l,r),t.current.set(r,l),i.current+=1;const s=i.current;var c;c=()=>{s===i.current&&(a.current||e({}))},Promise.resolve().then(c)},[]),s=g.useCallback((e,r)=>{const o=Uv(r);n.current.delete(o),t.current.delete(e)},[]),c=g.useCallback(e=>{o(e)},[]),u=g.useCallback((e,n)=>{const o=t.current.get(e)||"",i=o.split(Vv);return n&&r.includes(i[0])&&i.unshift(qv),i},[r]),d=g.useCallback((e,t)=>e.filter(e=>void 0!==e).some(e=>u(e,!0).includes(t)),[u]),h=g.useCallback(e=>{const r=`${t.current.get(e)}${Vv}`,o=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&o.add(n.current.get(e))}),o},[]);return g.useEffect(()=>()=>{a.current=!0},[]),{registerPath:l,unregisterPath:s,refreshOverflowKeys:c,isSubPathKey:d,getKeyPath:u,getKeys:()=>{const e=[...t.current.keys()];return r.length&&e.push(qv),e},getSubPathKeys:h}}function Xv(e){const t=g.useRef(e);t.current=e;const n=g.useCallback((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[]);return e?n:void 0}function Yv(e,t,n,r){const{activeKey:o,onActive:i,onInactive:a}=g.useContext(kv),l={active:o===e};return t||(l.onMouseEnter=t=>{null==n||n({key:e,domEvent:t}),i(e)},l.onMouseLeave=t=>{null==r||r({key:e,domEvent:t}),a(e)}),l}function Zv(e){const{mode:t,rtl:n,inlineIndent:r}=g.useContext(kv);if("inline"!==t)return null;return n?{paddingRight:e*r}:{paddingLeft:e*r}}function Qv({icon:e,props:t,children:n}){let r;return null===e||!1===e?null:("function"==typeof e?r=g.createElement(e,{...t}):"boolean"!=typeof e&&(r=e),r||n||null)}function Jv({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(nt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eb.apply(this,arguments)}class tb extends g.Component{render(){const{title:e,attribute:t,elementRef:n,...r}=this.props,o=at(r,["eventKey","popupClassName","popupOffset","onTitleClick"]);return nt(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),g.createElement(Wm.Item,eb({},t,{title:"string"==typeof e?e:void 0},o,{ref:n}))}}const nb=g.forwardRef((e,t)=>{const{style:n,className:r,eventKey:o,warnKey:i,disabled:a,itemIcon:l,children:s,role:c,onMouseEnter:u,onMouseLeave:d,onClick:h,onKeyDown:p,onFocus:f,...m}=e,y=Cv(o),{prefixCls:v,onItemClick:b,disabled:x,overflowDisabled:w,itemIcon:C,selectedKeys:k,onActive:S}=g.useContext(kv),{_internalRenderMenuItem:E}=g.useContext(Nv),$=`${v}-item`,T=g.useRef(),P=g.useRef(),M=x||a,O=fe(t,P),N=Mv(o),A=e=>({key:o,keyPath:[...N].reverse(),item:T.current,domEvent:e}),I=l||C,{active:R,...L}=Yv(o,M,u,d),B=k.includes(o),z=Zv(N.length),D={};"option"===e.role&&(D["aria-selected"]=B);let j=g.createElement(tb,eb({ref:T,elementRef:O,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":w&&y?null:y},at(m,["extra"]),L,D,{component:"li","aria-disabled":a,style:{...z,...n},className:Kt($,{[`${$}-active`]:R,[`${$}-selected`]:B,[`${$}-disabled`]:M},r),onClick:e=>{if(M)return;const t=A(e);null==h||h(Jv(t)),b(t)},onKeyDown:e=>{if(null==p||p(e),e.which===qe.ENTER){const t=A(e);null==h||h(Jv(t)),b(t)}},onFocus:e=>{S(o),null==f||f(e)}}),s,g.createElement(Qv,{props:{...e,isSelected:B},icon:I}));return E&&(j=E(j,e,{selected:B})),j});function rb(e,t){const{eventKey:n}=e,r=Tv(),o=Mv(n);return g.useEffect(()=>{if(r)return r.registerPath(n,o),()=>{r.unregisterPath(n,o)}},[o]),r?null:g.createElement(nb,eb({},e,{ref:t}))}const ob=g.forwardRef(rb);function ib(){return ib=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ib.apply(this,arguments)}const ab=({className:e,children:t,...n},r)=>{const{prefixCls:o,mode:i,rtl:a}=g.useContext(kv);return g.createElement("ul",ib({className:Kt(o,a&&`${o}-rtl`,`${o}-sub`,`${o}-${"inline"===i?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},lb=g.forwardRef(ab);function sb(e,t){return gt(e).map((e,n)=>{var r;if(g.isValidElement(e)){const{key:o}=e;let i=(null==(r=e.props)?void 0:r.eventKey)??o;null==i&&(i=`tmp_key-${[...t,n].join("-")}`);const a={key:i,eventKey:i};return g.cloneElement(e,a)}return e})}const cb={adjustX:1,adjustY:1},ub={topLeft:{points:["bl","tl"],overflow:cb},topRight:{points:["br","tr"],overflow:cb},bottomLeft:{points:["tl","bl"],overflow:cb},bottomRight:{points:["tr","br"],overflow:cb},leftTop:{points:["tr","tl"],overflow:cb},leftBottom:{points:["br","bl"],overflow:cb},rightTop:{points:["tl","tr"],overflow:cb},rightBottom:{points:["bl","br"],overflow:cb}},db={topLeft:{points:["bl","tl"],overflow:cb},topRight:{points:["br","tr"],overflow:cb},bottomLeft:{points:["tl","bl"],overflow:cb},bottomRight:{points:["tr","br"],overflow:cb},rightTop:{points:["tr","tl"],overflow:cb},rightBottom:{points:["br","bl"],overflow:cb},leftTop:{points:["tl","tr"],overflow:cb},leftBottom:{points:["bl","br"],overflow:cb}};function hb(e,t,n){return t||(n?n[e]||n.other:void 0)}const pb={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fb({prefixCls:e,visible:t,children:n,popup:r,popupStyle:o,popupClassName:i,popupOffset:a,disabled:l,mode:s,onVisibleChange:c}){const{getPopupContainer:u,rtl:d,subMenuOpenDelay:h,subMenuCloseDelay:p,builtinPlacements:f,triggerSubMenuAction:m,forceSubMenuRender:y,rootClassName:v,motion:b,defaultMotions:x}=g.useContext(kv),[w,C]=g.useState(!1),k=d?{...db,...f}:{...ub,...f},S=pb[s],E=hb(s,b,x),$=g.useRef(E);"inline"!==s&&($.current=E);const T={...$.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},P=g.useRef();return g.useEffect(()=>(P.current=mt(()=>{C(t)}),()=>{mt.cancel(P.current)}),[t]),g.createElement(Ms,{prefixCls:e,popupClassName:Kt(`${e}-popup`,{[`${e}-rtl`]:d},i,v),stretch:"horizontal"===s?"minWidth":null,getPopupContainer:u,builtinPlacements:k,popupPlacement:S,popupVisible:w,popup:r,popupStyle:o,popupAlign:a&&{offset:a},action:l?[]:[m],mouseEnterDelay:h,mouseLeaveDelay:p,onPopupVisibleChange:c,forceRender:y,popupMotion:T,fresh:!0},n)}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mb.apply(this,arguments)}function gb({id:e,open:t,keyPath:n,children:r}){const o="inline",{prefixCls:i,forceSubMenuRender:a,motion:l,defaultMotions:s,mode:c}=g.useContext(kv),u=g.useRef(!1);u.current=c===o;const[d,h]=g.useState(!u.current),p=!!u.current&&t;g.useEffect(()=>{u.current&&h(!1)},[c]);const f={...hb(o,l,s)};n.length>1&&(f.motionAppear=!1);const m=f.onVisibleChanged;return f.onVisibleChanged=e=>(u.current||e||h(!0),null==m?void 0:m(e)),d?null:g.createElement(Sv,{mode:o,locked:!u.current},g.createElement(Ba,mb({visible:p},f,{forceRender:a,removeOnLeave:!1,leavedClassName:`${i}-hidden`}),({className:t,style:n})=>g.createElement(lb,{id:e,className:t,style:n},r)))}function yb(){return yb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yb.apply(this,arguments)}const vb=g.forwardRef((e,t)=>{const{style:n,className:r,styles:o,classNames:i,title:a,eventKey:l,warnKey:s,disabled:c,internalPopupClose:u,children:d,itemIcon:h,expandIcon:p,popupClassName:f,popupOffset:m,popupStyle:y,onClick:v,onMouseEnter:b,onMouseLeave:x,onTitleClick:w,onTitleMouseEnter:C,onTitleMouseLeave:k,popupRender:S,...E}=e,$=Cv(l),{prefixCls:T,mode:P,openKeys:M,disabled:O,overflowDisabled:N,activeKey:A,selectedKeys:I,itemIcon:R,expandIcon:L,onItemClick:B,onOpenChange:z,onActive:D,popupRender:j}=g.useContext(kv),{_internalRenderSubMenuItem:_}=g.useContext(Nv),{isSubPathKey:F}=g.useContext(Ov),H=Mv(),W=`${T}-submenu`,K=O||c,V=g.useRef(),U=g.useRef(),q=h??R,G=p??L,X=M.includes(l),Y=!N&&X,Z=F(I,l),{active:Q,...J}=Yv(l,K,C,k),[ee,te]=g.useState(!1),ne=e=>{K||te(e)},re=g.useMemo(()=>Q||"inline"!==P&&(ee||F([A],l)),[P,Q,A,ee,l,F]),oe=Zv(H.length),ie=Xv(e=>{null==v||v(Jv(e)),B(e)}),ae=e=>{"inline"!==P&&z(l,e)},le=$&&`${$}-popup`,se=g.useMemo(()=>g.createElement(Qv,{icon:"horizontal"!==P?G:void 0,props:{...e,isOpen:Y,isSubMenu:!0}},g.createElement("i",{className:`${W}-arrow`})),[P,G,e,Y,W]);let ce=g.createElement("div",yb({role:"menuitem",style:oe,className:`${W}-title`,tabIndex:K?null:-1,ref:V,title:"string"==typeof a?a:null,"data-menu-id":N&&$?null:$,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":K,onClick:e=>{K||(null==w||w({key:l,domEvent:e}),"inline"===P&&z(l,!X))},onFocus:()=>{D(l)}},J),a,se);const ue=g.useRef(P);"inline"!==P&&H.length>1?ue.current="vertical":ue.current=P;const de=ue.current,he=g.useMemo(()=>{const t=g.createElement(Sv,{classNames:i,styles:o,mode:"horizontal"===de?"vertical":de},g.createElement(lb,{id:le,ref:U},d)),n=S||j;if(n){return n(t,{item:e,keys:H})}return t},[S,j,H,le,d,e,de]);if(!N){const e=ue.current;ce=g.createElement(fb,{mode:e,prefixCls:W,visible:!u&&Y&&"inline"!==P,popupClassName:f,popupOffset:m,popupStyle:y,popup:he,disabled:K,onVisibleChange:ae},ce)}let pe=g.createElement(Wm.Item,yb({ref:t,role:"none"},E,{component:"li",style:n,className:Kt(W,`${W}-${P}`,r,{[`${W}-open`]:Y,[`${W}-active`]:re,[`${W}-selected`]:Z,[`${W}-disabled`]:K}),onMouseEnter:e=>{ne(!0),null==b||b({key:l,domEvent:e})},onMouseLeave:e=>{ne(!1),null==x||x({key:l,domEvent:e})}}),ce,!N&&g.createElement(gb,{id:le,open:Y,keyPath:H},d));return _&&(pe=_(pe,e,{selected:Z,active:re,open:Y,disabled:K})),g.createElement(Sv,{classNames:i,styles:o,onItemClick:ie,mode:"horizontal"===P?"vertical":P,itemIcon:q,expandIcon:G},pe)}),bb=g.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=Mv(n),i=sb(r,o),a=Tv();let l;return g.useEffect(()=>{if(a)return a.registerPath(n,o),()=>{a.unregisterPath(n,o)}},[o]),l=a?i:g.createElement(vb,yb({ref:t},e),i),g.createElement(Pv.Provider,{value:o},l)});function xb({className:e,style:t}){const{prefixCls:n}=g.useContext(kv);return Tv()?null:g.createElement("li",{role:"separator",className:Kt(`${n}-item-divider`,e),style:t})}function wb(){return wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wb.apply(this,arguments)}const Cb=g.forwardRef((e,t)=>{const{className:n,title:r,eventKey:o,children:i,...a}=e,{prefixCls:l,classNames:s,styles:c}=g.useContext(kv),u=`${l}-item-group`;return g.createElement("li",wb({ref:t,role:"presentation"},a,{onClick:e=>e.stopPropagation(),className:Kt(u,n)}),g.createElement("div",{role:"presentation",className:Kt(`${u}-title`,null==s?void 0:s.listTitle),style:null==c?void 0:c.listTitle,title:"string"==typeof r?r:void 0},r),g.createElement("ul",{role:"group",className:Kt(`${u}-list`,null==s?void 0:s.list),style:null==c?void 0:c.list},i))}),kb=g.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,o=sb(r,Mv(n));return Tv()?o:g.createElement(Cb,wb({ref:t},at(e,["warnKey"])),o)});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)}function Eb(e,t,n){const{item:r,group:o,submenu:i,divider:a}=t;return(e||[]).map((e,l)=>{if(e&&"object"==typeof e){const{label:s,children:c,key:u,type:d,extra:h,...p}=e,f=u??`tmp-${l}`;if(c||"group"===d)return"group"===d?g.createElement(o,Sb({key:f},p,{title:s}),Eb(c,t,n)):g.createElement(i,Sb({key:f},p,{title:s}),Eb(c,t,n));if("divider"===d)return g.createElement(a,Sb({key:f},p));const m=!!h||0===h;return g.createElement(r,Sb({key:f},p,{extra:h}),m?g.createElement(g.Fragment,null,g.createElement("span",{className:`${n}-item-label`},s),g.createElement("span",{className:`${n}-item-extra`},h)):s)}return null}).filter(e=>e)}function $b(e,t,n,r,o){let i=e;const a={divider:xb,item:ob,group:kb,submenu:bb,...r};return t&&(i=Eb(t,a,o)),sb(i,n)}function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tb.apply(this,arguments)}const Pb=[],Mb=g.forwardRef((e,t)=>{var n;const{prefixCls:r="rc-menu",rootClassName:o,style:i,className:a,styles:l,classNames:s,tabIndex:c=0,items:u,children:d,direction:h,id:p,mode:f="vertical",inlineCollapsed:m,disabled:y,disabledOverflow:v,subMenuOpenDelay:b=.1,subMenuCloseDelay:x=.1,forceSubMenuRender:w,defaultOpenKeys:C,openKeys:k,activeKey:S,defaultActiveFirst:E,selectable:$=!0,multiple:T=!1,defaultSelectedKeys:P,selectedKeys:M,onSelect:O,onDeselect:N,inlineIndent:A=24,motion:I,defaultMotions:R,triggerSubMenuAction:L="hover",builtinPlacements:B,itemIcon:z,expandIcon:D,overflowedIndicator:j="...",overflowedIndicatorPopupClassName:_,getPopupContainer:F,onClick:H,onOpenChange:W,onKeyDown:K,openAnimation:V,openTransitionName:U,_internalRenderMenuItem:q,_internalRenderSubMenuItem:G,_internalComponents:X,popupRender:Z,...Q}=e,[J,te]=g.useMemo(()=>[$b(d,u,Pb,X,r),$b(d,u,Pb,{},r)],[d,u,X]),[ne,re]=g.useState(!1),oe=g.useRef(),ie=ee(p?`rc-menu-uuid-${p}`:"rc-menu-uuid"),ae="rtl"===h,[le,se]=Y(C,k),ce=le||Pb,ue=(e,t=!1)=>{function n(){se(e),null==W||W(e)}t?Pt.flushSync(n):n()},[de,he]=g.useState(ce),pe=g.useRef(!1),[fe,me]=g.useMemo(()=>"inline"!==f&&"vertical"!==f||!m?[f,!1]:["vertical",m],[f,m]),ge="inline"===fe,[ye,ve]=g.useState(fe),[be,xe]=g.useState(me);g.useEffect(()=>{ve(fe),xe(me),pe.current&&(ge?se(de):ue(Pb))},[fe,me]);const[we,Ce]=g.useState(0),ke=we>=J.length-1||"horizontal"!==ye||v;g.useEffect(()=>{ge&&he(ce)},[ce]),g.useEffect(()=>(pe.current=!0,()=>{pe.current=!1}),[]);const{registerPath:Se,unregisterPath:Ee,refreshOverflowKeys:$e,isSubPathKey:Te,getKeyPath:Pe,getKeys:Me,getSubPathKeys:Oe}=Gv(),Ne=g.useMemo(()=>({registerPath:Se,unregisterPath:Ee}),[Se,Ee]),Ae=g.useMemo(()=>({isSubPathKey:Te}),[Te]);g.useEffect(()=>{$e(ke?Pb:J.slice(we+1).map(e=>e.key))},[we,ke]);const[Ie,Re]=Y(S||E&&(null==(n=J[0])?void 0:n.key),S),Le=Xv(e=>{Re(e)}),Be=Xv(()=>{Re(void 0)});g.useImperativeHandle(t,()=>({list:oe.current,focus:e=>{var t,n;const r=Me(),{elements:o,key2element:i,element2key:a}=Wv(r,ie),l=Fv(oe.current,o);let s;s=Ie&&r.includes(Ie)?Ie:l[0]?a.get(l[0]):null==(t=J.find(e=>!e.props.disabled))?void 0:t.key;const c=i.get(s);s&&c&&(null==(n=null==c?void 0:c.focus)||n.call(c,e))},findItem:({key:e})=>{const t=Me(),{key2element:n}=Wv(t,ie);return n.get(e)||null}}));const[ze,De]=Y(P||[],M),je=g.useMemo(()=>Array.isArray(ze)?ze:null==ze?Pb:[ze],[ze]),_e=Xv(e=>{null==H||H(Jv(e)),(e=>{if($){const{key:t}=e,n=je.includes(t);let r;r=T?n?je.filter(e=>e!==t):[...je,t]:[t],De(r);const o={...e,selectedKeys:r};n?null==N||N(o):null==O||O(o)}!T&&ce.length&&"inline"!==ye&&ue(Pb)})(e)}),Fe=Xv((e,t)=>{let n=ce.filter(t=>t!==e);if(t)n.push(e);else if("inline"!==ye){const t=Oe(e);n=n.filter(e=>!t.has(e))}rt(ce,n,!0)||ue(n,!0)}),He=Kv(ye,Ie,ae,ie,oe,Me,Pe,Re,(e,t)=>{const n=t??!ce.includes(e);Fe(e,n)},K);g.useEffect(()=>{re(!0)},[]);const We=g.useMemo(()=>({_internalRenderMenuItem:q,_internalRenderSubMenuItem:G}),[q,G]),Ke="horizontal"!==ye||v?J:J.map((e,t)=>g.createElement(Sv,{key:e.key,overflowDisabled:t>we,classNames:s,styles:l},e)),Ve=g.createElement(Wm,Tb({id:p,ref:oe,prefixCls:`${r}-overflow`,component:"ul",itemComponent:ob,className:Kt(r,`${r}-root`,`${r}-${ye}`,a,{[`${r}-inline-collapsed`]:be,[`${r}-rtl`]:ae},o),dir:h,style:i,role:"menu",tabIndex:c,data:Ke,renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?J.slice(-t):null;return g.createElement(bb,{eventKey:qv,title:j,disabled:ke,internalPopupClose:0===t,popupClassName:_},n)},maxCount:"horizontal"!==ye||v?Wm.INVALIDATE:Wm.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{Ce(e)},onKeyDown:He},Q));return g.createElement(Nv.Provider,{value:We},g.createElement(xv.Provider,{value:ie},g.createElement(Sv,{prefixCls:r,rootClassName:o,classNames:s,styles:l,mode:ye,openKeys:ce,rtl:ae,disabled:y,motion:ne?I:null,defaultMotions:ne?R:null,activeKey:Ie,onActive:Le,onInactive:Be,selectedKeys:je,inlineIndent:A,subMenuOpenDelay:b,subMenuCloseDelay:x,forceSubMenuRender:w,builtinPlacements:B,triggerSubMenuAction:L,getPopupContainer:F,itemIcon:z,expandIcon:D,onItemClick:_e,onOpenChange:Fe,popupRender:Z},g.createElement(Ov.Provider,{value:Ae},Ve),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement($v.Provider,{value:Ne},te)))))});Mb.Item=ob,Mb.SubMenu=bb,Mb.ItemGroup=kb,Mb.Divider=xb;const Ob=g.createContext({});var Nb={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 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)}const Ib=(e,t)=>g.createElement(ji,Ab({},e,{ref:t,icon:Nb})),Rb=g.forwardRef(Ib),Lb=g.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),Bb=e=>{const{prefixCls:t,className:n,dashed:r,...o}=e,{getPrefixCls:i}=g.useContext(Zt),a=i("menu",t),l=Kt({[`${a}-item-divider-dashed`]:!!r},n);return g.createElement(xb,{className:l,...o})},zb=e=>{var t,n;const{className:r,children:o,icon:i,title:a,danger:l,extra:s}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:h,tooltip:p,inlineCollapsed:f,styles:m,classNames:y}=g.useContext(Lb),{siderCollapsed:v}=g.useContext(Ob);let b=a;void 0===a?b=u?o:"":!1===a&&(b="");const x=!1===p?void 0:p,w=x&&void 0!==x.title?x.title:b,C={...x??null,title:w};v||f||(C.title=null,C.open=!1);const k=gt(o).length;let S=g.createElement(ob,{...at(e,["title","icon","danger"]),className:Kt(u?null==y?void 0:y.item:null==(t=null==y?void 0:y.subMenu)?void 0:t.item,{[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?k+1:k)},r),style:{...u?null==m?void 0:m.item:null==(n=null==m?void 0:m.subMenu)?void 0:n.item,...e.style},title:"string"==typeof a?a:void 0},As(i,e=>{var t,n;return{className:Kt(`${c}-item-icon`,u?null==y?void 0:y.itemIcon:null==(t=null==y?void 0:y.subMenu)?void 0:t.itemIcon,e.className),style:{...u?null==m?void 0:m.itemIcon:null==(n=null==m?void 0:m.subMenu)?void 0:n.itemIcon,...e.style}}}),(e=>{var t,n;const r=null==o?void 0:o[0],a=g.createElement("span",{className:Kt(`${c}-title-content`,u?null==y?void 0:y.itemContent:null==(t=null==y?void 0:y.subMenu)?void 0:t.itemContent,{[`${c}-title-content-with-extra`]:!!s||0===s}),style:u?null==m?void 0:m.itemContent:null==(n=null==m?void 0:m.subMenu)?void 0:n.itemContent},o);return(!i||g.isValidElement(o)&&"span"===o.type)&&o&&e&&u&&"string"==typeof r?g.createElement("div",{className:`${c}-inline-collapsed-noicon`},r.charAt(0)):a})(f));if(!h&&!1!==p){const e=x&&x.placement?x.placement:"rtl"===d?"left":"right",t=`${c}-inline-collapsed-tooltip`,n=e=>({...e,root:Kt(t,null==e?void 0:e.root)}),r=Ya(null==x?void 0:x.classNames)?e=>{const t=x.classNames(e);return n(t)}:n(null==x?void 0:x.classNames);S=g.createElement(tv,{...C,placement:e,classNames:r},S)}return S},Db=g.createContext(null),jb=g.forwardRef((e,t)=>{const{children:n,...r}=e,o=g.useContext(Db),i=g.useMemo(()=>({...o,...r}),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=ye(n),l=fe(t,a?ve(n):null);return g.createElement(Db.Provider,{value:i},g.createElement(Gp,{space:!0},a?g.cloneElement(n,{ref:l}):n))}),_b=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${wn(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${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"}}}},Fb=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${wn(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${wn(t)})`}}}}),Hb=e=>bi(e),Wb=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:y,itemHoverColor:v,lineType:b,colorSplit:x,itemDisabledColor:w,dangerItemColor:C,dangerItemHoverColor:k,dangerItemSelectedColor:S,dangerItemActiveBg:E,dangerItemSelectedBg:$,popupBg:T,itemHoverBg:P,itemActiveBg:M,menuSubMenuBg:O,horizontalItemSelectedColor:N,horizontalItemSelectedBg:A,horizontalItemBorderRadius:I,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:{...Hb(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...Hb(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !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:P},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:k}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:$}},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${n}-popup > ${n}`]:{backgroundColor:T},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:T},[`&${n}-horizontal`]:{..."dark"===t?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:I,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${wn(u)} solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:u,borderBottomColor:N}},"&-selected":{color:N,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:u,borderBottomColor:N}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${wn(h)} ${b} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wn(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(e=>`${e} ${y} ${m}`).join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(e=>`${e} ${y} ${f}`).join(",")}}}}}},Kb=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:wn(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:wn(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},Vb=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,padding:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:h,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:y}=e,v={height:r,lineHeight:wn(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...Kb(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...Kb(e),boxShadow:m}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${wn(e.calc(a).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 ${h} ${l}`].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:c}},[`${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"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"center",insetInlineStart:0,paddingInline:`calc(50% - ${wn(e.calc(y).div(2).equal())} - ${wn(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:wn(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:s},"a, a:hover":{color:o}},[`${t}-item-group-title`]:{...yi,paddingInline:f}}}]},Ub=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=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) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{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"}},[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},qb=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(e=>`${e} ${n}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:["background-color","transform","top","color"].map(e=>`${e} ${n} ${r}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${wn(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${wn(a)})`}}}}},Gb=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:f,menuArrowOffset:m,lineType:g,groupTitleLineHeight:y,groupTitleFontSize:v,iconSize:b,iconMarginInlineEnd:x}=e,w=[`> ${t}-typography-ellipsis-single-line`,`> ${n}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[n]:{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...vi(e),"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${wn(l)} ${wn(s)}`,fontSize:v,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:["border-color","background-color"].map(e=>`${e} ${o} ${a}`).join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o}`,`background-color ${o}`,`padding ${i}`].map(e=>`${e} ${a}`).join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(e=>`${e} ${o} ${a}`).join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${n}-item-label`]:{flex:"auto",minWidth:0,...yi},[w]:{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% - ${wn(e.calc(b).add(x??0).equal())})`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}},...Ub(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${wn(e.calc(r).mul(2).equal())} ${wn(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:h,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:h,...Ub(e),...qb(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}}},"&-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}},...qb(e),[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${wn(m)})`},"&::after":{transform:`rotate(45deg) translateX(${wn(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${wn(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${wn(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${wn(m)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Xb=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:o,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:h,colorBgTextHover:p,controlHeightLG:f,lineHeight:m,colorBgElevated:g,marginXXS:y,padding:v,fontSize:b,controlHeightSM:x,fontSizeLG:w,colorTextLightSolid:C,colorErrorHover:k}=e,S=e.activeBarWidth??0,E=e.activeBarBorderWidth??u,$=e.itemMarginInline??e.marginXXS,T=new Mo(C).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:c,itemActiveBg:h,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:S,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:E,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:o,dangerItemActiveBg:o,colorDangerItemBgSelected:o,dangerItemSelectedBg:o,itemMarginInline:$,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:f,groupTitleLineHeight:m,collapsedWidth:2*f,popupBg:g,itemMarginBlock:y,itemPaddingInline:v,horizontalLineHeight:1.15*f+"px",iconSize:b,iconMarginInlineEnd:x-b,collapsedIconSize:w,groupTitleFontSize:b,darkItemDisabledColor:new Mo(C).setA(.25).toRgbString(),darkItemColor:T,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:C,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:T,darkItemHoverColor:C,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:n,itemWidth:S?`calc(100% + ${E}px)`:`calc(100% - ${2*$}px)`}},Yb=e=>{var t,n,r,o,i,a;const{popupClassName:l,icon:s,title:c,theme:u}=e,d=g.useContext(Lb),{prefixCls:h,inlineCollapsed:p,theme:f,classNames:m,styles:y}=d,v=Mv();let b;if(s){const e=g.isValidElement(c)&&"span"===c.type;b=g.createElement(g.Fragment,null,As(s,e=>({className:Kt(e.className,`${h}-item-icon`,null==m?void 0:m.itemIcon),style:{...e.style,...null==y?void 0:y.itemIcon}})),e?c:g.createElement("span",{className:`${h}-title-content`},c))}else b=p&&!v.length&&c&&"string"==typeof c?g.createElement("div",{className:`${h}-inline-collapsed-noicon`},c.charAt(0)):g.createElement("span",{className:`${h}-title-content`},c);const x=g.useMemo(()=>({...d,firstLevel:!1}),[d]),[w]=zc("Menu");return g.createElement(Lb.Provider,{value:x},g.createElement(bb,{...at(e,["icon"]),title:b,classNames:{list:null==(t=null==m?void 0:m.subMenu)?void 0:t.list,listTitle:null==(n=null==m?void 0:m.subMenu)?void 0:n.itemTitle},styles:{list:null==(r=null==y?void 0:y.subMenu)?void 0:r.list,listTitle:null==(o=null==y?void 0:y.subMenu)?void 0:o.itemTitle},popupClassName:Kt(h,l,null==(i=null==m?void 0:m.popup)?void 0:i.root,`${h}-${u||f}`),popupStyle:{zIndex:w,...e.popupStyle,...null==(a=null==y?void 0:y.popup)?void 0:a.root}}))};function Zb(e){return null===e||!1===e}const Qb={item:zb,submenu:Yb,divider:Bb},Jb=g.forwardRef((e,t)=>{var n;const r=g.useContext(Db),o=r||{},{prefixCls:i,className:a,style:l,theme:s="light",expandIcon:c,_internalDisableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:h,siderCollapsed:p,rootClassName:f,mode:m,selectable:y,onClick:v,overflowedIndicatorPopupClassName:b,classNames:x,styles:w,...C}=e,{menu:k}=g.useContext(Zt),{getPrefixCls:S,getPopupContainer:E,direction:$,className:T,style:P,classNames:M,styles:O}=en("menu"),N=S(),A=at(C,["collapsedWidth"]);null==(n=o.validator)||n.call(o,{mode:m});const I=V((...e)=>{var t;null==v||v(...e),null==(t=o.onClick)||t.call(o)}),R=o.mode||m,L=y??o.selectable,B=h??p,z={...e,mode:R,inlineCollapsed:B,selectable:L,theme:s},[D,j]=il([M,x],[O,w],{props:z},{popup:{_default:"root"},subMenu:{_default:"item"}}),_={horizontal:{motionName:`${N}-slide-up`},inline:Su(N),other:{motionName:`${N}-zoom-big`}},F=S("menu",i||o.prefixCls),H=El(F),[W,K]=((e,t=e,n=!0)=>ki("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:h,darkItemHoverColor:p,darkItemDisabledColor:f,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:y,popupBg:v,darkPopupBg:b}=e,x=e.calc(r).div(7).mul(5).equal(),w=fo(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),C=fo(w,{itemColor:o,itemHoverColor:p,groupTitleColor:h,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:a,popupBg:b,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:f,dangerItemColor:i,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:y,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[Gb(w),_b(w),Vb(w),Wb(w,"light"),Wb(C,"dark"),Fb(w),Ju(w),Cd(w,"slide-up"),Cd(w,"slide-down"),Bd(w,"zoom-big")]},Xb,{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))(F,H,!r),U=Kt(`${F}-${s}`,T,a),q=g.useMemo(()=>{var e;if(Ya(c)||Zb(c))return c||null;if(Ya(o.expandIcon)||Zb(o.expandIcon))return o.expandIcon||null;if(Ya(null==k?void 0:k.expandIcon)||Zb(null==k?void 0:k.expandIcon))return(null==k?void 0:k.expandIcon)||null;const t=c??(null==o?void 0:o.expandIcon)??(null==k?void 0:k.expandIcon);return As(t,{className:Kt(`${F}-submenu-expand-icon`,g.isValidElement(t)?null==(e=t.props)?void 0:e.className:void 0)})},[c,null==o?void 0:o.expandIcon,null==k?void 0:k.expandIcon,F]),G=g.useMemo(()=>({prefixCls:F,inlineCollapsed:B||!1,direction:$,firstLevel:!0,theme:s,mode:R,disableMenuItemTitleTooltip:u,tooltip:d,classNames:D,styles:j}),[F,B,$,u,s,R,D,j,d]);return g.createElement(Db.Provider,{value:null},g.createElement(Lb.Provider,{value:G},g.createElement(Mb,{getPopupContainer:E,overflowedIndicator:g.createElement(Rb,null),overflowedIndicatorPopupClassName:Kt(F,`${F}-${s}`,b),classNames:{list:D.list,listTitle:D.itemTitle},styles:{list:j.list,listTitle:j.itemTitle},mode:R,selectable:L,onClick:I,...A,inlineCollapsed:B,style:{...j.root,...P,...l},className:U,prefixCls:F,direction:$,defaultMotions:_,expandIcon:q,ref:t,rootClassName:Kt(f,W,o.rootClassName,K,H,D.root),_internalComponents:Qb})))}),ex=g.forwardRef((e,t)=>{const n=g.useRef(null),r=g.useContext(Ob);return g.useImperativeHandle(t,()=>({menu:n.current,focus:e=>{var t;null==(t=n.current)||t.focus(e)}})),g.createElement(Jb,{ref:n,...e,...r})});ex.Item=zb,ex.SubMenu=Yb,ex.Divider=Bb,ex.ItemGroup=kb;const tx=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},nx=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:h,fontSizeIcon:p,controlPaddingHorizontal:f,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:pd},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:md},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:fd},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:gd}}},_y(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${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`]:{...vi(e),[n]:{padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...xi(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${wn(c)} ${wn(f)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${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 ${s}`,"&: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:`${wn(c)} ${wn(f)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...xi(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${wn(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 ${wn(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(f).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Cd(e,"slide-up"),Cd(e,"slide-down"),hd(e,"move-up"),hd(e,"move-down"),Bd(e,"zoom-big")]]},rx=ki("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=fo(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[nx(i),tx(i)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Dy({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...By(e)}),{resetStyle:!1}),ox=g.forwardRef((e,t)=>{const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:l,dropdownRender:s,popupRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:h,overlayStyle:p,open:f,onOpenChange:m,mouseEnterDelay:y=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:b=!0,placement:x="",transitionName:w,classNames:C,styles:k,destroyPopupOnHide:S,destroyOnHidden:E}=e,{getPrefixCls:$,direction:T,getPopupContainer:P,className:M,style:O,classNames:N,styles:A}=en("dropdown"),I={...e,mouseEnterDelay:y,mouseLeaveDelay:v,autoAdjustOverflow:b},[R,L]=il([N,C],[A,k],{props:I}),B={...O,...p,...L.root},z=c||s;Nt();const D=g.useMemo(()=>{const e=$();return void 0!==w?w:x.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[$,x,w]),j=g.useMemo(()=>x?x.includes("Center")?x.slice(0,x.indexOf("Center")):x:"rtl"===T?"bottomRight":"bottomLeft",[x,T]),_=$("dropdown",o),F=El(_),[H,W]=rx(_,F),[,K]=gi(),U=g.Children.only("object"!=typeof(q=i)&&!Ya(q)||null===q?g.createElement("span",null,i):i);var q;const G=fe(t,U.ref),X=As(U,{className:Kt(`${_}-trigger`,{[`${_}-rtl`]:"rtl"===T},U.props.className),disabled:U.props.disabled??l,ref:G}),Z=l?[]:a,Q=!!(null==Z?void 0:Z.includes("contextMenu")),[J,ee]=Y(!1,f),te=V(e=>{null==m||m(e,{source:"trigger"}),ee(e)}),ne=Kt(d,h,H,W,F,M,R.root,{[`${_}-rtl`]:"rtl"===T}),re=Ky({arrowPointAtCenter:Xa(r)&&r.pointAtCenter,autoAdjustOverflow:b,offset:K.marginXXS,arrowWidth:r?K.sizePopupArrow:0,borderRadius:K.borderRadius}),oe=V(()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==m||m(!1,{source:"menu"}),ee(!1))}),[ie,ae]=zc("Dropdown",B.zIndex);let le=g.createElement(bv,{alignPoint:Q,...at(e,["rootClassName","onOpenChange"]),mouseEnterDelay:y,mouseLeaveDelay:v,visible:J,builtinPlacements:re,arrow:!!r,overlayClassName:ne,prefixCls:_,getPopupContainer:u||P,transitionName:D,trigger:Z,overlay:()=>{const e=at(R,["root"]),t=at(L,["root"]);let r;return(null==n?void 0:n.items)&&(r=g.createElement(ex,{...n,classNames:{...e,subMenu:{...e}},styles:{...t,subMenu:{...t}}})),z&&(r=z(r)),r=g.Children.only("string"==typeof r?g.createElement("span",null,r):r),g.createElement(jb,{prefixCls:`${_}-menu`,rootClassName:Kt(W,F),expandIcon:g.createElement("span",{className:`${_}-menu-submenu-arrow`},"rtl"===T?g.createElement(dv,{className:`${_}-menu-submenu-arrow-icon`}):g.createElement(Ud,{className:`${_}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:({mode:e})=>{}},r)},placement:j,onVisibleChange:te,overlayStyle:{...B,zIndex:ie},autoDestroy:E??S},X);return ie&&(le=g.createElement(Ac.Provider,{value:ae},le)),le}),ix=lm(ox,"align",void 0,"dropdown",e=>e);ox._InternalPanelDoNotUseOrYouWillBeFired=e=>g.createElement(ix,{...e},g.createElement("span",null));var ax,lx={exports:{}};var sx=(ax||(ax=1,lx.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",s="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,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()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:s,d:l,D:h,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",x={};x[b]=g;var w="$isDayjsObject",C=function(e){return e instanceof $||!(!e||!e[w])},k=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(C(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new $(n)},E=v;E.l=k,E.i=C,E.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function g(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},y.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()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return S(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<S(e)},y.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,r=!!E.u(t)||t,u=E.p(e),p=function(e,t){var o=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},f=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case s:var b=this.$locale().weekStart||0,x=(m<b?m+7:m)-b;return p(r?y-x:y+(6-x),g);case l:case h:return f(v+"Hours",0);case a:return f(v+"Minutes",1);case i:return f(v+"Seconds",2);case o:return f(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,s=E.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[l]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[s],f=s===l?this.$D+(t-this.$W):t;if(s===c||s===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[E.p(e)]()},y.add=function(r,u){var h,p=this;r=Number(r);var f=E.p(u),m=function(e){var t=S(p);return E.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===l)return m(1);if(f===s)return m(7);var g=(h={},h[i]=t,h[a]=n,h[o]=e,h)[f]||1,y=this.$d.getTime()+r*g;return E.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=E.z(this),i=this.$H,a=this.$m,l=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},h=function(e){return E.s(i%12||12,e,"0")},f=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return l+1;case"MM":return E.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,c,3);case"MMMM":return d(c,l);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return E.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(i,a,!0);case"A":return f(i,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,p){var f,m=this,g=E.p(h),y=S(r),v=(y.utcOffset()-this.utcOffset())*t,b=this-y,x=function(){return E.m(m,y)};switch(g){case d:f=x()/12;break;case c:f=x();break;case u:f=x()/3;break;case s:f=(b-v)/6048e5;break;case l:f=(b-v)/864e5;break;case a:f=b/n;break;case i:f=b/t;break;case o:f=b/e;break;default:f=b}return p?f:E.a(f)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return x[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return E.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),T=$.prototype;return S.prototype=T,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",c],["$y",d],["$D",h]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,$,S),e.$i=!0),S},S.locale=k,S.isDayjs=C,S.unix=function(e){return S(1e3*e)},S.en=x[b],S.Ls=x,S.p={},S}()),lx.exports);const cx=c(sx),ux=["parentNode"];function dx(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function hx(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return ux.includes(n)?`form_item_${n}`:n}function px(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function fx(e){return dx(e).join("_")}function mx(e,t){const n=Ne(t.getFieldInstance(e));if(n)return n;const r=hx(dx(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}function gx(e){const[t]=Ip(),n=g.useRef({}),r=g.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{const r=fx(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{const{focus:n,...o}=t,i=mx(e,r);i&&(Cl(i,{scrollMode:"if-needed",block:"nearest",...o}),n&&r.focusField(e))},focusField:e=>{var t,n;const o=r.getFieldInstance(e);Ya(null==o?void 0:o.focus)?o.focus():null==(n=null==(t=mx(e,r))?void 0:t.focus)||n.call(t)},getFieldInstance:e=>{const t=fx(e);return n.current[t]}},[e,t]);return[r]}const yx=g.createContext(void 0),vx=yx.Provider,bx=g.createContext(void 0),xx=bx.Provider;function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wx.apply(this,arguments)}const Cx=g.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:o,checked:i,disabled:a,defaultChecked:l=!1,type:s="checkbox",title:c,onChange:u,...d}=e,h=g.useRef(null),p=g.useRef(null),[f,m]=Y(l,i);g.useImperativeHandle(t,()=>({focus:e=>{var t;null==(t=h.current)||t.focus(e)},blur:()=>{var e;null==(e=h.current)||e.blur()},input:h.current,nativeElement:p.current}));const y=Kt(n,r,{[`${n}-checked`]:f,[`${n}-disabled`]:a});return g.createElement("span",{className:y,title:c,style:o,ref:p},g.createElement("input",wx({},d,{className:`${n}-input`,ref:h,onChange:t=>{a||("checked"in e||m(t.target.checked),null==u||u({target:{...e,type:s,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:a,checked:!!f,type:s})))});function kx(e){const t=y.useRef(null),n=()=>{mt.cancel(t.current),t.current=null};return[()=>{n(),t.current=mt(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),null==e||e(r)}]}const Sx=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...vi(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-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,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},Ex=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:o,radioSize:i,motionDurationSlow:a,motionDurationMid:l,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:h,colorTextDisabled:p,paddingXS:f,dotColorDisabled:m,dotSize:g,lineType:y,radioColor:v,radioBgColor:b}=e;return{[`${t}-wrapper`]:{...vi(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]:{...vi(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${i} * 1px)`,height:`calc(${i} * 1px)`,backgroundColor:c,border:`${wn(d)} ${y} ${u}`,borderRadius:"50%",transition:`all ${l}`,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 ${a} ${s}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:bi(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:o,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:b,borderColor:r,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:h,borderColor:u,"&::after":{backgroundColor:m}},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}},$x=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationMid:l,buttonPaddingInline:s,fontSize:c,buttonBg:u,fontSizeLG:d,controlHeightLG:h,controlHeightSM:p,paddingXS:f,borderRadius:m,borderRadiusSM:g,borderRadiusLG:y,buttonCheckedBg:v,buttonSolidCheckedColor:b,colorTextDisabled:x,colorBgContainerDisabled:w,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:k,colorPrimary:S,colorPrimaryHover:E,colorPrimaryActive:$,buttonSolidCheckedBg:T,buttonSolidCheckedHoverBg:P,buttonSolidCheckedActiveBg:M,calc:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:c,lineHeight:wn(O(n).sub(O(o).mul(2)).equal()),background:u,border:`${wn(o)} ${i} ${a}`,borderBlockStartWidth:O(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:["color","background-color","box-shadow"].map(e=>`${e} ${l}`).join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:O(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${wn(o)} ${i} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:h,fontSize:d,lineHeight:wn(O(h).sub(O(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:O(f).sub(o).equal(),paddingBlock:0,lineHeight:wn(O(p).sub(O(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:S},"&:has(:focus-visible)":bi(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:S,background:v,borderColor:S,"&::before":{backgroundColor:S},"&:first-child":{borderColor:S},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:$,borderColor:$,"&::before":{backgroundColor:$}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:b,background:T,borderColor:T,"&:hover":{color:b,background:P,borderColor:P},"&:active":{color:b,background:M,borderColor:M}},"&-disabled":{color:x,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:w,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:C,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Tx=ki("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${wn(n)} ${t}`,o=fo(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Sx(o),Ex(o),$x(o)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:h,colorPrimaryActive:p,colorWhite:f}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:s,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:f,radioBgColor:t?l:d}},{unitless:{radioSize:!0,dotSize:!0}}),Px=(e,t)=>{const n=g.useContext(yx),r=g.useContext(bx),{getPrefixCls:o,direction:i,className:a,style:l,classNames:s,styles:c}=en("radio"),u=g.useRef(null),d=pe(t,u),{isFormItemInput:h}=g.useContext(Vp),p=t=>{var r,o;null==(r=e.onChange)||r.call(e,t),null==(o=null==n?void 0:n.onChange)||o.call(n,t)},{prefixCls:f,className:m,rootClassName:y,children:v,style:b,title:x,classNames:w,styles:C,...k}=e,S=o("radio",f),E="button"===((null==n?void 0:n.optionType)||r),$=E?`${S}-button`:S,T=El(S),[P,M]=Tx(S,T),O={...k},N=g.useContext(Bs);let A=O.checked;n&&(O.name=n.name,O.onChange=p,A=e.value===n.value,O.disabled=O.disabled??n.disabled),O.disabled=O.disabled??N;const I={...e,...O,checked:A},[R,L]=il([s,w],[c,C],{props:I}),B=Kt(`${$}-wrapper`,{[`${$}-wrapper-checked`]:A,[`${$}-wrapper-disabled`]:O.disabled,[`${$}-wrapper-rtl`]:"rtl"===i,[`${$}-wrapper-in-form-item`]:h,[`${$}-wrapper-block`]:!!(null==n?void 0:n.block)},a,m,y,R.root,P,M,T),[z,D]=kx(O.onClick);return g.createElement(Ru,{component:"Radio",disabled:O.disabled},g.createElement("label",{className:B,style:{...L.root,...l,...b},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:z},g.createElement(Cx,{...O,checked:A,className:Kt(R.icon,{[Tu]:!E}),style:L.icon,type:"radio",prefixCls:$,ref:d,onClick:D}),void 0!==v?g.createElement("span",{className:Kt(`${$}-label`,R.label),style:L.label},v):null))},Mx=g.forwardRef(Px),Ox=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(Zt),{name:o}=g.useContext(Vp),i=ee(fx(o)),{prefixCls:a,className:l,rootClassName:s,options:c,buttonStyle:u="outline",disabled:d,children:h,size:p,style:f,id:m,optionType:y,name:v=i,defaultValue:b,value:x,block:w=!1,onChange:C,onMouseEnter:k,onMouseLeave:S,onFocus:E,onBlur:$,orientation:T,vertical:P,role:M="radiogroup"}=e,[O,N]=Y(b,x),A=g.useCallback(t=>{const n=O,r=t.target.value;"value"in e||N(r),r!==n&&(null==C||C(t))},[O,N,C]),I=n("radio",a),R=`${I}-group`,L=El(I),[B,z]=Tx(I,L);let D=h;c&&c.length>0&&(D=c.map(e=>"string"==typeof e||qa(e)?g.createElement(Mx,{key:e.toString(),prefixCls:I,disabled:d,value:e,checked:O===e},e):g.createElement(Mx,{key:`radio-group-value-options-${e.value}`,prefixCls:I,disabled:e.disabled||d,value:e.value,checked:O===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const j=Lu(p),[,_]=Oc(T,P),F=Kt(R,`${R}-${u}`,{[`${R}-large`]:"large"===j,[`${R}-small`]:"small"===j,[`${R}-rtl`]:"rtl"===r,[`${R}-block`]:w},l,s,B,z,L),H=g.useMemo(()=>({onChange:A,value:O,disabled:d,name:v,optionType:y,block:w}),[A,O,d,v,y,w]);return g.createElement("div",{...ct(e,{aria:!0,data:!0}),role:M,className:Kt(F,{[`${I}-group-vertical`]:_}),style:f,onMouseEnter:k,onMouseLeave:S,onFocus:E,onBlur:$,id:m,ref:t},g.createElement(vx,{value:H},D))}),Nx=g.memo(Ox),Ax=(e,t)=>{const{getPrefixCls:n}=g.useContext(Zt),{prefixCls:r,...o}=e,i=n("radio",r);return g.createElement(xx,{value:"button"},g.createElement(Mx,{prefixCls:i,...o,type:"radio",ref:t}))},Ix=g.forwardRef(Ax),Rx=Mx;function Lx(e){return fo(e,{inputAffixPadding:e.paddingXXS})}Rx.Button=Ix,Rx.Group=Nx,Rx.__ANT_RADIO=!0;const Bx=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:f,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:y,colorWarningOutline:v,colorBgContainer:b,inputFontSize:x,inputFontSizeLG:w,inputFontSizeSM:C}=e,k=x||n,S=C||k,E=w||l,$=Math.round((t-k*r)/2*10)/10-o,T=Math.round((i-S*r)/2*10)/10-o,P=Math.ceil((a-E*s)/2*10)/10-o;return{paddingBlock:Math.max($,0),paddingBlockSM:Math.max(T,0),paddingBlockLG:Math.max(P,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:h,activeBorderColor:f,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${y}`,warningActiveShadow:`0 0 0 ${m}px ${v}`,hoverBg:b,activeBg:b,inputFontSize:k,inputFontSizeLG:E,inputFontSizeSM:S}},zx=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Dx=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])":{...zx(fo(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),jx=(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}}),_x=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...jx(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Fx=(e,t)=>({"&-outlined":{...jx(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Dx(e)},..._x(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),..._x(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),Hx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Wx=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...Hx(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...Hx(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Dx(e)}}}}),Kx=(e,t)=>{const{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"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError},[`${n}-prefix, ${n}-suffix`]:{color:e.colorErrorAffix}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning},[`${n}-prefix, ${n}-suffix`]:{color:e.colorWarningAffix}},...t}}},Vx=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(null==t?void 0:t.inputColor)??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Ux=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Vx(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),qx=(e,t)=>({"&-filled":{...Vx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Dx(e)},...Ux(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),...Ux(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),Gx=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Xx=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...Gx(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Gx(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:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),Yx=(e,t)=>({background:e.colorBgContainer,borderWidth:`${wn(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}}),Zx=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Yx(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`}}),Qx=(e,t)=>({"&-underlined":{...Yx(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"},...Zx(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...Zx(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),Jx=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ew=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${wn(t)} ${wn(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},tw=e=>({padding:`${wn(e.paddingBlockSM)} ${wn(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),nw=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${wn(e.paddingBlock)} ${wn(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Jx(e.colorTextPlaceholder),"&-lg":{...ew(e),...t.largeStyle},"&-sm":{...tw(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),rw=e=>{const{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`]:{...ew(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...tw(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 ${wn(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${wn(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${wn(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${wn(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${wn(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","&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},[`${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},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${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 & > ${n}-select:first-child,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${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`]:{}}}}},ow=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:{...vi(e),...nw(e),...Fx(e),...qx(e),...Kx(e),...Qx(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},iw=e=>{const{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,...bi(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${wn(e.inputAffixPadding)}`}}}},aw=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a}=e,l=`${t}-affix-wrapper`,s=`${t}-affix-wrapper-disabled`;return{[l]:{...nw(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:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}},...iw(e)},[`${t}-underlined`]:{borderRadius:0},[s]:{[`${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},lw=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...vi(e),...rw(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}},...Wx(e),...Xx(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}}}}}},sw=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},cw=ki(["Input","Shared"],e=>{const t=fo(e,Lx(e));return[ow(t),aw(t)]},Bx,{resetFont:!1}),uw=ki(["Input","Component"],e=>{const t=fo(e,Lx(e));return[lw(t),sw(t),sh(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Bx,{resetFont:!1});function dw(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function hw(e,t,n){var r={}.atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,u=void 0===c?void 0:c,d=!1,h=0;function p(){r&&clearTimeout(r)}function f(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,c=Date.now()-h;function f(){h=Date.now(),t.apply(l,o)}function m(){r=void 0}d||(s||!u||r||f(),p(),void 0===u&&c>e?s?(h=Date.now(),a||(r=setTimeout(u?m:f,e))):f():!0!==a&&(r=setTimeout(u?m:f,void 0===u?e-c:e)))}return f.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},f}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}function pw(e,t){return e[t]}function fw(e,t){return`${e}-${t}`}function mw(e,t){return null!=e?e:t}function gw(e){const{title:t,_title:n,key:r,children:o}=e||{},i=t||"title";return{title:i,_title:n||[i],key:r||"key",children:o||"children"}}function yw(e){return function e(t){return gt(t).map(t=>{if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return nt(!t,"Tree/TreeNode can only accept TreeNode as children."),null;const{key:n}=t,{children:r,...o}=t.props,i={key:n,...o},a=e(r);return a.length&&(i.children=a),i}).filter(e=>e)}(e)}function vw(e,t,n){const{_title:r,key:o,children:i}=gw(n),a=new Set(!0===t?[]:t),l=[];return function e(n,s=null){return n.map((c,u)=>{const d=fw(s?s.pos:"0",u),h=mw(c[o],d);let p;for(let e=0;e<r.length;e+=1){const t=r[e];if(void 0!==c[t]){p=c[t];break}}const f=Object.assign(at(c,[...r,o,i]),{title:p,key:h,parent:s,pos:d,children:null,data:c,isStart:[...s?s.isStart:[],0===u],isEnd:[...s?s.isEnd:[],u===n.length-1]});return l.push(f),!0===t||a.has(h)?f.children=e(c[i]||[],f):f.children=[],f})}(e),l}function bw(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:o,childrenPropName:i,fieldNames:a}={},l){const s=o||l,c={},u={};let d={posEntities:c,keyEntities:u};return t&&(d=t(d)||d),function(e,t,n){let r={};r="object"==typeof n?n:{externalGetKey:n},r=r||{};const{childrenPropName:o,externalGetKey:i,fieldNames:a}=r,{key:l,children:s}=gw(a),c=o||s;let u;i?"string"==typeof i?u=e=>e[i]:"function"==typeof i&&(u=e=>i(e)):u=(e,t)=>mw(e[l],t),function n(r,o,i,a){const l=r?r[c]:e,s=r?fw(i.pos,o):"0",d=r?[...a,r]:[];if(r){const e=u(r,s),n={node:r,index:o,pos:s,key:e,parentPos:i.node?i.pos:null,level:i.level+1,nodes:d};t(n)}l&&l.forEach((e,t)=>{n(e,t,{node:r,pos:s,level:i?i.level+1:-1},d)})}(null)}(e,e=>{const{node:t,index:r,pos:o,key:i,parentPos:a,level:l,nodes:s}=e,h={node:t,nodes:s,index:r,key:i,pos:o,level:l},p=mw(i,o);c[o]=h,u[p]=h,h.parent=c[a],h.parent&&(h.parent.children=h.parent.children||[],h.parent.children.push(h)),n&&n(h,d)},{externalGetKey:s,childrenPropName:i,fieldNames:a}),r&&r(d),d}function xw(e,t,n,r){return!1!==e&&(e||!t&&!n||t&&r&&!n)}function ww(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:o,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:l,dropPosition:s,keyEntities:c}){const u=pw(c,e);return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==a.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===s,dragOverGapTop:l===e&&-1===s,dragOverGapBottom:l===e&&1===s}}function Cw(e){const{data:t,expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h,eventKey:p}=e,f={...t,expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h,key:p};return"props"in f||Object.defineProperty(f,"props",{get:()=>(nt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e)}),f}function kw(e,t){const n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Sw(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!(!t&&!n)||!1===r}function Ew(e,t,n,r){const o=[];let i;i=r||Sw;const a=new Set(e.filter(e=>{const t=!!pw(n,e);return t||o.push(e),t})),l=new Map;let s,c=0;return Object.keys(n).forEach(e=>{const t=n[e],{level:r}=t;let o=l.get(r);o||(o=new Set,l.set(r,o)),o.add(t),c=Math.max(c,r)}),nt(!o.length,`Tree missing follow keys: ${o.slice(0,100).map(e=>`'${e}'`).join(", ")}`),s=!0===t?function(e,t,n,r){const o=new Set(e),i=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{const{key:t,node:n,children:i=[]}=e;o.has(t)&&!r(n)&&i.filter(e=>!r(e.node)).forEach(e=>{o.add(e.key)})});const a=new Set;for(let e=n;e>=0;e-=1)(t.get(e)||new Set).forEach(e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let l=!0,s=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{const t=o.has(e);l&&!t&&(l=!1),s||!t&&!i.has(e)||(s=!0)}),l&&o.add(t.key),s&&i.add(t.key),a.add(t.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(kw(i,o))}}(a,l,c,i):function(e,t,n,r,o){const i=new Set(e);let a=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{const{key:t,node:n,children:r=[]}=e;i.has(t)||a.has(t)||o(n)||r.filter(e=>!o(e.node)).forEach(e=>{i.delete(e.key)})});a=new Set;const l=new Set;for(let e=r;e>=0;e-=1)(n.get(e)||new Set).forEach(e=>{const{parent:t,node:n}=e;if(o(n)||!e.parent||l.has(e.parent.key))return;if(o(e.parent.node))return void l.add(t.key);let r=!0,s=!1;(t.children||[]).filter(e=>!o(e.node)).forEach(({key:e})=>{const t=i.has(e);r&&!t&&(r=!1),s||!t&&!a.has(e)||(s=!0)}),r||i.delete(t.key),s&&a.add(t.key),l.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(kw(a,i))}}(a,t.halfCheckedKeys,l,c,i),s}function $w(e,t){return(e=>{const{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,o=`${t}-wrapper`;return[{[`${t}-group`]:{...vi(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...vi(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0}},[t]:{...vi(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:`${wn(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none","@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},"&: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:`${wn(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}`,"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${r}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:bi(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`\n ${o}:not(${o}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-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}`,"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},[`&: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:'""'},"&:hover":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${o}-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}}}]})(fo(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}const Tw=ki("Checkbox",(e,{prefixCls:t})=>[$w(t,e)]),Pw=y.createContext(null),Mw=(e,t)=>{const{prefixCls:n,children:r,indeterminate:o=!1,onMouseEnter:i,onMouseLeave:a,skipGroup:l=!1,disabled:s,rootClassName:c,className:u,style:d,classNames:h,styles:p,name:f,value:m,checked:y,defaultChecked:v,onChange:b,...x}=e,{getPrefixCls:w,direction:C,className:k,style:S,classNames:E,styles:$}=en("checkbox"),T=g.useContext(Pw),{isFormItemInput:P}=g.useContext(Vp),M=g.useContext(Bs),O=((null==T?void 0:T.disabled)||s)??M,[N,A]=Y(v,y);let I=N;const R=V(e=>{A(e.target.checked),null==b||b(e),!l&&(null==T?void 0:T.toggleOption)&&T.toggleOption({label:r,value:m})});T&&!l&&(I=T.value.includes(m));const L=g.useRef(null),B=fe(t,L);g.useEffect(()=>{if(!l&&T)return T.registerValue(m),()=>{T.cancelValue(m)}},[m,l]),g.useEffect(()=>{var e;(null==(e=L.current)?void 0:e.input)&&(L.current.input.indeterminate=o)},[o]);const z=w("checkbox",n),D=El(z),[j,_]=Tw(z,D),F={...x},H={...e,indeterminate:o,disabled:O,checked:I},[W,K]=il([E,h],[$,p],{props:H}),U=Kt(`${z}-wrapper`,{[`${z}-rtl`]:"rtl"===C,[`${z}-wrapper-checked`]:I,[`${z}-wrapper-disabled`]:O,[`${z}-wrapper-in-form-item`]:P},k,u,W.root,c,_,D,j),q=Kt(W.icon,{[`${z}-indeterminate`]:o},Tu,j),[G,X]=kx(F.onClick);return g.createElement(Ru,{component:"Checkbox",disabled:O},g.createElement("label",{className:U,style:{...K.root,...S,...d},onMouseEnter:i,onMouseLeave:a,onClick:G},g.createElement(Cx,{...F,name:!l&&T?T.name:f,checked:I,onClick:X,onChange:R,prefixCls:z,className:q,style:K.icon,disabled:O,ref:B,value:m}),Ua(r)&&g.createElement("span",{className:Kt(`${z}-label`,W.label),style:K.label},r)))},Ow=g.forwardRef(Mw),Nw=g.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:c,role:u="group",...d}=e,{getPrefixCls:h,direction:p}=g.useContext(Zt),[f,m]=g.useState(d.value||n||[]),[y,v]=g.useState([]);g.useEffect(()=>{"value"in d&&m(d.value||[])},[d.value]);const b=g.useMemo(()=>o.map(e=>"string"==typeof e||qa(e)?{label:e,value:e}:e),[o]),x=e=>{v(t=>t.filter(t=>t!==e))},w=e=>{v(t=>[].concat(qt(t),[e]))},C=e=>{const t=f.indexOf(e.value),n=qt(f);-1===t?n.push(e.value):n.splice(t,1),"value"in d||m(n),null==c||c(n.filter(e=>y.includes(e)).sort((e,t)=>b.findIndex(t=>t.value===e)-b.findIndex(e=>e.value===t)))},k=h("checkbox",i),S=`${k}-group`,E=El(k),[$,T]=Tw(k,E),P=at(d,["value","disabled"]),M=o.length?b.map(e=>g.createElement(Ow,{prefixCls:k,key:e.value.toString(),disabled:"disabled"in e?e.disabled:d.disabled,value:e.value,checked:f.includes(e.value),onChange:e.onChange,className:Kt(`${S}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,O=g.useMemo(()=>({toggleOption:C,value:f,disabled:d.disabled,name:d.name,registerValue:w,cancelValue:x}),[C,f,d.disabled,d.name,w,x]),N=Kt(S,{[`${S}-rtl`]:"rtl"===p},a,l,T,E,$);return g.createElement("div",{className:N,style:s,role:u,...P,ref:t},g.createElement(Pw.Provider,{value:O},M))}),Aw=Ow;Aw.Group=Nw,Aw.__ANT_CHECKBOX=!0;const Iw=g.createContext({});function Rw(e){return"auto"===e?"1 1 auto":qa(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Lw=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(Zt),{gutter:o,wrap:i}=g.useContext(Iw),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:d,className:h,children:p,flex:f,style:m,...y}=e,v=n("col",a),b=n(),[x,w]=Of(v),[C]=$i(b,"col"),k={};let S={};Ey.forEach(t=>{let n={};const o=e[t];qa(o)?n.span=o:Xa(o)&&(n=o||{}),delete y[t],S={...S,[`${v}-${t}-${n.span}`]:Ua(n.span),[`${v}-${t}-order-${n.order}`]:n.order||0===n.order,[`${v}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${v}-${t}-push-${n.push}`]:n.push||0===n.push,[`${v}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${v}-rtl`]:"rtl"===r},n.flex&&(S[`${v}-${t}-flex`]=!0,k[C(`${t}-flex`)]=Rw(n.flex))});const E=Kt(v,{[`${v}-${l}`]:void 0!==l,[`${v}-order-${s}`]:s,[`${v}-offset-${c}`]:c,[`${v}-push-${u}`]:u,[`${v}-pull-${d}`]:d},h,S,x,w),$={};if(null==o?void 0:o[0]){const e=qa(o[0])?o[0]/2+"px":`calc(${o[0]} / 2)`;$.paddingInline=e}return f&&($.flex=Rw(f),!1!==i||$.minWidth||($.minWidth=0)),g.createElement("div",{...y,style:{...$,...m,...k},className:E,ref:t},p)});const Bw=(e,t)=>{const[n,r]=g.useState(()=>Ga(e)?e:"");return g.useEffect(()=>{(()=>{if(Ga(e)&&r(e),Xa(e))for(let n=0;n<Sy.length;n++){const o=Sy[n];if(!t||!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()},[JSON.stringify(e),t]),n},zw=g.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c,...u}=e,{getPrefixCls:d,direction:h}=g.useContext(Zt),p=Ty(!0,null),f=Bw(o,p),m=Bw(r,p),y=d("row",n),[v,b]=Pf(y),x=function(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(Xa(e))for(let r=0;r<Sy.length;r++){const i=Sy[r];if(o[i]&&void 0!==e[i]){n[t]=e[i];break}}else n[t]=e}),n}(s,p),w=Kt(y,{[`${y}-no-wrap`]:!1===c,[`${y}-${m}`]:m,[`${y}-${f}`]:f,[`${y}-rtl`]:"rtl"===h},i,v,b),C={};if(null==x?void 0:x[0]){const e=qa(x[0])?x[0]/-2+"px":`calc(${x[0]} / -2)`;C.marginInline=e}const[k,S]=x;C.rowGap=S;const E=g.useMemo(()=>({gutter:[k,S],wrap:c}),[k,S,c]);return g.createElement(Iw.Provider,{value:E},g.createElement("div",{...u,className:w,style:{...C,...a},ref:t},l))}),Dw=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},jw=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e,s=`${t}-rail`;return{[t]:{...vi(e),borderBlockStart:`${wn(o)} solid ${r}`,[s]:{borderBlockStart:`${wn(o)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${wn(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${wn(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${wn(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${s}-start, ${s}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${s}-start`]:{width:`calc(${a} * 100%)`},[`${s}-end`]:{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${s}-start`]:{width:`calc(100% - ${a} * 100%)`},[`${s}-end`]:{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${wn(o)} 0 0`,[s]:{borderBlockStart:`${wn(o)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${s}-start, ${s}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${wn(o)} 0 0`,[s]:{borderBlockStart:`${wn(o)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${s}-start`]:{width:0},[`${s}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${s}-start`]:{width:"100%"},[`${s}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},_w=ki("Divider",e=>{const t=fo(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[jw(t),Dw(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}}),Fw=["left","right","center","start","end"],Hw=e=>{const{getPrefixCls:t,direction:n,className:r,style:o,classNames:i,styles:a}=en("divider"),{prefixCls:l,type:s,orientation:c,vertical:u,titlePlacement:d,orientationMargin:h,className:p,rootClassName:f,children:m,dashed:y,variant:v="solid",plain:b,style:x,size:w,classNames:C,styles:k,...S}=e,E=t("divider",l),$=`${E}-rail`,[T,P]=_w(E),M=Lu(w),O=!!m,N=Fw.includes(c||""),A=g.useMemo(()=>{const e=d??(N?c:"center");return"left"===e?"rtl"===n?"end":"start":"right"===e?"rtl"===n?"start":"end":e},[n,c,d,N]),I="start"===A&&null!=h,R="end"===A&&null!=h,[L,B]=Oc(c,u,s),z={...e,orientation:L,titlePlacement:A,size:M},[D,j]=il([i,C],[a,k],{props:z}),_=Kt(E,r,T,P,`${E}-${L}`,{[`${E}-with-text`]:O,[`${E}-with-text-${A}`]:O,[`${E}-dashed`]:!!y,[`${E}-${v}`]:"solid"!==v,[`${E}-plain`]:!!b,[`${E}-rtl`]:"rtl"===n,[`${E}-no-default-orientation-margin-start`]:I,[`${E}-no-default-orientation-margin-end`]:R,[`${E}-md`]:"medium"===M||"middle"===M,[`${E}-sm`]:"small"===M,[$]:!m,[D.rail]:D.rail&&!m},p,f,D.root),F=g.useMemo(()=>qa(h)?h:/^\d+$/.test(h)?Number(h):h,[h]),H={marginInlineStart:I?F:void 0,marginInlineEnd:R?F:void 0};return g.createElement("div",{className:_,style:{...o,...j.root,...m?{}:j.rail,...x},...S,role:"separator"},m&&!B&&g.createElement(g.Fragment,null,g.createElement("div",{className:Kt($,`${$}-start`,D.rail),style:j.rail}),g.createElement("span",{className:Kt(`${E}-inner-text`,D.content),style:{...H,...j.content}},m),g.createElement("div",{className:Kt($,`${$}-end`,D.rail),style:j.rail})))};var Ww={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 Kw(){return Kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kw.apply(this,arguments)}const Vw=(e,t)=>g.createElement(ji,Kw({},e,{ref:t,icon:Ww})),Uw=g.forwardRef(Vw),qw=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:i,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:s,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:d,antCls:h}=e,[p,f]=$i(h,"space-addon");return{[t]:[{...vi(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:a,borderRadius:s},"&-small":{paddingInline:i,borderRadius:c,fontSize:l},"&-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")]:o,[p("addon-background")]:u,[p("addon-border-color-outlined")]:o,[p("addon-background-filled")]:u,borderColor:f("addon-border-color"),background:f("addon-background"),"&-variant-outlined":{[p("addon-border-color")]:f("addon-border-color-outlined")},"&-variant-filled":{[p("addon-border-color")]:"transparent",[p("addon-background")]:f("addon-background-filled"),[`&${t}-disabled`]:{[p("addon-border-color")]:o,[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}}]}},Gw=ki("Addon",e=>[qw(e),sh(e,{focus:!1})]),Xw=y.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:i,variant:a="outlined",disabled:l,status:s,...c}=e,{getPrefixCls:u,direction:d}=y.useContext(Zt),h=u("space-addon",i),[p,f]=Gw(h),{compactItemClassnames:m,compactSize:g}=Du(h,d),v=Kt(h,p,m,f,`${h}-variant-${a}`,Rg(h,s),{[`${h}-${g}`]:g,[`${h}-disabled`]:l},n);return y.createElement("div",{ref:t,className:v,style:o,...c},r)});function Yw(e,t,n){const r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},o}function Zw(e,t,n,r){if(!n)return;let o=t;return"click"===t.type?(o=Yw(t,e,""),void n(o)):"file"!==e.type&&void 0!==r?(o=Yw(t,e,r),void n(o)):void n(o)}function Qw(){return Qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(this,arguments)}const Jw=y.forwardRef((e,t)=>{var n,r,o;const{inputElement:i,children:a,prefixCls:l,prefix:s,suffix:c,addonBefore:u,addonAfter:d,className:h,style:p,disabled:f,readOnly:m,focused:v,triggerFocus:b,allowClear:x,value:w,handleReset:C,hidden:k,classes:S,classNames:E,dataAttrs:$,styles:T,components:P,onClear:M}=e,O=a??i,N=(null==P?void 0:P.affixWrapper)||"span",A=(null==P?void 0:P.groupWrapper)||"span",I=(null==P?void 0:P.wrapper)||"span",R=(null==P?void 0:P.groupAddon)||"span",L=g.useRef(null),B=e=>{var t;(null==(t=L.current)?void 0:t.contains(e.target))&&(null==b||b())},z=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e);let D=g.cloneElement(O,{value:w,className:Kt(null==(n=O.props)?void 0:n.className,!z&&(null==E?void 0:E.variant))||null});const j=g.useRef(null);if(y.useImperativeHandle(t,()=>({nativeElement:j.current||L.current})),z){let e=null;if(x){const t=!f&&!m&&w&&!("object"==typeof x&&x.disabled),n=`${l}-clear-icon`,r="object"==typeof x&&(null==x?void 0:x.clearIcon)?x.clearIcon:"✖";e=y.createElement("button",{type:"button",onClick:e=>{null==C||C(e),null==M||M()},onMouseDown:e=>e.preventDefault(),className:Kt(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!c},null==E?void 0:E.clear),style:null==T?void 0:T.clear},r)}const t=`${l}-affix-wrapper`,n=Kt(t,{[`${l}-disabled`]:f,[`${t}-disabled`]:f,[`${t}-focused`]:v,[`${t}-readonly`]:m,[`${t}-input-with-clear-btn`]:c&&x&&w},null==S?void 0:S.affixWrapper,null==E?void 0:E.affixWrapper,null==E?void 0:E.variant),r=(c||x)&&y.createElement("span",{className:Kt(`${l}-suffix`,null==E?void 0:E.suffix),style:null==T?void 0:T.suffix},e,c);D=y.createElement(N,Qw({className:n,style:null==T?void 0:T.affixWrapper,onClick:B},null==$?void 0:$.affixWrapper,{ref:L}),s&&y.createElement("span",{className:Kt(`${l}-prefix`,null==E?void 0:E.prefix),style:null==T?void 0:T.prefix},s),D,r)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){const e=`${l}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=Kt(`${l}-wrapper`,e,null==S?void 0:S.wrapper,null==E?void 0:E.wrapper),o=Kt(n,{[`${n}-disabled`]:f},null==S?void 0:S.group,null==E?void 0:E.groupWrapper);D=y.createElement(A,{className:o,ref:j},y.createElement(I,{className:r},u&&y.createElement(R,{className:t},u),D,d&&y.createElement(R,{className:t},d)))}return y.cloneElement(D,{className:Kt(null==(r=D.props)?void 0:r.className,h)||null,style:{...null==(o=D.props)?void 0:o.style,...p},hidden:k})});function eC(e,t){return g.useMemo(()=>{let n={};t&&(n.show="object"==typeof t&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...o}=n;return{...o,show:!!r,showFormatter:"function"==typeof r?r:void 0,strategy:o.strategy||(e=>e.length)}},[e,t])}function tC({countConfig:e,value:t,maxLength:n}){return g.useMemo(()=>{const r=e.max??n,o=e.strategy(t),i=!!r&&o>r,a=Number(r)>0;return{mergedMax:r,isOutOfRange:i,dataCount:e.show?e.showFormatter?e.showFormatter({value:t,count:o,maxLength:r}):`${o}${a?` / ${r}`:""}`:void 0}},[e,n,t])}function nC({countConfig:e,getTarget:t}){const[n,r]=g.useState(null),o=g.useRef(t);g.useEffect(()=>{o.current=t},[t]),g.useEffect(()=>{var e;n&&(null==(e=o.current())||e.setSelectionRange(...n),r(null))},[n]);return g.useCallback((t,n)=>{var i,a;let l=t;return!n&&e.exceedFormatter&&e.max&&e.strategy(t)>e.max&&(l=e.exceedFormatter(t,{max:e.max}),t!==l&&r([(null==(i=o.current())?void 0:i.selectionStart)||0,(null==(a=o.current())?void 0:a.selectionEnd)||0])),l},[e])}function rC(e,t){const[n,r]=Y(e,t);return{value:n,setValue:r,formatValue:null==n?"":String(n)}}function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oC.apply(this,arguments)}const iC=g.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:o,onBlur:i,onPressEnter:a,onKeyDown:l,onKeyUp:s,prefixCls:c="rc-input",disabled:u,htmlSize:d,className:h,maxLength:p,suffix:f,showCount:m,count:v,type:b="text",classes:x,classNames:w,styles:C,onCompositionStart:k,onCompositionEnd:S,...E}=e,[$,T]=g.useState(!1),P=g.useRef(!1),M=g.useRef(!1),O=g.useRef(null),N=g.useRef(null),A=e=>{O.current&&Le(O.current,e)},{setValue:I,formatValue:R}=rC(e.defaultValue,e.value),L=eC(v,m),{isOutOfRange:B,dataCount:z}=tC({countConfig:L,value:R,maxLength:p}),D=nC({countConfig:L,getTarget:()=>O.current});g.useImperativeHandle(t,()=>{var e;return{focus:A,blur:()=>{var e;null==(e=O.current)||e.blur()},setSelectionRange:(e,t,n)=>{var r;null==(r=O.current)||r.setSelectionRange(e,t,n)},select:()=>{var e;null==(e=O.current)||e.select()},input:O.current,nativeElement:(null==(e=N.current)?void 0:e.nativeElement)||O.current}}),g.useEffect(()=>{M.current&&(M.current=!1),T(e=>(!e||!u)&&e)},[u]);const j=(e,t,n)=>{const o=D(t,P.current);"compositionEnd"===n.source&&t===o||(I(o),O.current&&Zw(O.current,e,r,o))},_=e=>{j(e,e.target.value,{source:"change"})},F=e=>{P.current=!1,j(e,e.currentTarget.value,{source:"compositionEnd"}),null==S||S(e)},H=e=>{!a||"Enter"!==e.key||M.current||e.nativeEvent.isComposing||(M.current=!0,a(e)),null==l||l(e)},W=e=>{"Enter"===e.key&&(M.current=!1),null==s||s(e)},K=e=>{T(!0),null==o||o(e)},V=e=>{M.current&&(M.current=!1),T(!1),null==i||i(e)},U=B&&`${c}-out-of-range`;return y.createElement(Jw,oC({},E,{prefixCls:c,className:Kt(h,U),handleReset:e=>{I(""),A(),O.current&&Zw(O.current,e,r)},value:R,focused:$,triggerFocus:A,suffix:f||L.show?y.createElement(y.Fragment,null,L.show&&y.createElement("span",{className:Kt(`${c}-show-count-suffix`,{[`${c}-show-count-has-suffix`]:!!f},null==w?void 0:w.count),style:{...null==C?void 0:C.count}},z),f):null,disabled:u,classes:x,classNames:w,styles:C,ref:N}),(()=>{const t=at(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return y.createElement("input",oC({autoComplete:n},t,{onChange:_,onFocus:K,onBlur:V,onKeyDown:H,onKeyUp:W,className:Kt(c,{[`${c}-disabled`]:u},null==w?void 0:w.input),style:null==C?void 0:C.input,ref:O,size:d,type:b,onCompositionStart:e=>{P.current=!0,null==k||k(e)},onCompositionEnd:F}))})())}),aC=["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"],lC={};let sC;function cC(e,t=!1,n=null,r=null){sC||(sC=document.createElement("textarea"),sC.setAttribute("tab-index","-1"),sC.setAttribute("aria-hidden","true"),sC.setAttribute("name","hiddenTextarea"),document.body.appendChild(sC)),e.getAttribute("wrap")?sC.setAttribute("wrap",e.getAttribute("wrap")):sC.removeAttribute("wrap");const{paddingSize:o,borderSize:i,boxSizing:a,sizingStyle:l}=function(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&lC[n])return lC[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:aC.map(e=>`${e}:${r.getPropertyValue(e)}`).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(lC[n]=l),l}(e,t);let s,c,u;sC.setAttribute("style",`${l};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n`),sC.value=e.value||e.placeholder||"";let d=sC.scrollHeight;if("border-box"===a?d+=i:"content-box"===a&&(d-=o),null!==n||null!==r){sC.value=" ";const e=sC.scrollHeight-o;null!==n&&(s=e*n,"border-box"===a&&(s=s+o+i),d=Math.max(s,d)),null!==r&&(c=e*r,"border-box"===a&&(c=c+o+i),u=d>c?void 0:"hidden",d=Math.min(c,d))}const h={height:d,overflowY:u,resize:"none"};return s&&(h.minHeight=s),c&&(h.maxHeight=c),h}function uC(){return uC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uC.apply(this,arguments)}const dC=g.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:o,autoSize:i,onResize:a,className:l,style:s,disabled:c,onChange:u,onInternalAutoSize:d,...h}=e,[p,f]=Y(r,o),m=p??"",y=g.useRef(null);g.useImperativeHandle(t,()=>({textArea:y.current}));const[v,b]=g.useMemo(()=>i&&"object"==typeof i?[i.minRows,i.maxRows]:[],[i]),x=!!i,[w,C]=g.useState(2),[k,S]=g.useState(),E=()=>{C(0)};G(()=>{x&&E()},[o,v,b,x]),G(()=>{if(0===w)C(1);else if(1===w){const e=cC(y.current,!1,v,b);C(2),S(e)}},[w]);const $=g.useRef(void 0),T=()=>{void 0!==$.current&&mt.cancel($.current)};g.useEffect(()=>T,[]);const P={...s,...x?k:null};return 0!==w&&1!==w||(P.overflowY="hidden",P.overflowX="hidden"),g.createElement(Ht,{onResize:e=>{2===w&&(null==a||a(e),i&&(T(),$.current=mt(()=>{E()})))},disabled:!(i||a)},g.createElement("textarea",uC({},h,{ref:y,style:P,className:Kt(n,l,{[`${n}-disabled`]:c}),disabled:c,value:m,onChange:e=>{f(e.target.value),null==u||u(e)}})))});function hC(){return hC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hC.apply(this,arguments)}const pC=y.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:o,allowClear:i,maxLength:a,onCompositionStart:l,onCompositionEnd:s,suffix:c,prefixCls:u="rc-textarea",showCount:d,count:h,className:p,style:f,disabled:m,hidden:v,classNames:b,styles:x,onResize:w,onClear:C,onPressEnter:k,readOnly:S,autoSize:E,onKeyDown:$,...T},P)=>{const[M,O]=y.useState(!1),N=y.useRef(!1),[A,I]=y.useState(null),R=g.useRef(null),L=g.useRef(null),B=()=>{var e;return(null==(e=L.current)?void 0:e.textArea)||null},{setValue:z,formatValue:D}=rC(e,t),j=eC(h,d),{isOutOfRange:_,dataCount:F}=tC({countConfig:j,value:D,maxLength:a}),H=nC({countConfig:j,getTarget:()=>{var e;return(null==(e=L.current)?void 0:e.textArea)||null}}),W=()=>{var e;null==(e=B())||e.focus()};g.useImperativeHandle(P,()=>{var e;return{resizableTextArea:L.current,focus:W,blur:()=>{var e;null==(e=B())||e.blur()},nativeElement:(null==(e=R.current)?void 0:e.nativeElement)||B()}}),g.useEffect(()=>{O(e=>!m&&e)},[m]);const K=(e,t)=>{const n=H(t,N.current);z(n),Zw(e.currentTarget,e,o,n)};let V=c;j.show&&(V=y.createElement(y.Fragment,null,V,y.createElement("span",{className:Kt(`${u}-data-count`,null==b?void 0:b.count),style:null==x?void 0:x.count},F)));const U=!E&&!d&&!i;return y.createElement(Jw,{ref:R,value:D,allowClear:i,handleReset:e=>{z(""),W();const t=B();t&&Zw(t,e,o)},suffix:V,prefixCls:u,classNames:{...b,affixWrapper:Kt(null==b?void 0:b.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:i})},disabled:m,focused:M,className:Kt(p,_&&`${u}-out-of-range`),style:{...f,...A&&!U?{height:"auto"}:{}},dataAttrs:"string"==typeof F?{affixWrapper:{"data-count":F}}:void 0,styles:x,hidden:v,readOnly:S,onClear:C},y.createElement(dC,hC({},T,{autoSize:E,maxLength:a,onKeyDown:e=>{"Enter"===e.key&&k&&!e.nativeEvent.isComposing&&k(e),null==$||$(e)},onChange:e=>{K(e,e.target.value)},onFocus:e=>{O(!0),null==n||n(e)},onBlur:e=>{O(!1),null==r||r(e)},onCompositionStart:e=>{N.current=!0,null==l||l(e)},onCompositionEnd:e=>{N.current=!1,K(e,e.currentTarget.value),null==s||s(e)},className:Kt(null==b?void 0:b.textarea),style:{resize:null==f?void 0:f.resize,...null==x?void 0:x.textarea},disabled:m,prefixCls:u,onResize:e=>{var t;null==w||w(e),(null==(t=B())?void 0:t.style.height)&&I(!0)},ref:L,readOnly:S})))});function fC(e,t){const n=g.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var t,n,r,o;(null==(t=e.current)?void 0:t.input)&&"password"===(null==(n=e.current)?void 0:n.input.getAttribute("type"))&&(null==(r=e.current)?void 0:r.input.hasAttribute("value"))&&(null==(o=e.current)||o.input.removeAttribute("value"))}))};return g.useEffect(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}const mC=g.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:l,onFocus:s,suffix:c,allowClear:u,addonAfter:d,addonBefore:h,className:p,style:f,styles:m,rootClassName:v,onChange:b,classNames:x,variant:w,...C}=e,{getPrefixCls:k,direction:S,allowClear:E,autoComplete:$,className:T,style:P,classNames:M,styles:O}=en("input"),N=k("input",n),A=g.useRef(null),I=El(N),[R,L]=cw(N,v);uw(N,I);const{compactSize:B,compactItemClassnames:z}=Du(N,S),D=Lu(e=>i??B??e),j=y.useContext(Bs),_=a??j,F={...e,size:D,disabled:_},[H,W]=il([M,x],[O,m],{props:F}),{status:K,hasFeedback:V,feedbackIcon:U}=g.useContext(Vp),q=Lg(K,o),G=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!V;g.useRef(G);const X=fC(A,!0),Y=(V||c)&&y.createElement(y.Fragment,null,c,V&&U),Z=wc({allowClear:u,contextAllowClear:E,componentName:"Input"}),[Q,J]=Wg("input",w,r);return y.createElement(iC,{ref:pe(t,A),prefixCls:N,autoComplete:$,...C,disabled:_,onBlur:e=>{X(),null==l||l(e)},onFocus:e=>{X(),null==s||s(e)},style:{...W.root,...P,...f},styles:W,suffix:Y,allowClear:Z,className:Kt(p,v,L,I,z,T,H.root),onChange:e=>{X(),null==b||b(e)},addonBefore:h&&y.createElement(Gp,{form:!0,space:!0},h),addonAfter:d&&y.createElement(Gp,{form:!0,space:!0},d),classNames:{...H,input:Kt({[`${N}-sm`]:"small"===D,[`${N}-lg`]:"large"===D,[`${N}-rtl`]:"rtl"===S},H.input,R),variant:Kt({[`${N}-${Q}`]:J},Rg(N,q)),affixWrapper:Kt({[`${N}-affix-wrapper-sm`]:"small"===D,[`${N}-affix-wrapper-lg`]:"large"===D,[`${N}-affix-wrapper-rtl`]:"rtl"===S},R),wrapper:Kt({[`${N}-group-rtl`]:"rtl"===S},R),groupWrapper:Kt({[`${N}-group-wrapper-sm`]:"small"===D,[`${N}-group-wrapper-lg`]:"large"===D,[`${N}-group-wrapper-rtl`]:"rtl"===S,[`${N}-group-wrapper-${Q}`]:J},Rg(`${N}-group-wrapper`,q,V),R)}})});function gC(e){return["small","middle","medium","large"].includes(e)}function yC(e){return!!e&&qa(e)}const vC=y.createContext({latestIndex:0}),bC=vC.Provider,xC=e=>{const{className:t,prefix:n,index:r,children:o,separator:i,style:a,classNames:l,styles:s}=e,{latestIndex:c}=g.useContext(vC);return Ua(o)?g.createElement(g.Fragment,null,g.createElement("div",{className:t,style:a},o),r<c&&i&&g.createElement("span",{className:Kt(`${n}-item-separator`,null==l?void 0:l.separator),style:null==s?void 0:s.separator},i)):null},wC=e=>{const{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"}}}},CC=e=>{const{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}}}},kC=ki("Space",e=>{const t=fo(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[wC(t),CC(t)]},()=>({}),{resetStyle:!1}),SC=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:o,className:i,style:a,classNames:l,styles:s}=en("space"),{size:c=o??"small",align:u,className:d,rootClassName:h,children:p,direction:f,orientation:m,prefixCls:y,split:v,separator:b,style:x,vertical:w,wrap:C=!1,classNames:k,styles:S,...E}=e,[$,T]=Array.isArray(c)?c:[c,c],P=gC(T),M=gC($),O=yC(T),N=yC($),A=gt(p,{keepEmpty:!0}),[I,R]=Oc(m,w,f),L=void 0!==u||R?u:"center",B=b??v,z=n("space",y),[D,j]=kC(z),_={...e,size:c,orientation:I,align:L},[F,H]=il([l,k],[s,S],{props:_}),W=Kt(z,i,D,`${z}-${I}`,{[`${z}-rtl`]:"rtl"===r,[`${z}-align-${L}`]:L,[`${z}-gap-row-${T}`]:P,[`${z}-gap-col-${$}`]:M},d,h,j,F.root),K=Kt(`${z}-item`,F.item),V=A.map((e,t)=>{const n=(null==e?void 0:e.key)||`${K}-${t}`;return g.createElement(xC,{prefix:z,classNames:F,styles:H,className:K,key:n,index:t,separator:B,style:H.item},e)}),U=g.useMemo(()=>({latestIndex:A.reduce((e,t,n)=>Ua(t)?n:e,0)}),[A]);if(0===A.length)return null;const q={};return C&&(q.flexWrap="wrap"),!M&&N&&(q.columnGap=$),!P&&O&&(q.rowGap=T),g.createElement("div",{ref:t,className:W,style:{...q,...H.root,...a,...x},...E},g.createElement(bC,{value:U},V))});SC.Compact=Fu,SC.Addon=Xw;const EC=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=g.useContext(Zt),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:c,htmlType:u,children:d,className:h,menu:p,arrow:f,autoFocus:m,trigger:y,align:v,open:b,onOpenChange:x,placement:w,getPopupContainer:C,href:k,icon:S=g.createElement(Rb,null),title:E,buttonsRender:$=e=>e,mouseEnterDelay:T,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:O,destroyOnHidden:N,destroyPopupOnHide:A,dropdownRender:I,popupRender:R,...L}=e,B=n("dropdown",o),z=`${B}-button`,D={menu:p,arrow:f,autoFocus:m,align:v,disabled:l,trigger:l?[]:y,onOpenChange:x,getPopupContainer:C||t,mouseEnterDelay:T,mouseLeaveDelay:P,classNames:{root:M},styles:{root:O},destroyOnHidden:N,popupRender:R||I},{compactSize:j,compactItemClassnames:_}=Du(B,r),F=Kt(z,_,h);"destroyPopupOnHide"in e&&(D.destroyPopupOnHide=A),"open"in e&&(D.open=b),D.placement="placement"in e?w:"rtl"===r?"bottomLeft":"bottomRight";const H=g.createElement(mh,{type:i,danger:a,disabled:l,loading:s,onClick:c,htmlType:u,href:k,title:E},d),W=g.createElement(mh,{type:i,danger:a,icon:S}),[K,V]=$([H,W]);return g.createElement(SC.Compact,{className:F,size:j,block:!0,...L},K,g.createElement(ox,{...D},V))};EC.__ANT_BUTTON=!0;const $C=ox;$C.Button=EC;function TC(e){const[t,n]=g.useState(e);return g.useEffect(()=>{const t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}const PC=e=>{const{componentCls:t,motionDurationFast:n,motionEaseInOut:r}=e,o=`${t}-show-help`,i=`${t}-show-help-item`;return{[o]:{transition:`opacity ${n} ${r}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[i]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(e=>`${e} ${n} ${r}`).join(", ")} !important`,[`&${i}-appear, &${i}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${i}-leave-active`]:{transform:"translateY(-5px)"}}}}},MC=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${wn(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 ${wn(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),OC=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},NC=e=>{const{componentCls:t}=e;return{[t]:{...vi(e),...MC(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...OC(e,e.controlHeightSM)},"&-large":{...OC(e,e.controlHeightLG)}}}},AC=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e,[h]=$i(o,"grid");return{[t]:{...vi(e),marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${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:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,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:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[h("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(> ${o}-switch:only-child, > ${o}-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:kd,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},IC=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),RC=e=>{const{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,\n ${t}-col-xl-24${n}-label`]:IC(e)}}},LC=e=>{const{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 > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},BC=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:IC(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},zC=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:IC(e)},[`@media (max-width: ${wn(e.screenXSMax)})`]:[BC(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:IC(e)}}}],[`@media (max-width: ${wn(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:IC(e)}}},[`@media (max-width: ${wn(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:IC(e)}}},[`@media (max-width: ${wn(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:IC(e)}}}}},DC=(e,t)=>fo(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),jC=ki("Form",(e,{rootPrefixCls:t})=>{const n=DC(e,t);return[NC(n),AC(n),PC(n),RC(n),LC(n),zC(n),Ju(n),kd]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3}),_C=[];function FC(e,t,n,r=0){return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:n}}const HC=({help:e,helpStatus:t,errors:n=_C,warnings:r=_C,className:o,fieldId:i,onVisibleChanged:a})=>{const{prefixCls:l}=g.useContext(Kp),{classNames:s,styles:c}=g.useContext(Fp),u=`${l}-item-explain`,d=El(l),[h,p]=jC(l,d),f=g.useMemo(()=>Su(l),[l]),m=TC(n),y=TC(r),v=g.useMemo(()=>Ua(e)?[FC(e,"help",t)]:[].concat(qt(m.map((e,t)=>FC(e,"error","error",t))),qt(y.map((e,t)=>FC(e,"warning","warning",t)))),[e,t,m,y]),b=g.useMemo(()=>{const e={};return v.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),v.map((t,n)=>({...t,key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[v]),x={};return i&&(x.id=`${i}_help`),g.createElement(Ba,{motionDeadline:f.motionDeadline,motionName:`${l}-show-help`,visible:!!b.length,onVisibleChanged:a},e=>{const{className:t,style:n}=e;return g.createElement("div",{...x,className:Kt(u,t,null==s?void 0:s.help,p,d,o,h),style:{...null==c?void 0:c.help,...n}},g.createElement(Va,{keys:b,...Su(l),motionName:`${l}-show-help-item`,component:!1},e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return g.createElement("div",{key:t,className:Kt(o,null==s?void 0:s.helpItem,{[`${u}-${r}`]:r}),style:{...null==c?void 0:c.helpItem,...i}},n)}))})},WC=(e,t)=>{const n=g.useContext(Bs),{getPrefixCls:r,direction:o,requiredMark:i,colon:a,scrollToFirstError:l,className:s,style:c,styles:u,classNames:d,tooltip:h,labelAlign:p}=en("form"),{prefixCls:f,className:m,rootClassName:y,size:v,disabled:b=n,form:x,colon:w,labelAlign:C,labelWrap:k,labelCol:S,wrapperCol:E,layout:$="horizontal",scrollToFirstError:T,requiredMark:P,onFinishFailed:M,name:O,style:N,feedbackIcons:A,variant:I,classNames:R,styles:L,tooltip:B,...z}=e,D=Lu(v),j=g.useContext($l),_=g.useMemo(()=>void 0!==P?P:void 0===i||i,[P,i]),F=w??a,H=C??p,W={...h,...B},K=r("form",f),V=El(K),[U,q]=jC(K,V),G={...e,size:D,disabled:b,layout:$,colon:F,requiredMark:_},[X,Y]=il([d,R],[u,L],{props:G}),Z=Kt(K,`${K}-${$}`,{[`${K}-hide-required-mark`]:!1===_,[`${K}-rtl`]:"rtl"===o,[`${K}-large`]:"large"===D,[`${K}-small`]:"small"===D},q,V,U,s,m,y,X.root),[Q]=gx(x),{__INTERNAL__:J}=Q;J.name=O;const ee=g.useMemo(()=>({name:O,labelAlign:H,labelCol:S,labelWrap:k,wrapperCol:E,layout:$,colon:F,requiredMark:_,itemRef:J.itemRef,form:Q,feedbackIcons:A,tooltip:W,classNames:X,styles:Y}),[O,H,S,E,$,F,_,Q,A,X,Y,W]),te=g.useRef(null);g.useImperativeHandle(t,()=>{var e;return{...Q,nativeElement:null==(e=te.current)?void 0:e.nativeElement}});const ne=(e,t)=>{if(e){let n={block:"nearest"};Xa(e)&&(n={...n,...e}),Q.scrollToField(t,n)}};return g.createElement(qp.Provider,{value:I},g.createElement(zs,{disabled:b},g.createElement(Ds.Provider,{value:D},g.createElement(Wp,{validateMessages:j},g.createElement(Fp.Provider,{value:ee},g.createElement(Up,{status:!0},g.createElement(_p,{id:O,...z,name:O,onFinishFailed:e=>{if(null==M||M(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==T)return void ne(T,t);void 0!==l&&ne(l,t)}},form:Q,ref:te,style:{...null==Y?void 0:Y.root,...c,...N},className:Z})))))))},KC=g.forwardRef(WC),VC=()=>{const{status:e,errors:t=[],warnings:n=[]}=g.useContext(Vp);return{status:e,errors:t,warnings:n}};VC.Context=Vp;const UC=Ei(["Form","item-item"],(e,{rootPrefixCls:t})=>(e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}})(DC(e,t))),qC=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:l,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:h,onErrorVisibleChanged:p,label:f}=e,m=`${t}-item`,y=g.useContext(Fp),{classNames:v,styles:b}=y,x=g.useMemo(()=>{let e={...o||y.wrapperCol||{}};if(null===f&&!r&&!o&&y.labelCol){[void 0].concat(qt(Ey)).forEach(t=>{const n=t?[t]:[],r=vt(y.labelCol,n),o=Xa(r)?r:{},i=vt(e,n),a=Xa(i)?i:{};"span"in o&&!("offset"in a)&&o.span<24&&(e=xt(e,[].concat(n,["offset"]),o.span))})}return e},[o,y.wrapperCol,y.labelCol,f,r]),w=Kt(`${m}-control`,x.className),C=g.useMemo(()=>{const{labelCol:e,wrapperCol:t,...n}=y;return n},[y]),k=g.useRef(null),[S,E]=g.useState(0);G(()=>{c&&k.current?E(k.current.clientHeight):E(0)},[c]);const $=g.createElement("div",{className:`${m}-control-input`},g.createElement("div",{className:Kt(`${m}-control-input-content`,null==v?void 0:v.content),style:null==b?void 0:b.content},i)),T=g.useMemo(()=>({prefixCls:t,status:n}),[t,n]),P=null!==h||a.length||l.length?g.createElement(Kp.Provider,{value:T},g.createElement(HC,{fieldId:d,errors:a,warnings:l,help:u,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:p})):null,M={};d&&(M.id=`${d}_extra`);const O=c?g.createElement("div",{...M,className:Kt(`${m}-extra`,null==v?void 0:v.extra),style:null==b?void 0:b.extra,ref:k},c):null,N=P||O?g.createElement("div",{className:`${m}-additional`,style:h?{minHeight:h+S}:{}},P,O):null,A=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:$,errorList:P,extra:O}):g.createElement(g.Fragment,null,$,N);return g.createElement(Fp.Provider,{value:C},g.createElement(Lw,{...x,className:w},A),g.createElement(UC,{prefixCls:t}))};var GC={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 XC(){return XC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XC.apply(this,arguments)}const YC=(e,t)=>g.createElement(ji,XC({},e,{ref:t,icon:GC})),ZC=g.forwardRef(YC),QC=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:i,required:a,requiredMark:l,tooltip:s,vertical:c})=>{var u;const[d]=Fl("Form"),{labelAlign:h,labelCol:p,labelWrap:f,colon:m,classNames:y,styles:v,tooltip:b}=g.useContext(Fp);if(!t)return null;const x=r||p||{},w=`${e}-item-label`,C=Kt(w,"left"===(o||h)&&`${w}-left`,x.className,{[`${w}-wrap`]:!!f});let k=t;const S=!0===i||!1!==m&&!1!==i;S&&!c&&"string"==typeof t&&t.trim()&&(k=t.replace(/[:|:]\s*$/,""));const E=((e,t)=>Ua(e)?Xa(e)&&!g.isValidElement(e)?{...t,...e}:{...t,title:e}:null)(s,b);if(E){const t=g.createElement(tv,{...E},g.createElement("span",{className:`${e}-item-tooltip`,onClick:e=>{e.preventDefault()},tabIndex:-1},E.icon||E.children||g.createElement(ZC,null)));k=g.createElement(g.Fragment,null,k,t)}const $="optional"===l,T=Ya(l),P=!1===l;let M;T?k=l(k,{required:!!a}):$&&!a&&(k=g.createElement(g.Fragment,null,k,g.createElement("span",{className:`${e}-item-optional`,title:""},(null==d?void 0:d.optional)||(null==(u=Ll.Form)?void 0:u.optional)))),P?M="hidden":($||T)&&(M="optional");const O=Kt(null==y?void 0:y.label,{[`${e}-item-required`]:a,[`${e}-item-required-mark-${M}`]:M,[`${e}-item-no-colon`]:!S});return g.createElement(Lw,{...x,className:C},g.createElement("label",{htmlFor:n,className:O,style:null==v?void 0:v.label,title:"string"==typeof t?t:""},k))},JC={success:Hi,warning:ea,error:Ui,validating:bc};function ek({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:i,meta:a,noStyle:l,name:s}){const c=`${i}-item`,{feedbackIcons:u}=g.useContext(Fp),d=px(t,n,a,null,!!r,o),{isFormItemInput:h,status:p,hasFeedback:f,feedbackIcon:m,name:y}=g.useContext(Vp),v=g.useMemo(()=>{var e;let o;if(r){const i=!0!==r&&r.icons||u,a=d&&(null==(e=null==i?void 0:i({status:d,errors:t,warnings:n}))?void 0:e[d]),l=d?JC[d]:null;o=!1!==a&&l?g.createElement("span",{className:Kt(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},a||g.createElement(l,null)):null}const i={status:d||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:o,isFormItemInput:!0,name:s};return l&&(i.status=(d??p)||"",i.isFormItemInput=h,i.hasFeedback=!!(r??f),i.feedbackIcon=void 0!==r?i.feedbackIcon:m,i.name=s??y),i},[d,r,l,h,p]);return g.createElement(Vp.Provider,{value:v},e)}function tk(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:u,hidden:d,children:h,fieldId:p,required:f,isRequired:m,onSubItemMetaChange:y,layout:v,name:b,...x}=e,w=`${t}-item`,{requiredMark:C,layout:k}=g.useContext(Fp),S=v||k,E="vertical"===S,$=g.useRef(null),T=TC(a),P=TC(l),M=Ua(i),O=!!(M||a.length||l.length),N=!!$.current&&Ae($.current),[A,I]=g.useState(null);G(()=>{if(O&&$.current){const e=getComputedStyle($.current);I(Number.parseInt(e.marginBottom,10))}},[O,N]);const R=((e=!1)=>px(e?T:c.errors,e?P:c.warnings,c,"",!!u,s))(),L=Kt(w,n,r,{[`${w}-with-help`]:M||T.length||P.length,[`${w}-has-feedback`]:R&&u,[`${w}-has-success`]:"success"===R,[`${w}-has-warning`]:"warning"===R,[`${w}-has-error`]:"error"===R,[`${w}-is-validating`]:"validating"===R,[`${w}-hidden`]:d,[`${w}-${S}`]:S});return g.createElement("div",{className:L,style:o,ref:$},g.createElement(zw,{className:`${w}-row`,...at(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"])},g.createElement(QC,{htmlFor:p,...e,requiredMark:C,required:f??m,prefixCls:t,vertical:E}),g.createElement(qC,{...e,...c,errors:T,warnings:P,prefixCls:t,status:R,help:i,marginBottom:A,onErrorVisibleChanged:e=>{e||I(null)}},g.createElement(Hp.Provider,{value:y},g.createElement(ek,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:R,name:b},h)))),!!A&&g.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-A}}))}const nk=g.memo(e=>e.children,(e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{const r=e[n],o=t[n];return r===o||Ya(r)||Ya(o)})}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));const rk=function(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:u,messageVariables:d,trigger:h="onChange",validateTrigger:p,hidden:f,help:m,layout:y}=e,{getPrefixCls:v}=g.useContext(Zt),{name:b}=g.useContext(Fp),x=(e=>{if(Ya(e))return e;const t=gt(e);return t.length<=1?t[0]:t})(s),w=Ya(x),C=g.useContext(Hp),{validateTrigger:k}=g.useContext(zh),S=Ua(p)?p:k,E=Ua(t),$=v("form",i),T=El($),[P,M]=jC($,T);Nt();const O=g.useContext(Dh),N=g.useRef(null),[A,I]=function(e){const[t,n]=g.useState(e),r=g.useRef(null),o=g.useRef([]),i=g.useRef(!1);return g.useEffect(()=>(i.current=!1,()=>{i.current=!0,mt.cancel(r.current),r.current=null}),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=mt(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[R,L]=X(()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1})),B=(e,t)=>{I(n=>{const r={...n},o=[].concat(qt(e.name.slice(0,-1)),qt(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r})},[z,D]=g.useMemo(()=>{const e=qt(R.errors),t=qt(R.warnings);return Object.values(A).forEach(n=>{e.push.apply(e,qt(n.errors||[])),t.push.apply(t,qt(n.warnings||[]))}),[e,t]},[A,R.errors,R.warnings]),j=(()=>{const{itemRef:e}=g.useContext(Fp),t=g.useRef({});return(n,r)=>{const o=r&&Xa(r)&&ve(r),i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=pe(e(n),o)),t.current.ref}})();function _(o,i,a){return n&&!f?g.createElement(ek,{prefixCls:$,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:R,errors:z,warnings:D,noStyle:!0,name:t},o):g.createElement(tk,{key:"row",...e,className:Kt(r,M,T,P),prefixCls:$,fieldId:i,isRequired:a,errors:z,warnings:D,meta:R,onSubItemMetaChange:B,layout:y,name:t},o)}if(!E&&!w&&!o)return _(x);let F={};return"string"==typeof u?F.label=u:t&&(F.label=String(t)),d&&(F={...F,...d}),g.createElement(Tp,{...e,messageVariables:F,trigger:h,validateTrigger:S,onMetaChange:e=>{const t=null==O?void 0:O.getKey(e.name);if(L(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==m&&C){let n=e.name;if(e.destroy)n=N.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(qt(r)),N.current=n}C(e,n)}}},(n,r,i)=>{const s=dx(t).length&&r?r.name:[],u=hx(s,b),d=void 0!==c?c:null==l?void 0:l.some(e=>{if(Xa(e)&&e.required&&!e.warningOnly)return!0;if(Ya(e)){const t=e(i);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1}),p={...n};let f=null;if(Array.isArray(x)&&E)f=x;else if(w&&(!a&&!o||E));else if(!o||w||E)if(g.isValidElement(x)){const t={...x.props,...p};if(t.id||(t.id=u),m||z.length>0||D.length>0||e.extra){const n=[];(m||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"),me(x)&&(t.ref=j(s,x));new Set([].concat(qt(dx(h)),qt(dx(S)))).forEach(e=>{t[e]=(...t)=>{var n,r,o;null==(n=p[e])||n.call(p,...t),null==(o=(r=x.props)[e])||o.call(r,...t)}});const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];f=g.createElement(nk,{control:p,update:x,childProps:n},As(x,t))}else f=w&&(a||o)&&!E?x(i):x;else;return _(f,u,d)})};rk.useStatus=VC;const ok=KC;ok.Item=rk,ok.List=({prefixCls:e,children:t,...n})=>{const{getPrefixCls:r}=g.useContext(Zt),o=r("form",e),i=g.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return g.createElement(Pp,{...n},(e,n,r)=>g.createElement(Kp.Provider,{value:i},t(e.map(e=>({...e,fieldKey:e.key})),n,{errors:r.errors,warnings:r.warnings})))},ok.ErrorList=HC,ok.useForm=gx,ok.useFormInstance=function(){const{form:e}=g.useContext(Fp);return e},ok.useWatch=jp,ok.Provider=Wp;const ik=ki(["Input","OTP"],e=>(e=>{const{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}}}})(fo(e,Lx(e))),Bx),ak=g.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:l,onFocus:s,...c}=e,{getPrefixCls:u}=g.useContext(Zt),d=u("otp"),h="string"==typeof l?l:r,p=g.useRef(null);g.useImperativeHandle(t,()=>p.current);const f=()=>{mt(()=>{var e;const t=null==(e=p.current)?void 0:e.input;document.activeElement===t&&t&&t.select()})};return g.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&""!==r&&void 0!==r&&g.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},h),g.createElement(mC,{"aria-label":`OTP Input ${a+1}`,type:!0===l?"password":"text",...c,ref:p,value:r,onInput:e=>{o(a,e.target.value)},onFocus:e=>{null==s||s(e),f()},onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:o}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t?i(a+1):"z"===t&&(n||o)?e.preventDefault():"Backspace"!==t||r||i(a-1),f()},onMouseDown:f,onMouseUp:f,className:Kt(n,{[`${d}-mask-input`]:l})}))});function lk(e){return(e||"").split("")}const sk=e=>{const{index:t,prefixCls:n,separator:r,className:o,style:i}=e,a=Ya(r)?r(t):r;return a?g.createElement("span",{className:Kt(`${n}-separator`,o),style:i},a):null},ck=g.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:s,separator:c,variant:u,disabled:d,status:h,autoFocus:p,mask:f,type:m,autoComplete:y,onInput:v,onFocus:b,inputMode:x,classNames:w,styles:C,className:k,style:S,...E}=e,{classNames:$,styles:T,getPrefixCls:P,direction:M,style:O,className:N}=en("otp"),A=P("otp",n),I={...e,length:r},[R,L]=il([$,w],[T,C],{props:I}),B=ct(E,{aria:!0,data:!0,attr:!0}),[z,D]=ik(A),j=Lu(e=>o??e),_=g.useContext(Vp),F=Lg(_.status,h),H=g.useMemo(()=>({..._,status:F,hasFeedback:!1,feedbackIcon:null}),[_,F]),W=g.useRef(null),K=g.useRef({});g.useImperativeHandle(t,()=>({focus:()=>{var e;null==(e=K.current[0])||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null==(e=K.current[t])||e.blur()},nativeElement:W.current}));const U=e=>s?s(e):e,[q,G]=g.useState(()=>lk(U(i||"")));g.useEffect(()=>{void 0!==a&&G(lk(a))},[a]);const X=V(e=>{G(e),v&&v(e),l&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>q[t]!==e)&&l(e.join(""))}),Y=V((e,t)=>{let n=qt(q);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(lk(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const o=U(n.map(e=>e||" ").join(""));return n=lk(o).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),Z=(e,t)=>{var n;const o=Y(e,t),i=Math.min(e+t.length,r-1);i!==e&&void 0!==o[e]&&(null==(n=K.current[i])||n.focus()),X(o)},Q=e=>{var t;null==(t=K.current[e])||t.focus()},J={variant:u,disabled:d,status:F,mask:f,type:m,inputMode:x,autoComplete:y};return g.createElement("div",{...B,ref:W,className:Kt(k,A,{[`${A}-sm`]:"small"===j,[`${A}-lg`]:"large"===j,[`${A}-rtl`]:"rtl"===M},D,z,N,R.root),style:{...L.root,...O,...S},role:"group"},g.createElement(Vp.Provider,{value:H},Array.from({length:r}).map((e,t)=>{const n=`otp-${t}`,o=q[t]||"";return g.createElement(g.Fragment,{key:n},g.createElement(ak,{ref:e=>{K.current[t]=e},index:t,size:j,htmlSize:1,className:Kt(R.input,`${A}-input`),style:L.input,onChange:Z,value:o,onActiveChange:Q,autoFocus:0===t&&p,onFocus:e=>((e,t)=>{var n,r,o;for(let e=0;e<t;e+=1)if(!(null==(r=null==(n=K.current[e])?void 0:n.input)?void 0:r.value)){null==(o=K.current[e])||o.focus();break}null==b||b(e)})(e,t),...J}),t<r-1&&g.createElement(sk,{separator:c,index:t,prefixCls:A,className:Kt(R.separator),style:L.separator}))})))});var uk={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 dk(){return dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dk.apply(this,arguments)}const hk=(e,t)=>g.createElement(ji,dk({},e,{ref:t,icon:uk})),pk=g.forwardRef(hk);var fk={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 mk(){return mk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mk.apply(this,arguments)}const gk=(e,t)=>g.createElement(ji,mk({},e,{ref:t,icon:fk})),yk=g.forwardRef(gk),vk=e=>e?g.createElement(yk,null):g.createElement(pk,null),bk={click:"onClick",hover:"onMouseOver"},xk=g.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i,prefixCls:a,inputPrefixCls:l,suffix:s,className:c,style:u,classNames:d,styles:h,...p}=e,{getPrefixCls:f,className:m,style:y,classNames:v,styles:b,iconRender:x}=en("inputPassword"),[w]=Fl("global"),C=g.useContext(Bs),k=n??C,S={...e,disabled:k},[E,$]=il([v,d],[b,h],{props:S}),T=Xa(o)&&void 0!==o.visible,[P,M]=g.useState(()=>!!T&&o.visible),O=g.useRef(null);g.useEffect(()=>{T&&M(o.visible)},[T,o]);const N=fC(O),A=()=>{var e;if(k)return;P&&N();const t=!P;M(t),Xa(o)&&(null==(e=o.onVisibleChange)||e.call(o,t))},I=f("input",l),R=f("input-password",a),L=o&&(e=>{const t=bk[r]||"",n=(i||x||vk)(P);return g.createElement("span",{key:"passwordIcon",role:"button",tabIndex:k?-1:0,className:`${e}-icon`,"aria-disabled":k,"aria-pressed":P,"aria-label":P?w.hide:w.show,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),A())},[t]:A},n)})(R),B=Kt(R,m,c,{[`${R}-${e.size}`]:!!e.size}),z={...p,type:P?"text":"password",prefixCls:I,suffix:g.createElement(g.Fragment,null,L,s),disabled:k,className:B,style:{...y,...u},classNames:E,styles:$};return g.createElement(mC,{ref:pe(t,O),...z})}),wk=ki(["Input","Search"],e=>{const{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:"100%",[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),Ck=g.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,style:a,enterButton:l=!1,searchIcon:s,addonAfter:c,loading:u,disabled:d,onSearch:h,onChange:p,onCompositionStart:f,onCompositionEnd:m,variant:y,onPressEnter:v,classNames:b,styles:x,hidden:w,...C}=e,{direction:k,getPrefixCls:S,classNames:E,styles:$,searchIcon:T}=en("inputSearch"),P={...e,enterButton:l},[M,O]=il([E,b],[$,x],{props:P},{button:{_default:"root"}}),N=g.useRef(!1),A=S("input-search",n),I=S("input",r),[R,L]=wk(A),{compactSize:B}=Du(A,k),z=Lu(e=>i??B??e),D=g.useRef(null),j=e=>{var t;document.activeElement===(null==(t=D.current)?void 0:t.input)&&e.preventDefault()},_=e=>{var t,n;h&&h(null==(n=null==(t=D.current)?void 0:t.input)?void 0:n.value,e,{source:"input"})},F="boolean"==typeof l?xc(s,T,g.createElement(hy,null)):null,H=`${A}-btn`,W=Kt(H,{[`${H}-${y}`]:y});let K;const V=l||{},U=V.type&&!0===V.type.__ANT_BUTTON;K=U||"button"===V.type?As(V,{onMouseDown:j,onClick:e=>{var t,n;null==(n=null==(t=null==V?void 0:V.props)?void 0:t.onClick)||n.call(t,e),_(e)},key:"enterButton",...U?{className:W,size:z}:{}}):g.createElement(mh,{classNames:M.button,styles:O.button,className:W,color:l?"primary":"default",size:z,disabled:d,key:"enterButton",onMouseDown:j,onClick:_,loading:u,icon:F,variant:"borderless"===y||"filled"===y||"underlined"===y?"text":l?"solid":void 0},l),c&&(K=[K,As(c,{key:"addonAfter"})]);const q=Kt(A,L,{[`${A}-rtl`]:"rtl"===k,[`${A}-${z}`]:!!z,[`${A}-with-button`]:!!l},o,R,M.root),G=ct(C,{data:!0}),X=at({...C,classNames:at(M,["button","root"]),styles:at(O,["button","root"]),prefixCls:I,type:"search",size:z,variant:y,onPressEnter:e=>{N.current||u||(null==v||v(e),_(e))},onCompositionStart:e=>{N.current=!0,null==f||f(e)},onCompositionEnd:e=>{N.current=!1,null==m||m(e)},onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&h&&h(e.target.value,e,{source:"clear"}),null==p||p(e)},disabled:d},Object.keys(G));return g.createElement(Fu,{className:q,style:{...a,...O.root},...G,hidden:w},g.createElement(mC,{ref:pe(D,t),...X}),K)}),kk=ki(["Input","TextArea"],e=>(e=>{const{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"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{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}}}}}})(fo(e,Lx(e))),Bx,{resetFont:!1}),Sk=g.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:u,className:d,style:h,styles:p,variant:f,showCount:m,onMouseDown:y,onResize:v,...b}=e,{getPrefixCls:x,direction:w,allowClear:C,autoComplete:k,className:S,style:E,classNames:$,styles:T}=en("textArea"),P=g.useContext(Bs),M=a??P,{status:O,hasFeedback:N,feedbackIcon:A}=g.useContext(Vp),I=Lg(O,l),[R,L]=il([$,c],[T,p],{props:e}),B=g.useRef(null);g.useImperativeHandle(t,()=>{var e,t;return{resizableTextArea:null==(e=B.current)?void 0:e.resizableTextArea,focus:e=>{var t,n;Le(null==(n=null==(t=B.current)?void 0:t.resizableTextArea)?void 0:n.textArea,e)},blur:()=>{var e;return null==(e=B.current)?void 0:e.blur()},nativeElement:(null==(t=B.current)?void 0:t.nativeElement)||null}});const z=x("input",r),D=El(z),[j,_]=cw(z,u);kk(z,D);const{compactSize:F,compactItemClassnames:H}=Du(z,w),W=Lu(e=>i??F??e),[K,V]=Wg("textArea",f,o),U=wc({allowClear:s,contextAllowClear:C,componentName:"TextArea"}),[q,G]=g.useState(!1),[X,Y]=g.useState(!1);return g.createElement(pC,{autoComplete:k,...b,style:{...L.root,...E,...h},styles:L,disabled:M,allowClear:U,className:Kt(_,D,d,u,H,S,R.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:X}),classNames:{...R,textarea:Kt({[`${z}-sm`]:"small"===W,[`${z}-lg`]:"large"===W},j,R.textarea,q&&`${z}-mouse-active`),variant:Kt({[`${z}-${K}`]:V},Rg(z,I)),affixWrapper:Kt(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:"rtl"===w,[`${z}-affix-wrapper-sm`]:"small"===W,[`${z}-affix-wrapper-lg`]:"large"===W,[`${z}-textarea-show-count`]:m||(null==(n=e.count)?void 0:n.show)},j)},prefixCls:z,suffix:N&&g.createElement("span",{className:`${z}-textarea-suffix`},A),showCount:m,ref:B,onResize:e=>{var t,n;if(null==v||v(e),q&&Ya(getComputedStyle)){const e=null==(n=null==(t=B.current)?void 0:t.nativeElement)?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&Y(!0)}},onMouseDown:e=>{G(!0),null==y||y(e);const t=()=>{G(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}})}),Ek=mC;Ek.Group=e=>{const{getPrefixCls:t,direction:n}=g.useContext(Zt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=uw(a),c=Kt(i,s,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,o),u=g.useContext(Vp),d=g.useMemo(()=>({...u,isFormItemInput:!1}),[u]);return g.createElement(Vp.Provider,{value:d},g.createElement(SC.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},Ek.Search=Ck,Ek.TextArea=Sk,Ek.Password=xk,Ek.OTP=ck;var $k={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 Tk(){return Tk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tk.apply(this,arguments)}const Pk=(e,t)=>g.createElement(ji,Tk({},e,{ref:t,icon:$k})),Mk=g.forwardRef(Pk);var Ok={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 Nk(){return Nk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nk.apply(this,arguments)}const Ak=(e,t)=>g.createElement(ji,Nk({},e,{ref:t,icon:Ok})),Ik=g.forwardRef(Ak),Rk={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:"页码"},Lk=[10,20,50,100],Bk=e=>{const{pageSizeOptions:t=Lk,locale:n,changeSize:r,pageSize:o,goButton:i,quickGo:a,rootPrefixCls:l,disabled:s,buildOptionText:c,showSizeChanger:u,sizeChangerRender:d}=e,[h,p]=y.useState(""),f=y.useMemo(()=>!h||Number.isNaN(h)?void 0:Number(h),[h]),m="function"==typeof c?c:e=>`${e} ${n.items_per_page}`,g=e=>{const t=e.target.value;/^\d*$/.test(t)&&p(t)},v=e=>{i||""===h||(p(""),e.relatedTarget&&(e.relatedTarget.className.includes(`${l}-item-link`)||e.relatedTarget.className.includes(`${l}-item`))||null==a||a(f))},b=e=>{""!==h&&(e.keyCode!==qe.ENTER&&"click"!==e.type||(p(""),null==a||a(f)))},x=`${l}-options`;if(!u&&!a)return null;let w=null,C=null,k=null;return u&&d&&(w=d({disabled:s,size:o,onSizeChange:e=>{null==r||r(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:(t.some(e=>e.toString()===o.toString())?t:t.concat([o]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t)))).map(e=>({label:m(e),value:e}))})),a&&(i&&(k="boolean"==typeof i?y.createElement("button",{type:"button",onClick:b,onKeyUp:b,disabled:s,className:`${x}-quick-jumper-button`},n.jump_to_confirm):y.createElement("span",{onClick:b,onKeyUp:b},i)),C=y.createElement("div",{className:`${x}-quick-jumper`},n.jump_to,y.createElement("input",{disabled:s,type:"text",value:h,onChange:g,onKeyUp:b,onBlur:v,"aria-label":n.page}),n.page,k)),y.createElement("li",{className:x},w,C)},zk=e=>{const{rootPrefixCls:t,page:n,active:r,className:o,style:i,showTitle:a,onClick:l,onKeyPress:s,itemRender:c}=e,u=`${t}-item`,d=Kt(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},o),h=c(n,"page",y.createElement("a",{rel:"nofollow"},n));return h?y.createElement("li",{title:a?String(n):null,className:d,style:i,onClick:()=>{l(n)},onKeyDown:e=>{s(e,l,n)},tabIndex:0},h):null};function Dk(){return Dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dk.apply(this,arguments)}const jk=(e,t,n)=>n;function _k(){}function Fk(e){const t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Hk(e,t,n){const r=void 0===e?t:e;return Math.floor((n-1)/r)+1}const Wk=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:o,styles:i,current:a,defaultCurrent:l=1,total:s=0,pageSize:c,defaultPageSize:u=10,onChange:d=_k,hideOnSinglePage:h,align:p,showPrevNextJumpers:f=!0,showQuickJumper:m,showLessItems:v,showTitle:b=!0,onShowSizeChange:x=_k,locale:w=Rk,style:C,totalBoundaryShowSizeChanger:k=50,disabled:S,simple:E,showTotal:$,showSizeChanger:T=s>k,sizeChangerRender:P,pageSizeOptions:M,itemRender:O=jk,jumpPrevIcon:N,jumpNextIcon:A,prevIcon:I,nextIcon:R}=e,L=y.useRef(null),[B,z]=Y(u,c),[D,j]=Y(l,a),_=Math.max(1,Math.min(D,Hk(void 0,B,s))),[F,H]=y.useState(_);g.useEffect(()=>{H(_)},[_]);const W=Math.max(1,_-(v?3:5)),K=Math.min(Hk(void 0,B,s),_+(v?3:5));function V(n,r){let o=n||y.createElement("button",{type:"button","aria-label":r,className:`${t}-item-link`});return"function"==typeof n&&(o=y.createElement(n,e)),o}function U(e){const t=e.target.value,n=Hk(void 0,B,s);let r;return r=""===t?t:Number.isNaN(Number(t))?F:t>=n?n:Number(t),r}const q=s>B&&m;function G(e){const t=U(e);switch(t!==F&&H(t),e.keyCode){case qe.ENTER:X(t);break;case qe.UP:X(t-1);break;case qe.DOWN:X(t+1)}}function X(e){if(function(e){return Fk(e)&&e!==_&&Fk(s)&&s>0}(e)&&!S){const t=Hk(void 0,B,s);let n=e;return e>t?n=t:e<1&&(n=1),n!==F&&H(n),j(n),null==d||d(n,B),n}return _}const Z=_>1,Q=_<Hk(void 0,B,s);function J(){Z&&X(_-1)}function ee(){Q&&X(_+1)}function te(){X(W)}function ne(){X(K)}function re(e,t,...n){"Enter"!==e.key&&e.charCode!==qe.ENTER&&e.keyCode!==qe.ENTER||t(...n)}function oe(e){"click"!==e.type&&e.keyCode!==qe.ENTER||X(F)}let ie=null;const ae=ct(e,{aria:!0,data:!0}),le=$&&y.createElement("li",{className:`${t}-total-text`},$(s,[0===s?0:(_-1)*B+1,_*B>s?s:_*B]));let se=null;const ce=Hk(void 0,B,s);if(h&&s<=B)return null;const ue=[],de={rootPrefixCls:t,onClick:X,onKeyPress:re,showTitle:b,itemRender:O,page:-1,className:null==o?void 0:o.item,style:null==i?void 0:i.item},he=_-1>0?_-1:0,pe=_+1<ce?_+1:ce,fe=m&&m.goButton,me="object"==typeof E?E.readOnly:!E;let ge=fe,ye=null;E&&(fe&&(ge="boolean"==typeof fe?y.createElement("button",{type:"button",onClick:oe,onKeyUp:oe},w.jump_to_confirm):y.createElement("span",{onClick:oe,onKeyUp:oe},fe),ge=y.createElement("li",{title:b?`${w.jump_to}${_}/${ce}`:null,className:`${t}-simple-pager`},ge)),ye=y.createElement("li",{title:b?`${_}/${ce}`:null,className:Kt(`${t}-simple-pager`,null==o?void 0:o.item),style:null==i?void 0:i.item},me?F:y.createElement("input",{type:"text","aria-label":w.jump_to,value:F,disabled:S,onKeyDown:function(e){e.keyCode!==qe.UP&&e.keyCode!==qe.DOWN||e.preventDefault()},onKeyUp:G,onChange:G,onBlur:function(e){X(U(e))},size:3}),y.createElement("span",{className:`${t}-slash`},"/"),ce));const ve=v?1:2;if(ce<=3+2*ve){ce||ue.push(y.createElement(zk,Dk({},de,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let e=1;e<=ce;e+=1)ue.push(y.createElement(zk,Dk({},de,{key:e,page:e,active:_===e})))}else{const e=v?w.prev_3:w.prev_5,n=v?w.next_3:w.next_5,r=O(W,"jump-prev",V(N,"prev page")),o=O(K,"jump-next",V(A,"next page"));f&&(ie=r?y.createElement("li",{title:b?e:null,key:"prev",onClick:te,tabIndex:0,onKeyDown:function(e){re(e,te)},className:Kt(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!N})},r):null,se=o?y.createElement("li",{title:b?n:null,key:"next",onClick:ne,tabIndex:0,onKeyDown:function(e){re(e,ne)},className:Kt(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!A})},o):null);let i=Math.max(1,_-ve),a=Math.min(_+ve,ce);_-1<=ve&&(a=1+2*ve),ce-_<=ve&&(i=ce-2*ve);for(let e=i;e<=a;e+=1)ue.push(y.createElement(zk,Dk({},de,{key:e,page:e,active:_===e})));if(_-1>=2*ve&&3!==_&&(ue[0]=y.cloneElement(ue[0],{className:Kt(`${t}-item-after-jump-prev`,ue[0].props.className)}),ue.unshift(ie)),ce-_>=2*ve&&_!==ce-2){const e=ue[ue.length-1];ue[ue.length-1]=y.cloneElement(e,{className:Kt(`${t}-item-before-jump-next`,e.props.className)}),ue.push(se)}1!==i&&ue.unshift(y.createElement(zk,Dk({},de,{key:1,page:1}))),a!==ce&&ue.push(y.createElement(zk,Dk({},de,{key:ce,page:ce})))}let be=function(e){const t=O(e,"prev",V(I,"prev page"));return y.isValidElement(t)?y.cloneElement(t,{disabled:!Z}):t}(he);if(be){const e=!Z||!ce;be=y.createElement("li",{title:b?w.prev_page:null,onClick:J,tabIndex:e?null:0,onKeyDown:function(e){re(e,J)},className:Kt(`${t}-prev`,null==o?void 0:o.item,{[`${t}-disabled`]:e}),style:null==i?void 0:i.item,"aria-disabled":e},be)}let xe=function(e){const t=O(e,"next",V(R,"next page"));return y.isValidElement(t)?y.cloneElement(t,{disabled:!Q}):t}(pe);if(xe){let e,n;E?(e=!Q,n=Z?0:null):(e=!Q||!ce,n=e?null:0),xe=y.createElement("li",{title:b?w.next_page:null,onClick:ee,tabIndex:n,onKeyDown:function(e){re(e,ee)},className:Kt(`${t}-next`,null==o?void 0:o.item,{[`${t}-disabled`]:e}),style:null==i?void 0:i.item,"aria-disabled":e},xe)}const we=Kt(t,r,{[`${t}-start`]:"start"===p,[`${t}-center`]:"center"===p,[`${t}-end`]:"end"===p,[`${t}-simple`]:E,[`${t}-disabled`]:S});return y.createElement("ul",Dk({className:we,style:C,ref:L},ae),le,be,E?ye:ue,xe,y.createElement(Bk,{locale:w,rootPrefixCls:t,disabled:S,selectPrefixCls:n,changeSize:function(e){const t=Hk(e,B,s),n=_>t&&0!==t?t:_;z(e),H(n),null==x||x(_,e),j(n),null==d||d(n,e)},pageSize:B,pageSizeOptions:M,quickGo:q?X:null,goButton:ge,showSizeChanger:T,sizeChangerRender:P}))},Kk=e=>{const{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}}}}},Vk=e=>{const{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...tw(e),width:e.paginationMiniQuickJumperInputWidth}}}}},Uk=e=>{const{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...ew(e)}}}}},qk=e=>{const{componentCls:t,antCls:n}=e,[,r]=$i(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 ${wn(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${wn(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:`${wn(e.inputOutlineOffset)} 0 ${wn(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}}}}}},Gk=e=>{const{componentCls:t,antCls:n}=e,[,r]=$i(n,"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",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:r("item-spacing-actual")},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:r("item-size-actual"),height:r("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r("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:`${wn(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:r("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:r("item-size-actual"),verticalAlign:"baseline",input:{...nw(e),...jx(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Dx(e)},width:e.quickJumperInputWidth,height:r("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:r("item-spacing-actual"),marginInlineEnd:r("item-spacing-actual")}}}}},Xk=e=>{const{componentCls:t,antCls:n}=e,[,r]=$i(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:wn(e.calc(r("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${wn(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${wn(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}}}}},Yk=e=>{const{componentCls:t,antCls:n}=e,[r,o]=$i(n,"pagination");return{[t]:{[r("item-size-actual")]:wn(e.itemSize),[r("item-spacing-actual")]:wn(e.marginXS),"&-small":{[r("item-size-actual")]:wn(e.itemSizeSM),[r("item-spacing-actual")]:wn(e.marginXXS)},"&-large":{[r("item-size-actual")]:wn(e.itemSizeLG),[r("item-spacing-actual")]:wn(e.marginSM)},...vi(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:o("item-size-actual"),marginInlineEnd:o("item-spacing-actual"),lineHeight:wn(e.calc(o("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...Xk(e),...Gk(e),...qk(e),...Vk(e),...Uk(e),...Kk(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"}}},Zk=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...xi(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...bi(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:bi(e)}}}},Qk=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,...Bx(e)}),Jk=e=>fo(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"},Lx(e)),eS=ki("Pagination",e=>{const t=Jk(e);return[Yk(t),Zk(t)]},Qk),tS=Ei(["Pagination","bordered"],e=>(e=>{const{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:`${wn(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}}}}})(Jk(e)),Qk);function nS(e){return g.useMemo(()=>"boolean"==typeof e?[e,{}]:Xa(e)?[!0,e]:[void 0,void 0],[e])}const rS=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:l,locale:s,responsive:c,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:h,styles:p,classNames:f,...m}=e,{xs:y}=Ty(c),[,v]=gi(),{getPrefixCls:b,direction:x,showSizeChanger:w,className:C,style:k,classNames:S,styles:E,totalBoundaryShowSizeChanger:$}=en("pagination"),T=b("pagination",n),[P,M]=eS(T),O=Lu(l),N="small"===O||!(!y||O||!c),A={...e,size:O},[I,R]=il([S,f],[E,p],{props:A}),[L]=Fl("Pagination",Tl),B={...L,...s},[z,D]=nS(u),[j,_]=nS(w),F=z??j,H=D??_,W=d||my,K=g.useMemo(()=>h?h.map(Number):void 0,[h]),V=g.useMemo(()=>{const e=g.createElement("span",{className:`${T}-item-ellipsis`},"•••");return{prevIcon:g.createElement("button",{className:`${T}-item-link`,type:"button",tabIndex:-1},"rtl"===x?g.createElement(Ud,null):g.createElement(dv,null)),nextIcon:g.createElement("button",{className:`${T}-item-link`,type:"button",tabIndex:-1},"rtl"===x?g.createElement(dv,null):g.createElement(Ud,null)),jumpPrevIcon:g.createElement("a",{className:`${T}-item-link`},g.createElement("div",{className:`${T}-item-container`},"rtl"===x?g.createElement(Ik,{className:`${T}-item-link-icon`}):g.createElement(Mk,{className:`${T}-item-link-icon`}),e)),jumpNextIcon:g.createElement("a",{className:`${T}-item-link`},g.createElement("div",{className:`${T}-item-container`},"rtl"===x?g.createElement(Mk,{className:`${T}-item-link-icon`}):g.createElement(Ik,{className:`${T}-item-link-icon`}),e))}},[x,T]),U=b("select",r),q=Kt({[`${T}-${t}`]:!!t,[`${T}-${O}`]:O,[`${T}-mini`]:N,[`${T}-rtl`]:"rtl"===x,[`${T}-bordered`]:v.wireframe},C,o,i,I.root,P,M),G={...R.root,...k,...a};return g.createElement(g.Fragment,null,v.wireframe&&g.createElement(tS,{prefixCls:T}),g.createElement(Wk,{...V,...m,styles:R,classNames:I,style:G,prefixCls:T,selectPrefixCls:U,className:q,locale:B,pageSizeOptions:K,showSizeChanger:F,totalBoundaryShowSizeChanger:m.totalBoundaryShowSizeChanger??$,sizeChangerRender:e=>{var t;const{disabled:n,size:r,onSizeChange:o,"aria-label":i,className:a,options:l}=e,{className:s,onChange:c}=H||{},u=null==(t=l.find(e=>String(e.value)===String(r)))?void 0:t.value;return g.createElement(W,{disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:l,...H,value:u,onChange:(e,t)=>{null==o||o(e),null==c||c(e,t)},size:O,className:Kt(a,s)})}}))},oS=80*Math.PI,iS=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return g.createElement("circle",{className:Kt(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},aS=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[i,a]=g.useState(!1);G(()=>{0!==e&&a(!0)},[0!==e]);const l=Math.max(Math.min(e,100),0);if(!i)return null;const s={strokeDashoffset:""+oS/4,strokeDasharray:`${oS*l/100} ${oS*(100-l)/100}`};return g.createElement("span",{className:Kt(r,`${n}-progress`,{[o]:l<=0})},g.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},g.createElement(iS,{dotClassName:n,hasCircleCls:!0}),g.createElement(iS,{dotClassName:n,style:s})))};function lS(e){const{prefixCls:t,percent:n=0,className:r,style:o}=e,i=`${t}-dot`,a=`${i}-holder`,l=`${a}-hidden`;return g.createElement(g.Fragment,null,g.createElement("span",{className:Kt(a,r,n>0&&l),style:o},g.createElement("span",{className:Kt(i,`${t}-dot-spin`)},[1,2,3,4].map(e=>g.createElement("i",{className:`${t}-dot-item`,key:e})))),g.createElement(aS,{prefixCls:t,percent:n}))}function sS(e){const{prefixCls:t,indicator:n,percent:r,className:o,style:i}=e,a=`${t}-dot`;return n&&g.isValidElement(n)?As(n,e=>({className:Kt(e.className,a,o),style:{...e.style,...i},percent:r})):g.createElement(lS,{prefixCls:t,percent:r,className:o,style:i})}const cS=new Fr("antSpinMove",{to:{opacity:1}}),uS=new Fr("antRotate",{to:{transform:"rotate(405deg)"}}),dS=e=>{const{componentCls:t}=e,n=`${t}-section`;return{[t]:{...vi(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}}}}}},hS=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r}=e,[o,i]=$i(n,"spin");return{[t]:{[o("dot-holder-size")]:e.dotSize,[o("dot-item-size")]:`calc((${i("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:i("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:i("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:uS,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:i("dot-item-size"),height:i("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:cS,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}}}}},pS=e=>{const{componentCls:t}=e,[n]=$i(e.antCls,"spin");return{[t]:{"&-sm":{[n("dot-holder-size")]:e.dotSizeSM},"&-lg":{[n("dot-holder-size")]:e.dotSizeLG}}}},fS=ki("Spin",e=>{const t=fo(e,{spinDotDefault:e.colorTextDescription});return[dS(t),hS(t),pS(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),mS=[[30,.05],[70,.03],[96,.01]];let gS;const yS=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a,tip:l,description:s,wrapperClassName:c,style:u,children:d,fullscreen:h=!1,indicator:p,percent:f,classNames:m,styles:y,...v}=e,{getPrefixCls:b,direction:x,indicator:w,className:C,style:k,classNames:S,styles:E}=en("spin"),$=b("spin",t),[T,P]=fS($),[M,O]=g.useState(()=>n&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(n,r)),N=function(e,t){const[n,r]=g.useState(0),o=g.useRef(null),i="auto"===t;return g.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(e=>{const t=100-e;for(let n=0;n<mS.length;n+=1){const[r,o]=mS[n];if(e<=r)return e+t*o}return e})},200)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[i,e]),i?n:t}(M,f);g.useEffect(()=>{if(n){const e=hw(r,()=>{O(!0)});return e(),()=>{var t;null==(t=null==e?void 0:e.cancel)||t.call(e)}}O(!1)},[r,n]);const A=Lu(e=>a??e),I=s??l,R={...e,size:A,spinning:M,tip:I,description:I,fullscreen:h,children:d,percent:N},[L,B]=il([S,m],[E,y],{props:R}),z=p??w??gS,D=void 0!==d,j=D||h,_=g.createElement(g.Fragment,null,g.createElement(sS,{className:Kt(L.indicator),style:B.indicator,prefixCls:$,indicator:z,percent:N}),I&&g.createElement("div",{className:Kt(`${$}-description`,L.tip,L.description),style:{...B.tip,...B.description}},I));return g.createElement("div",{className:Kt($,{[`${$}-sm`]:"small"===A,[`${$}-lg`]:"large"===A,[`${$}-spinning`]:M,[`${$}-rtl`]:"rtl"===x,[`${$}-fullscreen`]:h},i,L.root,h&&L.mask,j?c:[`${$}-section`,L.section],C,o,T,P),style:{...B.root,...j?{}:B.section,...h?B.mask:{},...k,...u},"aria-live":"polite","aria-busy":M,...v},M&&(j?g.createElement("div",{className:Kt(`${$}-section`,L.section),style:B.section},_):_),D&&g.createElement("div",{className:Kt(`${$}-container`,L.container),style:B.container},d))};yS.setDefaultIndicator=e=>{gS=e};let vS=null,bS=e=>e(),xS=[],wS={};function CS(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o,stack:i}=wS,a=(null==e?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o,stack:i}}const kS=y.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=g.useContext(Zt),i=wS.prefixCls||o("message"),a=g.useContext(im),[l,s]=bu({...n,prefixCls:i,...a.message});return y.useImperativeHandle(t,()=>{const e={...l};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),l[t].apply(l,e))}),{instance:e,sync:r}}),s}),SS=y.forwardRef((e,t)=>{const[n,r]=y.useState(CS),o=()=>{r(CS)};y.useEffect(o,[]);const i=Zs(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=y.createElement(kS,{ref:t,sync:o,messageConfig:n});return y.createElement(Js,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)}),ES=()=>{if(!vS){const e=document.createDocumentFragment(),t={fragment:e};return vS=t,void bS(()=>{$t(y.createElement(SS,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,ES())})}}),e)})}vS.instance&&(xS.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":bS(()=>{const t=vS.instance.open({...wS,...e.config});null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":bS(()=>{null==vS||vS.instance.destroy(e.key)});break;default:bS(()=>{var n;const r=(n=vS.instance)[t].apply(n,qt(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)})}}),xS=[])};const $S={open:function(e){const t=pu(t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return xS.push(r),()=>{n?bS(()=>{n()}):r.skipped=!0}});return ES(),t},destroy:e=>{xS.push({type:"destroy",key:e}),ES()},config:function(e){wS={...wS,...e},bS(()=>{var e;null==(e=null==vS?void 0:vS.sync)||e.call(vS)})},useMessage:function(e){return bu(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{const{prefixCls:t,className:n,style:r,type:o,icon:i,content:a,classNames:l,styles:s,...c}=e,{getPrefixCls:u,className:d,style:h,classNames:p,styles:f}=en("message"),m=t||u("message"),y=`${m}-notice`,v=El(m),[b,x]=uu(m,v),[w,C]=il([p,l],[f,s],{props:e}),k=hu(o,i),S=o?`${y}-icon-${o}`:void 0,E={wrapper:Kt(o&&`${m}-${o}`,w.wrapper),icon:Kt(S,w.icon),title:w.title},$={wrapper:C.wrapper,icon:C.icon,title:C.title};return g.createElement("div",{className:Kt(`${y}-pure-panel`,b,n,x,v,w.root),style:C.root},g.createElement(su,{prefixCls:m}),g.createElement(rc,{...c,prefixCls:m,className:d,style:{...h,...r},duration:null,icon:k,title:a,classNames:E,styles:$}))},_InternalListDoNotUseOrYouWillBeFired:e=>{const{items:t,classNames:n,style:r}=e,{getPrefixCls:o}=en("message"),i=o("message"),a=El(i),[l,s]=uu(i,a),c=`${i}-notice`,u=t.map(e=>{const{content:t,duration:n,key:r,type:o}=e,a=o?`${c}-icon-${o}`:void 0;return{key:r,duration:n,icon:hu(o),title:t,className:`${c}-${o}`,classNames:{wrapper:`${i}-${o}`,icon:a}}});return g.createElement(dc,{prefixCls:i,placement:"top",configList:u,className:Kt(l,s,a),classNames:{...n,wrapper:null==n?void 0:n.wrapper,title:null==n?void 0:n.title},style:r,stack:!1})}},TS=$S;["success","info","warning","error","loading"].forEach(e=>{TS[e]=(...t)=>function(e,t){const n=pu(n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return xS.push(o),()=>{r?bS(()=>{r()}):o.skipped=!0}});return ES(),n}(e,t)});const PS=am(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:s,classNames:c,styles:u,...d}=e,{getPrefixCls:h}=g.useContext(Zt),{className:p,style:f,classNames:m,styles:y}=en("modal"),v=h(),b=t||h("modal"),x=El(v),[w,C]=Df(b,x),[k,S]=il([m,c],[y,u],{props:e}),E=`${b}-confirm`;let $={};return $=i?{closable:o??!1,title:"",footer:"",children:g.createElement(Wf,{...e,prefixCls:b,confirmPrefixCls:E,rootPrefixCls:v,content:l})}:{closable:o??!0,title:a,footer:null!==s&&g.createElement(Ef,{...e}),children:l},g.createElement($h,{prefixCls:b,className:Kt(w,`${b}-pure-panel`,i&&E,i&&`${E}-${i}`,n,p,C,x,k.root),style:{...f,...S.root},...d,closeIcon:Sf(b,r),closable:o,classNames:k,styles:S,...$})});function MS(e){return Yf(Zf(e))}const OS=Ff;OS.useModal=function(){const e=g.useRef(null),[t,n]=g.useState([]);g.useEffect(()=>{if(t.length){qt(t).forEach(e=>{e()}),n([])}},[t]);const r=g.useCallback(t=>function(r){var o;rm+=1;const i=g.createRef();let a;const l=new Promise(e=>{a=e});let s,c=!1;const u=g.createElement(nm,{key:`modal-${rm}`,config:t(r),ref:i,afterClose:()=>{null==s||s()},isSilent:()=>c,onConfirm:e=>{a(e)}});s=null==(o=e.current)?void 0:o.patchElement(u),s&&Uf.push(s);return{destroy:()=>{function e(){var e;null==(e=i.current)||e.destroy()}i.current?e():n(t=>[].concat(qt(t),[e]))},update:e=>{function t(){var t;null==(t=i.current)||t.update(e)}i.current?t():n(e=>[].concat(qt(e),[t]))},then:e=>(c=!0,l.then(e))}},[]);return[g.useMemo(()=>({info:r(Qf),success:r(Jf),error:r(em),warning:r(Zf),confirm:r(tm)}),[r]),g.createElement(om,{key:"modal-holder",ref:e})]},OS.info=function(e){return Yf(Qf(e))},OS.success=function(e){return Yf(Jf(e))},OS.error=function(e){return Yf(em(e))},OS.warning=MS,OS.warn=MS,OS.confirm=function(e){return Yf(tm(e))},OS.destroyAll=function(){for(;Uf.length;){const e=Uf.pop();e&&e()}},OS.config=function({rootPrefixCls:e}){qf=e},OS._InternalPanelDoNotUseOrYouWillBeFired=PS;var NS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};function AS(){return AS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AS.apply(this,arguments)}const IS=(e,t)=>g.createElement(ji,AS({},e,{ref:t,icon:NS})),RS=g.forwardRef(IS);function LS(e,t){const{disabled:n,prefixCls:r,character:o,characterRender:i,index:a,count:l,value:s,allowHalf:c,focused:u,onHover:d,onClick:h}=e,p=a+1,f=new Set([r]);0===s&&0===a&&u?f.add(`${r}-focused`):c&&s+.5>=p&&s<p?(f.add(`${r}-half`),f.add(`${r}-active`),u&&f.add(`${r}-focused`)):(p<=s?f.add(`${r}-full`):f.add(`${r}-zero`),p===s&&u&&f.add(`${r}-focused`));const m="function"==typeof o?o(e):o;let g=y.createElement("li",{className:Kt(Array.from(f)),ref:t},y.createElement("div",{onClick:n?null:e=>{h(e,a)},onKeyDown:n?null:e=>{e.keyCode===qe.ENTER&&h(e,a)},onMouseMove:n?null:e=>{d(e,a)},role:"radio","aria-checked":s>a?"true":"false","aria-posinset":a+1,"aria-setsize":l,tabIndex:n?-1:0},y.createElement("div",{className:`${r}-first`},m),y.createElement("div",{className:`${r}-second`},m)));return i&&(g=i(g,e)),g}const BS=y.forwardRef(LS);function zS(){return zS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zS.apply(this,arguments)}function DS(e,t){const{prefixCls:n="rc-rate",className:r,defaultValue:o,value:i,count:a=5,allowHalf:l=!1,allowClear:s=!0,keyboard:c=!0,character:u="★",characterRender:d,disabled:h,direction:p="ltr",tabIndex:f=0,autoFocus:m,onHoverChange:v,onChange:b,onFocus:x,onBlur:w,onKeyDown:C,onMouseLeave:k,...S}=e,[E,$]=function(){const e=g.useRef({});return[function(t){return e.current[t]},function(t){return n=>{e.current[t]=n}}]}(),T=y.useRef(null),P=()=>{var e;h||null==(e=T.current)||e.focus()};y.useImperativeHandle(t,()=>({focus:P,blur:()=>{var e;h||null==(e=T.current)||e.blur()}}));const[M,O]=Y(o||0,i),[N,A]=Y(null),I=(e,t)=>{const n="rtl"===p;let r=e+1;if(l){const o=E(e),i=function(e){const t=function(e){let t,n;const r=e.ownerDocument,{body:o}=r,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=i.clientLeft||o.clientLeft||0,n-=i.clientTop||o.clientTop||0,{left:t,top:n}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=function(e){let t=e.pageXOffset;const n="scrollLeft";if("number"!=typeof t){const r=e.document;t=r.documentElement[n],"number"!=typeof t&&(t=r.body[n])}return t}(r),t.left}(o),a=o.clientWidth;(n&&t-i>a/2||!n&&t-i<a/2)&&(r-=.5)}return r},R=e=>{O(e),null==b||b(e)},[L,B]=y.useState(!1),[z,D]=y.useState(null),j=(e,t)=>{const n=I(t,e.pageX);n!==N&&(D(n),A(null)),null==v||v(n)},_=e=>{h||(D(null),A(null),null==v||v(void 0)),e&&(null==k||k(e))},F=(e,t)=>{const n=I(t,e.pageX);let r=!1;s&&(r=n===M),_(),R(r?0:n),A(r?n:null)};y.useEffect(()=>{m&&!h&&P()},[]);const H=new Array(a).fill(0).map((e,t)=>y.createElement(BS,{ref:$(t),index:t,count:a,disabled:h,prefixCls:`${n}-star`,allowHalf:l,value:null===z?M:z,onClick:F,onHover:j,key:e||t,character:u,characterRender:d,focused:L})),W=Kt(n,r,{[`${n}-disabled`]:h,[`${n}-rtl`]:"rtl"===p});return y.createElement("ul",zS({className:W,onMouseLeave:_,tabIndex:h?-1:f,onFocus:h?null:()=>{B(!0),null==x||x()},onBlur:h?null:()=>{B(!1),null==w||w()},onKeyDown:h?null:e=>{const{keyCode:t}=e,n="rtl"===p,r=l?.5:1;c&&(t===qe.RIGHT&&M<a&&!n?(R(M+r),e.preventDefault()):t===qe.LEFT&&M>0&&!n||t===qe.RIGHT&&M>0&&n?(R(M-r),e.preventDefault()):t===qe.LEFT&&M<a&&n&&(R(M+r),e.preventDefault())),null==C||C(e)},ref:T},ct(S,{aria:!0,data:!0,attr:!0})),H)}const jS=y.forwardRef(DS),_S=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${wn(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},FS=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),HS=ki("Rate",e=>(e=>{const{componentCls:t}=e;return{[t]:{...vi(e),display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none","&-small":{fontSize:e.starSizeSM},"&-large":{fontSize:e.starSizeLG},[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}},..._S(e),...FS(e)}}})(fo(e,{})),e=>({starColor:e.yellow6,starSize:.625*e.controlHeight,starSizeSM:.625*e.controlHeightSM,starSizeLG:.625*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent})),WS=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,tooltips:a,character:l=g.createElement(RS,null),disabled:s,size:c,...u}=e,{getPrefixCls:d,direction:h,className:p,style:f}=en("rate"),m=d("rate",n),[y,v]=HS(m),b={...f,...i},x=g.useContext(Bs),w=s??x,C=Lu(e=>c??e);return g.createElement(jS,{ref:t,character:l,characterRender:(e,{index:t})=>{if(!a)return e;const n=a[t];return Xa(n)?g.createElement(tv,{...n},e):g.createElement(tv,{title:n},e)},disabled:w,...u,className:Kt({[`${m}-large`]:"large"===C,[`${m}-small`]:"small"===C},r,o,y,v,p),style:b,prefixCls:m,direction:h})});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)}const VS=g.forwardRef(({prefixCls:e="rc-switch",className:t,checked:n,defaultChecked:r,disabled:o,loadingIcon:i,checkedChildren:a,unCheckedChildren:l,onClick:s,onChange:c,onKeyDown:u,styles:d,classNames:h,...p},f)=>{const[m,y]=Y(r??!1,n);function v(e,t){let n=m;return o||(n=e,y(n),null==c||c(n,t)),n}const b=Kt(e,t,{[`${e}-checked`]:m,[`${e}-disabled`]:o});return g.createElement("button",KS({},p,{type:"button",role:"switch","aria-checked":m,disabled:o,className:b,ref:f,onKeyDown:function(e){e.which===qe.LEFT?v(!1,e):e.which===qe.RIGHT&&v(!0,e),null==u||u(e)},onClick:function(e){const t=v(!m,e);null==s||s(t,e)}}),i,g.createElement("span",{className:`${e}-inner`},g.createElement("span",{className:Kt(`${e}-inner-checked`,null==h?void 0:h.content),style:null==d?void 0:d.content},a),g.createElement("span",{className:Kt(`${e}-inner-unchecked`,null==h?void 0:h.content),style:null==d?void 0:d.content},l)))});VS.displayName="Switch";const US=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,u=wn(s(l).add(s(r).mul(2)).equal()),d=wn(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:wn(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${wn(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},qS=e=>{const{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}}}},GS=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""',"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${wn(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},XS=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,switchDuration:l,calc:s}=e,c=`${t}-inner`,u=wn(s(a).add(s(r).mul(2)).equal()),d=wn(s(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:["padding-inline-start","padding-inline-end"].map(e=>`${e} ${l} ease-in-out`).join(", "),"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:"none",minHeight:n,transition:["margin-inline-start","margin-inline-end"].map(e=>`${e} ${l} ease-in-out`).join(", "),"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},YS=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...vi(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:wn(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none","@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"},[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...xi(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"}}}},ZS=ki("Switch",e=>{const t=fo(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[YS(t),XS(t),GS(t),qS(t),US(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,s=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*s+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:s,handleShadow:`0 2px 4px 0 ${new Mo("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}}),QS=g.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:s,checked:c,value:u,defaultChecked:d,defaultValue:h,onChange:p,styles:f,classNames:m,...y}=e,[v,b]=Y(d??h??!1,c??u),{getPrefixCls:x,direction:w,className:C,style:k,classNames:S,styles:E}=en("switch"),$=g.useContext(Bs),T=(o??$)||i,P=x("switch",n),[M,O]=ZS(P),N=Lu(r),A={...e,size:N,disabled:T},[I,R]=il([S,m],[E,f],{props:A}),L=g.createElement("div",{className:Kt(`${P}-handle`,I.indicator),style:R.indicator},i&&g.createElement(bc,{className:`${P}-loading-icon`})),B=Kt(C,{[`${P}-small`]:"small"===N,[`${P}-loading`]:i,[`${P}-rtl`]:"rtl"===w},a,l,I.root,M,O),z={...R.root,...k,...s};return g.createElement(Ru,{component:"Switch",disabled:T},g.createElement(VS,{...y,classNames:I,styles:R,checked:v,onChange:(...e)=>{b(e[0]),null==p||p(...e)},prefixCls:P,className:B,style:z,disabled:T,ref:t,loadingIcon:L}))});QS.__ANT_SWITCH=!0;const JS={},eE="rc-table-internal-hook";function tE(e){const t=g.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{const r=g.useRef(e);r.current=e;const[o]=g.useState(()=>({getValue:()=>r.current,listeners:new Set}));return G(()=>{Pt.unstable_batchedUpdates(()=>{o.listeners.forEach(t=>{t(e)})})},[e]),g.createElement(t.Provider,{value:o},n)},defaultValue:e}}function nE(e,t){const n=V("function"==typeof t?t:e=>{if(void 0===t)return e;if(!Array.isArray(t))return e[t];const n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=g.useContext(null==e?void 0:e.Context),{listeners:o,getValue:i}=r||{},a=g.useRef();a.current=n(r?i():null==e?void 0:e.defaultValue);const[,l]=g.useState({});return G(()=>{if(r)return o.add(e),()=>{o.delete(e)};function e(e){const t=n(e);rt(a.current,t,!0)||l({})}},[r]),a.current}function rE(){return rE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rE.apply(this,arguments)}const{makeImmutable:oE,responseImmutable:iE,useImmutableMark:aE}=function(){const e=g.createContext(null);function t(){return g.useContext(e)}return{makeImmutable:function(n,r){const o=me(n),i=(i,a)=>{const l=o?{ref:a}:{},s=g.useRef(0),c=g.useRef(i);return null!==t()?g.createElement(n,rE({},i,l)):(r&&!r(c.current,i)||(s.current+=1),c.current=i,g.createElement(e.Provider,{value:s.current},g.createElement(n,rE({},i,l))))};return o?g.forwardRef(i):i},responseImmutable:function(e,n){const r=me(e),o=(n,o)=>{const i=r?{ref:o}:{};return t(),g.createElement(e,rE({},n,i))};return g.memo(r?g.forwardRef(o):o,n)},useImmutableMark:t}}(),lE=tE(),sE=g.createContext({renderWithProps:!1});function cE(e){const t=[],n={};return e.forEach(e=>{const{key:r,dataIndex:o}=e||{};let i=r||(a=o,null==a?[]:Array.isArray(a)?a:[a]).join("-")||"RC_TABLE_KEY";for(var a;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function uE(e){return null!=e}function dE(e,t,n,r,o,i){const a=g.useContext(sE);return te(()=>{if(uE(r))return[r];const i=null==t||""===t?[]:Array.isArray(t)?t:[t],l=vt(e,i);let s,c=l;if(o){const t=o(l,e,n);!(u=t)||"object"!=typeof u||Array.isArray(u)||g.isValidElement(u)?c=t:(c=t.children,s=t.props,a.renderWithProps=!0)}var u;return[c,s]},[aE(),e,r,t,o,n],(e,t)=>{if(i){const[,n]=e,[,r]=t;return i(r,n)}return!!a.renderWithProps||!rt(e,t,!0)})}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)}const pE=e=>{const{component:t,children:n,ellipsis:r,scope:o,prefixCls:i,className:a,style:l,align:s,record:c,render:u,dataIndex:d,renderIndex:h,shouldCellUpdate:p,index:f,rowType:m,colSpan:y,rowSpan:v,fixStart:b,fixEnd:x,fixedStartShadow:w,fixedEndShadow:C,offsetFixedStartShadow:k,offsetFixedEndShadow:S,zIndex:E,zIndexReverse:$,appendNode:T,additionalProps:P={},isSticky:M}=e,O=`${i}-cell`,{allColumnsFixedLeft:N,rowHoverable:A}=nE(lE,["allColumnsFixedLeft","rowHoverable"]),[I,R]=dE(c,d,h,n,u,p),L={},B="number"==typeof b&&!N,z="number"==typeof x&&!N,[D,j]=nE(lE,({scrollInfo:e})=>{if(!B&&!z)return[!1,!1];const[t,n]=e;return[(B&&w&&t)-k>=1,(z&&C&&n-t)-S>1]});B&&(L.insetInlineStart=b,L["--z-offset"]=E,L["--z-offset-reverse"]=$),z&&(L.insetInlineEnd=x,L["--z-offset"]=E,L["--z-offset-reverse"]=$);const _=(null==R?void 0:R.colSpan)??P.colSpan??y??1,F=(null==R?void 0:R.rowSpan)??P.rowSpan??v??1,[H,W]=function(e,t){return nE(lE,n=>{var r,o,i,a;return[(r=e,o=t||1,i=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+o-1>=i),n.onHover]})}(f,F),K=V(e=>{var t;c&&W(f,f+F-1),null==(t=null==P?void 0:P.onMouseEnter)||t.call(P,e)}),U=V(e=>{var t;c&&W(-1,-1),null==(t=null==P?void 0:P.onMouseLeave)||t.call(P,e)});if(0===_||0===F)return null;const q=P.title??(({ellipsis:e,rowType:t,children:n})=>{var r,o;let i;const a=!0===e?{showTitle:!0}:e;return a&&(a.showTitle||"header"===t)&&("string"==typeof n||"number"==typeof n?i=n.toString():g.isValidElement(n)&&"string"==typeof(null==(r=n.props)?void 0:r.children)&&(i=null==(o=n.props)?void 0:o.children)),i})({rowType:m,ellipsis:r,children:I}),G=Kt(O,a,{[`${O}-fix`]:B||z,[`${O}-fix-start`]:B,[`${O}-fix-end`]:z,[`${O}-fix-start-shadow`]:w,[`${O}-fix-start-shadow-show`]:w&&D,[`${O}-fix-end-shadow`]:C,[`${O}-fix-end-shadow-show`]:C&&j,[`${O}-ellipsis`]:r,[`${O}-with-append`]:T,[`${O}-fix-sticky`]:(B||z)&&M,[`${O}-row-hover`]:!R&&H},P.className,null==R?void 0:R.className),X={};s&&(X.textAlign=s);const Y={...null==R?void 0:R.style,...L,...X,...P.style,...l};let Z=I;return"object"!=typeof Z||Array.isArray(Z)||g.isValidElement(Z)||(Z=null),r&&(w||C)&&(Z=g.createElement("span",{className:`${O}-content`},Z)),g.createElement(t,hE({},R,P,{className:G,style:Y,title:q,scope:o,onMouseEnter:A?K:void 0,onMouseLeave:A?U:void 0,colSpan:1!==_?_:null,rowSpan:1!==F?F:null}),T,Z)},fE=g.memo(pE);function mE(e){return"start"===e.fixed}function gE(e){return"end"===e.fixed}function yE(e,t,n,r){const o=n[e]||{},i=n[t]||{};let a=null,l=null;mE(o)&&mE(i)?a=r.start[e]:gE(i)&&gE(o)&&(l=r.end[t]);let s=!1,c=!1,u=0,d=0;null!==a&&(s=!n[t+1]||!mE(n[t+1]),u=2*n.length-e,d=n.length+e),null!==l&&(c=!n[e-1]||!gE(n[e-1]),u=t,d=n.length-t);let h=0,p=0;if(s)for(let t=0;t<e;t+=1)mE(n[t])||(h+=r.widths[t]||0);if(c)for(let e=n.length-1;e>t;e-=1)gE(n[e])||(p+=r.widths[e]||0);return{fixStart:a,fixEnd:l,fixedStartShadow:s,fixedEndShadow:c,offsetFixedStartShadow:h,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}const vE=g.createContext({});function bE(){return bE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bE.apply(this,arguments)}const xE=e=>{const{children:t}=e;return t};xE.Row=e=>{const{children:t,...n}=e;return g.createElement("tr",n,t)},xE.Cell=e=>{const{className:t,index:n,children:r,colSpan:o=1,rowSpan:i,align:a}=e,{prefixCls:l}=nE(lE,["prefixCls"]),{scrollColumnIndex:s,stickyOffsets:c,flattenColumns:u}=g.useContext(vE),d=n+o-1+1===s?o+1:o,h=g.useMemo(()=>yE(n,n+d-1,u,c),[n,d,u,c]);return g.createElement(fE,bE({className:t,index:n,component:"td",prefixCls:l,record:null,dataIndex:null,align:a,colSpan:d,rowSpan:i,render:()=>r},h))};const wE=iE(e=>{const{children:t,stickyOffsets:n,flattenColumns:r}=e,o=nE(lE,"prefixCls"),i=r.length-1,a=r[i],l=g.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:(null==a?void 0:a.scrollbar)?i:null}),[a,r,i,n]);return g.createElement(vE.Provider,{value:l},g.createElement("tfoot",{className:`${o}-summary`},t))}),CE=xE;function kE(e,t,n,r,o,i,a){const l=i(t,a);e.push({record:t,indent:n,index:a,rowKey:l});const s=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&s)for(let a=0;a<t[r].length;a+=1)kE(e,t[r][a],n+1,r,o,i,a)}function SE(e,t,n,r){return g.useMemo(()=>{if(null==n?void 0:n.size){const o=[];for(let i=0;i<(null==e?void 0:e.length);i+=1){kE(o,e[i],0,t,n,r,i)}return o}return null==e?void 0:e.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function EE(e,t,n,r){const o=nE(lE,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),{flattenColumns:i,expandableType:a,expandedKeys:l,childrenColumnName:s,onTriggerExpand:c,rowExpandable:u,onRow:d,expandRowByClick:h,rowClassName:p}=o,f="nest"===a,m="row"===a&&(!u||u(e)),g=m||f,y=l&&l.has(t),v=s&&e&&e[s],b=V(c),x=null==d?void 0:d(e,n),w=null==x?void 0:x.onClick;let C;"string"==typeof p?C=p:"function"==typeof p&&(C=p(e,n,r));const k=cE(i);return{...o,columnsKey:k,nestExpandable:f,expanded:y,hasNestChildren:v,record:e,onTriggerExpand:b,rowSupportExpand:m,expandable:g,rowProps:{...x,className:Kt(C,null==x?void 0:x.className),onClick:(t,...n)=>{h&&g&&c(e,t),null==w||w(t,...n)}}}}const $E=e=>{const{prefixCls:t,children:n,component:r,cellComponent:o,className:i,expanded:a,colSpan:l,isEmpty:s,stickyOffset:c=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:h,componentWidth:p,horizonScroll:f}=nE(lE,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]);let m=n;return(s?f&&p:h)&&(m=g.createElement("div",{style:{width:p-c-(d&&!s?u:0),position:"sticky",left:c,overflow:"hidden"},className:`${t}-expanded-row-fixed`},m)),g.createElement(r,{className:i,style:{display:a?null:"none"}},g.createElement(fE,{component:o,prefixCls:t,colSpan:l},m))};function TE({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:o}){const i=`${e}-row-expand-icon`;if(!o)return g.createElement("span",{className:Kt(i,`${e}-row-spaced`)});return g.createElement("span",{className:Kt(i,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:e=>{n(t,e),e.stopPropagation()}})}function PE(e,t,n,r){return"string"==typeof e?e:"function"==typeof e?e(t,n,r):""}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)}function OE(e,t,n,r,o,i=[],a=0){var l;const{record:s,prefixCls:c,columnsKey:u,fixedInfoList:d,expandIconColumnIndex:h,nestExpandable:p,indentSize:f,expandIcon:m,expanded:y,hasNestChildren:v,onTriggerExpand:b,expandable:x,expandedKeys:w}=e,C=u[n],k=d[n];let S;n===(h||0)&&p&&(S=g.createElement(g.Fragment,null,g.createElement("span",{style:{paddingLeft:f*r+"px"},className:`${c}-row-indent indent-level-${r}`}),m({prefixCls:c,expanded:y,expandable:v,record:s,onExpand:b})));const E=(null==(l=t.onCell)?void 0:l.call(t,s,o))||{};if(a){const{rowSpan:e=1}=E;if(x&&e&&n<a){let t=e;for(let n=o;n<o+e;n+=1){const e=i[n];w.has(e)&&(t+=1)}E.rowSpan=t}}return{key:C,fixedInfo:k,appendCellNode:S,additionalCellProps:E}}const NE=iE(e=>{const{className:t,style:n,classNames:r,styles:o,record:i,index:a,renderIndex:l,rowKey:s,rowKeys:c,indent:u=0,rowComponent:d,cellComponent:h,scopeCellComponent:p,expandedRowInfo:f}=e,m=EE(i,s,a,u),{prefixCls:y,flattenColumns:v,expandedRowClassName:b,expandedRowRender:x,rowProps:w,expanded:C,rowSupportExpand:k}=m,S=g.useRef(!1);S.current||(S.current=C);const E=PE(b,i,a,u),$=g.createElement(d,ME({},w,{"data-row-key":s,className:Kt(t,`${y}-row`,`${y}-row-level-${u}`,null==w?void 0:w.className,r.row,{[E]:u>=1}),style:{...n,...null==w?void 0:w.style,...o.row}}),v.map((e,t)=>{const{render:n,dataIndex:s,className:d}=e,{key:v,fixedInfo:b,appendCellNode:x,additionalCellProps:w}=OE(m,e,t,u,a,c,null==f?void 0:f.offset);return g.createElement(fE,ME({className:Kt(d,r.cell),style:o.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:h,prefixCls:y,key:v,record:i,index:a,renderIndex:l,dataIndex:s,render:n,shouldCellUpdate:e.shouldCellUpdate},b,{appendNode:x,additionalProps:w}))}));let T;if(k&&(S.current||C)){const e=x(i,a,u+1,C);T=g.createElement($E,{expanded:C,className:Kt(`${y}-expanded-row`,`${y}-expanded-row-level-${u+1}`,E),prefixCls:y,component:d,cellComponent:h,colSpan:f?f.colSpan:v.length,isEmpty:!1,stickyOffset:null==f?void 0:f.sticky},e)}return g.createElement(g.Fragment,null,$,T)}),AE=e=>{const{columnKey:t,onColumnResize:n,title:r}=e,o=g.useRef(null);return G(()=>{o.current&&n(t,o.current.offsetWidth)},[]),g.createElement(Ht,{data:t},g.createElement("td",{ref:o,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},g.createElement("div",{style:{height:0,overflow:"hidden",fontWeight:"bold"}},r||" ")))},IE=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{const o=g.useRef(null),{measureRowRender:i}=nE(lE,["measureRowRender"]),a=g.createElement("tr",{"aria-hidden":"true",className:`${e}-measure-row`,style:{height:0},ref:o},g.createElement(Ht.Collection,{onBatchResize:e=>{Ae(o.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{const t=r.find(t=>t.key===e),o=null==t?void 0:t.title,i=g.isValidElement(o)?g.cloneElement(o,{ref:null}):o;return g.createElement(AE,{key:e,columnKey:e,onColumnResize:n,title:i})})));return"function"==typeof i?i(a):a},RE=iE(e=>{const{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:o,onColumnResize:i,flattenColumns:a,getRowKey:l,expandedKeys:s,childrenColumnName:c,emptyNode:u,classNames:d,styles:h,expandedRowOffset:p=0,colWidths:f}=nE(lE,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","classNames","styles","expandedRowOffset","fixedInfoList","colWidths"]),{body:m={}}=d||{},{body:y={}}=h||{},v=SE(t,c,s,l),b=g.useMemo(()=>v.map(e=>e.rowKey),[v]),x=g.useRef({renderWithProps:!1}),w=g.useMemo(()=>{const e=a.length-p;let t=0;for(let e=0;e<p;e+=1)t+=f[e]||0;return{offset:p,colSpan:e,sticky:t}},[a.length,p,f]),C=o(["body","wrapper"],"tbody"),k=o(["body","row"],"tr"),S=o(["body","cell"],"td"),E=o(["body","cell"],"th");let $;$=t.length?v.map((e,t)=>{const{record:n,indent:r,index:o,rowKey:i}=e;return g.createElement(NE,{classNames:m,styles:y,key:i,rowKey:i,rowKeys:b,record:n,index:t,renderIndex:o,rowComponent:k,cellComponent:S,scopeCellComponent:E,indent:r,expandedRowInfo:w})}):g.createElement($E,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:k,cellComponent:S,colSpan:a.length,isEmpty:!0},u);const T=cE(a);return g.createElement(sE.Provider,{value:x.current},g.createElement(C,{style:y.wrapper,className:Kt(`${r}-tbody`,m.wrapper)},n&&g.createElement(IE,{prefixCls:r,columnsKey:T,onColumnResize:i,columns:a}),$))}),LE="RC_TABLE_INTERNAL_COL_DEFINE";function BE(){return BE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BE.apply(this,arguments)}const zE=e=>{const{colWidths:t,columns:n,columCount:r}=e,{tableLayout:o}=nE(lE,["tableLayout"]),i=[];let a=!1;for(let e=(r||n.length)-1;e>=0;e-=1){const r=t[e],l=n&&n[e];let s,c;if(l&&(s=l[LE],"auto"===o&&(c=l.minWidth)),r||c||s||a){const{columnType:t,...n}=s||{};i.unshift(g.createElement("col",BE({key:e,style:{width:r,minWidth:c}},n))),a=!0}}return i.length>0?g.createElement("colgroup",null,i):null};const DE=g.forwardRef((e,t)=>{const{className:n,style:r,noData:o,columns:i,flattenColumns:a,colWidths:l,colGroup:s,columCount:c,stickyOffsets:u,direction:d,fixHeader:h,stickyTopOffset:p,stickyBottomOffset:f,stickyClassName:m,scrollX:y,tableLayout:v="fixed",onScroll:b,maxContentScroll:x,children:w,...C}=e,{prefixCls:k,scrollbarSize:S,isSticky:E,getComponent:$}=nE(lE,["prefixCls","scrollbarSize","isSticky","getComponent"]),T=$(["header","table"],"table"),P=E&&!h?0:S,M=g.useRef(null),O=g.useCallback(e=>{he(t,e),he(M,e)},[]);g.useEffect(()=>{function e(e){const{currentTarget:t,deltaX:n}=e;if(n){const{scrollLeft:r,scrollWidth:o,clientWidth:i}=t,a=o-i;let l=r+n;"rtl"===d?(l=Math.max(-a,l),l=Math.min(0,l)):(l=Math.min(a,l),l=Math.max(0,l)),b({currentTarget:t,scrollLeft:l}),e.preventDefault()}}const t=M.current;return null==t||t.addEventListener("wheel",e,{passive:!1}),()=>{null==t||t.removeEventListener("wheel",e)}},[]);const N=a[a.length-1],A={fixed:N?N.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${k}-cell-scrollbar`})},I=g.useMemo(()=>P?[...i,A]:i,[P,i]),R=g.useMemo(()=>P?[...a,A]:a,[P,a]),L=g.useMemo(()=>{const{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+P),0],isSticky:E}},[P,u,E]),B=function(e,t){return g.useMemo(()=>{const n=[];for(let r=0;r<t;r+=1){const t=e[r];if(void 0===t)return null;n[r]=t}return n},[e.join("_"),t])}(l,c),z=g.useMemo(()=>{const e=!B||!B.length||B.every(e=>!e);return o||e},[o,B]);return g.createElement("div",{style:{overflow:"hidden",...E?{top:p,bottom:f}:{},...r},ref:O,className:Kt(n,{[m]:!!m})},g.createElement(T,{style:{tableLayout:v,minWidth:"100%",width:y}},z?s:g.createElement(zE,{colWidths:[...B,P],columCount:c+1,columns:R}),w({...C,stickyOffsets:L,columns:I,flattenColumns:R})))}),jE=g.memo(DE);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)}const FE=e=>{const{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:o,cellComponent:i,onHeaderRow:a,index:l,classNames:s,styles:c}=e,{prefixCls:u}=nE(lE,["prefixCls"]);let d;a&&(d=a(t.map(e=>e.column),l));const h=cE(t.map(e=>e.column));return g.createElement(o,_E({},d,{className:s.row,style:c.row}),t.map((e,t)=>{var o;const{column:a,colStart:l,colEnd:s,colSpan:c}=e,d=yE(l,s,r,n),p=(null==(o=null==a?void 0:a.onHeaderCell)?void 0:o.call(a,a))||{};return g.createElement(fE,_E({},e,{scope:a.title?c>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:i,prefixCls:u,key:h[t]},d,{additionalProps:p,rowType:"header"}))}))};const HE=iE(e=>{const{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:o}=e,{prefixCls:i,getComponent:a,classNames:l,styles:s}=nE(lE,["prefixCls","getComponent","classNames","styles"]),{header:c={}}=l||{},{header:u={}}=s||{},d=g.useMemo(()=>function(e,t,n){const r=[];!function e(o,i,a=0){r[a]=r[a]||[];let l=i;return o.filter(Boolean).map(o=>{const i={key:o.key,className:Kt(o.className,t.cell)||"",style:n.cell,children:o.title,column:o,colStart:l};let s=1;const c=o.children;return c&&c.length>0&&(s=e(c,l,a+1).reduce((e,t)=>e+t,0),i.hasSubColumns=!0),"colSpan"in o&&({colSpan:s}=o),"rowSpan"in o&&(i.rowSpan=o.rowSpan),i.colSpan=s,i.colEnd=i.colStart+s-1,r[a].push(i),l+=s,s})}(e,0);const o=r.length;for(let e=0;e<o;e+=1)r[e].forEach(t=>{"rowSpan"in t||t.hasSubColumns||(t.rowSpan=o-e)});return r}(n,c,u),[n,c,u]),h=a(["header","wrapper"],"thead"),p=a(["header","row"],"tr"),f=a(["header","cell"],"th");return g.createElement(h,{className:Kt(`${i}-thead`,c.wrapper),style:u.wrapper},d.map((e,n)=>g.createElement(FE,{classNames:c,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:f,onHeaderRow:o,index:n})))});function WE(e,t=""){return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}function KE(e){return gt(e).filter(e=>g.isValidElement(e)).map(e=>{const{key:t,props:n}=e,{children:r,...o}=n,i={key:t,...o};return r&&(i.children=KE(r)),i})}function VE(e){return e.filter(e=>e&&"object"==typeof e&&!e.hidden).map(e=>{const t=e.children;return t&&t.length>0?{...e,children:VE(t)}:e})}function UE(e,t="key"){return e.filter(e=>e&&"object"==typeof e).reduce((e,n,r)=>{const{fixed:o}=n,i=!0===o||"left"===o?"start":"right"===o?"end":o,a=`${t}-${r}`,l=n.children;return l&&l.length>0?[...e,...UE(l,a).map(e=>({...e,fixed:e.fixed??i}))]:[...e,{key:a,...n,fixed:i}]},[])}function qE({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:o,columnTitle:i,getRowKey:a,onTriggerExpand:l,expandIcon:s,rowExpandable:c,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:h,expandRowByClick:p,columnWidth:f,fixed:m,scrollWidth:y,clientWidth:v},b){const x=g.useMemo(()=>VE((t||KE(n)||[]).slice()),[t,n]),w=g.useMemo(()=>{if(r){let t=x.slice();if(!t.includes(JS)){const e=u||0,n=0!==e||"right"!==m&&"end"!==m?e:x.length;n>=0&&t.splice(n,0,JS)}const n=t.indexOf(JS);t=t.filter((e,t)=>e!==JS||t===n);const r=x[n];let h;h=m||(r?r.fixed:null);const y={[LE]:{className:`${e}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:i,fixed:h,className:`${e}-row-expand-icon-cell`,width:f,render:(t,n,r)=>{const i=a(n,r),u=o.has(i),d=!c||c(n),h=s({prefixCls:e,expanded:u,expandable:d,record:n,onExpand:l});return p?g.createElement("span",{onClick:e=>e.stopPropagation()},h):h}};return t.map((e,t)=>{const n=e===JS?y:e;return t<d?{...n,fixed:n.fixed||"start"}:n})}return x.filter(e=>e!==JS)},[r,x,a,o,s,h,d]),C=g.useMemo(()=>{let e=w;return b&&(e=b(e)),e.length||(e=[{render:()=>null}]),e},[b,w,h]),k=g.useMemo(()=>UE(C),[C,h,y]),[S,E]=function(e,t,n){return g.useMemo(()=>{if(t&&t>0){let r=0,o=0;e.forEach(e=>{const n=WE(t,e.width);n?r+=n:o+=1});const i=Math.max(t,n);let a=Math.max(i-r,o),l=o;const s=a/o;let c=0;const u=e.map(e=>{const n={...e},r=WE(t,n.width);if(r)n.width=r;else{const e=Math.floor(s);n.width=1===l?a:e,a-=e,l-=1}return c+=n.width,n});if(c<i){const e=i/c;a=i,u.forEach((t,n)=>{const r=Math.floor(t.width*e);t.width=n===u.length-1?a:r,a-=r})}return[u,Math.max(c,i)]}return[e,t]},[e,t,n])}(k,y,v);return[C,S,E]}const GE=U()?window:null;const XE=e=>{const{children:t,className:n,style:r}=e;return g.createElement("div",{className:n,style:r},t)};function YE(e){const t=Ne(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)}}const ZE="mouseup",QE="mousemove",JE="scroll",e$="resize",t$=(e,t)=>{var n,r;const{scrollBodyRef:o,onScroll:i,offsetScroll:a,container:l,direction:s}=e,c=nE(lE,"prefixCls"),u=(null==(n=o.current)?void 0:n.scrollWidth)||0,d=(null==(r=o.current)?void 0:r.clientWidth)||0,h=u&&d*(d/u),p=g.useRef(null),[f,m]=function(e){const t=g.useRef(e),[,n]=g.useState({}),r=g.useRef(null),o=g.useRef([]);return g.useEffect(()=>()=>{r.current=null},[]),[t.current,function(e){o.current.push(e);const i=Promise.resolve();r.current=i,i.then(()=>{if(r.current===i){const e=o.current,i=t.current;o.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,i!==t.current&&n({})}})}]}({scrollLeft:0,isHiddenScrollBar:!0}),y=g.useRef({delta:0,x:0}),[v,b]=g.useState(!1),x=g.useRef(null);g.useEffect(()=>()=>{mt.cancel(x.current)},[]);const w=()=>{b(!1)},C=e=>{const{buttons:t}=e||(null==window?void 0:window.event);if(!v||0===t)return void(v&&b(!1));let n=y.current.x+e.pageX-y.current.x-y.current.delta;const r="rtl"===s;n=Math.max(r?h-d:0,Math.min(r?0:d-h,n));(!r||Math.abs(n)+Math.abs(h)<d)&&(i({scrollLeft:n/d*(u+2)}),y.current.x=e.pageX)},k=()=>{mt.cancel(x.current),x.current=mt(()=>{if(!o.current)return;const e=YE(o.current).top,t=e+o.current.offsetHeight,n=l===window?document.documentElement.scrollTop+window.innerHeight:YE(l).top+l.clientHeight;t-Ye()<=n||e>=n-a?m(e=>({...e,isHiddenScrollBar:!0})):m(e=>({...e,isHiddenScrollBar:!1}))})},S=e=>{m(t=>({...t,scrollLeft:e/u*d||0}))};return g.useImperativeHandle(t,()=>({setScrollLeft:S,checkScrollBarVisible:k})),g.useEffect(()=>(document.body.addEventListener(ZE,w,!1),document.body.addEventListener(QE,C,!1),k(),()=>{document.body.removeEventListener(ZE,w),document.body.removeEventListener(QE,C)}),[h,v]),g.useEffect(()=>{if(o.current){const e=[];let t=Ne(o.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(JE,k,!1)}),window.addEventListener(e$,k,!1),window.addEventListener(JE,k,!1),l.addEventListener(JE,k,!1),()=>{e.forEach(e=>{e.removeEventListener(JE,k)}),window.removeEventListener(e$,k),window.removeEventListener(JE,k),l.removeEventListener(JE,k)}}},[l]),g.useEffect(()=>{f.isHiddenScrollBar||m(e=>{const t=o.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),u<=d||!h||f.isHiddenScrollBar?null:g.createElement("div",{style:{height:Ye(),width:d,bottom:a},className:`${c}-sticky-scroll`},g.createElement("div",{onMouseDown:e=>{e.persist(),y.current.delta=e.pageX-f.scrollLeft,y.current.x=0,b(!0),e.preventDefault()},ref:p,className:Kt(`${c}-sticky-scroll-bar`,{[`${c}-sticky-scroll-bar-active`]:v}),style:{width:`${h}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))},n$=g.forwardRef(t$);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)}const o$="rc-table",i$=[],a$={};function l$(){return"No Data"}const s$=(e,t)=>{var n,r;const o={rowKey:"key",prefixCls:o$,emptyText:l$,...e},{prefixCls:i,className:a,rowClassName:l,style:s,classNames:c,styles:u,data:d,rowKey:h,scroll:p,tableLayout:f,direction:m,title:y,footer:v,summary:b,caption:x,id:w,showHeader:C,components:k,emptyText:S,onRow:E,onHeaderRow:$,measureRowRender:T,onScroll:P,internalHooks:M,transformColumns:O,internalRefs:N,tailor:A,getContainerWidth:I,sticky:R,rowHoverable:L=!0}=o,B=d||i$,z=!!B.length,D=M===eE,j=g.useCallback((e,t)=>vt(k,e)||t,[k]),_=g.useMemo(()=>"function"==typeof h?h:e=>e&&e[h],[h]),F=j(["body"]),[H,W,K]=function(){const[e,t]=g.useState(-1),[n,r]=g.useState(-1);return[e,n,g.useCallback((e,n)=>{t(e),r(n)},[])]}(),[U,q,X,Y,Z,Q]=function(e,t,n){const r=function(e){const{expandable:t,...n}=e;let r;return r="expandable"in e?{...n,...t}:n,!1===r.showExpandColumn&&(r.expandIconColumnIndex=-1),r}(e),{expandIcon:o,expandedRowKeys:i,defaultExpandedRowKeys:a,defaultExpandAllRows:l,expandedRowRender:s,onExpand:c,onExpandedRowsChange:u,childrenColumnName:d}=r,h=o||TE,p=d||"children",f=g.useMemo(()=>s?"row":!!(e.expandable&&e.internalHooks===eE&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&"object"==typeof e&&e[p]))&&"nest",[!!s,t]),[m,y]=g.useState(()=>a||(l?function(e,t,n){const r=[];return function e(o){(o||[]).forEach((o,i)=>{r.push(t(o,i)),e(o[n])})}(e),r}(t,n,p):[])),v=g.useMemo(()=>new Set(i||m||[]),[i,m]),b=g.useCallback(e=>{const r=n(e,t.indexOf(e));let o;const i=v.has(r);i?(v.delete(r),o=[...v]):o=[...v,r],y(o),c&&c(!i,e),u&&u(o)},[n,v,t,c,u]);return[r,f,v,h,p,b]}(o,B,_),J=null==p?void 0:p.x,[ee,ne]=g.useState(0),[re,oe,ie]=qE({...o,...U,expandable:!!U.expandedRowRender,columnTitle:U.columnTitle,expandedKeys:X,getRowKey:_,onTriggerExpand:Q,expandIcon:Y,expandIconColumnIndex:U.expandIconColumnIndex,direction:m,scrollWidth:D&&A&&"number"==typeof J?J:null,clientWidth:ee},D?O:null),ae=ie??J,le=g.useMemo(()=>({columns:re,flattenColumns:oe}),[re,oe]),se=g.useRef(null),ce=g.useRef(null),ue=g.useRef(null),de=g.useRef(null);g.useImperativeHandle(t,()=>({nativeElement:se.current,scrollTo:e=>{var t,n,r;if(ue.current instanceof HTMLElement){const{index:n,top:o,key:i,offset:a,align:l="nearest"}=e;if("number"!=typeof(r=o)||Number.isNaN(r)){const e=i??_(B[n]),t=ue.current.querySelector(`[data-row-key="${e}"]`);if(t&&(t.scrollIntoView({block:l}),a)){const e=ue.current;e.scrollTo({top:e.scrollTop+a})}}else null==(t=ue.current)||t.scrollTo({top:o})}else(null==(n=ue.current)?void 0:n.scrollTo)&&ue.current.scrollTo(e)}}));const he=g.useRef(null),[pe,fe]=g.useState(!1),[me,ge]=g.useState(!1),[ye,ve]=g.useState(new Map),be=cE(oe).map(e=>ye.get(e)),xe=g.useMemo(()=>be,[be.join("_")]),we=function(e,t){return g.useMemo(()=>{const n=t.length,r=(n,r,o)=>{const i=[];let a=0;for(let l=n;l!==r;l+=o)i.push(a),t[l].fixed&&(a+=e[l]||0);return i};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}(xe,oe),Ce=p&&uE(p.y),ke=p&&uE(ae)||Boolean(U.fixed),Se=ke&&oe.some(({fixed:e})=>e),Ee=g.useRef(null),{isSticky:$e,offsetHeader:Te,offsetSummary:Pe,offsetScroll:Me,stickyClassName:Oe,container:Ae}=function(e,t){const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:o=0,getContainer:i=()=>GE}="object"==typeof e?e:{},a=i()||GE,l=!!e;return g.useMemo(()=>({isSticky:l,stickyClassName:l?`${t}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:o,container:a}),[l,o,n,r,t,a])}(R,i),Ie=g.useMemo(()=>null==b?void 0:b(B),[b,B]),Re=(Ce||$e)&&g.isValidElement(Ie)&&Ie.type===xE&&Ie.props.fixed;let Le,Be,ze;Ce&&(Be={overflowY:z?"scroll":"auto",maxHeight:p.y}),ke&&(Le={overflowX:"auto"},Ce||(Be={overflowY:"hidden"}),ze={width:!0===ae?"auto":ae,minWidth:"100%"});const De=g.useCallback((e,t)=>{ve(n=>{if(n.get(e)!==t){const r=new Map(n);return r.set(e,t),r}return n})},[]),[je,_e]=function(){const e=g.useRef(null),t=g.useRef(null);function n(){clearTimeout(t.current)}return g.useEffect(()=>n,[]),[function(r){e.current=r,n(),t.current=setTimeout(()=>{e.current=null,t.current=void 0},100)},function(){return e.current}]}();function Fe(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}const[He,We]=g.useState([0,0]),Ke=V(({currentTarget:e,scrollLeft:t})=>{var n;const r="number"==typeof t?t:e.scrollLeft,o=e||a$;_e()&&_e()!==o||(je(o),Fe(r,ce.current),Fe(r,ue.current),Fe(r,he.current),Fe(r,null==(n=Ee.current)?void 0:n.setScrollLeft));const i=e||ce.current;if(i){const e=D&&A&&"number"==typeof ae?ae:i.scrollWidth,t=i.clientWidth,n=Math.abs(r);if(We(r=>{const o=[n,e-t];return rt(r,o)?r:o}),e===t)return fe(!1),void ge(!1);fe(n>0),ge(n<e-t-1)}}),Ve=V(e=>{Ke(e),null==P||P(e)}),Ue=()=>{var e;ke&&ue.current?Ke({currentTarget:Ne(ue.current),scrollLeft:null==(e=ue.current)?void 0:e.scrollLeft}):(fe(!1),ge(!1))},qe=e=>{var t,n;null==(t=Ee.current)||t.checkScrollBarVisible();let r=e??(null==(n=se.current)?void 0:n.offsetWidth)??0;D&&I&&se.current&&(r=I(se.current,r)||r),r!==ee&&(Ue(),ne(r))};G(()=>{ke&&qe()},[ke]);const Ge=g.useRef(!1);g.useEffect(()=>{Ge.current&&Ue()},[ke,d,re.length]),g.useEffect(()=>{Ge.current=!0},[]);const[Xe,Ye]=g.useState(0);G(()=>{A&&D||(ue.current instanceof Element?Ye(Ze(ue.current).width):Ye(Ze(de.current).width))},[]),g.useEffect(()=>{D&&N&&(N.body.current=ue.current)});const Qe=g.useCallback(e=>g.createElement(g.Fragment,null,g.createElement(HE,e),"top"===Re&&g.createElement(wE,e,Ie)),[Re,Ie]),Je=g.useCallback(e=>g.createElement(wE,e,Ie),[Ie]),et=j(["table"],"table"),tt=g.useMemo(()=>f||(Se?"max-content"===ae?"auto":"fixed":Ce||$e||oe.some(({ellipsis:e})=>e)?"fixed":"auto"),[Ce,Se,oe,f,$e]);let nt;const ot={colWidths:xe,columCount:oe.length,stickyOffsets:we,onHeaderRow:$,fixHeader:Ce,scroll:p},it=g.useMemo(()=>z?null:"function"==typeof S?S():S,[z,S]),at=g.createElement(RE,{data:B,measureColumnWidth:Ce||ke||$e}),lt=g.createElement(zE,{colWidths:oe.map(({width:e})=>e),columns:oe}),st=null!=x?g.createElement("caption",{className:`${i}-caption`},x):void 0,ut=ct(o,{data:!0}),dt=ct(o,{aria:!0});if(Ce||$e){let e;"function"==typeof F?(e=F(B,{scrollbarSize:Xe,ref:ue,onScroll:Ke}),ot.colWidths=oe.map(({width:e},t)=>{const n=t===oe.length-1?e-Xe:e;return"number"!=typeof n||Number.isNaN(n)?0:n})):e=g.createElement("div",{style:{...Le,...Be},onScroll:Ve,ref:ue,className:`${i}-body`},g.createElement(et,r$({style:{...ze,tableLayout:tt}},dt),st,lt,at,!Re&&Ie&&g.createElement(wE,{stickyOffsets:we,flattenColumns:oe},Ie)));const t={noData:!B.length,maxContentScroll:ke&&"max-content"===ae,...ot,...le,direction:m,stickyClassName:Oe,scrollX:ae,tableLayout:tt,onScroll:Ke};nt=g.createElement(g.Fragment,null,!1!==C&&g.createElement(jE,r$({},t,{stickyTopOffset:Te,className:`${i}-header`,ref:ce,colGroup:lt}),Qe),e,Re&&"top"!==Re&&g.createElement(jE,r$({},t,{stickyBottomOffset:Pe,className:`${i}-summary`,ref:he,colGroup:lt}),Je),$e&&ue.current&&ue.current instanceof Element&&g.createElement(n$,{ref:Ee,offsetScroll:Me,scrollBodyRef:ue,onScroll:Ke,container:Ae,direction:m}))}else nt=g.createElement("div",{style:{...Le,...Be,...null==u?void 0:u.content},className:Kt(`${i}-content`,null==c?void 0:c.content),onScroll:Ke,ref:ue},g.createElement(et,r$({style:{...ze,tableLayout:tt}},dt),st,lt,!1!==C&&g.createElement(HE,r$({},ot,le)),at,Ie&&g.createElement(wE,{stickyOffsets:we,flattenColumns:oe},Ie)));const ht={...s};$e&&(ht["--columns-count"]=oe.length);let pt=g.createElement("div",r$({className:Kt(i,a,{[`${i}-rtl`]:"rtl"===m,[`${i}-fix-start-shadow`]:ke,[`${i}-fix-end-shadow`]:ke,[`${i}-fix-start-shadow-show`]:ke&&pe,[`${i}-fix-end-shadow-show`]:ke&&me,[`${i}-layout-fixed`]:"fixed"===f,[`${i}-fixed-header`]:Ce,[`${i}-fixed-column`]:Se,[`${i}-scroll-horizontal`]:ke,[`${i}-has-fix-start`]:null==(n=oe[0])?void 0:n.fixed,[`${i}-has-fix-end`]:"end"===(null==(r=oe[oe.length-1])?void 0:r.fixed)}),style:ht,id:w,ref:se},ut),y&&g.createElement(XE,{className:Kt(`${i}-title`,null==c?void 0:c.title),style:null==u?void 0:u.title},y(B)),g.createElement("div",{ref:de,className:Kt(`${i}-container`,null==c?void 0:c.section),style:null==u?void 0:u.section},nt),v&&g.createElement(XE,{className:Kt(`${i}-footer`,null==c?void 0:c.footer),style:null==u?void 0:u.footer},v(B)));ke&&(pt=g.createElement(Ht,{onResize:({offsetWidth:e})=>qe(e)},pt));const ft=function(e,t){const n=g.useMemo(()=>e.map((n,r)=>yE(r,r,e,t)),[e,t]);return te(()=>n,[n],(e,t)=>!rt(e,t))}(oe,we),mt=g.useMemo(()=>({scrollX:ae,scrollInfo:He,classNames:c,styles:u,prefixCls:i,getComponent:j,scrollbarSize:Xe,direction:m,fixedInfoList:ft,isSticky:$e,componentWidth:ee,fixHeader:Ce,fixColumn:Se,horizonScroll:ke,tableLayout:tt,rowClassName:l,expandedRowClassName:U.expandedRowClassName,expandIcon:Y,expandableType:q,expandRowByClick:U.expandRowByClick,expandedRowRender:U.expandedRowRender,expandedRowOffset:U.expandedRowOffset,onTriggerExpand:Q,expandIconColumnIndex:U.expandIconColumnIndex,indentSize:U.indentSize,allColumnsFixedLeft:oe.every(e=>"start"===e.fixed),emptyNode:it,columns:re,flattenColumns:oe,onColumnResize:De,colWidths:xe,hoverStartRow:H,hoverEndRow:W,onHover:K,rowExpandable:U.rowExpandable,onRow:E,getRowKey:_,expandedKeys:X,childrenColumnName:Z,rowHoverable:L,measureRowRender:T}),[ae,He,c,u,i,j,Xe,m,ft,$e,ee,Ce,Se,ke,tt,l,U.expandedRowClassName,Y,q,U.expandRowByClick,U.expandedRowRender,U.expandedRowOffset,Q,U.expandIconColumnIndex,U.indentSize,it,re,oe,De,xe,H,W,K,U.rowExpandable,E,_,X,Z,L,T]);return g.createElement(lE.Provider,{value:mt},pt)},c$=g.forwardRef(s$),u$=e=>oE(c$,e),d$=u$();d$.EXPAND_COLUMN=JS,d$.INTERNAL_HOOKS=eE,d$.Column=function(e){return null},d$.ColumnGroup=function(e){return null},d$.Summary=CE;const h$=tE(null),p$=tE(null);function f$(){return f$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f$.apply(this,arguments)}const m$=e=>{const{rowInfo:t,column:n,colIndex:r,indent:o,index:i,component:a,renderIndex:l,record:s,style:c,className:u,inverse:d,getHeight:h}=e,{render:p,dataIndex:f,className:m,width:y}=n,{columnsOffset:v}=nE(p$,["columnsOffset"]),{key:b,fixedInfo:x,appendCellNode:w,additionalCellProps:C}=OE(t,n,r,o,i),{style:k,colSpan:S=1,rowSpan:E=1}=C,$=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,S,v),T={...k,...c,flex:`0 0 ${$}px`,width:`${$}px`,marginRight:S>1?y-$:0,pointerEvents:"auto"},P=g.useMemo(()=>d?E<=1:0===S||0===E||E>1,[E,S,d]);P?T.visibility="hidden":d&&(T.height=null==h?void 0:h(E));const M=P?()=>null:p,O={};return 0!==E&&0!==S||(O.rowSpan=1,O.colSpan=1),g.createElement(fE,f$({className:Kt(m,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:b,record:s,index:i,renderIndex:l,dataIndex:f,render:M,shouldCellUpdate:n.shouldCellUpdate},x,{appendNode:w,additionalProps:{...C,style:T,...O}}))};function g$(){return g$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g$.apply(this,arguments)}const y$=iE(g.forwardRef((e,t)=>{var n,r;const{data:o,index:i,className:a,rowKey:l,style:s,extra:c,getHeight:u,...d}=e,{record:h,indent:p,index:f}=o,{scrollX:m,flattenColumns:y,prefixCls:v,fixColumn:b,componentWidth:x,classNames:w,styles:C}=nE(lE,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX","classNames","styles"]),{getComponent:k}=nE(h$,["getComponent"]),S=EE(h,l,i,p),E=k(["body","row"],"div"),$=k(["body","cell"],"div"),{rowSupportExpand:T,expanded:P,rowProps:M,expandedRowRender:O,expandedRowClassName:N}=S,A=PE(N,h,i,p);let I;if(T&&P){const e=O(h,i,p+1,P);let t={};b&&(t={style:{"--virtual-width":`${x}px`}});const n=`${v}-expanded-row-cell`;I=g.createElement(E,{className:Kt(`${v}-expanded-row`,`${v}-expanded-row-level-${p+1}`,A)},g.createElement(fE,{component:$,prefixCls:v,className:Kt(n,{[`${n}-fixed`]:b}),additionalProps:t},e))}const R={...s,width:m};c&&(R.position="absolute",R.pointerEvents="none");const L=g.createElement(E,g$({},M,d,{"data-row-key":l,ref:T?null:t,className:Kt(a,`${v}-row`,null==M?void 0:M.className,null==(n=null==w?void 0:w.body)?void 0:n.row,{[A]:p>=1,[`${v}-row-extra`]:c}),style:{...R,...null==M?void 0:M.style,...null==(r=null==C?void 0:C.body)?void 0:r.row}}),y.map((e,t)=>{var n,r;return g.createElement(m$,{key:t,className:null==(n=null==w?void 0:w.body)?void 0:n.cell,style:null==(r=null==C?void 0:C.body)?void 0:r.cell,component:$,rowInfo:S,column:e,colIndex:t,indent:p,index:i,renderIndex:f,record:h,inverse:c,getHeight:u})}));return T?g.createElement("div",{ref:t},L,I):L})),v$={start:"top",end:"bottom",nearest:"auto"},b$=iE(g.forwardRef((e,t)=>{const{data:n,onScroll:r}=e,{flattenColumns:o,onColumnResize:i,getRowKey:a,expandedKeys:l,prefixCls:s,childrenColumnName:c,scrollX:u,direction:d}=nE(lE,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),{sticky:h,scrollY:p,listItemHeight:f,getComponent:m,onScroll:y}=nE(h$),v=g.useRef(null),b=SE(n,c,l,a),x=g.useMemo(()=>{let e=0;return o.map(({width:t,minWidth:n,key:r})=>{const o=Math.max(t||0,n||0);return e+=o,[r,o,e]})},[o]),w=g.useMemo(()=>x.map(e=>e[2]),[x]);g.useEffect(()=>{x.forEach(([e,t])=>{i(e,t)})},[x]),g.useImperativeHandle(t,()=>{var e;const t={scrollTo:e=>{var t;const{align:n,offset:r,...o}=e,i=v$[n]??(r?"top":"auto");null==(t=v.current)||t.scrollTo({...o,offset:r,align:i})},nativeElement:null==(e=v.current)?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:()=>{var e;return(null==(e=v.current)?void 0:e.getScrollInfo().x)||0},set:e=>{var t;null==(t=v.current)||t.scrollTo({left:e})}}),Object.defineProperty(t,"scrollTop",{get:()=>{var e;return(null==(e=v.current)?void 0:e.getScrollInfo().y)||0},set:e=>{var t;null==(t=v.current)||t.scrollTo({top:e})}}),t});const C=(e,t)=>{var n;const r=null==(n=b[t])?void 0:n.record,{onCell:o}=e;if(o){const e=o(r,t);return(null==e?void 0:e.rowSpan)??1}return 1},k=g.useMemo(()=>({columnsOffset:w}),[w]),S=`${s}-tbody`,E=m(["body","wrapper"]),$={};return h&&($.position="sticky",$.bottom=0,"object"==typeof h&&h.offsetScroll&&($.bottom=h.offsetScroll)),g.createElement(p$.Provider,{value:k},g.createElement(wg,{fullHeight:!1,ref:v,prefixCls:`${S}-virtual`,styles:{horizontalScrollBar:$},className:S,height:p,itemHeight:f||24,data:b,itemKey:e=>a(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{var t;r({currentTarget:null==(t=v.current)?void 0:t.nativeElement,scrollLeft:e})},onScroll:y,extraRender:e=>{const{start:t,end:n,getSize:r,offsetY:i}=e;if(n<0)return null;let l=o.filter(e=>0===C(e,t)),s=t;for(let e=t;e>=0;e-=1)if(l=l.filter(t=>0===C(t,e)),!l.length){s=e;break}let c=o.filter(e=>1!==C(e,n)),u=n;for(let e=n;e<b.length;e+=1)if(c=c.filter(t=>1!==C(t,e)),!c.length){u=Math.max(e-1,n);break}const d=[];for(let e=s;e<=u;e+=1){b[e]&&(o.some(t=>C(t,e)>1)&&d.push(e))}return d.map(e=>{const t=b[e],n=a(t.record,e),o=r(n);return g.createElement(y$,{key:e,data:t,rowKey:n,index:e,style:{top:-i+o.top},extra:!0,getHeight:t=>{const o=e+t-1,i=b[o];if(!i||!i.record){const e=Math.min(o,b.length-1),t=b[e],i=a(t.record,e),l=r(n,i);return l.bottom-l.top}const l=a(i.record,o),s=r(n,l);return s.bottom-s.top}})})}},(e,t,n)=>{const r=a(e.record,t);return g.createElement(y$,{data:e,rowKey:r,index:t,style:n.style})}))}));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)}const w$=(e,t)=>{const{ref:n,onScroll:r}=t;return g.createElement(b$,{ref:n,data:e,onScroll:r})},C$=(e,t)=>{const{data:n,columns:r,scroll:o,sticky:i,prefixCls:a=o$,className:l,listItemHeight:s,components:c,onScroll:u}=e;let{x:d,y:h}=o||{};"number"!=typeof d&&(d=1),"number"!=typeof h&&(h=500);const p=V((e,t)=>vt(c,e)||t),f=V(u),m=g.useMemo(()=>({sticky:i,scrollY:h,listItemHeight:s,getComponent:p,onScroll:f}),[i,h,s,p,f]);return g.createElement(h$.Provider,{value:m},g.createElement(d$,x$({},e,{className:Kt(l,`${a}-virtual`),scroll:{...o,x:d},components:{...c,body:(null==n?void 0:n.length)?w$:void 0},columns:r,internalHooks:eE,tailor:!0,ref:t})))},k$=g.forwardRef(C$),S$=e=>oE(k$,e);S$();const E$=g.createContext(null),$$=g.createContext({}),T$=({prefixCls:e,level:t,isStart:n,isEnd:r})=>{const o=`${e}-indent-unit`,i=[];for(let e=0;e<t;e+=1)i.push(g.createElement("span",{key:e,className:Kt(o,{[`${o}-start`]:n[e],[`${o}-end`]:r[e]})}));return g.createElement("span",{"aria-hidden":"true",className:`${e}-indent`},i)},P$=g.memo(T$);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)}const O$="open",N$="close",A$="---",I$=e=>{var t,n;const{eventKey:r,className:o,style:i,dragOver:a,dragOverGapTop:l,dragOverGapBottom:s,isLeaf:c,isStart:u,isEnd:d,expanded:h,selected:p,checked:f,halfChecked:m,loading:g,domRef:v,active:b,data:x,onMouseMove:w,selectable:C,treeId:k,...S}=e,E=Q(k,r),$=y.useContext(E$),{classNames:T,styles:P}=$||{},M=y.useContext($$),O=y.useRef(null),[N,A]=y.useState(!1),I=!!($.disabled||e.disabled||(null==(t=M.nodeDisabled)?void 0:t.call(M,x))),R=y.useMemo(()=>!(!$.checkable||!1===e.checkable)&&$.checkable,[$.checkable,e.checkable]),L=t=>{I||R&&!e.disableCheckbox&&$.onNodeCheck(t,Cw(e),!f)},B=y.useMemo(()=>"boolean"==typeof C?C:$.selectable,[C,$.selectable]),z=t=>{$.onNodeClick(t,Cw(e)),B?(t=>{I||$.onNodeSelect(t,Cw(e))})(t):L(t)},D=t=>{$.onNodeDoubleClick(t,Cw(e))},j=t=>{$.onNodeMouseEnter(t,Cw(e))},_=t=>{$.onNodeMouseLeave(t,Cw(e))},F=t=>{$.onNodeContextMenu(t,Cw(e))},H=y.useMemo(()=>!(!$.draggable||$.draggable.nodeDraggable&&!$.draggable.nodeDraggable(x)),[$.draggable,x]),W=t=>{g||$.onNodeExpand(t,Cw(e))},K=y.useMemo(()=>{const{children:e}=pw($.keyEntities,r)||{};return Boolean((e||[]).length)},[$.keyEntities,r]),V=y.useMemo(()=>xw(c,$.loadData,K,e.loaded),[c,$.loadData,K,e.loaded]);y.useEffect(()=>{g||"function"!=typeof $.loadData||!h||V||e.loaded||$.onNodeLoad(Cw(e))},[g,$.loadData,$.onNodeLoad,h,V,e]);const U=y.useMemo(()=>{var e;return(null==(e=$.draggable)?void 0:e.icon)?y.createElement("span",{className:`${$.prefixCls}-draggable-icon`},$.draggable.icon):null},[$.draggable]),q=t=>{const n=e.switcherIcon||$.switcherIcon;return"function"==typeof n?n({...e,isLeaf:t}):n},G=y.useMemo(()=>{if(!R)return null;const t="boolean"!=typeof R?R:null;return y.createElement("span",{className:Kt(`${$.prefixCls}-checkbox`,{[`${$.prefixCls}-checkbox-checked`]:f,[`${$.prefixCls}-checkbox-indeterminate`]:!f&&m,[`${$.prefixCls}-checkbox-disabled`]:I||e.disableCheckbox}),onClick:L,role:"checkbox","aria-checked":m?"mixed":f,"aria-disabled":I||e.disableCheckbox,"aria-labelledby":E},t)},[R,f,m,I,e.disableCheckbox,E]),X=y.useMemo(()=>V?null:h?O$:N$,[V,h]),Y=y.useMemo(()=>y.createElement("span",{className:Kt(null==T?void 0:T.itemIcon,`${$.prefixCls}-iconEle`,`${$.prefixCls}-icon__${X||"docu"}`,{[`${$.prefixCls}-icon_loading`]:g}),style:null==P?void 0:P.itemIcon}),[$.prefixCls,X,g]),Z=y.useMemo(()=>{const t=Boolean($.draggable);return!e.disabled&&t&&$.dragOverNodeKey===r?$.dropIndicatorRender({dropPosition:$.dropPosition,dropLevelOffset:$.dropLevelOffset,indent:$.indent,prefixCls:$.prefixCls,direction:$.direction}):null},[$.dropPosition,$.dropLevelOffset,$.indent,$.prefixCls,$.direction,$.draggable,$.dragOverNodeKey,$.dropIndicatorRender]),J=y.useMemo(()=>{const{title:t=A$}=e,n=`${$.prefixCls}-node-content-wrapper`;let r,o;if($.showIcon){const t=e.icon||$.icon;r=t?y.createElement("span",{className:Kt(null==T?void 0:T.itemIcon,`${$.prefixCls}-iconEle`,`${$.prefixCls}-icon__customize`),style:null==P?void 0:P.itemIcon},"function"==typeof t?t(e):t):Y}else $.loadData&&g&&(r=Y);return o="function"==typeof t?t(x):$.titleRender?$.titleRender(x):t,y.createElement("span",{ref:O,title:"string"==typeof t?t:"",className:Kt(n,`${n}-${X||"normal"}`,{[`${$.prefixCls}-node-selected`]:!I&&(p||N)}),onMouseEnter:j,onMouseLeave:_,onContextMenu:F,onClick:z,onDoubleClick:D},r,y.createElement("span",{className:Kt(`${$.prefixCls}-title`,null==T?void 0:T.itemTitle),style:null==P?void 0:P.itemTitle},o),Z)},[$.prefixCls,$.showIcon,e,$.icon,Y,$.titleRender,x,X,j,_,F,z,D]),ee=ct(S,{aria:!0,data:!0}),{level:te}=pw($.keyEntities,r)||{},ne=d[d.length-1],re=!I&&H,oe=$.draggingNodeKey===r;return y.createElement("div",M$({ref:v,role:"treeitem",id:E,"aria-expanded":V?void 0:h,"aria-selected":B&&!I?p:void 0,"aria-checked":R&&!I?m?"mixed":f:void 0,"aria-disabled":I,className:Kt(o,`${$.prefixCls}-treenode`,null==T?void 0:T.item,{[`${$.prefixCls}-treenode-disabled`]:I,[`${$.prefixCls}-treenode-switcher-${h?"open":"close"}`]:!c,[`${$.prefixCls}-treenode-checkbox-checked`]:f,[`${$.prefixCls}-treenode-checkbox-indeterminate`]:m,[`${$.prefixCls}-treenode-selected`]:p,[`${$.prefixCls}-treenode-loading`]:g,[`${$.prefixCls}-treenode-active`]:b,[`${$.prefixCls}-treenode-leaf-last`]:ne,[`${$.prefixCls}-treenode-draggable`]:H,dragging:oe,"drop-target":$.dropTargetKey===r,"drop-container":$.dropContainerKey===r,"drag-over":!I&&a,"drag-over-gap-top":!I&&l,"drag-over-gap-bottom":!I&&s,"filter-node":null==(n=$.filterTreeNode)?void 0:n.call($,Cw(e)),[`${$.prefixCls}-treenode-leaf`]:V}),style:{...i,...null==P?void 0:P.item},draggable:re,onDragStart:re?t=>{t.stopPropagation(),A(!0),$.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch{}}:void 0,onDragEnter:H?t=>{t.preventDefault(),t.stopPropagation(),$.onNodeDragEnter(t,e)}:void 0,onDragOver:H?t=>{t.preventDefault(),t.stopPropagation(),$.onNodeDragOver(t,e)}:void 0,onDragLeave:H?t=>{t.stopPropagation(),$.onNodeDragLeave(t,e)}:void 0,onDrop:H?t=>{t.preventDefault(),t.stopPropagation(),A(!1),$.onNodeDrop(t,e)}:void 0,onDragEnd:H?t=>{t.stopPropagation(),A(!1),$.onNodeDragEnd(t,e)}:void 0,onMouseMove:w},ee),y.createElement(P$,{prefixCls:$.prefixCls,level:te,isStart:u,isEnd:d}),U,(()=>{if(V){const e=q(!0);return!1!==e?y.createElement("span",{className:Kt(`${$.prefixCls}-switcher`,`${$.prefixCls}-switcher-noop`,null==T?void 0:T.itemSwitcher),style:null==P?void 0:P.itemSwitcher},e):null}const e=q(!1);return!1!==e?y.createElement("span",{onClick:W,className:Kt(`${$.prefixCls}-switcher`,`${$.prefixCls}-switcher_${h?O$:N$}`,null==T?void 0:T.itemSwitcher),style:null==P?void 0:P.itemSwitcher},e):null})(),G,J)};function R$(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function L$(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function B$(e){return e.split("-")}function z$(e,t){const n=[];return function e(t=[]){t.forEach(({key:t,children:r})=>{n.push(t),e(r)})}(pw(t,e).children),n}function D$(e){if(e.parent){const t=B$(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function j$(e,t,n,r,o,i,a,l,s,c){var u;const{clientX:d,clientY:h}=e,{top:p,height:f}=e.target.getBoundingClientRect(),m=(("rtl"===c?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,g=s.filter(e=>{var t,n;return null==(n=null==(t=l[e])?void 0:t.children)?void 0:n.length});let y=pw(l,n.eventKey);if(h<p+f/2){const e=a.findIndex(e=>e.key===y.key),t=a[e<=0?0:e-1].key;y=pw(l,t)}const v=y.key,b=y,x=y.key;let w=0,C=0;if(!g.includes(v))for(let e=0;e<m&&D$(y);e+=1)y=y.parent,C+=1;const k=t.data,S=y.node;let E=!0;return function(e){const t=B$(e.pos);return 0===Number(t[t.length-1])}(y)&&0===y.level&&h<p+f/2&&i({dragNode:k,dropNode:S,dropPosition:-1})&&y.key===n.eventKey?w=-1:(b.children||[]).length&&g.includes(x)?i({dragNode:k,dropNode:S,dropPosition:0})?w=0:E=!1:0===C?m>-1.5?i({dragNode:k,dropNode:S,dropPosition:1})?w=1:E=!1:i({dragNode:k,dropNode:S,dropPosition:0})?w=0:i({dragNode:k,dropNode:S,dropPosition:1})?w=1:E=!1:i({dragNode:k,dropNode:S,dropPosition:1})?w=1:E=!1,{dropPosition:w,dropLevelOffset:C,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:x,dropContainerKey:0===w?null:(null==(u=y.parent)?void 0:u.key)||null,dropAllowed:E}}function _$(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function F$(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return nt(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function H$(e,t){const n=new Set;function r(e){if(n.has(e))return;const o=pw(t,e);if(!o)return;n.add(e);const{parent:i,node:a}=o;a.disabled||i&&r(i.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}I$.isTreeNode=1;const W$={},K$="SELECT_ALL",V$="SELECT_INVERT",U$="SELECT_NONE",q$=[],G$=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),Xa(t)&&e in t&&G$(e,t[e],n)}),n),X$=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,getTitleCheckboxProps:a,onChange:l,onSelect:s,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:h,columnWidth:p,type:f,selections:m,fixed:y,renderCell:v,hideSelectAll:b,checkStrictly:x=!0}=t||{},{prefixCls:w,data:C,pageData:k,getRecordByKey:S,getRowKey:E,expandType:$,childrenColumnName:T,locale:P,getPopupContainer:M}=e,O=Nt(),[N,A]=(e=>{const[t,n]=g.useState(null);return[g.useCallback((r,o,i)=>{const a=t??r,l=Math.min(a||0,r),s=Math.max(a||0,r),c=o.slice(l,s+1).map(e),u=c.some(e=>!i.has(e)),d=[];return c.forEach(e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))}),n(u?s:null),d},[t]),n]})(e=>e),[I,R]=Y(o||q$,r),L=I??q$,B=g.useRef(new Map),z=g.useCallback(e=>{if(n){const t=new Map;e.forEach(e=>{let n=S(e);!n&&B.current.has(e)&&(n=B.current.get(e)),t.set(e,n)}),B.current=t}},[S,n]);g.useEffect(()=>{z(L)},[L,z]);const D=g.useMemo(()=>G$(T,k),[T,k]),{keyEntities:j}=g.useMemo(()=>{if(x)return{keyEntities:null};let e=C;if(n){const t=new Set(D.map(E)),n=Array.from(B.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(qt(e),qt(n))}return bw(e,{externalGetKey:E,childrenPropName:T})},[C,E,x,T,n,D]),_=g.useMemo(()=>{const e=new Map;return D.forEach((t,n)=>{const r=E(t,n),o=(i?i(t):null)||{};e.set(r,o)}),e},[D,E,i]),F=g.useCallback(e=>{const t=E(e);let n;return n=_.has(t)?_.get(E(e)):i?i(e):void 0,!!(null==n?void 0:n.disabled)},[_,E]),[H,W]=g.useMemo(()=>{if(x)return[L,[]];const{checkedKeys:e,halfCheckedKeys:t}=Ew(L,!0,j,F);return[e||[],t]},[L,x,j,F]),K=g.useMemo(()=>{const e="radio"===f?H.slice(0,1):H;return new Set(e)},[H,f]),V=g.useMemo(()=>"radio"===f?new Set:new Set(W),[W,f]);g.useEffect(()=>{t||R(q$)},[!!t]);const U=g.useCallback((e,t)=>{let r,o;z(e),n?(r=e,o=e.map(e=>B.current.get(e))):(r=[],o=[],e.forEach(e=>{const t=S(e);void 0!==t&&(r.push(e),o.push(t))})),R(r),null==l||l(r,o,{type:t})},[R,S,l,n]),q=g.useCallback((e,t,n,r)=>{if(s){const o=n.map(S);s(S(e),t,o,r)}U(n,"single")},[s,S,U]),G=g.useMemo(()=>{if(!m||b)return null;return(!0===m?[K$,V$,U$]:m).map(e=>{let t;return t=e===K$?{key:"all",text:P.selectionAll,onSelect(){U(C.reduce((e,t,n)=>{const r=E(t,n),o=_.get(r);return(null==o?void 0:o.disabled)&&!K.has(r)||e.push(r),e},[]),"all")}}:e===V$?{key:"invert",text:P.selectInvert,onSelect(){const e=new Set(K);k.forEach((t,n)=>{const r=E(t,n),o=_.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});const t=Array.from(e);u&&(O.deprecated(!1,"onSelectInvert","onChange"),u(t)),U(t,"invert")}}:e===U$?{key:"none",text:P.selectNone,onSelect(){null==d||d(),U(Array.from(K).filter(e=>{const t=_.get(e);return null==t?void 0:t.disabled}),"none")}}:e,{...t,onSelect:e=>{var n;null==(n=t.onSelect)||n.call(t,e),A(null)}}})},[m,b,P.selectionAll,P.selectInvert,P.selectNone,_,K,C,k,E,u,U]);return[g.useCallback(e=>{var n;if(!t)return e.filter(e=>e!==W$);let r=qt(e);const o=new Set(K),i=D.reduce((e,t,n)=>{const r=E(t,n);return _.get(r).disabled||e.push(r),e},[]),l=i.every(e=>o.has(e)),s=i.some(e=>o.has(e));let u,d,C;if("radio"!==f){let e;if(G){const t={getPopupContainer:M,items:G.map((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:n??t,onClick:()=>{null==o||o(i)},label:r}})};e=g.createElement("div",{className:`${w}-selection-extra`},g.createElement($C,{menu:t,getPopupContainer:M},g.createElement("span",null,g.createElement(sy,null))))}const t=D.reduce((e,t,n)=>{const r=E(t,n),i=_.get(r)||{},a={checked:o.has(r),...i};return a.disabled&&e.push(a),e},[]),n=!!t.length&&t.length===D.length,r=n&&t.every(({checked:e})=>e),h=n&&t.some(({checked:e})=>e),p=(null==a?void 0:a())||{},{onChange:f,disabled:m}=p;d=g.createElement(Aw,{"aria-label":e?"Custom selection":"Select all",...p,checked:n?r:!!D.length&&l,indeterminate:n?!r&&h:!l&&s,onChange:e=>{(()=>{const e=[];l?i.forEach(t=>{o.delete(t),e.push(t)}):i.forEach(t=>{o.has(t)||(o.add(t),e.push(t))});const t=Array.from(o);null==c||c(!l,t.map(S),e.map(S)),U(t,"all"),A(null)})(),null==f||f(e)},disabled:m??(0===D.length||n),skipGroup:!0}),u=!b&&g.createElement("div",{className:`${w}-selection`},d,e)}C="radio"===f?(e,t,n)=>{const r=E(t,n),i=o.has(r),a=_.get(r);return{node:g.createElement(Rx,{...a,checked:i,onClick:e=>{var t;e.stopPropagation(),null==(t=null==a?void 0:a.onClick)||t.call(a,e)},onChange:e=>{var t;o.has(r)||q(r,!0,[r],e.nativeEvent),null==(t=null==a?void 0:a.onChange)||t.call(a,e)}}),checked:i}}:(e,t,n)=>{const r=E(t,n),a=o.has(r),l=V.has(r),s=_.get(r);let c;return c="nest"===$?l:(null==s?void 0:s.indeterminate)??l,{node:g.createElement(Aw,{...s,indeterminate:c,checked:a,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null==(t=null==s?void 0:s.onClick)||t.call(s,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:l}=n,c=i.indexOf(r),u=K.size>0&&i.some(e=>K.has(e));if(l&&x&&u){const e=N(c,i,o),t=Array.from(o);null==h||h(!a,t.map(S),e.map(S)),U(t,"multiple")}else{const e=H;if(x){const t=a?R$(e,r):L$(e,r);q(r,!a,t,n)}else{const t=Ew([].concat(qt(e),[r]),!0,j,F),{checkedKeys:o,halfCheckedKeys:i}=t;let l=o;if(a){const e=new Set(o);e.delete(r),l=Ew(Array.from(e),{halfCheckedKeys:i},j,F).checkedKeys}q(r,!a,l,n)}}A(a?null:c),null==(t=null==s?void 0:s.onChange)||t.call(s,e)}}),checked:a}};if(!r.includes(W$))if(0===r.findIndex(e=>{var t;return"EXPAND_COLUMN"===(null==(t=e[LE])?void 0:t.columnType)})){const[e,...t]=r;r=[e,W$].concat(qt(t))}else r=[W$].concat(qt(r));const k=r.indexOf(W$);r=r.filter((e,t)=>e!==W$||t===k);const T=r[k-1],P=r[k+1];let O=y;void 0===O&&(void 0!==(null==P?void 0:P.fixed)?O=P.fixed:void 0!==(null==T?void 0:T.fixed)&&(O=T.fixed)),O&&T&&"EXPAND_COLUMN"===(null==(n=T[LE])?void 0:n.columnType)&&void 0===T.fixed&&(T.fixed=O);const I=Kt(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:m&&"checkbox"===f}),R={fixed:O,width:p,className:`${w}-selection-column`,title:(null==t?void 0:t.columnTitle)?Ya(t.columnTitle)?t.columnTitle(d):t.columnTitle:u,render:(e,t,n)=>{const{node:r,checked:o}=C(e,t,n);return v?v(o,t,n,r):r},onCell:t.onCell,align:t.align,[LE]:{className:I}};return r.map(e=>e===W$?R:e)},[E,D,t,H,K,V,p,G,$,_,h,q,F]),K]};const Y$=(e,t)=>"key"in e&&Ua(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Z$(e,t){return t?`${t}-${e}`:`${e}`}const Q$=(e,t)=>Ya(e)?e(t):e;var J$={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 eT(){return eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eT.apply(this,arguments)}const tT=(e,t)=>g.createElement(ji,eT({},e,{ref:t,icon:J$})),nT=g.forwardRef(tT);function rT(){return rT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rT.apply(this,arguments)}const oT=g.forwardRef((e,t)=>{const{className:n,style:r,motion:o,motionNodes:i,motionType:a,onMotionStart:l,onMotionEnd:s,active:c,treeNodeRequiredProps:u,...d}=e,[h,p]=g.useState(!0),{prefixCls:f}=g.useContext(E$),m=i&&"hide"!==a;G(()=>{i&&m!==h&&p(m)},[i]);const y=g.useRef(!1),v=()=>{i&&!y.current&&(y.current=!0,s())};!function(e,t){const[n,r]=g.useState(!1);G(()=>{if(n)return e(),()=>{t()}},[n]),G(()=>(r(!0),()=>{r(!1)}),[])}(()=>{i&&l()},v);const b=e=>{m===e&&v()};return i?g.createElement(Ba,rT({ref:t,visible:h},o,{motionAppear:"show"===a,onVisibleChanged:b}),({className:e,style:t},n)=>g.createElement("div",{ref:n,className:Kt(`${f}-treenode-motion`,e),style:t},i.map(e=>{const{data:{...t},title:n,key:r,isStart:o,isEnd:i}=e;delete t.children;const a=ww(r,u);return g.createElement(I$,rT({},t,a,{title:n,active:c,data:e.data,key:r,isStart:o,isEnd:i}))}))):g.createElement(I$,rT({domRef:t,className:n,style:r},d,{active:c}))});function iT(e,t,n){const r=e.findIndex(e=>e.key===n),o=e[r+1],i=t.findIndex(e=>e.key===n);if(o){const e=t.findIndex(e=>e.key===o.key);return t.slice(i+1,e)}return t.slice(i+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)}const lT=`RC_TREE_MOTION_${Math.random()}`,sT={key:lT},cT={key:lT,level:0,index:0,pos:"0",node:sT,nodes:[sT]},uT={parent:null,children:[],pos:cT.pos,data:sT,title:null,key:lT,isStart:[],isEnd:[]};function dT(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function hT(e){const{key:t,pos:n}=e;return mw(t,n)}const pT=g.forwardRef((e,t)=>{const{prefixCls:n,data:r,selectable:o,checkable:i,expandedKeys:a,selectedKeys:l,checkedKeys:s,loadedKeys:c,loadingKeys:u,halfCheckedKeys:d,keyEntities:h,disabled:p,dragging:f,dragOverNodeKey:m,dropPosition:y,motion:v,height:b,itemHeight:x,virtual:w,scrollWidth:C,focusable:k,activeItem:S,tabIndex:E,onKeyDown:$,onFocus:T,onBlur:P,onMouseDown:M,onActiveChange:O,onListChangeStart:N,onListChangeEnd:A,...I}=e,R=ee(),L=g.useRef(null),B=g.useRef(null);g.useImperativeHandle(t,()=>({scrollTo:e=>{L.current.scrollTo(e)},getIndentWidth:()=>B.current.offsetWidth}));const[z,D]=g.useState(a),[j,_]=g.useState(r),[F,H]=g.useState(r),[W,K]=g.useState([]),[V,U]=g.useState(null),q=g.useRef(r);function X(){const e=q.current;_(e),H(e),K([]),U(null),A()}q.current=r,G(()=>{D(a);const e=function(e=[],t=[]){const n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){const n=new Map;e.forEach(e=>{n.set(e,!0)});const r=t.filter(e=>!n.has(e));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(z,a);if(null!==e.key)if(e.add){const t=j.findIndex(({key:t})=>t===e.key),n=dT(iT(j,r,e.key),w,b,x),o=j.slice();o.splice(t+1,0,uT),H(o),K(n),U("show")}else{const t=r.findIndex(({key:t})=>t===e.key),n=dT(iT(r,j,e.key),w,b,x),o=r.slice();o.splice(t+1,0,uT),H(o),K(n),U("hide")}else j!==r&&(_(r),H(r))},[a,r]),g.useEffect(()=>{f||X()},[f]);const Y=v?F:r,Z={expandedKeys:a,selectedKeys:l,loadedKeys:c,loadingKeys:u,checkedKeys:s,halfCheckedKeys:d,dragOverNodeKey:m,dropPosition:y,keyEntities:h};return g.createElement(g.Fragment,null,g.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:`${n}-indent`},g.createElement("div",{ref:B,className:`${n}-indent-unit`}))),g.createElement(wg,aT({},I,{data:Y,itemKey:hT,height:b,fullHeight:!1,virtual:w,itemHeight:x,scrollWidth:C,prefixCls:`${n}-list`,ref:L,role:"tree",tabIndex:!1===k||p?void 0:E,"aria-activedescendant":S?Q(R,S.key):void 0,onKeyDown:$,onFocus:T,onBlur:P,onMouseDown:M,onVisibleChange:e=>{e.every(e=>hT(e)!==lT)&&X()}}),e=>{const{pos:t,data:{...n},title:r,key:o,isStart:i,isEnd:a}=e,l=mw(o,t);delete n.key,delete n.children;const s=ww(l,Z);return g.createElement(oT,aT({},n,s,{title:r,active:!!S&&o===S.key,pos:t,data:e.data,isStart:i,isEnd:a,motion:v,motionNodes:o===lT?W:null,motionType:V,onMotionStart:N,onMotionEnd:X,treeNodeRequiredProps:Z,treeId:R,onMouseMove:()=>{O(null)}}))}))});function fT(){return fT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fT.apply(this,arguments)}let mT=(t=class extends g.Component{constructor(){super(...arguments),o(this,"destroyed",!1),o(this,"delayedDragEnterLogic"),o(this,"loadingRetryTimes",{}),o(this,"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:gw()}),o(this,"dragStartMousePosition",null),o(this,"dragNodeProps",null),o(this,"currentMouseOverDroppableNodeKey",null),o(this,"focusedByMouse",!1),o(this,"listRef",g.createRef()),o(this,"onNodeDragStart",(e,t)=>{const{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:o}=this.props,{eventKey:i}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};const a=R$(n,i);this.setState({draggingNodeKey:i,dragChildrenKeys:z$(i,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(a),window.addEventListener("dragend",this.onWindowDragEnd),null==o||o({event:e,node:Cw(t)})}),o(this,"onNodeDragEnter",(e,t)=>{const{expandedKeys:n,keyEntities:r,dragChildrenKeys:o,flattenNodes:i,indent:a}=this.state,{onDragEnter:l,onExpand:s,allowDrop:c,direction:u}=this.props,{pos:d,eventKey:h}=t;if(this.currentMouseOverDroppableNodeKey!==h&&(this.currentMouseOverDroppableNodeKey=h),!this.dragNodeProps)return void this.resetDragState();const{dropPosition:p,dropLevelOffset:f,dropTargetKey:m,dropContainerKey:g,dropTargetPos:y,dropAllowed:v,dragOverNodeKey:b}=j$(e,this.dragNodeProps,t,a,this.dragStartMousePosition,c,i,r,n,u);!o.includes(m)&&v?(this.delayedDragEnterLogic||(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(null===this.state.draggingNodeKey)return;let o=[...n];const i=pw(r,t.eventKey);i&&(i.children||[]).length&&(o=L$(n,t.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(o),null==s||s(o,{node:Cw(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey!==m||0!==f?(this.setState({dragOverNodeKey:b,dropPosition:p,dropLevelOffset:f,dropTargetKey:m,dropContainerKey:g,dropTargetPos:y,dropAllowed:v}),null==l||l({event:e,node:Cw(t),expandedKeys:n})):this.resetDragState()):this.resetDragState()}),o(this,"onNodeDragOver",(e,t)=>{const{dragChildrenKeys:n,flattenNodes:r,keyEntities:o,expandedKeys:i,indent:a}=this.state,{onDragOver:l,allowDrop:s,direction:c}=this.props;if(!this.dragNodeProps)return;const{dropPosition:u,dropLevelOffset:d,dropTargetKey:h,dropContainerKey:p,dropTargetPos:f,dropAllowed:m,dragOverNodeKey:g}=j$(e,this.dragNodeProps,t,a,this.dragStartMousePosition,s,r,o,i,c);!n.includes(h)&&m&&(this.dragNodeProps.eventKey===h&&0===d?null===this.state.dropPosition&&null===this.state.dropLevelOffset&&null===this.state.dropTargetKey&&null===this.state.dropContainerKey&&null===this.state.dropTargetPos&&!1===this.state.dropAllowed&&null===this.state.dragOverNodeKey||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&h===this.state.dropTargetKey&&p===this.state.dropContainerKey&&f===this.state.dropTargetPos&&m===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:h,dropContainerKey:p,dropTargetPos:f,dropAllowed:m,dragOverNodeKey:g}),null==l||l({event:e,node:Cw(t)}))}),o(this,"onNodeDragLeave",(e,t)=>{this.currentMouseOverDroppableNodeKey!==t.eventKey||e.currentTarget.contains(e.relatedTarget)||(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);const{onDragLeave:n}=this.props;null==n||n({event:e,node:Cw(t)})}),o(this,"onWindowDragEnd",e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)}),o(this,"onNodeDragEnd",(e,t)=>{const{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),null==n||n({event:e,node:Cw(t)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)}),o(this,"onNodeDrop",(e,t,n=!1)=>{var r;const{dragChildrenKeys:o,dropPosition:i,dropTargetKey:a,dropTargetPos:l,dropAllowed:s}=this.state;if(!s)return;const{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),null===a)return;const u={...ww(a,this.getTreeNodeRequiredProps()),active:(null==(r=this.getActiveItem())?void 0:r.key)===a,data:pw(this.state.keyEntities,a).node};nt(!o.includes(a),"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");const d=B$(l),h={event:e,node:Cw(u),dragNode:this.dragNodeProps?Cw(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(o),dropToGap:0!==i,dropPosition:i+Number(d[d.length-1])};n||null==c||c(h),this.dragNodeProps=null}),o(this,"cleanDragState",()=>{const{draggingNodeKey:e}=this.state;null!==e&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null}),o(this,"triggerExpandActionExpand",(e,t)=>{const{expandedKeys:n,flattenNodes:r}=this.state,{expanded:o,key:i,isLeaf:a}=t;if(a||e.shiftKey||e.metaKey||e.ctrlKey)return;const l=r.filter(e=>e.key===i)[0],s=Cw({...ww(i,this.getTreeNodeRequiredProps()),data:l.data});this.setExpandedKeys(o?R$(n,i):L$(n,i)),this.onNodeExpand(e,s)}),o(this,"onNodeClick",(e,t)=>{const{onClick:n,expandAction:r}=this.props;"click"===r&&this.triggerExpandActionExpand(e,t),null==n||n(e,t)}),o(this,"onNodeDoubleClick",(e,t)=>{const{onDoubleClick:n,expandAction:r}=this.props;"doubleClick"===r&&this.triggerExpandActionExpand(e,t),null==n||n(e,t)}),o(this,"onNodeSelect",(e,t)=>{let{selectedKeys:n}=this.state;const{keyEntities:r,fieldNames:o}=this.state,{onSelect:i,multiple:a}=this.props,{selected:l}=t,s=t[o.key],c=!l;n=c?a?L$(n,s):[s]:R$(n,s);const u=n.map(e=>{const t=pw(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),null==i||i(n,{event:"select",selected:c,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})}),o(this,"onNodeCheck",(e,t,n)=>{const{keyEntities:r,checkedKeys:o,halfCheckedKeys:i}=this.state,{checkStrictly:a,onCheck:l}=this.props,{key:s}=t;let c;const u={event:"check",node:t,checked:n,nativeEvent:e.nativeEvent};if(a){const e=n?L$(o,s):R$(o,s);c={checked:e,halfChecked:R$(i,s)},u.checkedNodes=e.map(e=>pw(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=Ew([...o,s],!0,r);if(!n){const n=new Set(e);n.delete(s),({checkedKeys:e,halfCheckedKeys:t}=Ew(Array.from(n),{halfCheckedKeys:t},r))}c=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{const t=pw(r,e);if(!t)return;const{node:n,pos:o}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:o})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}null==l||l(c,u)}),o(this,"onNodeLoad",e=>{var t;const{key:n}=e,{keyEntities:r}=this.state,o=pw(r,n);if(null==(t=null==o?void 0:o.children)?void 0:t.length)return;const i=new Promise((t,r)=>{this.setState(({loadedKeys:o=[],loadingKeys:i=[]})=>{const{loadData:a,onLoad:l}=this.props;if(!a||o.includes(n)||i.includes(n))return null;return a(e).then(()=>{const{loadedKeys:r}=this.state,o=L$(r,n);null==l||l(o,{event:"load",node:e}),this.setUncontrolledState({loadedKeys:o}),this.setState(e=>({loadingKeys:R$(e.loadingKeys,n)})),t()}).catch(e=>{if(this.setState(e=>({loadingKeys:R$(e.loadingKeys,n)})),this.loadingRetryTimes[n]=(this.loadingRetryTimes[n]||0)+1,this.loadingRetryTimes[n]>=10){const{loadedKeys:e}=this.state;nt(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:L$(e,n)}),t()}r(e)}),{loadingKeys:L$(i,n)}})});return i.catch(()=>{}),i}),o(this,"onNodeMouseEnter",(e,t)=>{const{onMouseEnter:n}=this.props;null==n||n({event:e,node:t})}),o(this,"onNodeMouseLeave",(e,t)=>{const{onMouseLeave:n}=this.props;null==n||n({event:e,node:t})}),o(this,"onNodeContextMenu",(e,t)=>{const{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))}),o(this,"onMouseDown",e=>{this.focusedByMouse=!0;const{onMouseDown:t}=this.props;null==t||t(e)}),o(this,"onGlobalMouseUp",()=>{this.focusedByMouse=!1}),o(this,"onFocus",(...e)=>{var t;const{onFocus:n,disabled:r}=this.props,{activeKey:o,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!r&&null===o){const e=i.find(e=>a.some(t=>t.key===e));void 0!==e?this.onActiveChange(e):this.onActiveChange((null==(t=null==a?void 0:a[0])?void 0:t.key)||null)}null==n||n(...e)}),o(this,"onBlur",(...e)=>{const{onBlur:t}=this.props;this.onActiveChange(null),null==t||t(...e)}),o(this,"getTreeNodeRequiredProps",()=>{const{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:o,halfCheckedKeys:i,dragOverNodeKey:a,dropPosition:l,keyEntities:s}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:o||[],halfCheckedKeys:i||[],dragOverNodeKey:a,dropPosition:l,keyEntities:s}}),o(this,"setExpandedKeys",e=>{const{treeData:t,fieldNames:n}=this.state,r=vw(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)}),o(this,"onNodeExpand",(e,t)=>{let{expandedKeys:n}=this.state;const{listChanging:r,fieldNames:o}=this.state,{onExpand:i,loadData:a}=this.props,{expanded:l}=t,s=t[o.key];if(r)return;const c=n.includes(s),u=!l;if(nt(l&&c||!l&&!c,"Expand state not sync with index check"),n=u?L$(n,s):R$(n,s),this.setExpandedKeys(n),null==i||i(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&a){const e=this.onNodeLoad(t);e&&e.then(()=>{const e=vw(this.state.treeData,n,o);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{const{expandedKeys:e}=this.state,t=R$(e,s);this.setExpandedKeys(t)})}}),o(this,"onListChangeStart",()=>{this.setUncontrolledState({listChanging:!0})}),o(this,"onListChangeEnd",()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})}),o(this,"onActiveChange",e=>{const{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:r}),null==n||n(e))}),o(this,"getActiveItem",()=>{const{activeKey:e,flattenNodes:t}=this.state;return null===e?null:t.find(({key:t})=>t===e)||null}),o(this,"offsetActiveKey",e=>{const{flattenNodes:t,activeKey:n}=this.state;let r=t.findIndex(({key:e})=>e===n);-1===r&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;const o=t[r];if(o){const{key:e}=o;this.onActiveChange(e)}else this.onActiveChange(null)}),o(this,"onKeyDown",e=>{var t,n,r;const{activeKey:o,expandedKeys:i,checkedKeys:a,flattenNodes:l,keyEntities:s}=this.state,{onKeyDown:c,checkable:u,selectable:d,disabled:h,loadData:p}=this.props;if(h)return;switch(e.key){case"ArrowUp":this.offsetActiveKey(-1),e.preventDefault();break;case"ArrowDown":this.offsetActiveKey(1),e.preventDefault();break;case"Home":this.onActiveChange(null==(t=null==l?void 0:l[0])?void 0:t.key),e.preventDefault();break;case"End":this.onActiveChange(null==(n=null==l?void 0:l[l.length-1])?void 0:n.key),e.preventDefault()}const f=this.getActiveItem();if(f&&f.data){const t=Cw({...ww(o,this.getTreeNodeRequiredProps()),data:f.data,active:!0}),n=pw(s,o),l=!!(null==(r=null==n?void 0:n.children)?void 0:r.length),c=!xw(f.data.isLeaf,p,l,t.loaded),h=u&&!t.disabled&&!1!==t.checkable&&!t.disableCheckbox,m=!u&&d&&!t.disabled&&!1!==t.selectable;switch(e.key){case"ArrowLeft":c&&i.includes(o)?this.onNodeExpand({},t):f.parent&&this.onActiveChange(f.parent.key),e.preventDefault();break;case"ArrowRight":c&&!i.includes(o)?this.onNodeExpand({},t):f.children&&f.children.length&&this.onActiveChange(f.children[0].key),e.preventDefault();break;case"Enter":c?(e.preventDefault(),this.onNodeExpand({},t)):h?a.includes(o)||(e.preventDefault(),this.onNodeCheck({},t,!0)):m&&!t.selected&&(e.preventDefault(),this.onNodeSelect({},t));break;case" ":h?(e.preventDefault(),this.onNodeCheck({},t,!a.includes(o))):m&&(e.preventDefault(),this.onNodeSelect({},t))}}null==c||c(e)}),o(this,"setUncontrolledState",(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,o=!0;const i={};Object.keys(e).forEach(t=>{this.props.hasOwnProperty(t)?o=!1:(r=!0,i[t]=e[t])}),!r||t&&!o||this.setState({...i,...n})}}),o(this,"scrollTo",e=>{this.listRef.current.scrollTo(e)})}componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener("mouseup",this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){const{activeKey:e,itemScrollOffset:t=0}=this.props;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),window.removeEventListener("mouseup",this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){const{prevProps:n}=t,r={prevProps:e};function o(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let i,{fieldNames:a}=t;if(o("fieldNames")&&(a=gw(e.fieldNames),r.fieldNames=a),o("treeData")?({treeData:i}=e):o("children")&&(nt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),i=yw(e.children)),i){r.treeData=i;const e=bw(i,{fieldNames:a});r.keyEntities={[lT]:cT,...e.keyEntities}}const l=r.keyEntities||t.keyEntities;if(o("expandedKeys")||n&&o("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?H$(e.expandedKeys,l):e.expandedKeys;else if(!n&&e.defaultExpandAll){const e={...l};delete e[lT];const t=[];Object.keys(e).forEach(n=>{const 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?H$(e.defaultExpandedKeys,l):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,i||r.expandedKeys){const e=vw(i||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=e}if(e.selectable&&(o("selectedKeys")?r.selectedKeys=_$(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=_$(e.defaultSelectedKeys,e))),e.checkable){let a;if(o("checkedKeys")?a=F$(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?a=F$(e.defaultCheckedKeys)||{}:i&&(a=F$(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),a){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=a;if(!e.checkStrictly){const e=Ew(t,!0,l);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return o("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}render(){const{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:o,dropTargetKey:i,dropPosition:a,dragOverNodeKey:l,indent:s}=this.state,{prefixCls:c,className:u,style:d,styles:h,classNames:p,showLine:f,focusable:m,tabIndex:y=0,selectable:v,showIcon:b,icon:x,switcherIcon:w,draggable:C,checkable:k,checkStrictly:S,disabled:E,motion:$,loadData:T,filterTreeNode:P,height:M,itemHeight:O,scrollWidth:N,virtual:A,titleRender:I,dropIndicatorRender:R,onContextMenu:L,onScroll:B,direction:z,rootClassName:D,rootStyle:j}=this.props,_=ct(this.props,{aria:!0,data:!0});let F;C&&(F="object"==typeof C?C:"function"==typeof C?{nodeDraggable:C}:{});const H={styles:h,classNames:p,prefixCls:c,selectable:v,showIcon:b,icon:x,switcherIcon:w,draggable:F,draggingNodeKey:n,checkable:k,checkStrictly:S,disabled:E,keyEntities:t,dropLevelOffset:r,dropContainerKey:o,dropTargetKey:i,dropPosition:a,dragOverNodeKey:l,indent:s,direction:z,dropIndicatorRender:R,loadData:T,filterTreeNode:P,titleRender:I,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 g.createElement(E$.Provider,{value:H},g.createElement("div",{className:Kt(c,u,D,{[`${c}-show-line`]:f}),style:j},g.createElement(pT,fT({ref:this.listRef,prefixCls:c,style:d,data:e,disabled:E,selectable:v,checkable:!!k,motion:$,dragging:null!==n,height:M,itemHeight:O,virtual:A,focusable:m,tabIndex:y,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:L,onScroll:B,scrollWidth:N},this.getTreeNodeRequiredProps(),_))))}},o(t,"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:e=>{const{dropPosition:t,dropLevelOffset:n,indent:r}=e,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return y.createElement("div",{style:o})},allowDrop:()=>!0,expandAction:!1}),o(t,"TreeNode",I$),t);var gT={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 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)}const vT=(e,t)=>g.createElement(ji,yT({},e,{ref:t,icon:gT})),bT=g.forwardRef(vT);var xT={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 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)}const CT=(e,t)=>g.createElement(ji,wT({},e,{ref:t,icon:xT})),kT=g.forwardRef(CT);var ST={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 ET(){return ET=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ET.apply(this,arguments)}const $T=(e,t)=>g.createElement(ji,ET({},e,{ref:t,icon:ST})),TT=g.forwardRef($T);var PT={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 MT(){return MT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MT.apply(this,arguments)}const OT=(e,t)=>g.createElement(ji,MT({},e,{ref:t,icon:PT})),NT=g.forwardRef(OT),AT=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:i,controlItemBgHover:a})=>({[`${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 ${o}`,content:'""',borderRadius:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),IT=new Fr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),RT=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),LT=(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:`${wn(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),BT=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,switcherSize:l,motionDurationMid:s,nodeSelectedBg:c,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:h}=t;return{[n]:{...vi(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`]:{...bi(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:IT,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:wn(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-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:h},[`${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:l,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:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(l).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:"flex-start",marginBlockStart:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...RT(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:l,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:l,height:i,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(l).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(l).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${n}-node-content-wrapper`]:{position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:[`all ${s}`,"border 0s","line-height 0s","box-shadow 0s"].join(", "),...LT(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:c},[`${n}-iconEle`]:{display:"inline-block",width:l,height:i,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(l).div(2).equal(),bottom:t.calc(o).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:`${wn(t.calc(i).div(2).equal())} !important`}}}},zT=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=fo(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[BT(e,a),n&&AT(a)].filter(Boolean)},DT=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e;return{titleHeight:t,switcherSize:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},jT=ki("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:$w(`${t}-checkbox`,e)},zT(t,e),Ju(e)],e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return{...DT(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),_T=e=>{const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a="ltr"===i?"left":"right",l="ltr"===i?"right":"left",s={[a]:-n*o+4,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=o+4}return y.createElement("div",{style:s,className:`${r}-drop-indicator`})};var FT={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 HT(){return HT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HT.apply(this,arguments)}const WT=(e,t)=>g.createElement(ji,HT({},e,{ref:t,icon:FT})),KT=g.forwardRef(WT);var VT={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 UT(){return UT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UT.apply(this,arguments)}const qT=(e,t)=>g.createElement(ji,UT({},e,{ref:t,icon:VT})),GT=g.forwardRef(qT);var XT={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 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)}const ZT=(e,t)=>g.createElement(ji,YT({},e,{ref:t,icon:XT})),QT=g.forwardRef(ZT),JT=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:i,showLine:a,switcherLoadingIcon:l}=e,{isLeaf:s,expanded:c,loading:u}=i;if(u)return g.isValidElement(l)?l:g.createElement(bc,{className:`${r}-switcher-loading-icon`});let d;if(Xa(a)&&(d=a.showLeafIcon),s){if(!a)return null;if("boolean"!=typeof d&&d){const e=Ya(d)?d(i):d,n=`${r}-switcher-line-custom-icon`;return g.isValidElement(e)?As(e,{className:Kt(null==(t=e.props)?void 0:t.className,n)}):e}return d?g.createElement(bT,{className:`${r}-switcher-line-icon`}):g.createElement("span",{className:`${r}-switcher-leaf-line`})}const h=`${r}-switcher-icon`,p=Ya(o)?o(i):o;return g.isValidElement(p)?As(p,{className:Kt(null==(n=p.props)?void 0:n.className,a?`${r}-switcher-line-icon`:h)}):void 0!==p?p:a?c?g.createElement(GT,{className:`${r}-switcher-line-icon`}):g.createElement(QT,{className:`${r}-switcher-line-icon`}):g.createElement(KT,{className:h})},eP=y.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,className:i,style:a,classNames:l,styles:s}=en("tree"),{virtual:c}=y.useContext(Zt),{prefixCls:u,className:d,showIcon:h=!1,showLine:p,switcherIcon:f,switcherLoadingIcon:m,blockNode:g=!1,children:v,checkable:b=!1,selectable:x=!0,draggable:w,disabled:C,motion:k,style:S,rootClassName:E,classNames:$,styles:T,icon:P}=e,M=y.useContext(Bs),O=C??M,N=r("tree",u),A=r(),I=k??{...Su(A),motionAppear:!1},R={...e,showIcon:h,blockNode:g,checkable:b,selectable:x,disabled:O,motion:I},[L,B]=il([l,$],[s,T],{props:R}),z={...R,showLine:Boolean(p),icon:P,dropIndicatorRender:_T},[D,j]=jT(N),[,_]=gi(),F=_.paddingXS/2+((null==(n=_.Tree)?void 0:n.titleHeight)||_.controlHeightSM),H=y.useMemo(()=>{if(!w)return!1;let e={};switch(typeof w){case"function":e.nodeDraggable=w;break;case"object":e={...w}}return!1!==e.icon&&(e.icon=e.icon||y.createElement(NT,null)),e},[w]);return y.createElement(mT,{itemHeight:F,ref:t,virtual:c,...z,prefixCls:N,className:Kt({[`${N}-icon-hide`]:!h,[`${N}-block-node`]:g,[`${N}-unselectable`]:!x,[`${N}-rtl`]:"rtl"===o,[`${N}-disabled`]:O},i,d,D,j),style:{...a,...S},rootClassName:Kt(L.root,E),rootStyle:B.root,classNames:L,styles:B,direction:o,checkable:b?y.createElement("span",{className:`${N}-checkbox-inner`}):b,selectable:x,switcherIcon:e=>y.createElement(JT,{prefixCls:N,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:e,showLine:p}),draggable:H},v)});function tP(e,t,n){const{key:r,children:o}=n;e.forEach(function(e){const i=e[r],a=e[o];!1!==t(i,e)&&tP(a||[],t,n)})}function nP({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const i=[];let a=0;if(n&&n===r)return[n];if(!n||!r)return[];return tP(e,e=>{if(2===a)return!1;if(function(e){return e===n||e===r}(e)){if(i.push(e),0===a)a=1;else if(1===a)return a=2,!1}else 1===a&&i.push(e);return t.includes(e)},gw(o)),i}function rP(e,t,n){const r=qt(t),o=[];return tP(e,(e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length},gw(n)),o}function oP(e){const{isLeaf:t,expanded:n}=e;return t?g.createElement(bT,null):n?g.createElement(kT,null):g.createElement(TT,null)}function iP({treeData:e,children:t}){return e||yw(t)}const aP=g.forwardRef((e,t)=>{const{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o,...i}=e,a=g.useRef(null),l=g.useRef(null),[s,c]=g.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[u,d]=g.useState(()=>(()=>{const{keyEntities:e}=bw(iP(i),{fieldNames:i.fieldNames});let t;const a=i.expandedKeys||o||[];return t=n?Object.keys(e):r?H$(a,e):a,t})());g.useEffect(()=>{"selectedKeys"in i&&c(i.selectedKeys)},[i.selectedKeys]),g.useEffect(()=>{"expandedKeys"in i&&d(i.expandedKeys)},[i.expandedKeys]);const{getPrefixCls:h,direction:p}=g.useContext(Zt),{prefixCls:f,className:m,showIcon:y=!0,expandAction:v="click",...b}=i,x=h("tree",f),w=Kt(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===p},m);return g.createElement(eP,{icon:oP,ref:t,blockNode:!0,...b,showIcon:y,expandAction:v,prefixCls:x,className:w,expandedKeys:u,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=i,{node:s,nativeEvent:d}=t,{key:h=""}=s,p=iP(i),f={...t,selected:!0},m=(null==d?void 0:d.ctrlKey)||(null==d?void 0:d.metaKey),g=null==d?void 0:d.shiftKey;let y;r&&m?(y=e,a.current=h,l.current=y,f.selectedNodes=rP(p,y,o)):r&&g?(y=Array.from(new Set([].concat(qt(l.current||[]),qt(nP({treeData:p,expandedKeys:u,startKey:h,endKey:a.current,fieldNames:o}))))),f.selectedNodes=rP(p,y,o)):(y=[h],a.current=h,l.current=y,f.selectedNodes=rP(p,y,o)),null==(n=i.onSelect)||n.call(i,y,f),"selectedKeys"in i||c(y)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||d(e),null==(n=i.onExpand)?void 0:n.call(i,e,t)}})}),lP=eP;lP.DirectoryTree=aP,lP.TreeNode=I$;const sP=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?g.createElement("div",{className:`${r}-filter-dropdown-search`},g.createElement(mC,{prefix:g.createElement(hy,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},cP=e=>{const{keyCode:t}=e;t===qe.ENTER&&e.stopPropagation()},uP=g.forwardRef((e,t)=>g.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:cP,ref:t},e.children));function dP(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(qt(t),qt(dP(n))))}),t}const hP=(e,t)=>!("string"!=typeof t&&!qa(t))&&t.toString().toLowerCase().includes(e),pP=e=>{const{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,normalizedSearchValue:a,filterSearch:l}=e;return t.map((e,t)=>{const s=String(e.value);if(e.children)return{key:s||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:pP({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,normalizedSearchValue:a,filterSearch:l})};const c=o?Aw:Rx,u={key:void 0!==e.value?s:t,label:g.createElement(g.Fragment,null,g.createElement(c,{checked:r.includes(s)}),g.createElement("span",null,e.text))};return a?Ya(l)?l(a,e)?u:null:hP(a,e.text)?u:null:u})};function fP(e){return e||[]}const mP=e=>{var t;const{tablePrefixCls:n,prefixCls:r,column:o,dropdownPrefixCls:i,columnKey:a,filterOnClose:l,filterMultiple:s,filterMode:c="menu",filterSearch:u=!1,filterState:d,triggerFilter:h,locale:p,children:f,getPopupContainer:m,rootClassName:y}=e,{filterResetToDefaultFilteredValue:v,defaultFilteredValue:b,filterDropdownProps:x={},filterDropdownOpen:w,onFilterDropdownOpenChange:C}=o,[k,S]=g.useState(!1),E=g.useContext(Vy),$=!(!d||!(null==(t=d.filteredKeys)?void 0:t.length)&&!d.forceFiltered),T=e=>{var t;S(e),null==(t=x.onOpenChange)||t.call(x,e),null==C||C(e)},P=x.open??w??k,M=null==d?void 0:d.filteredKeys,[O,N]=(e=>{const t=g.useRef(e),[,n]=Tc();return[()=>t.current,e=>{t.current=e,n()}]})(fP(M)),A=({selectedKeys:e})=>{N(e)},I=(e,{node:t,checked:n})=>{A(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};g.useEffect(()=>{k&&A({selectedKeys:fP(M)})},[M]);const[R,L]=g.useState([]),B=e=>{L(e)},[z,D]=g.useState(""),j=g.useMemo(()=>z.trim().toLowerCase(),[z]),_=e=>{const{value:t}=e.target;D(t)};g.useEffect(()=>{k||D("")},[k]);const F=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||d&&d.filteredKeys?rt(t,null==d?void 0:d.filteredKeys,!0)?null:void h({column:o,key:a,filteredKeys:t}):null},H=()=>{T(!1),F(O())},W=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&F([]),t&&T(!1),D(""),N(v?(b||[]).map(String):[])},K=({closeDropdown:e}={closeDropdown:!0})=>{e&&T(!1),F(O())},V=Kt({[`${i}-menu-without-submenu`]:(U=o.filters||[],!U.some(({children:e})=>e))});var U;const q=e=>{if(e.target.checked){const e=dP(null==o?void 0:o.filters).map(String);N(e)}else N([])},G=({filters:e})=>(e||[]).map((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=G({filters:e.children})),r}),X=e=>{var t;return{...e,text:e.title,value:e.key,children:(null==(t=e.children)?void 0:t.map(X))||[]}};let Y;const{direction:Z,renderEmpty:Q}=g.useContext(Zt);if(Ya(o.filterDropdown))Y=o.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>A({selectedKeys:e}),selectedKeys:O(),confirm:K,clearFilters:W,filters:o.filters,visible:P,close:()=>{T(!1)}});else if(o.filterDropdown)Y=o.filterDropdown;else{const e=O()||[],t=()=>{const t=(null==Q?void 0:Q("Table.filter"))??g.createElement(Fg,{image:Fg.PRESENTED_IMAGE_SIMPLE,description:p.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(o.filters||[]).length)return t;if("tree"===c)return g.createElement(g.Fragment,null,g.createElement(sP,{filterSearch:u,value:z,onChange:_,tablePrefixCls:n,locale:p}),g.createElement("div",{className:`${n}-filter-dropdown-tree`},s?g.createElement(Aw,{checked:e.length===dP(o.filters).length,indeterminate:e.length>0&&e.length<dP(o.filters).length,className:`${n}-filter-dropdown-checkall`,onChange:q},(null==p?void 0:p.filterCheckall)??(null==p?void 0:p.filterCheckAll)):null,g.createElement(lP,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${i}-menu`,onCheck:I,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:G({filters:o.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:j?e=>Ya(u)?u(z,X(e)):hP(j,e.title):void 0})));const a=pP({filters:o.filters||[],filterSearch:u,prefixCls:r,filteredKeys:O(),filterMultiple:s,searchValue:z,normalizedSearchValue:j}),l=a.every(e=>null===e);return g.createElement(g.Fragment,null,g.createElement(sP,{filterSearch:u,value:z,onChange:_,tablePrefixCls:n,locale:p}),l?t:g.createElement(ex,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:V,onSelect:A,onDeselect:A,selectedKeys:e,getPopupContainer:m,openKeys:R,onOpenChange:B,items:a}))},a=()=>v?rt((b||[]).map(String),e,!0):0===e.length;Y=g.createElement(g.Fragment,null,t(),g.createElement("div",{className:`${r}-dropdown-btns`},g.createElement(mh,{type:"link",size:"small",disabled:a(),onClick:()=>W()},p.filterReset),g.createElement(mh,{type:"primary",size:"small",onClick:H},p.filterConfirm)))}o.filterDropdown&&(Y=g.createElement(jb,{selectable:void 0},Y)),Y=g.createElement(uP,{className:`${r}-dropdown`},Y);const J=(()=>{let e;return e=Ya(o.filterIcon)?o.filterIcon($):o.filterIcon?o.filterIcon:g.createElement(nT,null),g.createElement("span",{role:"button",tabIndex:-1,className:Kt(`${r}-trigger`,{active:$}),onClick:e=>{e.stopPropagation()}},e)})();if(E)return g.createElement("div",{className:`${r}-column`},g.createElement("span",{className:`${n}-column-title`},f),J);const ee=yt({trigger:["click"],placement:"rtl"===Z?"bottomLeft":"bottomRight",children:J,getPopupContainer:m},{...x,rootClassName:Kt(y,x.rootClassName),open:P,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==M&&N(fP(M)),T(e),e||o.filterDropdown||!l||H())},popupRender:()=>Ya(null==x?void 0:x.dropdownRender)?x.dropdownRender(Y):Y});return g.createElement("div",{className:`${r}-column`},g.createElement("span",{className:`${n}-column-title`},f),g.createElement($C,{...ee}))},gP=(e,t,n)=>{let r=[];return(e||[]).forEach((e,o)=>{const i=Z$(o,n),a=void 0!==e.filterDropdown;if(e.filters||a||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;a||(t=(null==t?void 0:t.map(String))??t),r.push({column:e,key:Y$(e,i),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:Y$(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(qt(r),qt(gP(e.children,t,i))))}),r};function yP(e,t,n,r,o,i,a,l,s){return n.map((n,c)=>{const u=Z$(c,l),{filterOnClose:d=!0,filterMultiple:h=!0,filterMode:p,filterSearch:f}=n;let m=n;if(m.filters||m.filterDropdown){const l=Y$(m,u),c=r.find(({key:e})=>l===e);m={...m,title:r=>g.createElement(mP,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:l,filterState:c,filterOnClose:d,filterMultiple:h,filterMode:p,filterSearch:f,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:s},Q$(n.title,r))}}return"children"in m&&(m={...m,children:yP(e,t,m.children,r,o,i,a,u,s)}),m})}const vP=e=>{const t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{const o=e,{filters:i,filterDropdown:a}=r;if(a)t[o]=n||null;else if(Array.isArray(n)){const e=dP(i);t[o]=e.filter(e=>n.includes(String(e)))}else t[o]=null}),t},bP=(e,t,n)=>t.reduce((e,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;if(o&&a&&a.length){const r=dP(i),l=new Map;r.forEach(e=>{const t=String(e);l.has(t)||l.set(t,e)});const s=a.map(e=>{const t=String(e);return l.get(t)??e});return(e=>e.reduce((e,r)=>{const i={...r};return i[n]&&(i[n]=bP(i[n],t,n)),s.some(e=>o(e,i))&&e.push(i),e},[]))(e)}return e},e),xP=e=>e.flatMap(e=>"children"in e?[e].concat(qt(xP(e.children||[]))):[e]),wP=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:l}=e;Nt();const s=g.useMemo(()=>xP(r||[]),[r]),[c,u]=g.useState(()=>gP(s,!0)),d=g.useMemo(()=>{const e=gP(s,!1);if(0===e.length)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e&&(t=!1)}),t){const e=(s||[]).map((e,t)=>Y$(e,Z$(t)));return c.reduce((t,n)=>{const r=e.indexOf(n.key);if(-1!==r){const e=s[r];t.push({...n,column:{...n.column,...e},forceFiltered:e.filtered})}return t},[])}return e},[s,c]),h=g.useMemo(()=>vP(d),[d]),p=e=>{const t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),o(vP(t),t)};return[e=>yP(t,n,e,d,a,p,i,void 0,l),d,h]},CP=10;var kP={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 SP(){return SP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SP.apply(this,arguments)}const EP=(e,t)=>g.createElement(ji,SP({},e,{ref:t,icon:kP})),$P=g.forwardRef(EP);var TP={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 PP(){return PP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PP.apply(this,arguments)}const MP=(e,t)=>g.createElement(ji,PP({},e,{ref:t,icon:TP})),OP=g.forwardRef(MP),NP="ascend",AP="descend",IP=e=>!(!Xa(e.sorter)||!qa(e.sorter.multiple))&&e.sorter.multiple,RP=e=>Ya(e)?e:!(!Xa(e)||!e.compare)&&e.compare,LP=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:Y$(e,t),multiplePriority:IP(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,i)=>{const a=Z$(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(qt(r),qt(LP(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:Y$(e,a),multiplePriority:IP(e),sortOrder:e.defaultSortOrder}))}),r},BP=(e,t,n,r,o,i,a,l,s)=>(t||[]).map((t,c)=>{const u=Z$(c,l);let d=t;if(d.sorter){const l=d.sortDirections||o,c=void 0===d.showSorterTooltip?a:d.showSorterTooltip,h=Y$(d,u),p=n.find(({key:e})=>e===h),f=p?p.sortOrder:null,m=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(l,f);let y;if(t.sortIcon)y=t.sortIcon({sortOrder:f});else{const t=l.includes(NP)&&g.createElement(OP,{className:Kt(`${e}-column-sorter-up`,{active:f===NP})}),n=l.includes(AP)&&g.createElement($P,{className:Kt(`${e}-column-sorter-down`,{active:f===AP})});y=g.createElement("span",{className:Kt(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},g.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:b,triggerDesc:x}=i||{};let w=v;m===AP?w=x:m===NP&&(w=b);const C=Xa(c)?{title:w,...c}:{title:w};d={...d,className:Kt(d.className,{[`${e}-column-sort`]:f}),title:n=>{const r=`${e}-column-sorters`,o=g.createElement("span",{className:`${e}-column-title`},Q$(t.title,n)),i=g.createElement("div",{className:r},o,y);return c?"boolean"!=typeof c&&"sorter-icon"===(null==c?void 0:c.target)?g.createElement("div",{className:Kt(r,`${r}-tooltip-target-sorter`)},o,g.createElement(tv,{...C},y)):g.createElement(tv,{...C},i):i},onHeaderCell:n=>{var o;const i=(null==(o=t.onHeaderCell)?void 0:o.call(t,n))||{},a=i.onClick,l=i.onKeyDown;i.onClick=e=>{r({column:t,key:h,sortOrder:m,multiplePriority:IP(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===qe.ENTER&&(r({column:t,key:h,sortOrder:m,multiplePriority:IP(t)}),null==l||l(e))};const c=((e,t)=>{const n=Q$(e,t);return Xa(n)||Array.isArray(n)?"":n})(t.title,{}),u=null==c?void 0:c.toString();return f&&(i["aria-sort"]="ascend"===f?"ascending":"descending"),i["aria-description"]=null==s?void 0:s.sortable,i["aria-label"]=u||"",i.className=Kt(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(c??"").toString()),i}}}return"children"in d&&(d={...d,children:BP(e,d.children,n,r,o,i,a,u,s)}),d}),zP=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},DP=e=>{const t=e.reduce((e,t)=>(t.sortOrder&&e.push(zP(t)),e),[]);if(0===t.length&&e.length){const t=e.length-1;return{...zP(e[t]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},jP=(e,t,n)=>{const r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),o=e.slice(),i=r.filter(({column:{sorter:e},sortOrder:t})=>RP(e)&&t);return i.length?o.sort((e,t)=>{for(let n=0;n<i.length;n+=1){const r=i[n],{column:{sorter:o},sortOrder:a}=r,l=RP(o);if(l&&a){const n=l(e,t,a);if(0!==n)return a===NP?n:-n}}return 0}).map(e=>{const r=e[n];return r?{...e,[n]:jP(r,t,n)}:e}):o},_P=(e,t)=>e.map(e=>{const n={...e};return n.title=Q$(e.title,t),"children"in n&&(n.children=_P(n.children,t)),n}),FP=u$((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),HP=S$((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),WP=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,c=`${wn(n)} ${r} ${o}`,u=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${wn(s(r).mul(-1).equal())}\n ${wn(s(s(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`> ${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:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${wn(s(a).mul(-1).equal())} ${wn(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}},...u("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:c,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${wn(n)} 0 ${wn(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},KP=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...yi,wordBreak:"keep-all",[`\n &${t}-cell-fix-start-shadow,\n &${t}-cell-fix-end-shadow\n `]:{overflow:"visible",[`${t}-cell-content`]:{...yi,display:"block"}},[`${t}-column-title`]:{...yi,wordBreak:"keep-all"}}}}},VP=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},UP=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:h,tableExpandedRowBg:p,paddingXXS:f,expandIconMarginTop:m,expandIconSize:g,expandIconHalfInner:y,expandIconScale:v,calc:b}=e,x=`${wn(o)} ${a} ${l}`,w=b(f).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${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`]:{...Ci(e),position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:wn(g),background:s,border:x,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:w,insetInlineStart:w,height:o},"&::after":{top:w,bottom:w,insetInlineStart:y,width:o,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:m,marginInlineEnd:i},[`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:`${wn(b(d).mul(-1).equal())} ${wn(b(h).mul(-1).equal())}`,padding:`${wn(d)} ${wn(h)}`}}}},qP=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:h,fontSizeSM:p,tablePaddingHorizontal:f,borderRadius:m,motionDurationSlow:g,colorIcon:y,colorPrimary:v,tableHeaderFilterActiveBg:b,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:C,controlItemBgHover:k,controlItemBgActive:S,boxShadowSecondary:E,filterDropdownMenuBg:$,calc:T}=e,P=`${n}-dropdown`,M=`${t}-filter-dropdown`,O=`${n}-tree`,N=`${wn(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:T(a).mul(-1).equal(),marginInline:`${wn(a)} ${wn(T(f).div(2).mul(-1).equal())}`,padding:`0 ${wn(a)}`,color:h,fontSize:p,borderRadius:m,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:y,background:b},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[M]:{...vi(e),minWidth:o,backgroundColor:w,borderRadius:m,boxShadow:E,overflow:"hidden",[`${P}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:$,"&:empty::after":{display:"block",padding:`${wn(l)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${wn(l)} 0`,paddingInline:l,[O]:{padding:0},[`${O}-treenode ${O}-node-content-wrapper:hover`]:{backgroundColor:k},[`${O}-treenode-checkbox-checked ${O}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${M}-search`]:{padding:l,borderBottom:N,"&-input":{input:{minWidth:i},[r]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${wn(T(l).sub(c).equal())} ${wn(l)}`,overflow:"hidden",borderTop:N}}}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};function GP({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}const XP=e=>{const{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:o,tableBg:i,calc:a}=e,l=`${t}-cell`,s=`${l}-fix`,c={position:"absolute",top:0,bottom:a(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[u,d]=GP(e);return{[`${t}-wrapper`]:{[`${l}${s}`]:{position:"sticky"},[s]:{zIndex:`calc(var(--z-offset-reverse) + ${o})`,background:i,"&:after":c,"&-start:after":{insetInlineStart:"100%"},"&-end:after":{insetInlineEnd:"100%"},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:"relative","&:before, &:after":{...c,zIndex:`calc(var(--columns-count) * 2 + ${o} + 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}}},YP=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${wn(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"}}}}},ZP=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${wn(n)} ${wn(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 ${wn(n)} ${wn(n)}`}}}}},QP=e=>{const{componentCls:t}=e,[n,r]=GP(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}}},JP=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:h,tablePaddingHorizontal:p,calc:f}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(o).add(f(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:f(c).add(f(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(o).add(f(i).div(4)).add(f(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:f(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:wn(f(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},eM=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${wn(o)} ${wn(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:wn(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${wn(r(o).mul(-1).equal())} ${wn(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:wn(r(o).mul(-1).equal()),marginInline:`${wn(r(n).sub(i).equal())} ${wn(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:wn(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:{...o("medium",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},tM=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=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},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{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:o,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:i}}}},nM=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,stickyScrollBarBorderRadius:l,lineWidth:s,lineType:c,tableBorderColor:u,zIndexTableFixed:d}=e,h=`${wn(s)} ${c} ${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:`${wn(i)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:"flex",alignItems:"center",background:a,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},rM=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${wn(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${wn(o(n).mul(-1).equal())} 0 ${r}`}}}},oM=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${wn(r)} ${o} ${i}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row,\n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${wn(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},iM=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:h,motionDurationMid:p,tableHeaderBg:f,tableHeaderCellSplitColor:m,tableFooterTextColor:g,tableFooterBg:y,calc:v}=e,b=`${wn(a)} ${l} ${s}`;return{[`${t}-wrapper`]:{clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg,"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'},[t]:{...vi(e),fontSize:c,background:u,borderRadius:`${wn(d)} ${wn(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${wn(d)} ${wn(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${wn(r)} ${wn(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${wn(r)} ${wn(o)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:f,borderBottom:b,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:m,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:b,transition:["background-color","border-color"].map(e=>`${e} ${p}`).join(", "),[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:wn(v(r).mul(-1).equal()),marginInline:`${wn(v(i).sub(o).equal())}\n ${wn(v(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:f,borderBottom:b,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:`${wn(r)} ${wn(o)}`,color:g,background:y}}}},aM=ki("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:h,rowExpandedBg:p,cellPaddingBlock:f,cellPaddingInline:m,cellPaddingBlockMD:g,cellPaddingInlineMD:y,cellPaddingBlockSM:v,cellPaddingInlineSM:b,borderColor:x,footerBg:w,footerColor:C,headerBorderRadius:k,cellFontSize:S,cellFontSizeMD:E,cellFontSizeSM:$,headerSplitColor:T,fixedHeaderSortActiveBg:P,headerFilterHoverBg:M,filterDropdownBg:O,expandIconBg:N,selectionColumnWidth:A,stickyScrollBarBg:I,calc:R}=e,L=fo(e,{tableFontSize:S,tableBg:r,tableRadius:k,tablePaddingVertical:f,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:b,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:C,tableFooterBg:w,tableHeaderCellSplitColor:T,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:P,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:O,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:h,zIndexTableFixed:2,tableFontSizeMiddle:E,tableFontSizeSmall:$,tableSelectionColumnWidth:A,tableExpandIconBg:N,tableExpandColumnWidth:R(o).add(R(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:I,tableScrollThumbBgHover:t,tableScrollBg:n});return[iM(L),YP(L),rM(L),tM(L),qP(L),WP(L),ZP(L),UP(L),rM(L),VP(L),JP(L),XP(L),nM(L),KP(L),eM(L),QP(L),oM(L)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:h,controlHeight:p,colorTextPlaceholder:f,fontSize:m,fontSizeSM:g,lineHeight:y,lineWidth:v,colorIcon:b,colorIconHover:x,opacityLoading:w,controlInteractiveSize:C}=e,k=new Mo(o).onBackground(n).toHexString(),S=new Mo(i).onBackground(n).toHexString(),E=new Mo(t).onBackground(n).toHexString(),$=new Mo(b),T=new Mo(x),P=C/2-v,M=2*P+3*v;return{headerBg:E,headerColor:r,headerSortActiveBg:k,headerSortHoverBg:S,bodySortBg:E,rowHoverBg:E,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:h,footerBg:E,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:d,fixedHeaderSortActiveBg:k,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:f,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*y-3*v)/2-Math.ceil((1.4*g-3*v)/2),headerIconColor:$.clone().setA($.a*w).toRgbString(),headerIconHoverColor:T.clone().setA(T.a*w).toRgbString(),expandIconHalfInner:P,expandIconSize:M,expandIconScale:C/M}},{resetFont:!1,unitless:{expandIconScale:!0}}),lM=[],sM=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:l,classNames:s,styles:c,size:u,bordered:d,dropdownPrefixCls:h,dataSource:p,pagination:f,rowSelection:m,rowKey:y,rowClassName:v,column:b,columns:x,children:w,childrenColumnName:C,onChange:k,getPopupContainer:S,loading:E,expandIcon:$,expandable:T,expandedRowRender:P,expandIconColumnIndex:M,indentSize:O,scroll:N,sortDirections:A,locale:I,showSorterTooltip:R={target:"full-header"},virtual:L}=e;Nt();const B=((e,t)=>g.useMemo(()=>{if(!t)return e;const n=e=>e.map(e=>e===W$||e===JS?e:"children"in e&&Array.isArray(e.children)?{...yt(t,e),children:n(e.children)}:yt(at(t,["children"]),e));return n(e)},[e,t]))(g.useMemo(()=>x||KE(w),[x,w]),b),z=Ty(g.useMemo(()=>B.some(e=>e.responsive),[B])),D=g.useMemo(()=>{const e=new Set(Object.keys(z).filter(e=>z[e]));return B.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[B,z]),j=at(e,["className","style","column","columns"]),{locale:_=Ll,table:F}=g.useContext(Zt),{getPrefixCls:H,direction:W,renderEmpty:K,getPopupContainer:V,className:U,style:q,classNames:G,styles:X}=en("table"),Y=Lu(e=>"middle"===u?"medium":u??e),Z={...e,size:Y,bordered:d},[Q,J]=il([G,s],[X,c],{props:Z},{pagination:{_default:"root"},header:{_default:"wrapper"},body:{_default:"wrapper"}}),ee={..._.Table,...I},[te]=Fl("global",Ll.global),ne=p||lM,re=H("table",o),oe=H("dropdown",h),[,ie]=gi(),ae=g.useMemo(()=>{var e;return Xa(m)?{columnWidth:null==(e=ie.Table)?void 0:e.selectionColumnWidth,...m}:m},[m,null==(n=ie.Table)?void 0:n.selectionColumnWidth]),le=El(re),[se,ce]=aM(re,le),ue={childrenColumnName:C,expandIconColumnIndex:M,...T,expandIcon:(null==T?void 0:T.expandIcon)??(null==(r=null==F?void 0:F.expandable)?void 0:r.expandIcon)},{childrenColumnName:de="children"}=ue,he=g.useMemo(()=>ne.some(e=>null==e?void 0:e[de])?"nest":P||(null==T?void 0:T.expandedRowRender)?"row":null,[de,ne]),pe={body:g.useRef(null)},fe=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return o}}(re),me=g.useRef(null),ge=g.useRef(null);Nc(t,()=>({...ge.current,nativeElement:me.current}));const ye=y||(null==F?void 0:F.rowKey)||"key",ve=N??(null==F?void 0:F.scroll),be=g.useMemo(()=>Ya(ye)?ye:e=>null==e?void 0:e[ye],[ye]),[xe]=((e,t,n)=>{const r=g.useRef({});return[function(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let o=function(e){e.forEach((e,r)=>{const a=n(e,r);i.set(a,e),Xa(e)&&t in e&&o(e[t]||[])})};const i=new Map;o(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return null==(i=r.current.kvMap)?void 0:i.get(o)}]})(ne,de,be),we={},Ce=(e,t,n=!1)=>{var r,o,i,a;const l={...we,...e};n&&(null==(r=we.resetPagination)||r.call(we),(null==(o=l.pagination)?void 0:o.current)&&(l.pagination.current=1),f&&(null==(a=f.onChange)||a.call(f,1,null==(i=l.pagination)?void 0:i.pageSize))),N&&!1!==N.scrollToFirstRowOnChange&&pe.body.current&&Sl(0,{getContainer:()=>pe.body.current}),null==k||k(l.pagination,l.filters,l.sorter,{currentDataSource:bP(jP(ne,l.sorterStates,de),l.filterStates,de),action:t})},[ke,Se,Ee,$e]=(e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a,globalLocale:l}=e,[s,c]=g.useState(()=>LP(n,!0)),u=(e,t)=>{const n=[];return e.forEach((e,r)=>{const o=Z$(r,t);if(n.push(Y$(e,o)),Array.isArray(e.children)){const t=u(e.children,o);n.push.apply(n,qt(t))}}),n},d=g.useMemo(()=>{let e=!0;const t=LP(n,!1);if(!t.length){const e=u(n);return s.filter(({key:t})=>e.includes(t))}const r=[];function o(t){e?r.push(t):r.push({...t,sortOrder:null})}let i=null;return t.forEach(t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))}),r},[n,s]),h=g.useMemo(()=>{var e,t;const n=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:n,sortColumn:null==(e=n[0])?void 0:e.column,sortOrder:null==(t=n[0])?void 0:t.order}},[d]),p=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(qt(d.filter(({key:t})=>t!==e.key)),[e]):[e],c(t),a(DP(t),t)};return[e=>BP(t,e,d,p,r,o,i,void 0,l),d,h,()=>DP(d)]})({prefixCls:re,mergedColumns:D,onSorterChange:(e,t)=>{Ce({sorter:e,sorterStates:t},"sort",!1)},sortDirections:A||["ascend","descend"],tableLocale:ee,showSorterTooltip:R,globalLocale:te}),Te=g.useMemo(()=>jP(ne,Se,de),[de,ne,Se]);we.sorter=$e(),we.sorterStates=Se;const[Pe,Me,Oe]=wP({prefixCls:re,locale:ee,dropdownPrefixCls:oe,mergedColumns:D,onFilterChange:(e,t)=>{Ce({filters:e,filterStates:t},"filter",!0)},getPopupContainer:S||V,rootClassName:Kt(a,le)}),Ne=bP(Te,Me,de);we.filters=Oe,we.filterStates=Me;const Ae=g.useMemo(()=>{const e={};return Object.keys(Oe).forEach(t=>{null!==Oe[t]&&(e[t]=Oe[t])}),{...Ee,filters:e}},[Ee,Oe]),[Ie]=(e=>[g.useCallback(t=>_P(t,e),[e])])(Ae),[Re,Le]=function(e,t,n){const{total:r=0,...o}=Xa(n)?n:{},[i,a]=g.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:CP})),l=yt(i,o,{total:r>0?r:e}),s=Math.ceil((r||e)/l.pageSize);l.current>s&&(l.current=s||1);const c=(e,t)=>{a({current:e??1,pageSize:t||l.pageSize})};return!1===n?[{},()=>{}]:[{...l,onChange:(e,r)=>{var o;n&&(null==(o=n.onChange)||o.call(n,e,r)),c(e,r),t(e,r||(null==l?void 0:l.pageSize))}},c]}(Ne.length,(e,t)=>{Ce({pagination:{...we.pagination,current:e,pageSize:t}},"paginate")},f);we.pagination=!1===f?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=Xa(t)?t:{};return Object.keys(r).forEach(t=>{const r=e[t];Ya(r)||(n[t]=r)}),n}(Re,f),we.resetPagination=Le;const Be=g.useMemo(()=>{if(!1===f||!Re.pageSize)return Ne;const{current:e=1,total:t,pageSize:n=CP}=Re;return Ne.length<t?Ne.length>n?Ne.slice((e-1)*n,e*n):Ne:Ne.slice((e-1)*n,e*n)},[!!f,Ne,null==Re?void 0:Re.current,null==Re?void 0:Re.pageSize,null==Re?void 0:Re.total]),[ze,De]=X$({prefixCls:re,data:Ne,pageData:Be,getRowKey:be,getRecordByKey:xe,expandType:he,childrenColumnName:de,locale:ee,getPopupContainer:S||V},ae);ue.__PARENT_RENDER_ICON__=ue.expandIcon,ue.expandIcon=ue.expandIcon||$||function(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,l=`${n}-row-expand-icon`;return g.createElement("button",{type:"button",onClick:e=>{r(o,e),e.stopPropagation()},className:Kt(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}(ee),"nest"===he&&void 0===ue.expandIconColumnIndex?ue.expandIconColumnIndex=ae?1:0:ue.expandIconColumnIndex>0&&ae&&(ue.expandIconColumnIndex-=1),qa(ue.indentSize)||(ue.indentSize=qa(O)?O:15);const je=g.useCallback(e=>Ie(ze(Pe(ke(e)))),[ke,Pe,ze]);let _e,Fe;if(!1!==f&&(null==Re?void 0:Re.total)){let e;e=Re.size?Re.size:"small"===Y||"medium"===Y?"small":void 0;const t=(t="end")=>g.createElement(rS,{...Re,classNames:Q.pagination,styles:J.pagination,className:Kt(`${re}-pagination ${re}-pagination-${t}`,Re.className),size:e}),{placement:n,position:r}=Re,o=n??r,i=e=>{const t=e.toLowerCase();return t.includes("center")?"center":t.includes("left")||t.includes("start")?"start":"end"};if(Array.isArray(o)){const[e,n]=["top","bottom"].map(e=>o.find(t=>t.includes(e))),r=o.every(e=>"none"==`${e}`);e||n||r||(Fe=t()),e&&(_e=t(i(e))),n&&(Fe=t(i(n)))}else Fe=t()}const He=g.useMemo(()=>"boolean"==typeof E?{spinning:E}:Xa(E)?{spinning:!0,...E}:void 0,[E]),We=Kt(ce,le,`${re}-wrapper`,U,{[`${re}-wrapper-rtl`]:"rtl"===W},i,a,Q.root,se),Ke={...J.root,...q,...l},Ve=g.useMemo(()=>(null==He?void 0:He.spinning)&&ne===lM?null:void 0!==(null==I?void 0:I.emptyText)?I.emptyText:(null==K?void 0:K("Table"))||g.createElement(Hg,{componentName:"Table"}),[null==He?void 0:He.spinning,ne,null==I?void 0:I.emptyText,K]),Ue=L?HP:FP,qe={},Ge=g.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:o,paddingSM:i}=ie,a=Math.floor(e*t);switch(Y){case"medium":return 2*i+a+n;case"small":return 2*o+a+n;default:return 2*r+a+n}},[ie,Y]);return L&&(qe.listItemHeight=Ge),g.createElement("div",{ref:me,className:We,style:Ke},g.createElement(yS,{spinning:!1,...He},_e,g.createElement(Ue,{...qe,...j,scroll:ve,classNames:Q,styles:J,ref:ge,columns:D,direction:W,expandable:ue,prefixCls:re,className:Kt({[`${re}-medium`]:"medium"===Y,[`${re}-small`]:"small"===Y,[`${re}-bordered`]:d,[`${re}-empty`]:0===ne.length},ce,le,se),data:Be,rowKey:be,rowClassName:(e,t,n)=>Kt({[`${re}-row-selected`]:De.has(be(e,t))},Ya(v)?v(e,t,n):v),emptyText:Ve,internalHooks:eE,internalRefs:pe,transformColumns:je,getContainerWidth:fe,measureRowRender:e=>g.createElement(Vy.Provider,{value:!0},g.createElement(Js,{getPopupContainer:e=>e},e))}),Fe))},cM=g.forwardRef(sM),uM=(e,t)=>{const n=g.useRef(0);return n.current+=1,g.createElement(cM,{...e,ref:t,_renderTimes:n.current})},dM=g.forwardRef(uM);dM.SELECTION_COLUMN=W$,dM.EXPAND_COLUMN=JS,dM.SELECTION_ALL=K$,dM.SELECTION_INVERT=V$,dM.SELECTION_NONE=U$,dM.Column=e=>null,dM.ColumnGroup=e=>null,dM.Summary=CE;const hM=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return fo(e,{tagFontSize:o,tagLineHeight:wn(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},pM=e=>{const t=Gd(new Hd(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new Mo(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},fM=ki("Tag",e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:{...vi(e),display:"inline-block",height:"auto",paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${wn(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-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(${o}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${o}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${o}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${o}-default`]:{color:e.solidTextColor}},[`${o}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${o}-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}},[`&${o}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${o}-solid, &${o}-filled`]:{color:e.colorTextDisabled,[`${o}-close-icon`]:{color:e.colorTextDisabled}},[`${o}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}})(hM(e)),pM),mM=g.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,children:a,icon:l,onChange:s,onClick:c,disabled:u,...d}=e,{getPrefixCls:h,tag:p}=g.useContext(Zt),f=g.useContext(Bs),m=u??f,y=h("tag",n),[v,b]=fM(y),x=Kt(y,`${y}-checkable`,{[`${y}-checkable-checked`]:i,[`${y}-checkable-disabled`]:m},null==p?void 0:p.className,o,v,b);return g.createElement("span",{...d,ref:t,style:{...r,...null==p?void 0:p.style},className:x,onClick:e=>{m||(null==s||s(!i),null==c||c(e))}},l,g.createElement("span",null,a))}),gM=y.forwardRef((e,t)=>{const{id:n,prefixCls:r,rootClassName:o,className:i,style:a,classNames:l,styles:s,disabled:c,options:u,value:d,defaultValue:h,onChange:p,multiple:f,...m}=e,{getPrefixCls:v,direction:b,className:x,style:w,classNames:C,styles:k}=en("tag"),S=v("tag",r),E=`${S}-checkable-group`,$=El(S),[T,P]=fM(S,$),[M,O]=il([C,l],[k,s],{props:e}),N=g.useMemo(()=>Array.isArray(u)?u.map(e=>Xa(e)?e:{value:e,label:e}):[],[u]),[A,I]=Y(h,d),R=y.useRef(null);g.useImperativeHandle(t,()=>({nativeElement:R.current}));const L=ct(m,{aria:!0,data:!0});return y.createElement("div",{...L,className:Kt(E,x,o,{[`${E}-disabled`]:c,[`${E}-rtl`]:"rtl"===b},T,P,i,M.root),style:{...w,...O.root,...a},id:n,ref:R},N.map(e=>y.createElement(mM,{key:e.value,className:Kt(`${E}-item`,M.item,e.className),style:{...O.item,...e.style},checked:f?(A||[]).includes(e.value):A===e.value,onChange:t=>((e,t)=>{let n=null;if(f){const r=A||[];n=e?[].concat(qt(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;I(n),null==p||p(n)})(t,e),disabled:c},e.label)))});function yM(e,t){const{color:n,variant:r,bordered:o}=e;return g.useMemo(()=>{const e=null==n?void 0:n.endsWith("-inverse");let i;i=r||(e?"solid":!1===o?"filled":t||"filled");let a=e?null==n?void 0:n.replace("-inverse",""):n;void 0===a&&"solid"===i&&(a="default");const l=Qy(a),s=function(e){return Zy.includes(e)}(a),c={};if(!l&&!s&&a)if("solid"===i)c.backgroundColor=n;else{const e=new Mo(a).toHsl();e.l=.95,c.backgroundColor=new Mo(e).toHexString(),c.color=n,"outlined"===i&&(c.borderColor=n)}return[i,a,l,s,c]},[n,r,o,t])}const vM=Ei(["Tag","preset"],e=>(e=>Ti(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:o,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:i,borderColor:i,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:o,color:n}}})))(hM(e)),pM);const bM=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;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}`]}}}},xM=Ei(["Tag","status"],e=>{const t=hM(e);return[bM(t,"success","Success"),bM(t,"processing","Info"),bM(t,"error","Error"),bM(t,"warning","Warning")]},pM),wM=g.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,style:a,children:l,icon:s,color:c,variant:u,onClose:d,bordered:h,disabled:p,href:f,target:m,styles:y,classNames:v,...b}=e,{getPrefixCls:x,direction:w,className:C,variant:k,style:S,classNames:E,styles:$}=en("tag"),[T,P,M,O,N]=yM(e,k),A=M||O,I=g.useContext(Bs),R=p??I,{tag:L}=g.useContext(Zt),[B,z]=g.useState(!0),D=at(b,["closeIcon","closable"]),j={...e,color:P,variant:T,disabled:R},[_,F]=il([E,v],[$,y],{props:j}),H=g.useMemo(()=>{let e={...F.root,...S,...a};return R||(e={...N,...e}),e},[F.root,S,a,N,R]),W=x("tag",r),[K,V]=fM(W),U=Kt(W,C,_.root,`${W}-${T}`,{[`${W}-${P}`]:A,[`${W}-hidden`]:!B,[`${W}-rtl`]:"rtl"===w,[`${W}-disabled`]:R},o,i,K,V),q=e=>{R||(e.stopPropagation(),null==d||d(e),e.defaultPrevented||z(!1))},[,G]=$c(Cc(e),Cc(L),{closable:!1,closeIconRender:e=>{const t=g.createElement("span",{className:Kt(`${W}-close-icon`,_.close),onClick:q,style:F.close},e);return Ns(e,t,e=>({onClick:t=>{var n;null==(n=null==e?void 0:e.onClick)||n.call(e,t),q(t)},className:Kt(null==e?void 0:e.className,`${W}-close-icon`,_.close),style:{...F.close,...null==e?void 0:e.style}}))}}),X=Ya(b.onClick)||l&&"a"===l.type,Y=As(s,{className:Kt(g.isValidElement(s)?null==(n=s.props)?void 0:n.className:void 0,_.icon),style:F.icon}),Z=Y?g.createElement(g.Fragment,null,Y,l&&g.createElement("span",{className:_.content,style:F.content},l)):l,Q=f?"a":"span",J=g.createElement(Q,{...D,ref:t,className:U,style:H,href:R?void 0:f,target:m,onClick:R?void 0:D.onClick,...f&&R?{"aria-disabled":!0}:{}},Z,G,M&&g.createElement(vM,{key:"preset",prefixCls:W}),O&&g.createElement(xM,{key:"status",prefixCls:W}));return X?g.createElement(Ru,{component:"Tag"},J):J});wM.CheckableTag=mM,wM.CheckableTagGroup=gM;const CM=(e,t)=>new Mo(e).setA(t).toRgbString(),kM=(e,t)=>new Mo(e).lighten(t).toHexString(),SM=e=>{const t=Ro(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},EM=(e,t,n)=>{const r=e||"#000",o=t||"#fff";return{colorBgBase:r,colorTextBase:o,colorShadow:n||"rgba(255, 255, 255, 0.2)",colorText:CM(o,.85),colorTextSecondary:CM(o,.65),colorTextTertiary:CM(o,.45),colorTextQuaternary:CM(o,.25),colorFill:CM(o,.18),colorFillSecondary:CM(o,.12),colorFillTertiary:CM(o,.08),colorFillQuaternary:CM(o,.04),colorBgSolid:CM(o,.95),colorBgSolidHover:CM(o,1),colorBgSolidActive:CM(o,.9),colorBgElevated:kM(r,12),colorBgContainer:kM(r,8),colorBgLayout:kM(r,0),colorBgSpotlight:kM(r,26),colorBgBlur:CM(o,.04),colorBorder:kM(r,26),colorBorderDisabled:kM(r,26),colorBorderSecondary:kM(r,19)}},$M=(e,t)=>{const n=Object.keys(Co).map(t=>{const n=Ro(e[t],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e={...e,...t},{}),r=t??ai(e),o=Yo(e,{generateColorPalettes:SM,generateNeutralColorPalettes:EM}),i=xo.reduce((t,n)=>{const r=e[n];if(r){const e=SM(r);t[`${n}Hover`]=e[7],t[`${n}Active`]=e[5]}return t},{});return{...r,...n,...o,...i,colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover}};var TM={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 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)}const MM=(e,t)=>g.createElement(ji,PM({},e,{ref:t,icon:TM})),OM=g.forwardRef(MM);function NM(e){const t=t=>{const{theme:n,darkMode:r,...o}=t;if(!n&&!r)return F.jsx(e,{...o});const i={...n||{}};return r&&!i.algorithm&&(i.algorithm=$M),F.jsx(Js,{theme:i,children:F.jsx(e,{darkMode:r,...o})})};return t.displayName=`withTheme(${e.displayName||e.name||"Component"})`,t}var AM,IM={exports:{}};
|
|
15
|
+
/**
|
|
16
|
+
* @license
|
|
17
|
+
* Lodash <https://lodash.com/>
|
|
18
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
19
|
+
* Released under MIT license <https://lodash.com/license>
|
|
20
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
21
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
22
|
+
*/var RM,LM,BM=(AM||(AM=1,RM=IM,LM=IM.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",r="__lodash_placeholder__",o=32,i=128,a=256,l=1/0,c=9007199254740991,u=NaN,d=4294967295,h=[["ary",i],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",a]],p="[object Arguments]",f="[object Array]",m="[object Boolean]",g="[object Date]",y="[object Error]",v="[object Function]",b="[object GeneratorFunction]",x="[object Map]",w="[object Number]",C="[object Object]",k="[object Promise]",S="[object RegExp]",E="[object Set]",$="[object String]",T="[object Symbol]",P="[object WeakMap]",M="[object ArrayBuffer]",O="[object DataView]",N="[object Float32Array]",A="[object Float64Array]",I="[object Int8Array]",R="[object Int16Array]",L="[object Int32Array]",B="[object Uint8Array]",z="[object Uint8ClampedArray]",D="[object Uint16Array]",j="[object Uint32Array]",_=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,V=RegExp(W.source),U=RegExp(K.source),q=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/[\\^$.*+?()[\]{}|]/g,ee=RegExp(J.source),te=/^\s+/,ne=/\s/,re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ie=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,fe=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,ve=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$e="['’]",Te="["+be+"]",Pe="["+Ee+"]",Me="["+xe+"]",Oe="\\d+",Ne="["+we+"]",Ae="["+Ce+"]",Ie="[^"+be+Ee+Oe+we+Ce+ke+"]",Re="\\ud83c[\\udffb-\\udfff]",Le="[^"+be+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+ke+"]",je="\\u200d",_e="(?:"+Ae+"|"+Ie+")",Fe="(?:"+De+"|"+Ie+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Me+"|"+Re+")?",Ve="["+Se+"]?",Ue=Ve+Ke+"(?:"+je+"(?:"+[Le,Be,ze].join("|")+")"+Ve+Ke+")*",qe="(?:"+[Ne,Be,ze].join("|")+")"+Ue,Ge="(?:"+[Le+Me+"?",Me,Be,ze,Te].join("|")+")",Xe=RegExp($e,"g"),Ye=RegExp(Me,"g"),Ze=RegExp(Re+"(?="+Re+")|"+Ge+Ue,"g"),Qe=RegExp([De+"?"+Ae+"+"+He+"(?="+[Pe,De,"$"].join("|")+")",Fe+"+"+We+"(?="+[Pe,De+_e,"$"].join("|")+")",De+"?"+_e+"+"+He,De+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,qe].join("|"),"g"),Je=RegExp("["+je+be+xe+Se+"]"),et=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,rt={};rt[N]=rt[A]=rt[I]=rt[R]=rt[L]=rt[B]=rt[z]=rt[D]=rt[j]=!0,rt[p]=rt[f]=rt[M]=rt[m]=rt[O]=rt[g]=rt[y]=rt[v]=rt[x]=rt[w]=rt[C]=rt[S]=rt[E]=rt[$]=rt[P]=!1;var ot={};ot[p]=ot[f]=ot[M]=ot[O]=ot[m]=ot[g]=ot[N]=ot[A]=ot[I]=ot[R]=ot[L]=ot[x]=ot[w]=ot[C]=ot[S]=ot[E]=ot[$]=ot[T]=ot[B]=ot[z]=ot[D]=ot[j]=!0,ot[y]=ot[v]=ot[P]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,lt=parseInt,st="object"==typeof s&&s&&s.Object===Object&&s,ct="object"==typeof self&&self&&self.Object===Object&&self,ut=st||ct||Function("return this")(),dt=LM&&!LM.nodeType&&LM,ht=dt&&RM&&!RM.nodeType&&RM,pt=ht&&ht.exports===dt,ft=pt&&st.process,mt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||ft&&ft.binding&&ft.binding("util")}catch(e){}}(),gt=mt&&mt.isArrayBuffer,yt=mt&&mt.isDate,vt=mt&&mt.isMap,bt=mt&&mt.isRegExp,xt=mt&&mt.isSet,wt=mt&&mt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Pt(e,t){return!(null==e||!e.length)&&Dt(e,t,0)>-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Nt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function At(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function It(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=Ht("length");function Bt(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function zt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Dt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,_t,n)}function jt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function _t(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?Vt(e,t)/n:u}function Ht(t){return function(n){return null==n?e:n[t]}}function Wt(t){return function(n){return null==t?e:t[n]}}function Kt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Vt(t,n){for(var r,o=-1,i=t.length;++o<i;){var a=n(t[o]);a!==e&&(r=r===e?a:r+a)}return r}function Ut(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function qt(e){return e?e.slice(0,un(e)+1).replace(te,""):e}function Gt(e){return function(t){return e(t)}}function Xt(e,t){return Ot(t,function(t){return e[t]})}function Yt(e,t){return e.has(t)}function Zt(e,t){for(var n=-1,r=e.length;++n<r&&Dt(t,e[n],0)>-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Dt(t,e[n],0)>-1;);return n}var Jt=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),en=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function tn(e){return"\\"+it[e]}function nn(e){return Je.test(e)}function rn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function on(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,o=e.length,i=0,a=[];++n<o;){var l=e[n];l!==t&&l!==r||(e[n]=r,a[i++]=n)}return a}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function sn(e){return nn(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Lt(e)}function cn(e){return nn(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function un(e){for(var t=e.length;t--&&ne.test(e.charAt(t)););return t}var dn=Wt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function s(ne){var be,xe=(ne=null==ne?ut:hn.defaults(ut.Object(),ne,hn.pick(ut,tt))).Array,we=ne.Date,Ce=ne.Error,ke=ne.Function,Se=ne.Math,Ee=ne.Object,$e=ne.RegExp,Te=ne.String,Pe=ne.TypeError,Me=xe.prototype,Oe=ke.prototype,Ne=Ee.prototype,Ae=ne["__core-js_shared__"],Ie=Oe.toString,Re=Ne.hasOwnProperty,Le=0,Be=(be=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+be:"",ze=Ne.toString,De=Ie.call(Ee),je=ut._,_e=$e("^"+Ie.call(Re).replace(J,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=pt?ne.Buffer:e,He=ne.Symbol,We=ne.Uint8Array,Ke=Fe?Fe.allocUnsafe:e,Ve=on(Ee.getPrototypeOf,Ee),Ue=Ee.create,qe=Ne.propertyIsEnumerable,Ge=Me.splice,Ze=He?He.isConcatSpreadable:e,Je=He?He.iterator:e,it=He?He.toStringTag:e,st=function(){try{var e=ui(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=ne.clearTimeout!==ut.clearTimeout&&ne.clearTimeout,dt=we&&we.now!==ut.Date.now&&we.now,ht=ne.setTimeout!==ut.setTimeout&&ne.setTimeout,ft=Se.ceil,mt=Se.floor,Lt=Ee.getOwnPropertySymbols,Wt=Fe?Fe.isBuffer:e,pn=ne.isFinite,fn=Me.join,mn=on(Ee.keys,Ee),gn=Se.max,yn=Se.min,vn=we.now,bn=ne.parseInt,xn=Se.random,wn=Me.reverse,Cn=ui(ne,"DataView"),kn=ui(ne,"Map"),Sn=ui(ne,"Promise"),En=ui(ne,"Set"),$n=ui(ne,"WeakMap"),Tn=ui(Ee,"create"),Pn=$n&&new $n,Mn={},On=ji(Cn),Nn=ji(kn),An=ji(Sn),In=ji(En),Rn=ji($n),Ln=He?He.prototype:e,Bn=Ln?Ln.valueOf:e,zn=Ln?Ln.toString:e;function Dn(e){if(nl(e)&&!Va(e)&&!(e instanceof Hn)){if(e instanceof Fn)return e;if(Re.call(e,"__wrapped__"))return _i(e)}return new Fn(e)}var jn=function(){function t(){}return function(n){if(!tl(n))return{};if(Ue)return Ue(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function _n(){}function Fn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Vn;++t<n;)this.add(e[t])}function qn(e){var t=this.__data__=new Kn(e);this.size=t.size}function Gn(e,t){var n=Va(e),r=!n&&Ka(e),o=!n&&!r&&Xa(e),i=!n&&!r&&!o&&ul(e),a=n||r||o||i,l=a?Ut(e.length,Te):[],s=l.length;for(var c in e)!t&&!Re.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||yi(c,s))||l.push(c);return l}function Xn(t){var n=t.length;return n?t[Ur(0,n-1)]:e}function Yn(e,t){return Ii(Po(e),ir(t,0,e.length))}function Zn(e){return Ii(Po(e))}function Qn(t,n,r){(r!==e&&!Fa(t[n],r)||r===e&&!(n in t))&&rr(t,n,r)}function Jn(t,n,r){var o=t[n];Re.call(t,n)&&Fa(o,r)&&(r!==e||n in t)||rr(t,n,r)}function er(e,t){for(var n=e.length;n--;)if(Fa(e[n][0],t))return n;return-1}function tr(e,t,n,r){return ur(e,function(e,o,i){t(r,e,n(e),i)}),r}function nr(e,t){return e&&Mo(t,Al(t),e)}function rr(e,t,n){"__proto__"==t&&st?st(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(t,n){for(var r=-1,o=n.length,i=xe(o),a=null==t;++r<o;)i[r]=a?e:Tl(t,n[r]);return i}function ir(t,n,r){return t==t&&(r!==e&&(t=t<=r?t:r),n!==e&&(t=t>=n?t:n)),t}function ar(t,n,r,o,i,a){var l,s=1&n,c=2&n,u=4&n;if(r&&(l=i?r(t,o,i,a):r(t)),l!==e)return l;if(!tl(t))return t;var d=Va(t);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!s)return Po(t,l)}else{var h=pi(t),f=h==v||h==b;if(Xa(t))return Co(t,s);if(h==C||h==p||f&&!i){if(l=c||f?{}:mi(t),!s)return c?function(e,t){return Mo(e,hi(e),t)}(t,function(e,t){return e&&Mo(t,Il(t),e)}(l,t)):function(e,t){return Mo(e,di(e),t)}(t,nr(l,t))}else{if(!ot[h])return i?t:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case M:return ko(e);case m:case g:return new o(+e);case O:return function(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case A:case I:case R:case L:case B:case z:case D:case j:return So(e,n);case x:return new o;case w:case $:return new o(e);case S:return function(e){var t=new e.constructor(e.source,ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new o;case T:return r=e,Bn?Ee(Bn.call(r)):{}}}(t,h,s)}}a||(a=new qn);var y=a.get(t);if(y)return y;a.set(t,l),ll(t)?t.forEach(function(e){l.add(ar(e,n,r,e,t,a))}):rl(t)&&t.forEach(function(e,o){l.set(o,ar(e,n,r,o,t,a))});var k=d?e:(u?c?ri:ni:c?Il:Al)(t);return St(k||t,function(e,o){k&&(e=t[o=e]),Jn(l,o,ar(e,n,r,o,t,a))}),l}function lr(t,n,r){var o=r.length;if(null==t)return!o;for(t=Ee(t);o--;){var i=r[o],a=n[i],l=t[i];if(l===e&&!(i in t)||!a(l))return!1}return!0}function sr(n,r,o){if("function"!=typeof n)throw new Pe(t);return Mi(function(){n.apply(e,o)},r)}function cr(e,t,n,r){var o=-1,i=Pt,a=!0,l=e.length,s=[],c=t.length;if(!l)return s;n&&(t=Ot(t,Gt(n))),r?(i=Mt,a=!1):t.length>=200&&(i=Yt,a=!1,t=new Un(t));e:for(;++o<l;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;s.push(u)}else i(t,d,r)||s.push(u)}return s}Dn.templateSettings={escape:q,evaluate:G,interpolate:X,variable:"",imports:{_:Dn}},Dn.prototype=_n.prototype,Dn.prototype.constructor=Dn,Fn.prototype=jn(_n.prototype),Fn.prototype.constructor=Fn,Hn.prototype=jn(_n.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(t){var r=this.__data__;if(Tn){var o=r[t];return o===n?e:o}return Re.call(r,t)?r[t]:e},Wn.prototype.has=function(t){var n=this.__data__;return Tn?n[t]!==e:Re.call(n,t)},Wn.prototype.set=function(t,r){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=Tn&&r===e?n:r,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Kn.prototype.get=function(t){var n=this.__data__,r=er(n,t);return r<0?e:n[r][1]},Kn.prototype.has=function(e){return er(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(kn||Kn),string:new Wn}},Vn.prototype.delete=function(e){var t=si(this,e).delete(e);return this.size-=t?1:0,t},Vn.prototype.get=function(e){return si(this,e).get(e)},Vn.prototype.has=function(e){return si(this,e).has(e)},Vn.prototype.set=function(e,t){var n=si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Un.prototype.add=Un.prototype.push=function(e){return this.__data__.set(e,n),this},Un.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.clear=function(){this.__data__=new Kn,this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},qn.prototype.get=function(e){return this.__data__.get(e)},qn.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(e,t),this.size=n.size,this};var ur=Ao(vr),dr=Ao(br,!0);function hr(e,t){var n=!0;return ur(e,function(e,r,o){return n=!!t(e,r,o)}),n}function pr(t,n,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],l=n(a);if(null!=l&&(s===e?l==l&&!cl(l):r(l,s)))var s=l,c=a}return c}function fr(e,t){var n=[];return ur(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?mr(l,t-1,n,r,o):Nt(o,l):r||(o[o.length]=l)}return o}var gr=Io(),yr=Io(!0);function vr(e,t){return e&&gr(e,t,Al)}function br(e,t){return e&&yr(e,t,Al)}function xr(e,t){return Tt(t,function(t){return Qa(e[t])})}function wr(t,n){for(var r=0,o=(n=vo(n,t)).length;null!=t&&r<o;)t=t[Di(n[r++])];return r&&r==o?t:e}function Cr(e,t,n){var r=t(e);return Va(e)?r:Nt(r,n(e))}function kr(t){return null==t?t===e?"[object Undefined]":"[object Null]":it&&it in Ee(t)?function(t){var n=Re.call(t,it),r=t[it];try{t[it]=e;var o=!0}catch(e){}var i=ze.call(t);return o&&(n?t[it]=r:delete t[it]),i}(t):function(e){return ze.call(e)}(t)}function Sr(e,t){return e>t}function Er(e,t){return null!=e&&Re.call(e,t)}function $r(e,t){return null!=e&&t in Ee(e)}function Tr(t,n,r){for(var o=r?Mt:Pt,i=t[0].length,a=t.length,l=a,s=xe(a),c=1/0,u=[];l--;){var d=t[l];l&&n&&(d=Ot(d,Gt(n))),c=yn(d.length,c),s[l]=!r&&(n||i>=120&&d.length>=120)?new Un(l&&d):e}d=t[0];var h=-1,p=s[0];e:for(;++h<i&&u.length<c;){var f=d[h],m=n?n(f):f;if(f=r||0!==f?f:0,!(p?Yt(p,m):o(u,m,r))){for(l=a;--l;){var g=s[l];if(!(g?Yt(g,m):o(t[l],m,r)))continue e}p&&p.push(m),u.push(f)}}return u}function Pr(t,n,r){var o=null==(t=$i(t,n=vo(n,t)))?t:t[Di(Zi(n))];return null==o?e:Ct(o,t,r)}function Mr(e){return nl(e)&&kr(e)==p}function Or(t,n,r,o,i){return t===n||(null==t||null==n||!nl(t)&&!nl(n)?t!=t&&n!=n:function(t,n,r,o,i,a){var l=Va(t),s=Va(n),c=l?f:pi(t),u=s?f:pi(n),d=(c=c==p?C:c)==C,h=(u=u==p?C:u)==C,v=c==u;if(v&&Xa(t)){if(!Xa(n))return!1;l=!0,d=!1}if(v&&!d)return a||(a=new qn),l||ul(t)?ei(t,n,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!i(new We(e),new We(t)));case m:case g:case w:return Fa(+e,+t);case y:return e.name==t.name&&e.message==t.message;case S:case $:return e==t+"";case x:var l=rn;case E:var s=1&r;if(l||(l=ln),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ei(l(e),l(t),r,o,i,a);return a.delete(e),u;case T:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(t,n,c,r,o,i,a);if(!(1&r)){var b=d&&Re.call(t,"__wrapped__"),k=h&&Re.call(n,"__wrapped__");if(b||k){var P=b?t.value():t,N=k?n.value():n;return a||(a=new qn),i(P,N,r,o,a)}}return!!v&&(a||(a=new qn),function(t,n,r,o,i,a){var l=1&r,s=ni(t),c=s.length,u=ni(n),d=u.length;if(c!=d&&!l)return!1;for(var h=c;h--;){var p=s[h];if(!(l?p in n:Re.call(n,p)))return!1}var f=a.get(t),m=a.get(n);if(f&&m)return f==n&&m==t;var g=!0;a.set(t,n),a.set(n,t);for(var y=l;++h<c;){var v=t[p=s[h]],b=n[p];if(o)var x=l?o(b,v,p,n,t,a):o(v,b,p,t,n,a);if(!(x===e?v===b||i(v,b,r,o,a):x)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var w=t.constructor,C=n.constructor;w==C||!("constructor"in t)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof C&&C instanceof C||(g=!1)}return a.delete(t),a.delete(n),g}(t,n,r,o,i,a))}(t,n,r,o,Or,i))}function Nr(t,n,r,o){var i=r.length,a=i,l=!o;if(null==t)return!a;for(t=Ee(t);i--;){var s=r[i];if(l&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<a;){var c=(s=r[i])[0],u=t[c],d=s[1];if(l&&s[2]){if(u===e&&!(c in t))return!1}else{var h=new qn;if(o)var p=o(u,d,c,t,n,h);if(!(p===e?Or(d,u,3,o,h):p))return!1}}return!0}function Ar(e){return!(!tl(e)||(t=e,Be&&Be in t))&&(Qa(e)?_e:pe).test(ji(e));var t}function Ir(e){return"function"==typeof e?e:null==e?os:"object"==typeof e?Va(e)?jr(e[0],e[1]):Dr(e):ps(e)}function Rr(e){if(!Ci(e))return mn(e);var t=[];for(var n in Ee(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=Ci(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Br(e,t){return e<t}function zr(e,t){var n=-1,r=qa(e)?xe(e.length):[];return ur(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Dr(e){var t=ci(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function jr(t,n){return bi(t)&&ki(n)?Si(Di(t),n):function(r){var o=Tl(r,t);return o===e&&o===n?Pl(r,t):Or(n,o,3)}}function _r(t,n,r,o,i){t!==n&&gr(n,function(a,l){if(i||(i=new qn),tl(a))!function(t,n,r,o,i,a,l){var s=Ti(t,r),c=Ti(n,r),u=l.get(c);if(u)Qn(t,r,u);else{var d=a?a(s,c,r+"",t,n,l):e,h=d===e;if(h){var p=Va(c),f=!p&&Xa(c),m=!p&&!f&&ul(c);d=c,p||f||m?Va(s)?d=s:Ga(s)?d=Po(s):f?(h=!1,d=Co(c,!0)):m?(h=!1,d=So(c,!0)):d=[]:il(c)||Ka(c)?(d=s,Ka(s)?d=vl(s):tl(s)&&!Qa(s)||(d=mi(c))):h=!1}h&&(l.set(c,d),i(d,c,o,a,l),l.delete(c)),Qn(t,r,d)}}(t,n,l,r,_r,o,i);else{var s=o?o(Ti(t,l),a,l+"",t,n,i):e;s===e&&(s=a),Qn(t,l,s)}},Il)}function Fr(t,n){var r=t.length;if(r)return yi(n+=n<0?r:0,r)?t[n]:e}function Hr(e,t,n){t=t.length?Ot(t,function(e){return Va(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e}):[os];var r=-1;return t=Ot(t,Gt(li())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(zr(e,function(e,n,o){return{criteria:Ot(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=Eo(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=wr(e,a);n(l,a)&&Zr(i,vo(a,e),l)}return i}function Kr(e,t,n,r){var o=r?jt:Dt,i=-1,a=t.length,l=e;for(e===t&&(t=Po(t)),n&&(l=Ot(e,Gt(n)));++i<a;)for(var s=0,c=t[i],u=n?n(c):c;(s=o(l,u,s,r))>-1;)l!==e&&Ge.call(l,s,1),Ge.call(e,s,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;yi(o)?Ge.call(e,o,1):co(e,o)}}return e}function Ur(e,t){return e+mt(xn()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>c)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Oi(Ei(e,t,os),e+"")}function Xr(e){return Xn(Fl(e))}function Yr(e,t){var n=Fl(e);return Ii(n,ir(t,0,n.length))}function Zr(t,n,r,o){if(!tl(t))return t;for(var i=-1,a=(n=vo(n,t)).length,l=a-1,s=t;null!=s&&++i<a;){var c=Di(n[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=l){var d=s[c];(u=o?o(d,c,s):e)===e&&(u=tl(d)?d:yi(n[i+1])?[]:{})}Jn(s,c,u),s=s[c]}return t}var Qr=Pn?function(e,t){return Pn.set(e,t),e}:os,Jr=st?function(e,t){return st(e,"toString",{configurable:!0,enumerable:!1,value:ts(t),writable:!0})}:os;function eo(e){return Ii(Fl(e))}function to(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=xe(o);++r<o;)i[r]=e[r+t];return i}function no(e,t){var n;return ur(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,os,n)}function oo(t,n,r,o){var i=0,a=null==t?0:t.length;if(0===a)return 0;for(var l=(n=r(n))!=n,s=null===n,c=cl(n),u=n===e;i<a;){var d=mt((i+a)/2),h=r(t[d]),p=h!==e,f=null===h,m=h==h,g=cl(h);if(l)var y=o||m;else y=u?m&&(o||p):s?m&&p&&(o||!f):c?m&&p&&!f&&(o||!g):!f&&!g&&(o?h<=n:h<n);y?i=d+1:a=d}return yn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Fa(l,s)){var s=l;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:cl(e)?u:+e}function lo(e){if("string"==typeof e)return e;if(Va(e))return Ot(e,lo)+"";if(cl(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function so(e,t,n){var r=-1,o=Pt,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=Mt;else if(i>=200){var c=t?null:Go(e);if(c)return ln(c);a=!1,o=Yt,s=new Un}else s=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var h=s.length;h--;)if(s[h]===d)continue e;t&&s.push(d),l.push(u)}else o(s,d,n)||(s!==l&&s.push(d),l.push(u))}return l}function co(e,t){var n=-1,r=(t=vo(t,e)).length;if(!r)return!0;for(;++n<r;){var o=Di(t[n]);if("__proto__"===o&&!Re.call(e,"__proto__"))return!1;if(("constructor"===o||"prototype"===o)&&n<r-1)return!1}var i=$i(e,t);return null==i||delete i[Di(Zi(t))]}function uo(e,t,n,r){return Zr(e,t,n(wr(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Hn&&(n=n.value()),At(t,function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))},n)}function fo(e,t,n){var r=e.length;if(r<2)return r?so(e[0]):[];for(var o=-1,i=xe(r);++o<r;)for(var a=e[o],l=-1;++l<r;)l!=o&&(i[o]=cr(i[o]||a,e[l],t,n));return so(mr(i,1),t,n)}function mo(t,n,r){for(var o=-1,i=t.length,a=n.length,l={};++o<i;){var s=o<a?n[o]:e;r(l,t[o],s)}return l}function go(e){return Ga(e)?e:[]}function yo(e){return"function"==typeof e?e:os}function vo(e,t){return Va(e)?e:bi(e,t)?[e]:zi(bl(e))}var bo=Gr;function xo(t,n,r){var o=t.length;return r=r===e?o:r,!n&&r>=o?t:to(t,n,r)}var wo=ct||function(e){return ut.clearTimeout(e)};function Co(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function ko(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function So(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Eo(t,n){if(t!==n){var r=t!==e,o=null===t,i=t==t,a=cl(t),l=n!==e,s=null===n,c=n==n,u=cl(n);if(!s&&!u&&!a&&t>n||a&&l&&c&&!s&&!u||o&&l&&c||!r&&c||!i)return 1;if(!o&&!a&&!u&&t<n||u&&r&&i&&!o&&!a||s&&r&&i||!l&&i||!c)return-1}return 0}function $o(e,t,n,r){for(var o=-1,i=e.length,a=n.length,l=-1,s=t.length,c=gn(i-a,0),u=xe(s+c),d=!r;++l<s;)u[l]=t[l];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;c--;)u[l++]=e[o++];return u}function To(e,t,n,r){for(var o=-1,i=e.length,a=-1,l=n.length,s=-1,c=t.length,u=gn(i-l,0),d=xe(u+c),h=!r;++o<u;)d[o]=e[o];for(var p=o;++s<c;)d[p+s]=t[s];for(;++a<l;)(h||o<i)&&(d[p+n[a]]=e[o++]);return d}function Po(e,t){var n=-1,r=e.length;for(t||(t=xe(r));++n<r;)t[n]=e[n];return t}function Mo(t,n,r,o){var i=!r;r||(r={});for(var a=-1,l=n.length;++a<l;){var s=n[a],c=o?o(r[s],t[s],s,r,t):e;c===e&&(c=t[s]),i?rr(r,s,c):Jn(r,s,c)}return r}function Oo(e,t){return function(n,r){var o=Va(n)?kt:tr,i=t?t():{};return o(n,e,li(r,2),i)}}function No(t){return Gr(function(n,r){var o=-1,i=r.length,a=i>1?r[i-1]:e,l=i>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(i--,a):e,l&&vi(r[0],r[1],l)&&(a=i<3?e:a,i=1),n=Ee(n);++o<i;){var s=r[o];s&&t(n,s,o,a)}return n})}function Ao(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ee(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=Ee(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}function Ro(t){return function(n){var r=nn(n=bl(n))?cn(n):e,o=r?r[0]:n.charAt(0),i=r?xo(r,1).join(""):n.slice(1);return o[t]()+i}}function Lo(e){return function(t){return At(Ql(Kl(t).replace(Xe,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return tl(r)?r:n}}function zo(t){return function(n,r,o){var i=Ee(n);if(!qa(n)){var a=li(r,3);n=Al(n),r=function(e){return a(i[e],e,i)}}var l=t(n,r,o);return l>-1?i[a?n[l]:l]:e}}function Do(n){return ti(function(r){var o=r.length,i=o,a=Fn.prototype.thru;for(n&&r.reverse();i--;){var l=r[i];if("function"!=typeof l)throw new Pe(t);if(a&&!s&&"wrapper"==ii(l))var s=new Fn([],!0)}for(i=s?i:o;++i<o;){var c=ii(l=r[i]),u="wrapper"==c?oi(l):e;s=u&&xi(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[ii(u[0])].apply(s,u[3]):1==l.length&&xi(l)?s[c]():s.thru(l)}return function(){var e=arguments,t=e[0];if(s&&1==e.length&&Va(t))return s.plant(t).value();for(var n=0,i=o?r[n].apply(this,e):t;++n<o;)i=r[n].call(this,i);return i}})}function jo(t,n,r,o,a,l,s,c,u,d){var h=n&i,p=1&n,f=2&n,m=24&n,g=512&n,y=f?e:Bo(t);return function i(){for(var v=arguments.length,b=xe(v),x=v;x--;)b[x]=arguments[x];if(m)var w=ai(i),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,w);if(o&&(b=$o(b,o,a,m)),l&&(b=To(b,l,s,m)),v-=C,m&&v<d){var k=an(b,w);return Uo(t,n,jo,i.placeholder,r,b,k,c,u,d-v)}var S=p?r:this,E=f?S[t]:t;return v=b.length,c?b=function(t,n){for(var r=t.length,o=yn(n.length,r),i=Po(t);o--;){var a=n[o];t[o]=yi(a,r)?i[a]:e}return t}(b,c):g&&v>1&&b.reverse(),h&&u<v&&(b.length=u),this&&this!==ut&&this instanceof i&&(E=y||Bo(E)),E.apply(S,b)}}function _o(e,t){return function(n,r){return function(e,t,n,r){return vr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function Fo(t,n){return function(r,o){var i;if(r===e&&o===e)return n;if(r!==e&&(i=r),o!==e){if(i===e)return o;"string"==typeof r||"string"==typeof o?(r=lo(r),o=lo(o)):(r=ao(r),o=ao(o)),i=t(r,o)}return i}}function Ho(e){return ti(function(t){return t=Ot(t,Gt(li())),Gr(function(n){var r=this;return e(t,function(e){return Ct(e,r,n)})})})}function Wo(t,n){var r=(n=n===e?" ":lo(n)).length;if(r<2)return r?qr(n,t):n;var o=qr(n,ft(t/sn(n)));return nn(n)?xo(cn(o),0,t).join(""):o.slice(0,t)}function Ko(t){return function(n,r,o){return o&&"number"!=typeof o&&vi(n,r,o)&&(r=o=e),n=fl(n),r===e?(r=n,n=0):r=fl(r),function(e,t,n,r){for(var o=-1,i=gn(ft((t-e)/(n||1)),0),a=xe(i);i--;)a[r?i:++o]=e,e+=n;return a}(n,r,o=o===e?n<r?1:-1:fl(o),t)}}function Vo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yl(t),n=yl(n)),e(t,n)}}function Uo(t,n,r,i,a,l,s,c,u,d){var h=8&n;n|=h?o:64,4&(n&=~(h?64:o))||(n&=-4);var p=[t,n,a,h?l:e,h?s:e,h?e:l,h?e:s,c,u,d],f=r.apply(e,p);return xi(t)&&Pi(f,p),f.placeholder=i,Ni(f,t,n)}function qo(e){var t=Se[e];return function(e,n){if(e=yl(e),(n=null==n?0:yn(ml(n),292))&&pn(e)){var r=(bl(e)+"e").split("e");return+((r=(bl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=En&&1/ln(new En([,-0]))[1]==l?function(e){return new En(e)}:cs;function Xo(e){return function(t){var n=pi(t);return n==x?rn(t):n==E?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Ot(t,function(t){return[t,e[t]]})}(t,e(t))}}function Yo(n,l,s,c,u,d,h,p){var f=2&l;if(!f&&"function"!=typeof n)throw new Pe(t);var m=c?c.length:0;if(m||(l&=-97,c=u=e),h=h===e?h:gn(ml(h),0),p=p===e?p:ml(p),m-=u?u.length:0,64&l){var g=c,y=u;c=u=e}var v=f?e:oi(n),b=[n,l,s,c,u,g,y,d,h,p];if(v&&function(e,t){var n=e[1],o=t[1],l=n|o,s=l<131,c=o==i&&8==n||o==i&&n==a&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!s&&!c)return e;1&o&&(e[2]=t[2],l|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?$o(d,u,t[4]):u,e[4]=d?an(e[3],r):t[4]}(u=t[5])&&(d=e[5],e[5]=d?To(d,u,t[6]):u,e[6]=d?an(e[5],r):t[6]),(u=t[7])&&(e[7]=u),o&i&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=l}(b,v),n=b[0],l=b[1],s=b[2],c=b[3],u=b[4],!(p=b[9]=b[9]===e?f?0:n.length:gn(b[9]-m,0))&&24&l&&(l&=-25),l&&1!=l)x=8==l||16==l?function(t,n,r){var o=Bo(t);return function i(){for(var a=arguments.length,l=xe(a),s=a,c=ai(i);s--;)l[s]=arguments[s];var u=a<3&&l[0]!==c&&l[a-1]!==c?[]:an(l,c);return(a-=u.length)<r?Uo(t,n,jo,i.placeholder,e,l,u,e,e,r-a):Ct(this&&this!==ut&&this instanceof i?o:t,this,l)}}(n,l,p):l!=o&&33!=l||u.length?jo.apply(e,b):function(e,t,n,r){var o=1&t,i=Bo(e);return function t(){for(var a=-1,l=arguments.length,s=-1,c=r.length,u=xe(c+l),d=this&&this!==ut&&this instanceof t?i:e;++s<c;)u[s]=r[s];for(;l--;)u[s++]=arguments[++a];return Ct(d,o?n:this,u)}}(n,l,s,c);else var x=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==ut&&this instanceof t?o:e).apply(r?n:this,arguments)}}(n,l,s);return Ni((v?Qr:Pi)(x,b),n,l)}function Zo(t,n,r,o){return t===e||Fa(t,Ne[r])&&!Re.call(o,r)?n:t}function Qo(t,n,r,o,i,a){return tl(t)&&tl(n)&&(a.set(n,t),_r(t,n,e,Qo,a),a.delete(n)),t}function Jo(t){return il(t)?e:t}function ei(t,n,r,o,i,a){var l=1&r,s=t.length,c=n.length;if(s!=c&&!(l&&c>s))return!1;var u=a.get(t),d=a.get(n);if(u&&d)return u==n&&d==t;var h=-1,p=!0,f=2&r?new Un:e;for(a.set(t,n),a.set(n,t);++h<s;){var m=t[h],g=n[h];if(o)var y=l?o(g,m,h,n,t,a):o(m,g,h,t,n,a);if(y!==e){if(y)continue;p=!1;break}if(f){if(!Rt(n,function(e,t){if(!Yt(f,t)&&(m===e||i(m,e,r,o,a)))return f.push(t)})){p=!1;break}}else if(m!==g&&!i(m,g,r,o,a)){p=!1;break}}return a.delete(t),a.delete(n),p}function ti(t){return Oi(Ei(t,e,Ui),t+"")}function ni(e){return Cr(e,Al,di)}function ri(e){return Cr(e,Il,hi)}var oi=Pn?function(e){return Pn.get(e)}:cs;function ii(e){for(var t=e.name+"",n=Mn[t],r=Re.call(Mn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Re.call(Dn,"placeholder")?Dn:e).placeholder}function li(){var e=Dn.iteratee||is;return e=e===is?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function si(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ci(e){for(var t=Al(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ki(o)]}return t}function ui(t,n){var r=function(t,n){return null==t?e:t[n]}(t,n);return Ar(r)?r:e}var di=Lt?function(e){return null==e?[]:(e=Ee(e),Tt(Lt(e),function(t){return qe.call(e,t)}))}:gs,hi=Lt?function(e){for(var t=[];e;)Nt(t,di(e)),e=Ve(e);return t}:gs,pi=kr;function fi(e,t,n){for(var r=-1,o=(t=vo(t,e)).length,i=!1;++r<o;){var a=Di(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&el(o)&&yi(a,o)&&(Va(e)||Ka(e))}function mi(e){return"function"!=typeof e.constructor||Ci(e)?{}:jn(Ve(e))}function gi(e){return Va(e)||Ka(e)||!!(Ze&&e&&e[Ze])}function yi(e,t){var n=typeof e;return!!(t=null==t?c:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!tl(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&yi(t,n.length):"string"==r&&t in n)&&Fa(n[t],e)}function bi(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cl(e))||Z.test(e)||!Y.test(e)||null!=t&&e in Ee(t)}function xi(e){var t=ii(e),n=Dn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(Cn&&pi(new Cn(new ArrayBuffer(1)))!=O||kn&&pi(new kn)!=x||Sn&&pi(Sn.resolve())!=k||En&&pi(new En)!=E||$n&&pi(new $n)!=P)&&(pi=function(t){var n=kr(t),r=n==C?t.constructor:e,o=r?ji(r):"";if(o)switch(o){case On:return O;case Nn:return x;case An:return k;case In:return E;case Rn:return P}return n});var wi=Ae?Qa:ys;function Ci(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function ki(e){return e==e&&!tl(e)}function Si(t,n){return function(r){return null!=r&&r[t]===n&&(n!==e||t in Ee(r))}}function Ei(t,n,r){return n=gn(n===e?t.length-1:n,0),function(){for(var e=arguments,o=-1,i=gn(e.length-n,0),a=xe(i);++o<i;)a[o]=e[n+o];o=-1;for(var l=xe(n+1);++o<n;)l[o]=e[o];return l[n]=r(a),Ct(t,this,l)}}function $i(e,t){return t.length<2?e:wr(e,to(t,0,-1))}function Ti(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pi=Ai(Qr),Mi=ht||function(e,t){return ut.setTimeout(e,t)},Oi=Ai(Jr);function Ni(e,t,n){var r=t+"";return Oi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(h,function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(ie):[]}(r),n)))}function Ai(t){var n=0,r=0;return function(){var o=vn(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Ii(t,n){var r=-1,o=t.length,i=o-1;for(n=n===e?o:n;++r<n;){var a=Ur(r,i),l=t[a];t[a]=t[r],t[r]=l}return t.length=n,t}var Ri,Li,Bi,zi=(Ri=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Q,function(e,n,r,o){t.push(r?o.replace(se,"$1"):n||e)}),t},Li=La(Ri,function(e){return 500===Bi.size&&Bi.clear(),e}),Bi=Li.cache,Li);function Di(e){if("string"==typeof e||cl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ji(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function _i(e){if(e instanceof Hn)return e.clone();var t=new Fn(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fi=Gr(function(e,t){return Ga(e)?cr(e,mr(t,1,Ga,!0)):[]}),Hi=Gr(function(t,n){var r=Zi(n);return Ga(r)&&(r=e),Ga(t)?cr(t,mr(n,1,Ga,!0),li(r,2)):[]}),Wi=Gr(function(t,n){var r=Zi(n);return Ga(r)&&(r=e),Ga(t)?cr(t,mr(n,1,Ga,!0),e,r):[]});function Ki(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ml(n);return o<0&&(o=gn(r+o,0)),zt(e,li(t,3),o)}function Vi(t,n,r){var o=null==t?0:t.length;if(!o)return-1;var i=o-1;return r!==e&&(i=ml(r),i=r<0?gn(o+i,0):yn(i,o-1)),zt(t,li(n,3),i,!0)}function Ui(e){return null!=e&&e.length?mr(e,1):[]}function qi(t){return t&&t.length?t[0]:e}var Gi=Gr(function(e){var t=Ot(e,go);return t.length&&t[0]===e[0]?Tr(t):[]}),Xi=Gr(function(t){var n=Zi(t),r=Ot(t,go);return n===Zi(r)?n=e:r.pop(),r.length&&r[0]===t[0]?Tr(r,li(n,2)):[]}),Yi=Gr(function(t){var n=Zi(t),r=Ot(t,go);return(n="function"==typeof n?n:e)&&r.pop(),r.length&&r[0]===t[0]?Tr(r,e,n):[]});function Zi(t){var n=null==t?0:t.length;return n?t[n-1]:e}var Qi=Gr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var ea=ti(function(e,t){var n=null==e?0:e.length,r=or(e,t);return Vr(e,Ot(t,function(e){return yi(e,n)?+e:e}).sort(Eo)),r});function ta(e){return null==e?e:wn.call(e)}var na=Gr(function(e){return so(mr(e,1,Ga,!0))}),ra=Gr(function(t){var n=Zi(t);return Ga(n)&&(n=e),so(mr(t,1,Ga,!0),li(n,2))}),oa=Gr(function(t){var n=Zi(t);return n="function"==typeof n?n:e,so(mr(t,1,Ga,!0),e,n)});function ia(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,function(e){if(Ga(e))return t=gn(e.length,t),!0}),Ut(t,function(t){return Ot(e,Ht(t))})}function aa(t,n){if(!t||!t.length)return[];var r=ia(t);return null==n?r:Ot(r,function(t){return Ct(n,e,t)})}var la=Gr(function(e,t){return Ga(e)?cr(e,t):[]}),sa=Gr(function(e){return fo(Tt(e,Ga))}),ca=Gr(function(t){var n=Zi(t);return Ga(n)&&(n=e),fo(Tt(t,Ga),li(n,2))}),ua=Gr(function(t){var n=Zi(t);return n="function"==typeof n?n:e,fo(Tt(t,Ga),e,n)}),da=Gr(ia),ha=Gr(function(t){var n=t.length,r=n>1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,aa(t,r)});function pa(e){var t=Dn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ma=ti(function(t){var n=t.length,r=n?t[0]:0,o=this.__wrapped__,i=function(e){return or(e,t)};return!(n>1||this.__actions__.length)&&o instanceof Hn&&yi(r)?((o=o.slice(r,+r+(n?1:0))).__actions__.push({func:fa,args:[i],thisArg:e}),new Fn(o,this.__chain__).thru(function(t){return n&&!t.length&&t.push(e),t})):this.thru(i)}),ga=Oo(function(e,t,n){Re.call(e,n)?++e[n]:rr(e,n,1)}),ya=zo(Ki),va=zo(Vi);function ba(e,t){return(Va(e)?St:ur)(e,li(t,3))}function xa(e,t){return(Va(e)?Et:dr)(e,li(t,3))}var wa=Oo(function(e,t,n){Re.call(e,n)?e[n].push(t):rr(e,n,[t])}),Ca=Gr(function(e,t,n){var r=-1,o="function"==typeof t,i=qa(e)?xe(e.length):[];return ur(e,function(e){i[++r]=o?Ct(t,e,n):Pr(e,t,n)}),i}),ka=Oo(function(e,t,n){rr(e,n,t)});function Sa(e,t){return(Va(e)?Ot:zr)(e,li(t,3))}var Ea=Oo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),$a=Gr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,mr(t,1),[])}),Ta=dt||function(){return ut.Date.now()};function Pa(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,Yo(t,i,e,e,e,e,n)}function Ma(n,r){var o;if("function"!=typeof r)throw new Pe(t);return n=ml(n),function(){return--n>0&&(o=r.apply(this,arguments)),n<=1&&(r=e),o}}var Oa=Gr(function(e,t,n){var r=1;if(n.length){var i=an(n,ai(Oa));r|=o}return Yo(e,r,t,n,i)}),Na=Gr(function(e,t,n){var r=3;if(n.length){var i=an(n,ai(Na));r|=o}return Yo(t,r,e,n,i)});function Aa(n,r,o){var i,a,l,s,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof n)throw new Pe(t);function m(t){var r=i,o=a;return i=a=e,d=t,s=n.apply(o,r)}function g(t){var n=t-u;return u===e||n>=r||n<0||p&&t-d>=l}function y(){var e=Ta();if(g(e))return v(e);c=Mi(y,function(e){var t=r-(e-u);return p?yn(t,l-(e-d)):t}(e))}function v(t){return c=e,f&&i?m(t):(i=a=e,s)}function b(){var t=Ta(),n=g(t);if(i=arguments,a=this,u=t,n){if(c===e)return function(e){return d=e,c=Mi(y,r),h?m(e):s}(u);if(p)return wo(c),c=Mi(y,r),m(u)}return c===e&&(c=Mi(y,r)),s}return r=yl(r)||0,tl(o)&&(h=!!o.leading,l=(p="maxWait"in o)?gn(yl(o.maxWait)||0,r):l,f="trailing"in o?!!o.trailing:f),b.cancel=function(){c!==e&&wo(c),d=0,i=u=a=c=e},b.flush=function(){return c===e?s:v(Ta())},b}var Ia=Gr(function(e,t){return sr(e,1,t)}),Ra=Gr(function(e,t,n){return sr(e,yl(t)||0,n)});function La(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Pe(t);var r=function(){var t=arguments,o=n?n.apply(this,t):t[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,t);return r.cache=i.set(o,a)||i,a};return r.cache=new(La.Cache||Vn),r}function Ba(e){if("function"!=typeof e)throw new Pe(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}La.Cache=Vn;var za=bo(function(e,t){var n=(t=1==t.length&&Va(t[0])?Ot(t[0],Gt(li())):Ot(mr(t,1),Gt(li()))).length;return Gr(function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Ct(e,this,r)})}),Da=Gr(function(t,n){var r=an(n,ai(Da));return Yo(t,o,e,n,r)}),ja=Gr(function(t,n){var r=an(n,ai(ja));return Yo(t,64,e,n,r)}),_a=ti(function(t,n){return Yo(t,a,e,e,e,n)});function Fa(e,t){return e===t||e!=e&&t!=t}var Ha=Vo(Sr),Wa=Vo(function(e,t){return e>=t}),Ka=Mr(function(){return arguments}())?Mr:function(e){return nl(e)&&Re.call(e,"callee")&&!qe.call(e,"callee")},Va=xe.isArray,Ua=gt?Gt(gt):function(e){return nl(e)&&kr(e)==M};function qa(e){return null!=e&&el(e.length)&&!Qa(e)}function Ga(e){return nl(e)&&qa(e)}var Xa=Wt||ys,Ya=yt?Gt(yt):function(e){return nl(e)&&kr(e)==g};function Za(e){if(!nl(e))return!1;var t=kr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Qa(e){if(!tl(e))return!1;var t=kr(e);return t==v||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ml(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nl(e){return null!=e&&"object"==typeof e}var rl=vt?Gt(vt):function(e){return nl(e)&&pi(e)==x};function ol(e){return"number"==typeof e||nl(e)&&kr(e)==w}function il(e){if(!nl(e)||kr(e)!=C)return!1;var t=Ve(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==De}var al=bt?Gt(bt):function(e){return nl(e)&&kr(e)==S},ll=xt?Gt(xt):function(e){return nl(e)&&pi(e)==E};function sl(e){return"string"==typeof e||!Va(e)&&nl(e)&&kr(e)==$}function cl(e){return"symbol"==typeof e||nl(e)&&kr(e)==T}var ul=wt?Gt(wt):function(e){return nl(e)&&el(e.length)&&!!rt[kr(e)]},dl=Vo(Br),hl=Vo(function(e,t){return e<=t});function pl(e){if(!e)return[];if(qa(e))return sl(e)?cn(e):Po(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=pi(e);return(t==x?rn:t==E?ln:Fl)(e)}function fl(e){return e?(e=yl(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ml(e){var t=fl(e),n=t%1;return t==t?n?t-n:t:0}function gl(e){return e?ir(ml(e),0,d):0}function yl(e){if("number"==typeof e)return e;if(cl(e))return u;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=qt(e);var n=he.test(e);return n||fe.test(e)?lt(e.slice(2),n?2:8):de.test(e)?u:+e}function vl(e){return Mo(e,Il(e))}function bl(e){return null==e?"":lo(e)}var xl=No(function(e,t){if(Ci(t)||qa(t))Mo(t,Al(t),e);else for(var n in t)Re.call(t,n)&&Jn(e,n,t[n])}),wl=No(function(e,t){Mo(t,Il(t),e)}),Cl=No(function(e,t,n,r){Mo(t,Il(t),e,r)}),kl=No(function(e,t,n,r){Mo(t,Al(t),e,r)}),Sl=ti(or),El=Gr(function(t,n){t=Ee(t);var r=-1,o=n.length,i=o>2?n[2]:e;for(i&&vi(n[0],n[1],i)&&(o=1);++r<o;)for(var a=n[r],l=Il(a),s=-1,c=l.length;++s<c;){var u=l[s],d=t[u];(d===e||Fa(d,Ne[u])&&!Re.call(t,u))&&(t[u]=a[u])}return t}),$l=Gr(function(t){return t.push(e,Qo),Ct(Ll,e,t)});function Tl(t,n,r){var o=null==t?e:wr(t,n);return o===e?r:o}function Pl(e,t){return null!=e&&fi(e,t,$r)}var Ml=_o(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),e[t]=n},ts(os)),Ol=_o(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]},li),Nl=Gr(Pr);function Al(e){return qa(e)?Gn(e):Rr(e)}function Il(e){return qa(e)?Gn(e,!0):Lr(e)}var Rl=No(function(e,t,n){_r(e,t,n)}),Ll=No(function(e,t,n,r){_r(e,t,n,r)}),Bl=ti(function(e,t){var n={};if(null==e)return n;var r=!1;t=Ot(t,function(t){return t=vo(t,e),r||(r=t.length>1),t}),Mo(e,ri(e),n),r&&(n=ar(n,7,Jo));for(var o=t.length;o--;)co(n,t[o]);return n}),zl=ti(function(e,t){return null==e?{}:function(e,t){return Wr(e,t,function(t,n){return Pl(e,n)})}(e,t)});function Dl(e,t){if(null==e)return{};var n=Ot(ri(e),function(e){return[e]});return t=li(t),Wr(e,n,function(e,n){return t(e,n[0])})}var jl=Xo(Al),_l=Xo(Il);function Fl(e){return null==e?[]:Xt(e,Al(e))}var Hl=Lo(function(e,t,n){return t=t.toLowerCase(),e+(n?Wl(t):t)});function Wl(e){return Zl(bl(e).toLowerCase())}function Kl(e){return(e=bl(e))&&e.replace(ge,Jt).replace(Ye,"")}var Vl=Lo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ul=Lo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ql=Ro("toLowerCase"),Gl=Lo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Xl=Lo(function(e,t,n){return e+(n?" ":"")+Zl(t)}),Yl=Lo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Zl=Ro("toUpperCase");function Ql(t,n,r){return t=bl(t),(n=r?e:n)===e?function(e){return et.test(e)}(t)?function(e){return e.match(Qe)||[]}(t):function(e){return e.match(ae)||[]}(t):t.match(n)||[]}var Jl=Gr(function(t,n){try{return Ct(t,e,n)}catch(e){return Za(e)?e:new Ce(e)}}),es=ti(function(e,t){return St(t,function(t){t=Di(t),rr(e,t,Oa(e[t],e))}),e});function ts(e){return function(){return e}}var ns=Do(),rs=Do(!0);function os(e){return e}function is(e){return Ir("function"==typeof e?e:ar(e,1))}var as=Gr(function(e,t){return function(n){return Pr(n,e,t)}}),ls=Gr(function(e,t){return function(n){return Pr(e,n,t)}});function ss(e,t,n){var r=Al(t),o=xr(t,r);null!=n||tl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Al(t)));var i=!(tl(n)&&"chain"in n&&!n.chain),a=Qa(e);return St(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Po(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})}),e}function cs(){}var us=Ho(Ot),ds=Ho($t),hs=Ho(Rt);function ps(e){return bi(e)?Ht(Di(e)):function(e){return function(t){return wr(t,e)}}(e)}var fs=Ko(),ms=Ko(!0);function gs(){return[]}function ys(){return!1}var vs,bs=Fo(function(e,t){return e+t},0),xs=qo("ceil"),ws=Fo(function(e,t){return e/t},1),Cs=qo("floor"),ks=Fo(function(e,t){return e*t},1),Ss=qo("round"),Es=Fo(function(e,t){return e-t},0);return Dn.after=function(e,n){if("function"!=typeof n)throw new Pe(t);return e=ml(e),function(){if(--e<1)return n.apply(this,arguments)}},Dn.ary=Pa,Dn.assign=xl,Dn.assignIn=wl,Dn.assignInWith=Cl,Dn.assignWith=kl,Dn.at=Sl,Dn.before=Ma,Dn.bind=Oa,Dn.bindAll=es,Dn.bindKey=Na,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Dn.chain=pa,Dn.chunk=function(t,n,r){n=(r?vi(t,n,r):n===e)?1:gn(ml(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var i=0,a=0,l=xe(ft(o/n));i<o;)l[a++]=to(t,i,i+=n);return l},Dn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Dn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=xe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nt(Va(n)?Po(n):[n],mr(t,1))},Dn.cond=function(e){var n=null==e?0:e.length,r=li();return e=n?Ot(e,function(e){if("function"!=typeof e[1])throw new Pe(t);return[r(e[0]),e[1]]}):[],Gr(function(t){for(var r=-1;++r<n;){var o=e[r];if(Ct(o[0],this,t))return Ct(o[1],this,t)}})},Dn.conforms=function(e){return function(e){var t=Al(e);return function(n){return lr(n,e,t)}}(ar(e,1))},Dn.constant=ts,Dn.countBy=ga,Dn.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},Dn.curry=function t(n,r,o){var i=Yo(n,8,e,e,e,e,e,r=o?e:r);return i.placeholder=t.placeholder,i},Dn.curryRight=function t(n,r,o){var i=Yo(n,16,e,e,e,e,e,r=o?e:r);return i.placeholder=t.placeholder,i},Dn.debounce=Aa,Dn.defaults=El,Dn.defaultsDeep=$l,Dn.defer=Ia,Dn.delay=Ra,Dn.difference=Fi,Dn.differenceBy=Hi,Dn.differenceWith=Wi,Dn.drop=function(t,n,r){var o=null==t?0:t.length;return o?to(t,(n=r||n===e?1:ml(n))<0?0:n,o):[]},Dn.dropRight=function(t,n,r){var o=null==t?0:t.length;return o?to(t,0,(n=o-(n=r||n===e?1:ml(n)))<0?0:n):[]},Dn.dropRightWhile=function(e,t){return e&&e.length?ho(e,li(t,3),!0,!0):[]},Dn.dropWhile=function(e,t){return e&&e.length?ho(e,li(t,3),!0):[]},Dn.fill=function(t,n,r,o){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&vi(t,n,r)&&(r=0,o=i),function(t,n,r,o){var i=t.length;for((r=ml(r))<0&&(r=-r>i?0:i+r),(o=o===e||o>i?i:ml(o))<0&&(o+=i),o=r>o?0:gl(o);r<o;)t[r++]=n;return t}(t,n,r,o)):[]},Dn.filter=function(e,t){return(Va(e)?Tt:fr)(e,li(t,3))},Dn.flatMap=function(e,t){return mr(Sa(e,t),1)},Dn.flatMapDeep=function(e,t){return mr(Sa(e,t),l)},Dn.flatMapDepth=function(t,n,r){return r=r===e?1:ml(r),mr(Sa(t,n),r)},Dn.flatten=Ui,Dn.flattenDeep=function(e){return null!=e&&e.length?mr(e,l):[]},Dn.flattenDepth=function(t,n){return null!=t&&t.length?mr(t,n=n===e?1:ml(n)):[]},Dn.flip=function(e){return Yo(e,512)},Dn.flow=ns,Dn.flowRight=rs,Dn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];rr(r,o[0],o[1])}return r},Dn.functions=function(e){return null==e?[]:xr(e,Al(e))},Dn.functionsIn=function(e){return null==e?[]:xr(e,Il(e))},Dn.groupBy=wa,Dn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Dn.intersection=Gi,Dn.intersectionBy=Xi,Dn.intersectionWith=Yi,Dn.invert=Ml,Dn.invertBy=Ol,Dn.invokeMap=Ca,Dn.iteratee=is,Dn.keyBy=ka,Dn.keys=Al,Dn.keysIn=Il,Dn.map=Sa,Dn.mapKeys=function(e,t){var n={};return t=li(t,3),vr(e,function(e,r,o){rr(n,t(e,r,o),e)}),n},Dn.mapValues=function(e,t){var n={};return t=li(t,3),vr(e,function(e,r,o){rr(n,r,t(e,r,o))}),n},Dn.matches=function(e){return Dr(ar(e,1))},Dn.matchesProperty=function(e,t){return jr(e,ar(t,1))},Dn.memoize=La,Dn.merge=Rl,Dn.mergeWith=Ll,Dn.method=as,Dn.methodOf=ls,Dn.mixin=ss,Dn.negate=Ba,Dn.nthArg=function(e){return e=ml(e),Gr(function(t){return Fr(t,e)})},Dn.omit=Bl,Dn.omitBy=function(e,t){return Dl(e,Ba(li(t)))},Dn.once=function(e){return Ma(2,e)},Dn.orderBy=function(t,n,r,o){return null==t?[]:(Va(n)||(n=null==n?[]:[n]),Va(r=o?e:r)||(r=null==r?[]:[r]),Hr(t,n,r))},Dn.over=us,Dn.overArgs=za,Dn.overEvery=ds,Dn.overSome=hs,Dn.partial=Da,Dn.partialRight=ja,Dn.partition=Ea,Dn.pick=zl,Dn.pickBy=Dl,Dn.property=ps,Dn.propertyOf=function(t){return function(n){return null==t?e:wr(t,n)}},Dn.pull=Qi,Dn.pullAll=Ji,Dn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,li(n,2)):e},Dn.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?Kr(t,n,e,r):t},Dn.pullAt=ea,Dn.range=fs,Dn.rangeRight=ms,Dn.rearg=_a,Dn.reject=function(e,t){return(Va(e)?Tt:fr)(e,Ba(li(t,3)))},Dn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=li(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Vr(e,o),n},Dn.rest=function(n,r){if("function"!=typeof n)throw new Pe(t);return Gr(n,r=r===e?r:ml(r))},Dn.reverse=ta,Dn.sampleSize=function(t,n,r){return n=(r?vi(t,n,r):n===e)?1:ml(n),(Va(t)?Yn:Yr)(t,n)},Dn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Dn.setWith=function(t,n,r,o){return o="function"==typeof o?o:e,null==t?t:Zr(t,n,r,o)},Dn.shuffle=function(e){return(Va(e)?Zn:eo)(e)},Dn.slice=function(t,n,r){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&vi(t,n,r)?(n=0,r=o):(n=null==n?0:ml(n),r=r===e?o:ml(r)),to(t,n,r)):[]},Dn.sortBy=$a,Dn.sortedUniq=function(e){return e&&e.length?io(e):[]},Dn.sortedUniqBy=function(e,t){return e&&e.length?io(e,li(t,2)):[]},Dn.split=function(t,n,r){return r&&"number"!=typeof r&&vi(t,n,r)&&(n=r=e),(r=r===e?d:r>>>0)?(t=bl(t))&&("string"==typeof n||null!=n&&!al(n))&&!(n=lo(n))&&nn(t)?xo(cn(t),0,r):t.split(n,r):[]},Dn.spread=function(e,n){if("function"!=typeof e)throw new Pe(t);return n=null==n?0:gn(ml(n),0),Gr(function(t){var r=t[n],o=xo(t,0,n);return r&&Nt(o,r),Ct(e,this,o)})},Dn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Dn.take=function(t,n,r){return t&&t.length?to(t,0,(n=r||n===e?1:ml(n))<0?0:n):[]},Dn.takeRight=function(t,n,r){var o=null==t?0:t.length;return o?to(t,(n=o-(n=r||n===e?1:ml(n)))<0?0:n,o):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?ho(e,li(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?ho(e,li(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,n,r){var o=!0,i=!0;if("function"!=typeof e)throw new Pe(t);return tl(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Aa(e,n,{leading:o,maxWait:n,trailing:i})},Dn.thru=fa,Dn.toArray=pl,Dn.toPairs=jl,Dn.toPairsIn=_l,Dn.toPath=function(e){return Va(e)?Ot(e,Di):cl(e)?[e]:Po(zi(bl(e)))},Dn.toPlainObject=vl,Dn.transform=function(e,t,n){var r=Va(e),o=r||Xa(e)||ul(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tl(e)&&Qa(i)?jn(Ve(e)):{}}return(o?St:vr)(e,function(e,r,o){return t(n,e,r,o)}),n},Dn.unary=function(e){return Pa(e,1)},Dn.union=na,Dn.unionBy=ra,Dn.unionWith=oa,Dn.uniq=function(e){return e&&e.length?so(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?so(e,li(t,2)):[]},Dn.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?so(t,e,n):[]},Dn.unset=function(e,t){return null==e||co(e,t)},Dn.unzip=ia,Dn.unzipWith=aa,Dn.update=function(e,t,n){return null==e?e:uo(e,t,yo(n))},Dn.updateWith=function(t,n,r,o){return o="function"==typeof o?o:e,null==t?t:uo(t,n,yo(r),o)},Dn.values=Fl,Dn.valuesIn=function(e){return null==e?[]:Xt(e,Il(e))},Dn.without=la,Dn.words=Ql,Dn.wrap=function(e,t){return Da(yo(t),e)},Dn.xor=sa,Dn.xorBy=ca,Dn.xorWith=ua,Dn.zip=da,Dn.zipObject=function(e,t){return mo(e||[],t||[],Jn)},Dn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Zr)},Dn.zipWith=ha,Dn.entries=jl,Dn.entriesIn=_l,Dn.extend=wl,Dn.extendWith=Cl,ss(Dn,Dn),Dn.add=bs,Dn.attempt=Jl,Dn.camelCase=Hl,Dn.capitalize=Wl,Dn.ceil=xs,Dn.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=yl(r))==r?r:0),n!==e&&(n=(n=yl(n))==n?n:0),ir(yl(t),n,r)},Dn.clone=function(e){return ar(e,4)},Dn.cloneDeep=function(e){return ar(e,5)},Dn.cloneDeepWith=function(t,n){return ar(t,5,n="function"==typeof n?n:e)},Dn.cloneWith=function(t,n){return ar(t,4,n="function"==typeof n?n:e)},Dn.conformsTo=function(e,t){return null==t||lr(e,t,Al(t))},Dn.deburr=Kl,Dn.defaultTo=function(e,t){return null==e||e!=e?t:e},Dn.divide=ws,Dn.endsWith=function(t,n,r){t=bl(t),n=lo(n);var o=t.length,i=r=r===e?o:ir(ml(r),0,o);return(r-=n.length)>=0&&t.slice(r,i)==n},Dn.eq=Fa,Dn.escape=function(e){return(e=bl(e))&&U.test(e)?e.replace(K,en):e},Dn.escapeRegExp=function(e){return(e=bl(e))&&ee.test(e)?e.replace(J,"\\$&"):e},Dn.every=function(t,n,r){var o=Va(t)?$t:hr;return r&&vi(t,n,r)&&(n=e),o(t,li(n,3))},Dn.find=ya,Dn.findIndex=Ki,Dn.findKey=function(e,t){return Bt(e,li(t,3),vr)},Dn.findLast=va,Dn.findLastIndex=Vi,Dn.findLastKey=function(e,t){return Bt(e,li(t,3),br)},Dn.floor=Cs,Dn.forEach=ba,Dn.forEachRight=xa,Dn.forIn=function(e,t){return null==e?e:gr(e,li(t,3),Il)},Dn.forInRight=function(e,t){return null==e?e:yr(e,li(t,3),Il)},Dn.forOwn=function(e,t){return e&&vr(e,li(t,3))},Dn.forOwnRight=function(e,t){return e&&br(e,li(t,3))},Dn.get=Tl,Dn.gt=Ha,Dn.gte=Wa,Dn.has=function(e,t){return null!=e&&fi(e,t,Er)},Dn.hasIn=Pl,Dn.head=qi,Dn.identity=os,Dn.includes=function(e,t,n,r){e=qa(e)?e:Fl(e),n=n&&!r?ml(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),sl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Dt(e,t,n)>-1},Dn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ml(n);return o<0&&(o=gn(r+o,0)),Dt(e,t,o)},Dn.inRange=function(t,n,r){return n=fl(n),r===e?(r=n,n=0):r=fl(r),function(e,t,n){return e>=yn(t,n)&&e<gn(t,n)}(t=yl(t),n,r)},Dn.invoke=Nl,Dn.isArguments=Ka,Dn.isArray=Va,Dn.isArrayBuffer=Ua,Dn.isArrayLike=qa,Dn.isArrayLikeObject=Ga,Dn.isBoolean=function(e){return!0===e||!1===e||nl(e)&&kr(e)==m},Dn.isBuffer=Xa,Dn.isDate=Ya,Dn.isElement=function(e){return nl(e)&&1===e.nodeType&&!il(e)},Dn.isEmpty=function(e){if(null==e)return!0;if(qa(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||Xa(e)||ul(e)||Ka(e)))return!e.length;var t=pi(e);if(t==x||t==E)return!e.size;if(Ci(e))return!Rr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Dn.isEqual=function(e,t){return Or(e,t)},Dn.isEqualWith=function(t,n,r){var o=(r="function"==typeof r?r:e)?r(t,n):e;return o===e?Or(t,n,e,r):!!o},Dn.isError=Za,Dn.isFinite=function(e){return"number"==typeof e&&pn(e)},Dn.isFunction=Qa,Dn.isInteger=Ja,Dn.isLength=el,Dn.isMap=rl,Dn.isMatch=function(e,t){return e===t||Nr(e,t,ci(t))},Dn.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,Nr(t,n,ci(n),r)},Dn.isNaN=function(e){return ol(e)&&e!=+e},Dn.isNative=function(e){if(wi(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ar(e)},Dn.isNil=function(e){return null==e},Dn.isNull=function(e){return null===e},Dn.isNumber=ol,Dn.isObject=tl,Dn.isObjectLike=nl,Dn.isPlainObject=il,Dn.isRegExp=al,Dn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=c},Dn.isSet=ll,Dn.isString=sl,Dn.isSymbol=cl,Dn.isTypedArray=ul,Dn.isUndefined=function(t){return t===e},Dn.isWeakMap=function(e){return nl(e)&&pi(e)==P},Dn.isWeakSet=function(e){return nl(e)&&"[object WeakSet]"==kr(e)},Dn.join=function(e,t){return null==e?"":fn.call(e,t)},Dn.kebabCase=Vl,Dn.last=Zi,Dn.lastIndexOf=function(t,n,r){var o=null==t?0:t.length;if(!o)return-1;var i=o;return r!==e&&(i=(i=ml(r))<0?gn(o+i,0):yn(i,o-1)),n==n?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(t,n,i):zt(t,_t,i,!0)},Dn.lowerCase=Ul,Dn.lowerFirst=ql,Dn.lt=dl,Dn.lte=hl,Dn.max=function(t){return t&&t.length?pr(t,os,Sr):e},Dn.maxBy=function(t,n){return t&&t.length?pr(t,li(n,2),Sr):e},Dn.mean=function(e){return Ft(e,os)},Dn.meanBy=function(e,t){return Ft(e,li(t,2))},Dn.min=function(t){return t&&t.length?pr(t,os,Br):e},Dn.minBy=function(t,n){return t&&t.length?pr(t,li(n,2),Br):e},Dn.stubArray=gs,Dn.stubFalse=ys,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=ks,Dn.nth=function(t,n){return t&&t.length?Fr(t,ml(n)):e},Dn.noConflict=function(){return ut._===this&&(ut._=je),this},Dn.noop=cs,Dn.now=Ta,Dn.pad=function(e,t,n){e=bl(e);var r=(t=ml(t))?sn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(mt(o),n)+e+Wo(ft(o),n)},Dn.padEnd=function(e,t,n){e=bl(e);var r=(t=ml(t))?sn(e):0;return t&&r<t?e+Wo(t-r,n):e},Dn.padStart=function(e,t,n){e=bl(e);var r=(t=ml(t))?sn(e):0;return t&&r<t?Wo(t-r,n)+e:e},Dn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(bl(e).replace(te,""),t||0)},Dn.random=function(t,n,r){if(r&&"boolean"!=typeof r&&vi(t,n,r)&&(n=r=e),r===e&&("boolean"==typeof n?(r=n,n=e):"boolean"==typeof t&&(r=t,t=e)),t===e&&n===e?(t=0,n=1):(t=fl(t),n===e?(n=t,t=0):n=fl(n)),t>n){var o=t;t=n,n=o}if(r||t%1||n%1){var i=xn();return yn(t+i*(n-t+at("1e-"+((i+"").length-1))),n)}return Ur(t,n)},Dn.reduce=function(e,t,n){var r=Va(e)?At:Kt,o=arguments.length<3;return r(e,li(t,4),n,o,ur)},Dn.reduceRight=function(e,t,n){var r=Va(e)?It:Kt,o=arguments.length<3;return r(e,li(t,4),n,o,dr)},Dn.repeat=function(t,n,r){return n=(r?vi(t,n,r):n===e)?1:ml(n),qr(bl(t),n)},Dn.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(t,n,r){var o=-1,i=(n=vo(n,t)).length;for(i||(i=1,t=e);++o<i;){var a=null==t?e:t[Di(n[o])];a===e&&(o=i,a=r),t=Qa(a)?a.call(t):a}return t},Dn.round=Ss,Dn.runInContext=s,Dn.sample=function(e){return(Va(e)?Xn:Xr)(e)},Dn.size=function(e){if(null==e)return 0;if(qa(e))return sl(e)?sn(e):e.length;var t=pi(e);return t==x||t==E?e.size:Rr(e).length},Dn.snakeCase=Gl,Dn.some=function(t,n,r){var o=Va(t)?Rt:no;return r&&vi(t,n,r)&&(n=e),o(t,li(n,3))},Dn.sortedIndex=function(e,t){return ro(e,t)},Dn.sortedIndexBy=function(e,t,n){return oo(e,t,li(n,2))},Dn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Fa(e[r],t))return r}return-1},Dn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Dn.sortedLastIndexBy=function(e,t,n){return oo(e,t,li(n,2),!0)},Dn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Fa(e[n],t))return n}return-1},Dn.startCase=Xl,Dn.startsWith=function(e,t,n){return e=bl(e),n=null==n?0:ir(ml(n),0,e.length),t=lo(t),e.slice(n,n+t.length)==t},Dn.subtract=Es,Dn.sum=function(e){return e&&e.length?Vt(e,os):0},Dn.sumBy=function(e,t){return e&&e.length?Vt(e,li(t,2)):0},Dn.template=function(t,n,r){var o=Dn.templateSettings;r&&vi(t,n,r)&&(n=e),t=bl(t),n=kl({},n,o,Zo);var i=kl({},n.imports,o.imports,Zo),a=Al(i),l=Xt(i,a);St(a,function(e){if(le.test(e))throw new Ce("Invalid `imports` option passed into `_.template`")});var s,c,u=0,d=n.interpolate||ye,h="__p += '",p=$e((n.escape||ye).source+"|"+d.source+"|"+(d===X?ce:ye).source+"|"+(n.evaluate||ye).source+"|$","g"),f="//# sourceURL="+(Re.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";t.replace(p,function(e,n,r,o,i,a){return r||(r=o),h+=t.slice(u,a).replace(ve,tn),n&&(s=!0,h+="' +\n__e("+n+") +\n'"),i&&(c=!0,h+="';\n"+i+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=a+e.length,e}),h+="';\n";var m=Re.call(n,"variable")&&n.variable;if(m){if(le.test(m))throw new Ce("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(c?h.replace(_,""):h).replace(F,"$1").replace(H,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Jl(function(){return ke(a,f+"return "+h).apply(e,l)});if(g.source=h,Za(g))throw g;return g},Dn.times=function(e,t){if((e=ml(e))<1||e>c)return[];var n=d,r=yn(e,d);t=li(t),e-=d;for(var o=Ut(r,t);++n<e;)t(n);return o},Dn.toFinite=fl,Dn.toInteger=ml,Dn.toLength=gl,Dn.toLower=function(e){return bl(e).toLowerCase()},Dn.toNumber=yl,Dn.toSafeInteger=function(e){return e?ir(ml(e),-9007199254740991,c):0===e?e:0},Dn.toString=bl,Dn.toUpper=function(e){return bl(e).toUpperCase()},Dn.trim=function(t,n,r){if((t=bl(t))&&(r||n===e))return qt(t);if(!t||!(n=lo(n)))return t;var o=cn(t),i=cn(n);return xo(o,Zt(o,i),Qt(o,i)+1).join("")},Dn.trimEnd=function(t,n,r){if((t=bl(t))&&(r||n===e))return t.slice(0,un(t)+1);if(!t||!(n=lo(n)))return t;var o=cn(t);return xo(o,0,Qt(o,cn(n))+1).join("")},Dn.trimStart=function(t,n,r){if((t=bl(t))&&(r||n===e))return t.replace(te,"");if(!t||!(n=lo(n)))return t;var o=cn(t);return xo(o,Zt(o,cn(n))).join("")},Dn.truncate=function(t,n){var r=30,o="...";if(tl(n)){var i="separator"in n?n.separator:i;r="length"in n?ml(n.length):r,o="omission"in n?lo(n.omission):o}var a=(t=bl(t)).length;if(nn(t)){var l=cn(t);a=l.length}if(r>=a)return t;var s=r-sn(o);if(s<1)return o;var c=l?xo(l,0,s).join(""):t.slice(0,s);if(i===e)return c+o;if(l&&(s+=c.length-s),al(i)){if(t.slice(s).search(i)){var u,d=c;for(i.global||(i=$e(i.source,bl(ue.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var h=u.index;c=c.slice(0,h===e?s:h)}}else if(t.indexOf(lo(i),s)!=s){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+o},Dn.unescape=function(e){return(e=bl(e))&&V.test(e)?e.replace(W,dn):e},Dn.uniqueId=function(e){var t=++Le;return bl(e)+t},Dn.upperCase=Yl,Dn.upperFirst=Zl,Dn.each=ba,Dn.eachRight=xa,Dn.first=qi,ss(Dn,(vs={},vr(Dn,function(e,t){Re.call(Dn.prototype,t)||(vs[t]=e)}),vs),{chain:!1}),Dn.VERSION="4.18.1",St(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Dn[e].placeholder=Dn}),St(["drop","take"],function(t,n){Hn.prototype[t]=function(r){r=r===e?1:gn(ml(r),0);var o=this.__filtered__&&!n?new Hn(this):this.clone();return o.__filtered__?o.__takeCount__=yn(r,o.__takeCount__):o.__views__.push({size:yn(r,d),type:t+(o.__dir__<0?"Right":"")}),o},Hn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),St(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),St(["head","last"],function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}}),St(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}}),Hn.prototype.compact=function(){return this.filter(os)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Gr(function(e,t){return"function"==typeof e?new Hn(this):this.map(function(n){return Pr(n,e,t)})}),Hn.prototype.reject=function(e){return this.filter(Ba(li(e)))},Hn.prototype.slice=function(t,n){t=ml(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Hn(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=ml(n))<0?r.dropRight(-n):r.take(n-t)),r)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(d)},vr(Hn.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),o=/^(?:head|last)$/.test(n),i=Dn[o?"take"+("last"==n?"Right":""):n],a=o||/^find/.test(n);i&&(Dn.prototype[n]=function(){var n=this.__wrapped__,l=o?[1]:arguments,s=n instanceof Hn,c=l[0],u=s||Va(n),d=function(e){var t=i.apply(Dn,Nt([e],l));return o&&h?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(s=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=a&&!h,m=s&&!p;if(!a&&u){n=m?n:new Hn(this);var g=t.apply(n,l);return g.__actions__.push({func:fa,args:[d],thisArg:e}),new Fn(g,h)}return f&&m?t.apply(this,l):(g=this.thru(d),f?o?g.value()[0]:g.value():g)})}),St(["pop","push","shift","sort","splice","unshift"],function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Va(o)?o:[],e)}return this[n](function(n){return t.apply(Va(n)?n:[],e)})}}),vr(Hn.prototype,function(e,t){var n=Dn[t];if(n){var r=n.name+"";Re.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}}),Mn[jo(e,2).name]=[{name:"wrapper",func:e}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=gn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,s=l-a,c=r?l:a-1,u=this.__iteratees__,d=u.length,h=0,p=yn(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return po(e,this.__actions__);var f=[];e:for(;s--&&h<p;){for(var m=-1,g=e[c+=t];++m<d;){var y=u[m],v=y.iteratee,b=y.type,x=v(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}f[h++]=g}return f},Dn.prototype.at=ma,Dn.prototype.chain=function(){return pa(this)},Dn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Dn.prototype.next=function(){this.__values__===e&&(this.__values__=pl(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Dn.prototype.plant=function(t){for(var n,r=this;r instanceof _n;){var o=_i(r);o.__index__=0,o.__values__=e,n?i.__wrapped__=o:n=o;var i=o;r=r.__wrapped__}return i.__wrapped__=t,n},Dn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Hn){var n=t;return this.__actions__.length&&(n=new Hn(this)),(n=n.reverse()).__actions__.push({func:fa,args:[ta],thisArg:e}),new Fn(n,this.__chain__)}return this.thru(ta)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Je&&(Dn.prototype[Je]=function(){return this}),Dn}();ht?((ht.exports=hn)._=hn,dt._=hn):ut._=hn}.call(IM.exports)),IM.exports);const zM=c(BM);function DM(e,t){return function(){return e.apply(t,arguments)}}const{toString:jM}=Object.prototype,{getPrototypeOf:_M}=Object,{iterator:FM,toStringTag:HM}=Symbol,WM=(e=>t=>{const n=jM.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),KM=e=>(e=e.toLowerCase(),t=>WM(t)===e),VM=e=>t=>typeof t===e,{isArray:UM}=Array,qM=VM("undefined");function GM(e){return null!==e&&!qM(e)&&null!==e.constructor&&!qM(e.constructor)&&ZM(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const XM=KM("ArrayBuffer");const YM=VM("string"),ZM=VM("function"),QM=VM("number"),JM=e=>null!==e&&"object"==typeof e,eO=e=>{if("object"!==WM(e))return!1;const t=_M(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||HM in e||FM in e)},tO=KM("Date"),nO=KM("File"),rO=KM("Blob"),oO=KM("FileList");const iO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},aO=void 0!==iO.FormData?iO.FormData:void 0,lO=KM("URLSearchParams"),[sO,cO,uO,dO]=["ReadableStream","Request","Response","Headers"].map(KM);function hO(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),UM(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(GM(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function pO(e,t){if(GM(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const fO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,mO=e=>!qM(e)&&e!==fO;const gO=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&_M(Uint8Array)),yO=KM("HTMLFormElement"),vO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bO=KM("RegExp"),xO=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};hO(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const wO=KM("AsyncFunction"),CO=(kO="function"==typeof i,SO=ZM(fO.postMessage),kO?i:SO?(EO=`axios@${Math.random()}`,$O=[],fO.addEventListener("message",({source:e,data:t})=>{e===fO&&t===EO&&$O.length&&$O.shift()()},!1),e=>{$O.push(e),fO.postMessage(EO,"*")}):e=>setTimeout(e));var kO,SO,EO,$O;const TO="undefined"!=typeof queueMicrotask?queueMicrotask.bind(fO):"undefined"!=typeof process&&process.nextTick||CO,PO={isArray:UM,isArrayBuffer:XM,isBuffer:GM,isFormData:e=>{if(!e)return!1;if(aO&&e instanceof aO)return!0;const t=_M(e);if(!t||t===Object.prototype)return!1;if(!ZM(e.append))return!1;const n=WM(e);return"formdata"===n||"object"===n&&ZM(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&XM(e.buffer),t},isString:YM,isNumber:QM,isBoolean:e=>!0===e||!1===e,isObject:JM,isPlainObject:eO,isEmptyObject:e=>{if(!JM(e)||GM(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:sO,isRequest:cO,isResponse:uO,isHeaders:dO,isUndefined:qM,isDate:tO,isFile:nO,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:rO,isRegExp:bO,isFunction:ZM,isStream:e=>JM(e)&&ZM(e.pipe),isURLSearchParams:lO,isTypedArray:gO,isFileList:oO,forEach:hO,merge:function e(...t){const{caseless:n,skipUndefined:r}=mO(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=n&&pO(o,i)||i,l=vO(o,a)?o[a]:void 0;eO(l)&&eO(t)?o[a]=e(l,t):eO(t)?o[a]=e({},t):UM(t)?o[a]=t.slice():r&&qM(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++)t[e]&&hO(t[e],i);return o},extend:(e,t,n,{allOwnKeys:r}={})=>(hO(t,(t,r)=>{n&&ZM(t)?Object.defineProperty(e,r,{__proto__:null,value:DM(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),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(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)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&_M(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:WM,kindOfTest:KM,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(UM(e))return e;let t=e.length;if(!QM(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[FM]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:yO,hasOwnProperty:vO,hasOwnProp:vO,reduceDescriptors:xO,freezeMethods:e=>{xO(e,(t,n)=>{if(ZM(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];ZM(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return UM(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:pO,global:fO,isContextDefined:mO,isSpecCompliantForm:function(e){return!!(e&&ZM(e.append)&&"FormData"===e[HM]&&e[FM])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(JM(e)){if(t.has(e))return;if(GM(e))return e;if(!("toJSON"in e)){t.add(e);const r=UM(e)?[]:{};return hO(e,(e,t)=>{const o=n(e);!qM(o)&&(r[t]=o)}),t.delete(e),r}}return e};return n(e)},isAsyncFn:wO,isThenable:e=>e&&(JM(e)||ZM(e))&&ZM(e.then)&&ZM(e.catch),setImmediate:CO,asap:TO,isIterable:e=>null!=e&&ZM(e[FM])},MO=PO.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"]);const OO=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),NO=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function AO(e,t){return PO.isArray(e)?e.map(e=>AO(e,t)):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function IO(e){const t=Object.create(null);return PO.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>AO(e,NO))(e)}),t}const RO=Symbol("internals");function LO(e){return e&&String(e).trim().toLowerCase()}function BO(e){return!1===e||null==e?e:PO.isArray(e)?e.map(BO):(e=>AO(e,OO))(String(e))}function zO(e,t,n,r,o){return PO.isFunction(r)?r.call(this,t,n):(o&&(t=n),PO.isString(t)?PO.isString(r)?-1!==t.indexOf(r):PO.isRegExp(r)?r.test(t):void 0:void 0)}let DO=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=LO(t);if(!o)throw new Error("header name must be a non-empty string");const i=PO.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=BO(e))}const i=(e,t)=>PO.forEach(e,(e,n)=>o(e,n,t));if(PO.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(PO.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&MO[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(PO.isObject(e)&&PO.isIterable(e)){let n,r,o={};for(const t of e){if(!PO.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?PO.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=LO(e)){const n=PO.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(PO.isFunction(t))return t.call(this,e,n);if(PO.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=LO(e)){const n=PO.findKey(this,e);return!(!n||void 0===this[n]||t&&!zO(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=LO(e)){const o=PO.findKey(n,e);!o||t&&!zO(0,n[o],o,t)||(delete n[o],r=!0)}}return PO.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!zO(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return PO.forEach(this,(r,o)=>{const i=PO.findKey(n,o);if(i)return t[i]=BO(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=BO(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return PO.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&PO.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("\n")}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){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[RO]=this[RO]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=LO(e);t[r]||(!function(e,t){const n=PO.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return PO.isArray(e)?e.forEach(r):r(e),this}};DO.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),PO.reduceDescriptors(DO.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),PO.freezeMethods(DO);function jO(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(PO.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof DO&&(e=e.toJSON()),r.push(e),PO.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);PO.isUndefined(r)||(t[n]=r)});else{if(!PO.isPlainObject(e)&&function(e){if(PO.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(PO.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?"[REDACTED ****]":o(i);PO.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}let _O=class e extends Error{static from(t,n,r,o,i,a){const l=new e(t.message,n||t.code,r,o,i);return l.cause=t,l.name=t.name,null!=t.status&&null==l.status&&(l.status=t.status),a&&Object.assign(l,a),l}constructor(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&PO.hasOwnProp(e,"redact")?e.redact:void 0,n=PO.isArray(t)&&t.length>0?jO(e,t):PO.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}}};_O.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",_O.ERR_BAD_OPTION="ERR_BAD_OPTION",_O.ECONNABORTED="ECONNABORTED",_O.ETIMEDOUT="ETIMEDOUT",_O.ECONNREFUSED="ECONNREFUSED",_O.ERR_NETWORK="ERR_NETWORK",_O.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",_O.ERR_DEPRECATED="ERR_DEPRECATED",_O.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",_O.ERR_BAD_REQUEST="ERR_BAD_REQUEST",_O.ERR_CANCELED="ERR_CANCELED",_O.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",_O.ERR_INVALID_URL="ERR_INVALID_URL",_O.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function FO(e){return PO.isPlainObject(e)||PO.isArray(e)}function HO(e){return PO.endsWith(e,"[]")?e.slice(0,-2):e}function WO(e,t,n){return e?e.concat(t).map(function(e,t){return e=HO(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const KO=PO.toFlatObject(PO,{},null,function(e){return/^is[A-Z]/.test(e)});function VO(e,t,n){if(!PO.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=PO.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!PO.isUndefined(t[e])})).metaTokens,o=n.visitor||h,i=n.dots,l=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,u=s&&PO.isSpecCompliantForm(t);if(!PO.isFunction(o))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(PO.isDate(e))return e.toISOString();if(PO.isBoolean(e))return e.toString();if(!u&&PO.isBlob(e))throw new _O("Blob is not supported. Use a Buffer instead.");return PO.isArrayBuffer(e)||PO.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):a.from(e):e}function h(e,n,o){let a=e;if(PO.isReactNative(t)&&PO.isReactNativeBlob(e))return t.append(WO(o,n,i),d(e)),!1;if(e&&!o&&"object"==typeof e)if(PO.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(PO.isArray(e)&&function(e){return PO.isArray(e)&&!e.some(FO)}(e)||(PO.isFileList(e)||PO.endsWith(n,"[]"))&&(a=PO.toArray(e)))return n=HO(n),a.forEach(function(e,r){!PO.isUndefined(e)&&null!==e&&t.append(!0===l?WO([n],r,i):null===l?n:n+"[]",d(e))}),!1;return!!FO(e)||(t.append(WO(o,n,i),d(e)),!1)}const p=[],f=Object.assign(KO,{defaultVisitor:h,convertValue:d,isVisitable:FO});if(!PO.isObject(e))throw new TypeError("data must be an object");return function e(n,r,i=0){if(!PO.isUndefined(n)){if(i>c)throw new _O("Object is too deeply nested ("+i+" levels). Max depth: "+c,_O.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+r.join("."));p.push(n),PO.forEach(n,function(n,a){!0===(!(PO.isUndefined(n)||null===n)&&o.call(t,n,PO.isString(a)?a.trim():a,r,f))&&e(n,r?r.concat(a):[a],i+1)}),p.pop()}}(e),t}function UO(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function qO(e,t){this._pairs=[],e&&VO(e,this,t)}const GO=qO.prototype;function XO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function YO(e,t,n){if(!t)return e;const r=n&&n.encode||XO,o=PO.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(a=i?i(t,o):PO.isURLSearchParams(t)?t.toString():new qO(t,o).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}GO.append=function(e,t){this._pairs.push([e,t])},GO.toString=function(e){const t=e?function(t){return e.call(this,t,UO)}:UO;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ZO{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){PO.forEach(this.handlers,function(t){null!==t&&e(t)})}}const QO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},JO={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:qO,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},eN="undefined"!=typeof window&&"undefined"!=typeof document,tN="object"==typeof navigator&&navigator||void 0,nN=eN&&(!tN||["ReactNative","NativeScript","NS"].indexOf(tN.product)<0),rN="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,oN=eN&&window.location.href||"http://localhost",iN={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eN,hasStandardBrowserEnv:nN,hasStandardBrowserWebWorkerEnv:rN,navigator:tN,origin:oN},Symbol.toStringTag,{value:"Module"})),...JO};function aN(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),l=o>=e.length;if(i=!i&&PO.isArray(r)?r.length:i,l)return PO.hasOwnProp(r,i)?r[i]=PO.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a;PO.hasOwnProp(r,i)&&PO.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&PO.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(PO.isFormData(e)&&PO.isFunction(e.entries)){const n={};return PO.forEachEntry(e,(e,r)=>{t(function(e){return PO.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const lN=(e,t)=>null!=e&&PO.hasOwnProp(e,t)?e[t]:void 0;const sN={transitional:QO,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=PO.isObject(e);o&&PO.isHTMLForm(e)&&(e=new FormData(e));if(PO.isFormData(e))return r?JSON.stringify(aN(e)):e;if(PO.isArrayBuffer(e)||PO.isBuffer(e)||PO.isStream(e)||PO.isFile(e)||PO.isBlob(e)||PO.isReadableStream(e))return e;if(PO.isArrayBufferView(e))return e.buffer;if(PO.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=lN(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return VO(e,new iN.classes.URLSearchParams,{visitor:function(e,t,n,r){return iN.isNode&&PO.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=PO.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=lN(this,"env"),r=n&&n.FormData;return VO(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(PO.isString(e))try{return(t||JSON.parse)(e),PO.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=lN(this,"transitional")||sN.transitional,n=t&&t.forcedJSONParsing,r=lN(this,"responseType"),o="json"===r;if(PO.isResponse(e)||PO.isReadableStream(e))return e;if(e&&PO.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,lN(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw _O.from(e,_O.ERR_BAD_RESPONSE,this,null,lN(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iN.classes.FormData,Blob:iN.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function cN(e,t){const n=this||sN,r=t||n,o=DO.from(r.headers);let i=r.data;return PO.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function uN(e){return!(!e||!e.__CANCEL__)}PO.forEach(["delete","get","head","post","put","patch","query"],e=>{sN.headers[e]={}});let dN=class extends _O{constructor(e,t,n){super(null==e?"canceled":e,_O.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function hN(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new _O("Request failed with status code "+n.status,n.status>=400&&n.status<500?_O.ERR_BAD_REQUEST:_O.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const pN=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(l){const s=Date.now(),c=r[a];o||(o=s),n[i]=l,r[i]=s;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),s-o<t)return;const h=c&&s-c;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),l=t-o;l>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-l)))},()=>n&&a(n)]}(n=>{if(!n||"number"!=typeof n.loaded)return;const i=n.loaded,a=n.lengthComputable?n.total:void 0,l=null!=a?Math.min(i,a):i,s=Math.max(0,l-r),c=o(s);r=Math.max(r,l);e({loaded:l,total:a,progress:a?l/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a?(a-l)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},fN=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mN=e=>(...t)=>PO.asap(()=>e(...t)),gN=iN.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,iN.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(iN.origin),iN.navigator&&/(msie|trident)/i.test(iN.navigator.userAgent)):()=>!0,yN=iN.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const l=[`${e}=${encodeURIComponent(t)}`];PO.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),PO.isString(r)&&l.push(`path=${r}`),PO.isString(o)&&l.push(`domain=${o}`),!0===i&&l.push("secure"),PO.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function vN(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const bN=e=>e instanceof DO?{...e}:e;function xN(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return PO.isPlainObject(e)&&PO.isPlainObject(t)?PO.merge.call({caseless:r},e,t):PO.isPlainObject(t)?PO.merge({},t):PO.isArray(t)?t.slice():t}function o(e,t,n,o){return PO.isUndefined(t)?PO.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!PO.isUndefined(t))return r(void 0,t)}function a(e,t){return PO.isUndefined(t)?PO.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return PO.hasOwnProp(t,i)?r(n,o):PO.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:l,headers:(e,t,n)=>o(bN(e),bN(t),0,!0)};return PO.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=PO.hasOwnProp(s,r)?s[r]:o,a=i(PO.hasOwnProp(e,r)?e[r]:void 0,PO.hasOwnProp(t,r)?t[r]:void 0,r);PO.isUndefined(a)&&i!==l||(n[r]=a)}),n}const wN=["content-type","content-length"];const CN=e=>{const t=xN({},e),n=e=>PO.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),a=n("xsrfCookieName");let l=n("headers");const s=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");var h;if(t.headers=l=DO.from(l),t.url=YO(vN(c,d,u),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?(h=s.password,encodeURIComponent(h).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),PO.isFormData(r)&&(iN.hasStandardBrowserEnv||iN.hasStandardBrowserWebWorkerEnv?l.setContentType(void 0):PO.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{wN.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(l,r.getHeaders(),n("formDataHeaderPolicy"))),iN.hasStandardBrowserEnv){PO.isFunction(o)&&(o=o(t));if(!0===o||null==o&&gN(t.url)){const e=i&&a&&yN.read(a);e&&l.set(i,e)}}return t},kN="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=CN(e);let o=r.data;const i=DO.from(r.headers).normalize();let a,l,s,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=DO.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());hN(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new _O("Request aborted",_O.ECONNABORTED,e,m)),f(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new _O(r,_O.ERR_NETWORK,e,m);o.event=t||null,n(o),f(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||QO;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new _O(t,o.clarifyTimeoutError?_O.ETIMEDOUT:_O.ECONNABORTED,e,m)),f(),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&PO.forEach(IO(i),function(e,t){m.setRequestHeader(t,e)}),PO.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([s,u]=pN(p,!0),m.addEventListener("progress",s)),h&&m.upload&&([l,c]=pN(h),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new dN(null,e,m):t),m.abort(),f(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!y||iN.protocols.includes(y)?m.send(o||null):n(new _O("Unsupported protocol "+y+":",_O.ERR_BAD_REQUEST,e))})},SN=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof _O?t:new dN(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new _O(`timeout of ${t}ms exceeded`,_O.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>PO.asap(a),l},EN=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},$N=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},TN=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of $N(e))yield*EN(n,t)}(e,t);let i,a=0,l=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return l(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel:e=>(l(e),o.return())},{highWaterMark:2})};const PN="1.16.1",{isFunction:MN}=PO,ON=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},NN=e=>{const t=void 0!==PO.global&&null!==PO.global?PO.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=PO.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:l}=e,s=o?MN(o):"function"==typeof fetch,c=MN(i),u=MN(l);if(!s)return!1;const d=s&&MN(n),h=s&&("function"==typeof r?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new i(e).arrayBuffer())),p=c&&d&&ON(()=>{let e=!1;const t=new i(iN.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),f=u&&d&&ON(()=>PO.isReadableStream(new l("").body)),m={stream:f&&(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 _O(`Response type '${e}' is not supported`,_O.ERR_NOT_SUPPORT,n)})});const g=async(e,t)=>{const n=PO.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(PO.isBlob(e))return e.size;if(PO.isSpecCompliantForm(e)){const t=new i(iN.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return PO.isArrayBufferView(e)||PO.isArrayBuffer(e)?e.byteLength:(PO.isURLSearchParams(e)&&(e+=""),PO.isString(e)?(await h(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:s,signal:u,cancelToken:d,timeout:h,onDownloadProgress:y,onUploadProgress:v,responseType:b,headers:x,withCredentials:w="same-origin",fetchOptions:C,maxContentLength:k,maxBodyLength:S}=CN(e);const E=PO.isNumber(k)&&k>-1,$=PO.isNumber(S)&&S>-1;let T=o||fetch;b=b?(b+"").toLowerCase():"text";let P=SN([u,d&&d.toAbortSignal()],h),M=null;const O=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let N;try{if(E&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n<t;n++)if(37===r.charCodeAt(n)&&n+2<t){const t=r.charCodeAt(n+1),o=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const i=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));o>=0&&(61===r.charCodeAt(o)?(n++,o--):i(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)||i(o))&&n++;const a=3*Math.floor(e/4)-(n||0);return a>0?a:0}if(void 0!==a&&"function"==typeof a.byteLength)return a.byteLength(r,"utf8");let o=0;for(let e=0,t=r.length;e<t;e++){const n=r.charCodeAt(e);if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=r.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(t);if(n>k)throw new _O("maxContentLength size of "+k+" exceeded",_O.ERR_BAD_RESPONSE,e,M)}if($&&"get"!==n&&"head"!==n){const t=await g(x,s);if("number"==typeof t&&isFinite(t)&&t>S)throw new _O("Request body larger than maxBodyLength limit",_O.ERR_BAD_REQUEST,e,M)}if(v&&p&&"get"!==n&&"head"!==n&&0!==(N=await g(x,s))){let e,n=new i(t,{method:"POST",body:s,duplex:"half"});if(PO.isFormData(s)&&(e=n.headers.get("content-type"))&&x.setContentType(e),n.body){const[e,t]=fN(N,pN(mN(v)));s=TN(n.body,65536,e,t)}}PO.isString(w)||(w=w?"include":"omit");const o=c&&"credentials"in i.prototype;if(PO.isFormData(s)){const e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete("content-type")}x.set("User-Agent","axios/"+PN,!1);const u={...C,signal:P,method:n.toUpperCase(),headers:IO(x.normalize()),body:s,duplex:"half",credentials:o?w:void 0};M=c&&new i(t,u);let d=await(c?T(M,C):T(t,u));if(E){const t=PO.toFiniteNumber(d.headers.get("content-length"));if(null!=t&&t>k)throw new _O("maxContentLength size of "+k+" exceeded",_O.ERR_BAD_RESPONSE,e,M)}const h=f&&("stream"===b||"response"===b);if(f&&d.body&&(y||E||h&&O)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=d[e]});const n=PO.toFiniteNumber(d.headers.get("content-length")),[r,o]=y&&fN(n,pN(mN(y),!0))||[];let i=0;const a=t=>{if(E&&(i=t,i>k))throw new _O("maxContentLength size of "+k+" exceeded",_O.ERR_BAD_RESPONSE,e,M);r&&r(t)};d=new l(TN(d.body,65536,a,()=>{o&&o(),O&&O()}),t)}b=b||"text";let A=await m[PO.findKey(m,b)||"text"](d,e);if(E&&!f&&!h){let t;if(null!=A&&("number"==typeof A.byteLength?t=A.byteLength:"number"==typeof A.size?t=A.size:"string"==typeof A&&(t="function"==typeof r?(new r).encode(A).byteLength:A.length)),"number"==typeof t&&t>k)throw new _O("maxContentLength size of "+k+" exceeded",_O.ERR_BAD_RESPONSE,e,M)}return!h&&O&&O(),await new Promise((t,n)=>{hN(t,n,{data:A,headers:DO.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:M})})}catch(t){if(O&&O(),P&&P.aborted&&P.reason instanceof _O){const n=P.reason;throw n.config=e,M&&(n.request=M),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new _O("Network Error",_O.ERR_NETWORK,e,M,t&&t.response),{cause:t.cause||t});throw _O.from(t,t&&t.code,e,M,t&&t.response)}}},AN=new Map,IN=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,l,s=i.length,c=AN;for(;s--;)a=i[s],l=c.get(a),void 0===l&&c.set(a,l=s?new Map:NN(t)),c=l;return l};IN();const RN={http:null,xhr:kN,fetch:{get:IN}};PO.forEach(RN,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const LN=e=>`- ${e}`,BN=e=>PO.isFunction(e)||null===e||!1===e;const zN={getAdapter:function(e,t){e=PO.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!BN(r)&&(o=RN[(n=String(r)).toLowerCase()],void 0===o))throw new _O(`Unknown adapter '${n}'`);if(o&&(PO.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(LN).join("\n"):" "+LN(e[0]):"as no adapter specified";throw new _O("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:RN};function DN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dN(null,e)}function jN(e){DN(e),e.headers=DO.from(e.headers),e.data=cN.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return zN.getAdapter(e.adapter||sN.adapter,e)(e).then(function(t){DN(e),e.response=t;try{t.data=cN.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=DO.from(t.headers),t},function(t){if(!uN(t)&&(DN(e),t&&t.response)){e.response=t.response;try{t.response.data=cN.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=DO.from(t.response.headers)}return Promise.reject(t)})}const _N={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_N[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const FN={};_N.transitional=function(e,t,n){function r(e,t){return"[Axios v"+PN+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new _O(r(o," has been removed"+(t?" in "+t:"")),_O.ERR_DEPRECATED);return t&&!FN[o]&&(FN[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},_N.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const HN={assertOptions:function(e,t,n){if("object"!=typeof e)throw new _O("options must be an object",_O.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new _O("option "+i+" must be "+n,_O.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new _O("Unknown option "+i,_O.ERR_BAD_OPTION)}},validators:_N},WN=HN.validators;let KN=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ZO,response:new ZO}}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=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=xN(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&HN.assertOptions(n,{silentJSONParsing:WN.transitional(WN.boolean),forcedJSONParsing:WN.transitional(WN.boolean),clarifyTimeoutError:WN.transitional(WN.boolean),legacyInterceptorReqResOrdering:WN.transitional(WN.boolean)},!1),null!=r&&(PO.isFunction(r)?t.paramsSerializer={serialize:r}:HN.assertOptions(r,{encode:WN.function,serialize:WN.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),HN.assertOptions(t,{baseUrl:WN.spelling("baseURL"),withXsrfToken:WN.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&PO.merge(o.common,o[t.method]);o&&PO.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=DO.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||QO;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const s=[];let c;this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let u,d=0;if(!l){const e=[jN.bind(this),void 0];for(e.unshift(...a),e.push(...s),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let h=t;for(;d<u;){const e=a[d++],t=a[d++];try{h=e(h)}catch(e){t.call(this,e);break}}try{c=jN.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,u=s.length;d<u;)c=c.then(s[d++],s[d++]);return c}getUri(e){return YO(vN((e=xN(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};PO.forEach(["delete","get","head","options"],function(e){KN.prototype[e]=function(t,n){return this.request(xN(n||{},{method:e,url:t,data:(n||{}).data}))}}),PO.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,r,o){return this.request(xN(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}KN.prototype[e]=t(),"query"!==e&&(KN.prototype[e+"Form"]=t(!0))});const VN={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(VN).forEach(([e,t])=>{VN[t]=e});const UN=function e(t){const n=new KN(t),r=DM(KN.prototype.request,n);return PO.extend(r,KN.prototype,n,{allOwnKeys:!0}),PO.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(xN(t,n))},r}(sN);UN.Axios=KN,UN.CanceledError=dN,UN.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const 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;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new dN(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const 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}}},UN.isCancel=uN,UN.VERSION=PN,UN.toFormData=VO,UN.AxiosError=_O,UN.Cancel=UN.CanceledError,UN.all=function(e){return Promise.all(e)},UN.spread=function(e){return function(t){return e.apply(null,t)}},UN.isAxiosError=function(e){return PO.isObject(e)&&!0===e.isAxiosError},UN.mergeConfig=xN,UN.AxiosHeaders=DO,UN.formToJSON=e=>aN(PO.isHTMLForm(e)?new FormData(e):e),UN.getAdapter=zN.getAdapter,UN.HttpStatusCode=VN,UN.default=UN;const{Axios:qN,AxiosError:GN,CanceledError:XN,isCancel:YN,CancelToken:ZN,VERSION:QN,all:JN,Cancel:eA,isAxiosError:tA,spread:nA,toFormData:rA,AxiosHeaders:oA,HttpStatusCode:iA,formToJSON:aA,getAdapter:lA,mergeConfig:sA,create:cA}=UN,uA={dataApi:"https://api.checklistbank.org/",clbPortal:"https://www.checklistbank.org",gbifApi:"https://api.gbif.org",gbifPortal:"https://demo.gbif.org"};var dA,hA;const pA=c(function(){if(hA)return dA;hA=1;var e,t=function(){function e(e,t){if("function"!=typeof e)throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but got: "+e+".");this._batchLoadFn=e,this._maxBatchSize=function(e){var t=!e||!1!==e.batch;if(!t)return 1;var n=e&&e.maxBatchSize;if(void 0===n)return 1/0;if("number"!=typeof n||n<1)throw new TypeError("maxBatchSize must be a positive number: "+n);return n}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(void 0===t)return n;if("function"!=typeof t)throw new TypeError("batchScheduleFn must be a function: "+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(void 0===t)return function(e){return e};if("function"!=typeof t)throw new TypeError("cacheKeyFn must be a function: "+t);return t}(t),this._cacheMap=function(e){var t=!e||!1!==e.cache;if(!t)return null;var n=e&&e.cacheMap;if(void 0===n)return new Map;if(null!==n){var r=["get","set","delete","clear"].filter(function(e){return n&&"function"!=typeof n[e]});if(0!==r.length)throw new TypeError("Custom cacheMap missing methods: "+r.join(", "))}return n}(t),this._batch=null,this.name=function(e){if(e&&e.name)return e.name;return null}(t)}var t=e.prototype;return t.load=function(e){if(null==e)throw new TypeError("The loader.load() function must be called with a value, but got: "+String(e)+".");var t,n=function(e){var t=e._batch;if(null!==t&&!t.hasDispatched&&t.keys.length<e._maxBatchSize)return t;var n={hasDispatched:!1,keys:[],callbacks:[]};return e._batch=n,e._batchScheduleFn(function(){!function(e,t){if(t.hasDispatched=!0,0===t.keys.length)return void o(t);var n;try{n=e._batchLoadFn(t.keys)}catch(n){return r(e,t,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function errored synchronously: "+String(n)+"."))}if(!n||"function"!=typeof n.then)return r(e,t,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise: "+String(n)+"."));n.then(function(e){if(!a(e))throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array: "+String(e)+".");if(e.length!==t.keys.length)throw new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(t.keys)+"\n\nValues:\n"+String(e));o(t);for(var n=0;n<t.callbacks.length;n++){var r=e[n];r instanceof Error?t.callbacks[n].reject(r):t.callbacks[n].resolve(r)}}).catch(function(n){r(e,t,n)})}(e,n)}),n}(this),i=this._cacheMap;if(i){t=this._cacheKeyFn(e);var l=i.get(t);if(l){var s=n.cacheHits||(n.cacheHits=[]);return new Promise(function(e){s.push(function(){e(l)})})}}n.keys.push(e);var c=new Promise(function(e,t){n.callbacks.push({resolve:e,reject:t})});return i&&i.set(t,c),c},t.loadMany=function(e){if(!a(e))throw new TypeError("The loader.loadMany() function must be called with Array<key> but got: "+e+".");for(var t=[],n=0;n<e.length;n++)t.push(this.load(e[n]).catch(function(e){return e}));return Promise.all(t)},t.clear=function(e){var t=this._cacheMap;if(t){var n=this._cacheKeyFn(e);t.delete(n)}return this},t.clearAll=function(){var e=this._cacheMap;return e&&e.clear(),this},t.prime=function(e,t){var n=this._cacheMap;if(n){var r,o=this._cacheKeyFn(e);if(void 0===n.get(o))t instanceof Error?(r=Promise.reject(t)).catch(function(){}):r=Promise.resolve(t),n.set(o,r)}return this},e}(),n="object"==typeof process&&"function"==typeof process.nextTick?function(t){e||(e=Promise.resolve()),e.then(function(){process.nextTick(t)})}:"function"==typeof i?function(e){i(e)}:function(e){setTimeout(e)};function r(e,t,n){o(t);for(var r=0;r<t.keys.length;r++)e.clear(t.keys[r]),t.callbacks[r].reject(n)}function o(e){if(e.cacheHits)for(var t=0;t<e.cacheHits.length;t++)e.cacheHits[t]()}function a(e){return"object"==typeof e&&null!==e&&"number"==typeof e.length&&(0===e.length||e.length>0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}return dA=t}()),fA=()=>{},mA=g.createContext({taxon:{onNavigate:null,hrefFor:null},tree:{onNavigate:null,hrefFor:null},search:{onNavigate:null,hrefFor:null},source:{onNavigate:null,hrefFor:null}}),gA=()=>g.useContext(mA),yA=e=>({taxon:{onNavigate:e.onNavigateToTaxon||null,hrefFor:e.hrefForTaxon||null},tree:{onNavigate:e.onNavigateToTree||null,hrefFor:e.hrefForTree||null},search:{onNavigate:e.onNavigateToSearch||null,hrefFor:e.hrefForSearch||null},source:{onNavigate:e.onNavigateToSource||null,hrefFor:e.hrefForSource||null}}),vA=({to:e,args:t,children:n,className:r,style:o,title:i})=>{const a=gA()[e];if(!a)return F.jsx("span",{style:o,className:r,title:i,children:n});const{onNavigate:l,hrefFor:s}=a,c=s?s(t):l?"#":null;if(!l&&!c)return F.jsx("span",{style:o,className:r,title:i,children:n});const u=l?e=>{e.defaultPrevented||0===e.button&&(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(e.preventDefault(),l(t)))}:void 0;return F.jsx("a",{href:c||void 0,onClick:u,className:r,style:o,title:i,children:n})},bA=(e,t)=>{if(!(null==e?void 0:e.length))return Promise.resolve([]);const n=()=>e.map(()=>null),r=e.map(e=>`id=${encodeURIComponent(e)}`).join("&");return UN(`${uA.dataApi}dataset/${t}/source/simple?${r}`).then(t=>{try{const n=new Map;return(Array.isArray(null==t?void 0:t.data)?t.data:[]).forEach(e=>{e&&null!=e.key&&n.set(e.key,e)}),e.map(e=>n.get(e)??n.get(Number(e))??null)}catch(e){return n()}}).catch(()=>n())},xA=(e,t)=>Promise.all(e.map(e=>UN(`${uA.dataApi}dataset/${t}/sector/publisher/${e}`).then(e=>e.data,e=>null))),wA=g.createContext({datasetLoader:null,publisherLoader:null}),CA=e=>({datasetLoader:new pA(t=>bA(t,e)),publisherLoader:new pA(t=>xA(t,e))});class kA extends y.Component{constructor(e){super(e),o(this,"getDatasetLoader",()=>{var e;const{datasetKey:t}=this.props;return(null==(e=this.context)?void 0:e.datasetLoader)?this.context.datasetLoader:(this._localDatasetLoader||(this._localDatasetLoader=new pA(e=>bA(e,t))),this._localDatasetLoader)}),o(this,"getPublisherLoader",()=>{var e;const{datasetKey:t}=this.props;return(null==(e=this.context)?void 0:e.publisherLoader)?this.context.publisherLoader:(this._localPublisherLoader||(this._localPublisherLoader=new pA(e=>xA(e,t))),this._localPublisherLoader)}),o(this,"componentDidMount",()=>{const{sourceDatasetKeys:e}=this.props;e&&e.length<4&&this.setState({showInNode:!0},this.getData)}),o(this,"getData",()=>{const{sourceDatasetKeys:e}=this.props;if(!(null==e?void 0:e.length))return;this.setState({loading:!0});const t=this.getDatasetLoader();Promise.all(e.map(e=>t.load(e).catch(()=>null))).then(e=>{this.setState({data:zM.sortBy(e,["alias"]),loading:!1})}).catch(()=>{this.setState({data:[],loading:!1})})}),o(this,"getPublisherData",()=>{const{publisherDatasetKeys:e}=this.props;if(!e)return;const t=this.getPublisherLoader();Promise.all(Object.keys(e).map(n=>t.load(n).then(t=>({...t,datasets:e[n]})).catch(()=>null))).then(e=>{this.setState({publishers:zM.sortBy(e.filter(Boolean),["alias"])})}).catch(()=>{this.setState({publishers:[]})})}),o(this,"render",()=>{const{data:e,showInNode:t,popOverVisible:n,loading:r}=this.state,{taxon:o,datasetKey:i}=this.props,a={color:"orange",fontSize:"11px"};return t?e.filter(e=>!!e).map((e,t)=>F.jsx(vA,{to:"source",args:e.key,className:"col-tree-data-source",style:a,children:(t?", ":"")+(e.alias||e.key)},e.key)):F.jsx("div",{style:{display:"inline"},id:`taxon_sources_${o.id}`,children:F.jsx(lv,{getPopupContainer:()=>document.getElementById(`taxon_sources_${o.id}`),content:r||0===e.length?F.jsx("div",{style:{minWidth:"200px",textAlign:"center",padding:"8px 0"},children:F.jsx(yS,{size:"small"})}):F.jsxs("div",{style:{maxWidth:"500px"},children:[e.length>0&&F.jsx("div",{children:e.filter(e=>!!e).map((e,t)=>F.jsx(vA,{to:"source",args:e.key,className:"col-tree-data-source",style:a,children:(t?", ":"")+(e.alias||e.key)},e.key))}),this.state.publishers&&this.state.publishers.length>0&&F.jsxs("div",{style:{marginTop:"12px"},children:[F.jsx("strong",{children:"Publishers"}),F.jsx("div",{children:this.state.publishers.filter(e=>!!e).map((e,t)=>{var n,r;return F.jsxs("a",{href:(r=e.id,`${uA.clbPortal}/dataset/${i}/publisher/${r}`),target:"_blank",rel:"noopener noreferrer",style:a,children:[(t?", ":"")+(e.alias||e.id),(null==(n=e.datasets)?void 0:n.length)?` (${e.datasets.length.toLocaleString("en-GB")})`:""]},e.id)})})]})]}),title:F.jsxs("div",{style:{padding:"4px 0"},children:[F.jsx("span",{style:{fontWeight:500},children:"Sources for "}),F.jsx("em",{children:null==o?void 0:o.name}),F.jsx(Hw,{style:{margin:"8px 0 0"}})]}),open:n,onOpenChange:e=>this.setState({popOverVisible:e},()=>{e&&0===this.state.data.length&&this.getData(),e&&this.props.publisherDatasetKeys&&!this.state.publishers&&this.getPublisherData()}),trigger:"click",placement:"rightTop",children:F.jsx("a",{className:"col-tree-data-source",role:"button",tabIndex:0,style:{cursor:"pointer",color:"orange",fontSize:"11px"},onClick:e=>e.preventDefault(),children:"Multiple sources"})})})}),this.state={data:[],showInNode:!1,loading:!1}}}o(kA,"contextType",wA);var SA,EA={exports:{}};const $A=c((SA||(SA=1,EA.exports=function(e){return(e instanceof a?e:a.from(e.toString(),"binary")).toString("base64")}),EA.exports)),TA={14:"The data was created by the homotypic grouping algorithm"},PA=({style:e={},datasetKey:t,sourceDatasetKey:n,sourceId:r,popoverPlacement:o,verbatimSourceKey:i,sectorKey:a,createdBy:l})=>{const[s,c]=g.useState(null),[u,d]=g.useState(!1),[h,p]=g.useState(null),[f,m]=g.useState(null),[y,v]=g.useState(null),[b,x]=g.useState(!1),[w,C]=g.useState(!1);g.useEffect(()=>{w&&n&&r&&k(),w&&n&&S(),w&&i&&!TA[l]&&E()},[n,r,i,w]);const k=()=>{m(!0),p(null),UN(`${uA.dataApi}dataset/${n}/taxon/${r}`).then(e=>{m(!1),p(e.data)}).catch(e=>{console.error("Error fetching source taxon:",e),m(!1),p(null)})},S=()=>{d(!0),c(null),UN(`${uA.dataApi}dataset/${n}`).then(e=>{d(!1),c(e.data)}).catch(e=>{console.error("Error fetching source dataset:",e),d(!1),c(null)})},E=()=>{x(!0),v(null),UN(`${uA.dataApi}dataset/${t}/verbatimsource/${i}`).then(e=>{x(!1),v(e.data)}).catch(e=>{console.error("Error fetching verbatim record:",e),x(!1),v(null)})},$=g.useRef(Math.random().toString(36).substring(2,15));return n||i?F.jsx("div",{style:{display:"inline"},id:$.current,children:F.jsx(lv,{getPopupContainer:()=>document.getElementById($.current),content:F.jsxs("div",{style:{minWidth:"300px"},children:[!i&&!r&&n&&F.jsxs("div",{children:[F.jsx("strong",{children:"Source:"})," ",u?"Loading...":F.jsx(vA,{to:"source",args:null==s?void 0:s.key,children:null==s?void 0:s.title})]}),n&&r&&F.jsxs("div",{children:[F.jsx("strong",{children:"Source:"})," ",f?"Loading...":F.jsx("a",{href:`https://www.checklistbank.org/dataset/${n}/taxon/${r}`,dangerouslySetInnerHTML:{__html:null==h?void 0:h.labelHtml},onClick:()=>{window.location.href=`https://www.checklistbank.org/dataset/${n}/taxon/${r}`}})]}),!r&&i&&F.jsxs("div",{children:[F.jsx("strong",{children:"Source:"})," ",!!TA[l]&&F.jsx("span",{children:TA[l]}),b?"Loading...":y?F.jsxs(F.Fragment,{children:[" ",F.jsx("a",{href:`https://www.checklistbank.org/dataset/${y.sourceDatasetKey}/${(y.sourceEntity||"").replace(/\s/g,"")}/${encodeURIComponent(y.sourceId)}`,dangerouslySetInnerHTML:{__html:(null==s?void 0:s.title)||(null==y?void 0:y.sourceEntity)},onClick:()=>{window.location.href=`https://www.checklistbank.org/dataset/${y.sourceDatasetKey}/${(y.sourceEntity||"").replace(/\s/g,"")}/${encodeURIComponent(y.sourceId)}`}}),(null==y?void 0:y.issues)&&(null==y?void 0:y.issues.length)>0?F.jsxs("div",{children:[F.jsx("span",{children:"Issues: "}),y.issues.map((e,t)=>F.jsx(wM,{style:{margin:"2px"},children:e},t))]}):""]}):""]})]}),trigger:"click",placement:o||"right",onOpenChange:C,children:F.jsx(wM,{color:"purple",style:{cursor:"pointer",fontFamily:"monospace",fontSize:"8px",fontWeight:900,padding:"2px",lineHeight:"8px",verticalAlign:"middle",marginRight:"2px",...e},children:"XR"})})}):F.jsxs("div",{style:{display:"inline"},children:[" ",F.jsx(wM,{color:"purple",style:{fontFamily:"monospace",fontSize:"8px",fontWeight:900,padding:"2px",lineHeight:"8px",verticalAlign:"middle",marginRight:"2px",...e},children:"XR"})]})},MA=y.createContext();class OA extends y.Component{constructor(e){super(e),o(this,"rankIsAboveSpecies",e=>this.props.rank.indexOf(e)<this.props.rank.indexOf("species")),o(this,"render",()=>{const{taxon:e,taxon:{sector:t,sourceDatasetKeys:n,publisherDatasetKeys:r},datasetKey:o}=this.props,i=zM.get(t,"dataset"),a=(n||[]).filter(e=>(null==t?void 0:t.subjectDatasetKey)!==e).length>0;e.estimate&&e.estimates&&e.estimates.find(t=>t.estimate===e.estimate);const l="string"==typeof e.id&&e.id.indexOf("incertae-sedis")>-1;return F.jsx(MA.Consumer,{children:({showInfo:s})=>F.jsxs("div",{id:e.id,children:[F.jsxs("span",{children:[F.jsxs("span",{className:"tree-node-rank",children:[e.rank,": "]}),l?F.jsx("span",{dangerouslySetInnerHTML:{__html:e.labelHtml}}):F.jsx(vA,{to:"taxon",args:e.id,children:F.jsx("span",{dangerouslySetInnerHTML:{__html:e.labelHtml}})}),(null==e?void 0:e.merged)&&F.jsx(PA,{style:{marginLeft:"4px"},datasetKey:null==e?void 0:e.datasetKey,verbatimSourceKey:null==e?void 0:e.verbatimSourceKey})]}),s&&"provisionally accepted"===e.status&&F.jsxs(y.Fragment,{children:[" • ",F.jsx(wM,{color:"warning",style:{marginRight:0},children:"prov."})]}),!zM.isUndefined(e.count)&&this.rankIsAboveSpecies(null==e?void 0:e.rank)&&F.jsxs("span",{children:[" ","• ",Number(e.count).toLocaleString()," ",s&&!zM.isUndefined(e.speciesEstimate)&&F.jsxs("span",{children:[" ","of"," ",Number(e.speciesEstimate).toLocaleString()," ","est."," "]}),"spp."]}),s&&t&&F.jsxs("span",{children:[F.jsx("span",{children:" • "}),F.jsxs(vA,{to:"source",args:t.subjectDatasetKey,style:a?{fontWeight:"bold"}:null,className:"col-tree-data-source",children:[zM.get(i,"alias")||t.subjectDatasetKey,a&&", "]})]}),s&&a&&F.jsxs(y.Fragment,{children:[" ",F.jsx(kA,{sourceDatasetKeys:n,publisherDatasetKeys:r,taxon:e,datasetKey:o})]})]})})}),this.state={style:{},provisional:"provisionally accepted"===this.props.taxon.status,loading:!1}}}class NA extends y.Component{render(){const{error:e}=this.props;return F.jsxs("div",{children:[e.message&&F.jsx("h3",{children:e.message}),zM.get(e,"response.data.message")&&F.jsx("p",{children:zM.get(e,"response.data.message")}),zM.get(e,"response.data.details")&&F.jsx("p",{children:zM.get(e,"response.data.details")}),zM.get(e,"config.method")&&F.jsxs("p",{children:["HTTP method: ",F.jsx("strong",{children:zM.get(e,"config.method").toUpperCase()})]}),zM.get(e,"response.request.responseURL")&&F.jsx("p",{children:F.jsx("a",{href:zM.get(e,"response.request.responseURL"),target:"_blank",children:zM.get(e,"response.request.responseURL")})}),zM.get(e,"config.data")&&"string"==typeof zM.get(e,"config.data")&&F.jsxs("div",{children:[F.jsx("h4",{children:"Body:"}),F.jsx("p",{children:zM.get(e,"config.data")})]})]})}}const AA=(e,t)=>Promise.all(e.map(e=>UN(`${uA.dataApi}dataset/${t}/sector/${e}`).then(e=>e.data,e=>null))),IA=1e3;class RA extends y.Component{constructor(e){super(e),o(this,"onClick",()=>{this.setState({loading:!0},()=>this.props.onClick().then(()=>this.setState({loading:!1})))}),o(this,"render",()=>{const{loading:e}=this.state;return F.jsxs(y.Fragment,{children:[e&&F.jsx(yS,{}),!e&&F.jsx("a",{onClick:this.onClick,children:F.jsx("strong",{children:"Load more..."})})]})}),this.state={loading:!1}}}class LA extends y.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{const{datasetKey:e}=this.props;this.loadRoot(),this.sectorLoader=new pA(t=>AA(t,e)),this.getRank();const{treeRef:t}=this.props;t(this)}),o(this,"componentDidUpdate",e=>{e.defaultExpandKey===this.props.defaultExpandKey&&e.hideExtinct===this.props.hideExtinct&&e.insertPlaceholder===this.props.insertPlaceholder||this.reloadRoot()}),o(this,"getRank",()=>{UN(`${uA.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),o(this,"reloadRoot",()=>this.setState({rootLoading:!0,treeData:[],loadedKeys:[],rootTotal:0,error:null,nodeNotFoundErr:null},this.loadRoot)),o(this,"loadRoot",async()=>{const{showSourceTaxon:e,datasetKey:t,hideExtinct:n,insertPlaceholder:r,type:o,expandedTaxonKey:i}=this.props,a=i,{defaultTaxonKey:l}=this.props;return this.setState({rootLoading:!0,treeData:[]}),UN(`${uA.dataApi}dataset/${t}/tree?projectKey=${t}${o?"&type="+o:""}&limit=1000&offset=${this.state.treeData.length}${n?"&extinct=false&extinct=":""}${r?"&insertPlaceholder=true":""}`).then(this.decorateWithSectorsAndDataset).then(n=>{const r=n.data.result||[],o=n.data.total,i=r.map(n=>{let r={taxon:n,key:n.id,datasetKey:t,childCount:n.childCount,isLeaf:0===n.childCount,childOffset:0};return r.title=F.jsx(OA,{taxon:n,datasetKey:t,showSourceTaxon:e,reloadChildren:()=>this.fetchChildPage(r,!0),rank:this.state.rank}),r.ref=r,r});this.setState({rootTotal:o,rootLoading:!1,treeData:[...this.state.treeData,...i],expandedKeys:i.length<10?i.map(e=>e.taxon.id).filter(e=>"CS5HF"===e):[],error:null},()=>a?this.expandToTaxon(a):l?this.expandToTaxon(l):void 0),1===i.length&&this.fetchChildPage(i[i.length-1])}).catch(e=>{this.setState({treeData:[],rootLoading:!1,expandedKeys:[],error:e})})}),o(this,"expandToTaxon",async e=>{const{showSourceTaxon:t,datasetKey:n,hideExtinct:r,type:o}=this.props;this.setState({rootLoading:!0});const{data:i}=await UN(`${uA.dataApi}dataset/${n}/tree/${e}?projectKey=${n}&insertPlaceholder=true${o?"&type="+o:""}${r?"&extinct=false":""}`).then(e=>this.decorateWithSectorsAndDataset({data:{result:e.data}}).then(()=>e));if(0===i.length)return this.setState({error:{message:`No classification found for Taxon ID: ${e}`}},this.loadRoot);const a=i[i.length-1];let l={taxon:a,key:a.id,datasetKey:n,childCount:a.childCount,isLeaf:0===a.childCount,childOffset:0};l.title=F.jsx(OA,{taxon:a,datasetKey:n,showSourceTaxon:t,rank:this.state.rank,reloadChildren:()=>this.fetchChildPage(l,!0)}),l.ref=l;const s=l;for(let e=i.length-2;e>=0;e--){const r=i[e],o={taxon:r,key:r.id,datasetKey:n,childCount:r.childCount,isLeaf:0===r.childCount,childOffset:0};o.ref=o,o.title=F.jsx(OA,{taxon:r,datasetKey:n,showSourceTaxon:t,rank:this.state.rank,reloadChildren:()=>this.fetchChildPage(o,!0)}),l.children=[o],l=o}const{treeData:c}=this.state;var u=c.findIndex(e=>e.key==s.key);c[u]=s;const d=[...i.map(e=>e.id).reverse()];this.setState({treeData:c},()=>this.reloadLoadedKeys(d,e))}),o(this,"fetchChildPage",async(e,t,n)=>{const{showSourceTaxon:r,datasetKey:o,hideExtinct:i,insertPlaceholder:a,type:l}=this.props,{treeData:s}=this.state;zM.get(e,"childCount");const c=zM.get(e,"childOffset"),u=await UN(`${uA.dataApi}dataset/${o}/tree/${e.taxon.id}/children?limit=1000&offset=${c}&projectKey=${o}${l?"&type="+l:""}${i?"&extinct=false":""}${a?"&insertPlaceholder=true":""}`);await this.decorateWithSectorsAndDataset(u);const d=u.data.result?u.data.result.map(t=>{let n={taxon:t,key:t.id,datasetKey:o,childCount:t.childCount,isLeaf:0===t.childCount,childOffset:0,parent:e,name:t.name};return n.title=F.jsx(OA,{taxon:t,datasetKey:o,showSourceTaxon:r,rank:this.state.rank,reloadChildren:()=>this.fetchChildPage(n,!0)}),n.ref=n,n}):[];if(e.children=e.children&&0!==c&&!t?[...e.children,...d]:d,u.data.last&&e.childCount>e.children.length&&(e.childCount=e.children.length),!u.data.last){const t=()=>(e.childOffset+=IA,"__loadMoreBTN__"===e.children[e.children.length-1].key&&(e.children=e.children.slice(0,-1)),this.fetchChildPage(e,!1));e.children=[...e.children,{title:F.jsx(RA,{onClick:t},"__loadMoreBTN__"),key:"__loadMoreBTN__",childCount:0,isLeaf:!0}]}n||this.setState({treeData:[...s],loadedKeys:[...new Set([...this.state.loadedKeys,e.key])]})}),o(this,"decorateWithSectorsAndDataset",e=>e.data.result?Promise.all(e.data.result.filter(e=>!!e.sectorDatasetKey).map(e=>this.datasetLoader.load(e.sectorDatasetKey).then(t=>e.sector={id:e.sectorKey,subjectDatasetKey:e.sectorDatasetKey,dataset:t}))).then(()=>e):e),o(this,"onLoadData",(e,t=!1)=>(t&&(e.childOffset=0),this.fetchChildPage(e.ref,t))),o(this,"findNode",(e,t)=>{let n=null;if(n=t.find(t=>zM.get(t,"taxon.id")===e),n)return n;{const n=t.map(e=>zM.get(e,"children")||[]),r=zM.flatten(n);return 0===r.length?null:this.findNode(e,r)}}),o(this,"pageThroughChildrenUntilTaxonFound",async(e,t)=>{let n;for(;!n&&e.children.length<e.childCount;)e.childOffset+=IA,"__loadMoreBTN__"===e.children[e.children.length-1].key&&(e.children=e.children.slice(0,-1)),await this.fetchChildPage(e,!1,!0),n=this.findNode(t,e.children);return n||(n=e.children.find(e=>!!zM.get(e,"taxon.id")&&e.taxon.id.indexOf("incertae-sedis")>-1)),n}),o(this,"reloadLoadedKeys",async(e,t,n=!0)=>{this.setState({rootLoading:!0});const{loadedKeys:r}=this.state;let{treeData:o}=this.state;const i=t?this.findNode(t,o):null,a=e?[...e]:[...r];for(let e=0;e<a.length;e++){let n=this.findNode(a[e],o);if(!n&&i&&a[e-1]){const r=this.findNode(a[e-1],o);r&&zM.isArray(zM.get(r,"children"))&&r.children.length>0&&(n=await this.pageThroughChildrenUntilTaxonFound(r,a[e]),n?a.splice(e,0,n.taxon.id):this.setState({nodeNotFoundErr:F.jsxs("span",{children:["Cannot find taxon ",t," in tree 😥"]}),rootLoading:!1}))}if(n){await this.fetchChildPage(n,!0,!0);let r=n.children.find(e=>zM.get(e,"taxon.id")===zM.get(i,"taxon.id"));i&&e===a.length-2&&zM.get(n,"taxon.id")!==zM.get(i,"taxon.id")&&zM.isArray(n.children)&&!r&&n.children.length<n.childCount&&(r=await this.pageThroughChildrenUntilTaxonFound(n,zM.get(i,"taxon.id")),r?this.setState({treeData:[...this.state.treeData]},()=>{setTimeout(()=>{document.getElementById(t).scrollIntoView({behavior:"smooth",block:"center"})},100)}):this.setState({nodeNotFoundErr:F.jsxs("span",{children:["Cannot find taxon ",t," in tree 😥"]}),rootLoading:!1},()=>{"CATALOGUE"===this.props.treeType&&"function"==typeof this.props.addMissingTargetKey&&this.props.addMissingTargetKey(t)}))}}const l={loadedKeys:a,rootLoading:!1};n&&(l.expandedKeys=a),this.setState(l,()=>{t&&setTimeout(()=>{document.getElementById(t).scrollIntoView({behavior:"smooth",block:"center"})},100)})}),this.state={rootLoading:!0,treeData:[],loadedKeys:[],expandedKeys:[],rootTotal:0,error:null,nodeNotFoundErr:null,rank:[]},this.treeRef=y.createRef()}get datasetLoader(){return this.context.datasetLoader}render(){const{error:e,rootTotal:t,rootLoading:n,treeData:r,defaultExpandAll:o,nodeNotFoundErr:i,loadedKeys:a,expandedKeys:l}=this.state,{treeType:s,dataset:c,height:u,expandedTaxonKey:d}=this.props,h=d;return F.jsxs("div",{children:[e&&F.jsx(y.Fragment,{children:404!==zM.get(e,"response.data.code")?F.jsx(ml,{closable:!0,onClose:()=>this.setState({error:null}),style:{marginTop:"8px"},message:F.jsx(NA,{error:e}),type:"error"}):F.jsx(ml,{closable:!0,onClose:()=>this.setState({error:null}),style:{marginTop:"8px"},message:F.jsx(Custom404,{error:e,treeType:s,dataset:c,loadRoot:this.loadRoot}),type:"warning"})}),i&&F.jsx(ml,{closable:!0,onClose:()=>this.setState({nodeNotFoundErr:null}),style:{marginTop:"8px"},message:i,type:"warning"}),n&&F.jsx(bf,{paragraph:{rows:10},active:!0}),!n&&r.length>0&&F.jsx(lP,{ref:this.treeRef,defaultExpandAll:o,loadData:this.onLoadData,onLoad:e=>this.setState({loadedKeys:e}),loadedKeys:a,expandedKeys:l,treeData:r,filterTreeNode:e=>e.key===h,onExpand:(e,t)=>{this.setState({expandedKeys:e}),this.props.onExpandedTaxonKeyChange&&this.props.onExpandedTaxonKeyChange(t.expanded?t.node.key:null)}}),!e&&r.length<t&&F.jsxs(mh,{loading:n,onClick:this.loadRoot,children:["Load more"," "]})]})}}o(LA,"contextType",wA);var BA,zA={exports:{}};var DA=(BA||(BA=1,function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<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.default=function(e){var t=e.activeClassName,n=void 0===t?"":t,o=e.activeIndex,l=void 0===o?-1:o,c=e.activeStyle,u=e.autoEscape,d=e.caseSensitive,h=void 0!==d&&d,p=e.className,f=e.findChunks,m=e.highlightClassName,g=void 0===m?"":m,y=e.highlightStyle,v=void 0===y?{}:y,b=e.highlightTag,x=void 0===b?"mark":b,w=e.sanitize,C=e.searchWords,k=e.textToHighlight,S=e.unhighlightTag,E=void 0===S?"span":S,$=e.unhighlightClassName,T=void 0===$?"":$,P=e.unhighlightStyle,M=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),O=(0,i.findAll)({autoEscape:u,caseSensitive:h,findChunks:f,sanitize:w,searchWords:C,textToHighlight:k}),N=x,A=-1,I="",R=void 0,L=(0,s.default)(function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t});return(0,a.createElement)("span",r({className:p},M,{children:O.map(function(e,t){var r=k.substr(e.start,e.end-e.start);if(e.highlight){A++;var o=void 0;o="object"==typeof g?h?g[r]:(g=L(g))[r.toLowerCase()]:g;var i=A===+l;I=o+" "+(i?n:""),R=!0===i&&null!=c?Object.assign({},v,c):v;var s={children:r,className:I,key:t,style:R};return"string"!=typeof N&&(s.highlightIndex=A),(0,a.createElement)(N,s)}return(0,a.createElement)(E,{children:r,className:T,key:t,style:P})})}))};var o,i=n(3),a=n(4),l=n(5),s=(o=l)&&o.__esModule?o:{default:o};e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,l=e.findChunks,s=void 0===l?r:l,c=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:s({autoEscape:t,caseSensitive:a,sanitize:c,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort(function(e,t){return e.start-t.start}).reduce(function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({start:n.start,end:r})}else e.push(n,t);return e},[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,l=e.textToHighlight;return l=o(l),a.filter(function(e){return e}).reduce(function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(l);){var s=a.index,c=i.lastIndex;c>s&&e.push({start:s,end:c}),a.index==i.lastIndex&&i.lastIndex++}return e},[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach(function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end}),o(i,n,!1)}return r};function i(e){return e}}])},function(e,t){e.exports=m()},function(e,t){var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=void 0,o=[],i=void 0,a=!1,l=function(e,n){return t(e,o[n])};return function(){for(var t=arguments.length,n=Array(t),s=0;s<t;s++)n[s]=arguments[s];return a&&r===this&&n.length===o.length&&n.every(l)?i:(a=!0,r=this,o=n,i=e.apply(this,n))}}}])}(zA)),zA.exports);const jA=c(DA);class _A extends y.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{const{defaultTaxonKey:e}=this.props;e&&this.setDefaultValue(e)}),o(this,"componentDidUpdate",e=>{const{defaultTaxonKey:t}=this.props;t!==e.defaultTaxonKey&&(t?this.setDefaultValue(t):this.setState({value:"",options:[]}))}),o(this,"setDefaultValue",e=>{const{datasetKey:t}=this.props;UN(`${uA.dataApi}dataset/${t}/nameusage/search?USAGE_ID=${e}`).then(e=>{this.setState({value:zM.get(e,"data.result[0].usage.label")||""})})}),o(this,"getNames",e=>{const{datasetKey:t,minRank:n,extinct:r}=this.props,{value:o}=this.state;UN(`${t?`${uA.dataApi}dataset/${t}/nameusage/suggest`:`${uA.dataApi}name/search`}?limit=25&q=${e}${n?`&minRank=${n}`:""}${r?`&extinct=${r}`:""}`).then(e=>{this.setState({options:this.getOptions(e.data||[],o)})}).catch(e=>{this.setState({options:[],err:e})})}),o(this,"onSelectName",(e,t)=>{const n=zM.get(t,"data.acceptedUsageId")?{key:zM.get(t,"data.acceptedUsageId"),rank:zM.get(t,"data.rank"),title:zM.get(t,"data.parentOrAcceptedName")}:{key:zM.get(t,"data.usageId"),rank:zM.get(t,"data.rank"),title:zM.get(t,"data.name")};this.setState({value:e}),this.props.onSelectName(n)}),o(this,"onReset",()=>{this.setState({value:"",options:[]},this.props.onResetSearch)}),o(this,"getOptions",(e,t)=>e.map(e=>({key:e.usageId,value:e.usageId,label:F.jsx(jA,{highlightStyle:{fontWeight:"bold",padding:0},searchWords:t?t.split(" "):[],autoEscape:!0,textToHighlight:e.suggestion}),data:e}))),o(this,"render",()=>{const{placeHolder:e,autoFocus:t,disabled:n}=this.props,{value:r,options:o,randomID:i}=this.state;return F.jsx("div",{id:`taxon_autocomplete_${i}`,className:"taxon-autocomplete",children:F.jsx(my,{value:r||void 0,defaultActiveFirstOption:!1,suffixIcon:null,showSearch:!0,allowClear:!0,notFoundContent:null,style:this.props.style?this.props.style:{width:"100%"},options:o,filterOption:!1,onSelect:this.onSelectName,onClear:this.onReset,onSearch:e=>e?this.getNames(e):this.onReset(),placeholder:e||"Find taxon",autoFocus:!1!==t,disabled:n,getPopupContainer:()=>(console.log(`Test ${i}`),document.getElementById(`taxon_autocomplete_${i}`))})})}),this.getNames=BM.debounce(this.getNames,500),this.state={options:[],value:"",randomID:(Math.floor(100*Math.random())+1)*(Math.floor(100*Math.random())+1)*(Math.floor(100*Math.random())+1)}}componentWillUnmount(){this.getNames.cancel()}}const FA=({dataset:e})=>F.jsxs("div",{className:"col-dataset-citation",children:[F.jsx("div",{className:"col-dataset-citation-title",children:e.citation?F.jsx("span",{dangerouslySetInnerHTML:{__html:e.citation}}):e.title}),F.jsxs("div",{className:"col-dataset-citation-source",children:[" - accessed through ",F.jsx("a",{href:`https://www.checklistbank.org/dataset/${e.key}`,children:"ChecklistBank"})]})]}),HA=["infraspecific name","species","variety","form"];class WA extends y.Component{constructor(e){super(e),o(this,"componentDidMount",async()=>{const{datasetKey:e,citation:t}=this.props;if(t)try{const{data:t}=await(e=>UN(`${uA.dataApi}dataset/${e}`))(e);this.setState({dataset:t})}catch(e){}}),o(this,"render",()=>{const{datasetKey:e,defaultTaxonKey:t,expandedTaxonKey:n,onExpandedTaxonKeyChange:r,showTreeOptions:o,linkToSpeciesPage:i,citation:a,type:l,insertPlaceholder:s=!0}=this.props,{hideExtinct:c,dataset:u}=this.state;return F.jsxs("div",{className:"catalogue-of-life",children:["top"===a&&u&&F.jsx(FA,{dataset:u}),F.jsx(wA.Provider,{value:this.cache,children:F.jsxs(MA.Provider,{value:this.state,children:[F.jsxs(zw,{children:[F.jsx(Lw,{flex:"auto",children:F.jsx(_A,{hideExtinct:c,datasetKey:e,style:{width:"100%",paddingTop:"5px",paddingBottom:"5px"},defaultTaxonKey:n||null,onSelectName:e=>{var t,n;const o=zM.get(e,"key");if(!o)return;const a=zM.get(e,"rank");if(i&&HA.includes(a)){const e=null==(n=null==(t=this.context)?void 0:t.taxon)?void 0:n.onNavigate;e&&e(o)}else r&&(r(o),this.treeRef&&this.treeRef.reloadRoot&&this.treeRef.reloadRoot())},onResetSearch:()=>{r&&r(null)}})}),o&&F.jsxs(Lw,{style:{paddingLeft:"8px"},children:[F.jsx(Aw,{onChange:({target:{checked:e}})=>{this.setState({showInfo:e})},children:"Source"}),F.jsx(Aw,{defaultChecked:!1,onChange:({target:{checked:e}})=>{this.setState({hideExtinct:e})},children:"Extant only"})]})]}),F.jsx(LA,{insertPlaceholder:s,hideExtinct:c,datasetKey:e,defaultTaxonKey:t,expandedTaxonKey:n,onExpandedTaxonKeyChange:r,treeRef:e=>this.treeRef=e,type:l})]})}),"bottom"===a&&u&&F.jsx(FA,{dataset:u})]})}),this.props.auth&&(UN.defaults.headers.common.Authorization=`Basic ${$A(this.props.auth)}`),this.state={hideExtinct:!1,showInfo:!1,dataset:null},this.cache=CA(this.props.datasetKey)}componentDidUpdate(e){e.datasetKey!==this.props.datasetKey&&(this.cache=CA(this.props.datasetKey))}}o(WA,"contextType",mA);var KA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};function VA(){return VA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VA.apply(this,arguments)}const UA=(e,t)=>g.createElement(ji,VA({},e,{ref:t,icon:KA})),qA=g.forwardRef(UA);var GA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};function XA(){return XA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XA.apply(this,arguments)}const YA=(e,t)=>g.createElement(ji,XA({},e,{ref:t,icon:GA})),ZA=g.forwardRef(YA);var QA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"};function JA(){return JA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JA.apply(this,arguments)}const eI=(e,t)=>g.createElement(ji,JA({},e,{ref:t,icon:QA})),tI=g.forwardRef(eI);var nI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 000 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"}}]},name:"tag",theme:"outlined"};function rI(){return rI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rI.apply(this,arguments)}const oI=(e,t)=>g.createElement(ji,rI({},e,{ref:t,icon:nI})),iI=g.forwardRef(oI);var aI,lI,sI,cI,uI={exports:{}},dI={};function hI(){return lI||(lI=1,uI.exports=function(){if(aI)return dI;aI=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case s:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case p:case a:return e;default:return h}}case n:return h}}}function x(e){return b(e)===c}return dI.AsyncMode=s,dI.ConcurrentMode=c,dI.ContextConsumer=l,dI.ContextProvider=a,dI.Element=t,dI.ForwardRef=u,dI.Fragment=r,dI.Lazy=f,dI.Memo=p,dI.Portal=n,dI.Profiler=i,dI.StrictMode=o,dI.Suspense=d,dI.isAsyncMode=function(e){return x(e)||b(e)===s},dI.isConcurrentMode=x,dI.isContextConsumer=function(e){return b(e)===l},dI.isContextProvider=function(e){return b(e)===a},dI.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},dI.isForwardRef=function(e){return b(e)===u},dI.isFragment=function(e){return b(e)===r},dI.isLazy=function(e){return b(e)===f},dI.isMemo=function(e){return b(e)===p},dI.isPortal=function(e){return b(e)===n},dI.isProfiler=function(e){return b(e)===i},dI.isStrictMode=function(e){return b(e)===o},dI.isSuspense=function(e){return b(e)===d},dI.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},dI.typeOf=b,dI}()),uI.exports}const pI=c(function(){if(cI)return sI;cI=1;var e=hI(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return sI=function e(t,r,o){if("string"!=typeof r){if(d){var h=u(r);h&&h!==d&&e(t,h,o)}var p=l(r);s&&(p=p.concat(s(r)));for(var f=i(t),m=i(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||o&&o[y]||m&&m[y]||f&&f[y])){var v=c(r,y);try{a(t,y,v)}catch(e){}}}}return t}}());var fI,mI,gI,yI,vI,bI={exports:{}};function xI(){if(mI)return fI;mI=1;return fI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function wI(){if(yI)return gI;yI=1;var e=xI();function t(){}function n(){}return n.resetWarningCache=t,gI=function(){function r(t,n,r,o,i,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function CI(){return vI||(vI=1,bI.exports=wI()()),bI.exports}const kI=c(CI());var SI,EI={};function $I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TI(){return TI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TI.apply(this,arguments)}function PI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MI(e){var t=function(t){var n,r;function o(){for(var n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return $I(PI(PI(n=t.call.apply(t,[this].concat(o))||this)),"cachedTheme",void 0),$I(PI(PI(n)),"lastOuterTheme",void 0),$I(PI(PI(n)),"lastTheme",void 0),$I(PI(PI(n)),"renderProvider",function(t){var r=n.props.children;return y.createElement(e.Provider,{value:n.getTheme(t)},r)}),n}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var i=o.prototype;return i.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var n=this.props.theme;this.cachedTheme=e?TI({},e,n):n}return this.cachedTheme},i.render=function(){return this.props.children?y.createElement(e.Consumer,null,this.renderProvider):null},o}(y.Component);return t}function OI(e){return function(t){var n=y.forwardRef(function(n,r){return y.createElement(e.Consumer,null,function(e){return y.createElement(t,TI({theme:e,ref:r},n))})});return pI(n,t),n}}function NI(e){return function(){return y.useContext(e)}}SI||(SI=1,Object.defineProperty(EI,"__esModule",{value:!0}),EI.default=function(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")});var AI,II=g.createContext();OI(AI=II),NI(AI),MI(AI);var RI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LI="object"===("undefined"==typeof window?"undefined":RI(window))&&"object"===("undefined"==typeof document?"undefined":RI(document))&&9===document.nodeType;function BI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qr(e,t)}var zI={}.constructor;function DI(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(DI);if(e.constructor!==zI)return e;var t={};for(var n in e)t[n]=DI(e[n]);return t}function jI(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=DI(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var _I=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},FI=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=_I(e[n]," ");else t=_I(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function HI(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function WI(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function KI(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var l=HI(n),s=l.linebreak,c=l.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var h in d){var p=d[h];null!=p&&(r&&(r+=s),r+=WI(h+":"+c+FI(p)+";",i))}}else for(var f in a){var m=a[f];null!=m&&(r&&(r+=s),r+=WI(f+":"+c+FI(m)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=s),r+=WI(g+":"+c+FI(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+s+r+s),WI(""+e+c+"{"+r,--i)+WI("}",i)):r}var VI=/([[\].#*$><+~=|^:(),"'`\s])/g,UI="undefined"!=typeof CSS&&CSS.escape,qI=function(e){return UI?UI(e):e.replace(VI,"\\$1")},GI=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var s=this.options.sheet;return s&&s.attached,this},e}(),XI=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,s=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=s(Zr(Zr(o)),l),o.selectorText="."+qI(o.id)),o}BI(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=FI(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?qd({},e,{allowEmpty:!0}):e;return KI(this.selectorText,this.style,n)},Yr(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(GI),YI={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new XI(e,t,n)}},ZI={indent:1,children:!0},QI=/@([\w-]+)/,JI=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(QI);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new CR(qd({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=ZI);var t=HI(e).linebreak;if(null==e.indent&&(e.indent=ZI.indent),null==e.children&&(e.children=ZI.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),eR=/@container|@media|@supports\s+/,tR={onCreateRule:function(e,t,n){return eR.test(e)?new JI(e,t,n):null}},nR={indent:1,children:!0},rR=/@keyframes\s+([\w-]+)/,oR=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(rR);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var l in this.id=!1===o?this.name:qI(a(this,i)),this.rules=new CR(qd({},n,{parent:this})),t)this.rules.add(l,t[l],qd({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=nR);var t=HI(e).linebreak;if(null==e.indent&&(e.indent=nR.indent),null==e.children&&(e.children=nR.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),iR=/@keyframes\s+/,aR=/\$([\w-]+)/g,lR=function(e,t){return"string"==typeof e?e.replace(aR,function(e,n){return n in t?t[n]:e}):e},sR=function(e,t,n){var r=e[t],o=lR(r,n);o!==r&&(e[t]=o)},cR={onCreateRule:function(e,t,n){return"string"==typeof e&&iR.test(e)?new oR(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&sR(e,"animation-name",n.keyframes),"animation"in e&&sR(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return lR(e,r.keyframes);default:return e}}},uR=function(e){function t(){return e.apply(this,arguments)||this}return BI(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?qd({},e,{allowEmpty:!0}):e;return KI(this.key,this.style,n)},t}(GI),dR={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new uR(e,t,n):null}},hR=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=HI(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=KI(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return KI(this.at,this.style,e)},e}(),pR=/@font-face/,fR={onCreateRule:function(e,t,n){return pR.test(e)?new hR(e,t,n):null}},mR=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return KI(this.key,this.style,e)},e}(),gR={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new mR(e,t,n):null}},yR=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),vR={"@charset":!0,"@import":!0,"@namespace":!0},bR=[YI,tR,cR,dR,fR,gR,{onCreateRule:function(e,t,n){return e in vR?new yR(e,t,n):null}}],xR={process:!0},wR={force:!0,process:!0},CR=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,l=r.Renderer,s=r.generateId,c=r.scoped,u=qd({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:l,generateId:s,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+qI(this.classes[d]));var h=jI(d,t,u);if(!h)return null;this.register(h);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,h),h},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=qd({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof XI?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof oR&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof XI?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof oR&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=xR);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t.style;if(i.onUpdate(n,t,a,r),r.process&&l&&l!==t.style){for(var s in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[s];c!==l[s]&&t.prop(s,c,wR)}for(var u in l){var d=t.style[u],h=l[u];null==d&&d!==h&&t.prop(u,null,wR)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=HI(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),kR=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=qd({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new CR(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),SR=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ER=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=dw(t,["attached"]),o=HI(r).linebreak,i="",a=0;a<this.registry.length;a++){var l=this.registry[a];null!=n&&l.attached!==n||(i&&(i+=o),i+=l.toString(r))}return i},Yr(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),$R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),TR="2f1acc6c3a606b082e5eef5e54414ffb";null==$R[TR]&&($R[TR]=0);var PR=$R[TR]++,MR=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+PR+o+t:i+n.key+"-"+PR+(o?"-"+o:"")+"-"+t}},OR=function(e){var t;return function(){return t||(t=e()),t}},NR=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},AR=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=FI(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},IR=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},RR=function(e,t){return e.selectorText=t,e.selectorText===t},LR=OR(function(){return document.querySelector("head")});function BR(e){var t=ER.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=LR(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var zR=OR(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),DR=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},jR=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},_R=function(){function e(e){this.getPropertyValue=NR,this.setProperty=AR,this.removeProperty=IR,this.setSelector=RR,this.hasInsertedRules=!1,this.cssRules=[],e&&ER.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,o=n.meta,i=n.element;this.element=i||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),o&&this.element.setAttribute("data-meta",o);var a=zR();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=BR(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else LR().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=jR(n,t);if(!1===(o=DR(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var l=jR(n,t),s=DR(n,a,l);return!1!==s&&(this.hasInsertedRules=!0,this.refCssRule(e,l,s),s)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof kR&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),FR=0,HR=function(){function e(e){this.id=FR++,this.version="10.10.0",this.plugins=new SR,this.options={id:{minify:!1},createGenerateId:MR,Renderer:LI?_R:null,plugins:[]},this.generateId=MR({minify:!1});for(var t=0;t<bR.length;t++)this.plugins.use(bR[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=qd({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ER.index?0:ER.index+1);var r=new kR(e,qd({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ER.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=qd({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=jI(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),WR=function(e){return new HR(e)},KR=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},Yr(e,[{key:"size",get:function(){return this.length}}]),e}(),VR="object"==typeof CSS&&null!=CSS&&"number"in CSS;function UR(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=UR(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
23
|
+
/**
|
|
24
|
+
* A better abstraction over CSS.
|
|
25
|
+
*
|
|
26
|
+
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
27
|
+
* @website https://github.com/cssinjs/jss
|
|
28
|
+
* @license MIT
|
|
29
|
+
*/WR();var qR,GR=Date.now(),XR="fnValues"+GR,YR="fnStyle"+ ++GR;qR="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var ZR,QR,JR=("function"==typeof(QR=qR.Symbol)?QR.observable?ZR=QR.observable:(ZR=QR("observable"),QR.observable=ZR):ZR="@@observable",ZR),eL=function(e){return e&&e[JR]&&e===e[JR]()},tL=/;\n/,nL=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(tL),r=0;r<n.length;r++){var o=(n[r]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var a=o.substr(0,i).trim(),l=o.substr(i+1).trim();t[a]=l}}}return t}(e.style))};var rL="@global",oL="@global ",iL=function(){function e(e,t,n){for(var r in this.type="global",this.at=rL,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new CR(qd({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),aL=function(){function e(e,t,n){this.type="global",this.at=rL,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,qd({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),lL=/\s*,\s*/g;function sL(e,t){for(var n=e.split(lL),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function cL(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===rL)return new iL(e,t,n);if("@"===e[0]&&e.substr(0,8)===oL)return new aL(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[rL]:null;if(o){for(var i in o)t.addRule(i,o[i],qd({},n,{selector:sL(i,e.selector)}));delete r[rL]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===rL){var i=sL(o.substr(7),e.selector);t.addRule(i,r[o],qd({},n,{selector:i})),delete r[o]}}(e,t))}}}var uL=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},dL="extendCurrValue"+Date.now();function hL(e,t,n,r){return void 0===r&&(r={}),function(e,t,n,r){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var o=0;o<e.extend.length;o++){var i=e.extend[o];hL("string"==typeof i?qd({},e,{extend:i}):e.extend[o],t,n,r)}else for(var a in e.extend)"extend"!==a?uL(e.extend[a])?(a in r||(r[a]={}),hL(e.extend[a],t,n,r[a])):r[a]=e.extend[a]:hL(e.extend.extend,t,n,r);else{if(!n)return;var l=n.getRule(e.extend);if(!l)return;if(l===t)return;var s=l.options.parent;s&&hL(s.rules.raw[e.extend],t,n,r)}}(e,t,n,r),function(e,t,n,r){for(var o in e)"extend"!==o&&(uL(r[o])&&uL(e[o])?hL(e[o],t,n,r[o]):uL(e[o])?r[o]=hL(e[o],t,n):r[o]=e[o])}(e,t,n,r),r}var pL=/\s*,\s*/g,fL=/&/g,mL=/\$([\w-]+)/g;function gL(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(pL),r=e.split(pL),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(fL,a):a+" "+s}return o}function n(e,t,n){if(n)return qd({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=qd({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,s=o,c=s.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),h="@"===u[0];if(d||h){if(a=n(s,c,a),d){var p=t(u,s.selector);l||(l=e(c,i)),p=p.replace(mL,l);var f=s.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],qd({},a,{selector:p})):c.addRule(f,r[u],qd({},a,{selector:p}))}else h&&c.addRule(u,{},a).addRule(s.key,r[u],{selector:s.selector});delete r[u]}}return r}}}function yL(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++){if(!yL(e,t[n]))return!1}return!0}if(t.indexOf(" ")>-1)return yL(e,t.split(" "));var r=e.options.parent;if("$"===t[0]){var o=r.getRule(t.substr(1));return!!o&&(o!==e&&(r.classes[e.key]+=" "+r.classes[o.key],!0))}return r.classes[e.key]+=" "+t,!0}function vL(){return{onProcessStyle:function(e,t){return"composes"in e?(yL(t,e.composes),delete e.composes,e):e}}}var bL=/[A-Z]/g,xL=/^ms-/,wL={};function CL(e){return"-"+e.toLowerCase()}function kL(e){if(wL.hasOwnProperty(e))return wL[e];var t=e.replace(bL,CL);return wL[e]=xL.test(t)?"-"+t:t}function SL(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:kL(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(SL):t.fallbacks=SL(e.fallbacks)),t}var EL=VR&&CSS?CSS.px:"px",$L=VR&&CSS?CSS.ms:"ms",TL=VR&&CSS?CSS.percent:"%";function PL(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var ML=PL({"animation-delay":$L,"animation-duration":$L,"background-position":EL,"background-position-x":EL,"background-position-y":EL,"background-size":EL,border:EL,"border-bottom":EL,"border-bottom-left-radius":EL,"border-bottom-right-radius":EL,"border-bottom-width":EL,"border-left":EL,"border-left-width":EL,"border-radius":EL,"border-right":EL,"border-right-width":EL,"border-top":EL,"border-top-left-radius":EL,"border-top-right-radius":EL,"border-top-width":EL,"border-width":EL,"border-block":EL,"border-block-end":EL,"border-block-end-width":EL,"border-block-start":EL,"border-block-start-width":EL,"border-block-width":EL,"border-inline":EL,"border-inline-end":EL,"border-inline-end-width":EL,"border-inline-start":EL,"border-inline-start-width":EL,"border-inline-width":EL,"border-start-start-radius":EL,"border-start-end-radius":EL,"border-end-start-radius":EL,"border-end-end-radius":EL,margin:EL,"margin-bottom":EL,"margin-left":EL,"margin-right":EL,"margin-top":EL,"margin-block":EL,"margin-block-end":EL,"margin-block-start":EL,"margin-inline":EL,"margin-inline-end":EL,"margin-inline-start":EL,padding:EL,"padding-bottom":EL,"padding-left":EL,"padding-right":EL,"padding-top":EL,"padding-block":EL,"padding-block-end":EL,"padding-block-start":EL,"padding-inline":EL,"padding-inline-end":EL,"padding-inline-start":EL,"mask-position-x":EL,"mask-position-y":EL,"mask-size":EL,height:EL,width:EL,"min-height":EL,"max-height":EL,"min-width":EL,"max-width":EL,bottom:EL,left:EL,top:EL,right:EL,inset:EL,"inset-block":EL,"inset-block-end":EL,"inset-block-start":EL,"inset-inline":EL,"inset-inline-end":EL,"inset-inline-start":EL,"box-shadow":EL,"text-shadow":EL,"column-gap":EL,"column-rule":EL,"column-rule-width":EL,"column-width":EL,"font-size":EL,"font-size-delta":EL,"letter-spacing":EL,"text-decoration-thickness":EL,"text-indent":EL,"text-stroke":EL,"text-stroke-width":EL,"word-spacing":EL,motion:EL,"motion-offset":EL,outline:EL,"outline-offset":EL,"outline-width":EL,perspective:EL,"perspective-origin-x":TL,"perspective-origin-y":TL,"transform-origin":TL,"transform-origin-x":TL,"transform-origin-y":TL,"transform-origin-z":TL,"transition-delay":$L,"transition-duration":$L,"vertical-align":EL,"flex-basis":EL,"shape-margin":EL,size:EL,gap:EL,grid:EL,"grid-gap":EL,"row-gap":EL,"grid-row-gap":EL,"grid-column-gap":EL,"grid-template-rows":EL,"grid-template-columns":EL,"grid-auto-rows":EL,"grid-auto-columns":EL,"box-shadow-x":EL,"box-shadow-y":EL,"box-shadow-blur":EL,"box-shadow-spread":EL,"font-line-height":EL,"text-shadow-x":EL,"text-shadow-y":EL,"text-shadow-blur":EL});function OL(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=OL(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=OL(o,t[o],n);else for(var i in t)t[i]=OL(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||ML[e];return!a||0===t&&a===EL?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function NL(e){void 0===e&&(e={});var t=PL(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=OL(r,e[r],t);return e},onChangeValue:function(e,n){return OL(n,e,t)}}}var AL={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},IL={position:!0,size:!0},RL={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},LL={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function BL(e,t,n,r){return null==n[t]?e:0===e.length?[]:Array.isArray(e[0])?BL(e[0],t,n,r):"object"==typeof e[0]?function(e,t,n){return e.map(function(e){return zL(e,t,n,!1,!0)})}(e,t,r):[e]}function zL(e,t,n,r,o){if(!RL[t]&&!LL[t])return[];var i=[];if(LL[t]&&(e=function(e,t,n,r){for(var o in n){var i=n[o];if(void 0!==e[o]&&(r||!t.prop(i))){var a,l=DL((a={},a[i]=e[o],a),t)[i];r?t.style.fallbacks[i]=l:t.style[i]=l}delete e[o]}return e}(e,n,LL[t],r)),Object.keys(e).length)for(var a in RL[t])e[a]?Array.isArray(e[a])?i.push(null===IL[a]?e[a]:e[a].join(" ")):i.push(e[a]):null!=RL[t][a]&&i.push(RL[t][a]);return!i.length||o?i:[i]}function DL(e,t,n){for(var r in e){var o=e[r];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===r){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=DL(e.fallbacks[i],t,!0);continue}e[r]=BL(o,r,AL,t),e[r].length||delete e[r]}}else if("object"==typeof o){if("fallbacks"===r){e.fallbacks=DL(e.fallbacks,t,!0);continue}e[r]=zL(o,r,t,n),e[r].length||delete e[r]}else""===e[r]&&delete e[r]}return e}var jL="",_L="",FL="",HL="",WL=LI&&"ontouchstart"in document.documentElement;if(LI){var KL={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},VL=document.createElement("p").style;for(var UL in KL)if(UL+"Transform"in VL){jL=UL,_L=KL[UL];break}"Webkit"===jL&&"msHyphens"in VL&&(jL="ms",_L=KL.ms,HL="edge"),"Webkit"===jL&&"-apple-trailing-word"in VL&&(FL="apple")}var qL=jL,GL=_L,XL=FL,YL=HL,ZL=WL;var QL={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===qL?"-webkit-"+e:GL+e)}},JL={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===qL?GL+"print-"+e:e)}},eB=/[-\s]+(.)?/g;function tB(e,t){return t?t.toUpperCase():""}function nB(e){return e.replace(eB,tB)}function rB(e){return nB("-"+e)}var oB,iB={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===qL){var n="mask-image";if(nB(n)in t)return e;if(qL+rB(n)in t)return GL+e}return e}},aB={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==XL||ZL?e:GL+e)}},lB={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:GL+e)}},sB={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:GL+e)}},cB={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===qL||"ms"===qL&&"edge"!==YL?GL+e:e)}},uB={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===qL||"ms"===qL||"apple"===XL?GL+e:e)}},dB={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===qL?"WebkitColumn"+rB(e)in t&&GL+"column-"+e:"Moz"===qL&&("page"+rB(e)in t&&"page-"+e))}},hB={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===qL)return e;var n=e.replace("-inline","");return qL+rB(n)in t&&GL+n}},pB={supportedProperty:function(e,t){return nB(e)in t&&e}},fB={supportedProperty:function(e,t){var n=rB(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:qL+n in t?GL+e:"Webkit"!==qL&&"Webkit"+n in t&&"-webkit-"+e}},mB={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===qL?""+GL+e:e)}},gB={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===qL?GL+"scroll-chaining":e)}},yB={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},vB={supportedProperty:function(e,t){var n=yB[e];return!!n&&(qL+rB(n)in t&&GL+n)}},bB={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},xB=Object.keys(bB),wB=function(e){return GL+e},CB=[QL,JL,iB,aB,lB,sB,cB,uB,dB,hB,pB,fB,mB,gB,vB,{supportedProperty:function(e,t,n){var r=n.multiple;if(xB.indexOf(e)>-1){var o=bB[e];if(!Array.isArray(o))return qL+rB(o)in t&&GL+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(qL+rB(o[0])in t))return!1;return o.map(wB)}return!1}}],kB=CB.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),SB=CB.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,qt(t.noPrefill)),e},[]),EB={};if(LI){oB=document.createElement("p");var $B=window.getComputedStyle(document.documentElement,"");for(var TB in $B)isNaN(TB)||(EB[$B[TB]]=$B[TB]);SB.forEach(function(e){return delete EB[e]})}function PB(e,t){if(void 0===t&&(t={}),!oB)return e;if(null!=EB[e])return EB[e];"transition"!==e&&"transform"!==e||(t[e]=e in oB.style);for(var n=0;n<kB.length&&(EB[e]=kB[n](e,oB.style,t),!EB[e]);n++);try{oB.style[e]=""}catch(e){return!1}return EB[e]}var MB,OB={},NB={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},AB=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function IB(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?PB(t):", "+PB(n);return r||(t||n)}function RB(e,t){var n=t;if(!MB||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=OB[r])return OB[r];try{MB.style[e]=n}catch(e){return OB[r]=!1,!1}if(NB[e])n=n.replace(AB,IB);else if(""===MB.style[e]&&("-ms-flex"===(n=GL+n)&&(MB.style[e]="-ms-flexbox"),MB.style[e]=n,""===MB.style[e]))return OB[r]=!1,!1;return MB.style[e]="",OB[r]=n,OB[r]}function LB(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=PB(n);i&&i!==n&&(o=!0);var a=!1,l=RB(i,FI(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===qL?n:"@"+GL+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return RB(t,FI(e))||e}}}LI&&(MB=document.createElement("p"));var BB=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=jI(e,{},n);return r[YR]=t,r},onProcessStyle:function(e,t){if(XR in t||YR in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[XR]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[YR];i&&(o.style=i(e)||{});var a=o[XR];if(a)for(var l in a)o.prop(l,a[l](e),r)}},(n=e.observable,{onCreateRule:function(e,t,r){if(!eL(t))return null;var o=t,i=jI(e,{},r);return o.subscribe(function(e){for(var t in e)i.prop(t,e[t],n)}),i},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,o=function(e){var o=r[e];if(!eL(o))return"continue";delete r[e],o.subscribe({next:function(r){t.prop(e,r,n)}})};for(var i in r)o(i)}}}),{onProcessRule:nL},cL(),{onProcessStyle:function(e,t,n){return"extend"in e?hL(e,t,n):e},onChangeValue:function(e,t,n){if("extend"!==t)return e;if(null==e||!1===e){for(var r in n[dL])n.prop(r,null);return n[dL]=null,null}if("object"==typeof e){for(var o in e)n.prop(o,e[o]);n[dL]=e}return null}},gL(),vL(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=SL(e[t]);return e}return SL(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=kL(t);return t===r?e:(n.prop(r,e),null)}},NL(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=DL(e[n],t);return e}return DL(e,t)}},LB(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},o=Object.keys(e).sort(t),i=0;i<o.length;i++)r[o[i]]=e[o[i]];return r}})]};var t,n},zB=WR(BB());!function(e){void 0===e&&(e=zB);var t,n=new Map,r=0,o=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function i(){var e=arguments,t=JSON.stringify(e),i=n.get(t);if(i)return i.className;var a=[];for(var l in e){var s=e[l];if(Array.isArray(s))for(var c=0;c<s.length;c++)a.push(s[c]);else a.push(s)}for(var u={},d=[],h=0;h<a.length;h++){var p=a[h];if(p){var f=p;if("string"==typeof p){var m=n.get(p);m&&(m.labels.length&&d.push.apply(d,m.labels),f=m.style)}f.label&&-1===d.indexOf(f.label)&&d.push(f.label),Object.assign(u,f)}}delete u.label;var g=(0===d.length?"css":d.join("-"))+"-"+r++;o().addRule(g,u);var y=o().classes[g],v={style:u,labels:d,className:y};return n.set(t,v),n.set(y,v),y}i.getSheet=o}();var DB=Number.MIN_SAFE_INTEGER||-1e9,jB=function(){return DB++},_B=g.createContext({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!LI}),FB=new Map,HB=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new KR),n[t];var r=FB.get(t);return r||(r=new KR,FB.set(t,r)),r},WB=function(e){var t=e.sheet,n=e.context,r=e.index,o=e.theme;t&&(HB(n,r).manage(o),n.registry&&n.registry.add(t))},KB=WR(BB()),VB=new WeakMap,UB=function(e){return VB.get(e)};var qB=function(e){if(!e.context.disableStylesGeneration){var t=HB(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||KB,o=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),i=UR(o),a=r.createStyleSheet(o,function(e,t){var n;e.context.id&&null!=e.context.id.minify&&(n=e.context.id.minify);var r=e.context.classNamePrefix||"";e.name&&!n&&(r+=e.name.replace(/\s/g,"-")+"-");var o="";return e.name&&(o=e.name+", "),o+="function"==typeof e.styles?"Themed":"Unthemed",qd({},e.sheetOptions,{index:e.index,meta:o,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==i));return function(e,t){VB.set(e,t)}(a,{dynamicStyles:i,styles:o}),t.add(e.theme,a),a}},GB=function(e,t){var n=UB(e);if(n){var r={};for(var o in n.dynamicStyles)for(var i=e.rules.index.length,a=e.addRule(o,n.dynamicStyles[o]),l=i;l<e.rules.index.length;l++){var s=e.rules.index[l];e.updateOne(s,t),r[a===s?o:s.key]=s}return r}};function XB(e){return e?g.useEffect:y.useInsertionEffect||g.useLayoutEffect}var YB={},ZB=function(e,t){void 0===t&&(t={});var n=t,r=n.index,o=void 0===r?jB():r,i=n.theming,a=n.name,l=dw(n,["index","theming","name"]),s=i&&i.context||II,c={};return function(t){var n=g.useRef(!0),r=g.useContext(_B),i=function(t){return"function"==typeof e&&(t||g.useContext(s))||YB}(t&&t.theme),u=g.useMemo(function(){var n=qB({context:r,styles:e,name:a,theme:i,index:o,sheetOptions:l});return n&&r.isSSR&&WB({index:o,context:r,sheet:n,theme:i}),[n,n?GB(n,t):null]},[r,i]),d=u[0],h=u[1];XB(r.isSSR)(function(){d&&h&&!n.current&&function(e,t,n){for(var r in n)t.updateOne(n[r],e)}(t,d,h)},[t]),XB(r.isSSR)(function(){return d&&WB({index:o,context:r,sheet:d,theme:i}),function(){d&&(function(e){e.sheet&&HB(e.context,e.index).unmanage(e.theme)}({index:o,context:r,sheet:d,theme:i}),h&&function(e,t){for(var n in t)e.deleteRule(t[n])}(d,h))}},[d]);var p=g.useMemo(function(){return d&&h?function(e,t){if(!t)return e.classes;var n=UB(e);if(!n)return e.classes;var r={};for(var o in n.styles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r}(d,h):c},[d,h]);return g.useDebugValue(p),g.useDebugValue(i===YB?"No theme":i),g.useEffect(function(){n.current=!1}),p}},QB=function(e){return e.children||null},JB=function(e,t){void 0===t&&(t={});var n=t,r=n.index,o=void 0===r?jB():r,i=n.theming,a=n.injectTheme,l=dw(n,["index","theming","injectTheme"]),s=i?i.context:II;return function(t){void 0===t&&(t=QB);var n,r,c,u,d=(n=t).displayName||n.name||"Component",h=(r=function(e,t){return t?function(e,t){var n=qd({},e);for(var r in t)n[r]=r in n?n[r]+" "+t[r]:t[r];return n}(e,t):e},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(Array.isArray(c)&&t.length===c.length){for(var o=!0,i=0;i<t.length;i++)t[i]!==c[i]&&(o=!1);if(o)return u}return c=t,u=r.apply(void 0,t)}),p=Object.assign(l,{theming:i,index:o,name:d}),f=ZB(e,p),m=g.forwardRef(function(e,n){var r=g.useContext(s),o=qd({},e);a&&null==o.theme&&(o.theme=r);var i=f(o),l=h(i,e.classes);return g.createElement(t,qd({},o,{classes:l,ref:n}))});return m.displayName="WithStyles("+d+")",m.defaultProps=qd({},t.defaultProps),m.InnerComponent=t,pI(m,t)}};const ez=class e extends y.Component{constructor(t){super(t),o(this,"handleResize",()=>{clearTimeout(this.deferTime),this.deferTime=setTimeout(()=>{this.updateWidth()},this.resizeInterval)}),o(this,"updateWidth",()=>{let t,n=this.getViewportWidth();t=n>=e.EXTRA_LARGE_WIDTH?e.EXTRA_LARGE:n>=e.LARGE_WIDTH?e.LARGE:n>=e.MEDIUM_WIDTH?e.MEDIUM:e.SMALL,t!==this.state.width&&this.setState({width:t})}),this.deferTime=null,this.resizeInterval=166,this.state={width:null}}componentDidMount(){window&&window.addEventListener("resize",this.handleResize),this.updateWidth()}componentWillUnmount(){window&&window.removeEventListener("resize",this.handleResize),clearTimeout(this.deferTime)}getViewportWidth(){return window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.querySelector("body").clientWidth}render(){return this.props.children(this.state.width)}};o(ez,"EXTRA_LARGE",4),o(ez,"LARGE",3),o(ez,"MEDIUM",2),o(ez,"SMALL",1),o(ez,"EXTRA_LARGE_WIDTH",1200),o(ez,"LARGE_WIDTH",992),o(ez,"MEDIUM_WIDTH",768);let tz=ez;const nz=()=>e=>class extends tz{render(){return F.jsx(e,{...this.props,width:this.state.width})}},rz=nz()(JB({formItem:{paddingBottom:0,width:"100%",clear:"both"},label:{display:"block",color:"rgba(0, 0, 0, 0.85)"},content:{wordBreak:"break-word",marginBottom:0},noContent:{wordBreak:"break-word",color:"#bbb",marginBottom:0},contentCol:{wordBreak:"break-word"},smallMargin:{marginBottom:5,marginTop:5},mediumMargin:{marginBottom:10,marginTop:10}})(({classes:e,children:t,size:n})=>{const r="medium"===n?e.mediumMargin:e.smallMargin;return F.jsx(zw,{className:e.formItem,children:F.jsx(Lw,{span:24,className:r,children:(()=>{let n;return Array.isArray(t)&&t.length>0?n=t.map((t,n)=>F.jsx("span",{className:e.content,children:t},n)):Array.isArray(t)||void 0===t||(n=F.jsx("span",{className:e.content,children:t})),n})()})})}));class oz extends y.Component{constructor(e){super(e),o(this,"getData",()=>{const{referenceId:e,datasetKey:t,references:n}=this.props;if(e){const r=zM.isArray(e)?e:[e],o=[];this.setState({loading:!0}),Promise.allSettled(r.map(e=>zM.get(n,e)?Promise.resolve(o.push(n[e])):UN(`${uA.dataApi}dataset/${t}/reference/${e}`).then(e=>o.push(e.data)).catch(e=>this.setState({error:e})))).then(()=>this.setState({reference:o,loading:!1}))}}),o(this,"getContent",()=>{const{error:e,reference:t,loading:n}=this.state;return n?F.jsx(yS,{}):e?F.jsx(NA,{error:e}):1===t.length?t[0].citation:F.jsx("ul",{children:t.map(e=>F.jsx("li",{children:e.citation},e.id))})}),o(this,"scrollToReference",(e,t)=>{const n=document.getElementById(`col-reference-${t}`);n&&(e.preventDefault(),n.scrollIntoView({behavior:"smooth",block:"start"}))}),o(this,"render",()=>{const{referenceId:e,referenceIndexMap:t,trigger:n}=this.props,r=zM.isArray(e)?e:[e];let o=t&&zM.get(t,r[0])?r.map(e=>F.jsx("a",{className:"col-reference-link",href:`#col-reference-${e}`,onClick:t=>this.scrollToReference(t,e),children:`[${t[e]}]`},e)):F.jsx(qA,{style:{cursor:"pointer"}});return e?F.jsx("div",{id:`reference_${e}`,style:this.props.style,children:F.jsx(lv,{getPopupContainer:()=>document.getElementById(`reference_${e}`),placement:this.props.placement||"left",title:"Reference",onOpenChange:e=>e&&this.getData(),content:F.jsx("div",{style:{maxWidth:"500px"},children:this.getContent()}),trigger:n||"hover",children:o})},`reference_${e}`):""}),this.state={reference:[],loading:!1,error:null}}}const iz=({style:e={},decision:t,popoverPlacement:n})=>{const r=g.useRef(Math.random().toString(36).substring(2,15)),{subject:o,originalSubjectId:i,subjectDatasetKey:a,datasetKey:l,created:s,createdBy:c,modified:u,modifiedBy:d,...h}=t;return F.jsx("div",{style:{display:"inline"},id:r.current,children:F.jsx(lv,{getPopupContainer:()=>document.getElementById(r.current),title:"Editorial decision",content:F.jsxs("div",{style:{overflow:"scroll"},children:[" ",F.jsx("pre",{style:{fontSize:"10px",fontFamily:"monospace",width:"400px"},children:JSON.stringify(h,null,2)})]}),placement:n||"right",trigger:"click",children:F.jsx(wM,{color:"gold",style:{cursor:"pointer",fontFamily:"monospace",fontSize:"8px",fontWeight:900,padding:"2px",lineHeight:"8px",verticalAlign:"middle",marginRight:"2px",...e},children:"DC"})})})},az="numeric",lz="ascii",sz="alpha",cz="asciinumeric",uz="alphanumeric",dz="domain",hz="emoji",pz="scheme",fz="slashscheme",mz="whitespace";function gz(e,t){return e in t||(t[e]=[]),t[e]}function yz(e,t,n){t[az]&&(t[cz]=!0,t[uz]=!0),t[lz]&&(t[cz]=!0,t[sz]=!0),t[cz]&&(t[uz]=!0),t[sz]&&(t[uz]=!0),t[uz]&&(t[dz]=!0),t[hz]&&(t[dz]=!0);for(const r in t){const t=gz(r,n);t.indexOf(e)<0&&t.push(e)}}function vz(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}vz.groups={},vz.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){const r=t.jr[n][0],o=t.jr[n][1];if(o&&r.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,r)},tr(e,t,n,r){let o;return r=r||vz.groups,t&&t.j?o=t:(o=new vz(t),n&&r&&yz(t,n,r)),this.jr.push([e,o]),o},ts(e,t,n,r){let o=this;const i=e.length;if(!i)return o;for(let t=0;t<i-1;t++)o=o.tt(e[t]);return o.tt(e[i-1],t,n,r)},tt(e,t,n,r){r=r||vz.groups;const o=this;if(t&&t.j)return o.j[e]=t,t;const i=t;let a,l=o.go(e);if(l?(a=new vz,Object.assign(a.j,l.j),a.jr.push.apply(a.jr,l.jr),a.jd=l.jd,a.t=l.t):a=new vz,i){if(r)if(a.t&&"string"==typeof a.t){const e=Object.assign(function(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(a.t,r),n);yz(i,e,r)}else n&&yz(i,n,r);a.t=i}return o.j[e]=a,a}};const bz=(e,t,n,r,o)=>e.ta(t,n,r,o),xz=(e,t,n,r,o)=>e.tr(t,n,r,o),wz=(e,t,n,r,o)=>e.ts(t,n,r,o),Cz=(e,t,n,r,o)=>e.tt(t,n,r,o),kz="WORD",Sz="UWORD",Ez="ASCIINUMERICAL",$z="ALPHANUMERICAL",Tz="LOCALHOST",Pz="TLD",Mz="UTLD",Oz="SCHEME",Nz="SLASH_SCHEME",Az="NUM",Iz="WS",Rz="NL",Lz="OPENBRACE",Bz="CLOSEBRACE",zz="OPENBRACKET",Dz="CLOSEBRACKET",jz="OPENPAREN",_z="CLOSEPAREN",Fz="OPENANGLEBRACKET",Hz="CLOSEANGLEBRACKET",Wz="FULLWIDTHLEFTPAREN",Kz="FULLWIDTHRIGHTPAREN",Vz="LEFTCORNERBRACKET",Uz="RIGHTCORNERBRACKET",qz="LEFTWHITECORNERBRACKET",Gz="RIGHTWHITECORNERBRACKET",Xz="FULLWIDTHLESSTHAN",Yz="FULLWIDTHGREATERTHAN",Zz="AMPERSAND",Qz="APOSTROPHE",Jz="ASTERISK",eD="AT",tD="BACKSLASH",nD="BACKTICK",rD="CARET",oD="COLON",iD="COMMA",aD="DOLLAR",lD="DOT",sD="EQUALS",cD="EXCLAMATION",uD="HYPHEN",dD="PERCENT",hD="PIPE",pD="PLUS",fD="POUND",mD="QUERY",gD="QUOTE",yD="FULLWIDTHMIDDLEDOT",vD="SEMI",bD="SLASH",xD="TILDE",wD="UNDERSCORE",CD="EMOJI",kD="SYM";var SD=Object.freeze({__proto__:null,ALPHANUMERICAL:$z,AMPERSAND:Zz,APOSTROPHE:Qz,ASCIINUMERICAL:Ez,ASTERISK:Jz,AT:eD,BACKSLASH:tD,BACKTICK:nD,CARET:rD,CLOSEANGLEBRACKET:Hz,CLOSEBRACE:Bz,CLOSEBRACKET:Dz,CLOSEPAREN:_z,COLON:oD,COMMA:iD,DOLLAR:aD,DOT:lD,EMOJI:CD,EQUALS:sD,EXCLAMATION:cD,FULLWIDTHGREATERTHAN:Yz,FULLWIDTHLEFTPAREN:Wz,FULLWIDTHLESSTHAN:Xz,FULLWIDTHMIDDLEDOT:yD,FULLWIDTHRIGHTPAREN:Kz,HYPHEN:uD,LEFTCORNERBRACKET:Vz,LEFTWHITECORNERBRACKET:qz,LOCALHOST:Tz,NL:Rz,NUM:Az,OPENANGLEBRACKET:Fz,OPENBRACE:Lz,OPENBRACKET:zz,OPENPAREN:jz,PERCENT:dD,PIPE:hD,PLUS:pD,POUND:fD,QUERY:mD,QUOTE:gD,RIGHTCORNERBRACKET:Uz,RIGHTWHITECORNERBRACKET:Gz,SCHEME:Oz,SEMI:vD,SLASH:bD,SLASH_SCHEME:Nz,SYM:kD,TILDE:xD,TLD:Pz,UNDERSCORE:wD,UTLD:Mz,UWORD:Sz,WORD:kz,WS:Iz});const ED=/[a-z]/,$D=new RegExp("\\p{L}","u"),TD=new RegExp("\\p{Emoji}","u"),PD=/\d/,MD=/\s/;let OD=null,ND=null;function AD(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){let o,i=e.charCodeAt(r),a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,o=[];let i=0,a=0;for(;a<r;){let l=e,s=null,c=0,u=null,d=-1,h=-1;for(;a<r&&(s=l.go(n[a]));)l=s,l.accepts()?(d=0,h=0,u=l):d>=0&&(d+=n[a].length,h++),c+=n[a].length,i+=n[a].length,a++;i-=d,a-=h,c-=d,o.push({t:u.t,v:t.slice(i-c,i),s:i-c,e:i})}return o}function ID(e,t,n,r,o){let i;const a=t.length;for(let n=0;n<a-1;n++){const a=t[n];e.j[a]?i=e.j[a]:(i=new vz(r),i.jr=o.slice(),e.j[a]=i),e=i}return i=new vz(n),i.jr=o.slice(),e.j[t[a-1]]=i,i}function RD(e){const t=[],n=[];let r=0;for(;r<e.length;){let o=0;for(;"0123456789".indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+o),10);t>0;t--)n.pop();r+=o}else n.push(e[r]),r++}return t}const LD={defaultProtocol:"http",events:null,format:zD,formatHref:zD,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function BD(e,t=null){let n=Object.assign({},LD);e&&(n=Object.assign(n,e instanceof BD?e.o:e));const r=n.ignoreTags,o=[];for(let e=0;e<r.length;e++)o.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function zD(e){return e}function DD(e,t){this.t="token",this.v=e,this.tk=t}function jD(e,t){class n extends DD{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e];return n.t=e,n}BD.prototype={o:LD,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let o=this.o[e];return o?("object"==typeof o?(o=n.t in o?o[n.t]:LD[e],"function"==typeof o&&r&&(o=o(t,n))):"function"==typeof o&&r&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},DD.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=LD.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),o=e.get("tagName",n,t),i=this.toFormattedString(e),a={},l=e.get("className",n,t),s=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return a.href=r,l&&(a.class=l),s&&(a.target=s),c&&(a.rel=c),u&&Object.assign(a,u),{tagName:o,attributes:a,content:i,eventListeners:d}}};const _D=jD("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),FD=jD("text"),HD=jD("nl"),WD=jD("url",{isLink:!0,toHref(e=LD.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Tz&&e[1].t===oD}}),KD=e=>new vz(e);function VD(e,t,n){const r=n[0].s,o=n[n.length-1].e;return new e(t.slice(r,o),n)}const UD={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function qD(){UD.scanner=function(e=[]){const t={};vz.groups=t;const n=new vz;null==OD&&(OD=RD("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==ND&&(ND=RD("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),Cz(n,"'",Qz),Cz(n,"{",Lz),Cz(n,"}",Bz),Cz(n,"[",zz),Cz(n,"]",Dz),Cz(n,"(",jz),Cz(n,")",_z),Cz(n,"<",Fz),Cz(n,">",Hz),Cz(n,"(",Wz),Cz(n,")",Kz),Cz(n,"「",Vz),Cz(n,"」",Uz),Cz(n,"『",qz),Cz(n,"』",Gz),Cz(n,"<",Xz),Cz(n,">",Yz),Cz(n,"&",Zz),Cz(n,"*",Jz),Cz(n,"@",eD),Cz(n,"`",nD),Cz(n,"^",rD),Cz(n,":",oD),Cz(n,",",iD),Cz(n,"$",aD),Cz(n,".",lD),Cz(n,"=",sD),Cz(n,"!",cD),Cz(n,"-",uD),Cz(n,"%",dD),Cz(n,"|",hD),Cz(n,"+",pD),Cz(n,"#",fD),Cz(n,"?",mD),Cz(n,'"',gD),Cz(n,"/",bD),Cz(n,";",vD),Cz(n,"~",xD),Cz(n,"_",wD),Cz(n,"\\",tD),Cz(n,"・",yD);const r=xz(n,PD,Az,{[az]:!0});xz(r,PD,r);const o=xz(r,ED,Ez,{[cz]:!0}),i=xz(r,$D,$z,{[uz]:!0}),a=xz(n,ED,kz,{[lz]:!0});xz(a,PD,o),xz(a,ED,a),xz(o,PD,o),xz(o,ED,o);const l=xz(n,$D,Sz,{[sz]:!0});xz(l,ED),xz(l,PD,i),xz(l,$D,l),xz(i,PD,i),xz(i,ED),xz(i,$D,i);const s=Cz(n,"\n",Rz,{[mz]:!0}),c=Cz(n,"\r",Iz,{[mz]:!0}),u=xz(n,MD,Iz,{[mz]:!0});Cz(n,"",u),Cz(c,"\n",s),Cz(c,"",u),xz(c,MD,u),Cz(u,"\r"),Cz(u,"\n"),xz(u,MD,u),Cz(u,"",u);const d=xz(n,TD,CD,{[hz]:!0});Cz(d,"#"),xz(d,TD,d),Cz(d,"️",d);const h=Cz(d,"");Cz(h,"#"),xz(h,TD,d);const p=[[ED,a],[PD,o]],f=[[ED,null],[$D,l],[PD,i]];for(let e=0;e<OD.length;e++)ID(n,OD[e],Pz,kz,p);for(let e=0;e<ND.length;e++)ID(n,ND[e],Mz,Sz,f);yz(Pz,{tld:!0,ascii:!0},t),yz(Mz,{utld:!0,alpha:!0},t),ID(n,"file",Oz,kz,p),ID(n,"mailto",Oz,kz,p),ID(n,"http",Nz,kz,p),ID(n,"https",Nz,kz,p),ID(n,"ftp",Nz,kz,p),ID(n,"ftps",Nz,kz,p),yz(Oz,{scheme:!0,ascii:!0},t),yz(Nz,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){const r=e[t][0],o=e[t][1]?{[pz]:!0}:{[fz]:!0};r.indexOf("-")>=0?o[dz]=!0:ED.test(r)?PD.test(r)?o[cz]=!0:o[lz]=!0:o[az]=!0,wz(n,r,r,o)}return wz(n,"localhost",Tz,{ascii:!0}),n.jd=new vz(kD),{start:n,tokens:Object.assign({groups:t},SD)}}(UD.customSchemes);for(let e=0;e<UD.tokenQueue.length;e++)UD.tokenQueue[e][1]({scanner:UD.scanner});UD.parser=function({groups:e}){const t=e.domain.concat([Zz,Jz,eD,tD,nD,rD,aD,sD,uD,Az,dD,hD,pD,fD,bD,kD,xD,wD]),n=[Qz,oD,iD,lD,cD,dD,mD,gD,vD,Fz,Hz,Lz,Bz,Dz,zz,jz,_z,Wz,Kz,Vz,Uz,qz,Gz,Xz,Yz],r=[Zz,Qz,Jz,tD,nD,rD,aD,sD,uD,Lz,Bz,dD,hD,pD,fD,mD,bD,kD,xD,wD],o=KD(),i=Cz(o,xD);bz(i,r,i),bz(i,e.domain,i);const a=KD(),l=KD(),s=KD();bz(o,e.domain,a),bz(o,e.scheme,l),bz(o,e.slashscheme,s),bz(a,r,i),bz(a,e.domain,a);const c=Cz(a,eD);Cz(i,eD,c),Cz(l,eD,c),Cz(s,eD,c);const u=Cz(i,lD);bz(u,r,i),bz(u,e.domain,i);const d=KD();bz(c,e.domain,d),bz(d,e.domain,d);const h=Cz(d,lD);bz(h,e.domain,d);const p=KD(_D);bz(h,e.tld,p),bz(h,e.utld,p),Cz(c,Tz,p);const f=Cz(d,uD);Cz(f,uD,f),bz(f,e.domain,d),bz(p,e.domain,d),Cz(p,lD,h),Cz(p,uD,f);const m=Cz(a,uD),g=Cz(a,lD);Cz(m,uD,m),bz(m,e.domain,a),bz(g,r,i),bz(g,e.domain,a);const y=KD(WD);bz(g,e.tld,y),bz(g,e.utld,y),bz(y,e.domain,a),bz(y,r,i),Cz(y,lD,g),Cz(y,uD,m),Cz(y,eD,c);const v=Cz(y,oD),b=KD(WD);bz(v,e.numeric,b);const x=KD(WD),w=KD();bz(x,t,x),bz(x,n,w),bz(w,t,x),bz(w,n,w),Cz(y,bD,x),Cz(b,bD,x);const C=Cz(l,oD),k=Cz(s,oD),S=Cz(k,bD),E=Cz(S,bD);bz(l,e.domain,a),Cz(l,lD,g),Cz(l,uD,m),bz(s,e.domain,a),Cz(s,lD,g),Cz(s,uD,m),bz(C,e.domain,x),Cz(C,bD,x),Cz(C,mD,x),bz(E,e.domain,x),bz(E,t,x),Cz(E,bD,x);const $=[[Lz,Bz],[zz,Dz],[jz,_z],[Fz,Hz],[Wz,Kz],[Vz,Uz],[qz,Gz],[Xz,Yz]];for(let e=0;e<$.length;e++){const[r,o]=$[e],i=Cz(x,r);Cz(w,r,i);const a=KD(WD);bz(i,t,a);const l=KD();bz(i,n,l),Cz(i,o,x),bz(a,t,a),bz(a,n,l),bz(l,t,a),bz(l,n,l),Cz(a,o,x),Cz(l,o,x)}return Cz(o,Tz,y),Cz(o,Rz,HD),{start:o,tokens:SD}}(UD.scanner.tokens);for(let e=0;e<UD.pluginQueue.length;e++)UD.pluginQueue[e][1]({scanner:UD.scanner,parser:UD.parser});return UD.initialized=!0,UD}function GD(e){return UD.initialized||qD(),function(e,t,n){let r=n.length,o=0,i=[],a=[];for(;o<r;){let l=e,s=null,c=null,u=0,d=null,h=-1;for(;o<r&&!(s=l.go(n[o].t));)a.push(n[o++]);for(;o<r&&(c=s||l.go(n[o].t));)s=null,l=c,l.accepts()?(h=0,d=l):h>=0&&h++,o++,u++;if(h<0)o-=u,o<r&&(a.push(n[o]),o++);else{a.length>0&&(i.push(VD(FD,t,a)),a=[]),o-=h,u-=h;const e=d.t,r=n.slice(o-u,o);i.push(VD(e,t,r))}}return a.length>0&&i.push(VD(FD,t,a)),i}(UD.parser.start,e,AD(UD.scanner.start,e))}GD.scan=AD;var XD={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"'},YD=/^#[xX]([A-Fa-f0-9]+)$/,ZD=/^#([0-9]+)$/,QD=/^([A-Za-z0-9]+)$/,JD=function(){function e(e){this.named=e}return e.prototype.parse=function(e){if(e){var t=e.match(YD);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(ZD))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(QD))?this.named[t[1]]||"&"+t[1]+";":void 0}},e}(),ej=/[\t\n\f ]/,tj=/[A-Za-z]/,nj=/\r\n?/g;function rj(e){return ej.test(e)}function oj(e){return tj.test(e)}var ij=function(){function e(e,t,n){void 0===n&&(n="precompile"),this.delegate=e,this.entityParser=t,this.mode=n,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||oj(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();"-"===e&&"-"===this.peek()?(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment()):"DOCTYPE"===e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase()&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())},doctype:function(){rj(this.consume())&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var e=this.consume();rj(e)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();rj(e)?this.transitionTo("afterDoctypeName"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!rj(e))if(">"===e)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),n="PUBLIC"===t.toUpperCase(),r="SYSTEM"===t.toUpperCase();(n||r)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),n?this.transitionTo("afterDoctypePublicKeyword"):r&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var e=this.peek();rj(e)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):'"'===e?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):"'"===e?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):">"===e&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypePublicIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();rj(e)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();rj(e)||(">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):'"'===e?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):"'"===e&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();'"'===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();"'"===e?this.transitionTo("afterDoctypeSystemIdentifier"):">"===e?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();rj(e)||">"===e&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var e=this.consume();"-"===e&&"-"===this.peek()?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e&&"-"===this.peek()?this.delegate.appendToCommentData(e):"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();rj(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();rj(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();rj(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();rj(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();rj(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();rj(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();rj(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();rj(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||oj(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(nj,"\n")}(e);this.index<this.input.length;){var t=this.states[this.state];if(void 0===t)throw new Error("unhandled state "+this.state);t.call(this)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){"data"===this.state&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,"\n"===e?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(";",this.index);if(-1!==e){var t=this.input.slice(this.index,e),n=this.entityParser.parse(t);if(n){for(var r=t.length;r;)this.consume(),r--;return this.consume(),n}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return"title"===e&&"</title>"!==this.input.substring(this.index,this.index+8)||"style"===e&&"</style>"!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),aj=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new ij(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t<arguments.length;t++)if(e.type===arguments[t])return e;throw new Error("token type was unexpectedly "+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(e){this.current("Doctype").name+=e},e.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current("Doctype");void 0===t.publicIdentifier?t.publicIdentifier=e:t.publicIdentifier+=e},e.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current("Doctype");void 0===t.systemIdentifier?t.systemIdentifier=e:t.systemIdentifier+=e},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(e){this.current("Chars").chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(e){this.current("Comment").chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(e){this.current("StartTag","EndTag").tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e}();const lj="LinkifyResult",sj="StartTag",cj="EndTag",uj="Chars";function dj(e,t={}){const n=function(e,t){return new aj(new JD(XD),t).tokenize(e)}(e),r=[],o=[],i=new BD(t,fj);for(let e=0;e<n.length;e++){const t=n[e];if(t.type===sj){r.push(t);const o=t.tagName.toUpperCase();if(!("A"===o||i.ignoreTags.indexOf(o)>=0))continue;let a=r.length;pj(o,n,++e,r),e+=r.length-a-1}else if(t.type!==uj)r.push(t);else{const e=hj(t.chars,i);r.push.apply(r,e)}}for(let e=0;e<r.length;e++){const t=r[e];switch(t.type){case lj:o.push(t.rendered);break;case sj:{let e="<"+t.tagName;t.attributes.length>0&&(e+=" "+yj(t.attributes).join(" ")),t.selfClosing&&(e+=" /"),e+=">",o.push(e);break}case cj:o.push(`</${t.tagName}>`);break;case uj:o.push(mj(t.chars));break;case"Comment":o.push(`\x3c!--${mj(t.chars)}--\x3e`);break;case"Doctype":{let e=`<!DOCTYPE ${t.name}`;t.publicIdentifier&&(e+=` PUBLIC "${t.publicIdentifier}"`),t.systemIdentifier&&(e+=` "${t.systemIdentifier}"`),e+=">",o.push(e);break}}}return o.join("")}function hj(e,t){const n=GD(e),r=[];for(let e=0;e<n.length;e++){const o=n[e];"nl"===o.t&&t.get("nl2br")?r.push({type:sj,tagName:"br",attributes:[],selfClosing:!0}):o.isLink&&t.check(o)?r.push({type:lj,rendered:t.render(o)}):r.push({type:uj,chars:o.toString()})}return r}function pj(e,t,n,r){let o=1;for(;n<t.length&&o>0;){let i=t[n];i.type===sj&&i.tagName.toUpperCase()===e?o++:i.type===cj&&i.tagName.toUpperCase()===e&&o--,r.push(i),n++}return r}function fj({tagName:e,attributes:t,content:n}){return`<${e} ${function(e){const t=[];for(const n in e){const r=e[n]+"";t.push(`${n}="${gj(r)}"`)}return t.join(" ")}(t)}>${mj(n)}</${e}>`}function mj(e){return e.replace(/</g,"<").replace(/>/g,">")}function gj(e){return e.replace(/"/g,""")}function yj(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n][0],o=e[n][1]+"";t.push(`${r}="${gj(o)}"`)}return t}const vj=e=>{const t=e?e.toUpperCase():"";return["HOLOTYPE","LECTOTYPE","NEOTYPE"].includes(t)?"#e2614a":["PARATYPE","PARALECTOTYPE","SYNTYPE"].includes(t)?"#f1eb0b":["ALLOTYPE"].includes(t)?"#7edaff":null},bj=(e,t)=>{var n;let r=(null==e?void 0:e.gbifKey)&&(null==e?void 0:e.gbifPublisherKey)===(null==uA?void 0:uA.plaziGbifPublisherKey)?`https://www.gbif.org/occurrence/${null==e?void 0:e.gbifKey}/${t.id}`:"";!r&&(null==(n=null==t?void 0:t.link)?void 0:n.startsWith("https://www.gbif.org/occurrence/"))&&(r=null==t?void 0:t.link);const o=(null==t?void 0:t.associatedSequences)&&(null==t?void 0:t.associatedSequences.indexOf("ncbi."))>-1?null==t?void 0:t.associatedSequences:"";return(r||o)&&F.jsx("span",{id:`${t.id}-type-material-links`,children:F.jsxs(SC,{children:[r&&F.jsx(tv,{title:"Occurrence in GBIF",getPopupContainer:()=>document.getElementById(`${t.id}-type-material-links`)||document.body,children:F.jsxs("a",{style:{marginLeft:4},href:r,target:"_blank",rel:"noreferrer",children:["GBIF ",F.jsx(ZA,{})]})}),o&&F.jsx(tv,{title:"DNA sequence in GenBank",children:F.jsxs("a",{href:o,target:"_blank",rel:"noreferrer",children:["GenBank ",F.jsx(ZA,{})]})})]})})},xj=({dataset:e,data:t,nameID:n,style:r})=>t[n]?F.jsx("div",{style:r,children:t[n].map(t=>F.jsxs(rz,{children:[F.jsx(wM,{color:vj(null==t?void 0:t.status),children:null==t?void 0:t.status})," ",t.merged&&F.jsx(PA,{createdBy:null==t?void 0:t.createdBy,datasetKey:null==t?void 0:t.datasetKey,verbatimSourceKey:null==t?void 0:t.verbatimSourceKey,sourceDatasetKey:null==t?void 0:t.sourceDatasetKey}),bj(e,t)," ",(null==t?void 0:t.citation)&&F.jsx("span",{dangerouslySetInnerHTML:{__html:dj((null==t?void 0:t.citation)||"")}})]},t.id))}):null;class wj extends y.Component{constructor(e){super(e),o(this,"getData",()=>{const{nameId:e,datasetKey:t,references:n}=this.props;if(referenceId){const r=zM.isArray(referenceId)?referenceId:[referenceId],o=[];this.setState({loading:!0}),Promise.all(r.map(r=>zM.get(n,r)?Promise.resolve(o.push(n[e])):UN(`${uA.dataApi}dataset/${t}/name/${encodeURIComponent(e)}/types`).then(e=>o.push(e.data)))).then(()=>this.setState({typeMaterial:o,loading:!1}))}}),o(this,"getContent",()=>{const{typeMaterial:e,nameId:t}=this.props,n=(null==e?void 0:e[t])||[];if(n.length>0)return F.jsx("div",{children:n.map(e=>F.jsxs("div",{style:{marginBottom:"8px"},children:[F.jsx(wM,{color:vj(null==e?void 0:e.status),children:null==e?void 0:e.status}),e.merged&&F.jsxs(F.Fragment,{children:[F.jsx(PA,{})," "]}),(null==e?void 0:e.citation)&&F.jsx("span",{dangerouslySetInnerHTML:{__html:dj((null==e?void 0:e.citation)||"")}})]},e.id))})}),o(this,"render",()=>{const{typeMaterial:e,nameId:t}=this.props;return((null==e?void 0:e[t])||[]).length>0?F.jsxs(lv,{getPopupContainer:()=>document.getElementById(`type_popover_${t}`),placement:this.props.placement||"left",title:"Type Material",content:F.jsx("div",{style:{maxWidth:"500px"},children:this.getContent()}),trigger:"click",children:[" ",F.jsx(iI,{style:{cursor:"pointer"},id:`type_popover_${t}`})]}):""}),this.state={typeMaterial:[],loading:!1,error:null}}}const Cj=({total:e,visible:t,showAll:n,onChange:r})=>e<=t&&!n?null:F.jsx("a",{onClick:()=>r(!n),style:{cursor:"pointer"},children:n?"Show less":`Show all (${e})`}),kj=({datasetKey:e,data:t,style:n,nomStatus:r,references:o,decisions:i,typeMaterial:a,referenceIndexMap:l,primarySource:s})=>{const[c,u]=g.useState(!1),d=(e,t)=>zM.get(e,"name.combinationAuthorship.year")&&zM.get(t,"name.combinationAuthorship.year")?zM.get(t,"name.combinationAuthorship.year")-zM.get(e,"name.combinationAuthorship.year"):zM.get(e,"name.scientificName")<zM.get(t,"name.scientificName")?-1:1,h=[];t.homotypic&&[...t.homotypic].sort(d).forEach(e=>{h.push({syn:e,homotypic:!0,indent:!1})}),t.heterotypicGroups&&[...t.heterotypicGroups].sort((e,t)=>d(e[0],t[0])).forEach(e=>{e.forEach((e,t)=>{h.push({syn:e,homotypic:t>0,indent:t>0})})});const p=h.length,f=c?h:h.slice(0,5);return F.jsxs("div",{style:n,children:[f.map(({syn:t,homotypic:n,indent:c})=>{return F.jsxs(rz,{children:[F.jsxs("span",{style:c?{marginLeft:"10px"}:null,children:[!0===n?"≡ ":"= "," ",F.jsx("span",{dangerouslySetInnerHTML:{__html:zM.get(t,"labelHtml",`${zM.get(t,"name.scientificName")} ${zM.get(t,"name.authorship","")}`)}})]})," ",(null==t?void 0:t.sourceDatasetKey)&&zM.get(s,"key")!==(null==t?void 0:t.sourceDatasetKey)&&F.jsx(PA,{createdBy:null==t?void 0:t.createdBy,datasetKey:t.datasetKey,sourceDatasetKey:null==t?void 0:t.sourceDatasetKey,verbatimSourceKey:t.verbatimSourceKey})," ",(null==i?void 0:i[null==t?void 0:t.id])&&F.jsx(iz,{decision:null==i?void 0:i[null==t?void 0:t.id]}),F.jsx(wj,{datasetKey:e,typeMaterial:a,nameId:zM.get(t,"name.id"),placement:"top"})," ",zM.get(t,"name.nomStatus")?`(${u=t,r?r[zM.get(u,"name.nomStatus")][zM.get(u,"name.code"),"zoological"]:zM.get(u,"name.nomStatus")})`:""," ","misapplied"===zM.get(t,"status")&&zM.get(t,"accordingTo")?zM.get(t,"accordingTo"):"","ambiguous synonym"===zM.get(t,"status")&&"(Ambiguous)",F.jsx(oz,{datasetKey:e,references:o,referenceIndexMap:l,referenceId:zM.get(t,"name.publishedInId")?[zM.get(t,"name.publishedInId"),...t.referenceIds||[]]:t.referenceIds,placement:"top",style:{display:"inline-block"}})]},zM.get(t,"name.id"));var u}),F.jsx(Cj,{total:p,visible:5,showAll:c,onChange:u})]})},Sj=()=>UN(`${uA.dataApi}vocab/country`).then(e=>e.data);class Ej extends y.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{const{data:e}=this.props;Sj().then(t=>{const n={},r={};t.forEach(e=>{n[e.alpha3]=e,r[e.alpha2]=e});const o=e.map(e=>this.decorateWithCountryByCode(e,r,n));return this.setState({data:o}),Promise.all(o.map(this.decorateWithLanguageByCode))}).then(()=>{this.state.data.sort((e,t)=>e.languageName>t.languageName?1:-1),this.setState({data:[...this.state.data]})})}),o(this,"decorateWithCountryByCode",(e,t,n)=>t&&e.country&&2===e.country.length?{...e,countryTitle:zM.get(t,`[${e.country}].title`)||""}:n&&e.country&&3===e.country.length?{...e,countryTitle:zM.get(n,`[${e.country}].title`)||""}:e),o(this,"decorateWithLanguageByCode",e=>e.language?UN(`${uA.dataApi}vocab/language/${e.language}`).then(t=>{e.languageName=t.data}).catch(e=>console.log(e)):Promise.resolve());const{references:t}=this.props;this.state={data:this.props.data?[...this.props.data]:[],showAll:!1,countryAlpha3:{},countryAlpha2:{},columns:[{title:"",dataIndex:"merged",key:"merged",width:12,render:(e,t)=>(null==t?void 0:t.merged)?F.jsx(PA,{createdBy:null==t?void 0:t.createdBy,datasetKey:null==t?void 0:t.datasetKey,verbatimSourceKey:null==t?void 0:t.verbatimSourceKey,sourceDatasetKey:null==t?void 0:t.sourceDatasetKey}):""},{title:"Original name",dataIndex:"name",key:"name"},{title:"Transliterated name",dataIndex:"latin",key:"latin"},{title:"Language",dataIndex:"language",key:"language",render:(e,t)=>t.languageName?t.languageName:e},{title:"Country of use",dataIndex:"country",key:"country",render:(e,t)=>t.countryTitle?t.countryTitle:e},{title:"",dataIndex:"referenceId",key:"referenceId",render:(e,n)=>e?F.jsx(oz,{referenceId:e,references:t,datasetKey:this.props.datasetKey,placement:"left"}):""}]}}render(){const{style:e}=this.props,{data:t,columns:n,showAll:r}=this.state,o=r?t:t.slice(0,5);return F.jsxs(F.Fragment,{children:[F.jsx(dM,{style:e,className:"colplus-taxon-page-list",columns:n,dataSource:o,rowKey:"id",pagination:!1,size:"middle"}),F.jsx(Cj,{total:t.length,visible:5,showAll:r,onChange:e=>this.setState({showAll:e})})]})}}const $j=["subspecies","variety","subvariety","form","subform","infraspecific name"],Tj=(e,t)=>{const n=t.indexOf(e);return-1===n?[]:$j.filter(e=>t.indexOf(e)>n)},Pj=e=>{var t,n;return"text"!==(null==(t=null==e?void 0:e.area)?void 0:t.gazetteer)&&!!(null==(n=null==e?void 0:e.area)?void 0:n.globalId)},Mj=async({datasetKey:e,focalTaxon:t,rankOrder:n})=>{var r;const o=Tj(null==(r=null==t?void 0:t.name)?void 0:r.rank,n);let i=!1,a=[];try{a=await(async(e,t,n)=>{var r;if(0===n.length)return[];const o=new URLSearchParams;o.append("TAXON_ID",t),n.forEach(e=>o.append("rank",e)),["accepted","provisionally accepted"].forEach(e=>o.append("status",e)),o.append("limit","1000");const i=`${uA.dataApi}dataset/${e}/nameusage/search?${o}`,a=await UN(i);return((null==(r=null==a?void 0:a.data)?void 0:r.result)||[]).filter(e=>{var t;return null==(t=null==e?void 0:e.usage)?void 0:t.id}).map(e=>{var t,n,r,o,i,a;return{id:e.usage.id,scientificName:(null==(n=null==(t=e.usage)?void 0:t.name)?void 0:n.scientificName)||(null==(r=e.usage)?void 0:r.label)||e.usage.id,rank:null==(i=null==(o=e.usage)?void 0:o.name)?void 0:i.rank,parentId:null==(a=e.usage)?void 0:a.parentId}})})(e,t.id,o)}catch{return i=!0,{taxa:[],descendantsFailed:i}}const l=await(async(e,t,n)=>{const r=new Array(e.length);let o=0;const i=Array.from({length:Math.min(n,e.length)},async()=>{for(;;){const n=o++;if(n>=e.length)return;r[n]=await t(e[n],n)}});return await Promise.all(i),r})(a,t=>(async(e,t)=>{const n=`${uA.dataApi}dataset/${e}/taxon/${encodeURIComponent(t)}/distribution`;try{const e=await UN(n);return Array.isArray(null==e?void 0:e.data)?e.data:[]}catch{return[]}})(e,t.id),16);return{taxa:a.map((e,t)=>{const n=l[t]||[];return{...e,distributions:n,mappable:n.filter(Pj)}}),descendantsFailed:i}},Oj=["#E58606","#5D69B1","#52BCA3","#99C945","#CC61B0","#24796C","#DAA51B","#2F8AC4","#764E9F","#ED645A","#CC3A8E","#A5AA99"],Nj=(e,t)=>{const n=t.indexOf(e);return-1===n?t.length:n},Aj={position:"absolute",bottom:8,left:8,zIndex:1e3,background:"#fff",borderRadius:4,boxShadow:"0 1px 4px rgba(0,0,0,0.2)",padding:"6px 8px",fontSize:12,lineHeight:1.5,maxWidth:260},Ij={maxHeight:240,overflowY:"auto"},Rj={fontWeight:600,marginTop:4},Lj={...Rj,marginTop:0},Bj={display:"flex",alignItems:"center",gap:6,paddingLeft:4},zj=e=>({display:"inline-block",width:12,height:12,background:e,border:"1px solid rgba(0,0,0,0.15)",borderRadius:2,flex:"0 0 auto"}),Dj={marginTop:6,cursor:"pointer",color:"#1890ff",fontSize:11},jj={marginTop:4,borderTop:"1px solid #eee",paddingTop:4,color:"#666"},_j={fontWeight:600,marginTop:4},Fj={..._j,marginTop:0},Hj={fontStyle:"italic",paddingLeft:4},Wj=e=>e.reduce((e,t)=>e+t.taxa.length,0),Kj=()=>F.jsxs("div",{style:Bj,children:[F.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true",children:F.jsx("polygon",{points:"3,1 9,1 11,6 9,11 3,11 1,6",fill:"#de1e6e",stroke:"rgba(0,0,0,0.25)",strokeWidth:"0.75"})}),F.jsx("span",{children:"GBIF occurrences"})]}),Vj=({visibleGroups:e,unmappableGroups:t,showGbif:n})=>{const[r,o]=g.useState(!1),i=Wj(e),a=Wj(t);return 0!==i||0!==a||n?F.jsxs("div",{style:Aj,children:[F.jsxs("div",{style:Ij,children:[e.map((e,t)=>F.jsxs("div",{children:[F.jsx("div",{style:0===t?Lj:Rj,children:e.label}),e.taxa.map(e=>F.jsxs("div",{style:Bj,children:[F.jsx("span",{style:zj(e.color)}),F.jsx("span",{style:{fontStyle:"italic"},children:e.displayName||e.scientificName})]},e.id))]},e.rank)),n&&F.jsx(Kj,{})]}),a>0&&F.jsxs(F.Fragment,{children:[F.jsxs("div",{style:Dj,onClick:()=>o(e=>!e),children:[r?"− Hide":"+"," ",a," without map data"]}),r&&F.jsx("div",{style:jj,children:t.map((e,t)=>F.jsxs("div",{children:[F.jsx("div",{style:0===t?Fj:_j,children:e.label}),e.taxa.map(e=>F.jsx("div",{style:Hj,children:e.displayName||e.scientificName},e.id))]},e.rank))})]})]}):null},Uj=["establishmentMeans","degreeOfEstablishment","pathway","threatStatus","year","lifeStage"],qj=[{key:"nativeendemic",label:"Native endemic",color:"#0F8554"},{key:"native",label:"Native",color:"#87C55F"},{key:"nativereintroduced",label:"Native reintroduced",color:"#C9DB74"},{key:"introduced",label:"Introduced",color:"#FE88B1"},{key:"introducedassistedcolonisation",label:"Introduced assisted colonisation",color:"#DCB0F2"},{key:"vagrant",label:"Vagrant",color:"#F6CF71"},{key:"uncertain",label:"Uncertain",color:"#8BE0A4"}],Gj=Object.fromEntries(qj.map(e=>[e.key,e.color])),Xj="#66C5CC",Yj=e=>{const t=null==e?void 0:e.establishmentMeans;if(null==t||""===t)return null;const n=String(t||"").toLowerCase().replace(/[^a-z]/g,"");return Gj[n]?n:"uncertain"},Zj="col-browser:gbif-visible",Qj="col-focal-distributions",Jj="col-focal-fill",e_="col-focal-line",t_="col-gbif-occurrences",n_="col-gbif-occurrences",r_=e=>`col-descendant-${e}`,o_=e=>`col-descendant-fill-${e}`,i_=e=>`col-descendant-line-${e}`,a_=new Map,l_=(e,t)=>{const n=`${e}:${t}`;if(a_.has(n))return a_.get(n);const r=UN(`${uA.dataApi}vocab/area/${n}`,{headers:{Accept:"application/geo+json"}}).then(e=>e.data,()=>null);return a_.set(n,r),r},s_=e=>String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),c_=e=>{var t,n;const r=(null==(t=null==e?void 0:e.area)?void 0:t.name)||(null==(n=null==e?void 0:e.area)?void 0:n.globalId)||"",o=Uj.map(t=>[t,null==e?void 0:e[t]]).filter(([,e])=>null!=e&&""!==e).map(([e,t])=>`<div><strong>${s_(e)}:</strong> ${s_(t)}</div>`).join("");return`<div style="min-width:180px"><div style="font-weight:600;margin-bottom:4px">${s_(r)}</div>${o}</div>`},u_={subspecies:"subspecies",variety:"varieties",subvariety:"subvarieties",form:"forms",subform:"subforms","infraspecific name":"infraspecific names"},d_=e=>u_[e]||e,h_=e=>{if(!e)return"";const t=e.trim().split(/\s+/);return t[t.length-1]},p_=()=>F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[F.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true",children:F.jsx("polygon",{points:"3,1 9,1 11,6 9,11 3,11 1,6",fill:"#de1e6e",stroke:"rgba(0,0,0,0.25)",strokeWidth:"0.75"})}),F.jsx("span",{children:"GBIF occurrences"})]}),f_=e=>e?"FeatureCollection"===e.type?e.features||[]:[e]:[],m_=()=>"function"==typeof(null==e?void 0:e.supported)?e.supported():"undefined"!=typeof WebGLRenderingContext,g_=({records:t,onUnmappable:n,datasetKey:r,focalTaxon:o,rankOrder:i,gbifChecklistKey:a,gbifAvailable:l=!0})=>{var s;const c=g.useRef(null),u=g.useRef(null),d=g.useRef(null),h=g.useRef(new Map),p=g.useRef(new Map),f=g.useRef(new Map),m=g.useRef(!1),y=g.useRef(!1),v=g.useRef(new Set),[b,x]=g.useState(!1),[w,C]=g.useState(!1),[k,S]=g.useState({status:"idle",taxa:[]}),[E,$]=g.useState(!0),T=!(!a||t&&0!==t.length),[P,M]=g.useState(()=>!!T||(e=>{try{const e=window.sessionStorage.getItem(Zj);if("true"===e)return!0;if("false"===e)return!1}catch{}return e})(!0)),[O,N]=g.useState(new Set),[A,I]=g.useState(!1),R=g.useRef(!1),L=g.useMemo(()=>{if(!(null==t?void 0:t.length))return[];const e=new Set;return t.forEach(t=>{const n=Yj(t);null!=n&&e.add(n)}),qj.filter(t=>e.has(t.key))},[t]),B=g.useMemo(()=>"ready"!==k.status?{}:((e,t)=>{const n=[...e].sort((e,n)=>{const r=Nj(e.rank,t),o=Nj(n.rank,t);return r!==o?r-o:e.scientificName.localeCompare(n.scientificName)}),r={};return n.forEach((e,t)=>{r[e.id]=Oj[t%Oj.length]}),r})(k.taxa.filter(e=>e.mappable.length>0),i||[]),[k,i]),z=g.useMemo(()=>{if("ready"!==k.status)return{visibleGroups:[],unmappableGroups:[]};const e=e=>{const t={};return e.forEach(e=>{(t[e.rank]=t[e.rank]||[]).push((e=>({...e,color:B[e.id],displayName:h_(e.scientificName)}))(e))}),$j.filter(e=>t[e]).map(e=>({rank:e,label:d_(e),taxa:t[e]}))};return{visibleGroups:e(k.taxa.filter(e=>e.mappable.length>0&&O.has(e.id))),unmappableGroups:e(k.taxa.filter(e=>0===e.mappable.length))}},[k,B,O]),D=z.visibleGroups.length>0;g.useEffect(()=>{if(!c.current||u.current)return;if(!m_())return;const t=new e.Map({container:c.current,style:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",center:[0,20],zoom:1,minZoom:0,attributionControl:!1,renderWorldCopies:!0});t.addControl(new e.AttributionControl({compact:!0}),"bottom-right"),t.addControl(new e.NavigationControl({showCompass:!1}),"top-left"),u.current=t,t.on("load",()=>{x(!0);const e=t.getContainer().querySelector(".maplibregl-ctrl-attrib");e&&e.classList.remove("maplibregl-compact-show")});const n="undefined"!=typeof ResizeObserver?new ResizeObserver(()=>t.resize()):null;return n&&n.observe(c.current),()=>{n&&n.disconnect(),d.current&&(d.current.remove(),d.current=null),t.remove(),u.current=null,m.current=!1,y.current=!1,v.current=new Set}},[]),g.useEffect(()=>{if(!b||!(null==t?void 0:t.length))return;const e=u.current;if(!e)return;let r=!1;return C(!1),Promise.allSettled(t.map(e=>l_(e.area.gazetteer,e.area.id).then(t=>({record:e,geojson:t})))).then(t=>{if(r)return;const o=[],i=new Map;let a=0;t.forEach((e,t)=>{if("fulfilled"!==e.status||!e.value.geojson)return void(a+=1);const{record:n,geojson:r}=e.value,l=(e=>{const t=Yj(e);return null==t?Xj:Gj[t]})(n),s=`focal-${t}`;i.set(s,n),f_(r).forEach(e=>{o.push({...e,properties:{...e.properties||{},_recordKey:s,_color:l}})})}),h.current=i;const l={type:"FeatureCollection",features:o};if(e.getSource(Qj))e.getSource(Qj).setData(l);else{const t=e.getLayer(n_)?n_:void 0;e.addSource(Qj,{type:"geojson",data:l}),e.addLayer({id:Jj,type:"fill",source:Qj,paint:{"fill-color":["coalesce",["get","_color"],Xj],"fill-opacity":.65}},t),e.addLayer({id:e_,type:"line",source:Qj,paint:{"line-color":["coalesce",["get","_color"],Xj],"line-width":1}},t),e.on("click",Jj,j),e.on("mouseenter",Jj,_),e.on("mouseleave",Jj,H),m.current=!0}if(o.length>0){const t=(e=>{var t;let n=1/0,r=1/0,o=-1/0,i=-1/0;const a=e=>{if("number"==typeof e[0]){const[t,a]=e;t<n&&(n=t),t>o&&(o=t),a<r&&(r=a),a>i&&(i=a)}else for(let t=0;t<e.length;t++)a(e[t])};for(let n=0;n<e.length;n++){const r=null==(t=e[n])?void 0:t.geometry;(null==r?void 0:r.coordinates)&&a(r.coordinates)}return n===1/0?null:[[n,r],[o,i]]})(o);t&&e.fitBounds(t,{padding:20,animate:!1})}"function"==typeof n&&n(a),C(!0)}),()=>{r=!0}},[b,t]);const j=t=>{var n,r;const o=u.current;if(!o)return;const i=null==(n=t.features)?void 0:n[0],a=null==(r=null==i?void 0:i.properties)?void 0:r._recordKey,l=a?h.current.get(a):null;l&&(d.current&&d.current.remove(),d.current=new e.Popup({closeButton:!0,maxWidth:"320px"}).setLngLat(t.lngLat).setHTML(c_(l)).addTo(o))},_=()=>{const e=u.current;e&&(e.getCanvas().style.cursor="pointer")},H=()=>{const e=u.current;e&&(e.getCanvas().style.cursor="")};g.useEffect(()=>{const e=u.current;if(!e||!m.current)return;const t=E?"visible":"none";e.getLayer(Jj)&&e.setLayoutProperty(Jj,"visibility",t),e.getLayer(e_)&&e.setLayoutProperty(e_,"visibility",t)},[E,w]),g.useEffect(()=>{if(!b)return;const e=u.current;if(!e)return;if(e.getLayer(n_)&&e.removeLayer(n_),e.getSource(t_)&&e.removeSource(t_),y.current=!1,!a||!(null==o?void 0:o.id))return;if(!1===l)return;const t=(uA.gbifApi+"/v2/map/occurrence/density/{z}/{x}/{y}@1x.png?srs=EPSG%3A3857&style=iNaturalist.poly&bin=hex&hexPerTile=64&hasCoordinate=true&hasGeospatialIssue=false&occurrenceStatus=PRESENT&checklistKey={checklistKey}&taxonKey={taxonKey}").replace("{checklistKey}",encodeURIComponent(a)).replace("{taxonKey}",encodeURIComponent(o.id)),n=uA.gbifPortal+"/occurrence/search?checklist_key="+encodeURIComponent(a)+"&taxon_key="+encodeURIComponent(o.id);e.addSource(t_,{type:"raster",tiles:[t],tileSize:256,attribution:'<a href="'+n+'" target="_blank" rel="noopener">GBIF</a> occurrence data'}),e.addLayer({id:n_,type:"raster",source:t_,paint:{"raster-opacity":.9},layout:{visibility:P?"visible":"none"}}),y.current=!0},[b,a,null==o?void 0:o.id,l]),g.useEffect(()=>{const e=u.current;if(!e||!y.current)return;const t=P?"visible":"none";e.getLayer(n_)&&e.setLayoutProperty(n_,"visibility",t)},[P]),g.useEffect(()=>{if(!b)return;const e=u.current;if(!e)return;if(v.current.forEach(t=>{e.getLayer(o_(t))&&e.removeLayer(o_(t)),e.getLayer(i_(t))&&e.removeLayer(i_(t)),e.getSource(r_(t))&&e.removeSource(r_(t))}),v.current=new Set,p.current=new Map,f.current=new Map,"ready"!==k.status)return;const t=B;k.taxa.forEach(e=>{0!==e.mappable.length&&(p.current.set(e.id,e),Promise.allSettled(e.mappable.map(e=>l_(e.area.gazetteer,e.area.id).then(t=>({record:e,geojson:t})))).then(n=>{if(!u.current)return;const r=[];n.forEach((t,n)=>{if("fulfilled"!==t.status||!t.value.geojson)return;const{record:o,geojson:i}=t.value,a=`desc-${e.id}-${n}`;f.current.set(a,{taxon:e,record:o}),f_(i).forEach(e=>{r.push({...e,properties:{...e.properties||{},_recordKey:a}})})});const o=t[e.id]||Xj,i={type:"FeatureCollection",features:r},a=r_(e.id);if(u.current.getSource(a))u.current.getSource(a).setData(i);else{u.current.addSource(a,{type:"geojson",data:i});const t=o_(e.id),n=i_(e.id),r=u.current.getLayer(n_)?n_:void 0;u.current.addLayer({id:t,type:"fill",source:a,paint:{"fill-color":o,"fill-opacity":.55},layout:{visibility:"none"}},r),u.current.addLayer({id:n,type:"line",source:a,paint:{"line-color":o,"line-width":2},layout:{visibility:"none"}},r),u.current.on("click",t,W),u.current.on("mouseenter",t,_),u.current.on("mouseleave",t,H),v.current.add(e.id)}}))})},[b,k,B]);const W=t=>{var n,r;const o=u.current;if(!o)return;const i=null==(n=t.features)?void 0:n[0],a=null==(r=null==i?void 0:i.properties)?void 0:r._recordKey,l=a?f.current.get(a):null;var s,c;l&&(d.current&&d.current.remove(),d.current=new e.Popup({closeButton:!0,maxWidth:"320px"}).setLngLat(t.lngLat).setHTML((s=l.taxon,c=l.record,`<div style="font-weight:600;font-style:italic;margin-bottom:4px">${s_(s.scientificName)}</div><div style="color:#888;margin-bottom:4px">${s_(s.rank||"")}</div>`+c_(c))).addTo(o))};g.useEffect(()=>{const e=u.current;e&&v.current.forEach(t=>{const n=O.has(t)?"visible":"none";e.getLayer(o_(t))&&e.setLayoutProperty(o_(t),"visibility",n),e.getLayer(i_(t))&&e.setLayoutProperty(i_(t),"visibility",n)})},[O,k]);const K=()=>{var e;if(R.current)return;if(!r||!o||!i)return;const t=null==(e=null==o?void 0:o.name)?void 0:e.rank;if(!t)return;if("species"!==t&&!$j.includes(t))return;0!==Tj(t,i).length&&(R.current=!0,S({status:"loading",taxa:[]}),Mj({datasetKey:r,focalTaxon:o,rankOrder:i}).then(({taxa:e,descendantsFailed:t})=>{t?S({status:"error",taxa:[]}):0!==e.length?S({status:"ready",taxa:e}):S({status:"empty",taxa:[]})}))},V=g.useMemo(()=>{if("ready"!==k.status)return[];const e={};return k.taxa.filter(e=>e.mappable.length>0).forEach(t=>{(e[t.rank]=e[t.rank]||[]).push(t)}),$j.filter(t=>e[t]).map(t=>({rank:t,label:d_(t),taxa:e[t].slice().sort((e,t)=>e.scientificName.localeCompare(t.scientificName))}))},[k]);if(!m_())return F.jsx("div",{style:{padding:12,background:"#fafafa",border:"1px solid #eee",borderRadius:4,color:"#666",fontSize:12},children:"Maps require WebGL, which your browser doesn't support."});const U=(null==(s=null==o?void 0:o.name)?void 0:s.scientificName)||"This taxon";return F.jsxs("div",{className:"col-distributions-map",style:{position:"relative"},children:[F.jsx("div",{ref:c,style:{height:360,width:"100%",background:"#f5f5f5"}}),F.jsx(y_,{open:A,onOpen:()=>{I(!0),K()},onClose:()=>I(!1),focalName:U,focalReady:w,focalVisible:E,onToggleFocal:()=>$(e=>!e),gbifEnabled:!!a,gbifVisible:P,gbifAvailable:l,onToggleGbif:()=>{M(e=>{const t=!e;return T||(e=>{try{window.sessionStorage.setItem(Zj,e?"true":"false")}catch{}})(t),t})},descendantStatus:k.status,descendantsByRank:V,descendantColors:B,visibleTaxonIds:O,onToggleTaxon:e=>{N(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},onToggleRankGroup:e=>{N(t=>{const n=new Set(t),r=e.every(e=>t.has(e.id));return e.forEach(e=>{r?n.delete(e.id):n.add(e.id)}),n})},onRetry:()=>{R.current=!1,S({status:"idle",taxa:[]}),K()}}),!D&&(L.length>0||a&&!1!==l&&P)&&F.jsxs("div",{style:{position:"absolute",bottom:8,left:8,zIndex:1,background:"#fff",borderRadius:4,boxShadow:"0 1px 4px rgba(0,0,0,0.2)",padding:"6px 8px",fontSize:12,lineHeight:1.5},children:[L.map(e=>F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[F.jsx("span",{style:{display:"inline-block",width:12,height:12,background:e.color,border:"1px solid rgba(0,0,0,0.15)",borderRadius:2}}),F.jsx("span",{children:e.label})]},e.key)),a&&!1!==l&&P&&F.jsx(p_,{})]}),D&&F.jsx(Vj,{visibleGroups:z.visibleGroups,unmappableGroups:z.unmappableGroups,showGbif:!!a&&!1!==l&&P})]})},y_=({open:e,onOpen:t,onClose:n,focalName:r,focalReady:o,focalVisible:i,onToggleFocal:a,gbifEnabled:l,gbifVisible:s,gbifAvailable:c,onToggleGbif:u,descendantStatus:d,descendantsByRank:h,descendantColors:p,visibleTaxonIds:f,onToggleTaxon:m,onToggleRankGroup:g,onRetry:y})=>e?F.jsxs("div",{style:{position:"absolute",top:10,right:10,zIndex:2,background:"#fff",borderRadius:4,boxShadow:"0 1px 4px rgba(0,0,0,0.2)",padding:"6px 10px",fontSize:12,lineHeight:1.5,maxHeight:320,overflowY:"auto",minWidth:160},onMouseLeave:n,children:[F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[F.jsx("input",{type:"checkbox",checked:i,disabled:!o,onChange:a}),F.jsx("span",{style:{fontStyle:"italic"},children:r})]}),l&&F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,opacity:!1===c?.5:1},title:!1===c?"GBIF has no occurrence records for this taxon.":void 0,children:[F.jsx("input",{type:"checkbox",checked:!1!==c&&s,disabled:!1===c,onChange:u}),F.jsx("span",{children:"GBIF occurrences"})]}),"loading"===d&&F.jsx("div",{style:{marginTop:6,color:"#888"},children:"Loading descendants…"}),"error"===d&&F.jsxs("div",{style:{marginTop:6,color:"#888"},children:["Couldn't load descendants."," ",F.jsx("a",{onClick:y,style:{cursor:"pointer"},children:"Retry"})]}),"ready"===d&&h.map(e=>{const t=e.taxa.every(e=>f.has(e.id)),n=e.taxa.some(e=>f.has(e.id));return F.jsxs("div",{style:{marginTop:6},children:[F.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,fontWeight:600},children:[F.jsx("input",{type:"checkbox",checked:t,ref:e=>{e&&(e.indeterminate=!t&&n)},onChange:()=>g(e.taxa)}),e.label]}),F.jsx("div",{style:{paddingLeft:18},children:e.taxa.map(e=>F.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6},children:[F.jsx("input",{type:"checkbox",checked:f.has(e.id),onChange:()=>m(e.id)}),F.jsx("span",{style:{display:"inline-block",width:10,height:10,background:p[e.id],border:"1px solid rgba(0,0,0,0.15)",borderRadius:2}}),F.jsx("span",{style:{fontStyle:"italic"},children:h_(e.scientificName)})]},e.id))})]},e.rank)})]}):F.jsx("button",{type:"button",onClick:t,onMouseEnter:t,title:"Layers",style:{position:"absolute",top:10,right:10,zIndex:2,width:30,height:30,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",borderRadius:4,cursor:"pointer",fontSize:18,lineHeight:"26px",padding:0,boxShadow:"0 1px 4px rgba(0,0,0,0.2)"},children:"+"}),v_=e=>{var t,n;return"text"!==(null==(t=null==e?void 0:e.area)?void 0:t.gazetteer)&&!!(null==(n=null==e?void 0:e.area)?void 0:n.globalId)},b_=({datasetKey:e,data:t})=>{const[n,r]=g.useState({});return g.useEffect(()=>{let e=!1;for(let n=0;n<t.length;n++)if("iso"===t[n].gazetteer){e=!0;break}e&&UN(`${uA.dataApi}vocab/country`).then(e=>{r(zM.keyBy(e.data,"alpha3"))})},[]),F.jsx("div",{children:t.map((r,o)=>F.jsxs("span",{children:[(null==r?void 0:r.merged)&&F.jsx(PA,{createdBy:null==r?void 0:r.createdBy,datasetKey:r.datasetKey,sourceDatasetKey:null==r?void 0:r.sourceDatasetKey,verbatimSourceKey:null==r?void 0:r.verbatimSourceKey,style:{marginRight:"4px"}}),(zM.get(n,`[${zM.get(r,"area.name")}].name`)?zM.startCase(zM.get(n,`[${zM.get(r,"area.name")}].name`)):null)||zM.get(r,"area.name")||zM.get(r,"area.globalId")," ",r.referenceId&&F.jsx(oz,{datasetKey:e,referenceId:r.referenceId,placement:"bottom"}),o<t.length-1&&", "]},o))})},x_=({datasetKey:e,data:t,style:n,showDistributionMap:r,focalTaxon:o,rankOrder:i,gbifChecklistKey:a})=>{const l=t.filter(v_),s=t.length-l.length,c=!!a,u=t.length>0,[d,h]=g.useState("map"),[p,f]=g.useState(0),[m,y]=g.useState(null);g.useEffect(()=>{if(!a||!(null==o?void 0:o.id))return void y(null);y(null);let e=!1;return UN.get(`${uA.gbifApi}/v1/occurrence/search`,{params:{checklistKey:a,taxonKey:o.id,hasCoordinate:!0,hasGeospatialIssue:!1,occurrenceStatus:"PRESENT",limit:0}}).then(t=>{var n;e||y((null==(n=null==t?void 0:t.data)?void 0:n.count)??0)},()=>{e||y(null)}),()=>{e=!0}},[a,null==o?void 0:o.id]);const v=!!c&&(null===m||m>0),b=l.length>0&&p>=l.length,x=r&&(l.length>0||v)&&!(l.length>0&&b&&!v);if(!x&&c&&0===l.length&&0===m)return F.jsx("div",{style:n,children:F.jsx("span",{style:{color:"#888"},children:"No occurrence data on GBIF for this taxon."})});if(!x)return u?F.jsx("div",{style:n,children:F.jsx(b_,{datasetKey:e,data:t})}):null;const w=s+p,C=u,k=C?d:"map";return F.jsxs("div",{style:n,children:[C?F.jsxs(Rx.Group,{size:"small",value:k,onChange:e=>h(e.target.value),style:{marginBottom:8},children:[F.jsx(Rx.Button,{value:"map",children:"Map"}),F.jsx(Rx.Button,{value:"list",children:"List"})]}):F.jsx("div",{style:{height:24,marginBottom:8}}),"map"===k?F.jsxs(F.Fragment,{children:[F.jsx(g_,{records:l,onUnmappable:f,datasetKey:e,focalTaxon:o,rankOrder:i,gbifChecklistKey:a,gbifAvailable:v}),C&&w>0&&F.jsx("div",{style:{marginTop:6},children:F.jsxs("a",{onClick:()=>h("list"),style:{cursor:"pointer"},children:["+",w," distribution",1===w?"":"s"," not on map"]})})]}):F.jsx(b_,{datasetKey:e,data:t})]})},w_={color:"rgba(0, 0, 0, 0.45)",fontSize:"11px"},C_=({data:e,style:t})=>F.jsxs("div",{style:t,children:[" ",e.map((t,n)=>F.jsxs("div",{style:{float:"left",marginRight:"3px"},children:[F.jsxs("span",{style:w_,children:[t.rank,": "]}),F.jsx(vA,{to:"taxon",args:t.id,children:F.jsx("span",{dangerouslySetInnerHTML:{__html:t.labelHtml}})}),n<e.length-1&&" >"]},t.rank))]}),k_=JB({tip:{color:"rgba(0,0,0,.45)",marginLeft:"4px"},icon:{marginTop:"4px"}})(({title:e,classes:t})=>F.jsx(y.Fragment,{children:e&&F.jsx("span",{className:t.tip,children:F.jsx(tv,{title:e,getPopupContainer:()=>document.getElementsByClassName("catalogue-of-life")[0],children:F.jsx(ZC,{className:t.icon})})})})),S_=({label:e,helpText:t,classes:n,children:r,width:o,md:i,size:a})=>{const l=i||8,s=l<24?24-l:24,c="medium"===a?n.mediumMargin:n.smallMargin;return F.jsxs(zw,{className:n.formItem,children:[F.jsx(Lw,{sm:24,md:l,style:o<2?{marginBottom:0}:{},className:c,children:F.jsx("div",{children:F.jsxs("dt",{className:n.label,children:[e,F.jsx(k_,{title:t})]})})}),F.jsx(Lw,{sm:24,md:s,style:o<2?{marginTop:0}:{},className:c,children:(()=>{let e;return Array.isArray(r)&&r.length>0?e=r.map((e,t)=>F.jsx("span",{className:n.content,children:e},t)):Array.isArray(r)||void 0===r||(e=F.jsx("span",{className:n.content,children:r})),e})()})]})};S_.propTypes={label:kI.string.isRequired,helpText:kI.object};const E_=nz()(JB({formItem:{paddingBottom:0,width:"100%",clear:"both",borderBottom:"1px solid #eee","&:last-of-type":{border:"none"},"&>div":{paddingLeft:10,paddingRight:10}},label:{display:"block",color:"rgba(0, 0, 0, 0.85)"},content:{wordBreak:"break-word",marginBottom:0},noContent:{wordBreak:"break-word",color:"#bbb",marginBottom:0},contentCol:{wordBreak:"break-word"},smallMargin:{marginBottom:3,marginTop:3},mediumMargin:{marginBottom:10,marginTop:10}})(S_)),$_=(e,t)=>{if(t)switch(e.type){case"spelling correction":return"Has spelling correction";case"based on":return"Other name based on this";case"replacement name":return"Replaced by";case"later homonym":return"Has later homonym";case"superfluous":return"Has superfluous name";case"basionym":return"Basionym of";case"type":return"Type of";default:return zM.capitalize(e.type)}else switch(e.type){case"spelling correction":return"Spelling correction of";case"based on":return"Based on";case"replacement name":return"Replacement name of";case"later homonym":return"Later homonym of";case"superfluous":return"Superfluous name for";case"basionym":return"Basionym";case"type":return"Type";default:return zM.capitalize(e.type)}},T_=({data:e,md:t,reverse:n})=>e.map((e,r)=>F.jsxs(E_,{md:t,label:$_(e,n),helpText:e.note,children:[!n&&F.jsx("span",{dangerouslySetInnerHTML:{__html:e.relatedName.labelHtml}}),n&&F.jsx("span",{dangerouslySetInnerHTML:{__html:e.name.labelHtml}})]},r));
|
|
30
|
+
/*! @license DOMPurify 3.4.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.6/LICENSE */
|
|
31
|
+
function P_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return P_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const O_=Object.entries,N_=Object.setPrototypeOf,A_=Object.isFrozen,I_=Object.getPrototypeOf,R_=Object.getOwnPropertyDescriptor;let L_=Object.freeze,B_=Object.seal,z_=Object.create,D_="undefined"!=typeof Reflect&&Reflect,j_=D_.apply,__=D_.construct;L_||(L_=function(e){return e}),B_||(B_=function(e){return e}),j_||(j_=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),__||(__=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const F_=sF(Array.prototype.forEach),H_=sF(Array.prototype.lastIndexOf),W_=sF(Array.prototype.pop),K_=sF(Array.prototype.push),V_=sF(Array.prototype.splice),U_=Array.isArray,q_=sF(String.prototype.toLowerCase),G_=sF(String.prototype.toString),X_=sF(String.prototype.match),Y_=sF(String.prototype.replace),Z_=sF(String.prototype.indexOf),Q_=sF(String.prototype.trim),J_=sF(Number.prototype.toString),eF=sF(Boolean.prototype.toString),tF="undefined"==typeof BigInt?null:sF(BigInt.prototype.toString),nF="undefined"==typeof Symbol?null:sF(Symbol.prototype.toString),rF=sF(Object.prototype.hasOwnProperty),oF=sF(Object.prototype.toString),iF=sF(RegExp.prototype.test),aF=(lF=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return __(lF,t)});var lF;function sF(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return j_(e,t,r)}}function cF(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q_;if(N_&&N_(e,null),!U_(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(A_(t)||(t[r]=e),o=e)}e[o]=!0}return e}function uF(e){for(let t=0;t<e.length;t++){rF(e,t)||(e[t]=null)}return e}function dF(e){const t=z_(null);for(const r of O_(e)){var n=M_(r,2);const o=n[0],i=n[1];rF(e,o)&&(U_(i)?t[o]=uF(i):i&&"object"==typeof i&&i.constructor===Object?t[o]=dF(i):t[o]=i)}return t}function hF(e,t){for(;null!==e;){const n=R_(e,t);if(n){if(n.get)return sF(n.get);if("function"==typeof n.value)return sF(n.value)}e=I_(e)}return function(){return null}}const pF=L_(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fF=L_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mF=L_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gF=L_(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),yF=L_(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),vF=L_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),bF=L_(["#text"]),xF=L_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),wF=L_(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),CF=L_(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),kF=L_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),SF=B_(/{{[\w\W]*|^[\w\W]*}}/g),EF=B_(/<%[\w\W]*|^[\w\W]*%>/g),$F=B_(/\${[\w\W]*/g),TF=B_(/^data-[\-\w.\u00B7-\uFFFF]+$/),PF=B_(/^aria-[\-\w]+$/),MF=B_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),OF=B_(/^(?:\w+script|data):/i),NF=B_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),AF=B_(/^html$/i),IF=B_(/^[a-z][.\w]*(-[.\w]+)+$/i),RF=1,LF=3,BF=7,zF=8,DF=9,jF=11;var _F=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.4.6",n.removed=[],!t||!t.document||t.document.nodeType!==DF||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,i=o.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,l=t.Node,s=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;void 0===u&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,h=t.trustedTypes,p=s.prototype,f=hF(p,"cloneNode"),m=hF(p,"remove"),g=hF(p,"nextSibling"),y=hF(p,"childNodes"),v=hF(p,"parentNode"),b=hF(p,"shadowRoot"),x=hF(p,"attributes"),w=l&&l.prototype?hF(l.prototype,"nodeType"):null,C=l&&l.prototype?hF(l.prototype,"nodeName"):null;if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let k,S="";const E=r,$=E.implementation,T=E.createNodeIterator,P=E.createDocumentFragment,M=E.getElementsByTagName,O=o.importNode;let N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof O_&&"function"==typeof v&&$&&void 0!==$.createHTMLDocument;const A=SF,I=EF,R=$F,L=TF,B=PF,z=OF,D=NF,j=IF;let _=MF,F=null;const H=cF({},[...pF,...fF,...mF,...yF,...bF]);let W=null;const K=cF({},[...xF,...wF,...CF,...kF]);let V=Object.seal(z_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,q=null;const G=Object.seal(z_(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let X=!0,Y=!0,Z=!1,Q=!0,J=!1,ee=!0,te=!1,ne=!1,re=!1,oe=!1,ie=!1,ae=!1,le=!0,se=!1;const ce="user-content-";let ue=!0,de=!1,he={},pe=null;const fe=cF({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let me=null;const ge=cF({},["audio","video","img","source","image","track"]);let ye=null;const ve=cF({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",xe="http://www.w3.org/2000/svg",we="http://www.w3.org/1999/xhtml";let Ce=we,ke=!1,Se=null;const Ee=cF({},[be,xe,we],G_);let $e=cF({},["mi","mo","mn","ms","mtext"]),Te=cF({},["annotation-xml"]);const Pe=cF({},["title","style","font","a","script"]);let Me=null;const Oe=["application/xhtml+xml","text/html"];let Ne=null,Ae=null;const Ie=r.createElement("form"),Re=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ae&&Ae===e)return;e&&"object"==typeof e||(e={}),e=dF(e),Me=-1===Oe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ne="application/xhtml+xml"===Me?G_:q_,F=rF(e,"ALLOWED_TAGS")&&U_(e.ALLOWED_TAGS)?cF({},e.ALLOWED_TAGS,Ne):H,W=rF(e,"ALLOWED_ATTR")&&U_(e.ALLOWED_ATTR)?cF({},e.ALLOWED_ATTR,Ne):K,Se=rF(e,"ALLOWED_NAMESPACES")&&U_(e.ALLOWED_NAMESPACES)?cF({},e.ALLOWED_NAMESPACES,G_):Ee,ye=rF(e,"ADD_URI_SAFE_ATTR")&&U_(e.ADD_URI_SAFE_ATTR)?cF(dF(ve),e.ADD_URI_SAFE_ATTR,Ne):ve,me=rF(e,"ADD_DATA_URI_TAGS")&&U_(e.ADD_DATA_URI_TAGS)?cF(dF(ge),e.ADD_DATA_URI_TAGS,Ne):ge,pe=rF(e,"FORBID_CONTENTS")&&U_(e.FORBID_CONTENTS)?cF({},e.FORBID_CONTENTS,Ne):fe,U=rF(e,"FORBID_TAGS")&&U_(e.FORBID_TAGS)?cF({},e.FORBID_TAGS,Ne):dF({}),q=rF(e,"FORBID_ATTR")&&U_(e.FORBID_ATTR)?cF({},e.FORBID_ATTR,Ne):dF({}),he=!!rF(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?dF(e.USE_PROFILES):e.USE_PROFILES),X=!1!==e.ALLOW_ARIA_ATTR,Y=!1!==e.ALLOW_DATA_ATTR,Z=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,ee=!1!==e.SAFE_FOR_XML,te=e.WHOLE_DOCUMENT||!1,oe=e.RETURN_DOM||!1,ie=e.RETURN_DOM_FRAGMENT||!1,ae=e.RETURN_TRUSTED_TYPE||!1,re=e.FORCE_BODY||!1,le=!1!==e.SANITIZE_DOM,se=e.SANITIZE_NAMED_PROPS||!1,ue=!1!==e.KEEP_CONTENT,de=e.IN_PLACE||!1,_=function(e){try{return iF(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:MF,Ce="string"==typeof e.NAMESPACE?e.NAMESPACE:we,$e=rF(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?dF(e.MATHML_TEXT_INTEGRATION_POINTS):cF({},["mi","mo","mn","ms","mtext"]),Te=rF(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?dF(e.HTML_INTEGRATION_POINTS):cF({},["annotation-xml"]);const t=rF(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?dF(e.CUSTOM_ELEMENT_HANDLING):z_(null);if(V=z_(null),rF(t,"tagNameCheck")&&Re(t.tagNameCheck)&&(V.tagNameCheck=t.tagNameCheck),rF(t,"attributeNameCheck")&&Re(t.attributeNameCheck)&&(V.attributeNameCheck=t.attributeNameCheck),rF(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),J&&(Y=!1),ie&&(oe=!0),he&&(F=cF({},bF),W=z_(null),!0===he.html&&(cF(F,pF),cF(W,xF)),!0===he.svg&&(cF(F,fF),cF(W,wF),cF(W,kF)),!0===he.svgFilters&&(cF(F,mF),cF(W,wF),cF(W,kF)),!0===he.mathMl&&(cF(F,yF),cF(W,CF),cF(W,kF))),G.tagCheck=null,G.attributeCheck=null,rF(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?G.tagCheck=e.ADD_TAGS:U_(e.ADD_TAGS)&&(F===H&&(F=dF(F)),cF(F,e.ADD_TAGS,Ne))),rF(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?G.attributeCheck=e.ADD_ATTR:U_(e.ADD_ATTR)&&(W===K&&(W=dF(W)),cF(W,e.ADD_ATTR,Ne))),rF(e,"ADD_URI_SAFE_ATTR")&&U_(e.ADD_URI_SAFE_ATTR)&&cF(ye,e.ADD_URI_SAFE_ATTR,Ne),rF(e,"FORBID_CONTENTS")&&U_(e.FORBID_CONTENTS)&&(pe===fe&&(pe=dF(pe)),cF(pe,e.FORBID_CONTENTS,Ne)),rF(e,"ADD_FORBID_CONTENTS")&&U_(e.ADD_FORBID_CONTENTS)&&(pe===fe&&(pe=dF(pe)),cF(pe,e.ADD_FORBID_CONTENTS,Ne)),ue&&(F["#text"]=!0),te&&cF(F,["html","head","body"]),F.table&&(cF(F,["tbody"]),delete U.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw aF('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw aF('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=e.TRUSTED_TYPES_POLICY,S=k.createHTML("")}else void 0===k&&(k=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,i)),null!==k&&"string"==typeof S&&(S=k.createHTML(""));L_&&L_(e),Ae=e},Be=cF({},[...fF,...mF,...gF]),ze=cF({},[...yF,...vF]),De=function(e){K_(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){m(e)}},je=function(e,t){try{K_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){K_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(oe||ie)try{De(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},_e=function(e){let t=null,n=null;if(re)e="<remove></remove>"+e;else{const t=X_(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Me&&Ce===we&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=k?k.createHTML(e):e;if(Ce===we)try{t=(new d).parseFromString(o,Me)}catch(e){}if(!t||!t.documentElement){t=$.createDocument(Ce,"template",null);try{t.documentElement.innerHTML=ke?S:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ce===we?M.call(t,te?"html":"body")[0]:te?t.documentElement:i},Fe=function(e){return T.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},He=function(e){e.normalize();const t=T.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let n=t.nextNode();for(;n;){let e=n.data;F_([A,I,R],t=>{e=Y_(e,t," ")}),n.data=e,n=t.nextNode()}},We=function(e){const t=C?C(e):null;return"string"==typeof t&&("form"===Ne(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==x(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.childNodes!==y(e)))},Ke=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return w(e)===jF}catch(e){return!1}},Ve=function(e){if(!w||"object"!=typeof e||null===e)return!1;try{return"number"==typeof w(e)}catch(e){return!1}};function Ue(e,t,r){F_(e,e=>{e.call(n,t,r,Ae)})}const qe=function(e){let t=null;if(Ue(N.beforeSanitizeElements,e,null),We(e))return De(e),!0;const r=Ne(e.nodeName);if(Ue(N.uponSanitizeElement,e,{tagName:r,allowedTags:F}),ee&&e.hasChildNodes()&&!Ve(e.firstElementChild)&&iF(/<[/\w!]/g,e.innerHTML)&&iF(/<[/\w!]/g,e.textContent))return De(e),!0;if(ee&&e.namespaceURI===we&&"style"===r&&Ve(e.firstElementChild))return De(e),!0;if(e.nodeType===BF)return De(e),!0;if(ee&&e.nodeType===zF&&iF(/<[/\w]/g,e.data))return De(e),!0;if(U[r]||!(G.tagCheck instanceof Function&&G.tagCheck(r))&&!F[r]){if(!U[r]&&Ye(r)){if(V.tagNameCheck instanceof RegExp&&iF(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(ue&&!pe[r]){const t=v(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=f(n[r],!0);t.insertBefore(o,g(e))}}}return De(e),!0}return((w?w(e):e.nodeType)!==RF||function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:Ce,tagName:"template"});const n=q_(e.tagName),r=q_(t.tagName);return!!Se[e.namespaceURI]&&(e.namespaceURI===xe?t.namespaceURI===we?"svg"===n:t.namespaceURI===be?"svg"===n&&("annotation-xml"===r||$e[r]):Boolean(Be[n]):e.namespaceURI===be?t.namespaceURI===we?"math"===n:t.namespaceURI===xe?"math"===n&&Te[r]:Boolean(ze[n]):e.namespaceURI===we?!(t.namespaceURI===xe&&!Te[r])&&!(t.namespaceURI===be&&!$e[r])&&!ze[n]&&(Pe[n]||!Be[n]):!("application/xhtml+xml"!==Me||!Se[e.namespaceURI]))}(e))&&("noscript"!==r&&"noembed"!==r&&"noframes"!==r||!iF(/<\/no(script|embed|frames)/i,e.innerHTML))?(J&&e.nodeType===LF&&(t=e.textContent,F_([A,I,R],e=>{t=Y_(t,e," ")}),e.textContent!==t&&(K_(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ue(N.afterSanitizeElements,e,null),!1):(De(e),!0)},Ge=function(e,t,n){if(q[t])return!1;if(le&&("id"===t||"name"===t)&&(n in r||n in Ie))return!1;const o=W[t]||G.attributeCheck instanceof Function&&G.attributeCheck(t,e);if(Y&&!q[t]&&iF(L,t));else if(X&&iF(B,t));else if(!o||q[t]){if(!(Ye(e)&&(V.tagNameCheck instanceof RegExp&&iF(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&iF(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t,e))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&iF(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(ye[t]);else if(iF(_,Y_(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Z_(n,"data:")||!me[e]){if(Z&&!iF(z,Y_(n,D,"")));else if(n)return!1}else;return!0},Xe=cF({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ye=function(e){return!Xe[q_(e)]&&iF(j,e)},Ze=function(e){Ue(N.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||We(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],a=i.name,l=i.namespaceURI,s=i.value,c=Ne(a),u=s;let d="value"===a?u:Q_(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Ue(N.uponSanitizeAttribute,e,r),d=r.attrValue,!se||"id"!==c&&"name"!==c||0===Z_(d,ce)||(je(a,e),d=ce+d),ee&&iF(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){je(a,e);continue}if("attributename"===c&&X_(d,"href")){je(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){je(a,e);continue}if(!Q&&iF(/\/>/i,d)){je(a,e);continue}J&&F_([A,I,R],e=>{d=Y_(d,e," ")});const p=Ne(e.nodeName);if(Ge(p,c,d)){if(k&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(l);else switch(h.getAttributeType(p,c)){case"TrustedHTML":d=k.createHTML(d);break;case"TrustedScriptURL":d=k.createScriptURL(d)}if(d!==u)try{l?e.setAttributeNS(l,a,d):e.setAttribute(a,d),We(e)?De(e):W_(n.removed)}catch(t){je(a,e)}}else je(a,e)}Ue(N.afterSanitizeAttributes,e,null)},Qe=function(e){let t=null;const n=Fe(e);for(Ue(N.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Ue(N.uponSanitizeShadowNode,t,null),qe(t),Ze(t),Ke(t.content)&&Qe(t.content);Ue(N.afterSanitizeShadowDOM,e,null)},Je=function(e){if((w?w(e):e.nodeType)===RF){const t=b?b(e):e.shadowRoot;Ke(t)&&(Je(t),Qe(t))}const t=y?y(e):e.childNodes;if(!t)return;const n=[];F_(t,e=>{K_(n,e)});for(const e of n)Je(e)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(ke=!e,ke&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ve(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return J_(e);case"boolean":return eF(e);case"bigint":return tF?tF(e):"0";case"symbol":return nF?nF(e):"Symbol()";case"undefined":default:return oF(e);case"function":case"object":{if(null===e)return oF(e);const t=e,n=hF(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:oF(e)}return oF(e)}}}(e)))throw aF("dirty is not a string, aborting");if(!n.isSupported)return e;if(ne||Le(t),n.removed=[],"string"==typeof e&&(de=!1),de){const t=C?C(e):e.nodeName;if("string"==typeof t){const e=Ne(t);if(!F[e]||U[e])throw aF("root node is forbidden and cannot be sanitized in-place")}if(We(e))throw aF("root node is clobbered and cannot be sanitized in-place");Je(e)}else if(Ve(e))r=_e("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===RF&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),Je(i);else{if(!oe&&!J&&!te&&-1===e.indexOf("<"))return k&&ae?k.createHTML(e):e;if(r=_e(e),!r)return oe?null:ae?S:""}r&&re&&De(r.firstChild);const s=Fe(de?e:r);for(;a=s.nextNode();)qe(a),Ze(a),Ke(a.content)&&Qe(a.content);if(de)return J&&He(e),e;if(oe){if(J&&He(r),ie)for(l=P.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(W.shadowroot||W.shadowrootmode)&&(l=O.call(o,l,!0)),l}let c=te?r.outerHTML:r.innerHTML;return te&&F["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&iF(AF,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),J&&F_([A,I,R],e=>{c=Y_(c,e," ")}),k&&ae?k.createHTML(c):c},n.setConfig=function(){Le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ne=!0},n.clearConfig=function(){Ae=null,ne=!1},n.isValidAttribute=function(e,t,n){Ae||Le({});const r=Ne(e),o=Ne(t);return Ge(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&K_(N[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=H_(N[e],t);return-1===n?void 0:V_(N[e],n,1)[0]}return W_(N[e])},n.removeHooks=function(e){N[e]=[]},n.removeAllHooks=function(){N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const FF=({data:e,referenceIndexMap:t,style:n,primarySourceDatasetKey:r})=>(g.useEffect(()=>{},[t]),F.jsx("div",{style:n,className:"col-reference-link-container",children:zM.values(e).map(e=>{var n,o;return F.jsxs(zw,{children:[F.jsx(Lw,{style:{paddingRight:"5px"},children:zM.get(t,e.id)&&F.jsx("span",{children:`[${zM.get(t,e.id)}]`})}),F.jsxs(Lw,{span:20,children:[(null==(n=null==e?void 0:e.sourceDataset)?void 0:n.key)!==r&&F.jsx(PA,{createdBy:null==e?void 0:e.createdBy,datasetKey:e.datasetKey,verbatimSourceKey:null==e?void 0:e.verbatimSourceKey,sourceDatasetKey:null==(o=null==e?void 0:e.sourceDataset)?void 0:o.key}),F.jsx("span",{id:`col-reference-${e.id}`,dangerouslySetInnerHTML:{__html:dj(_F.sanitize(e.citation))}})]})]},e.id)})}));var HF,WF={exports:{}};var KF=(HF||(HF=1,function(e){var t;e.exports=(t={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"},function(e,n,r){var o=n.prototype,i=o.format;r.en.formats=t,o.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var n,r=this.$locale().formats,o=(n=void 0===r?{}:r,e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,r,o){var i=o&&o.toUpperCase();return r||n[o]||t[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return i.call(this,o)}})}(WF)),WF.exports);const VF=c(KF),UF=({data:e,style:t,rank:n,taxon:r})=>{const o=n.reduce((e,t)=>(e[t.value]=t.plural,e),{});return F.jsxs("div",{style:t,children:[" ",e.filter(e=>e.value!==r.name.rank).sort((e,t)=>n.indexOf(e.value)-n.indexOf(t.value)).map(e=>F.jsx(E_,{md:6,label:zM.startCase(o[e.value]||e.value),classes:{formItem:{borderBottom:"none"}},children:F.jsx(vA,{to:"search",args:{TAXON_ID:r.id,rank:e.value,status:["accepted","provisionally accepted"]},children:e.count})},e.value))]})};class qF extends y.Component{constructor(e){super(e),this.state={error:!0,loading:!0}}render(){const{fallBack:e=null,datasetKey:t,sourceDatasetKey:n,style:r,size:o="MEDIUM"}=this.props,{error:i,loading:a}=this.state;return a||!i?F.jsx("img",{style:r,src:`${uA.dataApi}dataset/${t}/logo/source/${n}?size=${o}`,onLoad:()=>this.setState({error:!1,loading:!1}),onError:()=>this.setState({error:!0,loading:!1})}):e}}const GF=()=>F.jsx(y.Fragment,{children:F.jsx("div",{style:{minHeight:"calc(100vh - 100px)",display:"flex",justifyContent:"center",alignItems:"center"},className:"catalogue-of-life",children:F.jsxs("div",{style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg width='423px' height='341px' viewBox='0 0 423 341' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3EGroup 4%3C/title%3E%3Cg id='Ant-Design-Pro-3.0' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='404' transform='translate(-484.000000, -221.000000)'%3E%3Cg id='Group-4' transform='translate(464.000000, 222.000000)'%3E%3Cg id='Group-5' transform='translate(75.417348, 0.163879)' stroke='%23A3B1BF' stroke-width='1.62' opacity='0.6' stroke-linejoin='round' stroke-dasharray='12.15'%3E%3Cpath d='M169.575185,288.890375 C103.647066,288.890375 50.2010204,235.455806 50.2010204,169.540425 C50.2010204,103.625045 103.647066,50.1904762 169.575185,50.1904762 C235.50394,50.1904762 288.94935,103.625045 288.94935,169.540425 C288.94935,235.455806 235.50394,288.890375 169.575185,288.890375 Z' id='Stroke-1'%3E%3C/path%3E%3Cpath d='M169.405699,338.555288 C76.0274364,338.555288 0.329411882,262.872619 0.329411882,169.513299 C0.329411882,76.1539786 76.0274364,0.471309613 169.405699,0.471309613 C262.783961,0.471309613 338.481985,76.1539786 338.481985,169.513299 C338.481985,262.872619 262.783961,338.555288 169.405699,338.555288 Z' id='Stroke-3'%3E%3C/path%3E%3C/g%3E%3Cpolygon id='Fill-6' fill='%23F5F5F5' transform='translate(106.914750, 199.432805) rotate(22.000000) translate(-106.914750, -199.432805) ' points='97.7112298 198.803016 116.11827 190.231152 107.544667 208.634458'%3E%3C/polygon%3E%3Cpolygon id='Stroke-7' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(106.914750, 199.432805) rotate(22.000000) translate(-106.914750, -199.432805) ' points='97.7112298 198.803016 116.11827 190.231152 107.544667 208.634458'%3E%3C/polygon%3E%3Cpolygon id='Fill-8' transform='translate(58.996118, 219.767028) rotate(22.000000) translate(-58.996118, -219.767028) ' points='38.8543444 215.183828 54.4119879 199.629341 79.1378915 224.350228 63.580248 239.904716'%3E%3C/polygon%3E%3Cpolygon id='Stroke-9' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(58.996118, 219.767028) rotate(22.000000) translate(-58.996118, -219.767028) ' points='38.8543444 215.183828 54.4119879 199.629341 79.1378915 224.350228 63.580248 239.904716'%3E%3C/polygon%3E%3Cpolygon id='Fill-10' fill='%23F5F5F5' transform='translate(71.226096, 214.577614) rotate(22.000000) translate(-71.226096, -214.577614) ' points='51.4642422 198.657893 55.3028278 194.820086 90.9879502 230.497335 87.1487294 234.335141'%3E%3C/polygon%3E%3Cpolygon id='Stroke-11' stroke='%23A3B1BF' stroke-width='1.62' fill='%23F0F2F5' stroke-linejoin='round' transform='translate(71.226096, 214.577614) rotate(22.000000) translate(-71.226096, -214.577614) ' points='51.4642422 198.657893 55.3028278 194.820086 90.9879502 230.497335 87.1487294 234.335141'%3E%3C/polygon%3E%3Cpolygon id='Fill-12' transform='translate(84.698338, 273.903349) rotate(22.000000) translate(-84.698338, -273.903349) ' points='56.0769883 259.690379 70.4821667 245.288122 113.319688 288.116319 98.9145099 302.518575'%3E%3C/polygon%3E%3Cpolygon id='Stroke-13' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(84.698338, 273.903349) rotate(22.000000) translate(-84.698338, -273.903349) ' points='56.0769883 259.690379 70.4821667 245.288122 113.319688 288.116319 98.9145099 302.518575'%3E%3C/polygon%3E%3Cpolygon id='Fill-14' transform='translate(75.456149, 212.782520) rotate(22.000000) translate(-75.456149, -212.782520) ' points='63.8911557 203.879723 66.5512281 201.22019 87.0211429 221.685318 84.3604352 224.34485'%3E%3C/polygon%3E%3Cpolygon id='Stroke-15' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(75.456149, 212.782520) rotate(22.000000) translate(-75.456149, -212.782520) ' points='63.8911557 203.879723 66.5512281 201.22019 87.0211429 221.685318 84.3604352 224.34485'%3E%3C/polygon%3E%3Cpolygon id='Fill-16' fill='%23F5F5F5' transform='translate(78.176142, 202.618192) rotate(22.000000) translate(-78.176142, -202.618192) ' points='74.4026766 205.006817 80.5652518 198.845492 81.9496076 200.229567 75.7870324 206.390892'%3E%3C/polygon%3E%3Cpolygon id='Stroke-17' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(78.176142, 202.618192) rotate(22.000000) translate(-78.176142, -202.618192) ' points='74.4026766 205.006817 80.5652518 198.845492 81.9496076 200.229567 75.7870324 206.390892'%3E%3C/polygon%3E%3Cpolygon id='Fill-18' fill='%23F5F5F5' transform='translate(84.676979, 217.928886) rotate(22.000000) translate(-84.676979, -217.928886) ' points='80.9035138 220.317511 87.066089 214.156186 88.4504448 215.540261 82.2878696 221.701586'%3E%3C/polygon%3E%3Cpolygon id='Stroke-19' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(84.676979, 217.928886) rotate(22.000000) translate(-84.676979, -217.928886) ' points='80.9035138 220.317511 87.066089 214.156186 88.4504448 215.540261 82.2878696 221.701586'%3E%3C/polygon%3E%3Cpolygon id='Fill-20' transform='translate(70.238421, 242.404581) rotate(22.000000) translate(-70.238421, -242.404581) ' points='67.8493111 238.631881 74.0118863 244.793206 72.6275305 246.177281 66.4649553 240.015956'%3E%3C/polygon%3E%3Cpolygon id='Stroke-21' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(70.238421, 242.404581) rotate(22.000000) translate(-70.238421, -242.404581) ' points='67.8493111 238.631881 74.0118863 244.793206 72.6275305 246.177281 66.4649553 240.015956'%3E%3C/polygon%3E%3Cpolygon id='Fill-22' transform='translate(48.081755, 224.398789) rotate(22.000000) translate(-48.081755, -224.398789) ' points='35.1127107 220.725179 36.3242602 211.432376 61.0507992 236.153899 51.756111 237.365203'%3E%3C/polygon%3E%3Cpolygon id='Stroke-23' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(48.081755, 224.398789) rotate(22.000000) translate(-48.081755, -224.398789) ' points='35.1127107 220.725179 36.3242602 211.432376 61.0507992 236.153899 51.756111 237.365203'%3E%3C/polygon%3E%3Cpolygon id='Fill-24' transform='translate(38.612968, 228.416820) rotate(22.000000) translate(-38.612968, -228.416820) ' points='32.9179858 217.470622 26.2496982 216.056058 50.9762371 240.777581 49.5613861 234.110647'%3E%3C/polygon%3E%3Cpolygon id='Stroke-25' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(38.612968, 228.416820) rotate(22.000000) translate(-38.612968, -228.416820) ' points='32.9179858 217.470622 26.2496982 216.056058 50.9762371 240.777581 49.5613861 234.110647'%3E%3C/polygon%3E%3Cpolygon id='Fill-26' transform='translate(31.086342, 221.523909) rotate(22.000000) translate(-31.086342, -221.523909) ' points='32.6469986 217.297684 26.8592604 218.37941 34.2314793 225.750133 35.3134242 219.963569'%3E%3C/polygon%3E%3Cpolygon id='Stroke-27' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(31.086342, 221.523909) rotate(22.000000) translate(-31.086342, -221.523909) ' points='32.6469986 217.297684 26.8592604 218.37941 34.2314793 225.750133 35.3134242 219.963569'%3E%3C/polygon%3E%3Cpolygon id='Fill-28' transform='translate(38.344372, 238.617819) rotate(22.000000) translate(-38.344372, -238.617819) ' points='39.9050284 234.391595 34.1172902 235.47332 41.4895091 242.844044 42.571454 237.05748'%3E%3C/polygon%3E%3Cpolygon id='Stroke-29' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(38.344372, 238.617819) rotate(22.000000) translate(-38.344372, -238.617819) ' points='39.9050284 234.391595 34.1172902 235.47332 41.4895091 242.844044 42.571454 237.05748'%3E%3C/polygon%3E%3Cpolygon id='Fill-30' fill='%23F0F2F5' transform='translate(75.352798, 203.766862) rotate(22.000000) translate(-75.352798, -203.766862) ' points='71.4417859 201.708217 73.2937351 199.856644 79.2638092 205.824871 77.4118601 207.67708'%3E%3C/polygon%3E%3Cpolygon id='Stroke-31' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(75.352798, 203.766862) rotate(22.000000) translate(-75.352798, -203.766862) ' points='71.4417859 201.708217 73.2937351 199.856644 79.2638092 205.824871 77.4118601 207.67708'%3E%3C/polygon%3E%3Cpolygon id='Fill-32' fill='%23F0F2F5' transform='translate(81.871541, 219.119730) rotate(22.000000) translate(-81.871541, -219.119730) ' points='77.9605297 217.061085 79.8124789 215.209512 85.7825531 221.177739 83.9306039 223.029948'%3E%3C/polygon%3E%3Cpolygon id='Stroke-33' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(81.871541, 219.119730) rotate(22.000000) translate(-81.871541, -219.119730) ' points='77.9605297 217.061085 79.8124789 215.209512 85.7825531 221.177739 83.9306039 223.029948'%3E%3C/polygon%3E%3Cpolygon id='Fill-34' transform='translate(68.034935, 237.215417) rotate(22.000000) translate(-68.034935, -237.215417) ' points='65.1594898 237.106164 67.9256601 234.340555 70.9103796 237.324669 68.1442092 240.090278'%3E%3C/polygon%3E%3Cpolygon id='Stroke-35' stroke='%23A3B1BF' stroke-width='1.62' fill='%23F5F5F5' stroke-linejoin='round' transform='translate(68.034935, 237.215417) rotate(22.000000) translate(-68.034935, -237.215417) ' points='65.1594898 237.106164 67.9256601 234.340555 70.9103796 237.324669 68.1442092 240.090278'%3E%3C/polygon%3E%3Cpath d='M90.2556147,213.065319 C79.2271463,202.039088 74.6433339,188.153875 78.4889079,179.512775 C79.1248602,178.084237 80.8319571,175.429786 84.5339495,179.131027 C88.2353065,182.832268 120.560237,215.150007 123.931865,218.52095 C127.303492,221.891894 125.245065,224.192545 123.817508,224.827733 C115.174655,228.675068 101.284718,224.092186 90.2556147,213.065319 Z' id='Fill-36' fill='%23F5F5F5' transform='translate(101.453924, 201.708917) rotate(22.000000) translate(-101.453924, -201.708917) '%3E%3C/path%3E%3Cpath d='M90.2556147,213.065319 C79.2271463,202.039088 74.6433339,188.153875 78.4889079,179.512775 C79.1248602,178.084237 80.8319571,175.429786 84.5339495,179.131027 C88.2353065,182.832268 120.560237,215.150007 123.931865,218.52095 C127.303492,221.891894 125.245065,224.192545 123.817508,224.827733 C115.174655,228.675068 101.284718,224.092186 90.2556147,213.065319 Z' id='Stroke-38' stroke='%23A3B1BF' stroke-width='1.62' fill='%23F0F2F5' stroke-linejoin='round' transform='translate(101.453924, 201.708917) rotate(22.000000) translate(-101.453924, -201.708917) '%3E%3C/path%3E%3Cpolygon id='Fill-40' fill='%23F0F2F5' transform='translate(86.633853, 208.038961) rotate(22.000000) translate(-86.633853, -208.038961) ' points='77.9716233 201.230061 79.8235724 199.378488 95.2960835 214.84786 93.4441343 216.699433'%3E%3C/polygon%3E%3Cpolygon id='Stroke-42' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(86.633853, 208.038961) rotate(22.000000) translate(-86.633853, -208.038961) ' points='77.9716233 201.230061 79.8235724 199.378488 95.2960835 214.84786 93.4441343 216.699433'%3E%3C/polygon%3E%3Cpath d='M121.635514,196.068815 C120.517356,197.186746 118.704797,197.186746 117.586639,196.068815 C116.469116,194.950884 116.469116,193.138692 117.586639,192.020761 C118.704797,190.903465 120.517356,190.903465 121.635514,192.020761 C122.753672,193.138692 122.753672,194.950884 121.635514,196.068815' id='Fill-44' fill='%23A3B1BF' transform='translate(119.611315, 194.045026) rotate(22.000000) translate(-119.611315, -194.045026) '%3E%3C/path%3E%3Cpolygon id='Fill-46' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(81.250567, 248.056422) rotate(22.000000) translate(-81.250567, -248.056422) ' points='81.2505672 249.672341 79.6343206 248.056422 81.2505672 246.440503 82.8668137 248.056422'%3E%3C/polygon%3E%3Cpolygon id='Stroke-48' transform='translate(81.250567, 248.056422) rotate(22.000000) translate(-81.250567, -248.056422) ' points='81.2505672 249.672341 79.6343206 248.056422 81.2505672 246.440503 82.8668137 248.056422'%3E%3C/polygon%3E%3Cpolygon id='Fill-50' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.702196, 251.475282) rotate(22.000000) translate(-82.702196, -251.475282) ' points='82.7021965 253.091201 81.0859499 251.475282 82.7021965 249.859363 84.318443 251.475282'%3E%3C/polygon%3E%3Cpolygon id='Stroke-52' transform='translate(82.702196, 251.475282) rotate(22.000000) translate(-82.702196, -251.475282) ' points='82.7021965 253.091201 81.0859499 251.475282 82.7021965 249.859363 84.318443 251.475282'%3E%3C/polygon%3E%3Cpolygon id='Fill-54' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(84.153791, 254.894059) rotate(22.000000) translate(-84.153791, -254.894059) ' points='84.1537906 256.509978 82.5375441 254.894059 84.1537906 253.278141 85.7700372 254.894059'%3E%3C/polygon%3E%3Cpolygon id='Stroke-56' transform='translate(84.153791, 254.894059) rotate(22.000000) translate(-84.153791, -254.894059) ' points='84.1537906 256.509978 82.5375441 254.894059 84.1537906 253.278141 85.7700372 254.894059'%3E%3C/polygon%3E%3Cpolygon id='Fill-58' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.605385, 258.312837) rotate(22.000000) translate(-85.605385, -258.312837) ' points='85.6053848 259.928756 83.9891383 258.312837 85.6053848 256.696918 87.2216313 258.312837'%3E%3C/polygon%3E%3Cpolygon id='Stroke-60' transform='translate(85.605385, 258.312837) rotate(22.000000) translate(-85.605385, -258.312837) ' points='85.6053848 259.928756 83.9891383 258.312837 85.6053848 256.696918 87.2216313 258.312837'%3E%3C/polygon%3E%3Cpolygon id='Fill-62' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(78.094482, 249.395723) rotate(22.000000) translate(-78.094482, -249.395723) ' points='78.0944819 251.011642 76.4782353 249.395723 78.0944819 247.779804 79.7107284 249.395723'%3E%3C/polygon%3E%3Cpolygon id='Stroke-64' transform='translate(78.094482, 249.395723) rotate(22.000000) translate(-78.094482, -249.395723) ' points='78.0944819 251.011642 76.4782353 249.395723 78.0944819 247.779804 79.7107284 249.395723'%3E%3C/polygon%3E%3Cpolygon id='Fill-66' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.546052, 252.814559) rotate(22.000000) translate(-79.546052, -252.814559) ' points='79.5460522 254.430478 77.9298057 252.814559 79.5460522 251.198641 81.1622988 252.814559'%3E%3C/polygon%3E%3Cpolygon id='Stroke-68' transform='translate(79.546052, 252.814559) rotate(22.000000) translate(-79.546052, -252.814559) ' points='79.5460522 254.430478 77.9298057 252.814559 79.5460522 251.198641 81.1622988 252.814559'%3E%3C/polygon%3E%3Cpolygon id='Fill-70' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(80.997705, 256.233360) rotate(22.000000) translate(-80.997705, -256.233360) ' points='80.9977053 257.849279 79.3814588 256.23336 80.9977053 254.617442 82.6139518 256.23336'%3E%3C/polygon%3E%3Cpolygon id='Stroke-72' transform='translate(80.997705, 256.233360) rotate(22.000000) translate(-80.997705, -256.233360) ' points='79.3814588 256.23336 80.9977053 254.617442 82.6139518 256.23336 80.9977053 257.849279'%3E%3C/polygon%3E%3Cpolygon id='Fill-74' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.449276, 259.652197) rotate(22.000000) translate(-82.449276, -259.652197) ' points='82.4492757 261.268115 80.8330292 259.652197 82.4492757 258.036278 84.0655222 259.652197'%3E%3C/polygon%3E%3Cpolygon id='Stroke-76' transform='translate(82.449276, 259.652197) rotate(22.000000) translate(-82.449276, -259.652197) ' points='82.4492757 261.268115 80.8330292 259.652197 82.4492757 258.036278 84.0655222 259.652197'%3E%3C/polygon%3E%3Cpolygon id='Fill-78' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(74.938373, 250.735083) rotate(22.000000) translate(-74.938373, -250.735083) ' points='74.9383727 252.351002 73.3221262 250.735083 74.9383727 249.119164 76.5546193 250.735083'%3E%3C/polygon%3E%3Cpolygon id='Stroke-80' transform='translate(74.938373, 250.735083) rotate(22.000000) translate(-74.938373, -250.735083) ' points='74.9383727 252.351002 73.3221262 250.735083 74.9383727 249.119164 76.5546193 250.735083'%3E%3C/polygon%3E%3Cpolygon id='Fill-82' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(76.389967, 254.153860) rotate(22.000000) translate(-76.389967, -254.153860) ' points='76.3899669 255.769779 74.7737204 254.15386 76.3899669 252.537942 78.0062134 254.15386'%3E%3C/polygon%3E%3Cpolygon id='Stroke-84' transform='translate(76.389967, 254.153860) rotate(22.000000) translate(-76.389967, -254.153860) ' points='76.3899669 255.769779 74.7737204 254.15386 76.3899669 252.537942 78.0062134 254.15386'%3E%3C/polygon%3E%3Cpolygon id='Fill-86' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(77.841620, 257.572661) rotate(22.000000) translate(-77.841620, -257.572661) ' points='77.84162 259.18858 76.2253735 257.572661 77.84162 255.956743 79.4578665 257.572661'%3E%3C/polygon%3E%3Cpolygon id='Stroke-88' transform='translate(77.841620, 257.572661) rotate(22.000000) translate(-77.841620, -257.572661) ' points='77.84162 259.18858 76.2253735 257.572661 77.84162 255.956743 79.4578665 257.572661'%3E%3C/polygon%3E%3Cpolygon id='Fill-90' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.293190, 260.991498) rotate(22.000000) translate(-79.293190, -260.991498) ' points='79.2931904 262.607416 77.6769438 260.991498 79.2931904 259.375579 80.9094369 260.991498'%3E%3C/polygon%3E%3Cpolygon id='Stroke-92' transform='translate(79.293190, 260.991498) rotate(22.000000) translate(-79.293190, -260.991498) ' points='79.2931904 262.607416 77.6769438 260.991498 79.2931904 259.375579 80.9094369 260.991498'%3E%3C/polygon%3E%3Cpolygon id='Fill-94' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(71.782287, 252.074384) rotate(22.000000) translate(-71.782287, -252.074384) ' points='71.7822874 253.690302 70.1660409 252.074384 71.7822874 250.458465 73.3985339 252.074384'%3E%3C/polygon%3E%3Cpolygon id='Stroke-96' transform='translate(71.782287, 252.074384) rotate(22.000000) translate(-71.782287, -252.074384) ' points='71.7822874 253.690302 70.1660409 252.074384 71.7822874 250.458465 73.3985339 252.074384'%3E%3C/polygon%3E%3Cpolygon id='Fill-98' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(73.233882, 255.493161) rotate(22.000000) translate(-73.233882, -255.493161) ' points='73.2338816 257.10908 71.6176351 255.493161 73.2338816 253.877242 74.8501281 255.493161'%3E%3C/polygon%3E%3Cpolygon id='Stroke-100' transform='translate(73.233882, 255.493161) rotate(22.000000) translate(-73.233882, -255.493161) ' points='73.2338816 257.10908 71.6176351 255.493161 73.2338816 253.877242 74.8501281 255.493161'%3E%3C/polygon%3E%3Cpolygon id='Fill-102' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(74.685535, 258.911962) rotate(22.000000) translate(-74.685535, -258.911962) ' points='74.6855347 260.527881 73.0692881 258.911962 74.6855347 257.296044 76.3017812 258.911962'%3E%3C/polygon%3E%3Cpolygon id='Stroke-104' transform='translate(74.685535, 258.911962) rotate(22.000000) translate(-74.685535, -258.911962) ' points='74.6855347 260.527881 73.0692881 258.911962 74.6855347 257.296044 76.3017812 258.911962'%3E%3C/polygon%3E%3Cpolygon id='Fill-106' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(76.137105, 262.330799) rotate(22.000000) translate(-76.137105, -262.330799) ' points='76.137105 263.946717 74.5208585 262.330799 76.137105 260.71488 77.7533516 262.330799'%3E%3C/polygon%3E%3Cpolygon id='Stroke-108' transform='translate(76.137105, 262.330799) rotate(22.000000) translate(-76.137105, -262.330799) ' points='76.137105 263.946717 74.5208585 262.330799 76.137105 260.71488 77.7533516 262.330799'%3E%3C/polygon%3E%3Cpolygon id='Fill-110' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(68.626202, 253.413685) rotate(22.000000) translate(-68.626202, -253.413685) ' points='68.6262021 255.029603 67.0099556 253.413685 68.6262021 251.797766 70.2424486 253.413685'%3E%3C/polygon%3E%3Cpolygon id='Stroke-112' transform='translate(68.626202, 253.413685) rotate(22.000000) translate(-68.626202, -253.413685) ' points='68.6262021 255.029603 67.0099556 253.413685 68.6262021 251.797766 70.2424486 253.413685'%3E%3C/polygon%3E%3Cpolygon id='Fill-114' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(70.077796, 256.832462) rotate(22.000000) translate(-70.077796, -256.832462) ' points='70.0777963 258.448381 68.4615497 256.832462 70.0777963 255.216543 71.6940428 256.832462'%3E%3C/polygon%3E%3Cpolygon id='Stroke-116' transform='translate(70.077796, 256.832462) rotate(22.000000) translate(-70.077796, -256.832462) ' points='70.0777963 258.448381 68.4615497 256.832462 70.0777963 255.216543 71.6940428 256.832462'%3E%3C/polygon%3E%3Cpolygon id='Fill-118' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(71.529426, 260.251322) rotate(22.000000) translate(-71.529426, -260.251322) ' points='71.5294256 261.867241 69.913179 260.251322 71.5294256 258.635403 73.1456721 260.251322'%3E%3C/polygon%3E%3Cpolygon id='Stroke-120' transform='translate(71.529426, 260.251322) rotate(22.000000) translate(-71.529426, -260.251322) ' points='71.5294256 261.867241 69.913179 260.251322 71.5294256 258.635403 73.1456721 260.251322'%3E%3C/polygon%3E%3Cpolygon id='Fill-122' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(72.981020, 263.670099) rotate(22.000000) translate(-72.981020, -263.670099) ' points='72.9810197 265.286018 71.3647732 263.670099 72.9810197 262.054181 74.5972663 263.670099'%3E%3C/polygon%3E%3Cpolygon id='Stroke-124' transform='translate(72.981020, 263.670099) rotate(22.000000) translate(-72.981020, -263.670099) ' points='72.9810197 265.286018 71.3647732 263.670099 72.9810197 262.054181 74.5972663 263.670099'%3E%3C/polygon%3E%3Cpolygon id='Fill-126' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.852907, 265.961362) rotate(22.000000) translate(-88.852907, -265.961362) ' points='88.8529067 267.577281 87.2366602 265.961362 88.8529067 264.345443 90.4691533 265.961362'%3E%3C/polygon%3E%3Cpolygon id='Stroke-128' transform='translate(88.852907, 265.961362) rotate(22.000000) translate(-88.852907, -265.961362) ' points='88.8529067 267.577281 87.2366602 265.961362 88.8529067 264.345443 90.4691533 265.961362'%3E%3C/polygon%3E%3Cpolygon id='Fill-130' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(90.304501, 269.380139) rotate(22.000000) translate(-90.304501, -269.380139) ' points='90.3045009 270.996058 88.6882544 269.380139 90.3045009 267.764221 91.9207474 269.380139'%3E%3C/polygon%3E%3Cpolygon id='Stroke-132' transform='translate(90.304501, 269.380139) rotate(22.000000) translate(-90.304501, -269.380139) ' points='90.3045009 270.996058 88.6882544 269.380139 90.3045009 267.764221 91.9207474 269.380139'%3E%3C/polygon%3E%3Cpolygon id='Fill-134' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(91.756130, 272.798999) rotate(22.000000) translate(-91.756130, -272.798999) ' points='91.7561302 274.414918 90.1398837 272.798999 91.7561302 271.183081 93.3723767 272.798999'%3E%3C/polygon%3E%3Cpolygon id='Stroke-136' transform='translate(91.756130, 272.798999) rotate(22.000000) translate(-91.756130, -272.798999) ' points='91.7561302 274.414918 90.1398837 272.798999 91.7561302 271.183081 93.3723767 272.798999'%3E%3C/polygon%3E%3Cpolygon id='Fill-138' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(93.207724, 276.217777) rotate(22.000000) translate(-93.207724, -276.217777) ' points='93.2077244 277.833695 91.5914778 276.217777 93.2077244 274.601858 94.8239709 276.217777'%3E%3C/polygon%3E%3Cpolygon id='Stroke-140' transform='translate(93.207724, 276.217777) rotate(22.000000) translate(-93.207724, -276.217777) ' points='93.2077244 277.833695 91.5914778 276.217777 93.2077244 274.601858 94.8239709 276.217777'%3E%3C/polygon%3E%3Cpolygon id='Fill-142' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.696821, 267.300663) rotate(22.000000) translate(-85.696821, -267.300663) ' points='85.6968214 268.916582 84.0805749 267.300663 85.6968214 265.684744 87.313068 267.300663'%3E%3C/polygon%3E%3Cpolygon id='Stroke-144' transform='translate(85.696821, 267.300663) rotate(22.000000) translate(-85.696821, -267.300663) ' points='85.6968214 268.916582 84.0805749 267.300663 85.6968214 265.684744 87.313068 267.300663'%3E%3C/polygon%3E%3Cpolygon id='Fill-146' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(87.148416, 270.719440) rotate(22.000000) translate(-87.148416, -270.719440) ' points='87.1484156 272.335359 85.5321691 270.71944 87.1484156 269.103521 88.7646621 270.71944'%3E%3C/polygon%3E%3Cpolygon id='Stroke-148' transform='translate(87.148416, 270.719440) rotate(22.000000) translate(-87.148416, -270.719440) ' points='87.1484156 272.335359 85.5321691 270.71944 87.1484156 269.103521 88.7646621 270.71944'%3E%3C/polygon%3E%3Cpolygon id='Fill-150' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.599986, 274.138276) rotate(22.000000) translate(-88.599986, -274.138276) ' points='88.599986 275.754195 86.9837394 274.138276 88.599986 272.522358 90.2162325 274.138276'%3E%3C/polygon%3E%3Cpolygon id='Stroke-152' transform='translate(88.599986, 274.138276) rotate(22.000000) translate(-88.599986, -274.138276) ' points='88.599986 275.754195 86.9837394 274.138276 88.599986 272.522358 90.2162325 274.138276'%3E%3C/polygon%3E%3Cpolygon id='Fill-154' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(90.051639, 277.557078) rotate(22.000000) translate(-90.051639, -277.557078) ' points='90.0516391 279.172996 88.4353925 277.557078 90.0516391 275.941159 91.6678856 277.557078'%3E%3C/polygon%3E%3Cpolygon id='Stroke-156' transform='translate(90.051639, 277.557078) rotate(22.000000) translate(-90.051639, -277.557078) ' points='90.0516391 279.172996 88.4353925 277.557078 90.0516391 275.941159 91.6678856 277.557078'%3E%3C/polygon%3E%3Cpolygon id='Fill-158' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.540736, 268.639964) rotate(22.000000) translate(-82.540736, -268.639964) ' points='82.5407361 270.255882 80.9244896 268.639964 82.5407361 267.024045 84.1569826 268.639964'%3E%3C/polygon%3E%3Cpolygon id='Stroke-160' transform='translate(82.540736, 268.639964) rotate(22.000000) translate(-82.540736, -268.639964) ' points='82.5407361 270.255882 80.9244896 268.639964 82.5407361 267.024045 84.1569826 268.639964'%3E%3C/polygon%3E%3Cpolygon id='Fill-162' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(83.992306, 272.058800) rotate(22.000000) translate(-83.992306, -272.058800) ' points='83.9923065 273.674719 82.3760599 272.0588 83.9923065 270.442881 85.608553 272.0588'%3E%3C/polygon%3E%3Cpolygon id='Stroke-164' transform='translate(83.992306, 272.058800) rotate(22.000000) translate(-83.992306, -272.058800) ' points='83.9923065 273.674719 82.3760599 272.0588 83.9923065 270.442881 85.608553 272.0588'%3E%3C/polygon%3E%3Cpolygon id='Fill-166' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.443901, 275.477577) rotate(22.000000) translate(-85.443901, -275.477577) ' points='85.4439007 277.093496 83.8276541 275.477577 85.4439007 273.861659 87.0601472 275.477577'%3E%3C/polygon%3E%3Cpolygon id='Stroke-168' transform='translate(85.443901, 275.477577) rotate(22.000000) translate(-85.443901, -275.477577) ' points='85.4439007 277.093496 83.8276541 275.477577 85.4439007 273.861659 87.0601472 275.477577'%3E%3C/polygon%3E%3Cpolygon id='Fill-170' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(86.895554, 278.896378) rotate(22.000000) translate(-86.895554, -278.896378) ' points='86.8955537 280.512297 85.2793072 278.896378 86.8955537 277.28046 88.5118003 278.896378'%3E%3C/polygon%3E%3Cpolygon id='Stroke-172' transform='translate(86.895554, 278.896378) rotate(22.000000) translate(-86.895554, -278.896378) ' points='86.8955537 280.512297 85.2793072 278.896378 86.8955537 277.28046 88.5118003 278.896378'%3E%3C/polygon%3E%3Cpolygon id='Fill-174' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.384651, 269.979265) rotate(22.000000) translate(-79.384651, -269.979265) ' points='79.3846508 271.595183 77.7684043 269.979265 79.3846508 268.363346 81.0008973 269.979265'%3E%3C/polygon%3E%3Cpolygon id='Stroke-176' transform='translate(79.384651, 269.979265) rotate(22.000000) translate(-79.384651, -269.979265) ' points='79.3846508 271.595183 77.7684043 269.979265 79.3846508 268.363346 81.0008973 269.979265'%3E%3C/polygon%3E%3Cpolygon id='Fill-178' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(80.836221, 273.398101) rotate(22.000000) translate(-80.836221, -273.398101) ' points='80.8362212 275.01402 79.2199746 273.398101 80.8362212 271.782182 82.4524677 273.398101'%3E%3C/polygon%3E%3Cpolygon id='Stroke-180' transform='translate(80.836221, 273.398101) rotate(22.000000) translate(-80.836221, -273.398101) ' points='80.8362212 275.01402 79.2199746 273.398101 80.8362212 271.782182 82.4524677 273.398101'%3E%3C/polygon%3E%3Cpolygon id='Fill-182' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(82.287815, 276.816878) rotate(22.000000) translate(-82.287815, -276.816878) ' points='82.2878153 278.432797 80.6715688 276.816878 82.2878153 275.20096 83.9040619 276.816878'%3E%3C/polygon%3E%3Cpolygon id='Stroke-184' transform='translate(82.287815, 276.816878) rotate(22.000000) translate(-82.287815, -276.816878) ' points='82.2878153 278.432797 80.6715688 276.816878 82.2878153 275.20096 83.9040619 276.816878'%3E%3C/polygon%3E%3Cpolygon id='Fill-186' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(83.739445, 280.235738) rotate(22.000000) translate(-83.739445, -280.235738) ' points='83.7394446 281.851657 82.1231981 280.235738 83.7394446 278.61982 85.3556912 280.235738'%3E%3C/polygon%3E%3Cpolygon id='Stroke-188' transform='translate(83.739445, 280.235738) rotate(22.000000) translate(-83.739445, -280.235738) ' points='83.7394446 281.851657 82.1231981 280.235738 83.7394446 278.61982 85.3556912 280.235738'%3E%3C/polygon%3E%3Cpolygon id='Fill-190' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(76.228483, 271.318601) rotate(22.000000) translate(-76.228483, -271.318601) ' points='76.2284828 272.934519 74.6122362 271.318601 76.2284828 269.702682 77.8447293 271.318601'%3E%3C/polygon%3E%3Cpolygon id='Stroke-192' transform='translate(76.228483, 271.318601) rotate(22.000000) translate(-76.228483, -271.318601) ' points='76.2284828 272.934519 74.6122362 271.318601 76.2284828 269.702682 77.8447293 271.318601'%3E%3C/polygon%3E%3Cpolygon id='Fill-194' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(77.680136, 274.737402) rotate(22.000000) translate(-77.680136, -274.737402) ' points='77.6801358 276.353321 76.0638893 274.737402 77.6801358 273.121483 79.2963824 274.737402'%3E%3C/polygon%3E%3Cpolygon id='Stroke-196' transform='translate(77.680136, 274.737402) rotate(22.000000) translate(-77.680136, -274.737402) ' points='77.6801358 276.353321 76.0638893 274.737402 77.6801358 273.121483 79.2963824 274.737402'%3E%3C/polygon%3E%3Cpolygon id='Fill-198' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(79.131730, 278.156179) rotate(22.000000) translate(-79.131730, -278.156179) ' points='79.13173 279.772098 77.5154835 278.156179 79.13173 276.540261 80.7479765 278.156179'%3E%3C/polygon%3E%3Cpolygon id='Stroke-200' transform='translate(79.131730, 278.156179) rotate(22.000000) translate(-79.131730, -278.156179) ' points='79.13173 279.772098 77.5154835 278.156179 79.13173 276.540261 80.7479765 278.156179'%3E%3C/polygon%3E%3Cpolygon id='Fill-202' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(80.583359, 281.575039) rotate(22.000000) translate(-80.583359, -281.575039) ' points='80.5833593 283.190958 78.9671128 281.575039 80.5833593 279.959121 82.1996058 281.575039'%3E%3C/polygon%3E%3Cpolygon id='Stroke-204' transform='translate(80.583359, 281.575039) rotate(22.000000) translate(-80.583359, -281.575039) ' points='80.5833593 283.190958 78.9671128 281.575039 80.5833593 279.959121 82.1996058 281.575039'%3E%3C/polygon%3E%3Cpolygon id='Fill-206' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(96.455246, 283.866302) rotate(22.000000) translate(-96.455246, -283.866302) ' points='96.4552463 285.48222 94.8389998 283.866302 96.4552463 282.250383 98.0714929 283.866302'%3E%3C/polygon%3E%3Cpolygon id='Stroke-208' transform='translate(96.455246, 283.866302) rotate(22.000000) translate(-96.455246, -283.866302) ' points='96.4552463 285.48222 94.8389998 283.866302 96.4552463 282.250383 98.0714929 283.866302'%3E%3C/polygon%3E%3Cpolygon id='Fill-210' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(97.906840, 287.285079) rotate(22.000000) translate(-97.906840, -287.285079) ' points='97.9068405 288.900998 96.290594 287.285079 97.9068405 285.66916 99.523087 287.285079'%3E%3C/polygon%3E%3Cpolygon id='Stroke-212' transform='translate(97.906840, 287.285079) rotate(22.000000) translate(-97.906840, -287.285079) ' points='97.9068405 288.900998 96.290594 287.285079 97.9068405 285.66916 99.523087 287.285079'%3E%3C/polygon%3E%3Cpolygon id='Fill-214' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(99.358435, 290.703856) rotate(22.000000) translate(-99.358435, -290.703856) ' points='99.3584347 292.319775 97.7421881 290.703856 99.3584347 289.087938 100.974681 290.703856'%3E%3C/polygon%3E%3Cpolygon id='Stroke-216' transform='translate(99.358435, 290.703856) rotate(22.000000) translate(-99.358435, -290.703856) ' points='99.3584347 292.319775 97.7421881 290.703856 99.3584347 289.087938 100.974681 290.703856'%3E%3C/polygon%3E%3Cpolygon id='Fill-218' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(100.810064, 294.122716) rotate(22.000000) translate(-100.810064, -294.122716) ' points='100.810064 295.738635 99.1938174 294.122716 100.810064 292.506798 102.42631 294.122716'%3E%3C/polygon%3E%3Cpolygon id='Stroke-220' transform='translate(100.810064, 294.122716) rotate(22.000000) translate(-100.810064, -294.122716) ' points='100.810064 295.738635 99.1938174 294.122716 100.810064 292.506798 102.42631 294.122716'%3E%3C/polygon%3E%3Cpolygon id='Fill-222' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(93.299102, 285.205579) rotate(22.000000) translate(-93.299102, -285.205579) ' points='93.2991021 286.821497 91.6828556 285.205579 93.2991021 283.58966 94.9153486 285.205579'%3E%3C/polygon%3E%3Cpolygon id='Stroke-224' transform='translate(93.299102, 285.205579) rotate(22.000000) translate(-93.299102, -285.205579) ' points='93.2991021 286.821497 91.6828556 285.205579 93.2991021 283.58966 94.9153486 285.205579'%3E%3C/polygon%3E%3Cpolygon id='Fill-226' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(94.750755, 288.624380) rotate(22.000000) translate(-94.750755, -288.624380) ' points='94.7507552 290.240299 93.1345086 288.62438 94.7507552 287.008461 96.3670017 288.62438'%3E%3C/polygon%3E%3Cpolygon id='Stroke-228' transform='translate(94.750755, 288.624380) rotate(22.000000) translate(-94.750755, -288.624380) ' points='94.7507552 290.240299 93.1345086 288.62438 94.7507552 287.008461 96.3670017 288.62438'%3E%3C/polygon%3E%3Cpolygon id='Fill-230' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(96.202326, 292.043216) rotate(22.000000) translate(-96.202326, -292.043216) ' points='96.2023255 293.659135 94.586079 292.043216 96.2023255 290.427297 97.8185721 292.043216'%3E%3C/polygon%3E%3Cpolygon id='Stroke-232' transform='translate(96.202326, 292.043216) rotate(22.000000) translate(-96.202326, -292.043216) ' points='96.2023255 293.659135 94.586079 292.043216 96.2023255 290.427297 97.8185721 292.043216'%3E%3C/polygon%3E%3Cpolygon id='Fill-234' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(97.653979, 295.462017) rotate(22.000000) translate(-97.653979, -295.462017) ' points='97.6539786 297.077936 96.0377321 295.462017 97.6539786 293.846099 99.2702252 295.462017'%3E%3C/polygon%3E%3Cpolygon id='Stroke-236' transform='translate(97.653979, 295.462017) rotate(22.000000) translate(-97.653979, -295.462017) ' points='97.6539786 297.077936 96.0377321 295.462017 97.6539786 293.846099 99.2702252 295.462017'%3E%3C/polygon%3E%3Cpolygon id='Fill-238' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(90.143017, 286.544880) rotate(22.000000) translate(-90.143017, -286.544880) ' points='90.1430168 288.160798 88.5267702 286.54488 90.1430168 284.928961 91.7592633 286.54488'%3E%3C/polygon%3E%3Cpolygon id='Stroke-240' transform='translate(90.143017, 286.544880) rotate(22.000000) translate(-90.143017, -286.544880) ' points='90.1430168 288.160798 88.5267702 286.54488 90.1430168 284.928961 91.7592633 286.54488'%3E%3C/polygon%3E%3Cpolygon id='Fill-242' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(91.594670, 289.963681) rotate(22.000000) translate(-91.594670, -289.963681) ' points='91.5946698 291.5796 89.9784233 289.963681 91.5946698 288.347762 93.2109164 289.963681'%3E%3C/polygon%3E%3Cpolygon id='Stroke-244' transform='translate(91.594670, 289.963681) rotate(22.000000) translate(-91.594670, -289.963681) ' points='91.5946698 291.5796 89.9784233 289.963681 91.5946698 288.347762 93.2109164 289.963681'%3E%3C/polygon%3E%3Cpolygon id='Fill-246' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(93.046240, 293.382517) rotate(22.000000) translate(-93.046240, -293.382517) ' points='93.0462402 294.998436 91.4299937 293.382517 93.0462402 291.766598 94.6624868 293.382517'%3E%3C/polygon%3E%3Cpolygon id='Stroke-248' transform='translate(93.046240, 293.382517) rotate(22.000000) translate(-93.046240, -293.382517) ' points='93.0462402 294.998436 91.4299937 293.382517 93.0462402 291.766598 94.6624868 293.382517'%3E%3C/polygon%3E%3Cpolygon id='Fill-250' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(94.497893, 296.801318) rotate(22.000000) translate(-94.497893, -296.801318) ' points='94.4978933 298.417237 92.8816468 296.801318 94.4978933 295.1854 96.1141398 296.801318'%3E%3C/polygon%3E%3Cpolygon id='Stroke-252' transform='translate(94.497893, 296.801318) rotate(22.000000) translate(-94.497893, -296.801318) ' points='94.4978933 298.417237 92.8816468 296.801318 94.4978933 295.1854 96.1141398 296.801318'%3E%3C/polygon%3E%3Cpolygon id='Fill-254' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(86.986931, 287.884181) rotate(22.000000) translate(-86.986931, -287.884181) ' points='86.9869315 289.500099 85.3706849 287.884181 86.9869315 286.268262 88.603178 287.884181'%3E%3C/polygon%3E%3Cpolygon id='Stroke-256' transform='translate(86.986931, 287.884181) rotate(22.000000) translate(-86.986931, -287.884181) ' points='86.9869315 289.500099 85.3706849 287.884181 86.9869315 286.268262 88.603178 287.884181'%3E%3C/polygon%3E%3Cpolygon id='Fill-258' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.438585, 291.302982) rotate(22.000000) translate(-88.438585, -291.302982) ' points='88.4385845 292.9189 86.822338 291.302982 88.4385845 289.687063 90.0548311 291.302982'%3E%3C/polygon%3E%3Cpolygon id='Stroke-260' transform='translate(88.438585, 291.302982) rotate(22.000000) translate(-88.438585, -291.302982) ' points='88.4385845 292.9189 86.822338 291.302982 88.4385845 289.687063 90.0548311 291.302982'%3E%3C/polygon%3E%3Cpolygon id='Fill-262' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(89.890155, 294.721818) rotate(22.000000) translate(-89.890155, -294.721818) ' points='89.8901549 296.337737 88.2739084 294.721818 89.8901549 293.105899 91.5064014 294.721818'%3E%3C/polygon%3E%3Cpolygon id='Stroke-264' transform='translate(89.890155, 294.721818) rotate(22.000000) translate(-89.890155, -294.721818) ' points='89.8901549 296.337737 88.2739084 294.721818 89.8901549 293.105899 91.5064014 294.721818'%3E%3C/polygon%3E%3Cpolygon id='Fill-266' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(91.341749, 298.140595) rotate(22.000000) translate(-91.341749, -298.140595) ' points='91.3417491 299.756514 89.7255025 298.140595 91.3417491 296.524677 92.9579956 298.140595'%3E%3C/polygon%3E%3Cpolygon id='Stroke-268' transform='translate(91.341749, 298.140595) rotate(22.000000) translate(-91.341749, -298.140595) ' points='91.3417491 299.756514 89.7255025 298.140595 91.3417491 296.524677 92.9579956 298.140595'%3E%3C/polygon%3E%3Cpolygon id='Fill-270' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(83.830846, 289.223482) rotate(22.000000) translate(-83.830846, -289.223482) ' points='83.8308461 290.8394 82.2145996 289.223482 83.8308461 287.607563 85.4470927 289.223482'%3E%3C/polygon%3E%3Cpolygon id='Stroke-272' transform='translate(83.830846, 289.223482) rotate(22.000000) translate(-83.830846, -289.223482) ' points='82.2145996 289.223482 83.8308461 287.607563 85.4470927 289.223482 83.8308461 290.8394'%3E%3C/polygon%3E%3Cpolygon id='Fill-274' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(85.282417, 292.642318) rotate(22.000000) translate(-85.282417, -292.642318) ' points='85.2824165 294.258236 83.66617 292.642318 85.2824165 291.026399 86.898663 292.642318'%3E%3C/polygon%3E%3Cpolygon id='Stroke-276' transform='translate(85.282417, 292.642318) rotate(22.000000) translate(-85.282417, -292.642318) ' points='85.2824165 294.258236 83.66617 292.642318 85.2824165 291.026399 86.898663 292.642318'%3E%3C/polygon%3E%3Cpolygon id='Fill-278' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(86.734070, 296.061119) rotate(22.000000) translate(-86.734070, -296.061119) ' points='86.7340696 297.677038 85.1178231 296.061119 86.7340696 294.4452 88.3503161 296.061119'%3E%3C/polygon%3E%3Cpolygon id='Stroke-280' transform='translate(86.734070, 296.061119) rotate(22.000000) translate(-86.734070, -296.061119) ' points='86.7340696 297.677038 85.1178231 296.061119 86.7340696 294.4452 88.3503161 296.061119'%3E%3C/polygon%3E%3Cpolygon id='Fill-282' fill-opacity='0.6' fill='%23A3B1BF' transform='translate(88.185664, 299.479896) rotate(22.000000) translate(-88.185664, -299.479896) ' points='88.1856638 301.095815 86.5694172 299.479896 88.1856638 297.863978 89.8019103 299.479896'%3E%3C/polygon%3E%3Cpolygon id='Stroke-284' transform='translate(88.185664, 299.479896) rotate(22.000000) translate(-88.185664, -299.479896) ' points='88.1856638 301.095815 86.5694172 299.479896 88.1856638 297.863978 89.8019103 299.479896'%3E%3C/polygon%3E%3Cpolygon id='Fill-286' transform='translate(37.779995, 163.402514) rotate(22.000000) translate(-37.779995, -163.402514) ' points='51.9961666 192.018058 66.401345 177.615802 23.5644587 134.78697 9.15864501 149.189862'%3E%3C/polygon%3E%3Cpolygon id='Fill-290' transform='translate(50.400318, 195.682118) rotate(22.000000) translate(-50.400318, -195.682118) ' points='54.1737837 198.070743 48.0112085 191.909418 46.6268527 193.293493 52.7894279 199.454818'%3E%3C/polygon%3E%3Cpolygon id='Stroke-292' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(50.400318, 195.682118) rotate(22.000000) translate(-50.400318, -195.682118) ' points='54.1737837 198.070743 48.0112085 191.909418 46.6268527 193.293493 52.7894279 199.454818'%3E%3C/polygon%3E%3Cpolygon id='Fill-294' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(52.603532, 200.871447) rotate(22.000000) translate(-52.603532, -200.871447) ' points='52.712807 203.746308 55.4789773 200.980699 52.4942579 197.996585 49.7280876 200.762195'%3E%3C/polygon%3E%3Cpolygon id='Stroke-296' stroke='%23A3B1BF' stroke-width='1.62' fill='%23FFFFFF' stroke-linejoin='round' transform='translate(52.603532, 200.871447) rotate(22.000000) translate(-52.603532, -200.871447) ' points='52.712807 203.746308 55.4789773 200.980699 52.4942579 197.996585 49.7280876 200.762195'%3E%3C/polygon%3E%3Cpolygon id='Fill-298' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(53.983257, 183.836778) rotate(22.000000) translate(-53.983257, -183.836778) ' points='52.3670108 183.836778 53.9832574 185.452697 55.5995039 183.836778 53.9832574 182.22086'%3E%3C/polygon%3E%3Cpolygon id='Stroke-300' transform='translate(53.983257, 183.836778) rotate(22.000000) translate(-53.983257, -183.836778) ' points='52.3670108 183.836778 53.9832574 185.452697 55.5995039 183.836778 53.9832574 182.22086'%3E%3C/polygon%3E%3Cpolygon id='Fill-302' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(52.531663, 180.418001) rotate(22.000000) translate(-52.531663, -180.418001) ' points='50.9154167 180.418001 52.5316632 182.03392 54.1479097 180.418001 52.5316632 178.802082'%3E%3C/polygon%3E%3Cpolygon id='Stroke-304' transform='translate(52.531663, 180.418001) rotate(22.000000) translate(-52.531663, -180.418001) ' points='50.9154167 180.418001 52.5316632 182.03392 54.1479097 180.418001 52.5316632 178.802082'%3E%3C/polygon%3E%3Cpolygon id='Fill-306' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(51.080034, 176.999141) rotate(22.000000) translate(-51.080034, -176.999141) ' points='49.4637874 176.999141 51.0800339 178.61506 52.6962805 176.999141 51.0800339 175.383222'%3E%3C/polygon%3E%3Cpolygon id='Stroke-308' transform='translate(51.080034, 176.999141) rotate(22.000000) translate(-51.080034, -176.999141) ' points='49.4637874 176.999141 51.0800339 178.61506 52.6962805 176.999141 51.0800339 175.383222'%3E%3C/polygon%3E%3Cpolygon id='Fill-310' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(49.628440, 173.580364) rotate(22.000000) translate(-49.628440, -173.580364) ' points='48.0121932 173.580364 49.6284397 175.196282 51.2446863 173.580364 49.6284397 171.964445'%3E%3C/polygon%3E%3Cpolygon id='Stroke-312' transform='translate(49.628440, 173.580364) rotate(22.000000) translate(-49.628440, -173.580364) ' points='48.0121932 173.580364 49.6284397 175.196282 51.2446863 173.580364 49.6284397 171.964445'%3E%3C/polygon%3E%3Cpolygon id='Fill-314' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(50.827172, 185.176079) rotate(22.000000) translate(-50.827172, -185.176079) ' points='49.2109255 185.176079 50.8271721 186.791998 52.4434186 185.176079 50.8271721 183.560161'%3E%3C/polygon%3E%3Cpolygon id='Stroke-316' transform='translate(50.827172, 185.176079) rotate(22.000000) translate(-50.827172, -185.176079) ' points='49.2109255 185.176079 50.8271721 186.791998 52.4434186 185.176079 50.8271721 183.560161'%3E%3C/polygon%3E%3Cpolygon id='Fill-318' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(49.375578, 181.757302) rotate(22.000000) translate(-49.375578, -181.757302) ' points='47.7593313 181.757302 49.3755779 183.373221 50.9918244 181.757302 49.3755779 180.141383'%3E%3C/polygon%3E%3Cpolygon id='Stroke-320' transform='translate(49.375578, 181.757302) rotate(22.000000) translate(-49.375578, -181.757302) ' points='47.7593313 181.757302 49.3755779 183.373221 50.9918244 181.757302 49.3755779 180.141383'%3E%3C/polygon%3E%3Cpolygon id='Fill-322' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(47.923949, 178.338442) rotate(22.000000) translate(-47.923949, -178.338442) ' points='46.3077021 178.338442 47.9239486 179.954361 49.5401951 178.338442 47.9239486 176.722523'%3E%3C/polygon%3E%3Cpolygon id='Stroke-324' transform='translate(47.923949, 178.338442) rotate(22.000000) translate(-47.923949, -178.338442) ' points='46.3077021 178.338442 47.9239486 179.954361 49.5401951 178.338442 47.9239486 176.722523'%3E%3C/polygon%3E%3Cpolygon id='Fill-326' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(46.472354, 174.919665) rotate(22.000000) translate(-46.472354, -174.919665) ' points='44.8561079 174.919665 46.4723544 176.535583 48.088601 174.919665 46.4723544 173.303746'%3E%3C/polygon%3E%3Cpolygon id='Stroke-328' transform='translate(46.472354, 174.919665) rotate(22.000000) translate(-46.472354, -174.919665) ' points='44.8561079 174.919665 46.4723544 176.535583 48.088601 174.919665 46.4723544 173.303746'%3E%3C/polygon%3E%3Cpolygon id='Fill-330' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(47.671087, 186.515380) rotate(22.000000) translate(-47.671087, -186.515380) ' points='46.0548402 186.51538 47.6710867 188.131299 49.2873333 186.51538 47.6710867 184.899461'%3E%3C/polygon%3E%3Cpolygon id='Stroke-332' transform='translate(47.671087, 186.515380) rotate(22.000000) translate(-47.671087, -186.515380) ' points='46.0548402 186.51538 47.6710867 188.131299 49.2873333 186.51538 47.6710867 184.899461'%3E%3C/polygon%3E%3Cpolygon id='Fill-334' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(46.219493, 183.096603) rotate(22.000000) translate(-46.219493, -183.096603) ' points='44.603246 183.096603 46.2194926 184.712521 47.8357391 183.096603 46.2194926 181.480684'%3E%3C/polygon%3E%3Cpolygon id='Stroke-336' transform='translate(46.219493, 183.096603) rotate(22.000000) translate(-46.219493, -183.096603) ' points='44.603246 183.096603 46.2194926 184.712521 47.8357391 183.096603 46.2194926 181.480684'%3E%3C/polygon%3E%3Cpolygon id='Fill-338' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(44.767839, 179.677802) rotate(22.000000) translate(-44.767839, -179.677802) ' points='43.1515929 179.677802 44.7678395 181.29372 46.384086 179.677802 44.7678395 178.061883'%3E%3C/polygon%3E%3Cpolygon id='Stroke-340' transform='translate(44.767839, 179.677802) rotate(22.000000) translate(-44.767839, -179.677802) ' points='43.1515929 179.677802 44.7678395 181.29372 46.384086 179.677802 44.7678395 178.061883'%3E%3C/polygon%3E%3Cpolygon id='Fill-342' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.316269, 176.258965) rotate(22.000000) translate(-43.316269, -176.258965) ' points='41.7000226 176.258965 43.3162691 177.874884 44.9325156 176.258965 43.3162691 174.643047'%3E%3C/polygon%3E%3Cpolygon id='Stroke-344' transform='translate(43.316269, 176.258965) rotate(22.000000) translate(-43.316269, -176.258965) ' points='41.7000226 176.258965 43.3162691 177.874884 44.9325156 176.258965 43.3162691 174.643047'%3E%3C/polygon%3E%3Cpolygon id='Fill-346' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(44.514978, 187.854740) rotate(22.000000) translate(-44.514978, -187.854740) ' points='42.8987311 187.85474 44.5149776 189.470659 46.1312242 187.85474 44.5149776 186.238821'%3E%3C/polygon%3E%3Cpolygon id='Stroke-348' transform='translate(44.514978, 187.854740) rotate(22.000000) translate(-44.514978, -187.854740) ' points='42.8987311 187.85474 44.5149776 189.470659 46.1312242 187.85474 44.5149776 186.238821'%3E%3C/polygon%3E%3Cpolygon id='Fill-350' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.063348, 184.435880) rotate(22.000000) translate(-43.063348, -184.435880) ' points='41.4471018 184.43588 43.0633483 186.051799 44.6795949 184.43588 43.0633483 182.819961'%3E%3C/polygon%3E%3Cpolygon id='Stroke-352' transform='translate(43.063348, 184.435880) rotate(22.000000) translate(-43.063348, -184.435880) ' points='41.4471018 184.43588 43.0633483 186.051799 44.6795949 184.43588 43.0633483 182.819961'%3E%3C/polygon%3E%3Cpolygon id='Fill-354' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(41.611754, 181.017103) rotate(22.000000) translate(-41.611754, -181.017103) ' points='39.9955076 181.017103 41.6117542 182.633021 43.2280007 181.017103 41.6117542 179.401184'%3E%3C/polygon%3E%3Cpolygon id='Stroke-356' transform='translate(41.611754, 181.017103) rotate(22.000000) translate(-41.611754, -181.017103) ' points='39.9955076 181.017103 41.6117542 182.633021 43.2280007 181.017103 41.6117542 179.401184'%3E%3C/polygon%3E%3Cpolygon id='Fill-358' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(40.160184, 177.598266) rotate(22.000000) translate(-40.160184, -177.598266) ' points='38.5439373 177.598266 40.1601838 179.214185 41.7764303 177.598266 40.1601838 175.982348'%3E%3C/polygon%3E%3Cpolygon id='Stroke-360' transform='translate(40.160184, 177.598266) rotate(22.000000) translate(-40.160184, -177.598266) ' points='38.5439373 177.598266 40.1601838 179.214185 41.7764303 177.598266 40.1601838 175.982348'%3E%3C/polygon%3E%3Cpolygon id='Fill-362' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(41.358892, 189.194041) rotate(22.000000) translate(-41.358892, -189.194041) ' points='39.7426458 189.194041 41.3588923 190.80996 42.9751388 189.194041 41.3588923 187.578122'%3E%3C/polygon%3E%3Cpolygon id='Stroke-364' transform='translate(41.358892, 189.194041) rotate(22.000000) translate(-41.358892, -189.194041) ' points='39.7426458 189.194041 41.3588923 190.80996 42.9751388 189.194041 41.3588923 187.578122'%3E%3C/polygon%3E%3Cpolygon id='Fill-366' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(39.907263, 185.775181) rotate(22.000000) translate(-39.907263, -185.775181) ' points='38.2910165 185.775181 39.907263 187.3911 41.5235095 185.775181 39.907263 184.159262'%3E%3C/polygon%3E%3Cpolygon id='Stroke-368' transform='translate(39.907263, 185.775181) rotate(22.000000) translate(-39.907263, -185.775181) ' points='38.2910165 185.775181 39.907263 187.3911 41.5235095 185.775181 39.907263 184.159262'%3E%3C/polygon%3E%3Cpolygon id='Fill-370' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.455669, 182.356404) rotate(22.000000) translate(-38.455669, -182.356404) ' points='36.8394223 182.356404 38.4556688 183.972322 40.0719154 182.356404 38.4556688 180.740485'%3E%3C/polygon%3E%3Cpolygon id='Stroke-372' transform='translate(38.455669, 182.356404) rotate(22.000000) translate(-38.455669, -182.356404) ' points='36.8394223 182.356404 38.4556688 183.972322 40.0719154 182.356404 38.4556688 180.740485'%3E%3C/polygon%3E%3Cpolygon id='Fill-374' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(37.004016, 178.937602) rotate(22.000000) translate(-37.004016, -178.937602) ' points='35.3877692 178.937602 37.0040158 180.553521 38.6202623 178.937602 37.0040158 177.321684'%3E%3C/polygon%3E%3Cpolygon id='Stroke-376' transform='translate(37.004016, 178.937602) rotate(22.000000) translate(-37.004016, -178.937602) ' points='35.3877692 178.937602 37.0040158 180.553521 38.6202623 178.937602 37.0040158 177.321684'%3E%3C/polygon%3E%3Cpolygon id='Fill-378' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(46.380894, 165.931897) rotate(22.000000) translate(-46.380894, -165.931897) ' points='44.7646475 165.931897 46.380894 167.547816 47.9971405 165.931897 46.380894 164.315979'%3E%3C/polygon%3E%3Cpolygon id='Stroke-380' transform='translate(46.380894, 165.931897) rotate(22.000000) translate(-46.380894, -165.931897) ' points='44.7646475 165.931897 46.380894 167.547816 47.9971405 165.931897 46.380894 164.315979'%3E%3C/polygon%3E%3Cpolygon id='Fill-382' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(44.929324, 162.513061) rotate(22.000000) translate(-44.929324, -162.513061) ' points='43.3130771 162.513061 44.9293236 164.12898 46.5455702 162.513061 44.9293236 160.897143'%3E%3C/polygon%3E%3Cpolygon id='Stroke-384' transform='translate(44.929324, 162.513061) rotate(22.000000) translate(-44.929324, -162.513061) ' points='43.3130771 162.513061 44.9293236 164.12898 46.5455702 162.513061 44.9293236 160.897143'%3E%3C/polygon%3E%3Cpolygon id='Fill-386' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.477729, 159.094284) rotate(22.000000) translate(-43.477729, -159.094284) ' points='41.8614829 159.094284 43.4777295 160.710203 45.093976 159.094284 43.4777295 157.478365'%3E%3C/polygon%3E%3Cpolygon id='Stroke-388' transform='translate(43.477729, 159.094284) rotate(22.000000) translate(-43.477729, -159.094284) ' points='41.8614829 159.094284 43.4777295 160.710203 45.093976 159.094284 43.4777295 157.478365'%3E%3C/polygon%3E%3Cpolygon id='Fill-390' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(42.026100, 155.675424) rotate(22.000000) translate(-42.026100, -155.675424) ' points='40.4098536 155.675424 42.0261002 157.291342 43.6423467 155.675424 42.0261002 154.059505'%3E%3C/polygon%3E%3Cpolygon id='Stroke-392' transform='translate(42.026100, 155.675424) rotate(22.000000) translate(-42.026100, -155.675424) ' points='40.4098536 155.675424 42.0261002 157.291342 43.6423467 155.675424 42.0261002 154.059505'%3E%3C/polygon%3E%3Cpolygon id='Fill-394' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(43.224809, 167.271198) rotate(22.000000) translate(-43.224809, -167.271198) ' points='41.6085622 167.271198 43.2248087 168.887117 44.8410552 167.271198 43.2248087 165.65528'%3E%3C/polygon%3E%3Cpolygon id='Stroke-396' transform='translate(43.224809, 167.271198) rotate(22.000000) translate(-43.224809, -167.271198) ' points='41.6085622 167.271198 43.2248087 168.887117 44.8410552 167.271198 43.2248087 165.65528'%3E%3C/polygon%3E%3Cpolygon id='Fill-398' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(41.773238, 163.852362) rotate(22.000000) translate(-41.773238, -163.852362) ' points='40.1569918 163.852362 41.7732383 165.468281 43.3894848 163.852362 41.7732383 162.236443'%3E%3C/polygon%3E%3Cpolygon id='Stroke-400' transform='translate(41.773238, 163.852362) rotate(22.000000) translate(-41.773238, -163.852362) ' points='40.1569918 163.852362 41.7732383 165.468281 43.3894848 163.852362 41.7732383 162.236443'%3E%3C/polygon%3E%3Cpolygon id='Fill-402' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(40.321585, 160.433561) rotate(22.000000) translate(-40.321585, -160.433561) ' points='38.7053387 160.433561 40.3215852 162.04948 41.9378318 160.433561 40.3215852 158.817642'%3E%3C/polygon%3E%3Cpolygon id='Stroke-404' transform='translate(40.321585, 160.433561) rotate(22.000000) translate(-40.321585, -160.433561) ' points='38.7053387 160.433561 40.3215852 162.04948 41.9378318 160.433561 40.3215852 158.817642'%3E%3C/polygon%3E%3Cpolygon id='Fill-406' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.869991, 157.014784) rotate(22.000000) translate(-38.869991, -157.014784) ' points='37.2537445 157.014784 38.8699911 158.630702 40.4862376 157.014784 38.8699911 155.398865'%3E%3C/polygon%3E%3Cpolygon id='Stroke-408' transform='translate(38.869991, 157.014784) rotate(22.000000) translate(-38.869991, -157.014784) ' points='37.2537445 157.014784 38.8699911 158.630702 40.4862376 157.014784 38.8699911 155.398865'%3E%3C/polygon%3E%3Cpolygon id='Fill-410' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(40.068723, 168.610499) rotate(22.000000) translate(-40.068723, -168.610499) ' points='38.4524768 168.610499 40.0687234 170.226418 41.6849699 168.610499 40.0687234 166.994581'%3E%3C/polygon%3E%3Cpolygon id='Stroke-412' transform='translate(40.068723, 168.610499) rotate(22.000000) translate(-40.068723, -168.610499) ' points='38.4524768 168.610499 40.0687234 170.226418 41.6849699 168.610499 40.0687234 166.994581'%3E%3C/polygon%3E%3Cpolygon id='Fill-414' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.617129, 165.191722) rotate(22.000000) translate(-38.617129, -165.191722) ' points='37.0008827 165.191722 38.6171292 166.807641 40.2333757 165.191722 38.6171292 163.575803'%3E%3C/polygon%3E%3Cpolygon id='Stroke-416' transform='translate(38.617129, 165.191722) rotate(22.000000) translate(-38.617129, -165.191722) ' points='37.0008827 165.191722 38.6171292 166.807641 40.2333757 165.191722 38.6171292 163.575803'%3E%3C/polygon%3E%3Cpolygon id='Fill-418' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(37.165500, 161.772862) rotate(22.000000) translate(-37.165500, -161.772862) ' points='35.5492534 161.772862 37.1654999 163.388781 38.7817464 161.772862 37.1654999 160.156943'%3E%3C/polygon%3E%3Cpolygon id='Stroke-420' transform='translate(37.165500, 161.772862) rotate(22.000000) translate(-37.165500, -161.772862) ' points='35.5492534 161.772862 37.1654999 163.388781 38.7817464 161.772862 37.1654999 160.156943'%3E%3C/polygon%3E%3Cpolygon id='Fill-422' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.713906, 158.354085) rotate(22.000000) translate(-35.713906, -158.354085) ' points='34.0976592 158.354085 35.7139057 159.970003 37.3301523 158.354085 35.7139057 156.738166'%3E%3C/polygon%3E%3Cpolygon id='Stroke-424' transform='translate(35.713906, 158.354085) rotate(22.000000) translate(-35.713906, -158.354085) ' points='34.0976592 158.354085 35.7139057 159.970003 37.3301523 158.354085 35.7139057 156.738166'%3E%3C/polygon%3E%3Cpolygon id='Fill-426' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(36.912638, 169.949800) rotate(22.000000) translate(-36.912638, -169.949800) ' points='35.2963915 169.9498 36.912638 171.565719 38.5288846 169.9498 36.912638 168.333882'%3E%3C/polygon%3E%3Cpolygon id='Stroke-428' transform='translate(36.912638, 169.949800) rotate(22.000000) translate(-36.912638, -169.949800) ' points='35.2963915 169.9498 36.912638 171.565719 38.5288846 169.9498 36.912638 168.333882'%3E%3C/polygon%3E%3Cpolygon id='Fill-430' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.461068, 166.530964) rotate(22.000000) translate(-35.461068, -166.530964) ' points='33.8448211 166.530964 35.4610677 168.146883 37.0773142 166.530964 35.4610677 164.915045'%3E%3C/polygon%3E%3Cpolygon id='Stroke-432' transform='translate(35.461068, 166.530964) rotate(22.000000) translate(-35.461068, -166.530964) ' points='33.8448211 166.530964 35.4610677 168.146883 37.0773142 166.530964 35.4610677 164.915045'%3E%3C/polygon%3E%3Cpolygon id='Fill-434' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(34.009415, 163.112163) rotate(22.000000) translate(-34.009415, -163.112163) ' points='32.3931681 163.112163 34.0094146 164.728081 35.6256611 163.112163 34.0094146 161.496244'%3E%3C/polygon%3E%3Cpolygon id='Stroke-436' transform='translate(34.009415, 163.112163) rotate(22.000000) translate(-34.009415, -163.112163) ' points='32.3931681 163.112163 34.0094146 164.728081 35.6256611 163.112163 34.0094146 161.496244'%3E%3C/polygon%3E%3Cpolygon id='Fill-438' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.557820, 159.693385) rotate(22.000000) translate(-32.557820, -159.693385) ' points='30.9415739 159.693385 32.5578204 161.309304 34.174067 159.693385 32.5578204 158.077467'%3E%3C/polygon%3E%3Cpolygon id='Stroke-440' transform='translate(32.557820, 159.693385) rotate(22.000000) translate(-32.557820, -159.693385) ' points='30.9415739 159.693385 32.5578204 161.309304 34.174067 159.693385 32.5578204 158.077467'%3E%3C/polygon%3E%3Cpolygon id='Fill-442' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(33.756553, 171.289101) rotate(22.000000) translate(-33.756553, -171.289101) ' points='32.1403062 171.289101 33.7565527 172.90502 35.3727993 171.289101 33.7565527 169.673182'%3E%3C/polygon%3E%3Cpolygon id='Stroke-444' transform='translate(33.756553, 171.289101) rotate(22.000000) translate(-33.756553, -171.289101) ' points='32.1403062 171.289101 33.7565527 172.90502 35.3727993 171.289101 33.7565527 169.673182'%3E%3C/polygon%3E%3Cpolygon id='Fill-446' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.304959, 167.870324) rotate(22.000000) translate(-32.304959, -167.870324) ' points='30.688712 167.870324 32.3049586 169.486242 33.9212051 167.870324 32.3049586 166.254405'%3E%3C/polygon%3E%3Cpolygon id='Stroke-448' transform='translate(32.304959, 167.870324) rotate(22.000000) translate(-32.304959, -167.870324) ' points='30.688712 167.870324 32.3049586 169.486242 33.9212051 167.870324 32.3049586 166.254405'%3E%3C/polygon%3E%3Cpolygon id='Fill-450' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(30.853329, 164.451464) rotate(22.000000) translate(-30.853329, -164.451464) ' points='29.2370827 164.451464 30.8533293 166.067382 32.4695758 164.451464 30.8533293 162.835545'%3E%3C/polygon%3E%3Cpolygon id='Stroke-452' transform='translate(30.853329, 164.451464) rotate(22.000000) translate(-30.853329, -164.451464) ' points='29.2370827 164.451464 30.8533293 166.067382 32.4695758 164.451464 30.8533293 162.835545'%3E%3C/polygon%3E%3Cpolygon id='Fill-454' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(29.401735, 161.032686) rotate(22.000000) translate(-29.401735, -161.032686) ' points='27.7854886 161.032686 29.4017351 162.648605 31.0179816 161.032686 29.4017351 159.416768'%3E%3C/polygon%3E%3Cpolygon id='Stroke-456' transform='translate(29.401735, 161.032686) rotate(22.000000) translate(-29.401735, -161.032686) ' points='27.7854886 161.032686 29.4017351 162.648605 31.0179816 161.032686 29.4017351 159.416768'%3E%3C/polygon%3E%3Cpolygon id='Fill-458' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(38.778613, 148.026981) rotate(22.000000) translate(-38.778613, -148.026981) ' points='37.1623668 148.026981 38.7786133 149.6429 40.3948599 148.026981 38.7786133 146.411063'%3E%3C/polygon%3E%3Cpolygon id='Stroke-460' transform='translate(38.778613, 148.026981) rotate(22.000000) translate(-38.778613, -148.026981) ' points='37.1623668 148.026981 38.7786133 149.6429 40.3948599 148.026981 38.7786133 146.411063'%3E%3C/polygon%3E%3Cpolygon id='Fill-462' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(37.326984, 144.608121) rotate(22.000000) translate(-37.326984, -144.608121) ' points='35.7107375 144.608121 37.3269841 146.22404 38.9432306 144.608121 37.3269841 142.992203'%3E%3C/polygon%3E%3Cpolygon id='Stroke-464' transform='translate(37.326984, 144.608121) rotate(22.000000) translate(-37.326984, -144.608121) ' points='35.7107375 144.608121 37.3269841 146.22404 38.9432306 144.608121 37.3269841 142.992203'%3E%3C/polygon%3E%3Cpolygon id='Fill-466' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.875390, 141.189344) rotate(22.000000) translate(-35.875390, -141.189344) ' points='34.2591433 141.189344 35.8753899 142.805263 37.4916364 141.189344 35.8753899 139.573425'%3E%3C/polygon%3E%3Cpolygon id='Stroke-468' transform='translate(35.875390, 141.189344) rotate(22.000000) translate(-35.875390, -141.189344) ' points='34.2591433 141.189344 35.8753899 142.805263 37.4916364 141.189344 35.8753899 139.573425'%3E%3C/polygon%3E%3Cpolygon id='Fill-470' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(34.423796, 137.770567) rotate(22.000000) translate(-34.423796, -137.770567) ' points='32.8075492 137.770567 34.4237957 139.386485 36.0400422 137.770567 34.4237957 136.154648'%3E%3C/polygon%3E%3Cpolygon id='Stroke-472' fill='%23B2BECA' transform='translate(34.423796, 137.770567) rotate(22.000000) translate(-34.423796, -137.770567) ' points='34.4237957 139.386485 36.0400422 137.770567 34.4237957 136.154648 32.8075492 137.770567'%3E%3C/polygon%3E%3Cpolygon id='Fill-474' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(35.622528, 149.366282) rotate(22.000000) translate(-35.622528, -149.366282) ' points='34.0062815 149.366282 35.622528 150.982201 37.2387746 149.366282 35.622528 147.750364'%3E%3C/polygon%3E%3Cpolygon id='Stroke-476' transform='translate(35.622528, 149.366282) rotate(22.000000) translate(-35.622528, -149.366282) ' points='34.0062815 149.366282 35.622528 150.982201 37.2387746 149.366282 35.622528 147.750364'%3E%3C/polygon%3E%3Cpolygon id='Fill-478' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(34.170875, 145.947481) rotate(22.000000) translate(-34.170875, -145.947481) ' points='32.5546284 145.947481 34.1708749 147.5634 35.7871215 145.947481 34.1708749 144.331563'%3E%3C/polygon%3E%3Cpolygon id='Stroke-480' transform='translate(34.170875, 145.947481) rotate(22.000000) translate(-34.170875, -145.947481) ' points='32.5546284 145.947481 34.1708749 147.5634 35.7871215 145.947481 34.1708749 144.331563'%3E%3C/polygon%3E%3Cpolygon id='Fill-482' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.719305, 142.528645) rotate(22.000000) translate(-32.719305, -142.528645) ' points='31.103058 142.528645 32.7193046 144.144564 34.3355511 142.528645 32.7193046 140.912726'%3E%3C/polygon%3E%3Cpolygon id='Stroke-484' transform='translate(32.719305, 142.528645) rotate(22.000000) translate(-32.719305, -142.528645) ' points='31.103058 142.528645 32.7193046 144.144564 34.3355511 142.528645 32.7193046 140.912726'%3E%3C/polygon%3E%3Cpolygon id='Fill-486' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(31.267651, 139.109844) rotate(22.000000) translate(-31.267651, -139.109844) ' points='29.651405 139.109844 31.2676515 140.725763 32.883898 139.109844 31.2676515 137.493925'%3E%3C/polygon%3E%3Cpolygon id='Stroke-488' transform='translate(31.267651, 139.109844) rotate(22.000000) translate(-31.267651, -139.109844) ' points='29.651405 139.109844 31.2676515 140.725763 32.883898 139.109844 31.2676515 137.493925'%3E%3C/polygon%3E%3Cpolygon id='Fill-490' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(32.466384, 150.705559) rotate(22.000000) translate(-32.466384, -150.705559) ' points='30.8501373 150.705559 32.4663838 152.321478 34.0826303 150.705559 32.4663838 149.089641'%3E%3C/polygon%3E%3Cpolygon id='Stroke-492' transform='translate(32.466384, 150.705559) rotate(22.000000) translate(-32.466384, -150.705559) ' points='30.8501373 150.705559 32.4663838 152.321478 34.0826303 150.705559 32.4663838 149.089641'%3E%3C/polygon%3E%3Cpolygon id='Fill-494' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(31.014790, 147.286782) rotate(22.000000) translate(-31.014790, -147.286782) ' points='29.3985431 147.286782 31.0147896 148.902701 32.6310362 147.286782 31.0147896 145.670863'%3E%3C/polygon%3E%3Cpolygon id='Stroke-496' transform='translate(31.014790, 147.286782) rotate(22.000000) translate(-31.014790, -147.286782) ' points='29.3985431 147.286782 31.0147896 148.902701 32.6310362 147.286782 31.0147896 145.670863'%3E%3C/polygon%3E%3Cpolygon id='Fill-498' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(29.563219, 143.867946) rotate(22.000000) translate(-29.563219, -143.867946) ' points='27.9469727 143.867946 29.5632192 145.483865 31.1794658 143.867946 29.5632192 142.252027'%3E%3C/polygon%3E%3Cpolygon id='Stroke-500' transform='translate(29.563219, 143.867946) rotate(22.000000) translate(-29.563219, -143.867946) ' points='27.9469727 143.867946 29.5632192 145.483865 31.1794658 143.867946 29.5632192 142.252027'%3E%3C/polygon%3E%3Cpolygon id='Fill-502' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(28.111566, 140.449145) rotate(22.000000) translate(-28.111566, -140.449145) ' points='26.4953196 140.449145 28.1115662 142.065063 29.7278127 140.449145 28.1115662 138.833226'%3E%3C/polygon%3E%3Cpolygon id='Stroke-504' transform='translate(28.111566, 140.449145) rotate(22.000000) translate(-28.111566, -140.449145) ' points='26.4953196 140.449145 28.1115662 142.065063 29.7278127 140.449145 28.1115662 138.833226'%3E%3C/polygon%3E%3Cpolygon id='Fill-506' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(29.310298, 152.044860) rotate(22.000000) translate(-29.310298, -152.044860) ' points='27.6940519 152.04486 29.3102985 153.660779 30.926545 152.04486 29.3102985 150.428942'%3E%3C/polygon%3E%3Cpolygon id='Stroke-508' transform='translate(29.310298, 152.044860) rotate(22.000000) translate(-29.310298, -152.044860) ' points='27.6940519 152.04486 29.3102985 153.660779 30.926545 152.04486 29.3102985 150.428942'%3E%3C/polygon%3E%3Cpolygon id='Fill-510' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(27.858704, 148.626083) rotate(22.000000) translate(-27.858704, -148.626083) ' points='26.2424578 148.626083 27.8587043 150.242002 29.4749508 148.626083 27.8587043 147.010164'%3E%3C/polygon%3E%3Cpolygon id='Stroke-512' transform='translate(27.858704, 148.626083) rotate(22.000000) translate(-27.858704, -148.626083) ' points='26.2424578 148.626083 27.8587043 150.242002 29.4749508 148.626083 27.8587043 147.010164'%3E%3C/polygon%3E%3Cpolygon id='Fill-514' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(26.407134, 145.207247) rotate(22.000000) translate(-26.407134, -145.207247) ' points='24.7908874 145.207247 26.4071339 146.823166 28.0233805 145.207247 26.4071339 143.591328'%3E%3C/polygon%3E%3Cpolygon id='Stroke-516' transform='translate(26.407134, 145.207247) rotate(22.000000) translate(-26.407134, -145.207247) ' points='24.7908874 145.207247 26.4071339 146.823166 28.0233805 145.207247 26.4071339 143.591328'%3E%3C/polygon%3E%3Cpolygon id='Fill-518' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(24.955481, 141.788446) rotate(22.000000) translate(-24.955481, -141.788446) ' points='23.3392343 141.788446 24.9554808 143.404364 26.5717274 141.788446 24.9554808 140.172527'%3E%3C/polygon%3E%3Cpolygon id='Stroke-520' transform='translate(24.955481, 141.788446) rotate(22.000000) translate(-24.955481, -141.788446) ' points='23.3392343 141.788446 24.9554808 143.404364 26.5717274 141.788446 24.9554808 140.172527'%3E%3C/polygon%3E%3Cpolygon id='Fill-522' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(26.154213, 153.384161) rotate(22.000000) translate(-26.154213, -153.384161) ' points='24.5379666 153.384161 26.1542132 155.00008 27.7704597 153.384161 26.1542132 151.768243'%3E%3C/polygon%3E%3Cpolygon id='Stroke-524' transform='translate(26.154213, 153.384161) rotate(22.000000) translate(-26.154213, -153.384161) ' points='24.5379666 153.384161 26.1542132 155.00008 27.7704597 153.384161 26.1542132 151.768243'%3E%3C/polygon%3E%3Cpolygon id='Fill-526' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(24.702619, 149.965384) rotate(22.000000) translate(-24.702619, -149.965384) ' points='23.0863724 149.965384 24.702619 151.581303 26.3188655 149.965384 24.702619 148.349465'%3E%3C/polygon%3E%3Cpolygon id='Stroke-528' transform='translate(24.702619, 149.965384) rotate(22.000000) translate(-24.702619, -149.965384) ' points='23.0863724 149.965384 24.702619 151.581303 26.3188655 149.965384 24.702619 148.349465'%3E%3C/polygon%3E%3Cpolygon id='Fill-530' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(23.250966, 146.546583) rotate(22.000000) translate(-23.250966, -146.546583) ' points='21.6347194 146.546583 23.2509659 148.162502 24.8672124 146.546583 23.2509659 144.930664'%3E%3C/polygon%3E%3Cpolygon id='Stroke-532' transform='translate(23.250966, 146.546583) rotate(22.000000) translate(-23.250966, -146.546583) ' points='21.6347194 146.546583 23.2509659 148.162502 24.8672124 146.546583 23.2509659 144.930664'%3E%3C/polygon%3E%3Cpolygon id='Fill-534' fill-opacity='0.8' fill='%23A3B1BF' transform='translate(21.799396, 143.127747) rotate(22.000000) translate(-21.799396, -143.127747) ' points='20.183149 143.127747 21.7993955 144.743665 23.4156421 143.127747 21.7993955 141.511828'%3E%3C/polygon%3E%3Cpolygon id='Stroke-536' transform='translate(21.799396, 143.127747) rotate(22.000000) translate(-21.799396, -143.127747) ' points='20.183149 143.127747 21.7993955 144.743665 23.4156421 143.127747 21.7993955 141.511828'%3E%3C/polygon%3E%3Cpath d='M129.314819,189.942425 C126.372666,187.000233 124.490222,184.112668 125.110927,183.492089 C125.731631,182.87151 128.619783,184.753573 131.562571,187.695129 C134.504724,190.637321 136.387169,193.524886 135.766464,194.145465 C135.145759,194.766044 132.257608,192.883981 129.314819,189.942425 Z' id='Fill-538' fill='%23F5F5F5' transform='translate(130.438695, 188.818777) rotate(22.000000) translate(-130.438695, -188.818777) '%3E%3C/path%3E%3Cpath d='M129.314819,189.942425 C126.372666,187.000233 124.490222,184.112668 125.110927,183.492089 C125.731631,182.87151 128.619783,184.753573 131.562571,187.695129 C134.504724,190.637321 136.387169,193.524886 135.766464,194.145465 C135.145759,194.766044 132.257608,192.883981 129.314819,189.942425 Z' id='Stroke-540' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(130.438695, 188.818777) rotate(22.000000) translate(-130.438695, -188.818777) '%3E%3C/path%3E%3Cpath d='M136.083433,187.715086 C130.20421,181.837055 126.443133,176.067006 127.683272,174.827118 C128.92341,173.587231 134.69463,177.347545 140.573854,183.225576 C146.453713,189.104243 150.21479,194.874292 148.974651,196.114179 C147.734513,197.354066 141.963293,193.593752 136.083433,187.715086 Z' id='Fill-542' fill='%23F5F5F5' transform='translate(138.328961, 185.470648) rotate(22.000000) translate(-138.328961, -185.470648) '%3E%3C/path%3E%3Cpath d='M136.083433,187.715086 C130.20421,181.837055 126.443133,176.067006 127.683272,174.827118 C128.92341,173.587231 134.69463,177.347545 140.573854,183.225576 C146.453713,189.104243 150.21479,194.874292 148.974651,196.114179 C147.734513,197.354066 141.963293,193.593752 136.083433,187.715086 Z' id='Stroke-544' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(138.328961, 185.470648) rotate(22.000000) translate(-138.328961, -185.470648) '%3E%3C/path%3E%3Cpath d='M146.697288,183.650834 C138.818086,175.773231 133.777481,168.04045 135.43947,166.378798 C137.101459,164.717146 144.835809,169.756729 152.715011,177.634332 C160.594213,185.511936 165.634818,193.244716 163.972829,194.906369 C162.310839,196.568021 154.57649,191.528438 146.697288,183.650834 Z' id='Fill-546' fill-opacity='0.35' fill='%23F5F5F5' transform='translate(149.706149, 180.642583) rotate(22.000000) translate(-149.706149, -180.642583) '%3E%3C/path%3E%3Cpath d='M146.697288,183.650834 C138.818086,175.773231 133.777481,168.04045 135.43947,166.378798 C137.101459,164.717146 144.835809,169.756729 152.715011,177.634332 C160.594213,185.511936 165.634818,193.244716 163.972829,194.906369 C162.310839,196.568021 154.57649,191.528438 146.697288,183.650834 Z' id='Stroke-548' stroke='%23A3B1BF' stroke-width='1.62' stroke-linejoin='round' transform='translate(149.706149, 180.642583) rotate(22.000000) translate(-149.706149, -180.642583) '%3E%3C/path%3E%3Cpath d='M65.2279553,90.2345285 C62.4548336,90.0320836 60.4105231,89.3345405 60.4105231,88.5051511 C60.4105231,87.676673 62.4503446,86.9797514 65.2188187,86.7764428 C65.4149139,84.0068366 66.0879499,81.9659221 66.8880741,81.9659221 C67.6881984,81.9659221 68.3612344,84.0068366 68.5573295,86.7764428 C71.3258036,86.9797514 73.3656251,87.676673 73.3656251,88.5051511 C73.3656251,89.3345405 71.3213146,90.0320836 68.548193,90.2345285 C68.3410329,92.9408238 67.6762073,94.9210242 66.8880741,94.9210242 C66.0999409,94.9210242 65.4351154,92.9408238 65.2279553,90.2345285 Z' id='Oval-80-Copy-3' fill-opacity='0.4' fill='%23A3B1BF' opacity='0.85' transform='translate(66.888074, 88.443473) rotate(-340.000000) translate(-66.888074, -88.443473) '%3E%3C/path%3E%3Cpath d='M118.775569,329.140492 L118.424988,329.526146 C117.522244,330.5192 115.985396,330.592411 114.992341,329.689667 C114.596934,329.330218 114.331035,328.850456 114.235803,328.324641 L114.143075,327.812647 L113.669257,327.599091 C112.445737,327.047635 111.900921,325.608734 112.452377,324.385214 C112.672015,323.8979 113.046204,323.496601 113.516991,323.243469 L113.97521,322.997095 L114.032158,322.478985 C114.178786,321.144967 115.379087,320.182398 116.713105,320.329026 C117.24418,320.387399 117.741214,320.61917 118.127299,320.988476 L118.503957,321.348765 L119.01334,321.242962 C120.327346,320.970031 121.613813,321.813989 121.886744,323.127995 C121.995449,323.651349 121.928561,324.195943 121.696437,324.677436 L121.470742,325.145594 L121.728812,325.597409 C122.394441,326.762759 121.989337,328.247061 120.823987,328.91269 C120.359975,329.177726 119.82154,329.282421 119.292023,329.21057 L118.775569,329.140492 Z' id='Star-1-Copy-16' fill-opacity='0.4' fill='%23A3B1BF'%3E%3C/path%3E%3Cpath d='M432.83752,120.004816 L432.837087,120.005044 L432.837087,120.005044 C432.092472,120.396429 431.171561,120.110079 430.780176,119.365464 C430.624337,119.068978 430.570573,118.729391 430.627206,118.399266 L430.627206,118.399266 L430.627206,118.399266 L430.627206,118.399266 C430.024845,117.812233 430.01242,116.848039 430.599453,116.245678 C430.833262,116.005765 431.139652,115.849637 431.471171,115.801474 L431.471471,115.801431 L431.471471,115.801431 L431.471471,115.801431 C431.843891,115.046982 432.757399,114.737288 433.511848,115.109709 C433.812195,115.25797 434.055308,115.501083 434.20357,115.801431 L434.20357,115.801431 L434.203869,115.801474 L434.203869,115.801474 C435.036229,115.922398 435.612963,116.695187 435.492039,117.527547 C435.443876,117.859067 435.287748,118.165457 435.047835,118.399266 L435.047835,118.399266 L435.047835,118.399266 L435.047835,118.399266 C435.190066,119.228364 434.63325,120.015783 433.804152,120.158014 C433.474027,120.214647 433.134439,120.160883 432.837954,120.005044 L432.83752,120.004816 Z' id='Star-1-Copy-18' fill-opacity='0.4' fill='%23A3B1BF' transform='translate(432.837619, 117.566125) rotate(-3.000000) translate(-432.837619, -117.566125) '%3E%3C/path%3E%3Cpath d='M99.7727703,38.762372 L99.0266308,39.1545584 L99.0266308,39.1545584 C97.8386845,39.7789675 96.36948,39.3221304 95.7450708,38.134184 C95.4964477,37.6611755 95.4106732,37.1194035 95.5010241,36.5927278 L95.6433921,35.7628333 L95.0407812,35.1755563 L95.0407812,35.1755563 C94.0796578,34.2388893 94.059832,32.7004261 94.996499,31.7393027 C95.369563,31.3564979 95.8584376,31.1073808 96.3874089,31.0305329 L97.2206742,30.9094778 L97.5937913,30.1536188 L97.5937913,30.1536188 C98.1878378,28.950202 99.6449697,28.4562097 100.848387,29.0502562 C101.327469,29.2867472 101.715258,29.6745363 101.951749,30.1536188 L102.324866,30.9094778 L103.158132,31.0305329 L103.158132,31.0305329 C104.486241,31.223478 105.406474,32.4565366 105.213529,33.7846464 C105.136681,34.3136177 104.887564,34.8024923 104.504759,35.1755563 L103.902148,35.7628333 L104.044516,36.5927278 L104.044516,36.5927278 C104.27143,37.9154575 103.383095,39.1716915 102.060366,39.398605 C101.53369,39.4889559 100.991918,39.4031814 100.51891,39.1545584 L99.7727703,38.762372 Z' id='Star-1-Copy-19' fill-opacity='0.4' fill='%23A3B1BF' transform='translate(99.772928, 34.116388) rotate(19.000000) translate(-99.772928, -34.116388) '%3E%3C/path%3E%3Cpath d='M396.631073,305.744172 L396.098125,305.608596 C394.797498,305.277731 394.01135,303.955146 394.342215,302.654518 C394.473956,302.136643 394.772729,301.676633 395.192288,301.345694 L395.623376,301.00566 L395.587617,300.458372 C395.500116,299.119176 396.514815,297.962609 397.854012,297.875108 C398.387399,297.840257 398.917395,297.982247 399.361919,298.279089 L399.818473,298.583965 L400.329362,298.380373 C401.576068,297.883555 402.989473,298.491459 403.486291,299.738164 C403.684076,300.23448 403.712777,300.782145 403.567956,301.296416 L403.418882,301.825788 L403.76981,302.247972 C404.627682,303.280038 404.486471,304.812135 403.454406,305.670007 C403.043346,306.011688 402.531095,306.208301 401.996987,306.229395 L401.44896,306.251039 L401.15585,306.715309 C400.439401,307.850123 398.938655,308.189275 397.80384,307.472826 C397.351988,307.187555 397.006767,306.761296 396.821614,306.260029 L396.631073,305.744172 Z' id='Star-1-Copy-20' fill-opacity='0.4' fill='%23A3B1BF'%3E%3C/path%3E%3Cpath d='M439.755536,146.347757 L439.755103,146.347984 L439.755103,146.347984 C439.010488,146.739369 438.089577,146.45302 437.698192,145.708405 C437.542353,145.411919 437.488589,145.072331 437.545222,144.742206 L437.545222,144.742206 L437.545222,144.742206 L437.545222,144.742206 C436.942861,144.155173 436.930436,143.190979 437.517469,142.588619 C437.751277,142.348705 438.057668,142.192577 438.389187,142.144415 L438.389487,142.144371 L438.389487,142.144371 L438.389487,142.144371 C438.761907,141.389923 439.675415,141.080228 440.429864,141.452649 C440.730211,141.600911 440.973324,141.844024 441.121586,142.144371 L441.121586,142.144371 L441.121885,142.144415 L441.121885,142.144415 C441.954245,142.265338 442.530978,143.038128 442.410055,143.870488 C442.361892,144.202007 442.205764,144.508398 441.965851,144.742206 L441.965851,144.742206 L441.965851,144.742206 L441.965851,144.742206 C442.108082,145.571305 441.551266,146.358723 440.722168,146.500955 C440.392043,146.557588 440.052455,146.503823 439.755969,146.347984 L439.755536,146.347757 Z' id='Star-1-Copy-21' fill-opacity='0.4' fill='%23A3B1BF' transform='translate(439.755635, 143.909066) rotate(-12.000000) translate(-439.755635, -143.909066) '%3E%3C/path%3E%3Cpath d='M244.621971,220.61341 C277.15945,220.61341 303.536288,194.242112 303.536288,161.711467 C303.536288,129.180822 277.15945,102.809524 244.621971,102.809524 C212.084491,102.809524 185.707653,129.180822 185.707653,161.711467 C185.707653,194.242112 212.084491,220.61341 244.621971,220.61341 Z' id='Oval-8-Copy-2' fill-opacity='0.66' fill='%23A3B1BF'%3E%3C/path%3E%3Cpath d='M245.345696,141.060063 C241.146656,141.060063 237.880736,142.342349 235.547936,144.906921 C233.215136,147.354921 232.107056,150.618921 232.107056,154.698921 L236.714336,154.698921 C236.714336,151.842921 237.355856,149.628063 238.638896,147.996063 C240.038576,146.072635 242.196416,145.140063 245.112416,145.140063 C247.561856,145.140063 249.486416,145.781206 250.827776,147.180063 C252.110816,148.462349 252.810656,150.269206 252.810656,152.600635 C252.810656,154.232635 252.227456,155.748063 251.061056,157.205206 C250.711136,157.671492 250.011296,158.370921 249.078176,159.303492 C245.928896,162.101206 244.004336,164.316063 243.187856,166.064635 C242.488016,167.521778 242.138096,169.212063 242.138096,171.135492 L242.138096,172.476063 L246.803696,172.476063 L246.803696,171.135492 C246.803696,169.561778 247.153616,168.162921 247.911776,166.880635 C248.494976,165.831492 249.369776,164.782349 250.652816,163.674921 C253.218896,161.401778 254.793536,159.886349 255.376736,159.186921 C256.834736,157.263492 257.592896,154.990349 257.592896,152.367492 C257.592896,148.870349 256.484816,146.130921 254.326976,144.149206 C252.052496,142.050921 249.078176,141.060063 245.345696,141.060063 Z M244.470896,176.556063 C243.479456,176.556063 242.662976,176.847492 241.963136,177.546921 C241.263296,178.188063 240.971696,179.004063 240.971696,179.994921 C240.971696,180.985778 241.263296,181.801778 241.963136,182.501206 C242.662976,183.142349 243.479456,183.492063 244.470896,183.492063 C245.462336,183.492063 246.278816,183.142349 246.978656,182.501206 C247.678496,181.860063 248.028416,181.044063 248.028416,179.994921 C248.028416,179.004063 247.678496,178.188063 247.036976,177.546921 C246.337136,176.847492 245.462336,176.556063 244.470896,176.556063 Z' id='?' fill='%23FFFFFF'%3E%3C/path%3E%3Cpath d='M223.261662,133.139924 C229.077338,129.782947 239.631808,125.828273 236.274126,120.013819 C232.916444,114.199364 220.565868,115.043746 214.750193,118.400722 C208.934517,121.757699 202.729834,131.623951 206.087516,137.438405 C209.445198,143.252859 217.445986,136.4969 223.261662,133.139924' id='Oval-8-Copy-2' fill='%23FAFAFA'%3E%3C/path%3E%3Cpath d='M249.679003,119.820589 C252.365149,119.820589 254.5427,117.643495 254.5427,114.957913 C254.5427,112.272332 252.365149,110.095238 249.679003,110.095238 C246.992857,110.095238 244.815306,112.272332 244.815306,114.957913 C244.815306,117.643495 246.992857,119.820589 249.679003,119.820589 Z' id='Oval-10-Copy' fill='%23FAFAFA'%3E%3C/path%3E%3Cpath d='M421.5,321.5 L423,323' id='Line-2' stroke='%23979797' stroke-linecap='square'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")",backgroundRepeat:"no-repeat",backgroundSize:"cover",padding:"170px 176px 200px 224px"},children:[F.jsx("div",{style:{textAlign:"center",fontWeight:800},children:F.jsx("h1",{children:"404"})}),F.jsx("div",{style:{textAlign:"center",fontWeight:800},children:F.jsx("p",{children:"Sorry, this page does not exist."})})]})})});var XF,YF={exports:{}},ZF=YF.exports;var QF=(XF||(XF=1,function(e){var t,n;t="u"<typeof window?ZF:window,n=()=>(()=>{var e,t,n,r,o,i,a,l;let s,c,u,d,h,p;var f,m,g,y,v,b,x,w,C,k,S,E,$,T,P,M,O,N,A,I,R,L,B,z,D,j,_={d:(e,t)=>{for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},F={};_.d(F,{default:()=>ti}),(f=k||(k={})).SVG_NS="http://www.w3.org/2000/svg",f.product="Highcharts",f.version="12.6.0",f.win="u">typeof window?window:{},f.doc=f.win.document,f.svg=!!(null==(n=null==(t=null==(e=f.doc)?void 0:e.createElementNS)?void 0:t.call(e,f.SVG_NS,"svg"))?void 0:n.createSVGRect),f.pageLang=null==(i=null==(o=null==(r=f.doc)?void 0:r.documentElement)?void 0:o.closest("[lang]"))?void 0:i.lang,f.userAgent=(null==(a=f.win.navigator)?void 0:a.userAgent)||"",f.isChrome=f.win.chrome,f.isFirefox=-1!==f.userAgent.indexOf("Firefox"),f.isMS=/(edge|msie|trident)/i.test(f.userAgent)&&!f.win.opera,f.isSafari=!f.isChrome&&-1!==f.userAgent.indexOf("Safari"),f.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(f.userAgent),f.isWebKit=-1!==f.userAgent.indexOf("AppleWebKit"),f.deg2rad=2*Math.PI/360,f.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],f.noop=function(){},f.supportsPassiveEvents=function(){let e=!1;if(!f.isMS){let t=Object.defineProperty({},"passive",{get:function(){e=!0}});f.win.addEventListener&&f.win.removeEventListener&&(f.win.addEventListener("testPassive",f.noop,t),f.win.removeEventListener("testPassive",f.noop,t))}return e}(),f.charts=[],f.composed=[],f.dateFormats={},f.seriesTypes={},f.symbolSizes={},f.chartCount=0;let H=k,{doc:W,win:K}=H;function V(e,t,n,r={}){let o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let i=o.hcEvents;H.Point&&e instanceof H.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,t,n,!!H.supportsPassiveEvents&&{passive:void 0===r.passive?-1!==t.indexOf("touch"):r.passive,capture:!1}),i[t]||(i[t]=[]);let l={fn:n,order:"number"==typeof r.order?r.order:1/0};return i[t].push(l),i[t].sort((e,t)=>e.order-t.order),function(){Ae(e,t,n)}}function U(e){let t=e.length,n=e[0];for(;t--;)e[t]<n&&(n=e[t]);return n}function q(e){let t=e.length,n=e[0];for(;t--;)e[t]>n&&(n=e[t]);return n}function G(e,t,n){let r,o=ve(t)&&!ee(n),i=(t,n)=>{ee(t)?e.setAttribute(n,t):o?(r=e.getAttribute(n))||"class"!==n||(r=e.getAttribute(n+"Name")):e.removeAttribute(n)};return ve(t)?i(n,t):Se(t,i),r}function X(e,t,n){return e>t?e<n?e:n:t}function Y(e,t){return e>1e14?e:parseFloat(e.toPrecision(t||14))}function Z(e,t,n,r,o){let i=W.createElement(e);return t&&ie(i,t),o&&J(i,{padding:"0",border:"none",margin:"0"}),n&&J(i,n),r&&r.appendChild(i),i}function Q(e,t=0,n){let r=t%2/2,o=n?-1:1;return(Math.round(e*o-r)+r)*o}function J(e,t){ie(e.style,t)}function ee(e){return null!=e}function te(e,t,n){Se(e,function(r,o){r!==t&&(null==r?void 0:r.destroy)&&r.destroy(),((null==r?void 0:r.destroy)||!n)&&delete e[o]})}function ne(e){var t;null==(t=null==e?void 0:e.parentElement)||t.removeChild(e)}function re(e,t,n,r){let o={};return function e(t,o,i,a){let l=n?o:t;Se(t,function(n,s){if(!a&&r&&r.indexOf(s)>-1&&o[s]){n=Ie(n),i[s]=[];for(let t=0;t<Math.max(n.length,o[s].length);t++)o[s][t]&&(void 0===n[t]?i[s][t]=o[s][t]:(i[s][t]={},e(n[t],o[s][t],i[s][t],a+1)))}else we(n,!0)&&!n.nodeType?(i[s]=be(n)?[]:{},e(n,o[s]||{},i[s],a+1),0===Object.keys(i[s]).length&&("colorAxis"!==s||0!==a)&&delete i[s]):(t[s]!==o[s]||s in t&&!(s in o))&&"__proto__"!==s&&"constructor"!==s&&(i[s]=l[s])})}(e,t,o,0),o}function oe(e,t){let n=e.length;for(;n--;)if(e[n]===t){e.splice(n,1);break}}function ie(e,t){let n;for(n in e||(e={}),t)e[n]=t[n];return e}function ae(e,t){let n=function(){};return ie(n.prototype=new e,t),n}function le(e,t,n,r){if(n=n||{},(null==W?void 0:W.createEvent)&&(e.dispatchEvent||e.fireEvent&&e!==H)){let r=W.createEvent("Events");r.initEvent(t,!0,!0),n=ie(r,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(t,n)}else if(e.hcEvents){n.target||ie(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:t});let r=[],o=e,i=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[t]&&(r.length&&(i=!0),r.unshift.apply(r,o.hcEvents[t])),o=Object.getPrototypeOf(o);i&&r.sort((e,t)=>e.order-t.order),r.forEach(t=>{!1===t.fn.call(e,n,e)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}let se=(e="")=>({center:.5,right:1,middle:.5,bottom:1}[e]||0);function ce(e,t){let n,r,o,i=!t;return e.forEach(e=>{if(e.length>1)for(o=e.length-1;o>0;o--)(r=e[o]-e[o-1])<0&&!i?(null==t||t(),t=void 0):r&&(void 0===n||r<n)&&(n=r)}),n}function ue(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function de(e,t){let n=e.split(".");for(;n.length&&ee(t);){let e=n.shift();if(void 0===e||"__proto__"===e)return;if("this"===e){let e;return we(t)&&(e=t["@this"]),e??t}let r=t[e.replace(/[\\'"]/g,"")];if(!ee(r)||"function"==typeof r||"number"==typeof r.nodeType||r===K)return;t=r}return t}function he(e,t,n){var r;let o;if("width"===t){let t=Math.min(e.offsetWidth,e.scrollWidth),n=null==(r=e.getBoundingClientRect)?void 0:r.call(e).width;return n<t&&n>=t-1&&(t=Math.floor(n)),Math.max(0,t-(he(e,"padding-left",!0)||0)-(he(e,"padding-right",!0)||0))}if("height"===t)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(he(e,"padding-top",!0)||0)-(he(e,"padding-bottom",!0)||0));let i=K.getComputedStyle(e,void 0);return i&&(o=i.getPropertyValue(t),Te(n,"opacity"!==t)&&(o=Pe(o))),o}let pe=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};function fe(e){ee(e)&&clearTimeout(e)}function me(e){return we(e)&&"number"==typeof e.nodeType}function ge(e){let t=null==e?void 0:e.constructor;return!(!we(e,!0)||me(e)||!(null==t?void 0:t.name)||"Object"===t.name)}function ye(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&e>-1/0}function ve(e){return"string"==typeof e}function be(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function xe(e){return"function"==typeof e}function we(e,t){return!(!e||"object"!=typeof e||t&&be(e))}function Ce(e,...t){let n,r=[e,...t],o={},i=function(e,t){return"object"!=typeof e&&(e={}),Se(t,function(n,r){"__proto__"!==r&&"constructor"!==r&&(!we(n,!0)||ge(n)||me(n)?e[r]=t[r]:e[r]=i(e[r]||{},n))}),e};!0===e&&(o=r[1],r=Array.prototype.slice.call(r,2));let a=r.length;for(n=0;n<a;n++)o=i(o,r[n]);return o}function ke(e,t,n,r,o){let i,a=e,l=e/(n=Te(n,ue(e)));for(!t&&(t=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===n?t=t.filter(function(e){return e%1==0}):n<=.1&&(t=[1/n]))),i=0;i<t.length&&(a=t[i],(!o||!(a*n>=e))&&(o||!(l<=(t[i]+(t[i+1]||t[i]))/2)));i++);return Y(a*n,-Math.round(Math.log(.001)/Math.LN10))}function Se(e,t,n){for(let r in e)Object.hasOwnProperty.call(e,r)&&t.call(n||e[r],e[r],r,e)}function Ee(e){let t=W.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(K.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(K.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:n.width,height:n.height}}function $e(e,t,n){return Array((t||2)+1-String(e).replace("-","").length).join(n||"0")+e}function Te(){let e=arguments,t=e.length;for(let n=0;n<t;n++){let t=e[n];if(null!=t)return t}}function Pe(e,t){return parseInt(e,t||10)}function Me(e,t){return 0>e.indexOf(t)&&!!e.push(t)}function Oe(e,t,n){return/%$/.test(e)?t*parseFloat(e)/100+(n||0):parseFloat(e)}function Ne(e,...t){let n,r;do{for(r of(n=e,t))e=e.replace(r[0],r[1])}while(e!==n);return e}function Ae(e,t,n){function r(t,n){let r=e.removeEventListener;r&&r.call(e,t,n,!1)}function o(n){let o,i;e.nodeName&&(t?(o={})[t]=!0:o=n,Se(o,function(e,t){if(n[t])for(i=n[t].length;i--;)r(t,n[t][i].fn)}))}let i="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(i,"hcEvents")){let e=i.hcEvents;if(t){let i=e[t]||[];n?(e[t]=i.filter(function(e){return n!==e.fn}),r(t,n)):(o(e),e[t]=[])}else o(e),delete i.hcEvents}}function Ie(e){return be(e)?e:[e]}function Re(e,t){let n,r,o=e.length;for(r=0;r<o;r++)e[r].safeI=r;for(e.sort(function(e,r){return 0===(n=t(e,r))?e.safeI-r.safeI:n}),r=0;r<o;r++)delete e[r].safeI}function Le(e,t,n){return t>0?setTimeout(e,t,n):(e.call(0,n),-1)}function Be(e){return ve(e)?e.substring(0,1).toUpperCase()+e.substring(1):String(e)}let{charts:ze,win:De}=H;function je(e,t,n,r){let o=t?"Highcharts error":"Highcharts warning";32===e&&(e=`${o}: Deprecated member`);let i=ye(e),a=i?`${o} #${e}: www.highcharts.com/errors/${e}/`:e.toString();if(void 0!==r){let e="";i&&(a+="?"),Se(r,function(t,n){e+=`\n - ${n}: ${t}`,i&&(a+=encodeURI(n)+"="+encodeURI(t))}),a+=e}le(H,"displayError",{chart:n,code:e,message:a,params:r},function(){if(t)throw Error(a);De.console&&-1===je.messages.indexOf(a)&&console.warn(a)}),je.messages.push(a)}function _e(e,t){let n,r=e.options.index,o=t.length;for(n=e.options.isInternal?o:0;n<o+1;n++)if(!t[n]||ye(r)&&r<Te(t[n].options.index,t[n]._i)||t[n].options.isInternal){t.splice(n,0,e);break}return n}(je||(je={})).messages=[];let Fe={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};let He=(u=Math.random().toString(36).substring(2,9)+"-",d=0,function(){return"highcharts-"+(s?"":u)+d++});De.jQuery&&(De.jQuery.fn.highcharts=function(){let e=[].slice.call(arguments);if(this[0])return e[0]?(new(H[ve(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):ze[G(this[0],"data-highcharts-chart")]});let{pageLang:We,win:Ke}=H,Ve=H.isSafari&&Ke.Intl&&!Ke.Intl.DateTimeFormat.prototype.formatRange,Ue=class{constructor(e,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Ke.Date,this.update(e),this.lang=t}update(e={}){this.dTLCache={},this.options=e=Ce(!0,this.options,e);let{timezoneOffset:t,useUTC:n,locale:r}=e;this.Date=e.Date||Ke.Date||Date;let o=e.timezone;ee(n)&&(o=n?"UTC":void 0),t&&t%60==0&&(o="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone="UTC"!==o&&0!==(null==o?void 0:o.indexOf("Etc/GMT")),this.timezone=o,this.lang&&r&&(this.lang.locale=r),["months","shortMonths","weekdays","shortWeekdays"].forEach(e=>{let t=/months/i.test(e),n=/short/.test(e),r={timeZone:"UTC"};r[t?"month":"weekday"]=n?"short":"long",this[e]=(t?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(e=>this.dateFormat(r,24*(t?31:1)*36e5*e))})}toParts(e){let[t,n,r,o,i,a,l]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},e,"es").split(/(?:, | |\/|:)/g);return[o,r-1,n,i,a,l,Math.floor(Number(e)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(e,t,n=this.options.locale||We){let r=JSON.stringify(e)+n;ve(e)&&(e=this.str2dtf(e));let o=this.dTLCache[r];if(!o){e.timeZone??(e.timeZone=this.timezone);try{o=new Intl.DateTimeFormat(n,e)}catch(t){/Invalid time zone/i.test(t.message)?(je(34),e.timeZone="UTC",o=new Intl.DateTimeFormat(n,e)):je(t.message,!1)}}return this.dTLCache[r]=o,(null==o?void 0:o.format(t))||""}str2dtf(e,t={}){let n={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(n).forEach(r=>{-1!==e.indexOf(r)&&ie(t,n[r])}),t}makeTime(e,t,n=1,r=0,o,i,a){let l=this.Date.UTC(e,t,n,r,o||0,i||0,a||0);if("UTC"!==this.timezone){let e=this.getTimezoneOffset(l);if(l+=e,-1!==[2,3,8,9,10,11].indexOf(t)&&(r<5||r>20)){let t=this.getTimezoneOffset(l);e!==t?l+=t-e:e-36e5!==this.getTimezoneOffset(l-36e5)||Ve||(l-=36e5)}}return l}parse(e){if(!ve(e))return e??void 0;let t=(e=e.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(e),n=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(e);t||n||(e+="Z");let r=Date.parse(e);return ye(r)?r+(!t||n?this.getTimezoneOffset(r):0):void 0}getTimezoneOffset(e){if("UTC"!==this.timezone){let[t,n,r,o,i=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},e,"en").split(/(GMT|:)/).map(Number),a=-60*(r+i/60)*6e4;if(ye(a))return a}return 0}dateFormat(e,t,n){let r=this.lang;if(!ee(t)||isNaN(t))return(null==r?void 0:r.invalidDate)||"";if(ve(e=e??"%Y-%m-%d %H:%M:%S")){let n,o=/%\[([a-zA-Z]+)\]/g;for(;n=o.exec(e);)e=e.replace(n[0],this.dateTimeFormat(n[1],t,null==r?void 0:r.locale))}if(ve(e)&&-1!==e.indexOf("%")){let n=this,[o,i,a,l,s,c,u,d]=this.toParts(t),h=(null==r?void 0:r.weekdays)||this.weekdays,p=(null==r?void 0:r.shortWeekdays)||this.shortWeekdays,f=(null==r?void 0:r.months)||this.months,m=(null==r?void 0:r.shortMonths)||this.shortMonths;Se(ie({a:p?p[d]:h[d].substr(0,3),A:h[d],d:$e(a),e:$e(a,2," "),w:d,v:(null==r?void 0:r.weekFrom)??"",b:m[i],B:f[i],m:$e(i+1),o:i+1,y:o.toString().substr(2,2),Y:o,H:$e(l),k:l,I:$e(l%12||12),l:l%12||12,M:$e(s),p:l<12?"AM":"PM",P:l<12?"am":"pm",S:$e(c),L:$e(u,3)},H.dateFormats),function(r,o){if(ve(e))for(;-1!==e.indexOf("%"+o);)e=e.replace("%"+o,"function"==typeof r?r.call(n,t,n):r)})}else if(we(e)){let n=(this.getTimezoneOffset(t)||0)/36e5,r=this.timezone||"Etc/GMT"+(n>=0?"+":"")+n,{prefix:o="",suffix:i=""}=e;e=o+this.dateTimeFormat(ie({timeZone:r},e),t)+i}return n?Be(e):e}resolveDTLFormat(e){return we(e,!0)?we(e,!0)&&void 0===e.main?{main:e}:e:{main:(e=Ie(e))[0],from:e[1],to:e[2]}}getDateFormat(e,t,n,r){let o=this.dateFormat("%m-%d %H:%M:%S.%L",t),i="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond",s=l;for(l in Fe){if(e&&e===Fe.week&&+this.dateFormat("%w",t)===n&&o.substr(6)===i.substr(6)){l="week";break}if(e&&Fe[l]>e){l=s;break}if(a[l]&&o.substr(a[l])!==i.substr(a[l]))break;"week"!==l&&(s=l)}return this.resolveDTLFormat(r[l]).main}},qe=class extends Ue{getTimeTicks(e,t,n,r){let o,i=this,a=[],l={},{count:s=1,unitRange:c}=e,[u,d,h,p,f,m]=i.toParts(t),g=(t||0)%1e3;if(r??(r=1),ee(t)){if(g=c>=Fe.second?0:s*Math.floor(g/s),c>=Fe.second&&(m=c>=Fe.minute?0:s*Math.floor(m/s)),c>=Fe.minute&&(f=c>=Fe.hour?0:s*Math.floor(f/s)),c>=Fe.hour&&(p=c>=Fe.day?0:s*Math.floor(p/s)),c>=Fe.day&&(h=c>=Fe.month?1:Math.max(1,s*Math.floor(h/s))),c>=Fe.month&&(d=c>=Fe.year?0:s*Math.floor(d/s)),c>=Fe.year&&(u-=u%s),c===Fe.week){s&&(t=i.makeTime(u,d,h,p,f,m,g));let e=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),n="DLMXJVS".indexOf(e);h+=-n+r+(n<r?-7:0)}t=i.makeTime(u,d,h,p,f,m,g),i.variableTimezone&&ee(n)&&(o=n-t>4*Fe.month||i.getTimezoneOffset(t)!==i.getTimezoneOffset(n));let e=t,y=1;for(;e<n;)a.push(e),c===Fe.year?e=i.makeTime(u+y*s,0):c===Fe.month?e=i.makeTime(u,d+y*s):!o||c!==Fe.day&&c!==Fe.week?o&&c===Fe.hour&&s>1?e=i.makeTime(u,d,h,p+y*s):e+=c*s:e=i.makeTime(u,d,h+y*s*(c===Fe.day?1:7)),y++;a.push(e),c<=Fe.hour&&a.length<1e4&&a.forEach(e=>{e%18e5==0&&"000000000"===i.dateFormat("%H%M%S%L",e)&&(l[e]="day")})}return a.info=ie(e,{higherRanks:l,totalRange:c*s}),a}},{isTouchDevice:Ge}=H,Xe={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"#333333",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:e=>Math.sqrt(1-Math.pow(e-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:Ge?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},Ye=new qe(Xe.time,Xe.lang),Ze={defaultOptions:Xe,defaultTime:Ye,getOptions:function(){return Xe},setOptions:function(e){var t;return le(H,"setOptions",{options:e}),Ce(!0,Xe,e),e.time&&Ye.update(Xe.time),e.lang&&"locale"in e.lang&&Ye.update({locale:e.lang.locale}),(null==(t=e.lang)?void 0:t.chartTitle)&&(Xe.title={...Xe.title,text:e.lang.chartTitle}),Xe}},{win:Qe}=H,Je=(e,t,n)=>`color-mix(in srgb,${e},${t} ${100*n}%)`,et=e=>ve(e)&&!!e&&"none"!==e;class tt{static parse(e){return e?new tt(e):tt.None}constructor(e){let t,n,r,o;this.rgba=[NaN,NaN,NaN,NaN],this.input=e;const i=H.Color;if(i&&i!==tt)return new i(e);if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map(e=>new tt(e[1]));else if("string"==typeof e)for(this.input=e=tt.names[e.toLowerCase()]||e,r=tt.parsers.length;r--&&!n;)(t=(o=tt.parsers[r]).regex.exec(e))&&(n=o.parse(t));n&&(this.rgba=n)}get(e){let t=this.input,n=this.rgba;if(this.output)return this.output;if("object"==typeof t&&void 0!==this.stops){let n=Ce(t);return n.stops=[].slice.call(n.stops),this.stops.forEach((t,r)=>{n.stops[r]=[n.stops[r][0],t.get(e)]}),n}return n&&ye(n[0])?"rgb"===e||!e&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===e?`${n[3]}`:"rgba("+n.join(",")+")":t}brighten(e){let t=this.rgba;if(this.stops)this.stops.forEach(function(t){t.brighten(e)});else if(ye(e)&&0!==e)if(ye(t[0]))for(let n=0;n<3;n++)t[n]+=Pe(255*e),t[n]<0&&(t[n]=0),t[n]>255&&(t[n]=255);else tt.useColorMix&&et(this.input)&&(this.output=Je(this.input,e>0?"white":"black",Math.abs(e)));return this}setOpacity(e){return this.rgba[3]=e,this}tweenTo(e,t){let n=this.rgba,r=e.rgba;if(!ye(n[0])||!ye(r[0]))return tt.useColorMix&&et(this.input)&&et(e.input)&&t<.99?Je(this.input,e.input,t):e.input||"none";let o=1!==r[3]||1!==n[3],i=(e,r)=>e+(n[r]-e)*(1-t),a=r.slice(0,3).map(i).map(Math.round);return o&&a.push(i(r[3],3)),(o?"rgba(":"rgb(")+a.join(",")+")"}}tt.names={white:"#ffffff",black:"#000000"},tt.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(e){return[Pe(e[1]),Pe(e[2]),Pe(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(e){return[Pe(e[1]),Pe(e[2]),Pe(e[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(e){return[Pe(e[1]+e[1],16),Pe(e[2]+e[2],16),Pe(e[3]+e[3],16),ee(e[4])?Pe(e[4]+e[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(e){return[Pe(e[1],16),Pe(e[2],16),Pe(e[3],16),ee(e[4])?Pe(e[4],16)/255:1]}}],tt.useColorMix=null==(l=Qe.CSS)?void 0:l.supports("color","color-mix(in srgb,red,blue 9%)"),tt.None=new tt("");let{parse:nt}=tt,{win:rt}=H;class ot{constructor(e,t,n){this.pos=NaN,this.options=t,this.elem=e,this.prop=n}dSetter(){let e=this.paths,t=null==e?void 0:e[0],n=null==e?void 0:e[1],r=this.now||0,o=[];if(1!==r&&t&&n)if(t.length===n.length&&r<1)for(let e=0;e<n.length;e++){let i=t[e],a=n[e],l=[];for(let e=0;e<a.length;e++){let t=i[e],n=a[e];ye(t)&&ye(n)&&("A"!==a[0]||4!==e&&5!==e)?l[e]=t+r*(n-t):l[e]=n}o.push(l)}else o=n;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)}update(){let e=this.elem,t=this.prop,n=this.now,r=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,n,null,!0):e.style[t]=n+this.unit,r&&r.call(e,n,this)}run(e,t,n){let r=this,o=r.options,i=function(e){return!i.stopped&&r.step(e)},a=rt.requestAnimationFrame||function(e){setTimeout(e,13)},l=function(){for(let e=0;e<ot.timers.length;e++)ot.timers[e]()||ot.timers.splice(e--,1);ot.timers.length&&a(l)};e!==t||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=t,this.unit=n,this.now=this.start,this.pos=0,i.elem=this.elem,i.prop=this.prop,i()&&1===ot.timers.push(i)&&a(l)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))}step(e){let t,n,r=+new Date,o=this.options,i=this.elem,a=o.complete,l=o.duration,s=o.curAnim;return i.attr&&!i.element?t=!1:e||r>=l+this.startTime?(this.now=this.end,this.pos=1,this.update(),s[this.prop]=!0,n=!0,Se(s,function(e){!0!==e&&(n=!1)}),n&&a&&a.call(i),t=!1):(this.pos=o.easing((r-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0),t}initPath(e,t,n){let r,o,i,a,l=e.startX,s=e.endX,c=n.slice(),u=e.isArea,d=u?2:1,h=t&&n.length>t.length&&n.hasStackedCliffs,p=null==t?void 0:t.slice();if(!p||h)return[c,c];function f(e,t){for(;e.length<o;){let n=e[0],r=t[o-e.length];if(r&&"M"===n[0]&&("C"===r[0]?e[0]=["C",n[1],n[2],n[1],n[2],n[1],n[2]]:e[0]=["L",n[1],n[2]]),e.unshift(n),u){let t=e.pop();e.push(e[e.length-1],t)}}}function m(e){for(;e.length<o;){let t=e[Math.floor(e.length/d)-1].slice();if("C"===t[0]&&(t[1]=t[5],t[2]=t[6]),u){let n=e[Math.floor(e.length/d)].slice();e.splice(e.length/2,0,t,n)}else e.push(t)}}if(l&&s&&s.length){for(i=0;i<l.length;i++){if(l[i]===s[0]){r=i;break}if(l[0]===s[s.length-l.length+i]){r=i,a=!0;break}if(l[l.length-1]===s[s.length-l.length+i]){r=l.length-i;break}}void 0===r&&(p=[])}return p.length&&ye(r)&&(o=c.length+r*d,a?(f(p,c),m(c)):(f(c,p),m(p))),[p,c]}fillSetter(){ot.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,nt(this.start).tweenTo(nt(this.end),this.pos),void 0,!0)}}function it(e){return we(e)?Ce({duration:500,defer:0},e):{duration:500*!!e,defer:0}}function at(e,t){let n=ot.timers.length;for(;n--;)ot.timers[n].elem!==e||t&&t!==ot.timers[n].prop||(ot.timers[n].stopped=!0)}ot.timers=[];let lt={animate:function(e,t,n){let r,o,i,a,l="";we(n)||(a=arguments,n={duration:a[2],easing:a[3],complete:a[4]}),ye(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=Ce(t),Se(t,function(a,s){at(e,s),i=new ot(e,n,s),o=void 0,"d"===s&&be(t.d)?(i.paths=i.initPath(e,e.pathArray,t.d),i.toD=t.d,r=0,o=1):e.attr?r=e.attr(s):(r=parseFloat(he(e,s))||0,"opacity"!==s&&(l="px")),o||(o=a),"string"==typeof o&&o.match("px")&&(o=o.replace(/px/g,"")),i.run(r,o,l)})},animObject:it,getDeferredAnimation:function(e,t,n){let r=it(t),o=n?[n]:e.series,i=0,a=0;return o.forEach(e=>{let n=it(e.options.animation);i=we(t)&&ee(t.defer)?r.defer:Math.max(i,n.duration+n.defer),a=Math.min(r.duration,n.duration)}),e.renderer.forExport&&(i=0),{defer:Math.max(0,i-a),duration:Math.min(i,a)}},setAnimation:function(e,t){t.renderer.globalAnimation=Te(e,t.options.chart.animation,!0)},stop:at},{SVG_NS:st,win:ct}=H,{trustedTypes:ut}=ct,dt=ut&&xe(ut.createPolicy)&&ut.createPolicy("highcharts",{createHTML:e=>e}),ht=dt?dt.createHTML(""):"";class pt{static filterUserAttributes(e){return Se(e,(t,n)=>{let r=!0;-1===pt.allowedAttributes.indexOf(n)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(n)&&(r=ve(t)&&pt.allowedReferences.some(e=>0===t.indexOf(e))),r||(je(33,!1,void 0,{"Invalid attribute in config":`${n}`}),delete e[n]),ve(t)&&e[n]&&(e[n]=t.replace(/</g,"<"))}),e}static parseStyle(e){return e.split(";").reduce((e,t)=>{let n=t.split(":").map(e=>e.trim()),r=n.shift();return r&&n.length&&(e[r.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=n.join(":")),e},{})}static setElementHTML(e,t){e.innerHTML=pt.emptyHTML,t&&new pt(t).addToDOM(e)}constructor(e){this.nodes="string"==typeof e?this.parseMarkup(e):e}addToDOM(e){return function e(t,n){let r;return Ie(t).forEach(function(t){let o,i=t.tagName,a=t.textContent?H.doc.createTextNode(t.textContent):void 0,l=pt.bypassHTMLFiltering;if(i)if("#text"===i)o=a;else if(-1!==pt.allowedTags.indexOf(i)||l){let r="svg"===i?st:n.namespaceURI||st,s=H.doc.createElementNS(r,i),c=t.attributes||{};Se(t,function(e,t){"tagName"!==t&&"attributes"!==t&&"children"!==t&&"style"!==t&&"textContent"!==t&&(c[t]=e)}),G(s,l?c:pt.filterUserAttributes(c)),t.style&&J(s,t.style),a&&s.appendChild(a),e(t.children||[],s),o=s}else je(33,!1,void 0,{"Invalid tagName in config":i});o&&n.appendChild(o),r=o}),r}(this.nodes,e)}parseMarkup(e){let t,n=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");try{t=(new DOMParser).parseFromString(dt?dt.createHTML(e):e,"text/html")}catch{}if(!t){let n=Z("div");n.innerHTML=e,t={body:n}}let r=(e,t)=>{let n=e.nodeName.toLowerCase(),o={tagName:n};"#text"===n&&(o.textContent=e.textContent||"");let i=e.attributes;if(i){let e={};[].forEach.call(i,t=>{"data-style"===t.name?o.style=pt.parseStyle(t.value):e[t.name]=t.value}),o.attributes=e}if(e.childNodes.length){let t=[];[].forEach.call(e.childNodes,e=>{r(e,t)}),t.length&&(o.children=t)}t.push(o)};return[].forEach.call(t.body.childNodes,e=>r(e,n)),n}}pt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],pt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],pt.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],pt.emptyHTML=ht,pt.bypassHTMLFiltering=!1;let{defaultOptions:ft,defaultTime:mt}=Ze,{pageLang:gt}=H,yt={add:(e,t)=>e+t,divide:(e,t)=>0!==t?e/t:"",eq:(e,t)=>e==t,each:function(e){let t=arguments[arguments.length-1];return!!be(e)&&e.map((n,r)=>bt(t.body,ie(we(n)?n:{"@this":n},{"@index":r,"@first":0===r,"@last":r===e.length-1}))).join("")},ge:(e,t)=>e>=t,gt:(e,t)=>e>t,if:e=>!!e,le:(e,t)=>e<=t,lt:(e,t)=>e<t,multiply:(e,t)=>e*t,ne:(e,t)=>e!=t,subtract:(e,t)=>e-t,ucfirst:Be,unless:e=>!e},vt={};function bt(e="",t,n){var r;let o,i,a,l=RegExp("\\{([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'’= #\\(\\)]+)\\}","gu"),s=RegExp("\\(([\\p{L}\\p{M}\\d:\\.,;\\-\\/<>\\[\\]%_@+\"'= ]+)\\)","gu"),c=[],u=/f$/,d=/\.(\d)/,h=(null==(r=null==n?void 0:n.options)?void 0:r.lang)||ft.lang,p=(null==n?void 0:n.time)||mt,f=(null==n?void 0:n.numberFormatter)||xt.bind(n),m=(e="")=>{let n;return"true"===e||"false"!==e&&((n=Number(e)).toString()===e?n:/^["'].+["']$/.test(e)?e.slice(1,-1):de(e,t))},g=0;for(;null!==(o=l.exec(e));){let n=o,r=s.exec(o[1]);r&&(o=r,a=!0),(null==i?void 0:i.isBlock)||(i={ctx:t,expression:o[1],find:o[0],isBlock:"#"===o[1].charAt(0),start:o.index,startInner:o.index+o[0].length,length:o[0].length});let l=(i.isBlock?n:o)[1].split(" ")[0].replace("#","");yt[l]&&(i.isBlock&&l===i.fn&&g++,i.fn||(i.fn=l));let u="else"===o[1];if(i.isBlock&&i.fn&&(o[1]===`/${i.fn}`||u))if(g)!u&&g--;else{let t=i.startInner,n=e.substr(t,o.index-t);void 0===i.body?(i.body=n,i.startInner=o.index+o[0].length):i.elseBody=n,i.find+=n+o[0],u||(c.push(i),i=void 0)}else i.isBlock||c.push(i);if(r&&!(null==i?void 0:i.isBlock))break}return c.forEach(r=>{let o,i,{body:a,elseBody:l,expression:c,fn:g}=r;if(g){let e,s=[r],u=[],d=c.length,h=0;for(i=0;i<=d;i++){let t=c.charAt(i);e||'"'!==t&&"'"!==t?e===t&&(e=""):e=t,e||" "!==t&&i!==d||(u.push(c.substr(h,i-h)),h=i+1)}for(i=yt[g].length;i--;)s.unshift(m(u[i+1]));o=yt[g].apply(t,s),r.isBlock&&"boolean"==typeof o&&(o=bt(o?a:l,t,n))}else{let e=/^["'].+["']$/.test(c)?[c]:c.split(":");if(o=m(e.shift()||""),e.length&&"number"==typeof o){let t=e.join(":");if(u.test(t)){let e=parseInt((t.match(d)||["","-1"])[1],10);null!==o&&(o=f(o,e,h.decimalPoint,t.indexOf(",")>-1?h.thousandsSep:""))}else o=p.dateFormat(t,o)}s.lastIndex=0,s.test(r.find)&&ve(o)&&(o=`"${o}"`)}e=e.replace(r.find,Te(o,""))}),a?bt(e,t,n):e}function xt(e,t,n,r){var o;t*=1;let i,a,[l,s]=(e=+e||0).toString().split("e").map(Number),c=(null==(o=null==this?void 0:this.options)?void 0:o.lang)||ft.lang,u=(e.toString().split(".")[1]||"").split("e")[0].length,d=t,h={};n??(n=c.decimalPoint),r??(r=c.thousandsSep),-1===t?t=Math.min(u,20):ye(t)?t&&s<0&&((a=t+s)>=0?(l=+l.toExponential(a).split("e")[0],t=a):(l=Math.floor(l),e=t<20?+(l*Math.pow(10,s)).toFixed(t):0,s=0)):t=2,s&&(t??(t=2),e=l),ye(t)&&t>=0&&(h.minimumFractionDigits=t,h.maximumFractionDigits=t),""===r&&(h.useGrouping=!1);let p=r||n,f=p?"en":(null==this?void 0:this.locale)||c.locale||gt,m=JSON.stringify(h)+f;return i=(vt[m]??(vt[m]=new Intl.NumberFormat(f,h))).format(e),p&&(i=i.replace(/([,\.])/g,"_$1").replace(/_\,/g,r??",").replace("_.",n??".")),(t||0!=+i)&&(!(s<0)||d)||(i="0"),s&&0!=+i&&(i+="e"+(s<0?"":"+")+s),i}let wt={dateFormat:function(e,t,n){return mt.dateFormat(e,t,n)},format:bt,helpers:yt,numberFormat:xt};(m=S||(S={})).rendererTypes={},m.getRendererType=function(e=h){return m.rendererTypes[e]||m.rendererTypes[h]},m.registerRendererType=function(e,t,n){m.rendererTypes[e]=t,(!h||n)&&(h=e,H.Renderer=t)};let Ct=S;(E||(E={})).distribute=function e(t,n,r){let o,i,a,l=t,s=l.reducedLen||n,c=(e,t)=>e.target-t.target,u=[],d=t.length,h=[],p=u.push,f=!0,m=0;for(o=d;o--;)m+=t[o].size;if(m>s){if(Re(t,(e,t)=>(t.rank||0)-(e.rank||0)),t[0].rank===t[t.length-1].rank){let e=[[0,d-1]];for(;e.length&&m>s;){let n=e.shift();if(!n)break;i=t[o=Math.floor((n[0]+n[1])/2)],Me(h,o)&&(m-=i.size),n[0]<o&&e.push([n[0],o-1]),o<n[1]&&e.push([o+1,n[1]])}}else for(o=d-1;m>s&&o>=0;)i=t[o],Me(h,o)&&(m-=i.size),o--;h.sort((e,t)=>t-e).forEach(e=>p.apply(u,t.splice(e,1)))}for(Re(t,c),t=t.map(e=>({size:e.size,targets:[e.target],align:Te(e.align,.5)}));f;){for(o=t.length;o--;)i=t[o],a=(Math.min.apply(0,i.targets)+Math.max.apply(0,i.targets))/2,i.pos=X(a-i.size*i.align,0,n-i.size);for(o=t.length,f=!1;o--;)o>0&&t[o-1].pos+t[o-1].size>t[o].pos&&(t[o-1].size+=t[o].size,t[o-1].targets=t[o-1].targets.concat(t[o].targets),t[o-1].align=.5,t[o-1].pos+t[o-1].size>n&&(t[o-1].pos=n-t[o-1].size),t.splice(o,1),f=!0)}return p.apply(l,u),o=0,t.some(t=>{let i=0;return(t.targets||[]).some(()=>(l[o].pos=t.pos+i,void 0!==r&&Math.abs(l[o].pos-l[o].target)>r?(l.slice(0,o+1).forEach(e=>delete e.pos),l.reducedLen=(l.reducedLen||n)-.1*n,l.reducedLen>.1*n&&e(l,n,r),!0):(i+=l[o].size,o++,!1)))}),Re(l,c),l};let kt=E,{animate:St,animObject:Et,stop:$t}=lt,{deg2rad:Tt,doc:Pt,svg:Mt,SVG_NS:Ot,win:Nt,isFirefox:At}=H;class It{_defaultGetter(e){let t=Te(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^-?[\d\.]+$/.test(t)&&(t=parseFloat(t)),t}_defaultSetter(e,t,n){n.setAttribute(t,e)}add(e){let t,n=this.renderer,r=this.element;return e&&(this.parentGroup=e),void 0!==this.textStr&&"text"===this.element.nodeName&&n.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(t=this.zIndexSetter()),t||(e?e.element:n.box).appendChild(r),this.onAdd&&this.onAdd(),this}addClass(e,t){let n=t?"":this.attr("class")||"";return(e=(e||"").split(/ /g).reduce(function(e,t){return-1===n.indexOf(t)&&e.push(t),e},n?[n]:[]).join(" "))!==n&&this.attr("class",e),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(e,t,n,r=!0){let o=this.renderer,i=o.alignedObjects,a=!!e;e?(this.alignOptions=e,this.alignByTranslate=t,this.alignTo=n):(e=this.alignOptions||{},t=this.alignByTranslate,n=this.alignTo);let l=!n||ve(n)?n||"renderer":void 0;l&&(a&&Me(i,this),n=void 0);let s=Te(n,o[l],o),c=(s.x||0)+(e.x||0)+((s.width||0)-(e.width||0))*se(e.align),u=(s.y||0)+(e.y||0)+((s.height||0)-(e.height||0))*se(e.verticalAlign),d={};return e.align&&(d["text-align"]=e.align),d[t?"translateX":"x"]=Math.round(c),d[t?"translateY":"y"]=Math.round(u),r&&(this[this.placed?"animate":"attr"](d),this.placed=!0),this.alignAttr=d,this}alignSetter(e){let t={left:"start",center:"middle",right:"end"};t[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",t[e]))}animate(e,t,n){let r=Et(Te(t,this.renderer.globalAnimation,!0)),o=r.defer;return Pt.hidden&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),Le(()=>{this.element&&St(this,e,r)},o)):(this.attr(e,void 0,n||r.complete),Se(e,function(e,t){r.step&&r.step.call(this,e,{prop:t,pos:1,elem:this})},this)),this}applyTextOutline(e){let t=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));let n=e.indexOf(" "),r=e.substring(n+1),o=e.substring(0,n);if(o&&"none"!==o&&H.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(e,t,n){return 2*Number(t)+n}),this.removeTextOutline();let e=Pt.createElementNS(Ot,"tspan");G(e,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":o,"stroke-linejoin":"round"});let n=t.querySelector("textPath")||t;[].forEach.call(n.childNodes,t=>{let n=t.cloneNode(!0);n.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(e=>n.removeAttribute(e)),e.appendChild(n)});let i=0;[].forEach.call(n.querySelectorAll("text tspan"),e=>{i+=Number(e.getAttribute("dy"))});let a=Pt.createElementNS(Ot,"tspan");a.textContent="",G(a,{x:Number(t.getAttribute("x")),dy:-i}),e.appendChild(a),n.insertBefore(e,n.firstChild)}}attr(e,t,n,r){let o,i,a,{element:l}=this,s=It.symbolCustomAttribs,c=this;return"string"==typeof e&&void 0!==t&&(o=e,(e={})[o]=t),"string"==typeof e?c=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(Se(e,function(t,n){a=!1,r||$t(this,n),this.symbolName&&-1!==s.indexOf(n)&&(i||(this.symbolAttr(e),i=!0),a=!0),this.rotation&&("x"===n||"y"===n)&&(this.doTransform=!0),a||(this[n+"Setter"]||this._defaultSetter).call(this,t,n,l)},this),this.afterSetters()),n&&n.call(this),c}clip(e){if(e&&!e.clipPath){let t=He()+"-",n=this.renderer.createElement("clipPath").attr({id:t}).add(this.renderer.defs);ie(e,{clipPath:n,id:t,count:0}),e.add(n)}return this.attr("clip-path",e?`url(${this.renderer.url}#${e.id})`:"none")}crisp(e,t){t=Math.round(t||e.strokeWidth||0);let n=e.x||this.x||0,r=e.y||this.y||0,o=(e.width||this.width||0)+n,i=(e.height||this.height||0)+r,a=Q(n,t),l=Q(r,t);return ie(e,{x:a,y:l,width:Q(o,t)-a,height:Q(i,t)-l}),ee(e.strokeWidth)&&(e.strokeWidth=t),e}complexColor(e,t,n){let r,o,i,a,l,s,c,u,d,h,p,f=this.renderer,m=[];le(this.renderer,"complexColor",{args:arguments},function(){if(e.radialGradient?o="radialGradient":e.linearGradient&&(o="linearGradient"),o){if(i=e[o],l=f.gradients,s=e.stops,d=n.radialReference,be(i)&&(e[o]=i={x1:i[0],y1:i[1],x2:i[2],y2:i[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&d&&!ee(i.gradientUnits)&&(a=i,i=Ce(i,f.getRadialAttr(d,a),{gradientUnits:"userSpaceOnUse"})),Se(i,function(e,t){"id"!==t&&m.push(t,e)}),Se(s,function(e){m.push(e)}),l[m=m.join(",")])h=l[m].attr("id");else{i.id=h=He();let e=l[m]=f.createElement(o).attr(i).add(f.defs);e.radAttr=a,e.stops=[],s.forEach(function(t){0===t[1].indexOf("rgba")?(c=(r=tt.parse(t[1])).get("rgb"),u=r.get("a")):(c=t[1],u=1);let n=f.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":u}).add(e);e.stops.push(n)})}p="url("+f.url+"#"+h+")",n.setAttribute(t,p),n.gradient=m,e.toString=function(){return p}}})}css(e){let t,n=this.styles,r={},o=this.element,i=!n;if(n&&Se(e,function(e,t){n&&n[t]!==e&&(r[t]=e,i=!0)}),i){n&&(e=ie(n,r)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===o.nodeName.toLowerCase()&&e.width&&(t=this.textWidth=Pe(e.width)),ie(this.styles,e),t&&!Mt&&this.renderer.forExport&&delete e.width;let i=At&&e.fontSize||null;i&&(ye(i)||/^\d+$/.test(i))&&(e.fontSize+="px");let a=Ce(e);o.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(e=>a&&delete a[e]),a.color&&(a.fill=a.color,delete a.color)),J(o,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}dashstyleSetter(e){let t,n=this["stroke-width"];if("inherit"===n&&(n=1),e){let r=(e=e.toLowerCase()).replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=r.length;t--;)r[t]=""+Pe(r[t])*Te(n,NaN);e=r.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}destroy(){let e,t=this,{element:n={},renderer:r,stops:o}=t,i=n.ownerSVGElement,a="SPAN"===n.nodeName&&t.parentGroup||void 0;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,$t(t),t.clipPath&&i){let e=t.clipPath;[].forEach.call(i.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(e.element.id)>-1&&t.removeAttribute("clip-path")}),t.clipPath=e.destroy()}if(o){for(let e of o)e.destroy();o.length=0}for(t.safeRemoveChild(n);(null==a?void 0:a.div)&&0===a.div.childNodes.length;)e=a.parentGroup,t.safeRemoveChild(a.div),delete a.div,a=e;t.alignOptions&&oe(r.alignedObjects,t),Se(t,(e,n)=>{var r,o,i;((null==(r=t[n])?void 0:r.parentGroup)===t||-1!==["connector","foreignObject"].indexOf(n))&&(null==(i=null==(o=t[n])?void 0:o.destroy)||i.call(o)),delete t[n]})}dSetter(e,t,n){be(e)&&("string"==typeof e[0]&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce((e,t,n)=>(null==t?void 0:t.join)?(n?e+" ":"")+t.join(" "):(t||"").toString(),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)}fillSetter(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.complexColor(e,t,n)}hrefSetter(e,t,n){n.setAttributeNS("http://www.w3.org/1999/xlink",t,e)}getBBox(e,t){let n,r,o,{element:i,renderer:a,styles:l,textStr:s}=this,{cache:c,cacheKeys:u}=a,d=i.namespaceURI===this.SVG_NS,h=Te(t,this.rotation,0),p=a.styledMode?i&&It.prototype.getStyle.call(i,"font-size"):l.fontSize,f=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,l.fontWeight,l.lineClamp,l.textOverflow,p,h]);if(f&&!e&&(n=c[f]),!n||n.polygon){if(d||a.forExport){try{o=this.fakeTS&&function(e){let t=i.querySelector(".highcharts-text-outline");t&&J(t,{display:e})},xe(o)&&o("none"),n=i.getBBox?ie({},i.getBBox()):{width:i.offsetWidth,height:i.offsetHeight,x:0,y:0},xe(o)&&o("")}catch{}(!n||n.width<0)&&(n={x:0,y:0,width:0,height:0})}else n=this.htmlGetBBox();r=n.height,d&&(n.height=r={"11px,17":14,"13px,20":16}[`${p||""},${Math.round(r)}`]||r),h&&(n=this.getRotatedBox(n,h));let e={bBox:n};le(this,"afterGetBBox",e),n=e.bBox}if(f&&(""===s||n.height>0)){for(;u.length>250;)delete c[u.shift()];c[f]||u.push(f),c[f]=n}return n}getBBoxCacheKey(e){if(ee(this.textStr)){let t=""+this.textStr;return-1===t.indexOf("<")&&(t=t.replace(/\d/g,"0")),[t,...e].join(",")}}getRotatedBox(e,t){let{x:n,y:r,width:o,height:i}=e,{alignValue:a,translateY:l,rotationOriginX:s=0,rotationOriginY:c=0}=this,u=se(a),d=Number(this.element.getAttribute("y")||0)-(l?0:r),h=t*Tt,p=(t-90)*Tt,f=Math.cos(h),m=Math.sin(h),g=o*f,y=o*m,v=Math.cos(p),b=Math.sin(p),[[x,w],[C,k]]=[s,c].map(e=>[e-e*f,e*m]),S=n+u*(o-g)+x+k+d*v,E=S+g,$=E-i*v,T=$-g,P=r+d-u*y-w+C+d*b,M=P+y,O=M-i*b,N=O-y,A=Math.min(S,E,$,T),I=Math.min(P,M,O,N);return{x:A,y:I,width:Math.max(S,E,$,T)-A,height:Math.max(P,M,O,N)-I,polygon:[[S,P],[E,M],[$,O],[T,N]]}}getStyle(e){return Nt.getComputedStyle(this.element||this,"").getPropertyValue(e)}hasClass(e){return-1!==(""+this.attr("class")).split(" ").indexOf(e)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(e,t){this.onEvents={},this.opacity=1,this.SVG_NS=Ot,this.element="span"===t||"body"===t?Z(t):Pt.createElementNS(this.SVG_NS,t),this.renderer=e,this.styles={},le(this,"afterInit")}on(e,t){let{onEvents:n}=this;return n[e]&&n[e](),n[e]=V(this.element,e,t),this}opacitySetter(e,t,n){let r=Number(Number(e).toFixed(3));this.opacity=r,n.setAttribute(t,r)}reAlign(){var e;(null==(e=this.alignOptions)?void 0:e.width)&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(e){return this.attr("class",(""+this.attr("class")).replace(ve(e)?RegExp(`(^| )${e}( |$)`):e," ").replace(/ +/g," ").trim())}removeTextOutline(){let e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}safeRemoveChild(e){let t=e.parentNode;t&&t.removeChild(e)}setRadialReference(e){let t=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=e,(null==t?void 0:t.radAttr)&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this}shadow(e){var t;let{renderer:n}=this,r=Ce(90===(null==(t=this.parentGroup)?void 0:t.rotation)?{offsetX:-1,offsetY:-1}:{},we(e)?e:{}),o=n.shadowDefinition(r);return this.attr({filter:e?`url(${n.url}#${o})`:"none"})}show(e=!0){return this.attr({visibility:e?"inherit":"visible"})}"stroke-widthSetter"(e,t,n){this[t]=e,n.setAttribute(t,e)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let e,t=this.getStyle("stroke-width"),n=0;return/px$/.test(t)?n=Pe(t):""!==t&&(G(e=Pt.createElementNS(Ot,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(e),n=e.getBBox().width,e.parentNode.removeChild(e)),n}symbolAttr(e){let t=this;It.symbolCustomAttribs.forEach(function(n){t[n]=Te(e[n],t[n])}),t.attr({d:t.renderer.symbols[t.symbolName](t.x,t.y,t.width,t.height,t)})}textSetter(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(e){let t=this.element,n=t.getElementsByTagName("title")[0]||Pt.createElementNS(this.SVG_NS,"title");t.insertBefore?t.insertBefore(n,t.firstChild):t.appendChild(n),n.textContent=Ne(Te(e,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let e=this.element;return e.parentNode.appendChild(e),this}translate(e,t){return this.attr({translateX:e,translateY:t})}updateTransform(e="transform"){let{element:t,foreignObject:n,matrix:r,padding:o,rotation:i=0,rotationOriginX:a,rotationOriginY:l,scaleX:s,scaleY:c,text:u,translateX:d=0,translateY:h=0}=this,p=[`translate(${d},${h})`];ee(r)&&p.push("matrix("+r.join(",")+")"),i&&(p.push("rotate("+i+" "+(a??t.getAttribute("x")??this.x??0)+" "+(l??t.getAttribute("y")??this.y??0)+")"),"SPAN"!==(null==u?void 0:u.element.tagName)||(null==u?void 0:u.foreignObject)||u.attr({rotation:i,rotationOriginX:(a||0)-o,rotationOriginY:(l||0)-o})),(ee(s)||ee(c))&&p.push(`scale(${s??1} ${c??1})`),p.length&&!(u||this).textPath&&((null==n?void 0:n.element)||t).setAttribute(e,p.join(" "))}visibilitySetter(e,t,n){"inherit"===e?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e}xGetter(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}zIndexSetter(e,t){let n,r,o,i,a,l=this.renderer,s=this.parentGroup,c=(s||l).element||l.box,u=this.element,d=c===l.box,h=!1,p=this.added;if(ee(e)?(u.setAttribute("data-z-index",e),e*=1,this[t]===e&&(p=!1)):ee(this[t])&&u.removeAttribute("data-z-index"),this[t]=e,p){for((e=this.zIndex)&&s&&(s.handleZ=!0),a=(n=c.childNodes).length-1;a>=0&&!h;a--)i=!ee(o=(r=n[a]).getAttribute("data-z-index")),r!==u&&(e<0&&i&&!d&&!a?(c.insertBefore(u,n[a]),h=!0):(Pe(o)<=e||i&&(!ee(e)||e>=0))&&(c.insertBefore(u,n[a+1]),h=!0));h||(c.insertBefore(u,n[3*!!d]),h=!0)}return h}}It.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],It.prototype.strokeSetter=It.prototype.fillSetter,It.prototype.yGetter=It.prototype.xGetter,It.prototype.matrixSetter=It.prototype.rotationOriginXSetter=It.prototype.rotationOriginYSetter=It.prototype.rotationSetter=It.prototype.scaleXSetter=It.prototype.scaleYSetter=It.prototype.translateXSetter=It.prototype.translateYSetter=It.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0};let Rt=It;class Lt extends Rt{constructor(e,t,n,r,o,i,a,l,s,c){let u;super(e,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=t,this.x=n,this.y=r,this.anchorX=i,this.anchorY=a,this.baseline=s,this.className=c,this.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&this.addClass("highcharts-"+c),this.text=e.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof o&&((u=/^url\((.*?)\)$/.test(o))||this.renderer.symbols[o])&&(this.symbolKey=o),this.bBox=Lt.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=e.styledMode||u,this.deferredAttr={},this.alignFactor=0}alignSetter(e){let t=se(e);this.textAlign=e,t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&ye(this.xSetting)&&this.attr({x:this.xSetting}),this.updateTextPadding())}anchorXSetter(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)}boxAttr(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t}css(e){if(e){let t={};e=Ce(e),Lt.textProps.forEach(n=>{void 0!==e[n]&&(t[n]=e[n],delete e[n])}),this.text.css(t),"fontSize"in t||"fontWeight"in t||"width"in t?this.updateTextPadding():"textOverflow"in t&&this.updateBoxSize()}return Rt.prototype.css.call(this,e)}destroy(){Ae(this.element,"mouseenter"),Ae(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Rt.prototype.destroy.call(this)}fillSetter(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)}getBBox(e,t){(this.textStr&&0===this.bBox.width&&0===this.bBox.height||this.rotation)&&this.updateBoxSize();let{padding:n,height:r=0,translateX:o=0,translateY:i=0,width:a=0}=this,l=Te(this.paddingLeft,n),s=t??(this.rotation||0),c={width:a,height:r,x:o+this.bBox.x-l,y:i+this.bBox.y-n+this.baselineOffset};return s&&(c=this.getRotatedBox(c,s)),c}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(e){this.heightSetting=e,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Te(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&ee(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(e,t){ye(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0}rSetter(e,t){this.boxAttr(t,e)}strokeSetter(e,t){this.stroke=e,this.boxAttr(t,e)}"stroke-widthSetter"(e,t){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(t,e)}"text-alignSetter"(e){this.textAlign=this["text-align"]=e,this.updateTextPadding()}textSetter(e){void 0!==e&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let e,t=this.text,n={},r=this.padding,o=this.bBox=ye(this.widthSetting)&&ye(this.heightSetting)&&!this.textAlign||!ee(t.textStr)?Lt.emptyBBox:t.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*r;let i=this.renderer.fontMetrics(t);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||i).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-i.h)/2),this.needsBox&&!t.textPath){if(!this.box){let e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();e.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)}n.x=e=this.getCrispAdjust(),n.y=(this.baseline?-this.baselineOffset:0)+e,n.width=Math.round(this.width),n.height=Math.round(this.height),this.box.attr(ie(n,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let e=this.text,t=e.styles.textAlign||this.textAlign;if(!e.textPath){this.updateBoxSize();let n=this.baseline?0:this.baselineOffset,r=(this.paddingLeft??this.padding)+se(t)*(this.widthSetting??this.bBox.width);(r!==e.x||n!==e.y)&&(e.attr({align:t,x:r}),void 0!==n&&e.attr("y",n)),e.x=r,e.y=n}}widthSetter(e){this.widthSetting=ye(e)?e:void 0,this.doUpdate=!0}getPaddedWidth(){let e=this.padding,t=Te(this.paddingLeft,e),n=Te(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+t+n}xSetter(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}ySetter(e){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}}function Bt(e,t,n,r,o){let i=[];if(o){let a=o.start||0,l=o.end||0,s=Te(o.r,n),c=Te(o.r,r||n),u=1e-4>Math.abs(l-a-2*Math.PI);u&&(a=Math.PI/2,l=2.5*Math.PI-1e-4);let d=o.innerR,h=Te(o.open,u),p=u?0:Math.cos(a),f=u?1:Math.sin(a),m=u?0:Math.cos(l),g=u?1:Math.sin(l),y=Te(o.longArc,l-a-Math.PI<1e-4?0:1),v=["A",s,c,0,y,Te(o.clockwise,1),e+(u?.001:s*m),t+c*g];v.params={start:a,end:l,cx:e,cy:t},i.push(["M",e+s*p,t+c*f],v),ee(d)&&((v=["A",d,d,0,y,ee(o.clockwise)?1-o.clockwise:0,e+(u?-.001:d*p),t+d*f]).params={start:l,end:a,cx:e,cy:t},i.push(h?["M",e+d*m,t+d*g]:["L",e+d*m,t+d*g],v)),h||i.push(["Z"])}return i}function zt(e,t,n,r,o){return(null==o?void 0:o.r)?Dt(e,t,n,r,o):[["M",e,t],["L",e+n,t],["L",e+n,t+r],["L",e,t+r],["Z"]]}function Dt(e,t,n,r,o){let i=(null==o?void 0:o.r)||0;return[["M",e+i,t],["L",e+n-i,t],["A",i,i,0,0,1,e+n,t+i],["L",e+n,t+r-i],["A",i,i,0,0,1,e+n-i,t+r],["L",e+i,t+r],["A",i,i,0,0,1,e,t+r-i],["L",e,t+i],["A",i,i,0,0,1,e+i,t],["Z"]]}Lt.emptyBBox={width:0,height:0,x:0,y:0},Lt.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let jt={arc:Bt,callout:function(e,t,n,r,o){let i=Math.min((null==o?void 0:o.r)||0,n,r),a=i+6,l=null==o?void 0:o.anchorX,s=(null==o?void 0:o.anchorY)||0,c=Dt(e,t,n,r,{r:i});if(!ye(l)||l<n&&l>0&&s<r&&s>0)return c;if(e+l>n-a)if(s>t+a&&s<t+r-a)c.splice(3,1,["L",e+n,s-6],["L",e+n+6,s],["L",e+n,s+6],["L",e+n,t+r-i]);else if(l<n){let o=s<t+a,u=o?t:t+r;c.splice(o?2:5,0,["L",l,s],["L",e+n-i,u])}else c.splice(3,1,["L",e+n,r/2],["L",l,s],["L",e+n,r/2],["L",e+n,t+r-i]);else if(e+l<a)if(s>t+a&&s<t+r-a)c.splice(7,1,["L",e,s+6],["L",e-6,s],["L",e,s-6],["L",e,t+i]);else if(l>0){let n=s<t+a,o=n?t:t+r;c.splice(n?1:6,0,["L",l,s],["L",e+i,o])}else c.splice(7,1,["L",e,r/2],["L",l,s],["L",e,r/2],["L",e,t+i]);else s>r&&l<n-a?c.splice(5,1,["L",l+6,t+r],["L",l,t+r+6],["L",l-6,t+r],["L",e+i,t+r]):s<0&&l>a&&c.splice(1,1,["L",l-6,t],["L",l,t-6],["L",l+6,t],["L",n-i,t]);return c},circle:function(e,t,n,r){return Bt(e+n/2,t+r/2,n/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r/2],["L",e+n/2,t+r],["L",e,t+r/2],["Z"]]},rect:zt,roundedRect:Dt,square:zt,triangle:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r],["L",e,t+r],["Z"]]},"triangle-down":function(e,t,n,r){return[["M",e,t],["L",e+n,t],["L",e+n/2,t+r],["Z"]]}},{doc:_t,SVG_NS:Ft,win:Ht}=H,Wt=(e,t)=>e.substring(0,t)+"…",Kt=class{constructor(e){const t=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=null==t?void 0:t.lineHeight,this.textOutline=null==t?void 0:t.textOutline,this.ellipsis="ellipsis"===(null==t?void 0:t.textOverflow),this.lineClamp=null==t?void 0:t.lineClamp,this.noWrap="nowrap"===(null==t?void 0:t.whiteSpace)}buildSVG(){let e=this.svgElement,t=e.element,n=e.renderer,r=Te(e.textStr,"").toString(),o=-1!==r.indexOf("<"),i=t.childNodes,a=!e.added&&n.box,l=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e.getStyle("font-size"),e.styles.lineClamp,this.width].join(",");if(l!==e.textCache){e.textCache=l,delete e.actualWidth;for(let e=i.length;e--;)t.removeChild(i[e]);if(o||this.ellipsis||this.width||e.textPath||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))){if(""!==r){a&&a.appendChild(t);let n=new pt(r);this.modifyTree(n.nodes),n.addToDOM(t),this.modifyDOM(),this.ellipsis&&-1!==(t.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),a&&a.removeChild(t)}}else t.appendChild(_t.createTextNode(this.unescapeEntities(r)));ve(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}modifyDOM(){let e,t=this.svgElement,n=G(t.element,"x");for(t.firstLineMetrics=void 0;(e=t.element.firstChild)&&/^[\s\u200B]*$/.test(e.textContent||" ");)t.element.removeChild(e);[].forEach.call(t.element.querySelectorAll("tspan.highcharts-br"),(e,r)=>{e.nextSibling&&e.previousSibling&&(0===r&&1===e.previousSibling.nodeType&&(t.firstLineMetrics=t.renderer.fontMetrics(e.previousSibling)),G(e,{dy:this.getLineHeight(e.nextSibling),x:n}))});let r=this.width||0;if(!r)return;let o=(e,o)=>{var i;let a=e.textContent||"",l=a.replace(/([^\^])-/g,"$1- ").split(" "),s=!this.noWrap&&(l.length>1||t.element.childNodes.length>1),c=this.getLineHeight(o),u=Math.max(0,r-.8*c),d=0,h=t.actualWidth;if(s){let a=[],s=[];for(;o.firstChild&&o.firstChild!==e;)s.push(o.firstChild),o.removeChild(o.firstChild);for(;l.length;)if(l.length&&!this.noWrap&&d>0&&(a.push(e.textContent||""),e.textContent=l.join(" ").replace(/- /g,"-")),this.truncate(e,void 0,l,0===d&&h||0,r,u,(e,t)=>l.slice(0,t).join(" ").replace(/- /g,"-")),h=t.actualWidth,d++,this.lineClamp&&d>=this.lineClamp){l.length&&(this.truncate(e,e.textContent||"",void 0,0,r,u,Wt),e.textContent=(null==(i=e.textContent)?void 0:i.replace("…",""))+"…");break}s.forEach(t=>{o.insertBefore(t,e)}),a.forEach(t=>{o.insertBefore(_t.createTextNode(t),e);let r=_t.createElementNS(Ft,"tspan");r.textContent="",G(r,{dy:c,x:n}),o.insertBefore(r,e)})}else this.ellipsis&&a&&this.truncate(e,a,void 0,0,r,u,Wt)},i=e=>{[].slice.call(e.childNodes).forEach(n=>{n.nodeType===Ht.Node.TEXT_NODE?o(n,e):(-1!==n.className.baseVal.indexOf("highcharts-br")&&(t.actualWidth=0),i(n))})};i(t.element)}getLineHeight(e){let t=e.nodeType===Ht.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(e){let t=(n,r)=>{let{attributes:o={},children:i,style:a={},tagName:l}=n,s=this.renderer.styledMode;if("b"===l||"strong"===l?s?o.class="highcharts-strong":a.fontWeight="bold":("i"===l||"em"===l)&&(s?o.class="highcharts-emphasized":a.fontStyle="italic"),(null==a?void 0:a.color)&&(a.fill=a.color),"br"===l){o.class="highcharts-br",n.textContent="";let t=e[r+1];(null==t?void 0:t.textContent)&&(t.textContent=t.textContent.replace(/^ +/gm,""))}else"a"===l&&i&&i.some(e=>"#text"===e.tagName)&&(n.children=[{children:i,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(n.tagName="tspan"),ie(n,{attributes:o,style:a}),i&&i.filter(e=>"#text"!==e.tagName).forEach(t)};e.forEach(t),le(this.svgElement,"afterModifyTree",{nodes:e})}truncate(e,t,n,r,o,i,a){let l,s,c=this.svgElement,{rotation:u}=c,d=[],h=n&&!r?1:0,p=(t||n||"").length,f=p;n||(o=i);let m=function(t,o){let i=o||t,a=e.parentNode;if(a&&void 0===d[i]&&a.getSubStringLength)try{d[i]=r+a.getSubStringLength(0,n?i+1:i)}catch{}return d[i]};if(c.rotation=0,r+(s=m(e.textContent.length))>o){for(;h<=p;)f=Math.ceil((h+p)/2),n&&(l=a(n,f)),s=m(f,l&&l.length-1),h===p?h=p+1:s>o?p=f-1:h=f;0===p?e.textContent="":t&&p===t.length-1||(e.textContent=l||a(t||n,f)),this.ellipsis&&s>o&&this.truncate(e,e.textContent||"",void 0,0,o,i,Wt)}n&&n.splice(0,f),c.actualWidth=s,c.rotation=u}unescapeEntities(e,t){return Se(this.renderer.escapes,function(n,r){t&&-1!==t.indexOf(n)||(e=e.toString().replace(RegExp(n,"g"),r))}),e}},{defaultOptions:Vt}=Ze,{charts:Ut,deg2rad:qt,doc:Gt,isFirefox:Xt,isMS:Yt,isWebKit:Zt,noop:Qt,SVG_NS:Jt,symbolSizes:en,win:tn}=H;class nn{constructor(e,t,n,r,o,i,a){let l,s;this.x=0,this.y=0;const c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),u=c.element;a||c.css(this.getStyle(r||{})),e.appendChild(u),G(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&G(u,"xmlns",this.SVG_NS),this.box=u,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Gt.createTextNode("Created with Highcharts 12.6.0")),this.defs=this.createElement("defs").add(),this.allowHTML=i,this.forExport=o,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.asyncCounter=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(t,n,!1),Xt&&e.getBoundingClientRect&&((l=function(){J(e,{left:0,top:0}),s=e.getBoundingClientRect(),J(e,{left:Math.ceil(s.left)-s.left+"px",top:Math.ceil(s.top)-s.top+"px"})})(),this.unSubPixelFix=V(tn,"resize",l))}definition(e){return new pt([e]).addToDOM(this.defs.element)}getReferenceURL(){if((Xt||Zt)&&Gt.getElementsByTagName("base").length){if(!ee(c)){let e=He(),t=new pt([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${e})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(Gt.body);J(t,{position:"fixed",top:0,left:0,zIndex:9e5});let n=Gt.elementFromPoint(6,6);c="hitme"===(null==n?void 0:n.id),Gt.body.removeChild(t)}if(c)return Ne(tn.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(e){return this.style=ie({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},e),this.style}setStyle(e){this.boxWrapper.css(this.getStyle(e))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),te(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(e){return new this.Element(this,e)}getRadialAttr(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}}shadowDefinition(e){let t=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(e).map(t=>`${t}-${e[t]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),n=Ce({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector(`#${t}`)||this.definition({tagName:"filter",attributes:{id:t,filterUnits:n.filterUnits},children:this.getShadowFilterContent(n)}),t}getShadowFilterContent(e){return[{tagName:"feDropShadow",attributes:{dx:e.offsetX,dy:e.offsetY,"flood-color":e.color,"flood-opacity":Math.min(5*e.opacity,1),stdDeviation:e.width/2}}]}buildText(e){new Kt(e).buildSVG()}getContrast(e){if("transparent"===e)return"#000000";let t=tt.parse(e).rgba,n=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(ye(t[0])||!tt.useColorMix){let e=t.map(e=>{let t=e/255;return t<=.04?t/12.92:Math.pow((t+.055)/1.055,2.4)}),n=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(n+.05)>(n+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+e+" srgb"+n+n+n+")"}button(e,t,n,r,o={},i,a,l,s,c){let u=this.label(e,t,n,s,void 0,void 0,c,void 0,"button"),d=this.styledMode,h=arguments,p=0;o=Ce(Vt.global.buttonTheme,o),d&&(delete o.fill,delete o.stroke,delete o["stroke-width"]);let f=o.states||{},m=o.style||{};delete o.states,delete o.style;let g=[pt.filterUserAttributes(o)],y=[m];return d||["hover","select","disabled"].forEach((e,t)=>{g.push(Ce(g[0],pt.filterUserAttributes(h[t+5]||f[e]||{}))),y.push(g[t+1].style),delete g[t+1].style}),V(u.element,Yt?"mouseover":"mouseenter",function(){3!==p&&u.setState(1)}),V(u.element,Yt?"mouseout":"mouseleave",function(){3!==p&&u.setState(p)}),u.setState=(e=0)=>{if(1!==e&&(u.state=p=e),u.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e]),!d){u.attr(g[e]);let t=y[e];we(t)&&u.css(t)}},u.attr(g[0]),!d&&(u.css(ie({cursor:"default"},m)),c&&u.text.css({pointerEvents:"none"})),u.on("touchstart",e=>e.stopPropagation()).on("click",function(e){3!==p&&(null==r||r.call(u,e))})}crispLine(e,t){let[n,r]=e;return ee(n[1])&&n[1]===r[1]&&(n[1]=r[1]=Q(n[1],t)),ee(n[2])&&n[2]===r[2]&&(n[2]=r[2]=Q(n[2],t)),e}path(e){let t=this.styledMode?{}:{fill:"none"};return be(e)?t.d=e:we(e)&&ie(t,e),this.createElement("path").attr(t)}circle(e,t,n){let r=we(e)?e:void 0===e?{}:{x:e,y:t,r:n},o=this.createElement("circle");return o.xSetter=o.ySetter=function(e,t,n){n.setAttribute("c"+t,e)},o.attr(r)}arc(e,t,n,r,o,i){let a;we(e)?(t=(a=e).y,n=a.r,r=a.innerR,o=a.start,i=a.end,e=a.x):a={innerR:r,start:o,end:i};let l=this.symbol("arc",e,t,n,n,a);return l.r=n,l}rect(e,t,n,r,o,i){let a=we(e)?e:void 0===e?{}:{x:e,y:t,r:o,width:Math.max(n||0,0),height:Math.max(r||0,0)},l=this.createElement("rect");return this.styledMode||(void 0!==i&&(a["stroke-width"]=i,ie(a,l.crisp(a))),a.fill="none"),l.rSetter=function(e,t,n){l.r=e,G(n,{rx:e,ry:e})},l.rGetter=function(){return l.r||0},l.attr(a)}roundedRect(e){return this.symbol("roundedRect").attr(e)}setSize(e,t,n){this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:Te(n,!0)?void 0:0}),this.alignElements()}g(e){let t=this.createElement("g");return e?t.attr({class:"highcharts-"+e}):t}image(e,t,n,r,o,i){let a={preserveAspectRatio:"none"};ye(t)&&(a.x=t),ye(n)&&(a.y=n),ye(r)&&(a.width=r),ye(o)&&(a.height=o);let l=this.createElement("image").attr(a),s=function(t){l.attr({href:e}),i.call(l,t)};if(i){l.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let t=new tn.Image;V(t,"load",s),t.src=e,t.complete&&s({})}else l.attr({href:e});return l}symbol(e,t,n,r,o,i){var a,l;let s,c,u,d,h=this,p=/^url\((.*?)\)$/,f=p.test(e),m=!f&&(this.symbols[e]?e:"circle"),g=m&&this.symbols[m];if(g)"number"==typeof t&&(c=g.call(this.symbols,t||0,n||0,r||0,o||0,i)),s=this.path(c),h.styledMode||s.attr("fill","none"),ie(s,{symbolName:m||void 0,x:t,y:n,width:r,height:o}),i&&ie(s,i);else if(f){u=e.match(p)[1];let r=s=this.image(u);r.imgwidth=Te(null==i?void 0:i.width,null==(a=en[u])?void 0:a.width),r.imgheight=Te(null==i?void 0:i.height,null==(l=en[u])?void 0:l.height),d=e=>e.attr({width:e.width,height:e.height}),["width","height"].forEach(e=>{r[`${e}Setter`]=function(e,t){this[t]=e;let{alignByTranslate:n,element:r,width:o,height:a,imgwidth:l,imgheight:s}=this,c="width"===t?l:s,u=1;i&&"within"===i.backgroundSize&&o&&a&&l&&s?(u=Math.min(o/l,a/s),G(r,{width:Math.round(l*u),height:Math.round(s*u)})):r&&c&&r.setAttribute(t,c),!n&&l&&s&&this.translate(((o||0)-l*u)/2,((a||0)-s*u)/2)}}),ee(t)&&r.attr({x:t,y:n}),r.isImg=!0,ee(r.imgwidth)&&ee(r.imgheight)?d(r):(r.attr({width:0,height:0}),Z("img",{onload:function(){let e=Ut[h.chartIndex];0===this.width&&(J(this,{position:"absolute",top:"-999em"}),Gt.body.appendChild(this)),en[u]={width:this.width,height:this.height},r.imgwidth=this.width,r.imgheight=this.height,r.element&&d(r),this.parentNode&&this.parentNode.removeChild(this),h.asyncCounter--,h.asyncCounter||!e||e.hasLoaded||e.onload()},src:u}),this.asyncCounter++)}return s}clipRect(e,t,n,r){return this.rect(e,t,n,r,0)}text(e,t,n,r){let o={};if(r&&(this.allowHTML||!this.forExport))return this.html(e,t,n);o.x=Math.round(t||0),n&&(o.y=Math.round(n)),ee(e)&&(o.text=e);let i=this.createElement("text").attr(o);return r&&(!this.forExport||this.allowHTML)||(i.xSetter=function(e,t,n){let r=n.getElementsByTagName("tspan"),o=n.getAttribute(t);for(let n,i=0;i<r.length;i++)(n=r[i]).getAttribute(t)===o&&n.setAttribute(t,e);n.setAttribute(t,e)}),i}fontMetrics(e){let t=ye(e)?e:Pe(Rt.prototype.getStyle.call(e,"font-size")||0),n=t<24?t+3:Math.round(1.2*t);return{h:n,b:Math.round(.8*n),f:t}}rotCorr(e,t,n){let r=e;return t&&n&&(r=Math.max(r*Math.cos(t*qt),4)),{x:-e/3*Math.sin(t*qt),y:r}}pathToSegments(e){let t=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let o=0;o<e.length;o++)ve(n[0])&&ye(e[o])&&n.length===r[n[0].toUpperCase()]&&e.splice(o,0,n[0].replace("M","L").replace("m","l")),"string"==typeof e[o]&&(n.length&&t.push(n.slice(0)),n.length=0),n.push(e[o]);return t.push(n.slice(0)),t}label(e,t,n,r,o,i,a,l,s){return new Lt(this,e,t,n,r,o,i,a,l,s)}alignElements(){this.alignedObjects.forEach(e=>e.align())}}ie(nn.prototype,{Element:Rt,SVG_NS:Jt,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:jt,draw:Qt}),Ct.registerRendererType("svg",nn,!0);let{composed:rn,isFirefox:on}=H;function an(e,t,n){var r;let o=null==(r=this.div)?void 0:r.style;Rt.prototype[`${t}Setter`].call(this,e,t,n),o&&(n.style[t]=o[t]=e)}let ln=(e,t)=>{var n;if(!e.div){let r=G(e.element,"class"),o=e.css,i=Z("div",r?{className:r}:void 0,{position:"absolute",left:`${e.translateX||0}px`,top:`${e.translateY||0}px`,...e.styles,display:e.display,opacity:e.opacity,visibility:e.visibility},(null==(n=e.parentGroup)?void 0:n.div)||t);e.classSetter=(e,t,n)=>{n.setAttribute("class",e),i.className=e},e.translateXSetter=e.translateYSetter=(t,n)=>{e[n]=t,i.style["translateX"===n?"left":"top"]=`${t}px`,e.doTransform=!0},e.scaleXSetter=e.scaleYSetter=(t,n)=>{e[n]=t,e.doTransform=!0},e.opacitySetter=e.visibilitySetter=an,e.css=t=>(o.call(e,t),t.cursor&&(i.style.cursor=t.cursor),t.pointerEvents&&(i.style.pointerEvents=t.pointerEvents),e),e.on=function(){return Rt.prototype.on.apply({element:i,onEvents:e.onEvents},arguments),e},e.div=i}return e.div};class sn extends Rt{static compose(e){Me(rn,this.compose)&&(e.prototype.html=function(e,t,n){return new sn(this,"span").attr({text:e,x:Math.round(t),y:Math.round(n)})})}constructor(e,t){super(e,t),sn.useForeignObject?this.foreignObject=e.createElement("foreignObject").attr({zIndex:2}):this.css({position:"absolute",...e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(e,t,n){this.xCorr=-e*n,this.yCorr=-t}css(e){let t,{element:n}=this,r="SPAN"===n.tagName&&e&&"width"in e,o=r&&e.width;return r&&(delete e.width,this.textWidth=Pe(o)||void 0,t=!0),"ellipsis"===(null==e?void 0:e.textOverflow)&&(e.overflow="hidden",e.whiteSpace="nowrap"),(null==e?void 0:e.lineClamp)&&(e.display="-webkit-box",e.WebkitLineClamp=e.lineClamp,e.WebkitBoxOrient="vertical",e.overflow="hidden"),ye(Number(null==e?void 0:e.fontSize))&&(e.fontSize+="px"),ie(this.styles,e),J(n,e),t&&this.updateTransform(),this}htmlGetBBox(){let{element:e}=this;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}updateTransform(){var e;if(!this.added)return void(this.alignOnAdd=!0);let{element:t,foreignObject:n,oldTextWidth:r,renderer:o,rotation:i,rotationOriginX:a,rotationOriginY:l,scaleX:s,scaleY:c,styles:{display:u="inline-block",whiteSpace:d},textAlign:h="left",textWidth:p,translateX:f=0,translateY:m=0,x:g=0,y:y=0}=this,v=()=>this.textPxLength?this.textPxLength:(J(t,{width:"",whiteSpace:d||"nowrap"}),t.offsetWidth);if(n||J(t,{marginLeft:`${f}px`,marginTop:`${m}px`}),"SPAN"===t.tagName){let f,m=[i,h,t.innerHTML,p,this.textAlign].join(","),b=-1*(null==(e=this.parentGroup)?void 0:e.padding)||0;if(p!==r){let e=v(),n=p||0,a=!o.styledMode&&""===t.style.textOverflow&&t.style.webkitLineClamp;(n>r||e>n||a)&&(/[\-\s\u00AD]/.test(t.textContent||t.innerText)||"ellipsis"===t.style.textOverflow)&&(J(t,{width:(i||s||e>n)&&ye(p)?p+"px":a?Math.min(e+1,n)+"px":"auto",display:u,whiteSpace:d||"normal"}),this.oldTextWidth=p)}n&&(J(t,{display:"inline-block",verticalAlign:"top"}),n.attr({width:o.width,height:o.height})),m!==this.cTT&&(f=o.fontMetrics(t).b,ee(i)&&!n&&(i!==(this.oldRotation||0)||h!==this.oldAlign)&&J(t,{transform:`rotate(${i}deg)`,transformOrigin:`${b}% ${b}px`}),this.getSpanCorrection(!ee(i)&&!this.textWidth&&this.textPxLength||t.offsetWidth,f,se(h)));let{xCorr:x=0,yCorr:w=0}=this,C={left:`${g+x}px`,top:`${y+w}px`,textAlign:h,transformOrigin:`${(a??g)-x-g-b}px ${(l??y)-w-y-b}px`};(s||c)&&(C.transform=`scale(${s??1},${c??1})`),n?(super.updateTransform(),ye(g)&&ye(y)?(n.attr({x:g+x,y:y+w,width:t.offsetWidth+3,height:t.offsetHeight,"transform-origin":t.getAttribute("transform-origin")||"0 0"}),J(t,{display:u,textAlign:h})):on&&n.attr({width:0,height:0})):J(t,C),this.cTT=m,this.oldRotation=i,this.oldAlign=h}}add(e){let{foreignObject:t,renderer:n}=this,r=n.box.parentNode,o=[];if(t)t.add(e),super.add(n.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(t));else{let t;if(this.parentGroup=e,e&&!(t=e.div)){let n=e;for(;n;)o.push(n),n=n.parentGroup;for(let e of o.reverse())t=ln(e,r)}(t||r).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,pt.setElementHTML(this.element,e??""),this.textStr=e,this.doTransform=!0)}alignSetter(e){this.alignValue=this.textAlign=e,this.doTransform=!0}xSetter(e,t){this[t]=e,this.doTransform=!0}}let cn=sn.prototype;cn.visibilitySetter=cn.opacitySetter=an,cn.ySetter=cn.rotationSetter=cn.rotationOriginXSetter=cn.rotationOriginYSetter=cn.xSetter,(g=$||($={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},g.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return this.axis.chart.numberFormatter(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};let un=$;(T||(T={})).registerEventOptions=function(e,t){e.eventOptions=e.eventOptions||{},Se(t.events,function(t,n){e.eventOptions[n]!==t&&(e.eventOptions[n]&&(Ae(e,n,e.eventOptions[n]),delete e.eventOptions[n]),xe(t)&&(e.eventOptions[n]=t,V(e,n,t,{order:0})))})};let dn=T,{deg2rad:hn}=H,pn=class{constructor(e,t,n,r,o){this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=t,this.type=n||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,le(this,"init"),n||r||this.addLabel()}addLabel(){var e,t;let n,r,o,i=this,a=i.axis,l=a.options,s=a.chart,c=a.categories,u=a.logarithmic,d=a.names,h=i.pos,p=Te(null==(e=i.options)?void 0:e.labels,l.labels),f=a.tickPositions,m=h===f[0],g=h===f[f.length-1],y=(!p.step||1===p.step)&&1===a.tickInterval,v=f.info,b=i.label,x=this.parameters.category||(c?Te(c[h],d[h],h):h);u&&ye(x)&&(x=Y(u.lin2log(x))),a.dateTime&&(v?n=(r=s.time.resolveDTLFormat(l.dateTimeLabelFormats[!(null==(t=l.grid)?void 0:t.enabled)&&v.higherRanks[h]||v.unitName])).main:ye(x)&&(n=a.dateTime.getXDateFormat(x,l.dateTimeLabelFormats||{}))),i.isFirst=m,i.isLast=g;let w={axis:a,chart:s,dateTimeLabelFormat:n,isFirst:m,isLast:g,pos:h,tick:i,tickPositionInfo:v,value:x};le(this,"labelFormat",w);let C=e=>p.formatter?p.formatter.call(e,e):p.format?(e.text=a.defaultLabelFormatter.call(e),wt.format(p.format,e,s)):a.defaultLabelFormatter.call(e),k=C.call(w,w),S=null==r?void 0:r.list;i.shortenLabel=S?function(){for(o=0;o<S.length;o++)if(ie(w,{dateTimeLabelFormat:S[o]}),b.attr({text:C.call(w,w)}),b.getBBox().width<a.getSlotWidth(i)-2*(p.padding||0))return;b.attr({text:""})}:void 0,y&&a._addedPlotLB&&i.moveLabel(k,p),ee(b)||i.movedLabel?b&&b.textStr!==k&&!y&&(!b.textWidth||p.style.width||b.styles.width||b.css({width:null}),b.attr({text:k}),b.textPxLength=b.getBBox().width):(i.label=b=i.createLabel(k,p),i.rotation=0)}createLabel(e,t,n){let r=this.axis,{renderer:o,styledMode:i}=r.chart,a=t.style.whiteSpace,l=ee(e)&&t.enabled?o.text(e,null==n?void 0:n.x,null==n?void 0:n.y,t.useHTML).add(r.labelGroup):void 0;return l&&(i||l.css(Ce(t.style)),l.textPxLength=l.getBBox().width,!i&&a&&l.css({whiteSpace:a})),l}destroy(){te(this,this.axis)}getPosition(e,t,n,r){let o=this.axis,i=o.chart,a=r&&i.oldChartHeight||i.chartHeight,l={x:e?Y(o.translate(t+n,void 0,void 0,r)+o.transB):o.left+o.offset+(o.opposite?(r&&i.oldChartWidth||i.chartWidth)-o.right-o.left:0),y:e?a-o.bottom+o.offset-(o.opposite?o.height:0):Y(a-o.translate(t+n,void 0,void 0,r)-o.transB)};return l.y=X(l.y,-1e9,1e9),le(this,"afterGetPosition",{pos:l}),l}getLabelPosition(e,t,n,r,o,i,a,l){let s,c,u=this.axis,d=u.transA,h=u.isLinked&&u.linkedParent?u.linkedParent.reversed:u.reversed,p=u.staggerLines,f=u.tickRotCorr||{x:0,y:0},m=r||u.reserveSpaceDefault?0:-u.labelOffset*("center"===u.labelAlign?.5:1),g=o.distance,y={};return s=0===u.side?n.rotation?-g:-n.getBBox().height:2===u.side?f.y+g:Math.cos(n.rotation*hn)*(f.y-n.getBBox(!1,0).height/2),ee(o.y)&&(s=0===u.side&&u.horiz?o.y+s:o.y),e=e+Te(o.x,[0,1,0,-1][u.side]*g)+m+f.x-(i&&r?i*d*(h?-1:1):0),t=t+s-(i&&!r?i*d*(h?1:-1):0),p&&(c=a/(l||1)%p,u.opposite&&(c=p-c-1),t+=c*(u.labelOffset/p)),y.x=e,y.y=Math.round(t),le(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:i,index:a}),y}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(e,t,n,r,o=!1,i){return i.crispLine([["M",e,t],["L",e+(o?0:-n),t+(o?n:0)]],r)}handleOverflow(e){var t;let n,r=this.axis,o=r.options.labels,i=e.x,a=r.chart.chartWidth,l=r.chart.spacing,s=Te(r.labelLeft,Math.min(r.pos,l[3])),c=Te(r.labelRight,Math.max(r.isRadial?0:r.pos+r.len,a-l[1])),u=this.label,d=this.rotation,h=se(r.labelAlign||u.attr("align")),p=u.getBBox().width,f=r.getSlotWidth(this),m=f,g=1;d||"justify"!==o.overflow?d<0&&i-h*p<s?n=Math.round(i/Math.cos(d*hn)-s):d>0&&i+h*p>c&&(n=Math.round((a-i)/Math.cos(d*hn))):(i-h*p<s?m=e.x+m*(1-h)-s:i+(1-h)*p>c&&(m=c-e.x+m*h,g=-1),(m=Math.min(f,m))<f&&"center"===r.labelAlign&&(e.x+=g*(f-m-h*(f-Math.min(p,m)))),(p>m||r.autoRotation&&(null==(t=null==u?void 0:u.styles)?void 0:t.width))&&(n=m)),n&&u&&(this.shortenLabel?this.shortenLabel():u.css(ie({},{width:Math.floor(n)+"px",lineClamp:+!r.isRadial})))}moveLabel(e,t){let n,r=this,o=r.label,i=r.axis,a=!1;o&&o.textStr===e?(r.movedLabel=o,a=!0,delete r.label):Se(i.ticks,function(t){a||t.isNew||t===r||!t.label||t.label.textStr!==e||(r.movedLabel=t.label,a=!0,t.labelPos=r.movedLabel.xy,delete t.label)}),!a&&(r.labelPos||o)&&(n=r.labelPos||o.xy,r.movedLabel=r.createLabel(e,t,n),r.movedLabel&&r.movedLabel.attr({opacity:0}))}render(e,t,n){var r;let o=this.axis,i=o.horiz,a=this.pos,l=Te(this.tickmarkOffset,o.tickmarkOffset),s=this.getPosition(i,a,l,t),c=s.x,u=s.y,d=o.pos,h=d+o.len,p=i?c:u,f=Te(n,null==(r=this.label)?void 0:r.newOpacity,1);!o.chart.polar&&(Y(p)<d||p>h)&&(n=0),n??(n=1),this.isActive=!0,this.renderGridLine(t,n),this.renderMark(s,n),this.renderLabel(s,t,f,e),this.isNew=!1,le(this,"afterRender")}renderGridLine(e,t){let n,r=this.axis,o=r.options,i={},a=this.pos,l=this.type,s=Te(this.tickmarkOffset,r.tickmarkOffset),c=r.chart.renderer,u=this.gridLine,d=o.gridLineWidth,h=o.gridLineColor,p=o.gridLineDashStyle;"minor"===this.type&&(d=o.minorGridLineWidth,h=o.minorGridLineColor,p=o.minorGridLineDashStyle),u||(r.chart.styledMode||(i.stroke=h,i["stroke-width"]=d||0,i.dashstyle=p),l||(i.zIndex=1),e&&(t=0),this.gridLine=u=c.path().attr(i).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(r.gridGroup)),u&&(n=r.getPlotLinePath({value:a+s,lineWidth:u.strokeWidth(),force:"pass",old:e,acrossPanes:!1}))&&u[e||this.isNew?"attr":"animate"]({d:n,opacity:t})}renderMark(e,t){let n=this.axis,r=n.options,o=n.chart.renderer,i=this.type,a=n.tickSize(i?i+"Tick":"tick"),l=e.x,s=e.y,c=Te(r["minor"!==i?"tickWidth":"minorTickWidth"],!i&&n.isXAxis?1:0),u=r["minor"!==i?"tickColor":"minorTickColor"],d=this.mark,h=!d;a&&(n.opposite&&(a[0]=-a[0]),!d&&(this.mark=d=o.path().addClass("highcharts-"+(i?i+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||d.attr({stroke:u,"stroke-width":c})),d[h?"attr":"animate"]({d:this.getMarkPath(l,s,a[0],d.strokeWidth(),n.horiz,o),opacity:t}))}renderLabel(e,t,n,r){let o=this.axis,i=o.horiz,a=o.options,l=this.label,s=a.labels,c=s.step,u=Te(this.tickmarkOffset,o.tickmarkOffset),d=e.x,h=e.y,p=!0;l&&ye(d)&&(l.xy=e=this.getLabelPosition(d,h,l,i,s,u,r,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?p=!1:i&&!t&&0!==n&&this.handleOverflow(e),c&&r%c&&(p=!1),p&&ye(e.y)?(e.opacity=n,l[this.isNewLabel?"attr":"animate"](e).show(!0),this.isNewLabel=!1):(l.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let e=this.label,t=this.axis;e&&!this.isNew&&(e.animate({opacity:0},void 0,e.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:fn}=lt,{xAxis:mn,yAxis:gn}=un,{defaultOptions:yn}=Ze,{registerEventOptions:vn}=dn,{deg2rad:bn}=H,xn=(e,t)=>ke(t,void 0,void 0,Te(e.options.allowDecimals,t<.5||void 0!==e.tickAmount),!!e.tickAmount);ie(yn,{xAxis:mn,yAxis:Ce(mn,gn)});class wn{constructor(e,t,n){this.init(e,t,n)}init(e,t,n=this.coll){let r="xAxis"===n,o=this.isZAxis||(e.inverted?!r:r);this.chart=e,this.horiz=o,this.isXAxis=r,this.coll=n,le(this,"init",{userOptions:t}),this.opposite=Te(t.opposite,this.opposite),this.side=Te(t.side,this.side,o?2*!this.opposite:this.opposite?1:3),this.setOptions(t);let i=this.options,a=i.labels;this.type??(this.type=i.type||"linear"),this.uniqueNames??(this.uniqueNames=i.uniqueNames??!0),le(this,"afterSetType"),this.userOptions=t,this.minPixelPadding=0,this.reversed=Te(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===this.type||!0===i.categories,this.categories=be(i.categories)&&i.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=ee(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.max=void 0,this.min=void 0;let l=Te(i.crosshair,Ie(e.options.tooltip.crosshairs)[+!r]);this.crosshair=!0===l?{}:l,-1===e.axes.indexOf(this)&&(r?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),_e(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&r&&!ee(this.reversed)&&(this.reversed=!0),this.labelRotation=ye(a.rotation)?a.rotation:void 0,vn(this,i),le(this,"afterInit")}setOptions(e){let t=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=Ce(t,"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},yn[this.coll],e),le(this,"afterSetOptions",{userOptions:e})}defaultLabelFormatter(){let e,t,n=this.axis,r=this.chart,{numberFormatter:o}=r,i=ye(this.value)?this.value:NaN,a=n.chart.time,l=n.categories,s=this.dateTimeLabelFormat,c=yn.lang,u=c.numericSymbols,d=c.numericSymbolMagnitude||1e3,h=n.logarithmic?Math.abs(i):n.tickInterval,p=null==u?void 0:u.length;if(l)t=`${this.value}`;else if(s)t=a.dateFormat(s,i,!0);else if(p&&u&&h>=1e3)for(;p--&&void 0===t;)h>=(e=Math.pow(d,p+1))&&10*i%e==0&&null!==u[p]&&0!==i&&(t=o(i/e,-1,void 0,void 0,r)+u[p]);return t??(t=o(i,-1,void 0,1e4>Math.abs(i)?"":void 0,r)),t}getSeriesExtremes(){let e,t=this;le(this,"getSeriesExtremes",null,function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=void 0,t.softThreshold=!t.isXAxis,t.series.forEach(n=>{if(n.reserveSpace()){let r,o,i,a=n.options,l=a.threshold;if(t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=(l||0)&&(l=void 0),t.isXAxis)(r=n.getColumn("x")).length&&(r=t.logarithmic?r.filter(e=>e>0):r,o=(e=n.getXExtremes(r)).min,i=e.max,ye(o)||o instanceof Date||(r=r.filter(ye),o=(e=n.getXExtremes(r)).min,i=e.max),r.length&&(t.dataMin=Math.min(Te(t.dataMin,o),o),t.dataMax=Math.max(Te(t.dataMax,i),i)));else{let e=n.applyExtremes();ye(e.dataMin)&&(o=e.dataMin,t.dataMin=Math.min(Te(t.dataMin,o),o)),ye(e.dataMax)&&(i=e.dataMax,t.dataMax=Math.max(Te(t.dataMax,i),i)),ee(l)&&(t.threshold=l),(!a.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1)}}})}),le(this,"afterGetSeriesExtremes")}translate(e,t,n,r,o,i){var a;let l=this.linkedParent||this,s=r&&l.old?l.old.min:l.min;if(!ye(s))return NaN;let c=l.minPixelPadding,u=(l.isOrdinal||(null==(a=l.brokenAxis)?void 0:a.hasBreaks)||l.logarithmic&&o)&&!!l.lin2val,d=1,h=0,p=r&&l.old?l.old.transA:l.transA,f=0;return p||(p=l.transA),n&&(d*=-1,h=l.len),l.reversed&&(d*=-1,h-=d*(l.sector||l.len)),t?(f=(e=e*d+h-c)/p+s,u&&(f=l.lin2val(f))):(u&&(e=l.val2lin(e)),f=d*(e-s)*p+h+d*c+(ye(i)?p*i:0),l.isRadial||(f=Y(f))),f}toPixels(e,t){var n;return this.translate((null==(n=this.chart)?void 0:n.time.parse(e))??NaN,!1,!this.horiz,void 0,!0)+(t?0:this.pos)}toValue(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let t,n,r,o,i,a=this,l=a.chart,s=a.left,c=a.top,u=e.old,d=e.value,h=e.lineWidth,p=u&&l.oldChartHeight||l.chartHeight,f=u&&l.oldChartWidth||l.chartWidth,m=a.transB,g=e.translatedValue,y=e.force;function v(e,t,n){return"pass"!==y&&(e<t||e>n)&&(y?e=X(e,t,n):i=!0),e}let b={value:d,lineWidth:h,old:u,force:y,acrossPanes:e.acrossPanes,translatedValue:g};return le(this,"getPlotLinePath",b,function(e){t=r=(g=X(g=Te(g,a.translate(d,void 0,void 0,u)),-1e9,1e9))+m,n=o=p-g-m,ye(g)?a.horiz?(n=c,o=p-a.bottom+(a.options.isInternal?0:l.scrollablePixelsY||0),t=r=v(t,s,s+a.width)):(t=s,r=f-a.right+(l.scrollablePixelsX||0),n=o=v(n,c,c+a.height)):(i=!0,y=!1),e.path=i&&!y?void 0:l.renderer.crispLine([["M",t,n],["L",r,o]],h||1)}),b.path}getLinearTickPositions(e,t,n){let r,o,i,a=Y(Math.floor(t/e)*e),l=Y(Math.ceil(n/e)*e),s=[];if(Y(a+e)===a&&(i=20),this.single)return[t];for(r=a;r<=l&&(s.push(r),(r=Y(r+e,i))!==o);)o=r;return s}getMinorTickInterval(){let{minorTicks:e,minorTickInterval:t}=this.options;return!0===e?Te(t,"auto"):!1!==e?t:void 0}getMinorTickPositions(){var e;let t,n=this.options,r=this.tickPositions,o=this.minorTickInterval,i=this.pointRangePadding||0,a=(this.min||0)-i,l=(this.max||0)+i,s=(null==(e=this.brokenAxis)?void 0:e.hasBreaks)?this.brokenAxis.unitLength:l-a,c=[];if(s&&s/o<this.len/3){let e=this.logarithmic;if(e)this.paddedTicks.forEach(function(t,n,r){n&&c.push.apply(c,e.getLogTickPositions(o,r[n-1],r[n],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())c=c.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(o),a,l,n.startOfWeek));else for(t=a+(r[0]-a)%o;t<=l&&t!==c[0];t+=o)c.push(t)}return 0!==c.length&&this.trimTicks(c),c}adjustForMinRange(){let e,t,n,r,o=this.options,i=this.logarithmic,a=this.chart.time,{max:l,min:s,minRange:c}=this;this.isXAxis&&void 0===c&&!i&&(c=ee(o.min)||ee(o.max)||ee(o.floor)||ee(o.ceiling)?null:Math.min(5*(ce(this.series.map(e=>{let t=e.getColumn("x");return e.xIncrement?t.slice(0,2):t}))||0),this.dataMax-this.dataMin)),ye(l)&&ye(s)&&ye(c)&&l-s<c&&(t=this.dataMax-this.dataMin>=c,e=(c-l+s)/2,n=[s-e,a.parse(o.min)??s-e],t&&(n[2]=i?i.log2lin(this.dataMin):this.dataMin),r=[(s=q(n))+c,a.parse(o.max)??s+c],t&&(r[2]=i?i.log2lin(this.dataMax):this.dataMax),(l=U(r))-s<c&&(n[0]=l-c,n[1]=a.parse(o.min)??l-c,s=q(n))),this.minRange=c,this.min=s,this.max=l}getClosest(){let e,t;if(this.categories)t=1;else{let n=[];this.series.forEach(function(e){let r=e.closestPointRange,o=e.getColumn("x");1===o.length?n.push(o[0]):e.sorted&&ee(r)&&e.reserveSpace()&&(t=ee(t)?Math.min(t,r):r)}),n.length&&(n.sort((e,t)=>e-t),e=ce([n]))}return e&&t?Math.min(e,t):e||t}nameToX(e){let t,n=be(this.options.categories),r=n?this.categories:this.names,o=e.options.x;return e.series.requireSorting=!1,ee(o)||(o=this.uniqueNames&&r?n?r.indexOf(e.name):Te(r.keys[e.name],-1):e.series.autoIncrement()),-1===o?!n&&r&&(t=r.length):ye(o)&&(t=o),void 0!==t?(this.names[t]=e.name,this.names.keys[e.name]=t):e.x&&(t=e.x),t}updateNames(){let e=this,t=this.names;t.length>0&&(Object.keys(t.keys).forEach(function(e){delete t.keys[e]}),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(t=>{t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max||0,t.dataTable.rowCount-1),t.processData(),t.generatePoints());let n=t.getColumn("x").slice();t.data.forEach((t,r)=>{let o=n[r];(null==t?void 0:t.options)&&void 0!==t.name&&void 0!==(o=e.nameToX(t))&&o!==t.x&&(n[r]=t.x=o)}),t.dataTable.setColumn("x",n)}))}setAxisTranslation(){var e;let t,n,r=this,o=r.max-r.min,i=r.linkedParent,a=!!r.categories,l=r.isXAxis,s=r.axisPointRange||0,c=0,u=0,d=r.transA;(l||a||s)&&(t=r.getClosest(),i?(c=i.minPointOffset,u=i.pointRangePadding):r.series.forEach(function(e){let n=a?1:l?Te(e.options.pointRange,t,0):r.axisPointRange||0,o=e.options.pointPlacement;if(s=Math.max(s,n),!r.single||a){let t=e.is("xrange")?!l:l;c=Math.max(c,t&&ve(o)?0:n/2),u=Math.max(u,t&&"on"===o?0:n)}}),n=(null==(e=r.ordinal)?void 0:e.slope)&&t?r.ordinal.slope/t:1,r.minPointOffset=c*=n,r.pointRangePadding=u*=n,r.pointRange=Math.min(s,r.single&&a?1:o),l&&(r.closestPointRange=t)),r.translationSlope=r.transA=d=r.staticScale||r.len/(o+u||1),r.transB=r.horiz?r.left:r.bottom,r.minPixelPadding=d*c,le(this,"afterSetAxisTranslation")}minFromRange(){let{max:e,min:t}=this;return ye(e)&&ye(t)&&e-t||void 0}setTickInterval(e){var t,n,r,o;let i,a,l,s,c,{categories:u,chart:d,dataMax:h,dataMin:p,dateTime:f,isXAxis:m,logarithmic:g,options:y,softThreshold:v}=this,b=d.time,x=ye(this.threshold)?this.threshold:void 0,w=this.minRange||0,{ceiling:C,floor:k,linkedTo:S,softMax:E,softMin:$}=y,T=ye(S)&&(null==(t=d[this.coll])?void 0:t[S]),P=y.tickPixelInterval,M=y.maxPadding,O=y.minPadding,N=0,A=ye(y.tickInterval)&&y.tickInterval>=0?y.tickInterval:void 0;if(f||u||T||this.getTickAmount(),s=Te(this.userMin,b.parse(y.min)),c=Te(this.userMax,b.parse(y.max)),T?(this.linkedParent=T,i=T.getExtremes(),this.min=Te(i.min,i.dataMin),this.max=Te(i.max,i.dataMax),this.type!==T.type&&je(11,!0,d)):(v&&ee(x)&&ye(h)&&ye(p)&&(p>=x?(a=x,O=0):h<=x&&(l=x,M=0)),this.min=Te(s,a,p),this.max=Te(c,l,h)),ye(this.max)&&ye(this.min)&&(g&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,Te(p,this.min))&&je(10,!0,d),this.min=Y(g.log2lin(this.min),16),this.max=Y(g.log2lin(this.max),16)),this.range&&ye(p)&&(this.userMin=this.min=s=Math.max(p,this.minFromRange()||0),this.userMax=c=this.max,this.range=void 0)),le(this,"foundExtremes"),this.adjustForMinRange(),ye(this.min)&&ye(this.max)){if(!ye(this.userMin)&&ye($)&&$<this.min&&(this.min=s=$),!ye(this.userMax)&&ye(E)&&E>this.max&&(this.max=c=E),u||this.axisPointRange||(null==(n=this.stacking)?void 0:n.usePercentage)||T||(N=this.max-this.min)&&(!ee(s)&&O&&(this.min-=N*O),!ee(c)&&M&&(this.max+=N*M)),!ye(this.userMin)&&ye(k)&&(this.min=Math.max(this.min,k)),!ye(this.userMax)&&ye(C)&&(this.max=Math.min(this.max,C)),v&&ye(p)&&ye(h)){let e=x||0;!ee(s)&&this.min<e&&p>=e?this.min=y.minRange?Math.min(e,this.max-w):e:!ee(c)&&this.max>e&&h<=e&&(this.max=y.minRange?Math.max(e,this.min+w):e)}!d.polar&&this.min>this.max&&(ee(y.min)?this.max=this.min:ee(y.max)&&(this.min=this.max)),N=this.max-this.min}if(this.min!==this.max&&ye(this.min)&&ye(this.max)?T&&!A&&P===T.options.tickPixelInterval?this.tickInterval=A=T.tickInterval:this.tickInterval=Te(A,this.tickAmount?N/Math.max(this.tickAmount-1,1):void 0,u?1:N*P/Math.max(this.len,P)):this.tickInterval=1,m&&!e){let e=this.min!==(null==(r=this.old)?void 0:r.min)||this.max!==(null==(o=this.old)?void 0:o.max);this.series.forEach(function(t){var n;t.forceCrop=null==(n=t.forceCropping)?void 0:n.call(t),t.processData(e)}),le(this,"postProcessData",{hasExtremesChanged:e})}this.setAxisTranslation(),le(this,"initialAxisTranslation"),this.pointRange&&!A&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let I=Te(y.minTickInterval,f&&!this.series.some(e=>!e.sorted)?this.closestPointRange:0);!A&&I&&this.tickInterval<I&&(this.tickInterval=I),f||g||A||(this.tickInterval=xn(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var e,t,n;let r,o=this.options,i=o.tickPositions,a=o.tickPositioner,l=this.getMinorTickInterval(),s=!this.isPanning,c=s&&o.startOnTick,u=s&&o.endOnTick,d=[];if(this.tickmarkOffset=this.categories&&"between"===o.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&ee(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==o.allowDecimals),i)d=i.slice();else if(ye(this.min)&&ye(this.max)){if(!(null==(e=this.ordinal)?void 0:e.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))d=[this.min,this.max],je(19,!1,this.chart);else if(this.dateTime)d=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,o.units),this.min,this.max,o.startOfWeek,null==(t=this.ordinal)?void 0:t.positions,this.closestPointRange,!0);else if(this.logarithmic)d=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let e=this.tickInterval,t=e;for(;t<=2*e&&(d=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&d.length>this.tickAmount);)this.tickInterval=xn(this,t*=1.1)}d.length>this.len&&(d=[d[0],d[d.length-1]])[0]===d[1]&&(d.length=1),a&&(this.tickPositions=d,(r=a.apply(this,[this.min,this.max,this]))&&(d=r))}this.isDirty||d.length===(null==(n=this.tickPositions)?void 0:n.length)||(this.isDirty=!0),this.tickPositions=d,this.minorTickInterval="auto"===l&&this.tickInterval?this.tickInterval/o.minorTicksPerMajor:l,this.paddedTicks=d.slice(0),this.trimTicks(d,c,u),!this.isLinked&&ye(this.min)&&ye(this.max)&&(this.single&&d.length<2&&!this.categories&&!this.series.some(e=>e.is("heatmap")&&"between"===e.options.pointPlacement)&&(this.min-=.5,this.max+=.5),i||r||this.adjustTickAmount()),le(this,"afterSetTickPositions")}trimTicks(e,t,n){let r=e[0],o=e[e.length-1],i=!this.isOrdinal&&this.minPointOffset||0;if(le(this,"trimTicks"),!this.isLinked||!this.grid){if(t&&r!==-1/0)this.min=r;else for(;this.min-i>e[0];)e.shift();if(n)this.max=o;else for(;this.max+i<e[e.length-1];)e.pop();0===e.length&&ee(r)&&!this.options.tickPositions&&e.push((o+r)/2)}}alignToOthers(){let e,t=this,n=t.chart,r=[this],o=t.options,i=n.options.chart,a="yAxis"===this.coll&&i.alignThresholds,l=[];if(t.thresholdAlignment=void 0,(!1!==i.alignTicks&&o.alignTicks||a)&&!1!==o.startOnTick&&!1!==o.endOnTick&&!t.logarithmic){let o=e=>{let{horiz:t,options:n}=e;return[t?n.left:n.top,n.width,n.height,n.pane].join(",")},i=o(this);n[this.coll].forEach(function(n){let{series:a}=n;a.length&&a.some(e=>e.visible)&&n!==t&&o(n)===i&&(e=!0,r.push(n))})}if(e&&a){r.forEach(e=>{let n=e.getThresholdAlignment(t);ye(n)&&l.push(n)});let e=l.length>1?l.reduce((e,t)=>e+t,0)/l.length:void 0;r.forEach(t=>{t.thresholdAlignment=e})}return e}getThresholdAlignment(e){if((!ye(this.dataMin)||this!==e&&this.series.some(e=>{var t;return e.isDirty||e.isDirtyData||(null==(t=e.xAxis)?void 0:t.isDirty)}))&&this.getSeriesExtremes(),ye(this.threshold)){let e=X((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let e=this.options,t=e.tickPixelInterval,n=e.tickAmount;ee(e.tickInterval)||n||!(this.len<t)||this.isRadial||this.logarithmic||!e.startOnTick||!e.endOnTick||(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/t)+1),n<4&&(this.finalTickAmt=n,n=5),this.tickAmount=n}adjustTickAmount(){let e,t,n,r=this,{finalTickAmt:o,max:i,min:a,options:l,tickPositions:s,tickAmount:c,thresholdAlignment:u}=r,d=null==s?void 0:s.length,h=Te(r.threshold,r.softThreshold?0:null),p=r.tickInterval,f=()=>s.push(Y(s[s.length-1]+p)),m=()=>s.unshift(Y(s[0]-p));if(ye(u)&&(n=0===u?0:1===u?c-1:Math.round(X(u*(c-1),1,c-2)),l.reversed&&(n=c-1-n)),r.hasData()&&ye(a)&&ye(i)){let u=()=>{r.transA*=(d-1)/(c-1),r.min=l.startOnTick?s[0]:Math.min(a,s[0]),r.max=l.endOnTick?s[s.length-1]:Math.max(i,s[s.length-1])};if(ye(n)&&ye(r.threshold)){for(;s[n]!==h||s.length!==c||s[0]>a||s[s.length-1]<i;){for(s.length=0,s.push(r.threshold);s.length<c;)void 0===s[n]||s[n]>r.threshold?m():f();if(p>8*r.tickInterval)break;p*=2}u()}else if(d<c){for(;s.length<c;)s.length%2||a===h?f():m();u()}if(ee(o)){for(t=e=s.length;t--;)(3===o&&t%2==1||o<=2&&t>0&&t<e-1)&&s.splice(t,1);r.finalTickAmt=void 0}}}setScale(){var e,t,n,r,o;let{coll:i,stacking:a}=this,l=!1,s=!1;this.series.forEach(e=>{var t;l=l||e.isDirtyData||e.isDirty,s=s||(null==(t=e.xAxis)?void 0:t.isDirty)||!1}),this.setAxisSize();let c=this.len!==(null==(e=this.old)?void 0:e.len);c||l||s||this.isLinked||this.forceRedraw||this.userMin!==(null==(t=this.old)?void 0:t.userMin)||this.userMax!==(null==(n=this.old)?void 0:n.userMax)||this.alignToOthers()?(a&&"yAxis"===i&&a.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),a&&"xAxis"===i&&a.buildStacks(),this.isDirty||(this.isDirty=c||this.min!==(null==(r=this.old)?void 0:r.min)||this.max!==(null==(o=this.old)?void 0:o.max))):a&&a.cleanStacks(),l&&delete this.allExtremes,le(this,"afterSetScale")}setExtremes(e,t,n=!0,r,o){let i=this.chart;this.series.forEach(e=>{delete e.kdTree}),le(this,"setExtremes",o=ie(o,{min:e=i.time.parse(e),max:t=i.time.parse(t)}),e=>{this.userMin=e.min,this.userMax=e.max,this.eventArgs=e,n&&i.redraw(r)})}setAxisSize(){let e=this.chart,t=this.options,n=t.offsets||[0,0,0,0],r=this.horiz,o=this.width=Math.round(Oe(Te(t.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),i=this.height=Math.round(Oe(Te(t.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),a=this.top=Math.round(Oe(Te(t.top,e.plotTop+n[0]),e.plotHeight,e.plotTop)),l=this.left=Math.round(Oe(Te(t.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-i-a,this.right=e.chartWidth-o-l,this.len=Math.max(r?o:i,0),this.pos=r?l:a}getExtremes(){let e=this.logarithmic;return{min:e?Y(e.lin2log(this.min)):this.min,max:e?Y(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(e){let t=this.logarithmic,n=t?t.lin2log(this.min):this.min,r=t?t.lin2log(this.max):this.max;return null===e||e===-1/0?e=n:e===1/0?e=r:n>e?e=n:r<e&&(e=r),this.translate(e,0,1,0,1)}autoLabelAlign(e){let t=((e-90*this.side)%360+360)%360,n={align:"center"};return le(this,"autoLabelAlign",n,function(e){t>15&&t<165?e.align="right":t>195&&t<345&&(e.align="left")}),n.align}tickSize(e){let t,n=this.options,r=Te(n["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),o=n["tick"===e?"tickLength":"minorTickLength"];r&&o&&("inside"===n[e+"Position"]&&(o=-o),t=[o,r]);let i={tickSize:t};return le(this,"afterTickSize",i),i.tickSize}labelMetrics(){let e=this.chart.renderer,t=this.ticks,n=t[Object.keys(t)[0]]||{};return this.chart.renderer.fontMetrics(n.label||n.movedLabel||e.box)}unsquish(){let e,t,n=this.options.labels,r=n.padding||0,o=this.horiz,i=this.tickInterval,a=this.len/((+!!this.categories+this.max-this.min)/i),l=n.rotation,s=Y(.8*this.labelMetrics().h),c=Math.max(this.max-this.min,0),u=function(e){let t=(e+2*r)/(a||1);return(t=t>1?Math.ceil(t):1)*i>c&&e!==1/0&&a!==1/0&&c&&(t=Math.ceil(c/i)),Y(t*i)},d=i,h=Number.MAX_VALUE;if(o){if(!n.staggerLines&&(ye(l)?t=[l]:a<n.autoRotationLimit&&(t=n.autoRotation)),t){let n,r;for(let o of t)(o===l||o&&o>=-90&&o<=90)&&(r=(n=u(Math.abs(s/Math.sin(bn*o))))+Math.abs(o/360))<h&&(h=r,e=o,d=n)}}else d=u(.75*s);return this.autoRotation=t,this.labelRotation=Te(e,ye(l)?l:0),n.step?i:d}getSlotWidth(e){let t=this.chart,n=this.horiz,r=this.options.labels,o=Math.max(this.tickPositions.length-!this.categories,1),i=t.margin[3];if(e&&ye(e.slotWidth))return e.slotWidth;if(n&&r.step<2&&!this.isRadial)return r.rotation?0:(this.staggerLines||1)*this.len/o;if(!n){let e=r.style.width;if(void 0!==e)return parseInt(String(e),10);if(!this.opposite&&i)return i-t.spacing[3]}return.33*t.chartWidth}renderUnsquish(){let e,t=this.chart,n=t.renderer,r=this.tickPositions,o=this.ticks,i=this.options.labels,a=i.style,l=this.horiz,s=this.getSlotWidth(),c=Math.max(1,Math.round(s-(l?2*(i.padding||0):i.distance||0))),u={},d=this.labelMetrics(),h=a.lineClamp,p=h??(Math.floor(this.len/(r.length*d.h))||1),f=0;ve(i.rotation)||(u.rotation=i.rotation||0),r.forEach(function(e){var t;let n=o[e];n.movedLabel&&n.replaceMovedLabel();let r=(null==(t=n.label)?void 0:t.textPxLength)||0;r>f&&(f=r)}),this.maxLabelLength=f,this.autoRotation?f>c&&f>d.h?u.rotation=this.labelRotation:this.labelRotation=0:s&&(e=c),u.rotation&&(e=f>.5*t.chartHeight?.33*t.chartHeight:f,h||(p=1)),this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation||0),this.labelAlign&&(u.align=this.labelAlign),r.forEach(function(t){let n=o[t],r=null==n?void 0:n.label,i=a.width,l={};r&&(r.attr(u),n.shortenLabel?n.shortenLabel():e&&!i&&"nowrap"!==a.whiteSpace&&(e<(r.textPxLength||0)||"SPAN"===r.element.tagName)?r.css(ie(l,{width:`${e}px`,lineClamp:p})):!r.styles.width||l.width||i||r.css({width:"auto"}),n.rotation=u.rotation)},this),this.tickRotCorr=n.rotCorr(d.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&ee(this.min)&&ee(this.max)}addTitle(e){let t,n=this.chart.renderer,r=this.horiz,o=this.opposite,i=this.options.title,a=this.chart.styledMode;this.axisTitle||((t=i.textAlign)||(t=(r?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[i.align]),this.axisTitle=n.text(i.text||"",0,0,i.useHTML).attr({zIndex:7,rotation:i.rotation||0,align:t}).addClass("highcharts-axis-title"),a||this.axisTitle.css(Ce(i.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||i.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)}generateTick(e){let t=this.ticks;t[e]?t[e].addLabel():t[e]=new pn(this,e)}createGroups(){let{axisParent:e,chart:t,coll:n,options:r}=this,o=t.renderer,i=(t,i,a)=>o.g(t).attr({zIndex:a}).addClass(`highcharts-${n.toLowerCase()}${i} `+(this.isRadial?`highcharts-radial-axis${i} `:"")+(r.className||"")).add(e);this.axisGroup||(this.gridGroup=i("grid","-grid",r.gridZIndex),this.axisGroup=i("axis","",r.zIndex),this.labelGroup=i("axis-labels","-labels",r.labels.zIndex))}getOffset(){let e,t,n,r,o=this,{chart:i,horiz:a,options:l,side:s,ticks:c,tickPositions:u,coll:d}=o,h=i.inverted&&!o.isZAxis?[1,0,3,2][s]:s,p=o.hasData(),f=l.title,m=l.labels,g=ye(l.crossing),y=i.axisOffset,v=i.clipOffset,b=[-1,1,1,-1][s],x=0,w=0,C=0;if(o.showAxis=e=p||l.showEmpty,o.staggerLines=o.horiz&&m.staggerLines||void 0,o.createGroups(),p||o.isLinked?(u.forEach(function(e){o.generateTick(e)}),o.renderUnsquish(),o.reserveSpaceDefault=0===s||2===s||{1:"left",3:"right"}[s]===o.labelAlign,Te(m.reserveSpace,!g&&null,"center"===o.labelAlign||null,o.reserveSpaceDefault)&&u.forEach(function(e){C=Math.max(c[e].getLabelSize(),C)}),o.staggerLines&&(C*=o.staggerLines),o.labelOffset=C*(o.opposite?-1:1)):Se(c,function(e,t){e.destroy(),delete c[t]}),(null==f?void 0:f.text)&&!1!==f.enabled&&(o.addTitle(e),e&&!g&&!1!==f.reserveSpace&&(o.titleOffset=x=o.axisTitle.getBBox()[a?"height":"width"],w=ee(t=f.offset)?0:Te(f.margin,a?5:10))),o.renderLine(),o.offset=b*Te(l.offset,y[s]?y[s]+(l.margin||0):0),o.tickRotCorr=o.tickRotCorr||{x:0,y:0},r=0===s?-o.labelMetrics().h:2===s?o.tickRotCorr.y:0,n=Math.abs(C)+w,C&&(n-=r,n+=b*(a?Te(m.y,o.tickRotCorr.y+b*m.distance):Te(m.x,b*m.distance))),o.axisTitleMargin=Te(t,n),o.getMaxLabelDimensions&&(o.maxLabelDimensions=o.getMaxLabelDimensions(c,u)),"colorAxis"!==d&&v){let e=this.tickSize("tick");y[s]=Math.max(y[s],(o.axisTitleMargin||0)+x+b*o.offset,n,(null==u?void 0:u.length)&&e?e[0]+b*o.offset:0);let t=!o.axisLine||l.offset?0:o.axisLine.strokeWidth()/2;v[h]=Math.max(v[h],t)}le(this,"afterGetOffset")}getLinePath(e){let t=this.chart,n=this.opposite,r=this.offset,o=this.horiz,i=this.left+(n?this.width:0)+r,a=t.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(e*=-1),t.renderer.crispLine([["M",o?this.left:i,o?a:this.top],["L",o?t.chartWidth-this.right:i,o?a:t.chartHeight-this.bottom]],e)}renderLine(){!this.axisLine&&(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(e){let t=this.horiz,n=this.left,r=this.top,o=this.len,i=this.options.title,a=t?n:r,l=this.opposite,s=this.offset,c=i.x,u=i.y,d=this.chart.renderer.fontMetrics(e),h=e?Math.max(e.getBBox(!1,0).height-d.h-1,0):0,p={low:a+(t?0:o),middle:a+o/2,high:a+(t?o:0)}[i.align],f=(t?r+this.height:n)+(t?1:-1)*(l?-1:1)*(this.axisTitleMargin||0)+[-h,h,d.f,-h][this.side],m={x:t?p+c:f+(l?this.width:0)+s+c,y:t?f+u-(l?this.height:0)+s:p+u};return le(this,"afterGetTitlePosition",{titlePosition:m}),m}renderMinorTick(e,t){let n=this.minorTicks;n[e]||(n[e]=new pn(this,e,"minor")),t&&n[e].isNew&&n[e].render(null,!0),n[e].render(null,!1,1)}renderTick(e,t,n){var r;let o=this.isLinked,i=this.ticks;(!o||e>=this.min&&e<=this.max||(null==(r=this.grid)?void 0:r.isColumn))&&(i[e]||(i[e]=new pn(this,e)),n&&i[e].isNew&&i[e].render(t,!0,-1),i[e].render(t))}render(){let e,t,n=this,r=n.chart,o=n.logarithmic,i=r.renderer,a=n.options,l=n.isLinked,s=n.tickPositions,c=n.axisTitle,u=n.ticks,d=n.minorTicks,h=n.alternateBands,p=a.stackLabels,f=a.alternateGridColor,m=a.crossing,g=n.tickmarkOffset,y=n.axisLine,v=n.showAxis,b=fn(i.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[u,d,h].forEach(function(e){Se(e,function(e){e.isActive=!1})}),ye(m)){let e=this.isXAxis?r.yAxis[0]:r.xAxis[0],t=[1,-1,-1,1][this.side];if(e){let r=e.toPixels(m,!0);n.horiz&&(r=e.len-r),n.offset=t*r}}if(n.hasData()||l){let i=n.chart.hasRendered&&n.old&&ye(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach(function(e){n.renderMinorTick(e,i)}),s.length&&(s.forEach(function(e,t){n.renderTick(e,t,i)}),g&&(0===n.min||n.single)&&(u[-1]||(u[-1]=new pn(n,-1,null,!0)),u[-1].render(-1))),f&&s.forEach(function(i,a){t=void 0!==s[a+1]?s[a+1]+g:n.max-g,a%2==0&&i<n.max&&t<=n.max+(r.polar?-g:g)&&(h[i]||(h[i]=new H.PlotLineOrBand(n,{})),e=i+g,h[i].options={from:o?o.lin2log(e):e,to:o?o.lin2log(t):t,color:f,className:"highcharts-alternate-grid"},h[i].render(),h[i].isActive=!0)}),n._addedPlotLB||(n._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(e){n.addPlotBandOrLine(e)}))}[u,d,h].forEach(function(e){let t=[],n=b.duration;Se(e,function(e,n){e.isActive||(e.render(n,!1,0),e.isActive=!1,t.push(n))}),Le(function(){let n=t.length;for(;n--;)e[t[n]]&&!e[t[n]].isActive&&(e[t[n]].destroy(),delete e[t[n]])},e!==h&&r.hasRendered&&n?n:0)}),y&&(y[y.isPlaced?"animate":"attr"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[v?"show":"hide"](v)),c&&v&&(c[c.isNew?"attr":"animate"](n.getTitlePosition(c)),c.isNew=!1),(null==p?void 0:p.enabled)&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,le(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})}getKeepProps(){return this.keepProps||wn.keepProps}destroy(e){let t=this,n=t.plotLinesAndBands,r=this.eventOptions;if(le(this,"destroy",{keepEvents:e}),e||Ae(t),[t.ticks,t.minorTicks,t.alternateBands].forEach(function(e){te(e)}),n){let e=n.length;for(;e--;)n[e].destroy()}for(let e in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),t.plotLinesAndBandsGroups)t.plotLinesAndBandsGroups[e]=t.plotLinesAndBandsGroups[e].destroy();Se(t,function(e,n){-1===t.getKeepProps().indexOf(n)&&delete t[n]}),this.eventOptions=r}drawCrosshair(e,t){var n;let r,o,i,a,l=this.crosshair,s=(null==l?void 0:l.snap)??!0,c=this.chart,u=this.cross;if(le(this,"drawCrosshair",{e:e,point:t}),e||(e=null==(n=this.cross)?void 0:n.e),l&&!1!==(ee(t)||!s)){if(clearTimeout(this.crossShowTimer),s?ee(t)&&(o=Te("colorAxis"!==this.coll?t.crosshairPos:null,this.isXAxis?t.plotX:this.len-t.plotY)):o=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),ee(o)&&(a={value:t&&(this.isXAxis?t.x:Te(t.stackY,t.y)),translatedValue:o},c.polar&&ie(a,{isCrosshair:!0,chartX:null==e?void 0:e.chartX,chartY:null==e?void 0:e.chartY,point:t}),r=this.getPlotLinePath(a)||null),!ee(r))return void this.hideCrosshair();i=this.categories&&!this.isRadial,this.crossShowTimer=Le(()=>{let t=this.cross;t||(this.cross=t=c.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(i?"category ":"thin ")+(l.className||"")).attr({zIndex:Te(l.zIndex,2)}).add(),!c.styledMode&&(t.attr({stroke:l.color||(i?tt.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":Te(l.width,1)}).css({"pointer-events":"none"}),l.dashStyle&&t.attr({dashstyle:l.dashStyle}))),t.show().animate({d:r},fn(null==l?void 0:l.animation)),i&&!l.width&&t.attr({"stroke-width":this.transA}),this.cross&&(this.cross.e=e)},(!u||"hidden"===u.attr("visibility"))&&l.showDelay||0)}else this.hideCrosshair();le(this,"afterDrawCrosshair",{e:e,point:t})}hideCrosshair(){clearTimeout(this.crossShowTimer),this.cross&&this.cross.hide(),le(this,"afterHideCrosshair")}update(e,t){let n=this.chart;e=Ce(this.userOptions,e),this.destroy(!0),this.init(n,e),n.isDirtyBox=!0,Te(t,!0)&&n.redraw()}remove(e){let t=this.chart,n=this.coll,r=this.series,o=r.length;for(;o--;)r[o]&&r[o].remove(!1);oe(t.axes,this),oe(t[n]||[],this),t.orderItems(n),this.destroy(),t.isDirtyBox=!0,Te(e,!0)&&t.redraw()}setTitle(e,t){this.update({title:e},t)}setCategories(e,t){this.update({categories:e},t)}}wn.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],function(e){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function n(){"datetime"===this.type?this.dateTime||(this.dateTime=new r(this)):this.dateTime=void 0}e.compose=function(e){return e.keepProps.includes("dateTime")||(e.keepProps.push("dateTime"),e.prototype.getTimeTicks=t,V(e,"afterSetType",n)),e};class r{constructor(e){this.axis=e}normalizeTimeTickInterval(e,t){let n,r,o=t||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],i=o[o.length-1],a=Fe[i[0]],l=i[1];for(n=0;n<o.length;n++)if(a=Fe[(i=o[n])[0]],l=i[1],o[n+1]){let t=(a*l[l.length-1]+Fe[o[n+1][0]])/2;if(e<=t){r=t/e;break}}return a===Fe.year&&e<5*a&&(l=[1,2,5]),{unitRange:a,count:ke(e/a,l,"year"===i[0]?Math.max(ue(e/a),1):1),unitName:i[0],match:r}}getXDateFormat(e,t){let{axis:n}=this,r=n.chart.time;return n.closestPointRange?r.getDateFormat(n.closestPointRange,e,n.options.startOfWeek,t)||r.resolveDTLFormat(t.year).main:r.resolveDTLFormat(t.day).main}}e.Additions=r}(P||(P={}));let Cn=P;!function(e){function t(){"logarithmic"!==this.type?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new r(this))}function n(){let e=this.logarithmic;e&&(this.lin2val=function(t){return e.lin2log(t)},this.val2lin=function(t){return e.log2lin(t)})}e.compose=function(e){return e.keepProps.includes("logarithmic")||(e.keepProps.push("logarithmic"),V(e,"afterSetType",t),V(e,"afterInit",n)),e};class r{constructor(e){this.axis=e}getLogTickPositions(e,t,n,r){let o=this.axis,i=o.len,a=o.options,l=[];if(r||(this.minorAutoInterval=void 0),e>=.5)e=Math.round(e),l=o.getLinearTickPositions(e,t,n);else if(e>=.08){let o,i,a,s,c,u,d;for(o=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],i=Math.floor(t);i<n+1&&!d;i++)for(a=0,s=o.length;a<s&&!d;a++)(c=this.log2lin(this.lin2log(i)*o[a]))>t&&(!r||u<=n)&&void 0!==u&&l.push(u),u>n&&(d=!0),u=c}else{let s=this.lin2log(t),c=this.lin2log(n),u=r?o.getMinorTickInterval():a.tickInterval,d=a.tickPixelInterval/(r?5:1),h=r?i/o.tickPositions.length:i;e=ke(e=Te("auto"===u?null:u,this.minorAutoInterval,(c-s)*d/(h||1))),l=o.getLinearTickPositions(e,s,c).map(this.log2lin),r||(this.minorAutoInterval=e/5)}return r||(o.tickInterval=e),l}lin2log(e){return Math.pow(10,e)}log2lin(e){return Math.log(e)/Math.LN10}}e.Additions=r}(M||(M={}));let kn=M;!function(e){let t;function n(e){return this.addPlotBandOrLine(e,"plotBands")}function r(e,n){let r=this.userOptions,o=new t(this,e);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(e=>{this.addPlotBandOrLine(e)})),n){let t=r[n]||[];t.push(e),r[n]=t}this.plotLinesAndBands.push(o)}return o}function o(e){return this.addPlotBandOrLine(e,"plotLines")}function i(e,t,n){n=n||this.options;let r,o,i=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),a=[],l=this.horiz,s=!ye(this.min)||!ye(this.max)||e<this.min&&t<this.min||e>this.max&&t>this.max,c=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),u=1;if(c&&i)for(s&&(o=c.toString()===i.toString(),u=0),r=0;r<c.length;r+=2){let e=c[r],t=c[r+1],n=i[r],s=i[r+1];("M"===e[0]||"L"===e[0])&&("M"===t[0]||"L"===t[0])&&("M"===n[0]||"L"===n[0])&&("M"===s[0]||"L"===s[0])&&(l&&n[1]===e[1]?(n[1]+=u,s[1]+=u):l||n[2]!==e[2]||(n[2]+=u,s[2]+=u),a.push(["M",e[1],e[2]],["L",t[1],t[2]],["L",s[1],s[2]],["L",n[1],n[2]],["Z"])),a.isFlat=o}return a}function a(e){this.removePlotBandOrLine(e)}function l(e){let t=this.plotLinesAndBands,n=this.options,r=this.userOptions;if(t){let o=t.length;for(;o--;)t[o].id===e&&t[o].destroy();[n.plotLines||[],r.plotLines||[],n.plotBands||[],r.plotBands||[]].forEach(function(t){var n;for(o=t.length;o--;)(null==(n=t[o])?void 0:n.id)===e&&oe(t,t[o])})}}function s(e){this.removePlotBandOrLine(e)}e.compose=function(e,c){let u=c.prototype;return u.addPlotBand||(t=e,ie(u,{addPlotBand:n,addPlotLine:o,addPlotBandOrLine:r,getPlotBandPath:i,removePlotBand:a,removePlotLine:s,removePlotBandOrLine:l})),c}}(O||(O={}));let Sn=O;class En{static compose(e,t){return V(e,"afterInit",function(){this.labelCollectors.push(()=>{var e;let t=[];for(let n of this.axes)for(let{label:r,options:o}of n.plotLinesAndBands)r&&!(null==(e=null==o?void 0:o.label)?void 0:e.allowOverlap)&&t.push(r);return t})}),Sn.compose(En,t)}constructor(e,t){this.axis=e,this.options=t,this.id=t.id}render(){le(this,"render");let e,{axis:t,options:n}=this,{horiz:r,logarithmic:o}=t,{color:i,events:a,zIndex:l=0}=n,{renderer:s,time:c}=t.chart,u={},d=c.parse(n.to),h=c.parse(n.from),p=c.parse(n.value),f=n.borderWidth,m=n.label,{label:g,svgElem:y}=this,v=[],b=ee(h)&&ee(d),x=ee(p),w=!y,C={class:"highcharts-plot-"+(b?"band ":"line ")+(n.className||"")},k=b?"bands":"lines";if(!t.chart.styledMode&&(x?(C.stroke=i||"#999999",C["stroke-width"]=Te(n.width,1),n.dashStyle&&(C.dashstyle=n.dashStyle)):b&&(C.fill=i||"#e6e9ff",f&&(C.stroke=n.borderColor,C["stroke-width"]=f))),u.zIndex=l,k+="-"+l,(e=t.plotLinesAndBandsGroups[k])||(t.plotLinesAndBandsGroups[k]=e=s.g("plot-"+k).attr(u).add()),y||(this.svgElem=y=s.path().attr(C).add(e)),ee(p))v=t.getPlotLinePath({value:(null==o?void 0:o.log2lin(p))??p,lineWidth:y.strokeWidth(),acrossPanes:n.acrossPanes});else{if(!ee(h)||!ee(d))return;v=t.getPlotBandPath((null==o?void 0:o.log2lin(h))??h,(null==o?void 0:o.log2lin(d))??d,n)}return!this.eventsAdded&&a&&(Se(a,(e,t)=>{null==y||y.on(t,e=>{a[t].apply(this,[e,this])})}),this.eventsAdded=!0),!w&&y.d||!(null==v?void 0:v.length)?y&&(v?(y.show(),y.animate({d:v})):y.d&&(y.hide(),g&&(this.label=g=g.destroy()))):y.attr({d:v}),m&&(ee(m.text)||ee(m.formatter))&&(null==v?void 0:v.length)&&t.width>0&&t.height>0&&!v.isFlat?(m=Ce({align:r&&b?"center":void 0,x:r?!b&&4:10,verticalAlign:!r&&b?"middle":void 0,y:r?b?16:10:b?6:-4,rotation:r&&!b?90:0,...b?{inside:!0}:{}},m),this.renderLabel(m,v,b,l)):g&&g.hide(),this}renderLabel(e,t,n,r){var o,i,a;let l=this.axis,s=l.chart.renderer,c=e.inside,u=this.label;u||(this.label=u=s.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(n?"band":"line")+"-label "+(e.className||""),zIndex:r}),l.chart.styledMode||u.css(Ce({color:null==(i=null==(o=l.chart.options.title)?void 0:o.style)?void 0:i.color,fontSize:"0.8em",textOverflow:n&&!c?"":"ellipsis"},e.style)),u.add());let d=t.xBounds||[t[0][1],t[1][1],n?t[2][1]:t[0][1]],h=t.yBounds||[t[0][2],t[1][2],n?t[2][2]:t[0][2]],p=U(d),f=U(h),m=q(d)-p;u.align(e,!1,{x:p,y:f,width:m,height:q(h)-f}),u.alignAttr.y-=s.fontMetrics(u).b,(!u.alignValue||"left"===u.alignValue||ee(c))&&u.css({width:((null==(a=e.style)?void 0:a.width)||(n&&c?m:90===u.rotation?l.height-(u.alignAttr.y-l.top):(e.clip?l.width+l.left:l.chart.chartWidth)-u.alignAttr.x))+"px"}),u.show(!0)}getLabelText(e){return ee(e.formatter)?e.formatter.call(this,this):e.text}destroy(){oe(this.axis.plotLinesAndBands,this),delete this.axis,te(this)}}let{animObject:$n}=lt,{format:Tn}=wt,{composed:Pn,dateFormats:Mn,doc:On,isSafari:Nn}=H,{distribute:An}=kt,In=e=>{clearTimeout(e.hideTimer),clearTimeout(e.showTimer)};class Rn{constructor(e,t,n){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=e,this.init(e,t),this.pointer=n}bodyFormatter(e){return e.map(e=>{let t=e.series.tooltipOptions,n=e.formatPrefix||"point";return(t[n+"Formatter"]||e.tooltipFormatter).call(e,t[n+"Format"]||"",e)})}cleanSplit(e){this.chart.series.forEach(function(t){let n=null==t?void 0:t.tt;n&&(!n.isActive||e?t.tt=n.destroy():n.isActive=!1)})}defaultFormatter(e){let t,n=this.points||Ie(this);return(t=(t=[e.headerFooterFormatter(n[0])]).concat(e.bodyFormatter(n))).push(e.headerFooterFormatter(n[0],!0)),t}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),ne(this.container)),fe(this.hideTimer),In(this)}getAnchor(e,t){var n;let r,{chart:o,pointer:i}=this,a=o.inverted,l=o.plotTop,s=o.plotLeft;if((null==(n=(e=Ie(e))[0].series)?void 0:n.yAxis)&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&t)void 0===t.chartX&&(t=i.normalize(t)),r=[t.chartX-s,t.chartY-l];else if(e[0].tooltipPos)r=e[0].tooltipPos;else{let n=0,o=0;e.forEach(function(e){let t=e.pos(!0);t&&(n+=t[0],o+=t[1])}),n/=e.length,o/=e.length,this.shared&&e.length>1&&t&&(a?n=t.chartX:o=t.chartY),r=[n-s,o-l]}let c={point:e[0],ret:r};return le(this,"getAnchor",c),c.ret.map(Math.round)}getClassName(e,t,n){let r=this.options,o=e.series,i=o.options;return[r.className,"highcharts-label",n&&"highcharts-tooltip-header",t?"highcharts-tooltip-box":"highcharts-tooltip",!n&&"highcharts-color-"+Te(e.colorIndex,o.colorIndex),null==i?void 0:i.className].filter(ve).join(" ")}getLabel({anchorX:e,anchorY:t}={anchorX:0,anchorY:0}){let n=this,r=this.chart.styledMode,o=this.options,i=this.split&&this.allowShared,a=this.container,l=this.chart.renderer;if(this.label){let e=!this.label.hasClass("highcharts-label");(!i&&e||i&&!e)&&this.destroy()}if(!this.label){if(this.outside){let e=this.chart,t=e.options.chart.style,n=Ct.getRendererType();this.container=a=H.doc.createElement("div"),a.className="highcharts-tooltip-container "+(e.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),J(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,((null==t?void 0:t.zIndex)||0)+3)}),this.renderer=l=new n(a,0,0,t,void 0,void 0,l.styledMode)}if(i?this.label=l.g("tooltip"):(this.label=l.label("",e,t,o.shape||"callout",void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),r||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth||0}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),n.outside){let e=this.label;[e.xSetter,e.ySetter].forEach((t,r)=>{e[r?"ySetter":"xSetter"]=o=>{t.call(e,n.distance),e[r?"y":"x"]=o,a&&(a.style[r?"top":"left"]=`${o}px`)}})}this.label.attr({zIndex:8}).shadow(o.shadow??!o.fixed).add()}return a&&!a.parentElement&&H.doc.body.appendChild(a),this.label}getPlayingField(){let{body:e,documentElement:t}=On,{chart:n,distance:r,outside:o}=this;return{width:o?Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)-2*r-2:n.chartWidth,height:o?Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight):n.chartHeight}}getPosition(e,t,n){var r,o;let i,{distance:a,chart:l,outside:s,pointer:c}=this,{inverted:u,plotLeft:d,plotTop:h,polar:p}=l,{plotX:f=0,plotY:m=0}=n,g={},y=u&&n.h||0,{height:v,width:b}=this.getPlayingField(),x=c.getChartPosition(),w=n=>{let r="x"===n;return[n,r?b:v,r?e:t].concat(s?[r?e*x.scaleX:t*x.scaleY,r?x.left-a+(f+d)*x.scaleX:x.top-a+(m+h)*x.scaleY,0,r?b:v]:[r?e:t,r?f+d:m+h,r?d:h,r?d+l.plotWidth:h+l.plotHeight])},C=w("y"),k=w("x"),S=!!n.negative;!p&&(null==(o=null==(r=l.hoverSeries)?void 0:r.yAxis)?void 0:o.reversed)&&(S=!S);let E=!this.followPointer&&Te(n.ttBelow,!p&&!u===S),$=function(e,t,n,r,o,i,l){let c=s?"y"===e?a*x.scaleY:a*x.scaleX:a,u=(n-r)/2,d=r<o-a,h=o+a+r<t,p=o-c-n+u,f=o+c-u;if(E&&h)g[e]=f;else if(!E&&d)g[e]=p;else if(d)g[e]=Math.min(l-r,p-y<0?p:p-y);else{if(!h)return g[e]=0,!1;g[e]=Math.max(i,f+y+n>t?f:f+y)}},T=function(e,t,n,r,o){if(o<a||o>t-a)return!1;g[e]=o<n/2?1:o>t-r/2?t-r-2:o-n/2},P=function(e){[C,k]=[k,C],i=e},M=()=>{!1!==$.apply(0,C)?!1!==T.apply(0,k)||i||(P(!0),M()):i?g.x=g.y=0:(P(!0),M())};return(u&&!p||this.len>1)&&P(),M(),s&&(g.x-=x.left,g.y-=x.top),g}getFixedPosition(e,t,n){var r;let o=n.series,{chart:i,options:a,split:l}=this,s=a.position,c=s.relativeTo,u=a.shared||(null==(r=null==o?void 0:o.yAxis)?void 0:r.isRadial)&&("pane"===c||!c)?"plotBox":c,d="chart"===u?i.renderer:i[u]||i.getClipBox(o,!0);return{x:d.x+(d.width-e)*se(s.align)+s.x,y:d.y+(d.height-t)*se(s.verticalAlign)+(!l&&s.y||0)}}hide(e){let t=this;In(this),e=Te(e,this.options.hideDelay),this.isHidden||(this.hideTimer=Le(function(){let n=t.getLabel();t.getLabel().animate({opacity:0},{duration:e?150:e,complete:()=>{n.hide(),t.container&&t.container.remove()}}),t.isHidden=!0},e))}init(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=Te(t.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))}shouldStickOnContact(e){return!(this.followPointer||!this.options.stickOnContact||e&&!this.pointer.inClass(e.target,"highcharts-tooltip"))}move(e,t,n,r){let{followPointer:o,options:i}=this,a=$n(!o&&!this.isHidden&&!i.fixed&&i.animation),l={x:e,y:t};o||(this.len||0)>1?l.anchorX=l.anchorY=NaN:(l.anchorX=n,l.anchorY=r),a.step=()=>this.drawTracker(),this.getLabel().animate(l,a)}refresh(e,t){let n=this,{chart:r,options:o,pointer:i,shared:a}=this,l=Ie(e),s=l[0],c=o.format,u=o.formatter||n.defaultFormatter,d=r.styledMode,h=n.allowShared;if(!o.enabled||!s.series)return;In(this),n.allowShared=!(!be(e)&&e.series&&e.series.noSharedTooltip),h=h&&!n.allowShared,n.followPointer=!n.split&&s.series.tooltipOptions.followPointer;let p=n.getAnchor(e,t),f=p[0],m=p[1];a&&n.allowShared&&(i.applyInactiveState(l),l.forEach(e=>e.setState("hover")),s.points=l),this.len=l.length;let g=ve(c)?Tn(c,s,r):u.call(s,n,s);s.points=void 0;let y=s.series;this.distance=Te(y.tooltipOptions.distance,16),!1===g?this.hide():this.showTimer=Le(()=>{if(n.split&&n.allowShared)n.renderSplit(g,l);else{let e=f,a=m;if(t&&i.isDirectTouch&&(e=t.chartX-r.plotLeft,a=t.chartY-r.plotTop),!r.polar&&!1!==y.options.clip&&!l.some(t=>i.isDirectTouch||t.series.shouldShowTooltip(e,a)))return void n.hide();{let e=n.getLabel(h&&n.tt||{});(!o.style.width||d)&&e.css({width:(this.outside?this.getPlayingField():r.spacingBox).width-2*o.padding+"px"}),e.attr({class:n.getClassName(s),text:be(g)?g.join(""):g}),this.outside&&e.attr({x:X(e.x||0,0,this.getPlayingField().width-(e.width||0)-1)}),d||e.attr({stroke:o.borderColor||s.color||y.color||"#666666"}),n.updatePosition({plotX:f,plotY:m,negative:s.negative,ttBelow:s.ttBelow,series:y,h:p[2]||0})}}n.isHidden&&n.label&&n.label.attr({opacity:1}).show(),n.isHidden=!1},n.isHidden&&o.showDelay||0),le(this,"refresh")}renderSplit(e,t){var n,r;let o=this,{chart:i,chart:{chartWidth:a,chartHeight:l,plotHeight:s,plotLeft:c,plotTop:u,scrollablePixelsY:d=0,scrollablePixelsX:h,styledMode:p},distance:f,options:m,options:{fixed:g,position:y,positioner:v},pointer:b}=o,{scrollLeft:x=0,scrollTop:w=0}=(null==(n=i.scrollablePlotArea)?void 0:n.scrollingContainer)||{},C=o.outside&&"number"!=typeof h?On.documentElement.getBoundingClientRect():{left:x,right:x+a},k=o.getLabel(),S=this.renderer||i.renderer,E=!!(null==(r=i.xAxis[0])?void 0:r.opposite),{left:$,top:T}=b.getChartPosition(),P=v||g,M=u+w,O=0,N=s-d,A=function(e,t,n,r,i=[0,0],a=!0){let l,s;if(n.isHeader)s=E?0:N,l=X(i[0]-e/2,C.left,C.right-e-(o.outside?$:0));else if(g&&n){let r=o.getFixedPosition(e,t,n);l=r.x,s=r.y-M}else s=i[1]-M,l=X(l=a?i[0]-e-f:i[0]+f,a?l:C.left,C.right);return{x:l,y:s}};ve(e)&&(e=[!1,e]);let I=e.slice(0,t.length+1).reduce(function(e,n,r){if(!1!==n&&""!==n){let i=t[r-1]||{isHeader:!0,plotX:t[0].plotX,plotY:s,series:{}},a=i.isHeader,l=a?o:i.series,d=l.tt=function(e,t,n){let r=e,{isHeader:i,series:a}=t,l=a.tooltipOptions||m;if(!r){let e={padding:l.padding,r:l.borderRadius};p||(e.fill=l.backgroundColor,e["stroke-width"]=l.borderWidth??(g&&!i?0:1)),r=S.label("",0,0,l[i?"headerShape":"shape"]||(g&&!i?"rect":"callout"),void 0,void 0,l.useHTML).addClass(o.getClassName(t,!0,i)).attr(e).add(k)}return r.isActive=!0,r.attr({text:n}),p||r.css(l.style).attr({stroke:l.borderColor||t.color||a.color||"#333333"}),r}(l.tt,i,n.toString()),h=d.getBBox(),y=h.width+d.strokeWidth();a&&(O=h.height,N+=O,E&&(M-=O));let{anchorX:b,anchorY:x}=function(e){let t,n,{isHeader:r,plotX:o=0,plotY:i=0,series:a}=e;if(r)t=Math.max(c+o,c),n=u+s/2;else{let{xAxis:e,yAxis:r}=a;t=e.pos+X(o,-f,e.len+f),a.shouldShowTooltip(0,r.pos-u+i,{ignoreX:!0})&&(n=r.pos+i)}return{anchorX:t=X(t,C.left-f,C.right+f),anchorY:n}}(i);if("number"==typeof x){let t=h.height+1,n=(v||A).call(o,y,t,i,o,[b,x]);e.push({align:P?0:void 0,anchorX:b,anchorY:x,boxWidth:y,point:i,rank:Te(n.rank,+!!a),size:t,target:n.y,tt:d,x:n.x})}else d.isActive=!1}return e},[]);!P&&I.some(e=>{let{outside:t}=o,n=(t?$:0)+e.anchorX;return n<C.left&&n+e.boxWidth<C.right||n<$-C.left+e.boxWidth&&C.right-n>n})&&(I=I.map(e=>{let{x:t,y:n}=A.call(this,e.boxWidth,e.size,e.point,void 0,[e.anchorX,e.anchorY],!1);return ie(e,{target:n,x:t})})),o.cleanSplit(),An(I,N);let R={left:$,right:$};I.forEach(function(e){let{x:t,boxWidth:n,isHeader:r}=e;!r&&(o.outside&&$+t<R.left&&(R.left=$+t),!r&&o.outside&&R.left+n>R.right&&(R.right=$+t))}),I.forEach(function(e){let{x:t,anchorX:n,anchorY:r,pos:i,point:{isHeader:a}}=e,l={visibility:void 0===i?"hidden":"inherit",x:t,y:(i||0)+M+(g&&y.y||0),anchorX:n,anchorY:r};if(o.outside&&t<n){let e=$-R.left;e>0&&(a||(l.x=t+e,l.anchorX=n+e),a&&(l.x=(R.right-R.left)/2,l.anchorX=n+e))}e.tt.attr(l)});let{container:L,outside:B,renderer:z}=o;if(B&&L&&z){let{width:e,height:t,x:n,y:r}=k.getBBox();z.setSize(e+n,t+r,!1),L.style.left=R.left+"px",L.style.top=T+"px"}Nn&&k.attr({opacity:1===k.opacity?.999:1})}drawTracker(){let e=this;if(!this.shouldStickOnContact())return void(e.tracker&&(e.tracker=e.tracker.destroy()));let t=e.chart,n=e.label,r=e.shared?t.hoverPoints:t.hoverPoint;if(!n||!r)return;let o={x:0,y:0,width:0,height:0},i=this.getAnchor(r),a=n.getBBox();i[0]+=t.plotLeft-(n.translateX||0),i[1]+=t.plotTop-(n.translateY||0),o.x=Math.min(0,i[0]),o.y=Math.min(0,i[1]),o.width=i[0]<0?Math.max(Math.abs(i[0]),a.width-i[0]):Math.max(Math.abs(i[0]),a.width),o.height=i[1]<0?Math.max(Math.abs(i[1]),a.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),a.height),e.tracker?e.tracker.attr(o):(e.tracker=n.renderer.rect(o).addClass("highcharts-tracker").add(n),V(e.tracker.element,"mouseenter",()=>In(e)),t.styledMode||e.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(e,t){let n=e.series,r=n.tooltipOptions,o=n.xAxis,i=null==o?void 0:o.dateTime,a={isFooter:t,point:e},l=r.xDateFormat||"",s=r[t?"footerFormat":"headerFormat"];return le(this,"headerFormatter",a,function(t){if(i&&!l&&ye(e.key)&&(l=i.getXDateFormat(e.key,r.dateTimeLabelFormats)),i&&l){if(we(l)){let e=l;Mn[0]=t=>n.chart.time.dateFormat(e,t),l="%0"}(e.tooltipDateKeys||["key"]).forEach(e=>{s=s.replace(RegExp("point\\."+e+"([ \\)}])"),`(point.${e}:${l})$1`)})}n.chart.styledMode&&(s=this.styledModeFormat(s)),t.text=Tn(s,e,this.chart)}),a.text||""}update(e){this.destroy(),this.init(this.chart,Ce(!0,this.options,e))}updatePosition(e){var t;let n,{chart:r,container:o,distance:i,options:a,pointer:l,renderer:s}=this,{height:c=0,width:u=0}=this.getLabel(),{fixed:d,positioner:h}=a,{left:p,top:f,scaleX:m,scaleY:g}=l.getChartPosition(),y=(h||d&&this.getFixedPosition||this.getPosition).call(this,u,c,e,this),v=H.doc,b=(e.plotX||0)+r.plotLeft,x=(e.plotY||0)+r.plotTop;if(s&&o){let{scrollLeft:e=0,scrollTop:l=0}=(null==(t=r.scrollablePlotArea)?void 0:t.scrollingContainer)||{};y.x+=e+p,y.y+=l+f,n=(a.borderWidth||0)+2*i+2,s.setSize(X(u+n,0,v.documentElement.clientWidth)-1,c+n,!1),(1!==m||1!==g)&&(J(o,{transform:`scale(${m}, ${g})`}),b*=m,x*=g),b+=p-y.x,x+=f-y.y}this.move(Math.round(y.x),Math.round(y.y||0),b,x)}}(y=Rn||(Rn={})).compose=function(e){Me(Pn,"Core.Tooltip")&&V(e,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new y(e,e.options.tooltip,this))})};let Ln=Rn,{animObject:Bn}=lt,{defaultOptions:zn}=Ze,{format:Dn}=wt;class jn{constructor(e,t,n){var r,o;this.formatPrefix="point",this.visible=!0,this.point=this,this.series=e,this.applyOptions(t,n),this.id??(this.id=He()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=e.options.nullInteraction),e.chart.pointCount++,this.category=(null==(o=null==(r=e.xAxis)?void 0:r.categories)?void 0:o[this.x])??this.x,this.key=this.name??this.category,le(this,"afterInit")}animateBeforeDestroy(){let e=this,t={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(n){e[n]=e[n].animate("dataLabel"===n?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:t)}),n.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(ie({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})}applyOptions(e,t){let n=this.series,r=n.options.pointValKey||n.pointValKey;return ie(this,e=jn.prototype.optionsToObject.call(this,e)),this.options?this.options=n.chart.options.chart.allowMutatingData?ie(this.options,e):Ce(this.options,e):this.options=e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,r&&(this.y=jn.prototype.getNestedProperty.call(this,r)),this.selected&&(this.state="select"),"name"in this&&void 0===t&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n?this.x=t??n.autoIncrement():ye(e.x)&&n.options.relativeXValue?this.x=n.autoIncrement(e.x):"string"==typeof this.x&&(t??(t=n.chart.time.parse(this.x)),ye(t)&&(this.x=t)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let e=this,t=e.series,n=t.chart,r=t.options.dataSorting,o=n.hoverPoints,i=Bn(e.series.chart.renderer.globalAnimation),a=()=>{for(let t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(Ae(e),e.destroyElements()),e)delete e[t]};e.legendItem&&n.legend.destroyItem(e),o&&(e.setState(),oe(o,e),o.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),(null==r?void 0:r.enabled)?(this.animateBeforeDestroy(),Le(a,i.duration)):a(),n.pointCount--}this.destroyed=!0}destroyElements(e){let t=this,n=t.getGraphicalProps(e);n.singular.forEach(function(e){t[e]=t[e].destroy()}),n.plural.forEach(function(e){t[e].forEach(function(e){(null==e?void 0:e.element)&&e.destroy()}),delete t[e]})}firePointEvent(e,t,n){let r=this,o=this.series.options;r.manageEvent(e),"click"===e&&o.allowPointSelect&&(n=function(e){!r.destroyed&&r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),le(r,e,t,n)}getClassName(){var e;return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative&&!1!==this.series.options.negativeColor?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+((null==(e=this.zone)?void 0:e.className)?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){let t,n,r=this,o=[],i={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","connector"),e.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper"),n=o.length;n--;)r[t=o[n]]&&i.singular.push(t);return["graphic","dataLabel"].forEach(function(t){let n=t+"s";e[t]&&r[n]&&i.plural.push(n)}),i}getNestedProperty(e){if(e)return 0===e.indexOf("custom.")?de(e,this.options):this[e]}getZone(){let e,t=this.series,n=t.zones,r=t.zoneAxis||"y",o=0;for(e=n[0];this[r]>=e.value;)e=n[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),(null==e?void 0:e.color)&&!this.options.color?this.color=e.color:this.color=this.nonZonedColor,e}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}isValid(){return(ye(this.x)||this.x instanceof Date)&&ye(this.y)}optionsToObject(e){var t;let n,r=this.series,o=r.options.keys,i=o||r.pointArrayMap||["y"],a=i.length,l={},s=0,c=0;if(ye(e)||null===e)l[i[0]]=e;else if(be(e))for(!o&&e.length>a&&("string"==(n=typeof e[0])?(null==(t=r.xAxis)?void 0:t.dateTime)?l.x=r.chart.time.parse(e[0]):l.name=e[0]:"number"===n&&(l.x=e[0]),s++);c<a;)o&&void 0===e[s]||(i[c].indexOf(".")>0?jn.prototype.setNestedProperty(l,e[s],i[c]):l[i[c]]=e[s]),s++,c++;else"object"==typeof e&&(l=e,e.dataLabels&&(r.hasDataLabels=()=>!0),e.marker&&(r._hasPointMarkers=!0));return l}pos(e,t=this.plotY){if(!this.destroyed){let{plotX:n,series:r}=this,{chart:o,xAxis:i,yAxis:a}=r,l=0,s=0;if(ye(n)&&ye(t))return e&&(l=i?i.pos:o.plotLeft,s=a?a.pos:o.plotTop),o.inverted&&i&&a?[a.len-t+s,i.len-n+l]:[n+l,t+s]}}resolveColor(){let e,t,n,r=this.series,o=r.chart.options.chart,i=r.chart.styledMode,a=o.colorCount;delete this.nonZonedColor,r.options.colorByPoint?(i||(e=(t=r.options.colors||r.chart.options.colors)[r.colorCounter],a=t.length),n=r.colorCounter,r.colorCounter++,r.colorCounter===a&&(r.colorCounter=0)):(i||(e=r.color),n=r.colorIndex),this.colorIndex=Te(this.options.colorIndex,n),this.color=Te(this.options.color,e)}setNestedProperty(e,t,n){return n.split(".").reduce(function(e,n,r,o){let i=o.length-1===r;return e[n]=i?t:we(e[n],!0)?e[n]:{},e[n]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){var t;let{chart:n,pointArrayMap:r=["y"],tooltipOptions:o}=this.series,{valueDecimals:i="",valuePrefix:a="",valueSuffix:l=""}=o;return n.styledMode&&(e=(null==(t=n.tooltip)?void 0:t.styledModeFormat(e))||e),r.forEach(t=>{t="{point."+t,(a||l)&&(e=e.replace(RegExp(t+"}","g"),a+t+"}"+l)),e=e.replace(RegExp(t+"}","g"),t+":,."+i+"f}")}),Dn(e,this,n)}update(e,t,n,r){let o,i=this,a=i.series,l=i.graphic,s=a.chart,c=a.options,u=c.data;function d(){i.applyOptions(e);let r=l&&i.hasMockGraphic,d=null===i.y?!r:r;l&&d&&(i.graphic=l.destroy(),delete i.hasMockGraphic),we(e,!0)&&((null==l?void 0:l.element)&&e&&e.marker&&void 0!==e.marker.symbol&&(i.graphic=l.destroy()),(null==e?void 0:e.dataLabels)&&i.dataLabel&&(i.dataLabel=i.dataLabel.destroy())),o=i.index;let h={};for(let e of a.dataColumnKeys())h[e]=i[e];a.dataTable.setRow(h,o),u&&!a.processedData&&(u[o]=we(u[o],!0)||we(e,!0)?i.options:e??u[o]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(s.isDirtyBox=!0),"point"===c.legendType&&(s.isDirtyLegend=!0),t&&s.redraw(n)}t=Te(t,!0),!1===r?d():i.firePointEvent("update",{options:e},d)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){let n=this,r=n.series,o=r.chart;e=Te(e,!n.selected),this.selectedStaging=e,n.firePointEvent(e?"select":"unselect",{accumulate:t},function(){n.selected=n.options.selected=e,r.options.data[r.data.indexOf(n)]=n.options,n.setState(e&&"select"),t||o.getSelectedPoints().forEach(function(e){let t=e.series;e.selected&&e!==n&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(o.hoverPoints&&t.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){let{inverted:t,pointer:n}=this.series.chart;n&&(e=e?n.normalize(e):n.getChartCoordinatesFromPoint(this,t),n.runPointActions(e,this))}onMouseOut(){let e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(e){e.setState()}),e.hoverPoints=e.hoverPoint=null}manageEvent(e){var t,n,r,o,i,a,l;let s=null==(t=Ce(this.series.options.point,this.options).events)?void 0:t[e];!xe(s)||(null==(n=this.hcEvents)?void 0:n[e])&&-1!==(null==(o=null==(r=this.hcEvents)?void 0:r[e])?void 0:o.map(e=>e.fn).indexOf(s))?this.importedUserEvent&&!s&&(null==(a=this.hcEvents)?void 0:a[e])&&(null==(l=this.hcEvents)?void 0:l[e].userEvent)&&(Ae(this,e),delete this.hcEvents[e],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null==(i=this.importedUserEvent)||i.call(this),this.importedUserEvent=V(this,e,s),this.hcEvents&&(this.hcEvents[e].userEvent=!0))}setState(e,t){var n,r;let o,i,a,l,s=this.series,c=this.state,u=s.options.states[e||"normal"]||{},d=zn.plotOptions[s.type].marker&&s.options.marker,h=d&&!1===d.enabled,p=(null==(n=null==d?void 0:d.states)?void 0:n[e||"normal"])||{},f=!1===p.enabled,m=this.marker||{},g=s.chart,y=d&&s.markerAttribs,v=s.halo,b=s.stateMarkerGraphic;if((e=e||"")===this.state&&!t||this.selected&&"select"!==e||!1===u.enabled||e&&(f||h&&!1===p.enabled)||e&&m.states&&m.states[e]&&!1===m.states[e].enabled)return;if(this.state=e,y&&(o=s.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(c&&this.graphic.removeClass("highcharts-point-"+c),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){i=s.pointAttribs(this,e),a=Te(g.options.chart.animation,u.animation);let t=i.opacity;s.options.inactiveOtherPoints&&ye(t)&&(this.dataLabels||[]).forEach(function(e){e&&!e.hasClass("highcharts-data-label-hidden")&&(e.animate({opacity:t},a),e.connector&&e.connector.animate({opacity:t},a))}),this.graphic.animate(i,a)}o&&this.graphic.animate(o,Te(g.options.chart.animation,p.animation,d.animation)),b&&b.hide()}else e&&p&&(l=m.symbol||s.symbol,b&&b.currentSymbol!==l&&(b=b.destroy()),o&&(b?b[t?"animate":"attr"]({x:o.x,y:o.y}):l&&(s.stateMarkerGraphic=b=g.renderer.symbol(l,o.x,o.y,o.width,o.height,Ce(d,p)).add(s.markerGroup),b.currentSymbol=l)),!g.styledMode&&b&&"inactive"!==this.state&&b.attr(s.pointAttribs(this,e))),b&&(b[e&&this.isInside?"show":"hide"](),b.element.point=this,b.addClass(this.getClassName(),!0));let x=u.halo,w=this.graphic||b,C=(null==w?void 0:w.visibility)||"inherit";(null==x?void 0:x.size)&&w&&"hidden"!==C&&!this.isCluster?(v||(s.halo=v=g.renderer.path().add(w.parentGroup)),v.show()[t?"animate":"attr"]({d:this.haloPath(x.size)}),v.attr({class:"highcharts-halo highcharts-color-"+Te(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:C,zIndex:-1}),v.point=this,g.styledMode||v.attr(ie({fill:this.color||s.color,"fill-opacity":x.opacity},pt.filterUserAttributes(x.attributes||{})))):(null==(r=null==v?void 0:v.point)?void 0:r.haloPath)&&!v.point.destroyed&&v.animate({d:v.point.haloPath(0)},null,v.hide),le(this,"afterSetState",{state:e})}haloPath(e){let t=this.pos();return t?this.series.chart.renderer.symbols.circle(Q(t[0],1)-e,t[1]-e,2*e,2*e):[]}}let _n=jn,{parse:Fn}=tt,{charts:Hn,composed:Wn,isTouchDevice:Kn}=H,Vn=(e,t)=>!ee(t)||e[`${t}Key`];class Un{applyInactiveState(e=[]){var t,n;let r=[];for(let o of(e.forEach(e=>{let t=e.series;r.push(t),t.linkedParent&&r.push(t.linkedParent),t.linkedSeries&&r.push.apply(r,t.linkedSeries),t.navigatorSeries&&r.push(t.navigatorSeries),t.boosted&&t.markerGroup&&r.push.apply(r,this.chart.series.filter(e=>e.markerGroup===t.markerGroup))}),this.chart.series)){let e=o.options;!1!==(null==(n=null==(t=e.states)?void 0:t.inactive)?void 0:n.enabled)&&(-1===r.indexOf(o)?o.setState("inactive",!0):e.inactiveOtherPoints&&o.setAllPointsToState("inactive"))}}destroy(){let e=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!H.chartCount&&(Un.unbindDocumentMouseUp.forEach(e=>e.unbind()),Un.unbindDocumentMouseUp.length=0,Un.unbindDocumentTouchEnd&&(Un.unbindDocumentTouchEnd=Un.unbindDocumentTouchEnd())),Se(e,function(t,n){e[n]=void 0})}getSelectionMarkerAttrs(e,t){let n={args:{chartX:e,chartY:t},attrs:{},shapeType:"rect"};return le(this,"getSelectionMarkerAttrs",n,n=>{let r,{chart:o,zoomHor:i,zoomVert:a}=this,{mouseDownX:l=0,mouseDownY:s=0}=o,c=n.attrs;c.x=o.plotLeft,c.y=o.plotTop,c.width=i?1:o.plotWidth,c.height=a?1:o.plotHeight,i&&(c.width=Math.max(1,Math.abs(r=e-l)),c.x=(r>0?0:r)+l),a&&(c.height=Math.max(1,Math.abs(r=t-s)),c.y=(r>0?0:r)+s)}),n}drag(e){let t,{chart:n}=this,{mouseDownX:r=0,mouseDownY:o=0}=n,{panning:i,panKey:a,selectionMarkerFill:l}=n.options.chart,s=n.plotLeft,c=n.plotTop,u=n.plotWidth,d=n.plotHeight,h=we(i)?i.enabled:i,p=a&&e[`${a}Key`],f=e.chartX,m=e.chartY,g=this.selectionMarker;if((!g||!g.touch)&&(f<s?f=s:f>s+u&&(f=s+u),m<c?m=c:m>c+d&&(m=c+d),this.hasDragged=Math.sqrt(Math.pow(r-f,2)+Math.pow(o-m,2)),this.hasDragged>10)){t=n.isInsidePlot(r-s,o-c,{visiblePlotOnly:!0});let{shapeType:u,attrs:d}=this.getSelectionMarkerAttrs(f,m);this.hasZoom&&t&&!p&&!g&&(this.selectionMarker=g=n.renderer[u](),g.attr({class:"highcharts-selection-marker",zIndex:7}).add(),n.styledMode||g.attr({fill:l||Fn("#334eff").setOpacity(.25).get()})),g&&g.attr(d),t&&!g&&h&&Vn(e,a)&&n.pan(e,i)}}dragStart(e){let t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=e.chartX,t.mouseDownY=e.chartY}getSelectionBox(e){let t={args:{marker:e},result:e.getBBox()};return le(this,"getSelectionBox",t),t.result}drop(e){let t,{chart:n,selectionMarker:r}=this;for(let e of n.axes)e.isPanning&&(e.isPanning=!1,(e.options.startOnTick||e.options.endOnTick||e.series.some(e=>e.boosted))&&(e.forceRedraw=!0,e.setExtremes(e.userMin,e.userMax,!1),t=!0));if(t&&n.redraw(),r&&e){if(this.hasDragged){let t=this.getSelectionBox(r);n.transform({axes:n.axes.filter(e=>e.zoomEnabled&&("xAxis"===e.coll&&this.zoomX||"yAxis"===e.coll&&this.zoomY)),selection:{originalEvent:e,xAxis:[],yAxis:[],...t},from:t})}ye(n.index)&&(this.selectionMarker=r.destroy())}n&&ye(n.index)&&(J(n.container,{cursor:n._cursor}),n.cancelClick=this.hasDragged>10,n.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(e,t,n){let r;return e.forEach(function(e){var o,i,a;let l,s,c,u=!(e.noSharedTooltip&&t)&&0>e.options.findNearestPointBy.indexOf("y"),d=e.searchPoint(n,u);we(d,!0)&&d.series&&(!we(r,!0)||(l=(a=r).distX-d.distX,s=a.dist-d.dist,c=(null==(o=d.series.group)?void 0:o.zIndex)-(null==(i=a.series.group)?void 0:i.zIndex),(0!==l&&t?l:0!==s?s:0!==c?c:a.series.index>d.series.index?-1:1)>0))&&(r=d)}),r}getChartCoordinatesFromPoint(e,t){let{xAxis:n,yAxis:r}=e.series,o=e.shapeArgs;if(n&&r){let i=e.clientX??e.plotX??0,a=e.plotY||0;return e.isNode&&o&&ye(o.x)&&ye(o.y)&&(i=o.x,a=o.y),t?{chartX:r.len+r.pos-a,chartY:n.len+n.pos-i}:{chartX:i+n.pos,chartY:a+r.pos}}if((null==o?void 0:o.x)&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:e}=this.chart,t=Ee(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};let{offsetHeight:n,offsetWidth:r}=e;return r>2&&n>2&&(this.chartPosition.scaleX=t.width/r,this.chartPosition.scaleY=t.height/n),this.chartPosition}getCoordinates(e){let t={xAxis:[],yAxis:[]};for(let n of this.chart.axes)t[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(e[n.horiz?"chartX":"chartY"])});return t}getHoverData(e,t,n,r,o,i){let a,l=[],s=function(e){return e.visible&&!(!o&&e.directTouch)&&Te(e.options.enableMouseTracking,!0)},c=t,u={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:o};le(this,"beforeGetHoverData",u),a=c&&!c.stickyTracking?[c]:n.filter(e=>e.stickyTracking&&(u.filter||s)(e));let d=r&&e||!i?e:this.findNearestKDPoint(a,o,i);return c=null==d?void 0:d.series,d&&(o&&!c.noSharedTooltip?(a=n.filter(function(e){return u.filter?u.filter(e):s(e)&&!e.noSharedTooltip})).forEach(function(e){var t;let n=null==(t=e.options)?void 0:t.nullInteraction,r=pe(e.points,function(e){return!(e.x!==d.x||e.isNull&&!n)});we(r)&&(e.boosted&&e.boost&&(r=e.boost.getPoint(r)),l.push(r))}):l.push(d)),le(this,"afterGetHoverData",u={hoverPoint:d}),{hoverPoint:u.hoverPoint,hoverSeries:c,hoverPoints:l}}getPointFromEvent(e){let t,n=e.target;for(;n&&!t;)t=n.point,n=n.parentNode;return t}onTrackerMouseOut(e){let t=this.chart,n=e.relatedTarget,r=t.hoverSeries;this.isDirectTouch=!1,!r||!n||r.stickyTracking||this.inClass(n,"highcharts-tooltip")||this.inClass(n,"highcharts-series-"+r.index)&&this.inClass(n,"highcharts-tracker")||r.onMouseOut()}inClass(e,t){let n,r=e;for(;r;){if(n=G(r,"class")){if(-1!==n.indexOf(t))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}r=r.parentElement}}constructor(e,t){var n;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=t,this.chart=e,this.runChartClick=!!(null==(n=t.chart.events)?void 0:n.click),this.pinchDown=[],this.setDOMEvents(),le(this,"afterInit")}normalize(e,t){let n=e.touches,r=n?n.length?n.item(0):Te(n.changedTouches,e.changedTouches)[0]:e;t||(t=this.getChartPosition());let o=r.pageX-t.left,i=r.pageY-t.top;return ie(e,{chartX:Math.round(o/=t.scaleX),chartY:Math.round(i/=t.scaleY)})}onContainerClick(e){let t=this.chart,n=t.hoverPoint,r=this.normalize(e),o=t.plotLeft,i=t.plotTop;!t.cancelClick&&(n&&this.inClass(r.target,"highcharts-tracker")?(le(n.series,"click",ie(r,{point:n})),t.hoverPoint&&n.firePointEvent("click",r)):(ie(r,this.getCoordinates(r)),t.isInsidePlot(r.chartX-o,r.chartY-i,{visiblePlotOnly:!0})&&le(t,"click",r)))}onContainerMouseDown(e){var t;let n=!(1&~(e.buttons||e.button));e=this.normalize(e),H.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),(void 0===e.button||n)&&(this.zoomOption(e),n&&(null==(t=e.preventDefault)||t.call(e)),this.dragStart(e))}onContainerMouseLeave(e){let{pointer:t}=Hn[Te(Un.hoverChartIndex,-1)]||{};e=this.normalize(e),this.onContainerMouseMove(e),t&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(t.reset(),t.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(e){var t;let n=this.chart,r=n.tooltip,o=this.normalize(e);this.setHoverChartIndex(e),("mousedown"===n.mouseIsDown||this.touchSelect(o))&&this.drag(o),!(null==(t=n.exporting)?void 0:t.openMenu)&&(this.inClass(o.target,"highcharts-tracker")||n.isInsidePlot(o.chartX-n.plotLeft,o.chartY-n.plotTop,{visiblePlotOnly:!0}))&&!(null==r?void 0:r.shouldStickOnContact(o))&&(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))}onDocumentTouchEnd(e){this.onDocumentMouseUp(e)}onContainerTouchMove(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}onContainerTouchStart(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}onDocumentMouseMove(e){let t=this.chart,n=t.tooltip,r=this.chartPosition,o=this.normalize(e,r);!r||t.isInsidePlot(o.chartX-t.plotLeft,o.chartY-t.plotTop,{visiblePlotOnly:!0})||(null==n?void 0:n.shouldStickOnContact(o))||o.target!==t.container.ownerDocument&&this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(e){var t,n,r;(null==e?void 0:e.touches)&&this.hasPinchMoved&&(null==(t=null==e?void 0:e.preventDefault)||t.call(e)),null==(r=null==(n=Hn[Te(Un.hoverChartIndex,-1)])?void 0:n.pointer)||r.drop(e)}pinch(e){let t=this,{chart:n,hasZoom:r,lastTouches:o}=t,i=[].map.call(e.touches||[],e=>t.normalize(e)),a=i.length,l=1===a&&(t.inClass(e.target,"highcharts-tracker")&&n.runTrackerClick||t.runChartClick),s=n.tooltip,c=1===a&&Te(null==s?void 0:s.options.followTouchMove,!0);a>1?t.initiated=!0:c&&(t.initiated=!1),r&&t.initiated&&!l&&!1!==e.cancelable&&e.preventDefault(),"touchstart"===e.type?(t.pinchDown=i,t.res=!0,n.mouseDownX=e.chartX):c?this.runPointActions(t.normalize(e)):o&&(le(n,"touchpan",{originalEvent:e,touches:i},()=>{let t=e=>{let t=e[0],n=e[1]||t;return{x:t.chartX,y:t.chartY,width:n.chartX-t.chartX,height:n.chartY-t.chartY}};n.transform({axes:n.axes.filter(e=>e.zoomEnabled&&(this.zoomHor&&e.horiz||this.zoomVert&&!e.horiz)),to:t(i),from:t(o),trigger:e.type})}),t.res&&(t.res=!1,this.reset(!1,0))),t.lastTouches=i}reset(e,t){let n=this.chart,r=n.hoverSeries,o=n.hoverPoint,i=n.hoverPoints,a=n.tooltip,l=(null==a?void 0:a.shared)?i:o;e&&l&&Ie(l).forEach(function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?a&&l&&Ie(l).length&&(a.refresh(l),a.shared&&i?i.forEach(function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):o&&(o.setState(o.state,!0),n.axes.forEach(function(e){e.crosshair&&o.series[e.coll]===e&&e.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),i&&i.forEach(function(e){e.setState()}),r&&r.onMouseOut(),a&&a.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach(function(e){e.hideCrosshair()}),n.hoverPoints=n.hoverPoint=void 0)}runPointActions(e,t,n){var r;let o=this.chart,i=o.series,a=(null==(r=o.tooltip)?void 0:r.options.enabled)?o.tooltip:void 0,l=!!a&&a.shared,s=t||o.hoverPoint,c=(null==s?void 0:s.series)||o.hoverSeries,u=(!e||"touchmove"!==e.type)&&(!!t||(null==c?void 0:c.directTouch)&&this.isDirectTouch),d=this.getHoverData(s,c,i,u,l,e);s=d.hoverPoint,c=d.hoverSeries;let h=d.hoverPoints,p=(null==c?void 0:c.tooltipOptions.followPointer)&&!c.tooltipOptions.split,f=l&&c&&!c.noSharedTooltip;if(s&&(n||s!==o.hoverPoint||(null==a?void 0:a.isHidden))){if((o.hoverPoints||[]).forEach(function(e){-1===h.indexOf(e)&&e.setState()}),o.hoverSeries!==c&&c.onMouseOver(),this.applyInactiveState(h),(h||[]).forEach(function(e){e.setState("hover")}),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!s.series)return;o.hoverPoints=h,o.hoverPoint=s,s.firePointEvent("mouseOver",void 0,()=>{a&&s&&a.refresh(f?h:s,e)})}else if(p&&a&&!a.isHidden){let t=a.getAnchor([{}],e);o.isInsidePlot(t[0],t[1],{visiblePlotOnly:!0})&&a.updatePosition({plotX:t[0],plotY:t[1]})}this.unDocMouseMove||(this.unDocMouseMove=V(o.container.ownerDocument,"mousemove",e=>{var t,n;return null==(n=null==(t=Hn[Un.hoverChartIndex??-1])?void 0:t.pointer)?void 0:n.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),o.axes.forEach(function(t){var n;let r,i=(null==(n=t.crosshair)?void 0:n.snap)??!0;i&&((r=o.hoverPoint)&&r.series[t.coll]===t||(r=pe(h,e=>{var n;return(null==(n=e.series)?void 0:n[t.coll])===t}))),r||!i?t.drawCrosshair(e,r):t.hideCrosshair()})}setDOMEvents(){let e=this.chart.container,t=e.ownerDocument,n=e=>{var t,n;return e.parentElement||(null==(n=null==(t=e.getRootNode())?void 0:t.host)?void 0:n.parentElement)};e.onmousedown=this.onContainerMouseDown.bind(this),e.onmousemove=this.onContainerMouseMove.bind(this),e.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(V(e,"mouseenter",this.onContainerMouseEnter.bind(this)),V(e,"mouseleave",this.onContainerMouseLeave.bind(this))),Un.unbindDocumentMouseUp.some(e=>e.doc===t)||Un.unbindDocumentMouseUp.push({doc:t,unbind:V(t,"mouseup",this.onDocumentMouseUp.bind(this))});let r=n(this.chart.renderTo);for(;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(V(r,"scroll",()=>{delete this.chartPosition})),r=n(r);this.eventsToUnbind.push(V(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),V(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),Un.unbindDocumentTouchEnd||(Un.unbindDocumentTouchEnd=V(t,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),V(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var e,t;if(!Kn)return;let n=this.pointerCaptureEventsToUnbind,r=this.chart,o=r.container,i=Te(null==(e=r.options.tooltip)?void 0:e.followTouchMove,!0)&&r.series.some(e=>e.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&i?(n.push(V(o,"pointerdown",e=>{var t,n;(null==(t=e.target)?void 0:t.hasPointerCapture(e.pointerId))&&(null==(n=e.target)||n.releasePointerCapture(e.pointerId))}),V(o,"pointermove",e=>{var t,n;null==(n=null==(t=r.pointer)?void 0:t.getPointFromEvent(e))||n.onMouseOver(e)})),r.styledMode||J(o,{"touch-action":"none"}),o.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!i&&(n.forEach(e=>e()),n.length=0,r.styledMode||J(o,{"touch-action":Te(null==(t=r.options.chart.style)?void 0:t["touch-action"],"manipulation")}),o.className=o.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(e){var t;let n=this.chart,r=H.charts[Te(Un.hoverChartIndex,-1)];if(r&&r!==n){let o={relatedTarget:n.container};e&&!(null==e?void 0:e.relatedTarget)&&Object.assign({},e,o),null==(t=r.pointer)||t.onContainerMouseLeave(e||o)}(null==r?void 0:r.mouseIsDown)||(Un.hoverChartIndex=n.index)}touch(e,t){var n;let r,{chart:o,pinchDown:i=[]}=this;this.setHoverChartIndex(),1===(e=this.normalize(e)).touches.length?o.isInsidePlot(e.chartX-o.plotLeft,e.chartY-o.plotTop,{visiblePlotOnly:!0})&&!(null==(n=o.exporting)?void 0:n.openMenu)?(t&&this.runPointActions(e),"touchmove"===e.type&&(this.hasPinchMoved=r=!!i[0]&&Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2)>=16),Te(r,!0)&&this.pinch(e)):t&&this.reset():2===e.touches.length&&this.pinch(e)}touchSelect(e){return!(!this.chart.zooming.singleTouch||!e.touches||1!==e.touches.length)}zoomOption(e){let t,n,r=this.chart,o=r.inverted,i=r.zooming.type||"";/touch/.test(e.type)&&(i=Te(r.zooming.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=n=/y/.test(i),this.zoomHor=t&&!o||n&&o,this.zoomVert=n&&!o||t&&o,this.hasZoom=(t||n)&&Vn(e,r.zooming.key)}}Un.unbindDocumentMouseUp=[],(v=Un||(Un={})).compose=function(e){Me(Wn,"Core.Pointer")&&V(e,"beforeRender",function(){this.pointer=new v(this,this.options)})};let qn=Un,{setLength:Gn,splice:Xn}={setLength:function(e,t,n){return Array.isArray(e)?(e.length=t,e):e[n?"subarray":"slice"](0,t)},splice:function(e,t,n,r,o=[]){if(Array.isArray(e))return Array.isArray(o)||(o=Array.from(o)),{removed:e.splice(t,n,...o),array:e};let i=Object.getPrototypeOf(e).constructor,a=e[r?"subarray":"slice"](t,t+n),l=new i(e.length-n+o.length);return l.set(e.subarray(0,t),0),l.set(o,t),l.set(e.subarray(t+n),t+o.length),{removed:a,array:l}}},Yn=class{constructor(e={}){this.autoId=!e.id,this.columns={},this.id=e.id||He(),this.rowCount=0,this.versionTag=He();let t=0;Se(e.columns||{},(e,n)=>{this.columns[n]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(e){this.rowCount=e,Se(this.columns,(t,n)=>{t.length!==e&&(this.columns[n]=Gn(t,e))})}deleteRows(e,t=1){if(t>0&&e<this.rowCount){let n=0;Se(this.columns,(r,o)=>{this.columns[o]=Xn(r,e,t).array,n=r.length}),this.rowCount=n}le(this,"afterDeleteRows",{rowIndex:e,rowCount:t}),this.versionTag=He()}getColumn(e,t){return this.columns[e]}getColumns(e,t){return(e||Object.keys(this.columns)).reduce((e,t)=>(e[t]=this.columns[t],e),{})}getRow(e,t){return(t||Object.keys(this.columns)).map(t=>{var n;return null==(n=this.columns[t])?void 0:n[e]})}setColumn(e,t=[],n=0,r){this.setColumns({[e]:t},n,r)}setColumns(e,t,n){let r=this.rowCount;Se(e,(e,t)=>{this.columns[t]=e.slice(),r=e.length}),this.applyRowCount(r),(null==n?void 0:n.silent)||(le(this,"afterSetColumns"),this.versionTag=He())}setRow(e,t=this.rowCount,n,r){let{columns:o}=this,i=n?this.rowCount+1:t+1,a=Object.keys(e);if(!1!==(null==r?void 0:r.addColumns))for(let e=0,t=a.length;e<t;e++){let t=a[e];o[t]||(o[t]=[])}Se(o,(a,l)=>{a||!1===(null==r?void 0:r.addColumns)||(a=Array(i)),a&&(n?a=Xn(a,t,0,!0,[e[l]??null]).array:a[t]=e[l]??null,o[l]=a)}),i>this.rowCount&&this.applyRowCount(i),(null==r?void 0:r.silent)||(le(this,"afterSetRows"),this.versionTag=He())}getModified(){return this.modified||this}};var Zn=N||(N={});function Qn(e,t,n){var r,o;let i,a=this.legendItem=this.legendItem||{},{chart:l,options:s}=this,{baseline:c=0,symbolWidth:u,symbolHeight:d}=e,h=this.symbol||"circle",p=d/2,f=l.renderer,m=a.group,g=c-Math.round(((null==(r=e.fontMetrics)?void 0:r.b)||d)*(n?.4:.3)),y={},v=s.marker,b=0;if(l.styledMode||(y["stroke-width"]=Math.min(s.lineWidth||0,24),s.dashStyle?y.dashstyle=s.dashStyle:"square"!==s.linecap&&(y["stroke-linecap"]="round")),a.line=f.path().addClass("highcharts-graph").attr(y).add(m),n&&(a.area=f.path().addClass("highcharts-area").add(m)),y["stroke-linecap"]&&(b=Math.min(a.line.strokeWidth(),u)/2),u){let e=[["M",b,g],["L",u-b,g]];a.line.attr({d:e}),null==(o=a.area)||o.attr({d:[...e,["L",u-b,c],["L",b,c]]})}if(v&&!1!==v.enabled&&u){let e=Math.min(Te(v.radius,p),p);0===h.indexOf("url")&&(v=Ce(v,{width:d,height:d}),e=0),a.symbol=i=f.symbol(h,u/2-e,g-e,2*e,2*e,ie({context:"legend"},v)).addClass("highcharts-point").add(m),i.isMarker=!0}}Zn.areaMarker=function(e,t){Qn.call(this,e,t,!0)},Zn.lineMarker=Qn;let Jn=N,{defaultOptions:er}=Ze;var tr=A||(A={});function nr(e,t){let n=er.plotOptions||{},r=t.defaultOptions,o=t.prototype;return o.type=e,o.pointClass||(o.pointClass=_n),!tr.seriesTypes[e]&&(r&&(n[e]=r),tr.seriesTypes[e]=t,!0)}tr.seriesTypes=H.seriesTypes,tr.registerSeriesType=nr,tr.seriesType=function(e,t,n,r,o){let i=er.plotOptions||{};if(t=t||"",i[e]=Ce(i[t],n),delete tr.seriesTypes[e],nr(e,ae(tr.seriesTypes[t]||H.Series,r)),tr.seriesTypes[e].prototype.type=e,o){class t extends _n{}ie(t.prototype,o),tr.seriesTypes[e].prototype.pointClass=t}return tr.seriesTypes[e]};let rr=A,{animObject:or,setAnimation:ir}=lt,{defaultOptions:ar}=Ze,{registerEventOptions:lr}=dn,{svg:sr,win:cr}=H,{seriesTypes:ur}=rr,{format:dr}=wt;class hr{constructor(){this.zoneAxis="y"}init(e,t){var n,r,o;let i;le(this,"init",{options:t}),this.dataTable??(this.dataTable=new Yn);let a=e.series;this.eventsToUnbind=[],this.chart=e,this.options=this.setOptions(t);let l=this.options,s=!1!==l.visible;this.linkedSeries=[],this.bindAxes(),ie(this,{name:l.name,state:"",visible:s,selected:!0===l.selected}),lr(this,l);let c=l.events;((null==c?void 0:c.click)||(null==(r=null==(n=l.point)?void 0:n.events)?void 0:r.click)||l.allowPointSelect)&&(e.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(e.hasCartesianSeries=!0),a.length&&(i=a[a.length-1]),this._i=Te(null==i?void 0:i._i,-1)+1,this.opacity=this.options.opacity,e.orderItems("series",_e(this,a)),(null==(o=l.dataSorting)?void 0:o.enabled)?this.setDataSortingOptions():this.points||this.data||this.setData(l.data,!1),le(this,"afterInit")}is(e){return ur[e]&&this instanceof ur[e]}bindAxes(){let e,t=this,n=t.options,r=t.chart;le(this,"bindAxes",null,function(){(t.axisTypes||[]).forEach(function(o){(r[o]||[]).forEach(function(r){e=r.options,(Te(n[o],0)===r.index||void 0!==n[o]&&n[o]===e.id)&&(_e(t,r.series),t[o]=r,r.isDirty=!0)}),t[o]||t.optionalAxis===o||je(18,!0,r)})}),le(this,"afterBindAxes")}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(e,t){let n=e.marker,r=t.marker||{};return n&&(r.enabled&&!n.enabled||r.symbol!==n.symbol||r.height!==n.height||r.width!==n.width)}autoIncrement(e){let t,n=this.options,{pointIntervalUnit:r,relativeXValue:o}=this.options,i=this.chart.time,a=this.xIncrement??i.parse(n.pointStart)??0;if(this.pointInterval=t=Te(this.pointInterval,n.pointInterval,1),o&&ye(e)&&(t*=e),r){let e=i.toParts(a);"day"===r?e[2]+=t:"month"===r?e[1]+=t:"year"===r&&(e[0]+=t),t=i.makeTime.apply(i,e)-a}return o&&ye(e)?a+t:(this.xIncrement=a+t,a)}setDataSortingOptions(){let e=this.options;ie(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),ee(e.pointRange)||(e.pointRange=1)}setOptions(e){var t,n;let r,o=this.chart,i=o.options.plotOptions,a=o.userOptions||{},l=Ce(e),s=o.styledMode,c={plotOptions:i,userOptions:l};le(this,"setOptions",c);let u=c.plotOptions[this.type],d=a.plotOptions||{},h=d.series||{},p=ar.plotOptions[this.type]||{},f=d[this.type]||{};u.dataLabels=this.mergeArrays(p.dataLabels,u.dataLabels),this.userOptions=c.userOptions;let m=Ce(u,i.series,f,l);this.tooltipOptions=Ce(ar.tooltip,null==(t=ar.plotOptions.series)?void 0:t.tooltip,null==p?void 0:p.tooltip,o.userOptions.tooltip,null==(n=d.series)?void 0:n.tooltip,f.tooltip,l.tooltip),this.stickyTracking=Te(l.stickyTracking,f.stickyTracking,h.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||m.stickyTracking),null===u.marker&&delete m.marker;let{negativeColor:g,negativeFillColor:y,zoneAxis:v="y",zones:b}=m,x=this.zones=(b||[]).map(e=>({...e}));return this.zoneAxis=v,(g||y)&&!b&&(r={value:m[v+"Threshold"]||m.threshold||0,className:"highcharts-negative"},s||("boolean"!=typeof g&&(r.color=g),r.fillColor=y),x.push(r)),x.length&&ee(x[x.length-1].value)&&x.push(s?{}:{color:this.color,fillColor:this.fillColor}),le(this,"afterSetOptions",{options:m}),m}getName(){return this.options.name??dr(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(e,t,n){let r,o,i=this.chart,a=`${e}Index`,l=`${e}Counter`,s=(null==n?void 0:n.length)||i.options.chart.colorCount;!t&&(ee(o=Te("color"===e?this.options.colorIndex:void 0,this[a]))?r=o:(i.series.length||(i[l]=0),r=i[l]%s,i[l]+=1),n&&(t=n[r])),void 0!==r&&(this[a]=r),this[e]=t}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||ar.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let e=this.options.marker;this.getCyclic("symbol",e.symbol,this.chart.options.symbols)}getColumn(e,t){return(t?this.dataTable.getModified():this.dataTable).getColumn(e,!0)||[]}findPointIndex(e,t){var n;let r,o,i,{id:a,x:l}=e,s=this.points,c=this.options.dataSorting,u=this.cropStart||0;if(a){let e=this.chart.get(a);e instanceof _n&&(r=e)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let t=t=>!t.touched&&t.index===e.index;if((null==c?void 0:c.matchByName)?t=t=>!t.touched&&t.name===e.name:this.options.relativeXValue&&(t=t=>!t.touched&&t.options.x===e.x),!(r=pe(s,t)))return}return r&&void 0!==(i=null==r?void 0:r.index)&&(o=!0),void 0===i&&ye(l)&&(i=this.getColumn("x").indexOf(l,t)),-1!==i&&void 0!==i&&this.cropped&&(i=i>=u?i-u:i),!o&&ye(i)&&(null==(n=s[i])?void 0:n.touched)&&(i=void 0),i}updateData(e,t){var n;let r,o,i,a,{options:l,requireSorting:s}=this,c=l.dataSorting,u=this.points,d=[],h=e.length===u.length,p=this.xIncrement,f=!0;if(this.xIncrement=null,e.forEach((e,t)=>{var n;let o,i=ee(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},{id:p,x:f}=i;p||ye(f)?(-1===(o=this.findPointIndex(i,a))||void 0===o?d.push(e):u[o]&&e!==(null==(n=l.data)?void 0:n[o])?(u[o].update(e,!1,void 0,!1),u[o].touched=!0,s&&(a=o+1)):u[o]&&(u[o].touched=!0),(!h||t!==o||(null==c?void 0:c.enabled)||this.hasDerivedData)&&(r=!0)):d.push(e)},this),r)for(o=u.length;o--;)(i=u[o])&&!i.touched&&(null==(n=i.remove)||n.call(i,!1,t));else h&&!(null==c?void 0:c.enabled)?(e.forEach((e,t)=>{e===u[t].y||u[t].destroyed||u[t].update(e,!1,void 0,!1)}),d.length=0):f=!1;if(u.forEach(e=>{e&&(e.touched=!1)}),!f)return!1;d.forEach(e=>{this.addPoint(e,!1,void 0,void 0,!1)},this);let m=this.getColumn("x");return null!==p&&null===this.xIncrement&&m.length&&(this.xIncrement=q(m),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(e,t=!0,n,r){var o,i;let a,l,s,c=this.points,u=(null==c?void 0:c.length)||0,d=this.options,h=this.chart,p=d.dataSorting,f=this.xAxis,m=d.turboThreshold,g=this.dataTable,y=this.dataColumnKeys(),v=this.pointValKey||"y",b=(this.pointArrayMap||[]).length,x=d.keys,w=0,C=1;h.options.chart.allowMutatingData||(d.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,s=Ce(!0,e));let k=(e=s||e||[]).length;if((null==p?void 0:p.enabled)&&(e=this.sortData(e)),!1!==r&&k&&u&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(l=this.updateData(e,n)),!l){this.xIncrement=null,this.colorCounter=0;let t=m&&!d.relativeXValue&&k>m;if(t){let n=this.getFirstValidPoint(e),r=this.getFirstValidPoint(e,k-1,-1),i=e=>!(!be(e)||!x&&!ye(e[0]));if(ye(n)&&ye(r)){let t=[],n=[];for(let r of e)t.push(this.autoIncrement()),n.push(r);g.setColumns({x:t,[v]:n})}else if(i(n)&&i(r))if(b){let t=+(n.length===b),r=Array(y.length).fill(0).map(()=>[]);for(let n of e){t&&r[0].push(this.autoIncrement());for(let e=t;e<=b;e++)null==(o=r[e])||o.push(n[e-t])}g.setColumns(y.reduce((e,t,n)=>(e[t]=r[n],e),{}))}else{x&&(w=x.indexOf("x"),C=x.indexOf("y"),w=w>=0?w:0,C=C>=0?C:1),1===n.length&&(C=0);let t=[],r=[];for(let n of e)w===C?t.push(this.autoIncrement()):t.push(n[w]??n.x??null),r.push(n[C]??n.y??null);g.setColumns({x:t,[v]:r})}else t=!1}if(!t){let t=y.reduce((e,t)=>(e[t]=[],e),{});for(a=0;a<k;a++){let n=this.pointClass.prototype.applyOptions.apply({series:this},[e[a]]);for(let e of y)t[e][a]=n[e]}g.setColumns(t)}for(ve(this.getColumn("y")[0])&&je(14,!0,h),this.data=[],this.options.data=this.userOptions.data=e,a=u;a--;)null==(i=c[a])||i.destroy();f&&(f.minRange=f.userMinRange),this.isDirty=h.isDirtyBox=!0,this.isDirtyData=!!c,n=!1}"point"===d.legendType&&(this.processData(),this.generatePoints()),t&&h.redraw(n)}sortData(e){let t=this,n=t.options.dataSorting.sortKey||"y",r=function(e,t){return ee(t)&&e.pointClass.prototype.optionsToObject.call({series:e},t)||{}};return e.forEach(function(n,o){e[o]=r(t,n),e[o].index=o},this),e.concat().sort((e,t)=>{let r=de(n,e),o=de(n,t);return o<r?-1:+(o>r)}).forEach(function(e,t){e.x=t},this),t.linkedSeries&&t.linkedSeries.forEach(function(t){var n;let o=t.options,i=o.data;!(null==(n=o.dataSorting)?void 0:n.enabled)&&i&&(i.forEach(function(n,o){i[o]=r(t,n),e[o]&&(i[o].x=e[o].x,i[o].index=o)}),t.setData(i,!1))}),e}getProcessedData(e){let t,n,r,o,i,a=this,{dataTable:l,isCartesian:s,options:c,xAxis:u}=a,d=c.cropThreshold,h=e||a.getExtremesFromAll,p=null==u?void 0:u.logarithmic,f=l.rowCount,m=0,g=a.getColumn("x"),y=l,v=!1;return u&&(o=(r=u.getExtremes()).min,i=r.max,v=!(!u.categories||u.names.length),s&&a.sorted&&!h&&(!d||f>d||a.forceCrop)&&(g[f-1]<o||g[0]>i?y=new Yn:a.getColumn(a.pointValKey||"y").length&&(g[0]<o||g[f-1]>i)&&(y=(t=this.cropData(l,o,i)).modified,m=t.start,n=!0))),g=y.getColumn("x")||[],{modified:y,cropped:n,cropStart:m,closestPointRange:ce([p?g.map(p.log2lin):g],()=>a.requireSorting&&!v&&je(15,!1,a.chart))}}processData(e){let t=this.xAxis,n=this.dataTable;if(this.isCartesian&&!this.isDirty&&!t.isDirty&&!this.yAxis.isDirty&&!e)return!1;let r=this.getProcessedData();n.modified=r.modified,this.cropped=r.cropped,this.cropStart=r.cropStart,this.closestPointRange=this.basePointRange=r.closestPointRange,le(this,"afterProcessData")}cropData(e,t,n){let r,o,i=e.getColumn("x",!0)||[],a=i.length,l={},s=0,c=a;for(r=0;r<a;r++)if(i[r]>=t){s=Math.max(0,r-1);break}for(o=r;o<a;o++)if(i[o]>n){c=o+1;break}for(let t of this.dataColumnKeys()){let n=e.getColumn(t,!0);n&&(l[t]=n.slice(s,c))}return{modified:new Yn({columns:l}),start:s,end:c}}generatePoints(){var e,t,n,r,o;let i,a,l,s,c,u=this.options,d=this.processedData||u.data,h=this.dataTable.getModified(),p=this.getColumn("x",!0),f=this.pointClass,m=h.rowCount,g=this.cropStart||0,y=this.hasGroupedData,v=u.keys,b=[],x=(null==(e=u.dataGrouping)?void 0:e.groupAll)?g:0,w=this.pointArrayMap||["y"],C=this.dataColumnKeys(),k=this.data;if(!k&&!y){let e=[];e.length=(null==d?void 0:d.length)||0,k=this.data=e}for(v&&y&&(this.options.keys=!1),s=0;s<m;s++)a=g+s,y?((l=new f(this,h.getRow(s,C)||[])).dataGroup=null==(t=this.groupMap)?void 0:t[x+s],(null==(n=l.dataGroup)?void 0:n.options)&&(l.options=l.dataGroup.options,ie(l,l.dataGroup.options),delete l.dataLabels,l.key=l.name??l.category)):(l=k[a],c=d?d[a]:h.getRow(s,w),l||void 0===c?l&&(l.category=(null==(o=null==(r=this.xAxis)?void 0:r.categories)?void 0:o[l.x])??l.x,l.key=l.name??l.category):k[a]=l=new f(this,c,p[s])),l&&(l.index=y?x+s:a,b[s]=l);if(this.options.keys=v,k&&(m!==(i=k.length)||y))for(s=0;s<i;s++)s!==g||y||(s+=m),k[s]&&(k[s].destroyElements(),k[s].plotX=void 0);this.data=k,this.points=b,le(this,"afterGeneratePoints")}getXExtremes(e){return{min:U(e),max:q(e)}}getExtremes(e,t){var n;let r,o,i,{xAxis:a,yAxis:l}=this,s=t||this.getExtremesFromAll||this.options.getExtremesFromAll,c=s&&this.cropped?this.dataTable:this.dataTable.getModified(),u=c.rowCount,d=e||this.stackedYData,h=d?[d]:(null==(n=this.keysAffectYAxis||this.pointArrayMap||["y"])?void 0:n.map(e=>c.getColumn(e,!0)||[]))||[],p=this.getColumn("x",!0),f=[],m=this.requireSorting&&!this.is("column")?1:0,g=!!l&&l.positiveValuesOnly,y=s||this.cropped||!a,v=0,b=0;for(a&&(v=(r=a.getExtremes()).min,b=r.max),i=0;i<u;i++)if(o=p[i],y||(p[i+m]||o)>=v&&(p[i-m]||o)<=b)for(let e of h){let t=e[i];ye(t)&&(t>0||!g)&&f.push(t)}let x={activeYData:f,dataMin:U(f),dataMax:q(f)};return le(this,"afterGetExtremes",{dataExtremes:x}),x}applyExtremes(){let e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}getFirstValidPoint(e,t=0,n=1){let r=e.length,o=t;for(;o>=0&&o<r;){if(ee(e[o]))return e[o];o+=n}}translate(){var e;this.generatePoints();let t,n,r,o,i=this.options,a=i.stacking,l=this.xAxis,s=this.enabledDataSorting,c=this.yAxis,u=this.points,d=u.length,h=this.pointPlacementToXValue(),p=!!h,f=i.threshold,m=i.startFromThreshold?f:0,g=(null==i?void 0:i.nullInteraction)&&c.len,y=Number.MAX_VALUE;function v(e){return X(e,-1e9,1e9)}for(t=0;t<d;t++){let i,d,b,x=u[t],w=x.x,C=x.y,k=x.low,S=a&&(null==(e=c.stacking)?void 0:e.stacks[(this.negStacks&&C<(m?0:f)?"-":"")+this.stackKey]);x.plotX=ye(n=l.translate(w,!1,!1,!1,!0,h))?Y(v(n)):void 0,a&&this.visible&&S&&S[w]&&(o=this.getStackIndicator(o,w,this.index),!x.isNull&&o.key&&(b=(d=S[w]).points[o.key]),d&&be(b)&&(k=b[0],C=b[1],k===m&&o.key===S[w].base&&(k=Te(ye(f)?f:c.min)),c.positiveValuesOnly&&ee(k)&&k<=0&&(k=void 0),x.total=x.stackTotal=Te(d.total),x.percentage=ee(x.y)&&d.total?x.y/d.total*100:void 0,x.stackY=C,this.irregularWidths||d.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),x.yBottom=ee(k)?v(c.translate(k,!1,!0,!1,!0)):void 0,this.dataModify&&(C=this.dataModify.modifyValue(C,t)),ye(C)&&void 0!==x.plotX?i=ye(i=c.translate(C,!1,!0,!1,!0))?v(i):void 0:!ye(C)&&g&&(i=g),x.plotY=i,x.isInside=this.isPointInside(x),x.clientX=p?Y(l.translate(w,!1,!1,!1,!0,h)):n,x.negative=(x.y||0)<(f||0),x.isNull||!1===x.visible||(void 0!==r&&(y=Math.min(y,Math.abs(n-r))),r=n),x.zone=this.zones.length?x.getZone():void 0,!x.graphic&&this.group&&s&&(x.isNew=!0)}this.closestPointRangePx=y,le(this,"afterTranslate")}getValidPoints(e,t,n){let r=this.chart;return(e||this.points||[]).filter(function(e){let{plotX:o,plotY:i}=e;return!(!n&&(e.isNull||!ye(i))||t&&!r.isInsidePlot(o,i,{inverted:r.inverted})||!1===e.visible)})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:e,group:t,markerGroup:n}=this,r=e.sharedClips,o=e.renderer,i=e.getClipBox(this),a=this.getSharedClipKey(),l=r[a];le(this,"setClip",{clipBox:i}),l?l.animate(i):r[a]=l=o.clipRect(i),t&&t.clip(!1===this.options.clip?void 0:l),n&&n.clip()}animate(e){let{chart:t,group:n,markerGroup:r}=this,o=t.inverted,i=or(this.options.animation),a=[this.getSharedClipKey(),i.duration,i.easing,i.defer].join(","),l=t.sharedClips[a],s=t.sharedClips[a+"m"];if(e&&n){let e=t.getClipBox(this);if(l)l.attr("height",e.height);else{e.width=0,o&&(e.x=t.plotHeight),l=t.renderer.clipRect(e),t.sharedClips[a]=l;let n={x:-99,y:-99,width:o?t.plotWidth+199:99,height:o?99:t.plotHeight+199};s=t.renderer.clipRect(n),t.sharedClips[a+"m"]=s}n.clip(l),null==r||r.clip(s)}else if(l&&!l.hasClass("highcharts-animating")){let e=t.getClipBox(this),n=i.step;((null==r?void 0:r.element.childNodes.length)||t.series.length>1)&&(i.step=function(e,t){n&&n.apply(t,arguments),"width"===t.prop&&(null==s?void 0:s.element)&&s.attr(o?"height":"width",e+99)}),l.addClass("highcharts-animating").animate(e,i)}}afterAnimate(){this.setClip(),Se(this.chart.sharedClips,(e,t,n)=>{e&&!this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`)&&(e.destroy(),delete n[t])}),this.finishedAnimating=!0,le(this,"afterAnimate")}drawPoints(e=this.points){let t,n,r,o,i,a,l,s=this.chart,c=s.styledMode,{colorAxis:u,options:d}=this,h=d.marker,p=d.nullInteraction,f=this[this.specialGroup||"markerGroup"],m=this.xAxis,g=Te(h.enabled,!m||!!m.isRadial||null,this.closestPointRangePx>=h.enabledThreshold*h.radius);if(!1!==h.enabled||this._hasPointMarkers)for(t=0;t<e.length;t++){o=(r=(n=e[t]).graphic)?"animate":"attr",i=n.marker||{},a=!!n.marker;let d=n.isNull;if(!(g&&!ee(i.enabled)||i.enabled)||d&&!p||!1===n.visible)r&&(n.graphic=r.destroy());else{let e=Te(i.symbol,this.symbol,"rect");l=this.markerAttribs(n,n.selected&&"select"),this.enabledDataSorting&&(n.startXPos=m.reversed?-(l.width||0):m.width);let t=!1!==n.isInside;if(!r&&t&&((l.width||0)>0||n.hasImage)&&(n.graphic=r=s.renderer.symbol(e,l.x,l.y,l.width,l.height,a?i:h).add(f),this.enabledDataSorting&&s.hasRendered&&(r.attr({x:n.startXPos}),o="animate")),r&&"animate"===o&&r[t?"show":"hide"](t).animate(l),r){let e=this.pointAttribs(n,c||!n.selected?void 0:"select");c?u&&r.css({fill:e.fill}):r[o](e)}r&&r.addClass(n.getClassName(),!0)}}}markerAttribs(e,t){var n,r;let o,i,a=this.options,l=a.marker,s=e.marker||{},c=s.symbol||l.symbol,u={},d=Te(s.radius,null==l?void 0:l.radius);t&&(o=null==(n=null==l?void 0:l.states)?void 0:n[t],i=null==(r=s.states)?void 0:r[t],d=Te(null==i?void 0:i.radius,null==o?void 0:o.radius,d&&d+((null==o?void 0:o.radiusPlus)||0))),e.hasImage=c&&0===c.indexOf("url"),e.hasImage&&(d=0);let h=e.pos();return ye(d)&&h&&(a.crisp&&(h[0]=Q(h[0],e.hasImage?0:"rect"===c?(null==l?void 0:l.lineWidth)||0:1)),u.x=h[0]-d,u.y=h[1]-d),d&&(u.width=u.height=2*d),u}pointAttribs(e,t){var n;let r,o,i,a,l=this.options,s=l.marker,c=null==e?void 0:e.options,u=(null==c?void 0:c.marker)||{},d=null==c?void 0:c.color,h=null==e?void 0:e.color,p=null==(n=null==e?void 0:e.zone)?void 0:n.color,f=this.color,m=Te(u.lineWidth,s.lineWidth),g=(null==e?void 0:e.isNull)&&l.nullInteraction?0:1;return f=d||p||h||f,i=u.fillColor||s.fillColor||f,a=u.lineColor||s.lineColor||f,t=t||"normal",r=s.states[t]||{},m=Te((o=u.states&&u.states[t]||{}).lineWidth,r.lineWidth,m+Te(o.lineWidthPlus,r.lineWidthPlus,0)),i=o.fillColor||r.fillColor||i,a=o.lineColor||r.lineColor||a,{stroke:a,"stroke-width":m,fill:i,opacity:g=Te(o.opacity,r.opacity,g)}}destroy(e){var t,n;let r,o,i=this,a=i.chart,l=/AppleWebKit\/533/.test(cr.navigator.userAgent),s=i.data||[];for(le(i,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(i.axisTypes||[]).forEach(function(e){o=i[e],(null==o?void 0:o.series)&&(oe(o.series,i),o.isDirty=o.forceRedraw=!0)}),i.legendItem&&i.chart.legend.destroyItem(i),r=s.length;r--;)null==(n=null==(t=s[r])?void 0:t.destroy)||n.call(t);for(let e of i.zones)te(e,void 0,!0);fe(i.animationTimeout),Se(i,function(e,t){e instanceof Rt&&!e.survive&&e[l&&"group"===t?"hide":"destroy"]()}),a.hoverSeries===i&&(a.hoverSeries=void 0),oe(a.series,i),a.orderItems("series"),Se(i,function(t,n){e&&"hcEvents"===n||delete i[n]})}applyZones(){let{area:e,chart:t,graph:n,zones:r,points:o,xAxis:i,yAxis:a,zoneAxis:l}=this,{inverted:s,renderer:c}=t,u=this[`${l}Axis`],{isXAxis:d,len:h=0,minPointOffset:p=0}=u||{},f=((null==n?void 0:n.strokeWidth())||0)/2+1,m=(e,t=0,n=0)=>{s&&(n=h-n);let{translated:r=0,lineClip:o}=e,i=n-r;null==o||o.push(["L",t,Math.abs(i)<f?n-f*(i<=0?-1:1):r])};if(r.length&&(n||e)&&u&&ye(u.min)){let t=u.getExtremes().max+p,f=e=>{e.forEach((t,n)=>{("M"===t[0]||"L"===t[0])&&(e[n]=[t[0],d?h-t[1]:t[1],d?t[2]:h-t[2]])})};if(r.forEach(e=>{e.lineClip=[],e.translated=X(u.toPixels(Te(e.value,t),!0)||0,0,h)}),n&&!this.showLine&&n.hide(),e&&e.hide(),"y"===l&&o.length<i.len)for(let e of o){let{plotX:t,plotY:n,zone:o}=e,i=o&&r[r.indexOf(o)-1];o&&m(o,t,n),i&&m(i,t,n)}let g=[],y=u.toPixels(u.getExtremes().min-p,!0);r.forEach(t=>{var r,o;let l=t.lineClip||[],u=Math.round(t.translated||0);i.reversed&&l.reverse();let{clip:h,simpleClip:p}=t,m=0,v=0,b=i.len,x=a.len;d?(m=u,b=y):(v=u,x=y);let w=[["M",m,v],["L",b,v],["L",b,x],["L",m,x],["Z"]],C=[w[0],...l,w[1],w[2],...g,w[3],w[4]];g=l.reverse(),y=u,s&&(f(C),e&&f(w)),h?(h.animate({d:C}),null==p||p.animate({d:w})):(h=t.clip=c.path(C),e&&(p=t.simpleClip=c.path(w))),n&&(null==(r=t.graph)||r.clip(h)),e&&(null==(o=t.area)||o.clip(p))})}else this.visible&&(n&&n.show(),e&&e.show())}plotGroup(e,t,n,r,o){let i=this[e],a=!i,l={visibility:n,zIndex:r||.1};return ee(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(l.opacity=this.opacity),i||(this[e]=i=this.chart.renderer.g().add(o)),i.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(ee(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(i.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),i.attr(l)[a?"attr":"animate"](this.getPlotBox(t)),i}getPlotBox(e){let t=this.xAxis,n=this.yAxis,r=this.chart,o=r.inverted&&!r.polar&&t&&this.invertible&&"series"===e;r.inverted&&(t=n,n=this.xAxis);let i={scale:1,translateX:t?t.left:r.plotLeft,translateY:n?n.top:r.plotTop,name:e};le(this,"getPlotBox",i);let{scale:a,translateX:l,translateY:s}=i;return{translateX:l,translateY:s,rotation:90*!!o,rotationOriginX:o?a*(t.len-n.len)/2:0,rotationOriginY:o?a*(t.len+n.len)/2:0,scaleX:o?-a:a,scaleY:a}}removeEvents(e){let{eventsToUnbind:t}=this;e||Ae(this),t.length&&(t.forEach(e=>{e()}),t.length=0)}render(){var e,t,n,r,o;let i=this,{chart:a,options:l,hasRendered:s}=i,c=or(l.animation),u=i.visible?"inherit":"hidden",d=l.zIndex,h=a.seriesGroup,p=i.finishedAnimating?0:c.duration;le(this,"render"),i.plotGroup("group","series",u,d,h),i.markerGroup=i.plotGroup("markerGroup","markers",u,d,h),!1!==l.clip&&i.setClip(),p&&(null==(e=i.animate)||e.call(i,!0)),i.drawGraph&&(i.drawGraph(),i.applyZones()),i.visible&&i.drawPoints(),null==(t=i.drawDataLabels)||t.call(i),null==(n=i.redrawPoints)||n.call(i),l.enableMouseTracking&&(null==(r=i.drawTracker)||r.call(i)),p&&(null==(o=i.animate)||o.call(i)),s||(p&&c.defer&&(p+=c.defer),i.animationTimeout=Le(()=>{i.afterAnimate()},p||0)),i.isDirty=!1,i.hasRendered=!0,le(i,"afterRender")}redraw(){let e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(e,t){let{xAxis:n,yAxis:r}=this,o=this.chart.inverted;return this.searchKDTree({clientX:o?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:o?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)}buildKDTree(e){this.buildingKdTree=!0;let t=this,n=t.options,r=n.findNearestPointBy.indexOf("y")>-1?2:1;delete t.kdTree,Le(function(){t.kdTree=function e(n,r,o){let i,a,l=null==n?void 0:n.length;if(l)return i=t.kdAxisArray[r%o],n.sort((e,t)=>(e[i]||0)-(t[i]||0)),{point:n[a=Math.floor(l/2)],left:e(n.slice(0,a),r+1,o),right:e(n.slice(a+1),r+1,o)}}(t.getValidPoints(void 0,!t.directTouch,null==n?void 0:n.nullInteraction),r,r),t.buildingKdTree=!1},n.kdNow||"touchstart"===(null==e?void 0:e.type)?0:1)}searchKDTree(e,t,n,r,o){let i=this,[a,l]=this.kdAxisArray,s=t?"distX":"dist",c=(i.options.findNearestPointBy||"").indexOf("y")>-1?2:1,u=!!i.isBubble,d=r||((e,t,n)=>{let r=e[n]||0,o=t[n]||0;return[r===o&&e.index>t.index||r<o?e:t,!1]}),h=o||((e,t)=>e<t);if(this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function e(t,n,r,o){var c,p;let f,m,g,y,v,b,x,w=n.point,C=i.kdAxisArray[r%o],k=w,S=!1;f=t[a],m=w[a],g=ee(f)&&ee(m)?f-m:null,y=t[l],v=w[l],b=ee(y)&&ee(v)?y-v:0,x=u&&(null==(c=w.marker)?void 0:c.radius)||0,w.dist=Math.sqrt((g&&g*g||0)+b*b)-x,w.distX=ee(g)?Math.abs(g)-x:Number.MAX_VALUE;let E=(t[C]||0)-(w[C]||0)+(u&&(null==(p=w.marker)?void 0:p.radius)||0),$=E<0?"left":"right",T=E<0?"right":"left";return n[$]&&([k,S]=d(w,e(t,n[$],r+1,o),s)),n[T]&&h(Math.sqrt(E*E),k[s],S)&&(k=d(k,e(t,n[T],r+1,o),s)[0]),k}(e,this.kdTree,c,c)}pointPlacementToXValue(){let{options:e,xAxis:t}=this,n=e.pointPlacement;return"between"===n&&(n=t.reversed?-.5:.5),ye(n)?n*(e.pointRange||t.pointRange):0}isPointInside(e){let{chart:t,xAxis:n,yAxis:r}=this,{plotX:o=-1,plotY:i=-1}=e;return i>=0&&i<=(r?r.len:t.plotHeight)&&o>=0&&o<=(n?n.len:t.plotWidth)}drawTracker(){var e;let t=this,n=t.options,r=n.trackByArea,o=[].concat((r?t.areaPath:t.graphPath)||[]),i=t.chart,a=i.pointer,l=i.renderer,s=(null==(e=i.options.tooltip)?void 0:e.snap)||0,c=()=>{n.enableMouseTracking&&i.hoverSeries!==t&&t.onMouseOver()},u="rgba(192,192,192,"+(sr?1e-4:.002)+")",d=t.tracker;d?d.attr({d:o}):t.graph&&(t.tracker=d=l.path(o).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(r?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),i.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:u,fill:r?u:"none","stroke-width":t.graph.strokeWidth()+(r?0:2*s)}),[t.tracker,t.markerGroup,...t.dataLabelsGroups||[]].forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",c).on("mouseout",e=>{null==a||a.onTrackerMouseOut(e)}),n.cursor&&!i.styledMode&&e.css({cursor:n.cursor}),e.on("touchstart",c))})),le(this,"afterDrawTracker")}addPoint(e,t,n,r,o){let i,a,l=this.options,{chart:s,data:c,dataTable:u,xAxis:d}=this,h=(null==d?void 0:d.hasNames)&&d.names,p=l.data,f=this.getColumn("x");t=Te(t,!0);let m={series:this};this.pointClass.prototype.applyOptions.apply(m,[e]);let g=m.x;if(a=f.length,this.requireSorting&&g<f[a-1])for(i=!0;a&&f[a-1]>g;)a--;u.setRow(m,a,!0,{addColumns:!1}),h&&m.name&&(h[g]=m.name),null==p||p.splice(a,0,e),(i||this.processedData)&&(this.data.splice(a,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),n&&(c[0]&&c[0].remove?c[0].remove(!1):([c,p].filter(ee).forEach(e=>{e.shift()}),u.deleteRows(0))),!1!==o&&le(this,"addPoint",{point:m}),this.isDirty=!0,this.isDirtyData=!0,t&&s.redraw(r)}removePoint(e,t,n){let r=this,{chart:o,data:i,points:a,dataTable:l}=r,s=i[e],c=function(){[(null==a?void 0:a.length)===i.length?a:void 0,i,r.options.data].filter(ee).forEach(t=>{t.splice(e,1)}),l.deleteRows(e),null==s||s.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&o.redraw()};ir(n,o),t=Te(t,!0),s?s.firePointEvent("remove",null,c):c()}remove(e,t,n,r){let o=this,i=o.chart;function a(){o.destroy(r),i.isDirtyLegend=i.isDirtyBox=!0,i.linkSeries(r),Te(e,!0)&&i.redraw(t)}!1!==n?le(o,"remove",null,a):a()}update(e,t){var n,r;le(this,"update",{options:e=re(e,this.userOptions)});let o,i,a=this,l=a.chart,s=a.userOptions,c=a.initialType||a.type,u=l.options.plotOptions,d=ur[c].prototype,h=a.finishedAnimating&&{animation:!1},p={},f=hr.keepProps.slice(),m=e.type||s.type||l.options.chart.type,g=!(this.hasDerivedData||m&&m!==this.type||void 0!==e.keys||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(e=>a.hasOptionChanged(e)));m=m||c,g?(f.push.apply(f,hr.keepPropsForPoints),!1!==e.visible&&f.push("area","graph"),a.parallelArrays.forEach(function(e){f.push(e+"Data")}),e.data&&(e.dataSorting&&ie(a.options.dataSorting,e.dataSorting),this.setData(e.data,!1))):this.dataTable.modified=this.dataTable,e.dataLabels&&s.dataLabels&&(e.dataLabels=this.mergeArrays(s.dataLabels,e.dataLabels)),e=Ce(s,{index:void 0===s.index?a.index:s.index,pointStart:(null==(n=null==u?void 0:u.series)?void 0:n.pointStart)??s.pointStart??a.getColumn("x")[0]},!g&&{data:a.options.data},e,h),g&&e.data&&(e.data=a.options.data),(f=["dataLabelsGroup","dataLabelsGroups","dataLabelsParentGroups","group","markerGroup","transformGroup"].concat(f)).forEach(function(e){f[e]=a[e],delete a[e]});let y=!1;if(ur[m]){if(y=m!==a.type,a.remove(!1,!1,!1,!0),y)if(l.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(a,ur[m].prototype);else{let e=Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents;for(i in d)a[i]=void 0;ie(a,ur[m].prototype),e?a.hcEvents=e:delete a.hcEvents}}else je(17,!0,l,{missingModuleFor:m});if(f.forEach(function(e){a[e]=f[e]}),a.init(l,e),g&&this.points)for(let e of(!1===(o=a.options).visible?(p.graphic=1,p.dataLabel=1):(this.hasMarkerChanged(o,s)&&(p.graphic=1),(null==(r=a.hasDataLabels)?void 0:r.call(a))||(p.dataLabel=1)),this.points))(null==e?void 0:e.series)&&(e.resolveColor(),Object.keys(p).length&&e.destroyElements(p),!1===o.showInLegend&&e.legendItem&&l.legend.destroyItem(e));a.initialType=c,l.linkSeries(),l.setSortedData(),y&&a.linkedSeries.length&&(a.isDirtyData=!0),le(this,"afterUpdate"),Te(t,!0)&&l.redraw(!!g&&void 0)}setName(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}hasOptionChanged(e){var t,n;let r=this.chart,o=this.options[e],i=r.options.plotOptions,a=this.userOptions[e],l=Te(null==(t=null==i?void 0:i[this.type])?void 0:t[e],null==(n=null==i?void 0:i.series)?void 0:n[e]);return a&&!ee(l)?o!==a:o!==Te(l,o)}onMouseOver(){let e=this.chart,t=e.hoverSeries,n=e.pointer;null==n||n.setHoverChartIndex(),t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&le(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}onMouseOut(){let e=this.options,t=this.chart,n=t.tooltip,r=t.hoverPoint;t.hoverSeries=null,r&&r.onMouseOut(),this&&e.events.mouseOut&&le(this,"mouseOut"),n&&!this.stickyTracking&&(!n.shared||this.noSharedTooltip)&&n.hide(),t.series.forEach(function(e){e.setState("",!0)})}setState(e,t){var n,r;let o=this,{graph:i,options:a}=o,{inactiveOtherPoints:l,states:s}=a,c=Te(null==(n=null==s?void 0:s[e||"normal"])?void 0:n.animation,o.chart.options.chart.animation),{lineWidth:u,opacity:d}=a;if(e=e||"",o.state!==e&&([o.group,o.markerGroup,...o.dataLabelsGroups||[]].forEach(function(t){t&&(o.state&&t.removeClass("highcharts-series-"+o.state),e&&t.addClass("highcharts-series-"+e))}),o.state=e,!o.chart.styledMode)){if(!1===(null==(r=s[e])?void 0:r.enabled))return;if(e&&(u=s[e].lineWidth||u+(s[e].lineWidthPlus||0),d=Te(s[e].opacity,d)),i&&!i.dashstyle&&ye(u))for(let e of[i,...this.zones.map(e=>e.graph)])null==e||e.animate({"stroke-width":u},c);l||[o.group,o.markerGroup,...o.dataLabelsGroups||[],o.labelBySeries].forEach(function(e){null==e||e.animate({opacity:d},c)})}t&&l&&o.points&&o.setAllPointsToState(e||void 0)}setAllPointsToState(e){this.points.forEach(function(t){t.setState&&t.setState(e)})}setVisible(e,t){var n,r;let o=this,i=o.chart,a=i.options.chart.ignoreHiddenSeries,l=o.visible;o.visible=e=o.options.visible=o.userOptions.visible=void 0===e?!l:e;let s=e?"show":"hide";["group","markerGroup","tracker","tt"].forEach(e=>{var t;null==(t=o[e])||t[s]()}),null==(n=o.dataLabelsGroups)||n.forEach(e=>{null==e||e[s]()}),(i.hoverSeries===o||(null==(r=i.hoverPoint)?void 0:r.series)===o)&&o.onMouseOut(),o.legendItem&&i.legend.colorizeItem(o,e),o.isDirty=!0,o.options.stacking&&i.series.forEach(e=>{e.options.stacking&&e.visible&&(e.isDirty=!0)}),o.linkedSeries.forEach(t=>{t.setVisible(e,!1)}),a&&(i.isDirtyBox=!0),le(o,s),!1!==t&&i.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),le(this,e?"select":"unselect")}shouldShowTooltip(e,t,n={}){return n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,n)}drawLegendSymbol(e,t){var n;let r=this.chart.renderer,o=this.options.legendSymbol||"rectangle",i=t.legendItem||{},{options:a,symbolHeight:l,symbolWidth:s}=e,c=a.squareSymbol,u=c?l:s,d=c?(s-l)/2:0,h=(e.baseline||0)-l+1,p=a.symbolRadius??l,f="rectangle"===o?r.rect(d,h,u,l,p):r.symbols[o]&&r.symbol(o,d,h,u,l,{r:p});f?i.symbol=f.addClass("highcharts-point").attr({zIndex:3}).add(i.group):null==(n=Jn[o])||n.call(this,e,t)}}hr.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:e}=this.series.chart;return"number"!=typeof this.y?"":e(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},hr.types=rr.seriesTypes,hr.registerType=rr.registerSeriesType,hr.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],hr.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],ie(hr.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:_n,requireSorting:!0,sorted:!0}),rr.series=hr;let pr=hr,{animObject:fr,setAnimation:mr}=lt,{registerEventOptions:gr}=dn,{composed:yr,marginNames:vr}=H,{distribute:br}=kt,{format:xr}=wt;class wr{constructor(e,t){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=e,this.setOptions(t),t.enabled&&(this.render(),gr(this,t),V(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),V(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(e){let t=Te(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=Ce(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=Te(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted,this.baseline=void 0}update(e,t){let n=this.chart;this.setOptions(Ce(!0,this.options,e)),"events"in this.options&&gr(this,this.options),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,Te(t,!0)&&n.redraw(),le(this,"afterUpdate",{redraw:t})}colorizeItem(e,t){var n;let r=e.color,{area:o,group:i,label:a,line:l,symbol:s}=e.legendItem||{};if((e instanceof pr||e instanceof _n)&&(e.color=(null==(n=e.options)?void 0:n.legendSymbolColor)||r),null==i||i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:n={}}=this,r=n.color,{fillColor:i,fillOpacity:c,lineColor:u,marker:d}=e.options,h=e=>(!t&&(e.fill&&(e.fill=r),e.stroke&&(e.stroke=r)),e);null==a||a.css(Ce(t?this.itemStyle:n)),null==l||l.attr(h({stroke:u||e.color})),s&&s.attr(h(d&&s.isMarker?e.pointAttribs():{fill:e.color})),null==o||o.attr(h({fill:i||e.color,"fill-opacity":i?1:c??.75}))}e.color=r,le(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){let{group:t,x:n=0,y:r=0}=e.legendItem||{},o=this.options,i=o.symbolPadding,a=!o.rtl,l=e.checkbox;if(null==t?void 0:t.element){let o={translateX:a?n:this.legendWidth-n-2*i-4,translateY:r},l=()=>{le(this,"afterPositionItem",{item:e})};t[ee(t.translateY)?"animate":"attr"](o,void 0,l)}l&&(l.x=n,l.y=r)}destroyItem(e){let t=e.legendItem||{};for(let e of["group","label","line","symbol"])t[e]&&(t[e]=t[e].destroy());e.checkbox=ne(e.checkbox),e.legendItem=void 0}destroy(){for(let e of this.getAllItems())this.destroyItem(e);for(let e of["clipRect","up","down","pager","nav","box","title","group"])this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){var e;let t,n=null==(e=this.group)?void 0:e.alignAttr,r=this.clipHeight||this.legendHeight,o=this.titleHeight;n&&(t=n.translateY,this.allItems.forEach(function(e){let i,a=e.checkbox;a&&(i=t+o+a.y+(this.scrollOffset||0)+3,J(a,{left:n.translateX+e.checkboxOffset+a.x-20+"px",top:i+"px",display:this.proximate||i>t-6&&i<t+r-6?"":"none"}))},this))}renderTitle(){let e,t=this.options,n=this.padding,r=t.title,o=0;r.text&&(this.title||(this.title=this.chart.renderer.label(r.text,n-3,n-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(r.style),this.title.add(this.group)),r.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o}setText(e){let t=this.options;e.legendItem.label.attr({text:t.labelFormat?xr(t.labelFormat,e,this.chart):t.labelFormatter.call(e,e)})}renderItem(e){var t;let n=e.legendItem=e.legendItem||{},r=this.chart,o=r.renderer,i=this.options,a="horizontal"===i.layout,l=this.symbolWidth,s=i.symbolPadding||0,c=this.itemStyle,u=this.itemHiddenStyle,d=a?Te(i.itemDistance,20):0,h=!i.rtl,p=!e.series,f=!p&&e.series.drawLegendSymbol?e.series:e,m=f.options,g=!!this.createCheckboxForItem&&m&&m.showCheckbox,y=i.useHTML,v=e.options.className,b=n.label,x=l+s+d+20*!!g;!b&&(n.group=o.g("legend-item").addClass("highcharts-"+f.type+"-series highcharts-color-"+e.colorIndex+(v?" "+v:"")+(p?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),n.label=b=o.text("",h?l+s:-s,this.baseline||0,y),r.styledMode||b.css(Ce(e.visible?c:u)),b.attr({align:h?"left":"right",zIndex:2}).add(n.group),!this.baseline&&(this.fontMetrics=o.fontMetrics(b),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,b.attr("y",this.baseline),this.symbolHeight=Te(i.symbolHeight,this.fontMetrics.f),i.squareSymbol&&(this.symbolWidth=Te(i.symbolWidth,Math.max(this.symbolHeight,16)),x=this.symbolWidth+s+d+20*!!g,h&&b.attr("x",this.symbolWidth+s))),f.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,b,y)),g&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),(r.styledMode||!c.width)&&b.css({width:Math.min(i.itemWidth||this.widthOption||r.spacingBox.width,i.maxWidth?Oe(i.maxWidth,r.chartWidth):1/0)-x+"px"}),this.setText(e);let w=b.getBBox(),C=(null==(t=this.fontMetrics)?void 0:t.h)||0;e.itemWidth=e.checkboxOffset=i.itemWidth||n.labelWidth||w.width+x,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(n.labelHeight||(w.height>1.5*C?w.height:C))}layoutItem(e){let t=this.options,n=this.padding,r="horizontal"===t.layout,o=e.itemHeight,i=this.itemMarginBottom,a=this.itemMarginTop,l=r?Te(t.itemDistance,20):0,s=this.maxLegendWidth,c=t.alignColumns&&this.totalItemWidth>s?this.maxItemWidth:e.itemWidth,u=e.legendItem||{};r&&this.itemX-n+c>s&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+i),this.lastLineHeight=0),this.lastItemY=a+this.itemY+i,this.lastLineHeight=Math.max(o,this.lastLineHeight),u.x=this.itemX,u.y=this.itemY,r?this.itemX+=c:(this.itemY+=a+o+i,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(e.checkbox?0:l):c)+n,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){var n;let r=null==t?void 0:t.options;t&&Te(r.showInLegend,!ee(r.linkedTo)&&void 0,!0)&&(e=e.concat((null==(n=t.legendItem)?void 0:n.labels)||("point"===r.legendType?t.data:t)))}),le(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){let e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){let n=this.chart,r=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((i,a)=>{i.test(o)&&!ee(e[a])&&(n[vr[a]]=Math.max(n[vr[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+(r.margin??12)+t[a]+(n.titleOffset[a]||0)))})}proximatePositions(){let e,t=this.chart,n=[],r="left"===this.options.align;for(let o of(this.allItems.forEach(function(e){let o,i,a,l,s=r;e.yAxis&&(e.xAxis.options.reversed&&(s=!s),e.points&&(o=pe(s?e.points:e.points.slice(0).reverse(),function(e){return ye(e.plotY)})),i=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,l=e.yAxis.top-t.plotTop,a=e.visible?(o?o.plotY:e.yAxis.height)+(l-.3*i):l+e.yAxis.height,n.push({target:a,size:i,item:e}))},this),br(n,t.plotHeight)))e=o.item.legendItem||{},ye(o.pos)&&(e.y=t.plotTop-t.spacing[0]+o.pos)}render(){let e,t,n,r,o=this.chart,i=o.spacingBox.width,a=o.renderer,l=this.options,s=this.padding,c=this.getAllItems(),u=this.group,d=this.box;this.itemX=s,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=Oe(l.width,i-s),r=i-2*s-l.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(r/=2),this.maxLegendWidth=this.widthOption||r,u||(this.group=u=a.g("legend").addClass(l.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(u),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),Re(c,(e,t)=>{var n,r;return((null==(n=e.options)?void 0:n.legendIndex)||0)-((null==(r=t.options)?void 0:r.legendIndex)||0)}),l.reversed&&c.reverse(),this.allItems=c,this.display=e=!!c.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,c.forEach(this.renderItem,this),c.forEach(this.layoutItem,this),t=(l.maxWidth?Math.min(this.widthOption||this.offsetWidth,r,Oe(l.maxWidth,o.chartWidth)||1/0):this.widthOption||this.offsetWidth)+s,n=this.lastItemY+this.lastLineHeight+this.titleHeight,n=this.handleOverflow(n)+s,d||(this.box=d=a.rect().addClass("highcharts-legend-box").attr({r:l.borderRadius}).add(u)),o.styledMode||d.attr({stroke:l.borderColor,"stroke-width":l.borderWidth||0,fill:l.backgroundColor||"none"}).shadow(l.shadow),t>0&&n>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:t,height:n},d.strokeWidth())),u[e?"show":"hide"](),o.styledMode&&"none"===u.getStyle("display")&&(t=n=0),this.legendWidth=t,this.legendHeight=n,e&&this.align(),this.proximate||this.positionItems(),le(this,"afterRender")}align(e=this.chart.spacingBox){let t=this.chart,n=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&t.titleOffset[0]>0?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&t.titleOffset[2]>0&&(r-=t.titleOffset[2]),r!==e.y&&(e=Ce(e,{y:r})),t.hasRendered||(this.group.placed=!1),this.group.align(Ce(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,e)}handleOverflow(e){let t,n,r,o,i=this,a=this.chart,l=a.renderer,s=this.options,c=s.y,u="top"===s.verticalAlign,d=this.padding,h=s.maxHeight,p=s.navigation,f=Te(p.animation,!0),m=p.arrowSize||12,g=this.pages,y=this.allItems,v=function(e){"number"==typeof e?C.attr({height:e}):C&&(i.clipRect=C.destroy(),i.contentGroup.clip()),i.contentGroup.div&&(i.contentGroup.div.style.clip=e?"rect("+d+"px,9999px,"+(d+e)+"px,0)":"auto")},b=function(e){return i[e]=l.circle(0,0,1.3*m).translate(m/2,m/2).add(w),a.styledMode||i[e].attr("fill","rgba(0,0,0,0.0001)"),i[e]},x=a.spacingBox.height+(u?-c:c)-d,w=this.nav,C=this.clipRect;return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(x/=2),h&&(x=Math.min(x,h)),g.length=0,e&&x>0&&e>x&&!1!==p.enabled?(this.clipHeight=t=Math.max(x-20-this.titleHeight-d,0),this.currentPage=Te(this.currentPage,1),this.fullHeight=e,y.forEach((e,i)=>{let a=(r=e.legendItem||{}).y||0,l=Math.round(r.label.getBBox().height),s=g.length;(!s||a-g[s-1]>t&&(n||a)!==g[s-1])&&(g.push(n||a),s++),r.pageIx=s-1,n&&o&&(o.pageIx=s-1),i===y.length-1&&a+l-g[s-1]>t&&a>g[s-1]&&(g.push(a),r.pageIx=s),a!==n&&(n=a),o=r}),C||(C=i.clipRect=l.clipRect(0,d-2,9999,0),i.contentGroup.clip(C)),v(t),w||(this.nav=w=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,m,m).add(w),b("upTracker").on("click",function(){i.scroll(-1,f)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(w),this.down=l.symbol("triangle-down",0,0,m,m).add(w),b("downTracker").on("click",function(){i.scroll(1,f)})),i.scroll(0),e=x):w&&(v(),this.nav=w.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){let n=this.chart,r=this.pages,o=r.length,i=this.clipHeight,a=this.options.navigation,l=this.pager,s=this.padding,c=this.currentPage+e;c>o&&(c=o),c>0&&(void 0!==t&&mr(t,n),this.nav.attr({translateX:s,translateY:i+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(e){e.attr({class:1===c?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:c+"/"+o}),[this.down,this.downTracker].forEach(function(e){e.attr({x:18+this.pager.getBBox().width,class:c===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),n.styledMode||(this.up.attr({fill:1===c?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===c?"default":"pointer"}),this.down.attr({fill:c===o?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:c===o?"default":"pointer"})),this.scrollOffset=-r[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes(),Le(()=>{le(this,"afterScroll",{currentPage:c})},fr(Te(t,n.renderer.globalAnimation,!0)).duration))}setItemEvents(e,t,n){let r=this,o=e.legendItem||{},i=r.chart.renderer.boxWrapper,a=e instanceof _n,l=e instanceof pr,s="highcharts-legend-"+(a?"point":"series")+"-active",c=r.chart.styledMode,u=n?[t,o.symbol]:[o.group],d=t=>{r.allItems.forEach(n=>{e!==n&&[n].concat(n.linkedSeries||[]).forEach(e=>{e.setState(t,!a)})})};for(let n of u)n&&n.on("mouseover",function(){e.visible&&d("inactive"),e.setState("hover"),e.visible&&i.addClass(s),c||t.css(r.options.itemHoverStyle)}).on("mouseout",function(){r.chart.styledMode||t.css(Ce(e.visible?r.itemStyle:r.itemHiddenStyle)),d(""),i.removeClass(s),e.setState()}).on("click",function(t){i.removeClass(s),le(r,"itemClick",{browserEvent:t,legendItem:e,context:r},function(){e.setVisible&&e.setVisible(),d(e.visible?"inactive":"")}),a?e.firePointEvent("legendItemClick",{browserEvent:t}):l&&le(e,"legendItemClick",{browserEvent:t})})}createCheckboxForItem(e){e.checkbox=Z("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),V(e.checkbox,"click",function(t){let n=t.target;le(e.series||e,"checkboxClick",{checked:n.checked,item:e},function(){e.select()})})}}(b=wr||(wr={})).compose=function(e){Me(yr,"Core.Legend")&&V(e,"beforeMargins",function(){this.legend=new b(this,this.options.legend)})};let Cr=wr,{animate:kr,animObject:Sr,setAnimation:Er}=lt,{defaultOptions:$r}=Ze,{numberFormat:Tr}=wt,{registerEventOptions:Pr}=dn,{charts:Mr,doc:Or,marginNames:Nr,svg:Ar,win:Ir}=H,{seriesTypes:Rr}=rr;class Lr{static chart(e,t,n){return new Lr(e,t,n)}constructor(e,t,n){if(this.sharedClips={},!Or)return void je(36,!1,this);const r=[...arguments];(ve(e)||e.nodeName)&&(this.renderTo=r.shift()),this.init(r[0],r[1])}setZoomOptions(){let e=this.options.chart,t=e.zooming;this.zooming={...t,type:Te(e.zoomType,t.type),key:Te(e.zoomKey,t.key),pinchType:Te(e.pinchType,t.pinchType),singleTouch:Te(e.zoomBySingleTouch,t.singleTouch,!1),resetButton:Ce(t.resetButton,e.resetZoomButton)}}init(e,t){le(this,"init",{args:arguments},function(){var n;let r=Ce($r,e),o=r.chart,i=this.renderTo||o.renderTo;this.userOptions=ie({},e),(this.renderTo=ve(i)?Or.getElementById(i):i)||je(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.locale=r.lang.locale??(null==(n=this.renderTo.closest("[lang]"))?void 0:n.lang),this.time=new qe(ie(r.time||{},{locale:this.locale}),r.lang),r.time=this.time.options,this.numberFormatter=(o.numberFormatter||Tr).bind(this),this.styledMode=o.styledMode,this.hasCartesianSeries=o.showAxes,this.index=Mr.length,Mr.push(this),H.chartCount++,Pr(this,o),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),le(this,"afterInit"),this.firstRender()})}initSeries(e){let t=this.options.chart,n=e.type||t.type,r=Rr[n];r||je(17,!0,this,{missingModuleFor:n});let o=new r;return"function"==typeof o.init&&o.init(this,e),o}setSortedData(){this.getSeriesOrderByLinks().forEach(function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0})}orderItems(e,t=0){let n=this[e],r=this.options[e]=Ie(this.options[e]).slice(),o=this.userOptions[e]=this.userOptions[e]?Ie(this.userOptions[e]).slice():[];if(this.hasRendered&&(r.splice(t),o.splice(t)),n)for(let e=t,i=n.length;e<i;++e){let t=n[e];t&&(t.index=e,t instanceof pr&&(t.name=t.getName()),t.options.isInternal||(r[e]=t.options,o[e]=t.userOptions))}}getClipBox(e,t){var n,r;let o=this.inverted,{xAxis:i,yAxis:a}=e||{},{x:l,y:s,width:c,height:u}=Ce(this.clipBox);return e&&(i&&i.len!==this.plotSizeX&&(c=i.len),a&&a.len!==this.plotSizeY&&(u=a.len),o&&!e.invertible&&([c,u]=[u,c])),t&&(l+=(null==(n=o?a:i)?void 0:n.pos)??this.plotLeft,s+=(null==(r=o?i:a)?void 0:r.pos)??this.plotTop),{x:l,y:s,width:c,height:u}}isInsidePlot(e,t,n={}){var r;let{inverted:o,plotBox:i,plotLeft:a,plotTop:l,scrollablePlotBox:s}=this,{scrollLeft:c=0,scrollTop:u=0}=n.visiblePlotOnly&&(null==(r=this.scrollablePlotArea)?void 0:r.scrollingContainer)||{},d=n.series,h=n.visiblePlotOnly&&s||i,p=n.inverted?t:e,f=n.inverted?e:t,m={x:p,y:f,isInsidePlot:!0,options:n};if(!n.ignoreX){let e=d&&(o&&!this.polar?d.yAxis:d.xAxis)||{pos:a,len:1/0},t=n.paneCoordinates?e.pos+p:a+p;t>=Math.max(c+a,e.pos)&&t<=Math.min(c+a+h.width,e.pos+e.len)||(m.isInsidePlot=!1)}if(!n.ignoreY&&m.isInsidePlot){let e=!o&&n.axis&&!n.axis.isXAxis&&n.axis||d&&(o?d.xAxis:d.yAxis)||{pos:l,len:1/0},t=n.paneCoordinates?e.pos+f:l+f;t>=Math.max(u+l,e.pos)&&t<=Math.min(u+l+h.height,e.pos+e.len)||(m.isInsidePlot=!1)}return le(this,"afterIsInsidePlot",m),m.isInsidePlot}redraw(e){le(this,"beforeRedraw");let t,n,r,o,i=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,l=this.pointer,s=this.legend,c=this.userOptions.legend,u=this.renderer,d=u.isHidden(),h=[],p=this.isDirtyBox,f=this.isDirtyLegend;for(u.rootFontSize=u.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),Er(!!this.hasRendered&&e,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),r=a.length;r--;)if(((o=a[r]).options.stacking||o.options.centerInCategory)&&(n=!0,o.isDirty)){t=!0;break}if(t)for(r=a.length;r--;)(o=a[r]).options.stacking&&(o.isDirty=!0);a.forEach(function(e){e.isDirty&&("point"===e.options.legendType?("function"==typeof e.updateTotals&&e.updateTotals(),f=!0):c&&(c.labelFormatter||c.labelFormat)&&(f=!0)),e.isDirtyData&&le(e,"updatedData")}),f&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),n&&this.getStacks(),i.forEach(function(e){e.updateNames(),e.setScale()}),this.getMargins(),i.forEach(function(e){e.isDirty&&(p=!0)}),i.forEach(function(e){let t=e.min+","+e.max;e.extKey!==t&&(e.extKey=t,h.push(function(){le(e,"afterSetExtremes",ie(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(p||n)&&e.redraw()}),p&&this.drawChartBox(),le(this,"predraw"),a.forEach(function(e){(p||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1}),l&&l.reset(!0),u.draw(),le(this,"redraw"),le(this,"render"),d&&this.temporaryDisplay(!0),h.forEach(function(e){e.call()})}get(e){let t=this.series;function n(t){return t.id===e||t.options&&t.options.id===e}let r=pe(this.axes,n)||pe(this.series,n);for(let e=0;!r&&e<t.length;e++)r=pe(t[e].points||[],n);return r}createAxes(){let e=this.userOptions;for(let t of(le(this,"createAxes"),["xAxis","yAxis"]))for(let n of e[t]=Ie(e[t]||{}))new wn(this,n,t);le(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((e,t)=>(t.getPointsCollection().forEach(t=>{Te(t.selectedStaging,t.selected)&&e.push(t)}),e),[])}getSelectedSeries(){return this.series.filter(e=>e.selected)}setTitle(e,t,n){this.applyDescription("title",e),this.applyDescription("subtitle",t),this.applyDescription("caption",void 0),this.layOutTitles(n)}applyDescription(e,t){var n;let r=this,o=this.options[e]=Ce(this.options[e],t),i=this[e];i&&t&&(this[e]=i=i.destroy()),o&&!i&&((i=this.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,class:"highcharts-"+e,zIndex:o.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(t,n){r.applyDescription(e,t),r.layOutTitles(n)},this.styledMode||i.css(ie("title"===e?{fontSize:this.options.isStock?"1em":"1.2em"}:{},o.style)),i.textPxLength=i.getBBox().width,i.css({whiteSpace:null==(n=o.style)?void 0:n.whiteSpace}),this[e]=i)}layOutTitles(e=!0){var t,n,r,o;let i=[0,0,0],{options:a,renderer:l,spacingBox:s}=this;["title","subtitle","caption"].forEach(e=>{var t;let n=this[e],r=this.options[e],o=Ce(s),a=(null==n?void 0:n.textPxLength)||0;if(n&&r){le(this,"layOutTitle",{alignTo:o,key:e,textPxLength:a});let s=l.fontMetrics(n),c=s.b,u=s.h,d=r.verticalAlign||"top",h="top"===d,p=h&&r.minScale||1,f="title"===e?h?-3:0:h?i[0]+2:0,m=Math.min(o.width/a,1),g=Math.max(p,m),y=Ce({y:"bottom"===d?c:f+c},r),v=(r.width||(m>p?this.chartWidth:o.width)/g)+"px";y.align??(y.align="title"===e?m<p?"left":"center":null==(t=this.title)?void 0:t.alignValue),n.alignValue!==y.align&&(n.placed=!1);let b=Math.round(n.css({width:v}).getBBox(r.useHTML).height);if(y.height=b,n.align(y,!1,o).attr({align:y.align,scaleX:g,scaleY:g,"transform-origin":`${o.x+a*g*se(y.align)} ${u}`}),!r.floating){let e=b*(b<1.2*u?1:g);"top"===d?i[0]=Math.ceil(i[0]+e):"bottom"===d&&(i[2]=Math.ceil(i[2]+e))}}},this),i[0]&&"top"===((null==(t=a.title)?void 0:t.verticalAlign)||"top")&&(i[0]+=(null==(n=a.title)?void 0:n.margin)||0),i[2]&&"bottom"===(null==(r=a.caption)?void 0:r.verticalAlign)&&(i[2]+=(null==(o=a.caption)?void 0:o.margin)||0);let c=!this.titleOffset||this.titleOffset.join(",")!==i.join(",");this.titleOffset=i,le(this,"afterLayOutTitles"),!this.isDirtyBox&&c&&(this.isDirtyBox=this.isDirtyLegend=c,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}getContainerBox(){let e=[].map.call(this.renderTo.children,e=>{if(e!==this.container){let t=e.style.display;return e.style.display="none",[e,t]}}),t={width:he(this.renderTo,"width",!0)||0,height:he(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(([e,t])=>{e.style.display=t}),t}getChartSize(){var e;let t=this.options.chart,n=t.width,r=t.height,o=this.getContainerBox(),i=o.height<=1||!(null==(e=this.renderTo.parentElement)?void 0:e.style.height)&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,n||o.width||600),this.chartHeight=Math.max(0,Oe(r,this.chartWidth)||(i?400:o.height)),this.containerBox=o}temporaryDisplay(e){let t,n=this.renderTo;if(e)for(;null==n?void 0:n.style;)n.hcOrigStyle&&(J(n,n.hcOrigStyle),delete n.hcOrigStyle),n.hcOrigDetached&&(Or.body.removeChild(n),n.hcOrigDetached=!1),n=n.parentNode;else for(;(null==n?void 0:n.style)&&(Or.body.contains(n)||n.parentNode||(n.hcOrigDetached=!0,Or.body.appendChild(n)),("none"===he(n,"display",!1)||n.hcOrigDetached)&&(n.hcOrigStyle={display:n.style.display,height:n.style.height,overflow:n.style.overflow},t={display:"block",overflow:"hidden"},n!==this.renderTo&&(t.height=0),J(n,t),n.offsetWidth||n.style.setProperty("display","block","important")),(n=n.parentNode)!==Or.body););}setClassName(e){this.container.className="highcharts-container "+(e||"")}getContainer(){var e,t;let n,r=this.options,o=r.chart,i="data-highcharts-chart",a=He(),l=this.renderTo,s=Pe(G(l,i));ye(s)&&Mr[s]&&Mr[s].hasRendered&&Mr[s].destroy(),G(l,i,this.index),l.innerHTML=pt.emptyHTML,o.skipClone||l.offsetWidth||this.temporaryDisplay(),this.getChartSize();let c=this.chartHeight,u=this.chartWidth;J(l,{overflow:"hidden"}),this.styledMode||(n=ie({position:"relative",overflow:"hidden",width:u+"px",height:c+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},o.style||{}));let d=Z("div",{id:a},n,l);this.container=d,this.getChartSize(),u!==this.chartWidth&&(u=this.chartWidth,this.styledMode||J(d,{width:Te(null==(e=o.style)?void 0:e.width,u+"px")})),this.containerBox=this.getContainerBox(),this._cursor=d.style.cursor;let h=o.renderer||!Ar?Ct.getRendererType(o.renderer):nn;if(this.renderer=new h(d,u,c,void 0,o.forExport,null==(t=r.exporting)?void 0:t.allowHTML,this.styledMode),Er(void 0,this),this.setClassName(o.className),this.styledMode)for(let e in r.defs)this.renderer.definition(r.defs[e]);else this.renderer.setStyle(o.style);this.renderer.chartIndex=this.index,le(this,"afterGetContainer")}getMargins(e){var t;let{spacing:n,margin:r,titleOffset:o}=this;this.resetMargins(),o[0]&&!ee(r[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+n[0])),o[2]&&!ee(r[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+n[2])),(null==(t=this.legend)?void 0:t.display)&&this.legend.adjustMargins(r,n),le(this,"getMargins"),e||this.getAxisMargins()}getAxisMargins(){let e=this,t=e.axisOffset=[0,0,0,0],n=e.colorAxis,r=e.margin,o=e=>{e.forEach(e=>{e.visible&&e.getOffset()})};e.hasCartesianSeries?o(e.axes):(null==n?void 0:n.length)&&o(n),Nr.forEach((n,o)=>{ee(r[o])||(e[n]+=t[o])}),e.setChartSize()}getOptions(){return re(this.userOptions,$r)}reflow(e){var t,n;let r=this,o=r.containerBox,i=r.getContainerBox();null==(t=r.pointer)||delete t.chartPosition,!(null==(n=r.exporting)?void 0:n.isPrinting)&&!r.isResizing&&o&&i.width&&((i.width!==o.width||i.height!==o.height)&&(fe(r.reflowTimeout),r.reflowTimeout=Le(function(){if(r.container){r.setSize(void 0,void 0,!1);let e=r.containerBox;e&&(e.height=r.chartHeight)}},100*!!e)),r.containerBox=i)}setReflow(){let e=this,t=t=>{var n;(null==(n=e.options)?void 0:n.chart.reflow)&&e.hasLoaded&&e.reflow(t)};if("function"==typeof ResizeObserver)new ResizeObserver(t).observe(e.renderTo);else{let e=V(Ir,"resize",t);V(this,"destroy",e)}}setSize(e,t,n){let r=this,o=r.renderer;r.isResizing+=1,Er(n,r);let i=o.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==e&&(r.options.chart.width=e),void 0!==t&&(r.options.chart.height=t),r.getChartSize();let{chartWidth:a,chartHeight:l,scrollablePixelsX:s=0,scrollablePixelsY:c=0}=r;(r.isDirtyBox||a!==r.oldChartWidth||l!==r.oldChartHeight)&&(r.styledMode||(i?kr:J)(r.container,{width:`${a+s}px`,height:`${l+c}px`},i),r.setChartSize(!0),o.setSize(a,l,i),r.axes.forEach(function(e){e.isDirty=!0,e.setScale()}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(i),r.oldChartHeight=void 0,le(r,"resize"),setTimeout(()=>{r&&le(r,"endResize")},Sr(i).duration)),r.isResizing-=1}setChartSize(e){let t,n,r,o,{chartHeight:i,chartWidth:a,inverted:l,spacing:s,renderer:c}=this,u=this.clipOffset,d=Math[l?"floor":"round"];this.plotLeft=t=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(a-t-(this.marginRight??0))),this.plotHeight=o=Math.max(0,Math.round(i-n-(this.marginBottom??0))),this.plotSizeX=l?o:r,this.plotSizeY=l?r:o,this.spacingBox=c.spacingBox={x:s[3],y:s[0],width:a-s[3]-s[1],height:i-s[0]-s[2]},this.plotBox=c.plotBox={x:t,y:n,width:r,height:o},u&&(this.clipBox={x:d(u[3]),y:d(u[0]),width:d(this.plotSizeX-u[1]-u[3]),height:d(this.plotSizeY-u[0]-u[2])}),e||(this.axes.forEach(function(e){e.setAxisSize(),e.setAxisTranslation()}),c.alignElements()),le(this,"afterSetChartSize",{skipAxes:e})}resetMargins(){le(this,"resetMargins");let e=this,t=e.options.chart,n=t.plotBorderWidth||0,r=Math.round(n)/2;["margin","spacing"].forEach(n=>{let r=t[n],o=we(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach((r,i)=>{e[n][i]=t[`${n}${r}`]??o[i]})}),Nr.forEach((t,n)=>{e[t]=e.margin[n]??e.spacing[n]}),e.axisOffset=[0,0,0,0],e.clipOffset=[r,r,r,r],e.plotBorderWidth=n}drawChartBox(){let e,t,n,r=this.options.chart,o=this.renderer,i=this.chartWidth,a=this.chartHeight,l=this.styledMode,s=this.plotBGImage,c=r.backgroundColor,u=r.plotBackgroundColor,d=r.plotBackgroundImage,h=this.plotLeft,p=this.plotTop,f=this.plotWidth,m=this.plotHeight,g=this.plotBox,y=this.clipRect,v=this.clipBox,b=this.chartBackground,x=this.plotBackground,w=this.plotBorder,C="animate";b||(this.chartBackground=b=o.rect().addClass("highcharts-background").add(),C="attr"),l?e=t=b.strokeWidth():(t=(e=r.borderWidth||0)+8*!!r.shadow,n={fill:c||"none"},(e||b["stroke-width"])&&(n.stroke=r.borderColor,n["stroke-width"]=e),b.attr(n).shadow(r.shadow)),b[C]({x:t/2,y:t/2,width:i-t-e%2,height:a-t-e%2,r:r.borderRadius}),C="animate",x||(C="attr",this.plotBackground=x=o.rect().addClass("highcharts-plot-background").add()),x[C](g),!l&&(x.attr({fill:u||"none"}).shadow(r.plotShadow),d&&(s?(d!==s.attr("href")&&s.attr("href",d),s.animate(g)):this.plotBGImage=o.image(d,h,p,f,m).add())),y?y.animate({width:v.width,height:v.height}):this.clipRect=o.clipRect(v),C="animate",w||(C="attr",this.plotBorder=w=o.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l||w.attr({stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth||0,fill:"none"}),w[C](w.crisp(g,-w.strokeWidth())),this.isDirtyBox=!1,le(this,"afterDrawChartBox")}propFromSeries(){let e,t,n,r=this,o=r.options.chart,i=r.options.series;["inverted","angular","polar"].forEach(function(a){for(t=Rr[o.type],n=o[a]||t&&t.prototype[a],e=null==i?void 0:i.length;!n&&e--;)(t=Rr[i[e].type])&&t.prototype[a]&&(n=!0);r[a]=n})}linkSeries(e){let t=this,n=t.series;n.forEach(function(e){e.linkedSeries.length=0}),n.forEach(function(e){let{linkedTo:r}=e.options,o=ve(r)&&(":previous"===r?n[e.index-1]:t.get(r));o&&o.linkedParent!==e&&(o.linkedSeries.push(e),e.linkedParent=o,o.enabledDataSorting&&e.setDataSortingOptions(),e.visible=e.options.visible??o.options.visible??e.visible)}),le(this,"afterLinkSeries",{isUpdating:e})}renderSeries(){this.series.forEach(function(e){e.translate(),e.render()})}render(){var e,t,n;let r,o=this.axes,i=this.colorAxis,a=this.renderer,l=this.options.chart.axisLayoutRuns||2,s=e=>{e.forEach(e=>{e.visible&&e.render()})},c=0,u=!0,d=0;for(let t of(this.setTitle(),le(this,"beforeMargins"),null==(e=this.getStacks)||e.call(this),this.getMargins(!0),this.setChartSize(),o)){let{options:e}=t,{labels:n}=e;if(this.hasCartesianSeries&&t.horiz&&t.visible&&n.enabled&&t.series.length&&"colorAxis"!==t.coll&&!this.polar){c=e.tickLength,t.createGroups();let r=new pn(t,0,"",!0),o=r.createLabel("x",n);if(r.destroy(),o&&Te(n.reserveSpace,!ye(e.crossing))&&(c=o.getBBox().height+n.distance+Math.max(e.offset||0,0)),c){null==o||o.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-c,0);(u||r||l>1)&&d<l;){let e=this.plotWidth,i=this.plotHeight,a=[1.05,1.1];for(let e of o){let o=+(e.horiz||0);if(0===d){e.setScale();let r=null==(n=null==(t=e.tickPositions)?void 0:t.info)?void 0:n.match;r&&(a[o]=Math.min(r,a[o]))}else(o&&u||!o&&r)&&e.setTickInterval(!0)}0===d?this.getAxisMargins():this.getMargins(),u=e/this.plotWidth>(d?1:a[1]),r=i/this.plotHeight>(d?1:a[0]),d++}this.drawChartBox(),this.hasCartesianSeries?s(o):(null==i?void 0:i.length)&&s(i),this.seriesGroup||(this.seriesGroup=a.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(e){var t;let n=this,r=Ce(!0,this.options.credits,e);r.enabled&&!this.credits&&(this.credits=this.renderer.text(r.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(e){le(n,"creditsClick",e,()=>{r.href&&(Ir.location.href=r.href)})}).attr({align:r.position.align,zIndex:8}),(null==(t=r.events)?void 0:t.click)&&V(n,"creditsClick",r.events.click),n.styledMode||this.credits.css(r.style),this.credits.add().align(r.position),this.credits.update=function(e){n.credits=n.credits.destroy(),n.addCredits(e)})}destroy(){var e,t;let n,r=this,o=r.axes,i=r.series,a=r.container,l=null==a?void 0:a.parentNode;for(le(r,"destroy"),r.renderer.forExport?oe(Mr,r):Mr[r.index]=void 0,H.chartCount--,r.renderTo.removeAttribute("data-highcharts-chart"),Ae(r),n=o.length;n--;)o[n]=o[n].destroy();for(null==(t=null==(e=this.scroller)?void 0:e.destroy)||t.call(e),n=i.length;n--;)i[n]=i[n].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(e=>{var t,n;r[e]=null==(n=null==(t=r[e])?void 0:t.destroy)?void 0:n.call(t)}),a&&(a.innerHTML=pt.emptyHTML,Ae(a),l&&ne(a)),Se(r,function(e,t){delete r[t]})}firstRender(){var e;let t=this,n=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let r=be(n.series)?n.series:[];n.series=[],r.forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSortedData(),le(t,"beforeRender"),t.render(),null==(e=t.pointer)||e.getChartPosition(),t.renderer.asyncCounter||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(e){e&&void 0!==this.index&&e.apply(this,[this])},this),le(this,"load"),le(this,"render"),ee(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.warnIfCSSNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:e,title:t}=this;e&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":((null==t?void 0:t.element.textContent)||"").replace(/</g,"<")}),e.accessibility&&!1===e.accessibility.enabled||je('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}warnIfCSSNotLoaded(){this.styledMode&&"0"!==Ir.getComputedStyle(this.container).zIndex&&je(35,!1,this)}addSeries(e,t,n){let r,o=this;return e&&(t=Te(t,!0),le(o,"addSeries",{options:e},function(){r=o.initSeries(e),o.isDirtyLegend=!0,o.linkSeries(),r.enabledDataSorting&&r.setData(e.data,!1),le(o,"afterAddSeries",{series:r}),t&&o.redraw(n)})),r}addAxis(e,t,n,r){return this.createAxis(t?"xAxis":"yAxis",{axis:e,redraw:n,animation:r})}addColorAxis(e,t,n){return this.createAxis("colorAxis",{axis:e,redraw:t,animation:n})}createAxis(e,t){let n=new wn(this,t.axis,e);return Te(t.redraw,!0)&&this.redraw(t.animation),n}showLoading(e){let t=this,n=t.options,r=n.loading,o=(null==r?void 0:r.style)??{},i=function(){a&&J(a,{left:o.left??t.plotLeft+"px",top:o.top??t.plotTop+"px",width:o.width??t.plotWidth+"px",height:o.height??t.plotHeight+"px"})},a=t.loadingDiv,l=t.loadingSpan;a||(t.loadingDiv=a=Z("div",{className:"highcharts-loading highcharts-loading-hidden"},null,t.container)),l||(t.loadingSpan=l=Z("span",{className:"highcharts-loading-inner"},null,a),V(t,"redraw",i)),a.className="highcharts-loading",pt.setElementHTML(l,Te(e,n.lang.loading,"")),!t.styledMode&&(J(a,ie(o,{zIndex:10})),J(l,(null==r?void 0:r.labelStyle)??{}),t.loadingShown||(J(a,{opacity:0,display:""}),kr(a,{opacity:o.opacity??.5},{duration:(null==r?void 0:r.showDuration)??0}))),t.loadingShown=!0,i()}hideLoading(){var e;let t=this.options,n=this.loadingDiv;n&&(n.className="highcharts-loading highcharts-loading-hidden",this.styledMode||kr(n,{opacity:0},{duration:(null==(e=t.loading)?void 0:e.hideDuration)??100,complete:function(){J(n,{display:"none"})}})),this.loadingShown=!1}update(e,t,n,r){let o,i,a,l=this,s={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=e.isResponsiveOptions,u=[];le(l,"update",{options:e}),c||l.setResponsive(!1,!0),e=re(e,l.options),l.userOptions=Ce(l.userOptions,e);let d=e.chart;d&&(Ce(!0,l.options.chart,d),this.setZoomOptions(),"className"in d&&l.setClassName(d.className),("inverted"in d||"polar"in d||"type"in d)&&(l.propFromSeries(),o=!0),"alignTicks"in d&&(o=!0),"events"in d&&Pr(this,d),Se(d,function(e,t){-1!==l.propsRequireUpdateSeries.indexOf("chart."+t)&&(i=!0),-1!==l.propsRequireDirtyBox.indexOf(t)&&(l.isDirtyBox=!0),-1!==l.propsRequireReflow.indexOf(t)&&(l.isDirtyBox=!0,c||(a=!0))}),!l.styledMode&&d.style&&l.renderer.setStyle(l.options.chart.style||{})),!l.styledMode&&e.colors&&(this.options.colors=e.colors),Se(e,function(t,n){l[n]&&"function"==typeof l[n].update?l[n].update(t,!1):"function"==typeof l[s[n]]?l[s[n]](t):"colors"!==n&&-1===l.collectionsWithUpdate.indexOf(n)&&Ce(!0,l.options[n],e[n]),"chart"!==n&&-1!==l.propsRequireUpdateSeries.indexOf(n)&&(i=!0)}),this.collectionsWithUpdate.forEach(t=>{e[t]&&(Ie(e[t]).forEach((e,r)=>{let o;if(!e)return;let i=ee(e.id);i&&(o=l.get(e.id)),!o&&l[t]&&(o=l[t][Te(e.index,r)])&&(i&&ee(o.options.id)||o.options.isInternal)&&(o=void 0),o&&o.coll===t&&(o.update(e,!1),n&&(o.touched=!0)),!o&&n&&l.collectionsWithInit[t]&&(l.collectionsWithInit[t][0].apply(l,[e].concat(l.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)}),n&&l[t].forEach(e=>{e.touched||e.options.isInternal?delete e.touched:u.push(e)}))}),u.forEach(e=>{e.chart&&e.remove&&e.remove(!1)}),o&&l.axes.forEach(function(e){e.update({},!1)}),i&&l.getSeriesOrderByLinks().forEach(function(e){e.chart&&e.update({},!1)},this);let h=null==d?void 0:d.width,p=d&&(ve(d.height)?Oe(d.height,h||l.chartWidth):d.height);a||ye(h)&&h!==l.chartWidth||ye(p)&&p!==l.chartHeight?l.setSize(h,p,r):Te(t,!0)&&l.redraw(r),le(l,"afterUpdate",{options:e,redraw:t,animation:r})}setSubtitle(e,t){this.applyDescription("subtitle",e),this.layOutTitles(t)}setCaption(e,t){this.applyDescription("caption",e),this.layOutTitles(t)}showResetZoom(){let e=this,t=$r.lang,n=e.zooming.resetButton,r=n.theme,o="chart"===n.relativeTo||"spacingBox"===n.relativeTo?null:"plotBox";function i(){e.zoomOut()}le(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(t.resetZoom,null,null,i,r).attr({align:n.position.align,title:t.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,o)}),le(this,"afterShowResetZoom")}zoomOut(){le(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(e,t){let n=this,r="object"==typeof t?t:{enabled:t,type:"x"},o=r.type,i=o&&n[{x:"xAxis",xy:"axes",y:"yAxis"}[o]].filter(e=>e.options.panningEnabled&&!e.options.isInternal),a=n.options.chart;(null==a?void 0:a.panning)&&(a.panning=r),le(this,"pan",{originalEvent:e},()=>{n.transform({axes:i,event:e,to:{x:e.chartX-(n.mouseDownX||0),y:e.chartY-(n.mouseDownY||0)},trigger:"pan"}),J(n.container,{cursor:"move"})})}transform(e){var t;let{axes:n=this.axes,event:r,from:o={},reset:i,selection:a,to:l={},trigger:s,allowResetButton:c=!0}=e,{inverted:u,time:d}=this;null==(t=this.hoverPoints)||t.forEach(e=>e.setState()),le(this,"transform",e);let h,p,f=e.hasZoomed||!1;for(let e of n){let{horiz:t,len:n,minPointOffset:m=0,options:g,reversed:y}=e,v=t?"width":"height",b=t?"x":"y",x=Te(l[v],e.len),w=Te(o[v],e.len),C=10>Math.abs(x)?1:x/w,k=(o[b]||0)+w/2-e.pos,S=k-((l[b]??e.pos)+x/2-e.pos)/C,E=y&&!u||!y&&u?-1:1;if(!i&&(k<0||k>e.len))continue;let $=e.chart.polar||e.isOrdinal?0:m*E||0,T=e.toValue(S,!0),P=e.toValue(S+n/C,!0),M=T+$,O=P-$,N=e.allExtremes;if(a&&a[e.coll].push({axis:e,min:Math.min(T,P),max:Math.max(T,P)}),M>O&&([M,O]=[O,M]),1===C&&!i&&"yAxis"===e.coll&&!N){for(let t of e.series){let e=t.getExtremes(t.getProcessedData(!0).modified.getColumn(t.pointValKey||"y")||[],!0);N??(N={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),ye(e.dataMin)&&ye(e.dataMax)&&(N.dataMin=Math.min(e.dataMin,N.dataMin),N.dataMax=Math.max(e.dataMax,N.dataMax))}e.allExtremes=N}let{dataMin:A,dataMax:I,min:R,max:L}=ie(e.getExtremes(),N||{}),B=d.parse(g.min),z=d.parse(g.max),D=A??B,j=I??z,_=O-M,F=e.categories?0:Math.min(_,j-D),H=D-F*(ee(B)?0:g.minPadding),W=j+F*(ee(z)?0:g.maxPadding),K=e.allowZoomOutside||1===C||"zoom"!==s&&C>1,V=Math.min(B??H,H,K?R:H),U=Math.max(z??W,W,K?L:W);(!e.isOrdinal||1!==C||i)&&(M<V&&(M=V,C>=1&&(O=M+_)),O>U&&(O=U,C>=1&&(M=O-_)),(i||e.series.length&&(M!==R||O!==L)&&M>=V&&O<=U)&&(a?a[e.coll].push({axis:e,min:M,max:O}):(e.isPanning="zoom"!==s,e.isPanning&&"mousewheel"!==s&&(p=!0),e.setExtremes(i?void 0:M,i?void 0:O,!1,!1,{move:S,trigger:s,scale:C}),!i&&(M>V||O<U)&&(h=c)),f=!0),this.hasCartesianSeries||i||(h=c),r&&(this[t?"mouseDownX":"mouseDownY"]=r[t?"chartX":"chartY"]))}return f&&(a?le(this,"selection",a,()=>{delete e.selection,e.trigger="zoom",this.transform(e)}):(!h||p||this.resetZoomButton?!h&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===s&&(this.options.chart.animation??this.pointCount<100)))),f}}ie(Lr.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Lr.prototype.addAxis,[!0]],yAxis:[Lr.prototype.addAxis,[!1]],series:[Lr.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});let{stop:Br}=lt,{composed:zr}=H;function Dr(){let e=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!e&&(this.scrollablePlotArea=e=new _r(this)),null==e||e.applyFixed()}function jr(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class _r{static compose(e,t,n){Me(zr,this.compose)&&(V(e,"afterInit",jr),V(t,"afterSetChartSize",e=>this.afterSetSize(e.target,e)),V(t,"render",Dr),V(n,"show",jr))}static afterSetSize(e,t){let n,r,o,{minWidth:i,minHeight:a}=e.options.chart.scrollablePlotArea||{},{clipBox:l,plotBox:s,inverted:c,renderer:u}=e;if(!u.forExport)if(i?(e.scrollablePixelsX=n=Math.max(0,i-e.chartWidth),n&&(e.scrollablePlotBox=Ce(e.plotBox),s.width=e.plotWidth+=n,l[c?"height":"width"]+=n,o=!0)):a&&(e.scrollablePixelsY=r=Math.max(0,a-e.chartHeight),ee(r)&&(e.scrollablePlotBox=Ce(e.plotBox),s.height=e.plotHeight+=r,l[c?"width":"height"]+=r,o=!1)),ee(o)){if(!t.skipAxes)for(let t of e.axes)(t.horiz===o||e.hasParallelCoordinates&&"yAxis"===t.coll)&&(t.setAxisSize(),t.setAxisTranslation())}else delete e.scrollablePlotBox}constructor(e){var t;let n;const r=e.options.chart,o=Ct.getRendererType(),i=r.scrollablePlotArea||{},a=this.moveFixedElements.bind(this),l={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};e.scrollablePixelsX&&(l.overflowX="auto"),e.scrollablePixelsY&&(l.overflowY="auto"),this.chart=e;const s=this.parentDiv=Z("div",{className:"highcharts-scrolling-parent"},{position:"relative"},e.renderTo),c=this.scrollingContainer=Z("div",{className:"highcharts-scrolling"},l,s),u=this.innerContainer=Z("div",{className:"highcharts-inner-container"},void 0,c),d=this.fixedDiv=Z("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null==(t=r.style)?void 0:t.zIndex)||0)+2,top:0},void 0,!0),h=this.fixedRenderer=new o(d,e.chartWidth,e.chartHeight,r.style);this.mask=h.path().attr({fill:r.backgroundColor||"#fff","fill-opacity":i.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),c.parentNode.insertBefore(d,c),J(e.renderTo,{overflow:"visible"}),V(e,"afterShowResetZoom",a),V(e,"afterApplyDrilldown",a),V(e,"afterLayOutTitles",a),V(c,"scroll",()=>{let{pointer:t,hoverPoint:r}=e;t&&(delete t.chartPosition,r&&(n=r),t.runPointActions(void 0,n,!0))}),u.appendChild(e.container)}applyFixed(){var e;let{chart:t,fixedRenderer:n,isDirty:r,scrollingContainer:o}=this,{axisOffset:i,chartWidth:a,chartHeight:l,container:s,plotHeight:c,plotLeft:u,plotTop:d,plotWidth:h,scrollablePixelsX:p=0,scrollablePixelsY:f=0}=t,{scrollPositionX:m=0,scrollPositionY:g=0}=t.options.chart.scrollablePlotArea||{},y=a+p,v=l+f;n.setSize(a,l),(r??!0)&&(this.isDirty=!1,this.moveFixedElements()),Br(t.container),J(s,{width:`${y}px`,height:`${v}px`}),t.renderer.boxWrapper.attr({width:y,height:v,viewBox:["0 0",y,v].join(" ")}),null==(e=t.chartBackground)||e.attr({width:y,height:v}),J(o,{width:`${a}px`,height:`${l}px`}),ee(r)||(o.scrollLeft=p*m,o.scrollTop=f*g);let b=d-i[0]-1,x=u-i[3]-1,w=d+c+i[2]+1,C=u+h+i[1]+1,k=u+h-p,S=d+c-f,E=[["M",0,0]];p?E=[["M",0,b],["L",u-1,b],["L",u-1,w],["L",0,w],["Z"],["M",k,b],["L",a,b],["L",a,w],["L",k,w],["Z"]]:f&&(E=[["M",x,0],["L",x,d-1],["L",C,d-1],["L",C,0],["Z"],["M",x,S],["L",x,l],["L",C,l],["L",C,S],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:E})}moveFixedElements(){let e,{container:t,inverted:n,scrollablePixelsX:r,scrollablePixelsY:o}=this.chart,i=this.fixedRenderer,a=_r.fixedSelectors.slice();if(r&&!n?e=".highcharts-yaxis":r&&n||o&&!n?e=".highcharts-xaxis":o&&n&&(e=".highcharts-yaxis"),!e||this.chart.hasParallelCoordinates&&".highcharts-yaxis"===e)for(let e of[".highcharts-xaxis",".highcharts-yaxis"])for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])oe(a,t);else for(let t of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])Me(a,t);for(let e of a)[].forEach.call(t.querySelectorAll(e),e=>{(e.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(e),e.style.pointerEvents="auto"})}}_r.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];let{format:Fr}=wt,{series:Hr}=rr,Wr=class{constructor(e,t,n,r,o){const i=e.chart.inverted,a=e.reversed;this.axis=e;const l=this.isNegative=!!n!=!!a;this.options=t=t||{},this.x=r,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=o,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(i?l?"left":"right":"center"),verticalAlign:t.verticalAlign||(i?"middle":l?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(i?l?"right":"left":"center")}destroy(){te(this,this.axis)}render(e){var t;let n=this.axis.chart,r=this.options,o=r.format,i=(o?Fr(o,this,n):null==(t=r.formatter)?void 0:t.call(this,this))||"";if(this.label)this.label.attr({text:i,visibility:"hidden"});else{this.label=n.renderer.label(i,null,void 0,r.shape,void 0,void 0,r.useHTML,!1,"stack-labels");let t={r:r.borderRadius||0,text:i,padding:Te(r.padding,5),visibility:"hidden"};n.styledMode||(t.fill=r.backgroundColor,t.stroke=r.borderColor,t["stroke-width"]=r.borderWidth,this.label.css(r.style||{})),this.label.attr(t),this.label.added||this.label.add(e)}this.label.labelrank=n.plotSizeY,le(this,"afterRender")}setOffset(e,t,n,r,o,i){let{alignOptions:a,axis:l,label:s,options:c,textAlign:u}=this,d=l.chart,h=this.getStackBox({xOffset:e,width:t,boxBottom:n,boxTop:r,defaultX:o,xAxis:i}),{verticalAlign:p}=a;if(s&&h){let e,t=s.getBBox(void 0,0),n=s.padding,r="justify"===Te(c.overflow,"justify");a.x=c.x||0,a.y=c.y||0;let{x:o,y:i}=this.adjustStackPosition({labelBox:t,verticalAlign:p,textAlign:u});h.x-=o,h.y-=i,s.align(a,!1,h),(e=d.isInsidePlot(s.alignAttr.x+a.x+o,s.alignAttr.y+a.y+i))||(r=!1),r&&Hr.prototype.justifyDataLabel.call(l,s,a,s.alignAttr,t,h),s.attr({x:s.alignAttr.x,y:s.alignAttr.y,rotation:c.rotation,rotationOriginX:t.width*se(c.textAlign||"center"),rotationOriginY:t.height/2}),Te(!r&&c.crop,!0)&&(e=ye(s.x)&&ye(s.y)&&d.isInsidePlot(s.x-n+(s.width||0),s.y)&&d.isInsidePlot(s.x+n,s.y)),s[e?"show":"hide"]()}le(this,"afterSetOffset",{xOffset:e,width:t})}adjustStackPosition({labelBox:e,verticalAlign:t,textAlign:n}){return{x:e.width/2+e.width/2*(2*se(n)-1),y:e.height/2*2*(1-se(t))}}getStackBox(e){let t=this.axis,n=t.chart,{boxTop:r,defaultX:o,xOffset:i,width:a,boxBottom:l}=e,s=t.stacking.usePercentage?100:Te(r,this.total,0),c=t.toPixels(s),u=e.xAxis||n.xAxis[0],d=Te(o,u.translate(this.x))+i,h=Math.abs(c-t.toPixels(l||ye(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),p=n.inverted,f=this.isNegative;return p?{x:(f?c:c-h)-n.plotLeft,y:u.height-d-a+u.top-n.plotTop,width:h,height:a}:{x:d+u.transB-n.plotLeft,y:(f?c-h:c)-n.plotTop,width:a,height:h}}},{getDeferredAnimation:Kr}=lt,{series:{prototype:Vr}}=rr;function Ur(){let e=this.inverted;this.axes.forEach(e=>{var t;(null==(t=e.stacking)?void 0:t.stacks)&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)}),this.series.forEach(t=>{var n;let r=(null==(n=t.xAxis)?void 0:n.options)||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,Te(t.options.stack,""),e?r.top:r.left,e?r.height:r.width].join(","))})}function qr(){var e;let t=this.stacking;if(t){let n=t.stacks;Se(n,(e,t)=>{te(e),delete n[t]}),null==(e=t.stackTotalGroup)||e.destroy()}}function Gr(){this.stacking||(this.stacking=new eo(this))}function Xr(e,t,n,r){return!ee(e)||e.x!==t||r&&e.stackKey!==r?e={x:t,index:0,key:r,stackKey:r}:e.index++,e.key=[n,t,e.index].join(","),e}function Yr(){let e,t=this,n=t.yAxis,r=t.stackKey||"",o=n.stacking.stacks,i=t.getColumn("x",!0),a=t.options.stacking,l=t[a+"Stacker"];l&&[r,"-"+r].forEach(n=>{var r;let a,s,c,u=i.length;for(;u--;)a=i[u],e=t.getStackIndicator(e,a,t.index,n),s=null==(r=o[n])?void 0:r[a],(c=null==s?void 0:s.points[e.key||""])&&l.call(t,c,s,u)})}function Zr(e,t,n){let r=t.total?100/t.total:0;e[0]=Y(e[0]*r),e[1]=Y(e[1]*r),this.stackedYData[n]=e[1]}function Qr(e){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?Vr.setStackedPoints.call(this,e,"group"):e.stacking.resetStacks())}function Jr(e,t){var n,r;let o,i,a,l,s,c,u,d=t||this.options.stacking;if(!d||!this.reserveSpace()||({group:"xAxis"}[d]||"yAxis")!==e.coll)return;let h=this.getColumn("x",!0),p=this.getColumn(this.pointValKey||"y",!0),f=[],m=p.length,g=this.options,y=g.threshold||0,v=g.startFromThreshold?y:0,b=g.stack,x=t?`${this.type},${d}`:this.stackKey||"",w="-"+x,C=this.negStacks,k=e.stacking,S=k.stacks,E=k.oldStacks;for(k.stacksTouched+=1,u=0;u<m;u++){let t=h[u]||0,m=p[u],g=ye(m)&&m||0;c=(o=this.getStackIndicator(o,t,this.index)).key||"",S[s=(i=C&&g<(v?0:y))?w:x]||(S[s]={}),S[s][t]||((null==(n=E[s])?void 0:n[t])?(S[s][t]=E[s][t],S[s][t].total=null):S[s][t]=new Wr(e,e.options.stackLabels,!!i,t,b)),a=S[s][t],null!==m?(a.points[c]=a.points[this.index]=[Te(a.cumulative,v)],ee(a.cumulative)||(a.base=c),a.touched=k.stacksTouched,o.index>0&&!1===this.singleStacks&&(a.points[c][0]=a.points[this.index+","+t+",0"][0])):(delete a.points[c],delete a.points[this.index]);let $=a.total||0;"percent"===d?(l=i?x:w,$=C&&(null==(r=S[l])?void 0:r[t])?(l=S[l][t]).total=Math.max(l.total||0,$)+Math.abs(g):Y($+Math.abs(g))):"group"===d?ye(m)&&$++:$=Y($+g),a.cumulative="group"===d?($||1)-1:Y(Te(a.cumulative,v)+g),a.total=$,null!==m&&(a.points[c].push(a.cumulative),f[u]=a.cumulative,a.hasValidPoints=!0)}"percent"===d&&(k.usePercentage=!0),"group"!==d&&(this.stackedYData=f),k.oldStacks={}}class eo{constructor(e){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=e}buildStacks(){let e,t,n=this.axis,r=n.series,o="xAxis"===n.coll,i=n.options.reversedStacks,a=r.length;for(this.resetStacks(),this.usePercentage=!1,t=a;t--;)e=r[i?t:a-t-1],o&&e.setGroupedPoints(n),e.setStackedPoints(n);if(!o)for(t=0;t<a;t++)r[t].modifyStacks();le(n,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,Se(this.stacks,e=>{Se(e,e=>{e.cumulative=e.total})}))}resetStacks(){Se(this.stacks,e=>{Se(e,(t,n)=>{ye(t.touched)&&t.touched<this.stacksTouched?(t.destroy(),delete e[n]):(t.total=null,t.cumulative=null)})})}renderStackTotals(){var e;let t=this.axis,n=t.chart,r=n.renderer,o=this.stacks,i=Kr(n,(null==(e=t.options.stackLabels)?void 0:e.animation)||!1),a=this.stackTotalGroup=this.stackTotalGroup||r.g("stack-labels").attr({zIndex:6,opacity:0}).add();a.translate(n.plotLeft,n.plotTop),Se(o,e=>{Se(e,e=>{e.render(a)})}),a.animate({opacity:1},i)}}(I||(I={})).compose=function(e,t,n){let r=t.prototype,o=n.prototype;r.getStacks||(V(e,"init",Gr),V(e,"destroy",qr),r.getStacks=Ur,o.getStackIndicator=Xr,o.modifyStacks=Yr,o.percentStacker=Zr,o.setGroupedPoints=Qr,o.setStackedPoints=Jr)};let to=I;class no extends pr{drawGraph(){let e=this.options,t=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode;[this,...this.zones].forEach((r,o)=>{let i,a=r.graph,l=a?"animate":"attr",s=r.dashStyle||e.dashStyle;if(a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):t.length&&(r.graph=a=this.chart.renderer.path(t).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&r.className||"")).attr({zIndex:1}).add(this.group)),a&&!n&&(i={stroke:!o&&e.lineColor||r.color||this.color||"#cccccc","stroke-width":e.lineWidth||0,fill:this.fillGraph&&this.color||"none"},s?i.dashstyle=s:"square"!==e.linecap&&(i["stroke-linecap"]=i["stroke-linejoin"]="round"),a[l](i),e.shadow)){let t=this.chart.inverted,n={filterUnits:"userSpaceOnUse"},r=we(e.shadow)?Ce(t?{}:n,e.shadow):!!t||n;a.shadow(r)}a&&(a.startX=t.xMap,a.isArea=t.isArea)})}getGraphPath(e,t,n){let r,o=this,i=o.options,a=[],l=[],s=i.step,c=(e=e||o.points).reversed;return c&&e.reverse(),(s={right:1,center:2}[s]||s&&3)&&c&&(s=4-s),(e=this.getValidPoints(e,!1,i.nullInteraction||!(i.connectNulls&&!t&&!n))).forEach(function(c,u){let d,h=c.plotX,p=c.plotY,f=e[u-1],m=c.isNull||"number"!=typeof p;(c.leftCliff||(null==f?void 0:f.rightCliff))&&!n&&(r=!0),m&&!ee(t)&&u>0?r=!i.connectNulls:m&&!t?r=!0:(0===u||r?d=[["M",c.plotX,c.plotY]]:o.getPointSpline?d=[o.getPointSpline(e,c,u)]:s?(d=1===s?[["L",f.plotX,p]]:2===s?[["L",(f.plotX+h)/2,f.plotY],["L",(f.plotX+h)/2,p]]:[["L",h,f.plotY]]).push(["L",h,p]):d=[["L",h,p]],l.push(c.x),s&&(l.push(c.x),2===s&&l.push(c.x)),a.push.apply(a,d),r=!1)}),a.xMap=l,o.graphPath=a,a}}no.defaultOptions=Ce(pr.defaultOptions,{legendSymbol:"lineMarker"}),rr.registerSeriesType("line",no);let{seriesTypes:{line:ro}}=rr;class oo extends ro{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:e,options:t}=this;[this,...this.zones].forEach((n,r)=>{let o={},i=n.fillColor||t.fillColor,a=n.area,l=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):(o.zIndex=0,(a=n.area=this.chart.renderer.path(e).addClass("highcharts-area"+(r?` highcharts-zone-area-${r-1} `:" ")+(r&&n.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(o.fill=i||n.color||this.color,o["fill-opacity"]=i?1:t.fillOpacity??.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[l](o),a.startX=e.xMap,a.shiftUnit=t.step?2:1})}getGraphPath(e){let t,n,r,o=ro.prototype.getGraphPath,i=this.options,a=i.stacking,l=this.yAxis,s=[],c=[],u=this.index,d=l.stacking.stacks[this.stackKey],h=i.threshold,p=Math.round(l.getThreshold(i.threshold)),f=Te(i.connectNulls,"percent"===a),m=function(n,r,o){let i,f,m=e[n],g=e[r],y=a&&d[m.x].points[u],v=m[o+"Null"]||0,b=m[o+"Cliff"]||0,x=!0;y&&(b||v)?(i=(v?y[0]:y[1])+b,f=y[0]+b,x=!!v):!a&&g&&(g.isNull||!ee(g.plotY))&&(i=f=h),void 0!==i&&(c.push({plotX:t,plotY:null===i?p:l.getThreshold(i),isNull:x,isCliff:!0}),s.push({plotX:t,plotY:null===f?p:l.getThreshold(f),doCurve:!1}))};e=e||this.points,a&&(e=this.getStackPoints(e));for(let o=0,i=e.length;o<i;++o)a||(e[o].leftCliff=e[o].rightCliff=e[o].leftNull=e[o].rightNull=void 0),n=e[o].isNull||!ee(e[o].plotY),t=Te(e[o].rectPlotX,e[o].plotX),r=a?Te(e[o].yBottom,p):p,(!n||f)&&(f||m(o,o-1,"left"),n&&!a&&f||(c.push(e[o]),s.push({x:o,plotX:t,plotY:r})),f||m(o,o+1,"right"));let g=o.call(this,c,!0,!0);s.reversed=!0;let y=o.call(this,s,!0,!0),v=y[0];v&&"M"===v[0]&&(y[0]=["L",v[1],v[2]]);let b=g.concat(y);b.length&&b.push(["Z"]);let x=o.call(this,c,!1,f);return this.chart.series.length>1&&a&&c.some(e=>e.isCliff)&&(b.hasStackedCliffs=x.hasStackedCliffs=!0),b.xMap=g.xMap,this.areaPath=b,x}getStackPoints(e){let t=this,n=[],r=[],o=this.xAxis,i=this.yAxis,a=i.stacking.stacks[this.stackKey],l={},s=i.series,c=s.length,u=i.options.reversedStacks?1:-1,d=s.indexOf(t),h=i.getThreshold(t.options.threshold||0);if(e=e||this.points,this.options.stacking){for(let t=0;t<e.length;t++)e[t].leftNull=e[t].rightNull=void 0,l[e[t].x]=e[t];Se(a,function(e,t){null!==e.total&&r.push(t)}),r.sort(function(e,t){return e-t});let p=s.map(e=>e.visible);r.forEach(function(e,f){let m,g,y=0;if(l[e]&&!l[e].isNull)n.push(l[e]),[-1,1].forEach(function(n){let o=1===n?"rightNull":"leftNull",i=a[r[f+n]],h=0;if(i){let n=d;for(;n>=0&&n<c;){let r=s[n].index;!(m=i.points[r])&&(r===t.index?l[e][o]=!0:p[n]&&(g=a[e].points[r])&&(h-=g[1]-g[0])),n+=u}}l[e][1===n?"rightCliff":"leftCliff"]=h});else{let t=d;for(;t>=0&&t<c;){let n=s[t].index;if(m=a[e].points[n]){y=m[1];break}t+=u}y||(y=0);let r=i.positiveValuesOnly&&y<=0?h:i.translate(y,!1,!0,!1,!0);n.push({isNull:!0,plotX:o.translate(e,!1,!1,!1,!0),x:e,plotY:r,yBottom:r})}})}return n}}oo.defaultOptions=Ce(ro.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),ie(oo.prototype,{singleStacks:!1}),rr.registerSeriesType("area",oo);let{line:io}=rr.seriesTypes;class ao extends io{getPointSpline(e,t,n){let r,o,i,a,l=t.plotX||0,s=t.plotY||0,c=e[n-1],u=e[n+1];function d(e){return e&&!e.isNull&&!1!==e.doCurve&&!t.isCliff}if(d(c)&&d(u)){let e=c.plotX||0,n=c.plotY||0,d=u.plotX||0,h=u.plotY||0,p=0;r=(1.5*l+e)/2.5,o=(1.5*s+n)/2.5,i=(1.5*l+d)/2.5,a=(1.5*s+h)/2.5,i!==r&&(p=(a-o)*(i-l)/(i-r)+s-a),o+=p,a+=p,o>n&&o>s?(o=Math.max(n,s),a=2*s-o):o<n&&o<s&&(o=Math.min(n,s),a=2*s-o),a>h&&a>s?(a=Math.max(h,s),o=2*s-a):a<h&&a<s&&(a=Math.min(h,s),o=2*s-a),t.rightContX=i,t.rightContY=a,t.controlPoints={low:[r,o],high:[i,a]}}let h=["C",Te(c.rightContX,c.plotX,0),Te(c.rightContY,c.plotY,0),Te(r,l,0),Te(o,s,0),l,s];return c.rightContX=c.rightContY=void 0,h}}ao.defaultOptions=Ce(io.defaultOptions),rr.registerSeriesType("spline",ao);let lo=ao,{area:so,area:{prototype:co}}=rr.seriesTypes;class uo extends lo{}uo.defaultOptions=Ce(lo.defaultOptions,so.defaultOptions),ie(uo.prototype,{getGraphPath:co.getGraphPath,getStackPoints:co.getStackPoints,drawGraph:co.drawGraph}),rr.registerSeriesType("areaspline",uo);let{animObject:ho}=lt,{parse:po}=tt,{noop:fo}=H;class mo extends pr{animate(e){let t,n,r=this,o=this.yAxis,i=o.pos,a=o.reversed,l=r.options,{clipOffset:s,inverted:c}=this.chart,u={},d=c?"translateX":"translateY";e&&s?(u.scaleY=.001,n=X(o.toPixels(l.threshold||0),i,i+o.len),c?u.translateX=(n+=a?-Math.floor(s[0]):Math.ceil(s[2]))-o.len:u.translateY=n+=a?Math.ceil(s[0]):-Math.floor(s[2]),r.clipBox&&r.setClip(),r.group.attr(u)):(t=Number(r.group.attr(d)),r.group.animate({scaleY:1},ie(ho(r.options.animation),{step:function(e,n){r.group&&(u[d]=t+n.pos*(i-t),r.group.attr(u))}})))}init(e,t){super.init.apply(this,arguments);let n=this;(e=n.chart).hasRendered&&e.series.forEach(function(e){e.type===n.type&&(e.isDirty=!0)})}getColumnMetrics(){var e,t;let n,r=this,o=r.options,i=r.xAxis,a=r.yAxis,l=i.options.reversedStacks,s=i.reversed&&!l||!i.reversed&&l,c={},u=0;!1===o.grouping?u=1:r.chart.series.forEach(function(e){let t,o=e.yAxis,i=e.options;e.type===r.type&&e.reserveSpace()&&a.len===o.len&&a.pos===o.pos&&(i.stacking&&"group"!==i.stacking?(void 0===c[n=e.stackKey]&&(c[n]=u++),t=c[n]):!1!==i.grouping&&(t=u++),e.columnIndex=t)});let d=Math.min(Math.abs(i.transA)*(!(null==(e=i.brokenAxis)?void 0:e.hasBreaks)&&(null==(t=i.ordinal)?void 0:t.slope)||o.pointRange||i.closestPointRange||i.tickInterval||1),i.len),h=d*o.groupPadding,p=(d-2*h)/(u||1),f=Math.min(o.maxPointWidth||i.len,Te(o.pointWidth,p*(1-2*o.pointPadding))),m=(r.columnIndex||0)+ +!!s;return r.columnMetrics={width:f,offset:(p-f)/2+(h+m*p-d/2)*(s?-1:1),paddedWidth:p,columnCount:u},r.columnMetrics}crispCol(e,t,n,r){let o=this.borderWidth,i=this.chart.inverted;return r=Q(t+r,o,i)-(t=Q(t,o,i)),this.options.crisp&&(n=Q(e+n,o)-(e=Q(e,o))),{x:e,y:t,width:n,height:r}}adjustForMissingColumns(e,t,n,r){var o;if(!n.isNull&&r.columnCount>1){let i=this.xAxis.series.filter(e=>e.visible).map(e=>e.index),a=0,l=0;Se(null==(o=this.xAxis.stacking)?void 0:o.stacks,e=>{var t;let r="number"==typeof n.x?null==(t=e[n.x.toString()])?void 0:t.points:void 0,o=null==r?void 0:r[this.index],s={};if(r&&be(o)){let e=this.index,t=Object.keys(r).filter(e=>!e.match(",")&&r[e]&&r[e].length>1).map(parseFloat).filter(e=>-1!==i.indexOf(e)).filter(t=>{let n=this.chart.series[t].options,r=n.stacking&&n.stack;if(ee(r)){if(ye(s[r]))return e===t&&(e=s[r]),!1;s[r]=t}return!0}).sort((e,t)=>t-e);a=t.indexOf(e),l=t.length}}),a=this.xAxis.reversed?l-1-a:a;let s=(l-1)*r.paddedWidth+t;e=(n.plotX||0)+s/2-t-a*r.paddedWidth}return e}translate(){let e=this,t=e.chart,n=e.options,r=e.dense=e.closestPointRange*e.xAxis.transA<2,o=e.borderWidth=n.borderWidth??+!r,i=e.xAxis,a=e.yAxis,l=n.threshold,s=n.minPointLength??5,c=e.getColumnMetrics(),u=c.width,d=e.pointXOffset=c.offset,h=e.dataMin,p=e.dataMax,f=e.translatedThreshold=a.getThreshold(l),m=e.barW=Math.max(u,1+2*o);n.pointPadding&&n.crisp&&(m=Math.ceil(m)),pr.prototype.translate.apply(e),e.points.forEach(function(r){let o,g=r.yBottom??f,y=999+Math.abs(g),v=r.plotX||0,b=X(r.plotY,-y,a.len+y),x=Math.min(b,g),w=Math.max(b,g)-x,C=u,k=v+d,S=m;s&&Math.abs(w)<s&&(w=s,o=!a.reversed&&!r.negative||a.reversed&&r.negative,ye(l)&&ye(p)&&r.y===l&&p<=l&&(a.min||0)<l&&(h!==p||(a.max||0)<=l)&&(o=!o,r.negative=!r.negative),x=Math.abs(x-f)>s?g-(o?s:0):f-(o?s:0)),ee(r.options.pointWidth)&&(k-=Math.round(((C=S=Math.ceil(r.options.pointWidth))-u)/2)),n.centerInCategory&&(k=e.adjustForMissingColumns(k,C,r,c)),r.barX=k,r.pointWidth=C,r.tooltipPos=t.inverted?[X(a.len+a.pos-t.plotLeft-b,a.pos-t.plotLeft,a.len+a.pos-t.plotLeft),i.len+i.pos-t.plotTop-k-S/2,w]:[i.left-t.plotLeft+k+S/2,X(b+a.pos-t.plotTop,a.pos-t.plotTop,a.len+a.pos-t.plotTop),w],r.shapeType=e.pointClass.prototype.shapeType||"roundedRect",r.shapeArgs=e.crispCol(k,x,S,r.isNull?0:w)}),le(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(e,t){var n;let r,o,i,a=this.options,l=this.pointAttrToOptions||{},s=l.stroke||"borderColor",c=l["stroke-width"]||"borderWidth",u=e&&e.color||this.color,d=e&&e[s]||a[s]||u,h=e&&e.options.dashStyle||a.dashStyle,p=e&&e[c]||a[c]||this[c]||0,f=(null==e?void 0:e.isNull)&&a.nullInteraction?0:(null==e?void 0:e.opacity)??a.opacity??1;e&&this.zones.length&&(o=e.getZone(),u=e.options.color||o&&(o.color||e.nonZonedColor)||this.color,o&&(d=o.borderColor||d,h=o.dashStyle||h,p=o.borderWidth||p)),t&&e&&(i=(r=Ce(a.states[t],(null==(n=e.options.states)?void 0:n[t])||{})).brightness,u=r.color||void 0!==i&&po(u).brighten(r.brightness).get()||u,d=r[s]||d,p=r[c]||p,h=r.dashStyle||h,f=Te(r.opacity,f));let m={fill:u,stroke:d,"stroke-width":p,opacity:f};return h&&(m.dashstyle=h),m}drawPoints(e=this.points){let t,n=this,r=this.chart,o=n.options,i=o.nullInteraction,a=r.renderer,l=o.animationLimit||250;e.forEach(function(e){let s=e.plotY,c=e.graphic,u=!!c,d=c&&r.pointCount<l?"animate":"attr";ye(s)&&(null!==e.y||i)?(t=e.shapeArgs,c&&e.hasNewShapeType()&&(c=c.destroy()),n.enabledDataSorting&&(e.startXPos=n.xAxis.reversed?-(t&&t.width||0):n.xAxis.width),!c&&(e.graphic=c=a[e.shapeType](t).add(e.group||n.group),c&&n.enabledDataSorting&&r.hasRendered&&r.pointCount<l&&(c.attr({x:e.startXPos}),u=!0,d="animate")),c&&u&&c[d](Ce(t)),r.styledMode||c[d](n.pointAttribs(e,e.selected&&"select")).shadow(!1!==e.allowShadow&&o.shadow),c&&(c.addClass(e.getClassName(),!0),c.attr({visibility:e.visible?"inherit":"hidden"}))):c&&(e.graphic=c.destroy())})}drawTracker(e=this.points){var t;let n,r=this,o=r.chart,i=o.pointer,a=function(e){null==i||i.normalize(e);let t=null==i?void 0:i.getPointFromEvent(e);i&&t&&r.options.enableMouseTracking&&(o.isInsidePlot(e.chartX-o.plotLeft,e.chartY-o.plotTop,{visiblePlotOnly:!0})||r.allowOutsidePlotInteraction&&(null==i?void 0:i.inClass(e.target,"highcharts-point"))||(null==i?void 0:i.inClass(e.target,"highcharts-data-label")))&&(i.isDirectTouch=!0,t.onMouseOver(e))};e.forEach(function(e){n=be(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),n.forEach(function(t){(t.div||t.element).point=e})}),r._hasTracking||(null==(t=r.trackerGroups)||t.reduce((e,t)=>("dataLabelsGroup"===t?e.push(...r.dataLabelsGroups||[]):e.push(r[t]),e),[]).forEach(e=>{e&&(e.addClass("highcharts-tracker").on("mouseover",a).on("mouseout",function(e){null==i||i.onTrackerMouseOut(e)}).on("touchstart",a),!o.styledMode&&r.options.cursor&&e.css({cursor:r.options.cursor}))}),r._hasTracking=!0),le(this,"afterDrawTracker")}remove(){let e=this,t=e.chart;t.hasRendered&&t.series.forEach(function(t){t.type===e.type&&(t.isDirty=!0)}),pr.prototype.remove.apply(e,arguments)}}mo.defaultOptions=Ce(pr.defaultOptions,{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}),ie(mo.prototype,{directTouch:!0,getSymbol:fo,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),rr.registerSeriesType("column",mo);let go=mo,{getDeferredAnimation:yo}=lt,{format:vo}=wt;!function(e){function t(){return s(this).some(e=>null==e?void 0:e.enabled)}function n(e,t,n,r,o){var i;let{chart:a,enabledDataSorting:l}=this,s=this.isCartesian&&a.inverted,c=e.plotX,u=e.plotY,d=n.rotation||0,h=ee(c)&&ee(u)&&a.isInsidePlot(c,Math.round(u),{inverted:s,paneCoordinates:!0,series:this}),p=0===d&&"justify"===Te(n.overflow,l?"none":"justify"),f=this.visible&&!1!==e.visible&&ee(c)&&(e.series.forceDL||l&&!p||h||Te(n.inside,!!this.options.stacking)&&r&&a.isInsidePlot(c,s?r.x+1:r.y+r.height-1,{inverted:s,paneCoordinates:!0,series:this})),m=e.pos();if(f&&m){var g;let c=t.getBBox(),u=t.getBBox(void 0,0);if(r=ie({x:m[0],y:Math.round(m[1]),width:0,height:0},r||{}),"plotEdges"===n.alignTo&&this.isCartesian&&(r[s?"x":"y"]=0,r[s?"width":"height"]=(null==(i=this.yAxis)?void 0:i.len)||0),ie(n,{width:c.width,height:c.height}),g=r,l&&this.xAxis&&!p&&this.setDataLabelStartPos(e,t,o,h,g),t.align(Ce(n,{width:u.width,height:u.height}),!1,r,!1),t.alignAttr.x+=se(n.align)*(u.width-c.width),t.alignAttr.y+=se(n.verticalAlign)*(u.height-c.height),t[t.placed?"animate":"attr"]({"text-align":t.alignAttr["text-align"]||"center",x:t.alignAttr.x+(c.width-u.width)/2,y:t.alignAttr.y+(c.height-u.height)/2,rotationOriginX:(t.width||0)/2,rotationOriginY:(t.height||0)/2}),p&&r.height>=0)this.justifyDataLabel(t,n,t.alignAttr,c,r,o);else if(Te(n.crop,!0)){let{x:e,y:n}=t.alignAttr;f=a.isInsidePlot(e,n,{paneCoordinates:!0,series:this})&&a.isInsidePlot(e+c.width-1,n+c.height-1,{paneCoordinates:!0,series:this})}n.shape&&!d&&t[o?"attr":"animate"]({anchorX:m[0],anchorY:m[1]})}o&&l&&(t.placed=!1),f||l&&!p?(t.show(),t.placed=!0):(t.hide(),t.placed=!1)}function r(e,t){var n,r;le(this,"initDataLabelsGroup",{index:e,zIndex:(null==t?void 0:t.zIndex)??6}),this.dataLabelsGroup=null==(n=this.dataLabelsGroups)?void 0:n[e];let o=this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",(null==t?void 0:t.zIndex)??6,null==(r=this.dataLabelsParentGroups)?void 0:r[e]);return this.dataLabelsGroups||(this.dataLabelsGroups=[]),this.dataLabelsGroups[e]=o,this.dataLabelsGroup=this.dataLabelsGroups[0],o}function o(e,t,n){let r=!!this.hasRendered,o=this.initDataLabelsGroup(e,n).attr({opacity:+r});return!r&&o&&(this.visible&&o.show(),this.options.animation?o.animate({opacity:1},t):o.attr({opacity:1})),o}function i(e){var t;let n;e=e||this.points;let r=this,o=r.chart,i=r.options,a=o.renderer,{backgroundColor:c,plotBackgroundColor:u}=o.options.chart,d=a.getContrast(ve(u)&&u||ve(c)&&c||"#000000"),h=s(r),{animation:p,defer:f}=h[0],m=f?yo(o,p,r):{defer:0,duration:0};le(this,"drawDataLabels"),(null==(t=r.hasDataLabels)?void 0:t.call(r))&&e.forEach(e=>{var t,s,c;let u=e.dataLabels||[],p=e.color||r.color;Ie(l(h,e.dlOptions||(null==(t=e.options)?void 0:t.dataLabels))).forEach((t,l)=>{var s;n=this.initDataLabels(l,m,t);let c,h,f,g,y=t.enabled&&(e.visible||e.dataLabelOnHidden)&&(!e.isNull||e.dataLabelOnNull)&&function(e,t){let n=t.filter;if(n){let t=n.operator,r=e[n.property],o=n.value;return">"===t&&r>o||"<"===t&&r<o||">="===t&&r>=o||"<="===t&&r<=o||"=="===t&&r==o||"==="===t&&r===o||"!="===t&&r!=o||"!=="===t&&r!==o||!1}return!0}(e,t),{backgroundColor:v,borderColor:b,distance:x,style:w={}}=t,C={},k=u[l],S=!k;y&&(h=ee(c=Te(t[e.formatPrefix+"Format"],t.format))?vo(c,e,o):(t[e.formatPrefix+"Formatter"]||t.formatter).call(e,t,e),f=t.rotation,!o.styledMode&&(w.color=Te(t.color,w.color,ve(r.color)?r.color:void 0,"#000000"),"contrast"===w.color?("none"!==v&&(g=v),e.contrastColor=a.getContrast("auto"!==g&&ve(g)&&g||(ve(p)?p:"")),w.color=g||!ee(x)&&t.inside||0>Pe(x||0)||i.stacking?e.contrastColor:d):delete e.contrastColor,i.cursor&&(w.cursor=i.cursor)),C={r:t.borderRadius||0,rotation:f,padding:t.padding,zIndex:1},o.styledMode||(C.fill="auto"===v?e.color:v,C.stroke="auto"===b?e.color:b,C["stroke-width"]=t.borderWidth),Se(C,(e,t)=>{void 0===e&&delete C[t]})),!k||y&&ee(h)&&!(!k.div&&!(null==(s=k.text)?void 0:s.foreignObject))==!!t.useHTML&&(k.rotation&&t.rotation||k.rotation===t.rotation)||(k=void 0,S=!0),y&&ee(h)&&""!==h&&(k?C.text=h:(k=a.label(h,0,0,t.shape,void 0,void 0,t.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":"")),k&&(k.options=t,k.attr(C),o.styledMode?w.width&&k.css({width:w.width,textOverflow:w.textOverflow,whiteSpace:w.whiteSpace}):k.css(w).shadow(t.shadow),le(k,"beforeAddingDataLabel",{labelOptions:t,point:e}),k.added||k.add(n),r.alignDataLabel(e,k,t,void 0,S),k.isActive=!0,u[l]&&u[l]!==k&&u[l].destroy(),u[l]=k))});let f=u.length;for(;f--;)(null==(s=u[f])?void 0:s.isActive)?u[f].isActive=!1:(null==(c=u[f])||c.destroy(),u.splice(f,1));e.dataLabel=u[0],e.dataLabels=u}),le(this,"afterDrawDataLabels")}function a(e,t,n,r,o,i){let a,l,s=this.chart,c=t.align,u=t.verticalAlign,d=e.box?0:e.padding||0,h=s.inverted?this.yAxis:this.xAxis,p=h?h.left-s.plotLeft:0,f=s.inverted?this.xAxis:this.yAxis,m=f?f.top-s.plotTop:0,{x:g=0,y:y=0}=t;return(a=(n.x||0)+d+p)<0&&("right"===c&&g>=0?(t.align="left",t.inside=!0):g-=a,l=!0),(a=(n.x||0)+r.width-d+p)>s.plotWidth&&("left"===c&&g<=0?(t.align="right",t.inside=!0):g+=s.plotWidth-a,l=!0),(a=n.y+d+m)<0&&("bottom"===u&&y>=0?(t.verticalAlign="top",t.inside=!0):y-=a,l=!0),(a=(n.y||0)+r.height-d+m)>s.plotHeight&&("top"===u&&y<=0?(t.verticalAlign="bottom",t.inside=!0):y+=s.plotHeight-a,l=!0),l&&(t.x=g,t.y=y,e.placed=!i,e.align(t,void 0,o)),l}function l(e,t){let n,r=[];if(be(e)&&!be(t))r=e.map(function(e){return Ce(e,t)});else if(be(t)&&!be(e))r=t.map(function(t){return Ce(e,t)});else if(be(e)||be(t)){if(be(e)&&be(t))for(n=Math.max(e.length,t.length);n--;)r[n]=Ce(e[n],t[n])}else r=Ce(e,t);return r}function s(e){var t,n;let r=e.chart.options.plotOptions;return Ie(l(l(null==(t=null==r?void 0:r.series)?void 0:t.dataLabels,null==(n=null==r?void 0:r[e.type])?void 0:n.dataLabels),e.options.dataLabels))}function c(e,t,n,r,o){let i=this.chart,a=i.inverted,l=this.xAxis,s=l.reversed,c=((a?t.height:t.width)||0)/2,u=e.pointWidth,d=u?u/2:0;t.startXPos=a?o.x:s?-c-d:l.width-c+d,t.startYPos=a?s?this.yAxis.height-c+d:-c-d:o.y,r?"hidden"===t.visibility&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0},void 0,t.hide),i.hasRendered&&(n&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}e.compose=function(e){let s=e.prototype;s.initDataLabels||(s.initDataLabels=o,s.initDataLabelsGroup=r,s.alignDataLabel=n,s.drawDataLabels=i,s.justifyDataLabel=a,s.mergeArrays=l,s.setDataLabelStartPos=c,s.hasDataLabels=t)}}(R||(R={}));let bo=R,{composed:xo}=H,{series:wo}=rr;function Co(e,t,n,r,o){var i,a;let{chart:l,options:s}=this,c=l.inverted,u=(null==(i=this.xAxis)?void 0:i.len)||l.plotSizeX||0,d=(null==(a=this.yAxis)?void 0:a.len)||l.plotSizeY||0,h=e.dlBox||e.shapeArgs,p=e.below??(e.plotY||0)>(this.translatedThreshold??d),f=n.inside??!!s.stacking;if(h){if(r=Ce(h),"allow"!==n.overflow||!1!==n.crop||!1!==s.clip){r.y<0&&(r.height+=r.y,r.y=0);let e=r.y+r.height-d;e>0&&e<r.height-1&&(r.height-=e)}c&&(r={x:d-r.y-r.height,y:u-r.x-r.width,width:r.height,height:r.width}),f||(c?(r.x+=p?0:r.width,r.width=0):(r.y+=p?r.height:0,r.height=0))}n.align??(n.align=!c||f?"center":p?"right":"left"),n.verticalAlign??(n.verticalAlign=c||f?"middle":p?"top":"bottom"),wo.prototype.alignDataLabel.call(this,e,t,n,r,o),n.inside&&e.contrastColor&&t.css({color:e.contrastColor})}(L||(L={})).compose=function(e){bo.compose(wo),Me(xo,"ColumnDataLabel")&&(e.prototype.alignDataLabel=Co)};let ko=L;class So extends go{}So.defaultOptions=Ce(go.defaultOptions,{}),ie(So.prototype,{inverted:!0}),rr.registerSeriesType("bar",So);let{column:Eo,line:$o}=rr.seriesTypes;class To extends $o{applyJitter(){let e=this,t=this.options.jitter,n=this.points.length;t&&this.points.forEach(function(r,o){["x","y"].forEach(function(i,a){if(t[i]&&!r.isNull){let l=`plot${i.toUpperCase()}`,s=e[`${i}Axis`],c=t[i]*s.transA;if(s&&!s.logarithmic){let e,t=Math.max(0,(r[l]||0)-c),u=Math.min(s.len,(r[l]||0)+c);r[l]=t+(u-t)*((e=1e4*Math.sin(o+a*n))-Math.floor(e)),"x"===i&&(r.clientX=r.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}To.defaultOptions=Ce($o.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),ie(To.prototype,{allowOutsidePlotInteraction:!0,drawTracker:Eo.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),V(To,"afterTranslate",function(){this.applyJitter()}),rr.registerSeriesType("scatter",To);let{deg2rad:Po}=H;(x=B||(B={})).getCenter=function(){let e,t,n,r=this.options,o=this.chart,i=2*(r.slicedOffset||0),a=o.plotWidth-2*i,l=o.plotHeight-2*i,s=r.center,c=Math.min(a,l),u=r.thickness,d=r.size,h=r.innerSize||0;"string"==typeof d&&(d=parseFloat(d)),"string"==typeof h&&(h=parseFloat(h));let p=[Te(null==s?void 0:s[0],"50%"),Te(null==s?void 0:s[1],"50%"),Te(d&&d<0?void 0:r.size,"100%"),Te(h&&h<0?void 0:r.innerSize||0,"0%")];for(!o.angular||this instanceof pr||(p[3]=0),t=0;t<4;++t)n=p[t],e=t<2||2===t&&/%$/.test(n),p[t]=Oe(n,[a,l,c,p[2]][t])+(e?i:0);return p[3]>p[2]&&(p[3]=p[2]),ye(u)&&2*u<p[2]&&u>0&&(p[3]=p[2]-2*u),le(this,"afterGetCenter",{positions:p}),p},x.getStartAndEndRadians=function(e,t){let n=ye(e)?e:0,r=ye(t)&&t>n&&t-n<360?t:n+360;return{start:Po*(n+-90),end:Po*(r+-90)}};let Mo=B,{setAnimation:Oo}=lt;class No extends _n{getConnectorPath(e){let t=e.dataLabelPosition,n=e.options||{},r=n.connectorShape,o=this.connectorShapes[r]||r;return t&&o.call(this,{...t.computed,alignment:t.alignment},t.connectorPosition,n)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(e){let t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end,borderRadius:t.borderRadius})}constructor(e,t,n){super(e,t,n),this.half=0,this.name??(this.name=e.chart.options.lang.pieSliceName);const r=e=>{this.slice("select"===e.type)};V(this,"select",r),V(this,"unselect",r)}isValid(){return ye(this.y)&&this.y>=0}setVisible(e,t=!0){e!==this.visible&&this.update({visible:e??!this.visible},t,void 0,!1)}slice(e,t,n){let r=this.series;Oo(n,r.chart),t=Te(t,!0),this.sliced=this.options.sliced=e=ee(e)?e:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}ie(No.prototype,{connectorShapes:{fixedOffset:function(e,t,n){let r=t.breakAt,o=t.touchingSliceAt,i=n.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*r.x-o.x,2*r.y-o.y,r.x,r.y]:["L",r.x,r.y];return[["M",e.x,e.y],i,["L",o.x,o.y]]},straight:function(e,t){let n=t.touchingSliceAt;return[["M",e.x,e.y],["L",n.x,n.y]]},crookedLine:function(e,t,n){let{angle:r=this.angle||0,breakAt:o,touchingSliceAt:i}=t,{series:a}=this,[l,s,c]=a.center,u=c/2,{plotLeft:d,plotWidth:h}=a.chart,p="left"===e.alignment,{x:f,y:m}=e,g=o.x;if(n.crookDistance){let e=Oe(n.crookDistance,1);g=p?l+u+(h+d-l-u)*(1-e):d+(l-u)*e}else g=l+(s-m)*Math.tan(r-Math.PI/2);let y=[["M",f,m]];return(p?g<=f&&g>=o.x:g>=f&&g<=o.x)&&y.push(["L",g,m]),y.push(["L",o.x,o.y],["L",i.x,i.y]),y}}});let{getStartAndEndRadians:Ao}=Mo,{noop:Io}=H;class Ro extends pr{animate(e){let t=this,n=t.points,r=t.startAngleRad;e||n.forEach(function(e){let n=e.graphic,o=e.shapeArgs;n&&o&&(n.attr({r:Te(e.startR,t.center&&t.center[3]/2),start:r,end:r}),n.animate({r:o.r,start:o.start,end:o.end},t.options.animation))})}drawEmpty(){let e,t,n=this.startAngleRad,r=this.endAngleRad,o=this.options;0===this.total&&this.center?(e=this.center[0],t=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,t,this.center[1]/2,0,n,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:jt.arc(e,t,this.center[2]/2,0,{start:n,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let e=this.chart.renderer;this.points.forEach(function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(e,t,n,r){let o=this.center,i=this.radii?this.radii[n.index]||0:o[2]/2,a=r.dataLabelPosition,l=(null==a?void 0:a.distance)||0,s=Math.asin(X((e-o[1])/(i+l),-1,1));return o[0]+Math.cos(s)*(i+l)*(t?-1:1)+(l>0?(t?-1:1)*(r.padding||0):0)}hasData(){return this.points.some(e=>e.visible)}redrawPoints(){let e,t,n,r,o=this,i=o.chart;this.drawEmpty(),o.group&&!i.styledMode&&o.group.shadow(o.options.shadow),o.points.forEach(function(a){let l={};t=a.graphic,!a.isNull&&t?(r=a.shapeArgs,e=a.getTranslate(),i.styledMode||(n=o.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(t.setRadialReference(o.center).attr(r).attr(e),i.styledMode||t.attr(n).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(t.setRadialReference(o.center),i.styledMode||Ce(!0,l,n),Ce(!0,l,r,e),t.animate(l)),t.attr({visibility:a.visible?"inherit":"hidden"}),t.addClass(a.getClassName(),!0)):t&&(a.graphic=t.destroy())})}sortByAngle(e,t){e.sort(function(e,n){return void 0!==e.angle&&(n.angle-e.angle)*t})}translate(e){le(this,"translate"),this.generatePoints();let t,n,r,o,i,a,l,s=this.options,c=s.slicedOffset,u=Ao(s.startAngle,s.endAngle),d=this.startAngleRad=u.start,h=(this.endAngleRad=u.end)-d,p=this.points,f=s.ignoreHiddenPoint,m=p.length,g=0;for(e||(this.center=e=this.getCenter()),a=0;a<m;a++){l=p[a],t=d+g*h,l.isValid()&&(!f||l.visible)&&(g+=l.percentage/100),n=d+g*h;let s={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:t,end:n};l.shapeType="arc",l.shapeArgs=s,(r=(n+t)/2)>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)},o=Math.cos(r)*e[2]/2,i=Math.sin(r)*e[2]/2,l.tooltipPos=[e[0]+.7*o,e[1]+.7*i],l.half=+(r<-Math.PI/2||r>Math.PI/2),l.angle=r}le(this,"afterTranslate")}updateTotals(){let e,t,n=this.points,r=n.length,o=this.options.ignoreHiddenPoint,i=0;for(e=0;e<r;e++)(t=n[e]).isValid()&&(!o||t.visible)&&(i+=t.y);for(e=0,this.total=i;e<r;e++)(t=n[e]).percentage=i>0&&(t.visible||!o)?t.y/i*100:0,t.total=i}}Ro.defaultOptions=Ce(pr.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),ie(Ro.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:go.prototype.drawTracker,getCenter:Mo.getCenter,getSymbol:Io,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:go.prototype.pointAttribs,pointClass:No,requireSorting:!1,searchPoint:Io,trackerGroups:["group","dataLabelsGroup"]}),rr.registerSeriesType("pie",Ro);let{composed:Lo,noop:Bo}=H,{distribute:zo}=kt,{series:Do}=rr;!function(e){let t={radialDistributionY:function(e,t){var n;return((null==(n=t.dataLabelPosition)?void 0:n.top)||0)+e.distributeBox.pos},radialDistributionX:function(e,t,n,r,o){let i=o.dataLabelPosition;return e.getX(n<((null==i?void 0:i.top)||0)+2||n>((null==i?void 0:i.bottom)||0)-2?r:n,t.half,t,o)},justify:function(e,t,n,r){var o;return r[0]+(e.half?-1:1)*(n+((null==(o=t.dataLabelPosition)?void 0:o.distance)||0))},alignToPlotEdges:function(e,t,n,r){let o=e.getBBox().width;return t?o+r:n-o-r},alignToConnectors:function(e,t,n,r){let o,i=0;return e.forEach(function(e){(o=e.dataLabel.getBBox().width)>i&&(i=o)}),t?i+r:n-i-r}};function n(e,t){let n=Math.PI/2,{start:r=0,end:o=0}=e.shapeArgs||{},i=e.angle||0;t>0&&r<n&&o>n&&i>n/2&&i<1.5*n&&(i=i<=n?Math.max(n/2,(r+n)/2):Math.min(1.5*n,(n+o)/2));let{center:a,options:l}=this,s=a[2]/2,c=Math.cos(i),u=Math.sin(i),d=a[0]+c*s,h=a[1]+u*s,p=Math.min((l.slicedOffset||0)+(l.borderWidth||0),t/5);return{natural:{x:d+c*t,y:h+u*t},computed:{},alignment:t<0?"center":e.half?"right":"left",connectorPosition:{angle:i,breakAt:{x:d+c*p,y:h+u*p},touchingSliceAt:{x:d,y:h}},distance:t}}function r(){var e;let t,n,r,o=this,i=o.points,a=o.chart,l=a.plotWidth,s=a.plotHeight,c=a.plotLeft,u=Math.round(a.chartWidth/3),d=o.center,h=d[2]/2,p=d[1],f=[[],[]],m=[0,0,0,0],g=o.dataLabelPositioners,y=0;o.visible&&(null==(e=o.hasDataLabels)?void 0:e.call(o))&&(i.forEach(e=>{(e.dataLabels||[]).forEach(e=>{e.shortened&&(e.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.shortened=!1)})}),Do.prototype.drawDataLabels.apply(o),i.forEach(e=>{(e.dataLabels||[]).forEach((t,n)=>{var r;let o=d[2]/2,i=t.options,a=Oe((null==i?void 0:i.distance)||0,o);0===n&&f[e.half].push(e),!ee(null==(r=null==i?void 0:i.style)?void 0:r.width)&&t.getBBox().width>u&&(t.css({width:Math.round(.7*u)+"px"}),t.shortened=!0),t.dataLabelPosition=this.getDataLabelPosition(e,a),y=Math.max(y,a)})}),f.forEach((e,t)=>{let i,u,f,v=e.length,b=[],x=0;v&&(o.sortByAngle(e,t-.5),y>0&&(i=Math.max(0,p-h-y),u=Math.min(p+h+y,a.plotHeight),e.forEach(e=>{(e.dataLabels||[]).forEach(t=>{var n;let r=t.dataLabelPosition;r&&r.distance>0&&(r.top=Math.max(0,p-h-r.distance),r.bottom=Math.min(p+h+r.distance,a.plotHeight),x=t.getBBox().height||21,t.lineHeight=a.renderer.fontMetrics(t.text||t).h+2*t.padding,e.distributeBox={target:((null==(n=t.dataLabelPosition)?void 0:n.natural.y)||0)-r.top+t.lineHeight/2,size:x,rank:e.y},b.push(e.distributeBox))})}),zo(b,f=u+x-i,f/5)),e.forEach(i=>{(i.dataLabels||[]).forEach(a=>{let u=a.options||{},p=i.distributeBox,f=a.dataLabelPosition,y=(null==f?void 0:f.natural.y)||0,v=u.connectorPadding||0,x=a.lineHeight||21,w=(x-a.getBBox().height)/2,C=0,k=y,S="inherit";if(f){if(b&&ee(p)&&f.distance>0&&(void 0===p.pos?S="hidden":(r=p.size,k=g.radialDistributionY(i,a))),u.justify)C=g.justify(i,a,h,d);else switch(u.alignTo){case"connectors":C=g.alignToConnectors(e,t,l,c);break;case"plotEdges":C=g.alignToPlotEdges(a,t,l,c);break;default:C=g.radialDistributionX(o,i,k-w,y,a)}if(f.attribs={visibility:S,align:f.alignment},f.posAttribs={x:C+(u.x||0)+({left:v,right:-v}[f.alignment]||0),y:k+(u.y||0)-x/2},f.computed.x=C,f.computed.y=k-w,Te(u.crop,!0)){let e;C-(n=a.getBBox().width)<v&&1===t?(e=Math.round(n-C+v),m[3]=Math.max(e,m[3])):C+n>l-v&&0===t&&(e=Math.round(C+n-l+v),m[1]=Math.max(e,m[1])),k-r/2<0?m[0]=Math.max(Math.round(r/2-k),m[0]):k+r/2>s&&(m[2]=Math.max(Math.round(k+r/2-s),m[2])),f.sideOverflow=e}}})}))}),(0===q(m)||this.verifyDataLabelOverflow(m))&&(this.placeDataLabels(),this.points.forEach(e=>{var n;null==(n=e.dataLabels)||n.forEach((n,r)=>{var i,l;let{connectorColor:s,connectorWidth:c=1}=n.options||{},u=n.dataLabelPosition;if(ye(c)){let d;t=n.connector,u&&u.distance>0?(d=!t,t||(n.connector=t=a.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(null==(i=o.dataLabelsGroups)?void 0:i[r])),a.styledMode||t.attr({"stroke-width":c,stroke:s||e.color||"#666666"}),t[d?"attr":"animate"]({d:e.getConnectorPath(n)}),t.attr({visibility:null==(l=u.attribs)?void 0:l.visibility})):t&&(n.connector=t.destroy())}})})))}function o(){this.points.forEach(e=>{(e.dataLabels||[]).forEach(e=>{var t,n;let r=e.dataLabelPosition;r?(r.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-r.sideOverflow,0)+"px",textOverflow:(null==(n=null==(t=e.options)?void 0:t.style)?void 0:n.textOverflow)||"ellipsis"}),e.shortened=!0),e.attr(r.attribs),e[e.moved?"animate":"attr"](r.posAttribs),e.moved=!0):e&&e.attr({y:-9999})}),delete e.distributeBox},this)}function i(e){let t=this.center,n=this.options,r=n.center,o=n.minSize||80,i=o,a=null!==n.size;return!a&&(null!==r[0]?i=Math.max(t[2]-Math.max(e[1],e[3]),o):(i=Math.max(t[2]-e[1]-e[3],o),t[0]+=(e[3]-e[1])/2),null!==r[1]?i=X(i,o,t[2]-Math.max(e[0],e[2])):(i=X(i,o,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2),i<t[2]?(t[2]=i,t[3]=Math.min(n.thickness?Math.max(0,i-2*n.thickness):Math.max(0,Oe(n.innerSize||0,i)),i),this.translate(t),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}e.compose=function(e){if(bo.compose(Do),Me(Lo,"PieDataLabel")){let a=e.prototype;a.dataLabelPositioners=t,a.alignDataLabel=Bo,a.drawDataLabels=r,a.getDataLabelPosition=n,a.placeDataLabels=o,a.verifyDataLabelOverflow=i}}}(z||(z={}));let jo=z;(w=D||(D={})).getCenterOfPoints=function(e){let t=e.reduce((e,t)=>(e.x+=t.x,e.y+=t.y,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}},w.getDistanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},w.getAngleBetweenPoints=function(e,t){return Math.atan2(t.x-e.x,t.y-e.y)},w.pointInPolygon=function({x:e,y:t},n){let r,o,i=n.length,a=!1;for(r=0,o=i-1;r<i;o=r++){let[i,l]=n[r],[s,c]=n[o];l>t!=c>t&&e<(s-i)*(t-l)/(c-l)+i&&(a=!a)}return a};let{pointInPolygon:_o}=D;function Fo(e,t){let n,r=!1;return e&&(n=e.newOpacity,e.oldOpacity!==n&&(e.hasClass("highcharts-data-label")?(e[n?"removeClass":"addClass"]("highcharts-data-label-hidden"),r=!0,e[e.isOld?"animate":"attr"]({opacity:n},void 0,function(){t.styledMode||e.css({pointerEvents:n?"auto":"none"})}),le(t,"afterHideOverlappingLabel")):e.attr({opacity:n})),e.isOld=!0),r}let{defaultOptions:Ho}=Ze,{noop:Wo}=H,Ko={radius:0,scope:"stack",where:void 0},Vo=Wo,Uo=Wo;function qo(e,t,n,r,o={}){let i=Vo(e,t,n,r,o),{brStart:a=!0,brEnd:l=!0,innerR:s=0,r:c=n,start:u=0,end:d=0}=o;if(o.open||!o.borderRadius)return i;let h=d-u,p=Math.sin(h/2),f=Math.max(Math.min(Oe(o.borderRadius||0,c-s),(c-s)/2,c*p/(1+p)),0),m=Math.min(f,h/Math.PI*2*s),g=i.length-1;for(;g--;)(a||0!==g&&3!==g)&&(l||1!==g&&2!==g)&&function(e,t,n){let r,o,i,a=e[t],l=e[t+1];if("Z"===l[0]&&(l=e[0]),"M"!==a[0]&&"L"!==a[0]||"A"!==l[0]?"A"===a[0]&&("M"===l[0]||"L"===l[0])&&(r=l,o=a):(r=a,o=l,i=!0),r&&o&&o.params){let a=o[1],l=o[5],s=o.params,{start:c,end:u,cx:d,cy:h}=s,p=l?a-n:a+n,f=p?Math.asin(n/p):0,m=l?f:-f,g=Math.cos(f)*p;i?(s.start=c+m,r[1]=d+g*Math.cos(c),r[2]=h+g*Math.sin(c),e.splice(t+1,0,["A",n,n,0,0,1,d+a*Math.cos(s.start),h+a*Math.sin(s.start)])):(s.end=u-m,o[6]=d+a*Math.cos(s.end),o[7]=h+a*Math.sin(s.end),e.splice(t+1,0,["A",n,n,0,0,1,d+g*Math.cos(u),h+g*Math.sin(u)])),o[4]=Math.abs(s.end-s.start)<Math.PI?0:1}}(i,g,g>1?m:f);return i}function Go(){var e,t;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:n,yAxis:r}=this,o="percent"===n.stacking,i=null==(t=null==(e=Ho.plotOptions)?void 0:e[this.type])?void 0:t.borderRadius,a=Xo(n.borderRadius,we(i)?i:{}),l=r.options.reversed;for(let e of this.points){let{shapeArgs:t}=e;if("roundedRect"===e.shapeType&&t){let{width:i=0,height:s=0,y:c=0}=t,u=c,d=s;if("stack"===a.scope&&e.stackTotal){let t=r.translate(o?100:e.stackTotal,!1,!0,!1,!0),i=r.translate(n.threshold||0,!1,!0,!1,!0),a=this.crispCol(0,Math.min(t,i),0,Math.abs(t-i));u=a.y,d=a.height}let h=(e.negative?-1:1)*(l?-1:1)==-1,p=a.where;!p&&this.is("waterfall")&&Math.abs((e.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(p="all"),p||(p="end");let f=Math.min(Oe(a.radius,i),i/2,"all"===p?d/2:1/0)||0;"end"===p&&(h&&(u-=f),d+=f),ie(t,{brBoxHeight:d,brBoxY:u,r:f})}}}}function Xo(e,t){return we(e)||(e={radius:e||0}),Ce(Ko,t,e)}function Yo(){let e=Xo(this.options.borderRadius);for(let t of this.points){let n=t.shapeArgs;n&&(n.borderRadius=Oe(e.radius,(n.r||0)-(n.innerR||0)))}}function Zo(e,t,n,r,o={}){let i=Uo(e,t,n,r,o),{r:a=0,brBoxHeight:l=r,brBoxY:s=t}=o,c=t-s,u=s+l-(t+r),d=c-a>-.1?0:a,h=u-a>-.1?0:a,p=Math.max(d&&c,0),f=Math.max(h&&u,0),m=[e+d,t],g=[e+n-d,t],y=[e+n,t+d],v=[e+n,t+r-h],b=[e+n-h,t+r],x=[e+h,t+r],w=[e,t+r-h],C=[e,t+d],k=(e,t)=>Math.sqrt(Math.pow(e,2)-Math.pow(t,2));if(p){let e=k(d,d-p);m[0]-=e,g[0]+=e,y[1]=C[1]=t+d-p}if(r<d-p){let o=k(d,d-p-r);y[0]=v[0]=e+n-d+o,b[0]=Math.min(y[0],b[0]),x[0]=Math.max(v[0],x[0]),w[0]=C[0]=e+d-o,y[1]=C[1]=t+r}if(f){let e=k(h,h-f);b[0]+=e,x[0]-=e,v[1]=w[1]=t+r-h+f}if(r<h-f){let o=k(h,h-f-r);y[0]=v[0]=e+n-h+o,g[0]=Math.min(y[0],g[0]),m[0]=Math.max(v[0],m[0]),w[0]=C[0]=e+h-o,v[1]=w[1]=t}return i.length=0,i.push(["M",...m],["L",...g],["A",d,d,0,0,1,...y],["L",...v],["A",h,h,0,0,1,...b],["L",...x],["A",h,h,0,0,1,...w],["L",...C],["A",d,d,0,0,1,...m],["Z"]),i}function Qo(e,t){let n=e.condition;(n.callback||function(){return this.chartWidth<=Te(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=Te(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=Te(n.minWidth,0)&&this.chartHeight>=Te(n.minHeight,0)}).call(this,this)&&t.push(e._id)}function Jo(e,t){let n,r=this.options.responsive,o=this.currentResponsive,i=[];!t&&r&&r.rules&&r.rules.forEach(e=>{void 0===e._id&&(e._id=He()),this.matchResponsiveRule(e,i)},this);let a=Ce(...i.map(e=>pe((null==r?void 0:r.rules)||[],t=>t._id===e)).map(e=>null==e?void 0:e.chartOptions));a.isResponsiveOptions=!0,i=i.toString()||void 0;let l=null==o?void 0:o.ruleIds;i!==l&&(o&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(o.undoOptions,e,!0),this.updatingResponsive=!1),i?((n=re(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:i,mergedOptions:a,undoOptions:n},this.updatingResponsive||this.update(a,e,!0)):this.currentResponsive=void 0)}(j||(j={})).compose=function(e){let t=e.prototype;return t.matchResponsiveRule||ie(t,{matchResponsiveRule:Qo,setResponsive:Jo}),e};let ei=j;H.AST=pt,H.Axis=wn,H.Chart=Lr,H.Color=tt,H.DataLabel=bo,H.DataTableCore=Yn,H.Fx=ot,H.HTMLElement=sn,H.Legend=Cr,H.LegendSymbol=Jn,H.PlotLineOrBand=En,H.Point=_n,H.Pointer=qn,H.RendererRegistry=Ct,H.Series=pr,H.SeriesRegistry=rr,H.StackItem=Wr,H.SVGElement=Rt,H.SVGRenderer=nn,H.Templating=wt,H.Tick=pn,H.Time=qe,H.Tooltip=Ln,H.addEvent=V,H.animObject=lt.animObject,H.animate=lt.animate,H.arrayMax=q,H.arrayMin=U,H.attr=G,H.chart=Lr.chart,H.clamp=X,H.color=tt.parse,H.correctFloat=Y,H.createElement=Z,H.css=J,H.dateFormat=wt.dateFormat,H.defaultOptions=Ze.defaultOptions,H.defined=ee,H.destroyObjectProperties=te,H.diffObjects=re,H.discardElement=ne,H.distribute=kt.distribute,H.erase=oe,H.error=je,H.extend=ie,H.extendClass=ae,H.find=pe,H.fireEvent=le,H.format=wt.format,H.getDeferredAnimation=lt.getDeferredAnimation,H.getMagnitude=ue,H.getOptions=Ze.getOptions,H.getStyle=he,H.insertItem=_e,H.isArray=be,H.isClass=ge,H.isDOMElement=me,H.isFunction=xe,H.isNumber=ye,H.isObject=we,H.isString=ve,H.merge=Ce,H.normalizeTickInterval=ke,H.numberFormat=wt.numberFormat,H.objectEach=Se,H.offset=Ee,H.pad=$e,H.pick=Te,H.pInt=Pe,H.relativeLength=Oe,H.removeEvent=Ae,H.seriesType=rr.seriesType,H.setAnimation=lt.setAnimation,H.setOptions=Ze.setOptions,H.splat=Ie,H.stableSort=Re,H.stop=lt.stop,H.syncTimeout=Le,H.time=Ze.defaultTime,H.timers=ot.timers,H.timeUnits=Fe,H.uniqueKey=He,H.useSerialIds=function(e){return s=Te(e,s)},H.wrap=function(e,t,n){let r=e[t];e[t]=function(){let e=arguments,t=this;return n.apply(this,[function(){return r.apply(t,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}},function(e,t,n){let r=e.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){let o=n.prototype.symbols;V(e,"afterColumnTranslate",Go,{order:9}),V(r,"afterTranslate",Yo),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),Vo=o.arc,Uo=o.roundedRect,o.arc=qo,o.roundedRect=Zo}}(H.Series,H.SVGElement,H.SVGRenderer),ko.compose(H.Series.types.column),bo.compose(H.Series),Cn.compose(H.Axis),sn.compose(H.SVGRenderer),Cr.compose(H.Chart),kn.compose(H.Axis),(p=(C=H.Chart).prototype).hideOverlappingLabels||(p.hideOverlappingLabels=function(e){let t,n,r,o,i,a=e.length,l=(e,t)=>!(t.x>=e.x+e.width||t.x+t.width<=e.x||t.y>=e.y+e.height||t.y+t.height<=e.y),s=(e,t)=>{for(let n of e)if(_o({x:n[0],y:n[1]},t))return!0;return!1},c=!1;for(let n=0;n<a;n++)(t=e[n])&&(t.oldOpacity=t.opacity,t.newOpacity=1,t.absoluteBox=function(e){var t,n;if(e&&(!e.alignAttr||e.placed)){let r=e.box?0:e.padding||0,o=e.alignAttr||{x:e.attr("x"),y:e.attr("y")},{height:i,polygon:a,width:l}=e.getBBox(),s=se(e.alignValue)*l;return e.width=l,e.height=i,{x:o.x+((null==(t=e.parentGroup)?void 0:t.translateX)||0)+r-s,y:o.y+((null==(n=e.parentGroup)?void 0:n.translateY)||0)+r,width:l-2*r,height:i-2*r,polygon:a}}}(t));e.sort((e,t)=>((null==t?void 0:t.labelrank)||0)-((null==e?void 0:e.labelrank)||0));for(let t=0;t<a;++t){o=(n=e[t])&&n.absoluteBox;let c=null==o?void 0:o.polygon;for(let u=t+1;u<a;++u){i=(r=e[u])&&r.absoluteBox;let t=!1;if(o&&i&&n!==r&&0!==(null==n?void 0:n.newOpacity)&&0!==(null==r?void 0:r.newOpacity)&&"hidden"!==(null==n?void 0:n.visibility)&&"hidden"!==(null==r?void 0:r.visibility)){let e=i.polygon;if(c&&e&&c!==e?s(c,e)&&(t=!0):l(o,i)&&(t=!0),t){let e=(null==n?void 0:n.labelrank)<(null==r?void 0:r.labelrank)?n:r,t=null==e?void 0:e.text;e&&(e.newOpacity=0),(null==t?void 0:t.element.querySelector("textPath"))&&t.hide()}}}}for(let t of e)t&&Fo(t,this)&&(c=!0);c&&le(this,"afterHideAllOverlappingLabels")},V(C,"render",function(){var e;let t=this,n=[];for(let e of t.labelCollectors||[])n=n.concat(e());for(let e of t.yAxis||[])e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&Se(e.stacking.stacks,e=>{Se(e,e=>{e.label&&n.push(e.label)})});for(let r of t.series||[])if(r.visible&&(null==(e=r.hasDataLabels)?void 0:e.call(r))){let e=e=>{for(let r of e)r.visible&&(r.dataLabels||[]).forEach(e=>{var o;let i=e.options||{};e.labelrank=Te(i.labelrank,r.labelrank,null==(o=r.shapeArgs)?void 0:o.height),i.allowOverlap??Number(i.distance)>0?(e.oldOpacity=e.opacity,e.newOpacity=1,Fo(e,t)):n.push(e)})};e(r.nodes||[]),e(r.points)}this.hideOverlappingLabels(n)})),jo.compose(H.Series.types.pie),En.compose(H.Chart,H.Axis),qn.compose(H.Chart),ei.compose(H.Chart),_r.compose(H.Axis,H.Chart,H.Series),to.compose(H.Axis,H.Chart,H.Series),Ln.compose(H.Pointer);let ti=H;return F.default})(),t._Highcharts=n(),e.exports=t._Highcharts}(YF)),YF.exports);const JF=c(QF);var eH,tH={exports:{}},nH=tH.exports;eH||(eH=1,function(e){var t,n;t="u"<typeof window?nH:window,n=(e,t,n)=>(()=>{var r,o,i={660:e=>{e.exports=t},944:t=>{t.exports=e},960:e=>{e.exports=n}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,l),n.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};l.d(s,{default:()=>le});var c=l(944),u=l.n(c),d=l(660),h=l.n(d),p=l(960),f=l.n(p),m=r||(r={});m.compose=function(e){return e.navigation||(e.navigation=new g(e)),e};class g{constructor(e){this.updates=[],this.chart=e}addUpdate(e){this.chart.navigation.updates.push(e)}update(e,t){this.updates.forEach(n=>{n.call(this.chart,e,t)})}}m.Additions=g;let y=r,{isSafari:v,win:b,win:{document:x}}=u(),w=b.URL||b.webkitURL||b;function C(e,t){let n=b.navigator,r=x.createElement("a");if("string"!=typeof e&&!(e instanceof String)&&n.msSaveOrOpenBlob)return void n.msSaveOrOpenBlob(e,t);if(e=""+e,n.userAgent.length>1e3)throw Error("Input too long");let o=/Edge\/\d+/.test(n.userAgent);if((v&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||o||e.length>2e6)&&!(e=function(e){let t=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(t&&t.length>3&&b.atob&&b.ArrayBuffer&&b.Uint8Array&&b.Blob&&w.createObjectURL){let e=b.atob(t[3]),n=new b.ArrayBuffer(e.length),r=new b.Uint8Array(n);for(let t=0;t<r.length;++t)r[t]=e.charCodeAt(t);return w.createObjectURL(new b.Blob([r],{type:t[1]}))}}(e)||""))throw Error("Failed to convert to blob");if(void 0!==r.download)r.href=e,r.download=t,x.body.appendChild(r),r.click(),x.body.removeChild(r);else try{if(!b.open(e,"chart"))throw Error("Failed to open window")}catch{b.location.href=e}}let{isTouchDevice:k}=u(),S={exporting:{allowTableSorting:!0,libURL:"https://code.highcharts.com/12.6.0/lib/",local:!0,type:"image/png",url:`https://export-svg.highcharts.com?v=${u().version}`,pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){var e;null==(e=this.fullscreen)||e.toggle()}},printChart:{textKey:"printChart",onclick:function(){var e;null==(e=this.exporting)||e.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart())}},downloadJPEG:{textKey:"downloadJPEG",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart({type:"image/jpeg"}))}},downloadPDF:{textKey:"downloadPDF",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart({type:"application/pdf"}))}},downloadSVG:{textKey:"downloadSVG",onclick:async function(){var e;await(null==(e=this.exporting)?void 0:e.exportChart({type:"image/svg+xml"}))}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:k?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}};!function(e){let t=[];function n(e,t,n,r){return[["M",e,t+2.5],["L",e+n,t+2.5],["M",e,t+r/2+.5],["L",e+n,t+r/2+.5],["M",e,t+r-1.5],["L",e+n,t+r-1.5]]}function r(e,t,n,r){let o=r/3-2;return[].concat(this.circle(n-o,t,o,o),this.circle(n-o,t+o+4,o,o),this.circle(n-o,t+2*(o+4),o,o))}e.compose=function(e){if(-1===t.indexOf(e)){t.push(e);let o=e.prototype.symbols;o.menu=n,o.menuball=r.bind(o)}}}(o||(o={}));let E=o,{doc:$,win:T}=u();function P(e,t,n,r={}){let o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let i=o.hcEvents;u().Point&&e instanceof u().Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,t,n,!!u().supportsPassiveEvents&&{passive:void 0===r.passive?-1!==t.indexOf("touch"):r.passive,capture:!1}),i[t]||(i[t]=[]);let l={fn:n,order:"number"==typeof r.order?r.order:1/0};return i[t].push(l),i[t].sort((e,t)=>e.order-t.order),function(){W(e,t,n)}}function M(e,t,n,r,o){let i=$.createElement(e);return t&&A(i,t),n&&O(i,n),r&&r.appendChild(i),i}function O(e,t){A(e.style,t)}function N(e){var t;null==(t=null==e?void 0:e.parentElement)||t.removeChild(e)}function A(e,t){let n;for(n in e||(e={}),t)e[n]=t[n];return e}function I(e,t,n,r){if(n=n||{},(null==$?void 0:$.createEvent)&&(e.dispatchEvent||e.fireEvent&&e!==u())){let r=$.createEvent("Events");r.initEvent(t,!0,!0),n=A(r,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(t,n)}else if(e.hcEvents){n.target||A(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:t});let r=[],o=e,i=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[t]&&(r.length&&(i=!0),r.unshift.apply(r,o.hcEvents[t])),o=Object.getPrototypeOf(o);i&&r.sort((e,t)=>e.order-t.order),r.forEach(t=>{!1===t.fn.call(e,n,e)&&n.preventDefault()})}r&&!n.defaultPrevented&&r.call(e,n)}let R=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){let n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};function L(e){null!=e&&clearTimeout(e)}function B(e){return D(e)&&"number"==typeof e.nodeType}function z(e){let t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function D(e,t){return!(!e||"object"!=typeof e||t&&z(e))}function j(e,...t){let n,r=[e,...t],o={},i=function(e,t){return"object"!=typeof e&&(e={}),_(t,function(n,r){if("__proto__"!==r&&"constructor"!==r){let o;!D(n,!0)||(o=null==n?void 0:n.constructor,D(n,!0)&&!B(n)&&(null==o?void 0:o.name)&&"Object"!==o.name)||B(n)?e[r]=t[r]:e[r]=i(e[r]||{},n)}}),e};!0===e&&(o=r[1],r=Array.prototype.slice.call(r,2));let a=r.length;for(n=0;n<a;n++)o=i(o,r[n]);return o}function _(e,t,n){for(let n in e)Object.hasOwnProperty.call(e,n)&&t.call(e[n],e[n],n,e)}function F(){let e=arguments,t=e.length;for(let n=0;n<t;n++){let t=e[n];if(null!=t)return t}}function H(e,t){return 0>e.indexOf(t)&&!!e.push(t)}function W(e,t,n){function r(t,n){let r=e.removeEventListener;r&&r.call(e,t,n,!1)}function o(n){let o,i;e.nodeName&&(t?(o={})[t]=!0:o=n,_(o,function(e,t){if(n[t])for(i=n[t].length;i--;)r(t,n[t][i].fn)}))}let i="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(i,"hcEvents")){let e=i.hcEvents;if(t){let i=e[t]||[];n?(e[t]=i.filter(function(e){return n!==e.fn}),r(t,n)):(o(e),e[t]=[])}else o(e),delete i.hcEvents}}let{composed:K}=u();function V(){this.fullscreen=new U(this)}class U{static compose(e){H(K,"Fullscreen")&&P(e,"beforeRender",V)}constructor(e){this.chart=e,this.isOpen=!1;const t=e.renderTo;!this.browserProps&&("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let e=this,t=e.chart,n=t.options.chart;I(t,"fullscreenClose",void 0,function(){e.isOpen&&e.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),t.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,n.width=e.origWidthOption,n.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})}open(){let e=this,t=e.chart,n=t.options.chart;I(t,"fullscreenOpen",void 0,function(){if(n&&(e.origWidthOption=n.width,e.origHeightOption=n.height),e.origWidth=t.chartWidth,e.origHeight=t.chartHeight,e.browserProps){let n=P(t.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(t.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),r=P(t,"destroy",n);e.unbindFullscreenEvent=()=>{n(),r()};let o=t.renderTo[e.browserProps.requestFullscreen]();o&&o.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){var e,t;let n=this.chart,r=null==(e=n.exporting)?void 0:e.divElements,o=n.options.exporting,i=o&&o.buttons&&o.buttons.contextButton.menuItems,a=n.options.lang;if((null==o?void 0:o.menuItemDefinitions)&&(null==a?void 0:a.exitFullscreen)&&a.viewFullscreen&&i&&r){let e=r[i.indexOf("viewFullscreen")];e&&h().setElementHTML(e,this.isOpen?a.exitFullscreen:(null==(t=o.menuItemDefinitions.viewFullscreen)?void 0:t.textKey)||a.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}let{win:q}=u(),G={ajax:function(e){var t;let n={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},r=new XMLHttpRequest;function o(t,n){e.error&&e.error(t,n)}if(!e.url)return!1;r.open((e.type||"get").toUpperCase(),e.url,!0),(null==(t=e.headers)?void 0:t["Content-Type"])||r.setRequestHeader("Content-Type",n[e.dataType||"json"]||n.text),_(e.headers,function(e,t){r.setRequestHeader(t,e)}),e.responseType&&(r.responseType=e.responseType),r.onreadystatechange=function(){var t;let n;if(4===r.readyState){if(200===r.status){if("blob"!==e.responseType&&(n=r.responseText,"json"===e.dataType))try{n=JSON.parse(n)}catch(e){if(e instanceof Error)return o(r,e)}return null==(t=e.success)?void 0:t.call(e,n,r)}o(r,r.responseText)}},e.data&&"string"!=typeof e.data&&(e.data=JSON.stringify(e.data)),r.send(e.data)},getJSON:function(e,t){G.ajax({url:e,success:t,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:async function(e,t,n){let r=new q.FormData;_(t,function(e,t){r.append(t,e)}),r.append("b64","true");let o=await q.fetch(e,{method:"POST",body:r,...n});if(o.ok){let e=await o.text(),n=document.createElement("a");n.href=`data:${t.type};base64,${e}`,n.download=t.filename,n.click(),N(n)}}},{defaultOptions:X,setOptions:Y}=u(),{composed:Z,doc:Q,isFirefox:J,isMS:ee,isSafari:te,SVG_NS:ne,win:re}=u();h().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),h().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");let oe=re.URL||re.webkitURL||re;class ie{constructor(e,t){this.options={},this.chart=e,this.options=t,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}static hyphenate(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}static async imageToDataURL(e,t,n){let r=await ie.loadImage(e),o=Q.createElement("canvas"),i=null==o?void 0:o.getContext("2d");if(i)return o.height=r.height*t,o.width=r.width*t,i.drawImage(r,0,0,o.width,o.height),o.toDataURL(n);throw Error("No canvas found!")}static async fetchCSS(e){try{let t=await fetch(e),n=await t.text(),r=new CSSStyleSheet;return r.replaceSync(n),r}catch{(0,c.error)(`Warning: Failed to fetch CSS from ${e}`,!1)}}static async handleStyleSheet(e,t){try{for(let n of Array.from(e.cssRules)){if(n instanceof CSSImportRule){let e=await ie.fetchCSS(n.href);e&&await ie.handleStyleSheet(e,t)}if(n instanceof CSSFontFaceRule){let r=n.cssText;if(e.href){let t=e.href,n=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi;r=r.replace(n,(e,n,r)=>`url(${n}${new URL(r,t).href}${n})`)}t.push(r)}}}catch{if(e.href){let n=await ie.fetchCSS(e.href);n&&await ie.handleStyleSheet(n,t)}}}static async fetchStyleSheets(){let e=[];for(let t of Array.from(Q.styleSheets))await ie.handleStyleSheet(t,e);return e}static async inlineFonts(e){let t,n=/url\(([^)]+)\)/g,r=[],o=(await ie.fetchStyleSheets()).join("\n");for(;t=n.exec(o);){let e=t[1].replace(/['"]/g,"");r.includes(e)||r.push(e)}let i=e=>{let t="",n=new Uint8Array(e);for(let e=0;e<n.byteLength;e++)t+=String.fromCharCode(n[e]);return btoa(t)},a={};for(let e of r)try{let t=await fetch(e),n=t.headers.get("Content-Type")||"",r=i(await t.arrayBuffer());a[e]=`data:${n};base64,${r}`}catch{}o=o.replace(n,(e,t)=>{let n=t.replace(/['"]/g,"");return`url(${a[n]||n})`});let l=document.createElementNS("http://www.w3.org/2000/svg","style");return l.textContent=o,e.append(l),e}static loadImage(e){return new Promise((t,n)=>{let r=new re.Image;r.crossOrigin="Anonymous",r.onload=()=>{setTimeout(()=>{t(r)},ie.loadEventDeferDelay)},r.onerror=e=>{n(e)},r.src=e})}static prepareImageOptions(e){var t;let n=(null==e?void 0:e.type)||"image/png",r=(null==e?void 0:e.libURL)||(null==(t=X.exporting)?void 0:t.libURL);return{type:n,filename:((null==e?void 0:e.filename)||"chart")+"."+("image/svg+xml"===n?"svg":n.split("/")[1]),scale:(null==e?void 0:e.scale)||1,libURL:"/"!==(null==r?void 0:r.slice(-1))?r+"/":r}}static sanitizeSVG(e,t){var n;let r=e.indexOf("</svg>")+6,o=e.indexOf("<foreignObject")>-1,i=e.substr(r);return e=e.substr(0,r),o?e=e.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">'):i&&(null==(n=null==t?void 0:t.exporting)?void 0:n.allowHTML)&&(i='<foreignObject x="0" y="0" width="'+t.chart.width+'" height="'+t.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+i.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">')+"</body></foreignObject>",e=e.replace("</svg>",i+"</svg>")),e.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/(<image[^>]*) xlink:href=/g,"$1 href=").replace(/\n+/g," ").replace(/ /g," ").replace(/­/g,"")}static svgToDataURL(e){let t=re.navigator.userAgent,n=t.indexOf("WebKit")>-1&&0>t.indexOf("Chrome");try{if(!n&&-1===e.indexOf("<foreignObject"))return oe.createObjectURL(new re.Blob([e],{type:"image/svg+xml;charset-utf-16"}))}catch{}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(e)}addButton(e){var t;let n,r=this,o=r.chart,i=o.renderer,a=j(null==(t=o.options.navigation)?void 0:t.buttonOptions,e),l=a.onclick,s=a.menuItems,c=a.symbolSize||12;if(!1===a.enabled||!a.theme)return;let u=o.styledMode?{}:a.theme,d=()=>{};l?d=function(e){e&&e.stopPropagation(),l.call(o,e,o)}:s&&(d=function(e){e&&e.stopPropagation(),r.contextMenu(h.menuClassName,s,h.translateX||0,h.translateY||0,h.width||0,h.height||0,h),h.setState(2)}),a.text&&a.symbol?u.paddingLeft=F(u.paddingLeft,30):a.text||A(u,{width:a.width,height:a.height,padding:0});let h=i.button(a.text||"",0,0,d,u,void 0,void 0,void 0,void 0,a.useHTML).addClass(e.className||"").attr({title:F(o.options.lang[a._titleKey||a.titleKey],"")});h.menuClassName=e.menuClassName||"highcharts-menu-"+r.btnCount++,a.symbol&&(n=i.symbol(a.symbol,Math.round((a.symbolX||0)-c/2),Math.round((a.symbolY||0)-c/2),c,c,{width:c,height:c}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(h),o.styledMode||n.attr({stroke:a.symbolStroke,fill:a.symbolFill,"stroke-width":a.symbolStrokeWidth||1})),h.add(r.group).align(A(a,{width:h.width,x:F(a.x,r.buttonOffset)}),!0,"spacingBox"),r.buttonOffset+=((h.width||0)+(a.buttonSpacing||0))*("right"===a.align?-1:1),r.svgElements.push(h,n)}afterPrint(){let e=this.chart;if(!this.printReverseInfo)return;let{childNodes:t,origDisplay:n,resetParams:r}=this.printReverseInfo;this.moveContainers(e.renderTo),[].forEach.call(t,function(e,t){1===e.nodeType&&(e.style.display=n[t]||"")}),this.isPrinting=!1,r&&e.setSize.apply(e,r),delete this.printReverseInfo,ie.printingChart=void 0,I(e,"afterPrint")}beforePrint(){var e;let t=this.chart,n=Q.body,r=this.options.printMaxWidth,o={childNodes:n.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,null==(e=t.pointer)||e.reset(void 0,0),I(t,"beforePrint"),r&&t.chartWidth>r&&(o.resetParams=[t.options.chart.width,void 0,!1],t.setSize(r,void 0,!1)),[].forEach.call(o.childNodes,function(e,t){1===e.nodeType&&(o.origDisplay[t]=e.style.display,e.style.display="none")}),this.moveContainers(n),this.printReverseInfo=o}contextMenu(e,t,n,r,o,i,a){var l,s,c;let u,d=this,p=d.chart,f=p.options.navigation,m=p.chartWidth,g=p.chartHeight,y="cache-"+e,v=Math.max(o,i),b=p[y];b||(d.contextMenuEl=p[y]=b=M("div",{className:e},{position:"absolute",zIndex:1e3,padding:v+"px",pointerEvents:"auto",...p.renderer.style},(null==(l=p.scrollablePlotArea)?void 0:l.fixedDiv)||p.container),u=M("ul",{className:"highcharts-menu"},p.styledMode?{}:{listStyle:"none",margin:0,padding:0},b),p.styledMode||O(u,A({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},(null==f?void 0:f.menuStyle)||{})),b.hideMenu=function(){O(b,{display:"none"}),a&&a.setState(0),p.exporting&&(p.exporting.openMenu=!1),O(p.renderTo,{overflow:"hidden"}),O(p.container,{overflow:"hidden"}),L(b.hideTimer),I(p,"exportMenuHidden")},null==(s=d.events)||s.push(P(b,"mouseleave",function(){b.hideTimer=re.setTimeout(b.hideMenu,500)}),P(b,"mouseenter",function(){L(b.hideTimer)}),P(Q,"mouseup",function(t){var n;(null==(n=p.pointer)?void 0:n.inClass(t.target,e))||b.hideMenu()}),P(b,"click",function(){var e;(null==(e=p.exporting)?void 0:e.openMenu)&&b.hideMenu()})),t.forEach(function(e){var t;if("string"==typeof e&&(null==(t=d.options.menuItemDefinitions)?void 0:t[e])&&(e=d.options.menuItemDefinitions[e]),D(e,!0)){let t;e.separator?t=M("hr",void 0,void 0,u):("viewData"===e.textKey&&d.isDataTableVisible&&(e.textKey="hideData"),t=M("li",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),b.hideMenu(),"string"!=typeof e&&e.onclick&&e.onclick.apply(p,arguments)}},void 0,u),h().setElementHTML(t,e.text||p.options.lang[e.textKey]),p.styledMode||(t.onmouseover=function(){O(this,(null==f?void 0:f.menuItemHoverStyle)||{})},t.onmouseout=function(){O(this,(null==f?void 0:f.menuItemStyle)||{})},O(t,A({cursor:"pointer"},(null==f?void 0:f.menuItemStyle)||{})))),d.divElements.push(t)}}),d.divElements.push(u,b),d.menuHeight=b.offsetHeight,d.menuWidth=b.offsetWidth);let x={display:"block"};n+(d.menuWidth||0)>m?x.right=m-n-o-v+"px":x.left=n-v+"px",r+i+(d.menuHeight||0)>g&&"top"!==(null==(c=a.alignOptions)?void 0:c.verticalAlign)?x.bottom=g-r-v+"px":x.top=r+i-v+"px",O(b,x),O(p.renderTo,{overflow:""}),O(p.container,{overflow:""}),p.exporting&&(p.exporting.openMenu=!0),I(p,"exportMenuShown")}destroy(e){let t,n=e?e.target:this.chart,{divElements:r,events:o,svgElements:i}=this;i.forEach((e,r)=>{e&&(e.onclick=e.ontouchstart=null,n[t="cache-"+e.menuClassName]&&delete n[t],i[r]=e.destroy())}),i.length=0,this.group&&(this.group.destroy(),delete this.group),r.forEach(function(e,t){e&&(L(e.hideTimer),W(e,"mouseleave"),r[t]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,N(e))}),r.length=0,o&&(o.forEach(function(e){e()}),o.length=0)}async downloadSVG(e,t){let n,r={svg:e,exportingOptions:t,exporting:this};if(I(ie.prototype,"downloadSVG",r),r.defaultPrevented)return;let{type:o,filename:i,scale:a,libURL:l}=ie.prepareImageOptions(t);if("application/pdf"===o)throw Error("Offline exporting logic for PDF type is not found.");if("image/svg+xml"===o){if(void 0!==re.MSBlobBuilder){let t=new re.MSBlobBuilder;t.append(e),n=t.getBlob("image/svg+xml")}else n=ie.svgToDataURL(e);C(n,i)}else{n=ie.svgToDataURL(e);try{ie.objectURLRevoke=!0,C(await ie.imageToDataURL(n,a,o),i)}catch(t){if("No canvas found!"===t.message)throw t;if(e.length>1e8)throw Error("Input too long");let n=Q.createElement("canvas"),r=n.getContext("2d"),u=e.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),d=e.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(r&&u&&d){let t=u[1]*a,h=d[1]*a;var s;n.width=t,n.height=h,re.canvg||(ie.objectURLRevoke=!0,await(s=l+"canvg.js",new Promise((e,t)=>{let n=x.getElementsByTagName("head")[0],r=x.createElement("script");r.type="text/javascript",r.src=s,r.onload=()=>{e()},r.onerror=()=>{let e=`Error loading script ${s}`;(0,c.error)(e),t(Error(e))},n.appendChild(r)}))),re.canvg.Canvg.fromString(r,e).start(),C(re.navigator.msSaveOrOpenBlob?n.msToBlob():n.toDataURL(o),i)}}finally{if(ie.objectURLRevoke)try{oe.revokeObjectURL(n)}catch{}}}}async exportChart(e,t){if((e=j(this.options,e)).local)await this.localExport(e,t||{});else{let n=await this.getSVGForExport(e,t);e.url&&await G.post(e.url,{filename:e.filename?e.filename.replace(/\//g,"-"):this.getFilename(),type:e.type,width:e.width,scale:e.scale,svg:n},e.fetchOptions)}}async fallbackToServer(e,t){!1===e.fallbackToExportServer?e.error?e.error(e,t):(0,c.error)(28,!0):"application/pdf"===e.type&&(e.local=!1,await this.exportChart(e))}getChartHTML(e){let t=this.chart;return e&&this.inlineStyles(),this.resolveCSSVariables(),t.container.querySelectorAll("canvas").forEach(function(e){let n=e.toDataURL("image/png"),r=e.parentNode,o=t.renderer.image(n,0,0,e.width,e.height);O(o.element,{width:e.style.width,height:e.style.height}),r.parentNode.insertBefore(o.element,r),r.remove()}),t.container.innerHTML}getFilename(){var e;let t=null==(e=this.chart.userOptions.title)?void 0:e.text,n=this.options.filename;return n?n.replace(/\//g,"-"):("string"==typeof t&&(n=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!n||n.length<5)&&(n="chart"),n)}getSVG(e,t){var n,r;let o,i,a=this.chart,l=j(a.options,e);l.plotOptions=j(a.userOptions.plotOptions,null==e?void 0:e.plotOptions),l.time=j(a.userOptions.time,null==e?void 0:e.time);let s=M("div",void 0,{position:"absolute",top:"-9999em",width:a.chartWidth+"px",height:a.chartHeight+"px"},Q.body),u=a.renderTo.style.width,d=a.renderTo.style.height,h=(null==(n=l.exporting)?void 0:n.sourceWidth)||l.chart.width||/px$/.test(u)&&parseInt(u,10)||(l.isGantt?800:600),p=(null==(r=l.exporting)?void 0:r.sourceHeight)||l.chart.height||/px$/.test(d)&&parseInt(d,10)||400;A(l.chart,{animation:!1,renderTo:s,forExport:!0,renderer:"SVGRenderer",width:h,height:p}),l.exporting&&(l.exporting.enabled=!1),delete l.data,l.series=[],a.series.forEach(function(e){var t;(i=j(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible})).isInternal||null==(t=null==l?void 0:l.series)||t.push(i)});let f={};a.axes.forEach(function(e){e.userOptions.internalKey||(e.userOptions.internalKey=(0,c.uniqueKey)()),l&&!e.options.isInternal&&(f[e.coll]||(f[e.coll]=!0,l[e.coll]=[]),l[e.coll].push(j(e.userOptions,{visible:e.visible,type:e.type,uniqueNames:e.uniqueNames})))}),l.colorAxis=a.userOptions.colorAxis;let m=t=>{var n;e&&["xAxis","yAxis","series"].forEach(function(n){e[n]&&t.update({[n]:e[n]})}),a.axes.forEach(function(n){let r=R(t.axes,e=>e.options.internalKey===n.userOptions.internalKey);if(r){var o;let t=n.getExtremes(),i=(z(o=(null==e?void 0:e[n.coll])||{})?o:[o])[0],a="min"in i?i.min:t.userMin,l="max"in i?i.max:t.userMax;(void 0!==a&&a!==r.min||void 0!==l&&l!==r.max)&&r.setExtremes(a??void 0,l??void 0,!0,!1)}});let r=t.exporting;return(null==r?void 0:r.options.applyStyleSheets)&&this.applyShadowDOMStyles(t),o=(null==r?void 0:r.getChartHTML(a.styledMode||(null==(n=null==l?void 0:l.exporting)?void 0:n.applyStyleSheets)))||"",I(a,"getSVG",{chartCopy:t}),o=ie.sanitizeSVG(o,l),l=void 0,t.destroy(),N(s),o};return t?new Promise(e=>new a.constructor(l||{},function(t){var n;null==(n=a.callback)||n.call(this,t),e(m(this))})):m(new a.constructor(l,a.callback))}applyShadowDOMStyles(e){let t,n=this.chart,r=[],o=n.container;for(;o&&(!(t=o.getRootNode())||"object"!=typeof t.host);)o=o.parentNode,t=null;null==t||t.querySelectorAll("style").forEach(t=>{let n=t.cloneNode(!0);e.container.appendChild(n),r.push(n)}),P(n,"getSVG",()=>{r.forEach(e=>{e.remove()})})}async getSVGForExport(e,t){let n=this.options;return await this.getSVG(j({chart:{borderRadius:0}},n.chartOptions,t,{exporting:{sourceWidth:(null==e?void 0:e.sourceWidth)||n.sourceWidth,sourceHeight:(null==e?void 0:e.sourceHeight)||n.sourceHeight}}),!0)}inlineStyles(){var e;let t,n=ie.inlineDenylist,r=ie.inlineAllowlist,o={},i=M("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},Q.body),a=null==(e=i.contentWindow)?void 0:e.document;a&&a.body.appendChild(a.createElementNS(ne,"svg")),function e(i){let l,s,c,u,d,h,p={};if(a&&1===i.nodeType&&-1===ie.unstyledElements.indexOf(i.nodeName)){if(l=re.getComputedStyle(i,null),s="svg"===i.nodeName?{}:re.getComputedStyle(i.parentNode,null),!o[i.nodeName]){t=a.getElementsByTagName("svg")[0],c=a.createElementNS(i.namespaceURI,i.nodeName),t.appendChild(c);let e=re.getComputedStyle(c,null),n={};for(let t in e)t.length<1e3&&"string"==typeof e[t]&&!/^\d+$/.test(t)&&(n[t]=e[t]);o[i.nodeName]=n,"text"===i.nodeName&&delete o.text.fill,t.removeChild(c)}for(let e in l)(J||ee||te||Object.hasOwnProperty.call(l,e))&&function(e,t){if(u=d=!1,r.length){for(h=r.length;h--&&!d;)d=r[h].test(t);u=!d}for("transform"===t&&"none"===e&&(u=!0),h=n.length;h--&&!u;){if(t.length>1e3)throw Error("Input too long");u=n[h].test(t)||"function"==typeof e}!u&&(s[t]!==e||"svg"===i.nodeName)&&o[i.nodeName][t]!==e&&(ie.inlineToAttributes&&-1===ie.inlineToAttributes.indexOf(t)?p[t]=e:e&&i.setAttribute(ie.hyphenate(t),e))}(l[e],e);if(O(i,p),"svg"===i.nodeName&&i.setAttribute("stroke-width","1px"),"text"===i.nodeName)return;[].forEach.call(i.children||i.childNodes,e)}}(this.chart.container.querySelector("svg")),t.parentNode.removeChild(t),i.parentNode.removeChild(i)}async localExport(e,t){var n,r,o;let i,a,l,s=this.chart,c=null;if(ee&&s.styledMode&&!ie.inlineAllowlist.length&&ie.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),ee&&("application/pdf"===e.type||s.container.getElementsByTagName("image").length&&"image/svg+xml"!==e.type)||"application/pdf"===e.type&&[].some.call(s.container.getElementsByTagName("image"),function(e){let t=e.getAttribute("href");return""!==t&&"string"==typeof t&&0!==t.indexOf("data:")}))return void await this.fallbackToServer(e,Error("Image type not supported for this chart/browser."));let u=P(s,"getSVG",e=>{a=e.chartCopy.options,l=(i=e.chartCopy.container.cloneNode(!0))&&i.getElementsByTagName("image")||[]});try{let s;for(let n of(await this.getSVGForExport(e,t),l?Array.from(l):[]))if(c=n.getAttributeNS("http://www.w3.org/1999/xlink","href")){ie.objectURLRevoke=!1;let t=await ie.imageToDataURL(c,(null==e?void 0:e.scale)||1,(null==e?void 0:e.type)||"image/png");n.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}else n.parentNode.removeChild(n);let u=null==i?void 0:i.querySelector("svg");u&&!(null==(o=null==(r=null==(n=e.chartOptions)?void 0:n.chart)?void 0:r.style)?void 0:o.fontFamily)&&await ie.inlineFonts(u);let d=(s=null==i?void 0:i.innerHTML,ie.sanitizeSVG(s||"",a));if(d.indexOf("<foreignObject")>-1&&"image/svg+xml"!==e.type&&(ee||"application/pdf"===e.type))throw Error("Image type not supported for charts with embedded HTML");return await this.downloadSVG(d,A({filename:this.getFilename()},e)),d}catch(t){await this.fallbackToServer(e,t)}finally{u()}}moveContainers(e){let t=this.chart,{scrollablePlotArea:n}=t;(n?[n.fixedDiv,n.scrollingContainer]:[t.container]).forEach(function(t){e.appendChild(t)})}print(){let e=this.chart;this.isPrinting||(ie.printingChart=e,te||this.beforePrint(),setTimeout(()=>{re.focus(),re.print(),te||setTimeout(()=>{var t;null==(t=e.exporting)||t.afterPrint()},1e3)},1))}render(){let e=this,{chart:t,options:n}=e,r=(null==e?void 0:e.isDirty)||!(null==e?void 0:e.svgElements.length);e.buttonOffset=0,e.isDirty&&e.destroy(),r&&!1!==n.enabled&&(e.events=[],e.group||(e.group=t.renderer.g("exporting-group").attr({zIndex:3}).add()),_(null==n?void 0:n.buttons,function(t){e.addButton(t)}),e.isDirty=!1)}resolveCSSVariables(){Array.from(this.chart.container.querySelectorAll("*")).forEach(e=>{["color","fill","stop-color","stroke"].forEach(t=>{var n;let r=e.getAttribute(t);(null==r?void 0:r.includes("var("))&&e.setAttribute(t,getComputedStyle(e).getPropertyValue(t));let o=null==(n=e.style)?void 0:n[t];(null==o?void 0:o.includes("var("))&&(e.style[t]=getComputedStyle(e).getPropertyValue(t))})})}update(e,t){this.isDirty=!0,j(!0,this.options,e),F(t,!0)&&this.chart.redraw()}}ie.inlineAllowlist=[],ie.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],ie.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],ie.loadEventDeferDelay=150*!!ee,ie.unstyledElements=["clipPath","defs","desc"],function(e){function t(e){let t=e.exporting;t&&(t.render(),P(e,"redraw",function(){var e;null==(e=this.exporting)||e.render()}),P(e,"destroy",function(){var e;null==(e=this.exporting)||e.destroy()}))}function n(){let t=this;t.options.exporting&&(t.exporting=new e(t,t.options.exporting),y.compose(t).navigation.addUpdate((e,n)=>{t.exporting&&(t.exporting.isDirty=!0,j(!0,t.options.navigation,e),F(n,!0)&&t.redraw())}))}function r({alignTo:e,key:t,textPxLength:n}){var r,o,i;let a=this.options.exporting,{align:l,buttonSpacing:s=0,verticalAlign:c,width:u=0}=j(null==(r=this.options.navigation)?void 0:r.buttonOptions,null==(o=null==a?void 0:a.buttons)?void 0:o.contextButton),d=e.width-n,h=u+s;((null==a?void 0:a.enabled)??1)&&"title"===t&&"right"===l&&"top"===c&&d<2*h&&(d<h?e.width-=h:"left"!==(null==(i=this.title)?void 0:i.alignValue)&&(e.x-=h-d/2))}e.compose=function(o,i){E.compose(i),U.compose(o),H(Z,"Exporting")&&(A(f().prototype,{exportChart:async function(e,t){var n;await(null==(n=this.exporting)?void 0:n.exportChart(e,t))},getChartHTML:function(e){var t;return null==(t=this.exporting)?void 0:t.getChartHTML(e)},getFilename:function(){var e;return null==(e=this.exporting)?void 0:e.getFilename()},getSVG:function(e){var t;return null==(t=this.exporting)?void 0:t.getSVG(e,!1)},print:function(){var e;return null==(e=this.exporting)?void 0:e.print()}}),o.prototype.callbacks.push(t),P(o,"afterInit",n),P(o,"layOutTitle",r),te&&re.matchMedia("print").addListener(function(t){var n,r;e.printingChart&&(t.matches?null==(n=e.printingChart.exporting)||n.beforePrint():null==(r=e.printingChart.exporting)||r.afterPrint())}),Y(S))}}(ie||(ie={}));let ae=u();ae.Exporting=ie,ae.HttpUtilities=ae.HttpUtilities||G,ae.ajax=ae.HttpUtilities.ajax,ae.getJSON=ae.HttpUtilities.getJSON,ae.post=ae.HttpUtilities.post,ie.compose(ae.Chart,ae.Renderer);let le=u();return s.default})(),e.exports=n(t._Highcharts,t._Highcharts.AST,t._Highcharts.Chart)}(tH));var rH,oH={exports:{}};var iH=(rH||(rH=1,function(e){var t;"undefined"!=typeof self&&self,e.exports=(t=m(),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){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 o(e){return s(e)||l(e)||a(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"HighchartsReact",function(){return f});var d=n(1),h=n.n(d),p="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,f=Object(d.memo)(Object(d.forwardRef)(function(e,t){var n=Object(d.useRef)(),i=Object(d.useRef)(),a=Object(d.useRef)(e.constructorType),l=Object(d.useRef)(e.highcharts);return p(function(){function t(){var t=e.highcharts||"object"===("undefined"==typeof window?"undefined":u(window))&&window.Highcharts,r=e.constructorType||"chart";t?t[r]?e.options?i.current=t[r](n.current,e.options,e.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(i.current){if(!1!==e.allowChartUpdate)if(e.constructorType!==a.current||e.highcharts!==l.current)a.current=e.constructorType,l.current=e.highcharts,t();else if(!e.immutable&&i.current){var r;(r=i.current).update.apply(r,[e.options].concat(o(e.updateArgs||[!0,!0])))}else t()}else t()},[e.options,e.allowChartUpdate,e.updateArgs,e.containerProps,e.highcharts,e.constructorType]),p(function(){return function(){i.current&&(i.current.destroy(),i.current=null)}},[]),Object(d.useImperativeHandle)(t,function(){return{get chart(){return i.current},container:n}},[]),h.a.createElement("div",r({},e.containerProps,{ref:n}))}));t.default=f},function(e,n){e.exports=t}]))}(oH)),oH.exports);const aH=c(iH),lH=["kingdom","phylum","class","order","family","genus","species"],sH=e=>e?`Not assigned ${e}`:"Not assigned",cH=e=>{if(!e||0===e.length)return[];const t=[...e].sort((e,t)=>(t.species||0)-(e.species||0));return t.length<=100?t:t.slice(0,100)},uH=({taxon:e,datasetKey:t,rank:n=[],dataset:r,level:o=1,showLevelSwitch:i=!1,darkMode:a})=>{const l=(e=>{const t=gA()[e];return t&&t.onNavigate?t.onNavigate:fA})("taxon"),[s,c]=g.useState(null),[u,d]=g.useState(!1),[h,p]=g.useState(!1),[f,m]=g.useState(o);g.useEffect(()=>{m(o)},[o]),g.useEffect(()=>{(null==e?void 0:e.id)&&t&&y()},[e,t,f]);const y=async()=>{d(!0);try{const r=await(async()=>{const n=await UN(`${uA.dataApi}dataset/${t}/nameusage/search?TAXON_ID=${encodeURIComponent(e.id)}&facet=rank&status=accepted&status=provisionally%20accepted&limit=0`);return zM.keyBy(zM.get(n,"data.facets.rank",[]),"value")})(),o=lH;let i,a=o.indexOf(zM.get(e,"name.rank"));if(-1===a){let t=n.indexOf(zM.get(e,"name.rank"))+1;for(;-1===a&&t<n.length-1;){const e=o.indexOf(n[t]);e>-1&&(a=e-1),t++}}let l=a+1;for(;!i&&l<o.length;){const e=zM.get(o,`[${l}]`);e&&zM.get(r,`${e}.count`,0)>0?i=e:l++}if(!i)return p(!0),void d(!1);const s=(await UN(`${uA.dataApi}dataset/${t}/taxon/${e.id}/breakdown?level=${f}`)).data||[],c=zM.get(r,"species.count",0);d(!1),v(s,c)}catch(e){d(!1)}},v=(t,n)=>{const o=r.doi?"https://doi.org/"+r.doi:null,i=JF.getOptions().colors,s=("boolean"==typeof a?a:"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"#1f1f1f":"#ffffff",u={click:e=>{e.point._id&&l(e.point._id)}},d=((e,t)=>{const n=cH(e||[]),r=n.reduce((e,t)=>e+(t.species||0),0);return r>=t?n:[...n,{name:sH(zM.get(n,"[0].rank","")),species:t-r,children:[]}]})(t,n).map((e,t)=>({name:e.name,y:e.species,_id:e.id,color:i[t%i.length],_kids:e.children})),h=[],p=f>=2&&d.some(e=>e._kids&&e._kids.length>0);p&&d.forEach(e=>{const t=cH(e._kids||[]),n=t.reduce((e,t)=>e+(t.species||0),0);t.forEach((n,r)=>{const o=.4*(t.length>1?r/(t.length-1):0)-.1;h.push({name:n.name,y:n.species,_id:n.id,color:JF.color(e.color).brighten(o).get()})}),n<e.y&&h.push({name:sH(zM.get(t,"[0].rank","")),y:e.y-n,color:s,borderColor:s,borderWidth:0,dataLabels:{enabled:!1}})});const m=n||d.reduce((e,t)=>e+t.y,0),g=p?{formatter:function(){return this.y>m/10?this.point.name:null},distance:-30,style:{color:"contrast",textOutline:"1px contrast",fontWeight:"bold"}}:{formatter:function(){return this.y>1?"<b>"+this.point.name+":</b> "+this.y.toLocaleString("en-GB"):null}},y=[{name:"Species",data:(v=d,v.map(({_kids:e,...t})=>t)),size:p?"60%":"85%",dataLabels:g,point:{events:u}}];var v;p&&y.push({name:"Species",data:h,size:"85%",innerSize:"60%",dataLabels:{formatter:function(){return this.y>1?"<b>"+this.point.name+":</b> "+this.y.toLocaleString("en-GB"):null}},point:{events:u}}),c({chart:{type:"pie"},credits:{text:`${e.name.scientificName} in ${r.title}${r.version?" ("+r.version+")":""}. ${(r.doi?"DOI:"+r.doi:null)||r.url||""}`,href:o||r.url||""},title:{text:""},plotOptions:{pie:{shadow:!1,center:["50%","50%"]}},tooltip:{},series:y,responsive:{rules:[{condition:{maxWidth:400},chartOptions:{series:p?[{},{dataLabels:{enabled:!1}}]:[{}]}}]},exporting:{chartOptions:{plotOptions:{series:{dataLabels:{enabled:!0}}}},fallbackToExportServer:!1}})};if(h)return null;const b=i?F.jsx(QS,{size:"small",checked:2===f,onChange:e=>m(e?2:1),checkedChildren:"lvl2",unCheckedChildren:"lvl1",style:{position:"absolute",top:11,right:44,zIndex:2,background:2===f?"#8c8c8c":"#bfbfbf"}}):null;return F.jsxs("div",{style:{position:"relative"},children:[b,u||!s?F.jsxs(zw,{style:{padding:"48px"},children:[F.jsx(Lw,{flex:"auto"}),F.jsx(Lw,{children:F.jsx(yS,{size:"large"})}),F.jsx(Lw,{flex:"auto"})]}):F.jsx(aH,{highcharts:JF,options:s})]})},dH=({info:e,datasetKey:t})=>{var n,r;const[o,i]=g.useState({});g.useEffect(()=>{var t;(null==(t=null==e?void 0:e.source)?void 0:t.secondarySources)&&l()},[e]);const a=new pA(e=>bA(e,t)),l=async()=>{var t;const n={};try{await Promise.all(Object.keys((null==(t=null==e?void 0:e.source)?void 0:t.secondarySources)||{}).map(t=>{var r;return a.load(null==(r=null==e?void 0:e.source)?void 0:r.secondarySources[t].datasetKey).then(e=>{n[e.key]=e})}))}catch(e){console.log(e)}i(n)};return(null==(n=null==e?void 0:e.source)?void 0:n.secondarySources)?Object.keys((null==(r=null==e?void 0:e.source)?void 0:r.secondarySources)||{}).map(t=>{var n,r,i,a,l,s,c,u,d,h,p,f,m;return F.jsxs(y.Fragment,{children:[zM.startCase(t),":"," ",F.jsx("a",{href:`https://www.checklistbank.org/dataset/${null==(i=null==(r=null==(n=null==e?void 0:e.source)?void 0:n.secondarySources)?void 0:r[t])?void 0:i.datasetKey}/taxon/${encodeURIComponent(null==(s=null==(l=null==(a=null==e?void 0:e.source)?void 0:a.secondarySources)?void 0:l[t])?void 0:s.id)}`,children:(null==(h=o[null==(d=null==(u=null==(c=null==e?void 0:e.source)?void 0:c.secondarySources)?void 0:u[t])?void 0:d.datasetKey])?void 0:h.title)||(null==(m=null==(f=null==(p=null==e?void 0:e.source)?void 0:p.secondarySources)?void 0:f[t])?void 0:m.datasetKey)})]},t)}):null},hH=UN.create({transformRequest:(e,t)=>(delete t.common.Authorization,t["Content-Type"]="application/json",JSON.stringify(e))});TS.config({getContainer:()=>document.getElementsByClassName("catalogue-of-life")[0]});const pH=e=>{var t,n;return(null==(n=null==(t=null==e?void 0:e.response)?void 0:t.data)?void 0:n.message)||(null==e?void 0:e.message)||"An error occurred"},fH=({error:e})=>F.jsx("div",{style:{margin:"6px"},children:F.jsx("span",{children:pH(e)})}),mH=({datasetKey:e,taxonKey:t})=>{const[n]=ok.useForm(),[r,o]=g.useState(!1),[i,a]=g.useState(!1),[l,s]=g.useState(null),[c,u]=g.useState(null),d=n=>{hH.post(`${uA.dataApi}dataset/${e}/nameusage/${t}/feedback`,n).then(e=>{console.log(e),o(!1),u(e.data)}).catch(e=>{o(!1),s(e)})};return F.jsxs(F.Fragment,{children:[F.jsxs(OS,{getContainer:".catalogue-of-life",title:"Feedback",open:i,destroyOnClose:!0,onOk:()=>{if(c)return a(!1),void u(null);o(!0),n.validateFields().then(e=>(n.resetFields(),d(e)))},onCancel:()=>a(!1),confirmLoading:r,children:[l&&F.jsx(ml,{style:{marginBottom:"10px"},message:F.jsx(fH,{error:l}),type:"error",onClose:()=>s(null),closable:!0}),c&&F.jsxs("p",{children:["Thank you, your feedback was saved. You can follow for progress and further discussion ",F.jsx("a",{target:"_blank",href:c,children:"here."})]}),!c&&F.jsxs(F.Fragment,{children:[" ",F.jsxs("p",{children:["We will create a ",F.jsx("a",{href:"https://github.com/CatalogueofLife/data/issues",target:"_blank",children:"github issue"})," which you can monitor or use to further discuss with us."]}),F.jsx(yS,{spinning:r,children:F.jsxs(ok,{labelCol:{span:6},wrapperCol:{span:18},form:n,onFinish:d,onFinishFailed:({errorFields:e})=>{n.scrollToField(e[0].name)},children:[F.jsx(ok.Item,{name:"message",label:"Message",rules:[{required:!0}],children:F.jsx(Ek.TextArea,{rows:8})}),F.jsx(ok.Item,{name:"email",label:"Email (optional)",rules:[{type:"email"}],children:F.jsx(Ek,{type:"email"})})]})})]})]}),F.jsxs(zw,{children:[F.jsx(Lw,{flex:"auto"}),F.jsx(Lw,{}),F.jsxs(mh,{href:`https://www.checklistbank.org/dataset/${e}/download?taxonID=${t}`,style:{marginTop:"12px",marginRight:"4px"},size:"small",children:["Download ",F.jsx(OM,{})]}),F.jsxs(mh,{style:{marginTop:"12px"},size:"small",onClick:()=>a(!0),children:["Feedback ",F.jsx(tI,{})]})]})]})};cx.extend(VF);class gH extends y.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{const{taxonKey:e}=this.props;this.getCatalogue(),e&&(this.getTaxon(e),this.getInfo(e),this.getRank(e),this.getIncludes(e),this.getNomStatus(e))}),o(this,"getTaxon",e=>{const{datasetKey:t,pageTitleTemplate:n}=this.props;this.setState({loading:!0}),UN(`${uA.dataApi}dataset/${t}/taxon/${e}`).then(e=>{let r=[e];return n&&zM.get(e,"data.label")&&(document.title=n.replace("__taxon__",e.data.label)),zM.get(e,"data.name.publishedInId")&&r.push(UN(`${uA.dataApi}dataset/${t}/reference/${zM.get(e,"data.name.publishedInId")}`).then(t=>(e.data.name.publishedIn=t.data,e))),zM.get(e,"data.name")&&r.push(UN(`${uA.dataApi}dataset/${t}/name/${zM.get(e,"data.name.id")}/relations`).then(n=>(e.data.name.relations=n.data,Promise.allSettled(n.data.map(e=>UN(`${uA.dataApi}dataset/${t}/name/${e.relatedNameId}`).then(t=>{e.relatedName=t.data}))).then(e=>e.filter(e=>e.status="fulfilled").map(e=>e.value))))),zM.get(e,"data.sectorKey")&&UN(`${uA.dataApi}dataset/${t}/sector/${zM.get(e,"data.sectorKey")}`).then(e=>{UN(`${uA.dataApi}dataset/${t}/logo/source/${zM.get(e,"data.subjectDatasetKey")}`).then(()=>{this.setState({logoUrl:`${uA.dataApi}dataset/${t}/logo/source/${zM.get(e,"data.subjectDatasetKey")}?size=MEDIUM`})}).catch(()=>{}),UN(`${uA.dataApi}dataset/${t}/source/${zM.get(e,"data.subjectDatasetKey")}`).then(e=>{this.setState({sourceDataset:e.data})})}),Promise.allSettled(r).then(e=>e.filter(e=>e.status="fulfilled").map(e=>e.value))}).then(e=>{this.setState({taxonLoading:!1,taxon:e[0].data,taxonError:null})}).catch(t=>{404===zM.get(t,"response.status")?this.fetchSynonymAndRedirect(e):this.setState({taxonLoading:!1,taxonError:t,taxon:null})})}),o(this,"getCatalogue",()=>{const{datasetKey:e}=this.props;UN(`${uA.dataApi}dataset/${e}`).then(e=>{this.setState({catalogue:e.data})}).catch(e=>{})}),o(this,"datasetLoader",new pA(e=>bA(e,this.props.datasetKey))),o(this,"sectorLoader",new pA(e=>AA(e,this.props.datasetKey))),o(this,"decorateWithSectorsAndDataset",async e=>{const{datasetKey:t}=this.props,n={};for(const r of["misapplied","heterotypic","homotypic"].filter(t=>!!e[t]))await Promise.allSettled(e[r].filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey,t).then(t=>(e.sector=t,this.datasetLoader.load(t.subjectDatasetKey).then(t=>{e.sourceDatasetKey=t.key,n[t.key]=t})))));if(null==e?void 0:e.heterotypicGroups)for(const r of null==e?void 0:e.heterotypicGroups)await Promise.allSettled(r.filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey,t).then(t=>(e.sector=t,this.datasetLoader.load(t.subjectDatasetKey).then(t=>{e.sourceDatasetKey=t.key,n[t.key]=t})))));return Object.keys(n).length>0?n:null}),o(this,"getInfo",async e=>{var t,n,r,o,i,a;const{datasetKey:l}=this.props;try{const s=await UN(`${uA.dataApi}dataset/${l}/taxon/${e}/info`);let c={};zM.get(s,"data.references")&&(Object.keys(s.data.references).forEach((e,t)=>{c[e]=(t+1).toString()}),await Promise.allSettled(Object.keys(s.data.references).map(e=>s.data.references[e]).filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey).then(t=>(e.sector=t,this.datasetLoader.load(t.subjectDatasetKey).then(t=>{e.sourceDataset=t})))))),(null==(t=null==s?void 0:s.data)?void 0:t.vernacularNames)&&await Promise.allSettled(s.data.vernacularNames.filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey).then(t=>{e.sector=t,e.sourceDatasetKey=t.subjectDatasetKey}))),(null==(n=null==s?void 0:s.data)?void 0:n.distributions)&&await Promise.allSettled(s.data.distributions.filter(e=>!!e.sectorKey).map(e=>this.sectorLoader.load(e.sectorKey).then(t=>{e.sector=t,e.sourceDatasetKey=t.subjectDatasetKey})));let u=zM.get(s,"data.synonyms")?await this.decorateWithSectorsAndDataset(zM.get(s,"data.synonyms")):null;(null==(r=null==s?void 0:s.data)?void 0:r.nameRelations)&&(null==(o=null==s?void 0:s.data)?void 0:o.names)&&(null==(i=null==s?void 0:s.data)||i.nameRelations.forEach(e=>{var t,n,r,o;e.relatedName=null==(n=null==(t=null==s?void 0:s.data)?void 0:t.names)?void 0:n[null==e?void 0:e.relatedNameId],e.name=null==(o=null==(r=null==s?void 0:s.data)?void 0:r.names)?void 0:o[null==e?void 0:e.nameId]})),this.setState({infoLoading:!1,info:s.data,classification:null==(a=null==s?void 0:s.data)?void 0:a.classification,infoError:null,referenceIndexMap:c,sourceDatasetKeyMap:u})}catch(t){404===zM.get(t,"response.status")?this.fetchSynonymAndRedirect(e):this.setState({infoLoading:!1,infoError:t,info:null})}}),o(this,"getRank",()=>{UN(`${uA.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),o(this,"getNomStatus",()=>{UN(`${uA.dataApi}vocab/nomstatus`).then(e=>this.setState({nomStatus:e.data.reduce((e,t)=>(e[t.name]=t,e),{})}))}),o(this,"getIncludes",e=>{const{datasetKey:t}=this.props;UN(`${uA.dataApi}dataset/${t}/nameusage/search?TAXON_ID=${e}&facet=rank&status=accepted&status=provisionally%20accepted&limit=0`).then(e=>{this.setState({includesLoading:!1,includes:zM.get(e,"data.facets.rank")||[]})}).catch(e=>{this.setState({includesLoading:!1,includes:[]})})}),o(this,"fetchSynonymAndRedirect",e=>{var t,n;const{datasetKey:r}=this.props,o=null==(n=null==(t=this.context)?void 0:t.taxon)?void 0:n.onNavigate;UN(`${uA.dataApi}dataset/${r}/synonym/${e}`).then(e=>{const t=zM.get(e,"data.accepted.id");t&&o&&o(t)}).catch(e=>{404===zM.get(e,"response.status")&&this.setState({status:404})})}),this.props.auth&&(UN.defaults.headers.common.Authorization=`Basic ${$A(this.props.auth)}`),this.state={taxon:null,info:null,taxonLoading:!0,datasetLoading:!0,infoLoading:!0,infoError:null,taxonError:null,verbatimLoading:!0,verbatimError:null,verbatim:null,logoUrl:null,sourceDataset:null,includes:[],rank:[],nomStatus:null,catalogue:null,referenceIndexMap:{},sourceDatasetKeyMap:null}}componentDidUpdate(e){if(e.taxonKey!==this.props.taxonKey&&this.props.taxonKey){const e=this.props.taxonKey;this.getTaxon(e),this.getInfo(e),this.getRank(e),this.getIncludes(e),this.getNomStatus(e)}}render(){var e,t,n,r,o,i,a,l,s,c,u,d,h,p,f,m,g,v,b,x,w,C,k,S,E,$,T,P,M;const{datasetKey:O,showDistributionMap:N,gbifChecklistKey:A}=this.props,{taxon:I,info:R,classification:L,sourceDataset:B,includes:z,rank:D,nomStatus:j,taxonError:_,synonymsError:H,classificationError:W,infoError:K,status:V,catalogue:U,referenceIndexMap:q}=this.state,G=D?D.indexOf("genus"):-1,X=zM.get(R,"synonyms.homotypic",[]);zM.get(R,"synonyms.heterotypic",[]);return zM.get(R,"synonyms.misapplied",[]),X.map(e=>({...e,__homotypic:!0})),404===V?F.jsx(GF,{}):F.jsx(y.Fragment,{children:F.jsxs("div",{className:"catalogue-of-life",style:{padding:24,minHeight:280,margin:"16px 0",fontSize:"12px"},children:[_&&F.jsx(ml,{message:F.jsx(NA,{error:_}),type:"error"}),I&&F.jsxs(zw,{align:"bottom",children:[F.jsx(Lw,{flex:"auto",children:F.jsxs("div",{style:{marginLeft:(null==(e=null==R?void 0:R.usage)?void 0:e.merged)?"-22px":0},children:[(null==(t=null==R?void 0:R.usage)?void 0:t.merged)&&F.jsx(PA,{style:{marginBottom:"10px"},createdBy:null==(n=null==R?void 0:R.usage)?void 0:n.createdBy,datasetKey:null==(r=null==R?void 0:R.usage)?void 0:r.datasetKey,verbatimSourceKey:null==(o=null==R?void 0:R.usage)?void 0:o.verbatimSourceKey,sourceDatasetKey:null==(i=null==R?void 0:R.source)?void 0:i.sourceDatasetKey,sourceId:null==(a=null==R?void 0:R.source)?void 0:a.sourceId}),F.jsx("h1",{style:{fontSize:"30px",fontWeight:"400",paddingLeft:"10px",display:"inline",textTransform:"none"},dangerouslySetInnerHTML:{__html:I.labelHtml}})]})}),F.jsxs(Lw,{span:1,children:[F.jsx("a",{href:""}),I.provisional&&F.jsx(wM,{color:"red",children:"Provisional"})]}),B&&F.jsx(Lw,{span:5,style:{textAlign:"right"},children:F.jsx(qF,{auth:this.props.auth,style:{maxWidth:"100%",height:"auto",marginRight:"8px"},datasetKey:O,sourceDatasetKey:B.key})})]}),zM.get(I,"id")&&F.jsxs(E_,{md:5,label:zM.get(this.props,"identifierLabel","Identifier"),children:[zM.get(I,"id")," ",F.jsx("a",{href:`https://www.checklistbank.org/dataset/${O}/taxon/${zM.get(I,"id")}`,children:F.jsx(ZA,{})}),F.jsx(tv,{title:"Download data for this taxon and descendants",getPopupContainer:()=>document.getElementById(`col-download-${zM.get(I,"id")}`)||document.body,children:F.jsx("a",{style:{marginLeft:"5px"},id:`col-download-${zM.get(I,"id")}`,target:"_blank",href:`http://checklistbank.org/dataset/${O}/download?taxonID=${encodeURIComponent(zM.get(I,"id"))}`,children:F.jsx(OM,{})})})]}),zM.get(I,"labelHtml")&&F.jsx(E_,{md:5,label:"Name",children:F.jsx("span",{dangerouslySetInnerHTML:{__html:I.labelHtml}})}),zM.get(I,"name.publishedIn.citation")&&F.jsxs(E_,{md:5,label:"Published in",children:[zM.get(R,"source.secondarySources['published in']")&&F.jsx(PA,{sourceDatasetKey:zM.get(R,"source.secondarySources['published in'].datasetKey"),sourceId:zM.get(R,"source.secondarySources['published in'].id")}),zM.get(I,"name.publishedIn.citation")]}),zM.get(I,"status")&&F.jsxs(E_,{md:5,label:"Checklist status",children:[`${zM.get(I,"status")} ${zM.get(I,"name.rank")}`,(null==(l=null==R?void 0:R.decisions)?void 0:l[null==I?void 0:I.id])&&F.jsxs(F.Fragment,{children:[" with"," ",null==(c=null==(s=null==R?void 0:R.decisions)?void 0:s[null==I?void 0:I.id])?void 0:c.mode," ","decision",F.jsx(iz,{style:{marginLeft:"10px"},decision:null==(u=null==R?void 0:R.decisions)?void 0:u[null==I?void 0:I.id]})]})]}),zM.get(I,"name.nomStatus")&&j&&F.jsx(E_,{md:5,label:"Nomenclatural Status",children:j[zM.get(I,"name.nomStatus")][zM.get(I,"name.code"),"zoological"]}),K&&F.jsx(ml,{message:F.jsx(NA,{error:K}),type:"error"}),zM.get(R,"synonyms")&&F.jsx(E_,{md:5,label:"Synonyms and combinations",children:F.jsx(kj,{primarySource:B,data:zM.get(R,"synonyms"),decisions:zM.get(R,"decisions"),references:zM.get(R,"references"),typeMaterial:zM.get(R,"typeMaterial"),referenceIndexMap:q,style:{marginTop:"-3px"},datasetKey:O})}),zM.get(R,"typeMaterial")&&R.typeMaterial[null==(h=null==(d=null==R?void 0:R.usage)?void 0:d.name)?void 0:h.id]&&F.jsx(E_,{md:5,label:"Type material",children:F.jsx(xj,{data:zM.get(R,"typeMaterial"),nameID:zM.get(I,"name.id")})}),zM.get(R,"nameRelations")&&R.nameRelations.filter(e=>(null==e?void 0:e.usageId)===(null==I?void 0:I.id)).length>0&&F.jsx(T_,{md:5,style:{marginTop:"-3px"},data:R.nameRelations.filter(e=>(null==e?void 0:e.usageId)===(null==I?void 0:I.id))}),zM.get(R,"nameRelations")&&R.nameRelations.filter(e=>(null==e?void 0:e.usageId)!==(null==I?void 0:I.id)).length>0&&F.jsx(T_,{md:5,reverse:!0,style:{marginTop:"-3px"},data:R.nameRelations.filter(e=>(null==e?void 0:e.usageId)!==(null==I?void 0:I.id))}),H&&F.jsx(ml,{message:F.jsx(NA,{error:H}),type:"error"}),W&&F.jsx(ml,{message:F.jsx(NA,{error:W}),type:"error"}),L&&F.jsx(E_,{md:5,label:"Classification",children:F.jsx(C_,{style:{marginTop:"-3px",marginLeft:"-3px"},data:L,taxon:I,datasetKey:O})}),(I&&D.indexOf(zM.get(I,"name.rank"))<G&&D.indexOf(zM.get(I,"name.rank"))>-1||"unranked"===zM.get(I,"name.rank")&&"Biota"===zM.get(I,"name.scientificName"))&&F.jsx(E_,{md:5,label:"Breakdown",children:F.jsx(uH,{taxon:I,datasetKey:O,rank:D,dataset:U,showLevelSwitch:!0})}),z.length>1&&D&&I&&F.jsx(E_,{md:5,label:"Statistics",children:F.jsx(UF,{style:{marginTop:"-3px",marginLeft:"-3px"},data:z,rank:D,taxon:I})}),zM.get(R,"vernacularNames")&&I&&F.jsx(E_,{md:5,label:"Vernacular names",children:F.jsx(Ej,{style:{marginTop:"-3px",marginLeft:"-3px"},data:R.vernacularNames,references:zM.get(R,"references"),datasetKey:I.datasetKey})}),(zM.get(R,"distributions")||N&&A&&I)&&F.jsx(E_,{md:5,label:"Distributions",children:F.jsx(x_,{style:{marginTop:"-3px"},data:(null==R?void 0:R.distributions)||[],datasetKey:O,showDistributionMap:N,focalTaxon:I,rankOrder:D,gbifChecklistKey:A})}),zM.get(I,"environments")&&F.jsx(E_,{md:5,label:"Environment(s)",children:zM.get(I,"environments").join(", ")}),zM.get(I,"remarks")&&F.jsx(E_,{md:5,label:"Additional Data",children:I.remarks}),F.jsx(zw,{children:zM.get(I,"accordingTo")&&F.jsx(Lw,{span:12,children:F.jsxs(E_,{md:10,label:"According to",children:[`${zM.get(I,"accordingTo")}`,zM.get(I,"accordingToDate")&&`, ${cx(zM.get(I,"accordingToDate")).format("LL")}`]})})}),zM.get(I,"scrutinizer")&&F.jsx(Lw,{span:12,children:F.jsx(E_,{md:10,label:"Taxonomic scrutiny",children:`${zM.get(I,"scrutinizer")}${zM.get(I,"scrutinizerDate")?", "+zM.get(I,"scrutinizerDate"):""}`})}),zM.get(B,"title")&&F.jsx(E_,{md:5,label:"Source",children:F.jsxs("div",{style:{display:"inline-block"},children:[(null==(p=null==R?void 0:R.usage)?void 0:p.merged)&&F.jsx(PA,{createdBy:null==(f=null==R?void 0:R.usage)?void 0:f.createdBy,datasetKey:null==(m=null==R?void 0:R.usage)?void 0:m.datasetKey,verbatimSourceKey:null==(g=null==R?void 0:R.usage)?void 0:g.verbatimSourceKey,sourceDatasetKey:null==(v=null==R?void 0:R.source)?void 0:v.sourceDatasetKey,sourceId:null==(b=null==R?void 0:R.source)?void 0:b.sourceId})," ",(null==R?void 0:R.source)&&(null==(x=null==R?void 0:R.source)?void 0:x.sourceId)&&F.jsxs(F.Fragment,{children:[F.jsx("a",{href:`https://www.checklistbank.org/dataset/${null==(w=null==R?void 0:R.source)?void 0:w.sourceDatasetKey}/taxon/${null==(C=null==R?void 0:R.source)?void 0:C.sourceId}`,children:null==(k=null==R?void 0:R.source)?void 0:k.sourceId})," ","in"," "]}),F.jsx(vA,{to:"source",args:zM.get(B,"key"),children:`${zM.get(B,"alias")}: ${zM.get(B,"title")}`}),F.jsx("span",{style:{marginLeft:"10px"},children:zM.get(B,"completeness")&&zM.get(B,"completeness")+"%"}),zM.get(B,"confidence")&&F.jsx(WS,{style:{marginLeft:"10px"},value:zM.get(B,"confidence"),disabled:!0})]})}),zM.get(I,"link")&&F.jsx(E_,{md:5,label:"Link to original resource",children:F.jsx("a",{href:zM.get(I,"link"),children:zM.get(I,"link")})}),(null==(S=null==R?void 0:R.source)?void 0:S.secondarySources)&&F.jsx(E_,{md:5,label:"Secondary Sources",children:F.jsx(dH,{info:R,datasetKey:O})}),zM.get(R,"references")&&F.jsx(E_,{md:5,label:"References",children:F.jsx(FF,{referenceIndexMap:q,primarySourceDatasetKey:null==(E=null==R?void 0:R.source)?void 0:E.sourceDatasetKey,data:zM.get(R,"references"),style:{marginTop:"-3px"}})}),(null==(T=null==($=null==window?void 0:window.location)?void 0:$.hostname)?void 0:T.endsWith("catalogueoflife.org"))&&F.jsx(E_,{md:5,label:"",children:F.jsx(mH,{taxonKey:null==(M=null==(P=null==this?void 0:this.state)?void 0:P.taxon)?void 0:M.id,datasetKey:this.props.datasetKey})})]})})}}o(gH,"contextType",mA);const yH="%[a-f0-9]{2}",vH=new RegExp("("+yH+")|([^%]+?)","gi"),bH=new RegExp("("+yH+")+","gi");function xH(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],xH(n),xH(r))}function wH(e){try{return decodeURIComponent(e)}catch{let t=e.match(vH)||[];for(let n=1;n<t.length;n++)t=(e=xH(t,n).join("")).match(vH)||[];return e}}function CH(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=bH.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=wH(n[0]);e!==n[0]&&(t[n[0]]=e)}n=bH.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const n of r)e=e.replace(new RegExp(n,"g"),t[n]);return e}(e)}}function kH(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);(null==t?void 0:t.enumerable)&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);if(o.enumerable){t(r,e[r],e)&&Object.defineProperty(n,r,o)}}return n}function SH(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}const EH=Symbol("encodeFragmentIdentifier");function $H(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function TH(e,t){return t.encode?t.strict?encodeURIComponent(e).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`):encodeURIComponent(e):e}function PH(e,t){return t.decode?CH(e):e}function MH(e){return Array.isArray(e)?e.sort():"object"==typeof e?MH(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function OH(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function NH(e,t,n){return"string"===n&&"string"==typeof e?e:"function"==typeof n&&"string"==typeof e?n(e):"boolean"===n&&null===e||("boolean"!==n||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?"boolean"!==n||null===e||"1"!==e.toLowerCase()&&"0"!==e.toLowerCase()?"string[]"===n&&"none"!==t.arrayFormat&&"string"==typeof e?[e]:"number[]"!==n||"none"===t.arrayFormat||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?"number"!==n||Number.isNaN(Number(e))||"string"!=typeof e||""===e.trim()?!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()?t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?Number(e):e:"true"===e.toLowerCase():Number(e):[Number(e)]:"1"===e.toLowerCase():"true"===e.toLowerCase())}function AH(e){const t=(e=OH(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function IH(e,t){$H((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator)?n.split(e.arrayFormatSeparator).map(t=>PH(t,e)):null===n?n:PH(n,e);r[t]=o};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?PH(n,e):n);const i=null===n?[]:PH(n,e).split(e.arrayFormatSeparator);void 0!==r[t]?r[t]=[...r[t],...i]:r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replaceAll("+"," "):o;let[i,a]=SH(e,"=");void 0===i&&(i=e),a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:PH(a,t),n(PH(i,t),a,r)}for(const[e,n]of Object.entries(r))if("object"==typeof n&&null!==n&&"string"!==t.types[e])for(const[r,o]of Object.entries(n)){const i=t.types[e],a="function"==typeof i?i:i?i.replace("[]",""):void 0;n[r]=NH(o,t,a)}else"object"==typeof n&&null!==n&&"string"===t.types[e]?r[e]=Object.values(n).join(t.arrayFormatSeparator):r[e]=NH(n,t,t.types[e]);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?MH(n):n,e},Object.create(null))}function RH(e,t){if(!e)return"";$H((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[TH(t,e),"[",o,"]"].join("")]:[...n,[TH(t,e),"[",TH(o,e),"]=",TH(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[TH(t,e),"[]"].join("")]:[...n,[TH(t,e),"[]=",TH(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[TH(t,e),":list="].join("")]:[...n,[TH(t,e),":list=",TH(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[TH(n,e),t,TH(o,e)].join("")]:[[r,TH(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,TH(t,e)]:[...n,[TH(t,e),"=",TH(r,e)].join("")]}}(t),o={};for(const[t,r]of Object.entries(e))n(t)||(o[t]=r);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(n=>{let o=e[n];if(t.replacer&&(o=t.replacer(n,o),void 0===o))return"";if(void 0===o)return"";if(null===o)return TH(n,t);if(Array.isArray(o)){if(0===o.length&&"bracket-separator"===t.arrayFormat)return TH(n,t)+"[]";let e=o;return t.replacer&&(e=o.map((e,r)=>t.replacer(`${n}[${r}]`,e)).filter(e=>void 0!==e)),e.reduce(r(n),[]).join("&")}return TH(n,t)+"="+TH(o,t)}).filter(e=>e.length>0).join("&")}function LH(e,t){var n;t={decode:!0,...t};let[r,o]=SH(e,"#");return void 0===r&&(r=e),{url:(null==(n=null==r?void 0:r.split("?"))?void 0:n[0])??"",query:IH(AH(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:PH(o,t)}:{}}}function BH(e,t){t={encode:!0,strict:!0,[EH]:!0,...t};const n=OH(e.url).split("?")[0]||"";let r=RH({...IH(AH(e.url),{sort:!1,...t}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if("string"==typeof e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[EH]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function zH(e,t,n){n={parseFragmentIdentifier:!0,[EH]:!1,...n};const{url:r,query:o,fragmentIdentifier:i}=LH(e,n);return BH({url:r,query:kH(o,t),fragmentIdentifier:i},n)}const DH=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(e,t,n){return zH(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)},extract:AH,parse:IH,parseUrl:LH,pick:zH,stringify:RH,stringifyUrl:BH},Symbol.toStringTag,{value:"Module"})),jH=["family","superfamily","order","subclass","class","superclass","subphylum","phylum"],_H=({classification:e,maxParents:t=e.length,truncate:n})=>{const r=e.slice(Math.max(e.length-t));if(n){const t=e.reduce((e,t)=>(e[t.rank]=t,e),{}),n=t.kingdom;let r;for(let e=0;e<jH.length;e++)if(t[jH[e]]){r=t[jH[e]];break}return n&&r?F.jsxs(y.Fragment,{children:[F.jsx(vA,{to:"taxon",args:n.id,children:n.name}),"phylum"===r.rank?" > ":" > ... > ",F.jsx(vA,{to:"taxon",args:r.id,children:r.name})]}):n?F.jsx(vA,{to:"taxon",args:n.id,children:n.name}):null}return r.map((e,t)=>F.jsxs(y.Fragment,{children:[F.jsx(vA,{to:"taxon",args:e.id,children:e.name}),!Object.is(r.length-1,t)&&" > "]},t))},FH=Ek.Search;class HH extends y.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{this.props.defaultValue&&this.setState({search:this.props.defaultValue})}),o(this,"componentDidUpdate",e=>{e.defaultValue!==this.props.defaultValue&&this.setState({search:this.props.defaultValue})}),o(this,"resetSearch",()=>{this.setState({search:""},()=>{this.props.onSearch(this.state.search)})}),o(this,"render",()=>F.jsx(FH,{style:this.props.style||null,placeholder:"Search query",value:this.state.search,onSearch:e=>this.props.onSearch(this.state.search),onChange:e=>this.setState({search:e.target.value}),addonAfter:this.props.addonAfter,allowClear:!0,autoFocus:!0})),this.state={search:""}}}const WH=ok.Item,KH=my.Option,VH={labelCol:{xs:{span:24},sm:{span:24},md:{span:8}},wrapperCol:{xs:{span:24},sm:{span:24},md:{span:16}}};class UH extends y.Component{constructor(e){super(e),o(this,"handleChange",e=>{this.setState({selected:e},()=>{this.props.onChange(e)})}),o(this,"render",()=>{const{defaultValue:e,label:t,vocab:n}=this.props,{randomID:r}=this.state,o=new Set([...n.map(e=>e.value)]);let i;return e&&zM.isArray(e)?i=e.filter(e=>o.has(e)):e&&(i=[e].filter(e=>o.has(e))),F.jsx(WH,{...VH,label:t,style:{marginBottom:"8px",width:"100%"},children:F.jsx("div",{id:`${zM.snakeCase(t)}_${r}`,children:F.jsx(my,{showSearch:!0,mode:"multiple",placeholder:"Please select",value:i,onChange:this.handleChange,getPopupContainer:()=>document.getElementById(`${zM.snakeCase(t)}_${r}`),children:n.map(e=>"string"==typeof e?F.jsx(KH,{value:e,children:zM.startCase(e)},e):F.jsx(KH,{value:e.value,children:e.label},e.value))})})})}),this.state={selected:this.props.selected,randomID:(Math.floor(100*Math.random())+1)*(Math.floor(100*Math.random())+1)*(Math.floor(100*Math.random())+1)}}}const qH=({issues:e,usage:t,classification:n,vernacularNames:r,issueMap:o})=>F.jsxs(y.Fragment,{children:[zM.get(t,"id")&&F.jsxs(zw,{style:{marginBottom:"10px"},children:[F.jsx(Lw,{span:3,style:{textAlign:"right",paddingRight:"16px",fontWeight:"bold"},children:"ID:"}),F.jsx(Lw,{span:18,children:zM.get(t,"id")})]}),n&&F.jsxs(zw,{style:{marginBottom:"10px"},children:[F.jsx(Lw,{span:3,style:{textAlign:"right",paddingRight:"16px",fontWeight:"bold"},children:"Classification:"}),F.jsx(Lw,{span:18,children:F.jsx(_H,{classification:zM.initial(n)})})]}),r&&F.jsxs(zw,{children:[F.jsx(Lw,{span:3,style:{textAlign:"right",paddingRight:"16px",fontWeight:"bold"},children:"Vernacular:"}),F.jsx(Lw,{span:18,style:{paddingBottom:"12px"},children:r.slice(0,8).map(e=>e.name).join(", ")})]})]});ky.Option;class GH extends y.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{const{defaultDatasetKey:e}=this.props;e&&this.setDefaultValue(e)}),o(this,"componentDidUpdate",e=>{const{defaultDatasetKey:t}=this.props;t&&t!==e.defaultDatasetKey?this.setDefaultValue(t):e.defaultDatasetKey&&!t&&this.setState({value:""})}),o(this,"setDefaultValue",e=>{UN(`${uA.dataApi}dataset/${e}`).then(e=>{this.setState({value:zM.get(e,"data.title")||""}),this.props.onSelectDataset(e.data)})}),o(this,"getDatasets",e=>{const{contributesTo:t}=this.props;UN(`${uA.dataApi}dataset?q=${e}&limit=30${t?"&contributesTo="+t:""}`).then(e=>{this.setState({datasets:e.data.result})}).catch(e=>{this.setState({datasets:[],err:e})})}),o(this,"onSelectDataset",(e,t)=>{this.setState({value:e}),this.props.onSelectDataset({key:t.key,title:e})}),o(this,"onReset",()=>{this.setState({value:"",names:[]},this.props.onResetSearch)}),o(this,"render",()=>{const{value:e,randomID:t}=this.state,{style:n}=this.props,r=this.state.datasets?this.state.datasets.map(t=>{const n=`${t.alias||t.title} [${t.key}]`;return{key:t.key,value:n,label:F.jsx(jA,{highlightStyle:{fontWeight:"bold",padding:0},searchWords:e.split(" "),autoEscape:!0,textToHighlight:n}),data:t}}):[];return F.jsx("div",{id:`dataset_autocomplete_${t}`,children:F.jsx(ky,{onSelect:this.onSelectDataset,onSearch:e=>e?this.getDatasets(e):this.onReset(),options:r,placeholder:this.props.placeHolder||"Find dataset",style:n||{width:"100%"},onChange:e=>this.setState({value:e}),value:e,getPopupContainer:()=>document.getElementById(`dataset_autocomplete_${t}`),children:F.jsx(Ek.Search,{allowClear:!0})})})}),this.getDatasets=BM.debounce(this.getDatasets,500),this.state={datasets:[],value:"",randomID:(Math.floor(100*Math.random())+1)*(Math.floor(100*Math.random())+1)*(Math.floor(100*Math.random())+1)}}componentWillUnmount(){this.getDatasets.cancel()}}const XH=ok.Item,YH=Rx.Group,ZH=["rank","issue","status","nomStatus","nameType","field","authorship","extinct","environment","group","authorshipYear"],QH={limit:50,offset:0,facet:ZH,facetLimit:50,sortBy:"relevance"};class JH extends y.Component{constructor(e){super(e),o(this,"componentDidMount",async()=>{this.parseParamsAndGetData();const{datasetKey:e}=this.props;try{const{data:t}=await(e=>UN(`${uA.dataApi}dataset/${e}`))(e);this.setState({dataset:t,datasetOrigin:((null==t?void 0:t.origin)||"").toLowerCase()})}catch(e){}try{const e=await UN(`${uA.dataApi}vocab/taxgroup`).then(e=>e.data);this.setState({taxGroups:e})}catch(e){}}),o(this,"componentDidUpdate",e=>{zM.isEqual(e.filters,this.props.filters)||this.parseParamsAndGetData()}),o(this,"getRank",()=>{UN(`${uA.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),o(this,"parseParamsAndGetData",()=>{const{defaultTaxonKey:e,filters:t}=this.props;let n={...t||{}};e&&!n.TAXON_ID&&(n.TAXON_ID=e),zM.isEmpty(n)?(n=QH,this.pushParams(QH)):n.facet||(n.facet=ZH),n.facetLimit||(n.facetLimit=50),delete n.fuzzy,n.limit||(n.limit=50),n.offset||(n.offset=0),this.setState({params:n,pagination:{pageSize:n.limit||50,current:Number(n.offset||0)/Number(n.limit||50)+1,showQuickJumper:!0,pageSizeOptions:[50,100,500,1e3]}},this.getData)}),o(this,"pushParams",e=>{const t={...e};t.q||delete t.q,this.props.onFiltersChange&&this.props.onFiltersChange(t)}),o(this,"getData",()=>{const{params:e}=this.state;this.setState({loading:!0});const{datasetKey:t}=this.props,n=`${uA.dataApi}dataset/${t}/nameusage/search`,r=zM.get(e,"status")?e:{...e,status:"_NOT_NULL"};UN(`${n}?${DH.stringify(r)}`).then(e=>{const t={...this.state.pagination};t.total=e.data.total,this.setState({loading:!1,data:e.data,err:null,pagination:t})}).catch(e=>{this.setState({loading:!1,error:e,data:[]})})}),o(this,"handleTableChange",(e,t,n)=>{let r=zM.merge(this.state.params,{limit:e.pageSize,offset:(e.current-1)*e.pageSize,...t});n&&n.field&&("labelHtml"===n.field[n.field.length-1]?r.sortBy="name":"rank"===n.field[n.field.length-1]?r.sortBy="taxonomic":r.sortBy=n.field[n.field.length-1]),n&&"descend"===n.order?r.reverse=!0:r.reverse=!1,this.setState({params:r},()=>this.pushParams(r))}),o(this,"updateSearch",e=>{let t={...this.state.params,offset:0,limit:50};zM.forEach(e,(e,n)=>{t[n]=e});const n=Object.keys(t).reduce((e,n)=>(null!==t[n]&&(e[n]=t[n]),e),{});this.setState({params:n},()=>this.pushParams(n))}),o(this,"resetSearch",()=>{this.setState({params:QH},()=>this.pushParams(QH))}),o(this,"toggleAdvancedFilters",()=>{this.setState({advancedFilters:!this.state.advancedFilters})}),this.state={data:[],advancedFilters:!1,columns:[{title:"",dataIndex:["usage","merged"],key:"merged",width:12,render:(e,t)=>{var n,r,o;return(null==(n=null==t?void 0:t.usage)?void 0:n.merged)?F.jsx(PA,{datasetKey:null==(r=null==t?void 0:t.usage)?void 0:r.datasetKey,verbatimSourceKey:null==(o=null==t?void 0:t.usage)?void 0:o.verbatimSourceKey}):""}},{title:"Scientific Name",dataIndex:["usage","labelHtml"],key:"scientificName",render:(e,t)=>{const n=zM.get(t,"usage.accepted.id")||zM.get(t,"usage.id");return F.jsx(vA,{to:"taxon",args:n,children:F.jsx("span",{dangerouslySetInnerHTML:{__html:e}})})},width:200,sorter:!0},{title:"Status",dataIndex:["usage","status"],key:"status",width:200,render:(e,t)=>["synonym","ambiguous synonym","misapplied"].includes(e)?F.jsxs(y.Fragment,{children:[e," ","misapplied"===e?"to ":"of ",F.jsx("span",{dangerouslySetInnerHTML:{__html:zM.get(t,"usage.accepted.labelHtml")}})]},zM.get(t,"usage.id")):e},{title:"Rank",dataIndex:["usage","name","rank"],key:"rank",width:60,sorter:!0},{title:"Classification",dataIndex:["usage","classification"],key:"parents",width:180,render:(e,t)=>zM.get(t,"classification")?F.jsx(_H,{classification:zM.initial(t.classification),truncate:!0,datasetKey:zM.get(t,"usage.name.datasetKey")},zM.get(t,"usage.id")):""}],params:{},taxGroups:[],pagination:{pageSize:50,current:1,showQuickJumper:!0,pageSizeOptions:[50,100,500,1e3]},loading:!1,dataset:null}}render(){var e;const{data:{result:t,facets:n},loading:r,error:o,params:i,pagination:a,advancedFilters:l,dataset:s,taxGroups:c}=this.state,{datasetKey:u,defaultTaxonKey:d,citation:h}=this.props,p=zM.get(n,"rank")?n.rank.map(e=>({value:e.value,label:`${zM.startCase(e.value)} (${e.count.toLocaleString("en-GB")})`})):null;zM.get(n,"issue")&&n.issue.map(e=>({value:e.value,label:`${zM.startCase(e.value)} (${e.count.toLocaleString("en-GB")})`}));const f=zM.get(n,"status")?n.status.map(e=>({value:e.value,label:`${zM.startCase(e.value)} (${e.count.toLocaleString("en-GB")})`})):null,m=zM.get(n,"nomStatus")?n.nomStatus.map(e=>({value:e.value,label:`${zM.startCase(e.value)} (${e.count.toLocaleString("en-GB")})`})):null,g=zM.get(n,"nameType")?n.nameType.map(e=>({value:e.value,label:`${zM.startCase(e.value)} (${e.count.toLocaleString("en-GB")})`})):null,v=zM.get(n,"field")?n.field.map(e=>({value:e.value,label:`${zM.startCase(e.value)} (${e.count.toLocaleString("en-GB")})`})):null,b=zM.get(n,"authorship")?n.authorship.map(e=>({value:e.value,label:`${zM.startCase(e.value)} (${e.count.toLocaleString("en-GB")})`})):[],x=zM.get(n,"extinct")?n.extinct.map(e=>{return{value:e.value,label:`${t=null==e?void 0:e.value,"1"===t||!0===t||"true"===t?"Extinct":"0"===t||!1===t||"false"===t?"Extant":"Unknown"} (${e.count.toLocaleString("en-GB")})`};var t}):[],w=zM.get(n,"environment")?n.environment.map(e=>({value:e.value,label:`${zM.startCase(e.value)} (${e.count.toLocaleString("en-GB")})`})):[],C=zM.get(n,"group")?n.group.map(e=>({value:e.value,label:`${zM.startCase(e.value)} (${e.count.toLocaleString("en-GB")})`})):[],k=zM.get(n,"authorshipYear")?n.authorshipYear.map(e=>({value:e.value,label:`${e.value} (${e.count.toLocaleString("en-GB")})`})):[];return F.jsxs("div",{className:"catalogue-of-life",style:{padding:24,minHeight:280,margin:"16px 0"},children:["top"===h&&s&&F.jsx(FA,{dataset:s}),F.jsx(zw,{children:o&&F.jsx(ml,{style:{marginBottom:"10px"},message:F.jsx(NA,{error:o}),type:"error"})}),F.jsxs(zw,{children:[F.jsxs(Lw,{xs:24,sm:24,md:12,style:{marginBottom:"8px"},children:[F.jsx(HH,{defaultValue:zM.get(this.props.filters||{},"q"),onSearch:e=>this.updateSearch({q:e}),onResetSearch:e=>this.updateSearch({q:null}),style:{marginBottom:"8px",width:"100%"}}),F.jsx(_A,{datasetKey:u,minRank:"GENUS",defaultTaxonKey:zM.get(i,"TAXON_ID")||d||null,onSelectName:e=>{this.updateSearch({TAXON_ID:e.key})},onResetSearch:e=>{this.updateSearch({TAXON_ID:null})},placeHolder:"Filter by higher taxon",sortBy:"relevance",autoFocus:!1}),("xrelease"===this.state.datasetOrigin||"release"===this.state.datasetOrigin)&&F.jsx("div",{style:{marginTop:"8px",marginBottom:"8px"},children:F.jsx(GH,{contributesTo:Number(u),onSelectDataset:e=>{this.updateSearch({SECTOR_DATASET_KEY:e.key})},defaultDatasetKey:zM.get(i,"SECTOR_DATASET_KEY")||null,onResetSearch:e=>{this.updateSearch({SECTOR_DATASET_KEY:null})},placeHolder:"Filter by source dataset",autoFocus:!1})}),F.jsxs("div",{style:{marginTop:"10px"},children:[F.jsx(ok,{layout:"inline",children:F.jsx(XH,{label:"Matching",children:F.jsx(YH,{size:"small",onChange:e=>{this.updateSearch({type:e.target.value})},value:i.type||"WHOLE_WORDS",optionType:"button",options:[{value:"EXACT",label:"Exact"},{value:"WHOLE_WORDS",label:"Words"},{value:"PREFIX",label:"Prefix"},{value:"FUZZY",label:"Fuzzy"}]})})}),F.jsxs(ok,{layout:"inline",children:[("xrelease"===this.state.datasetOrigin||"project"===this.state.datasetOrigin)&&F.jsx(XH,{label:"Content",children:F.jsx(YH,{style:{marginLeft:"8px"},size:"small",onChange:e=>{this.updateSearch({sectorMode:e.target.value.split(",").filter(e=>""!==e)})},value:zM.isArray(null==i?void 0:i.sectorMode)?null==(e=null==i?void 0:i.sectorMode)?void 0:e.join(","):(null==i?void 0:i.sectorMode)||"",optionType:"button",options:[{value:"",label:"All"},{value:"attach,union",label:"Base"},{value:"merge",label:"Extended"}]})}),F.jsx(XH,{children:F.jsx(my,{mode:"multiple",allowClear:!0,size:"small",style:{minWidth:200},placeholder:"Search fields",value:zM.isArray(null==i?void 0:i.content)?i.content:(null==i?void 0:i.content)?[i.content]:[],onChange:e=>this.updateSearch({content:e.length?e:null}),options:[{value:"SCIENTIFIC_NAME",label:"Scientific name"},{value:"AUTHORSHIP",label:"Authorship"},{value:"VERNACULAR_NAME",label:"Vernacular name"}]})})]})]})]}),F.jsxs(Lw,{xs:24,sm:24,md:12,children:[F.jsx(UH,{defaultValue:zM.get(i,"rank"),onChange:e=>this.updateSearch({rank:e}),vocab:p||[],label:"Ranks"}),F.jsx(UH,{defaultValue:zM.get(i,"status"),onChange:e=>this.updateSearch({status:e}),vocab:f||[],label:"Status"}),F.jsx(UH,{defaultValue:zM.get(i,"environment"),onChange:e=>this.updateSearch({environment:e}),vocab:w,label:"Environment"}),F.jsx(UH,{onChange:e=>this.updateSearch({extinct:e}),vocab:x,label:"Extinct"}),l&&F.jsxs(y.Fragment,{children:[F.jsx(UH,{defaultValue:zM.get(i,"nomstatus"),onChange:e=>this.updateSearch({nomstatus:e}),vocab:m||[],label:"Nomenclatural status"}),F.jsx(UH,{defaultValue:zM.get(i,"nameType"),onChange:e=>this.updateSearch({nameType:e}),vocab:g||[],label:"Name type"}),F.jsx(UH,{defaultValue:zM.get(i,"field"),onChange:e=>this.updateSearch({field:e}),vocab:v||[],label:"Name field"}),F.jsx(UH,{defaultValue:zM.get(i,"authorship"),onChange:e=>this.updateSearch({authorship:e}),vocab:b,label:"Authorship"}),F.jsx(UH,{defaultValue:zM.get(i,"group"),onChange:e=>this.updateSearch({group:e}),vocab:C,label:"Taxonomic group"}),F.jsx(UH,{defaultValue:zM.get(i,"authorshipYear"),onChange:e=>this.updateSearch({authorshipYear:e}),vocab:k,label:"Authorship year"})]}),F.jsx("div",{style:{textAlign:"right",marginBottom:"8px"},children:F.jsxs("a",{style:{marginLeft:8,fontSize:12},onClick:this.toggleAdvancedFilters,children:["Advanced"," ",this.state.advancedFilters?F.jsx(Uw,{}):F.jsx(sy,{})]})})]})]}),F.jsxs(zw,{children:[F.jsx(Lw,{span:12,style:{textAlign:"left",marginBottom:"8px"},children:F.jsx(mh,{type:"primary",danger:!0,onClick:this.resetSearch,children:"Reset all"})}),F.jsx(Lw,{span:12,style:{textAlign:"right",marginBottom:"8px"},children:a&&!isNaN(a.total)&&`results: ${a.total.toLocaleString("en-GB")}`})]}),!o&&F.jsx(dM,{size:"small",columns:this.state.columns,scroll:{x:"max-content"},dataSource:t,loading:r,pagination:this.state.pagination,onChange:this.handleTableChange,rowKey:e=>e.usage.id,showSorterTooltip:!1,expandedRowRender:e=>F.jsx(qH,{...e,datasetKey:u})}),"bottom"===h&&s&&F.jsx(FA,{dataset:s})]})}}const eW=(e,t)=>(zM.get(e,`taxaByRankCount.${t}`)||0)-(zM.get(e,`extinctTaxaByRankCount.${t}`)||0),tW=(e,t)=>zM.get(e,`extinctTaxaByRankCount.${t}`)||0,nW=e=>{const t=e.key?{SECTOR_DATASET_KEY:e.key}:{SECTOR_PUBLISHER_KEY:e.id};return zM.isArray(e.sectorModes)&&(t.sectorMode=e.sectorModes),t},rW=({metrics:e,rank:t,style:n,dataset:r})=>e&&t?F.jsxs("div",{style:n,children:[F.jsxs(y.Fragment,{children:[F.jsx(E_,{label:"Living species",children:r?F.jsx(vA,{to:"search",args:{...nW(r),rank:"species",extinct:["false","_NULL"]},children:eW(e,"species").toLocaleString("en-GB")}):eW(e,"species").toLocaleString("en-GB")}),F.jsx(E_,{label:"Extinct species",children:r?F.jsx(vA,{to:"search",args:{...nW(r),rank:"species",extinct:"true"},children:tW(e,"species").toLocaleString("en-GB")}):tW(e,"species").toLocaleString("en-GB")})]}),e.taxaByRankCount&&Object.keys(e.taxaByRankCount).sort((e,n)=>t.indexOf(n)-t.indexOf(e)).map(t=>F.jsx(E_,{label:`${zM.startCase(t)}`,children:r?F.jsx(vA,{to:"search",args:{...nW(r),rank:t,status:["accepted","provisionally accepted"]},children:e.taxaByRankCount[t].toLocaleString("en-GB")}):e.taxaByRankCount[t].toLocaleString("en-GB")},t)),F.jsx(E_,{label:"Synonyms",children:r?F.jsx(vA,{to:"search",args:{...nW(r),status:["misapplied","synonym","ambiguous synonym"]},children:(e.synonymCount||0).toLocaleString("en-GB")}):(e.synonymCount||0).toLocaleString("en-GB")},"Synonyms"),F.jsx(E_,{label:"Common names",children:(e.vernacularCount||0).toLocaleString("en-GB")},"vernaculars"),F.jsx(E_,{label:"Total number of names",children:r?F.jsx(vA,{to:"search",args:nW(r),children:(e.nameCount||0).toLocaleString("en-GB")}):(e.nameCount||0).toLocaleString("en-GB")},"names")]}):F.jsx(E_,{label:"",children:F.jsx(bf,{active:!0,paragraph:{rows:4}})});class oW extends y.Component{constructor(e){super(e),o(this,"getData",()=>{const{dataset:e,datasetKey:t}=this.props;UN(`${uA.dataApi}dataset/${t}/source/${e.key}/metrics`).then(e=>{this.setState({metrics:e.data})})}),o(this,"getRank",()=>{UN(`${uA.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),o(this,"render",()=>F.jsx(rW,{...this.state,dataset:this.props.dataset})),this.state={metrics:null,rank:null,loading:!0}}componentDidMount(){this.getData(),this.getRank()}}class iW extends y.Component{constructor(e){super(e),o(this,"getData",()=>{const{dataset:e,datasetKey:t}=this.props,n={};UN(`${uA.dataApi}dataset/${t}/sector?limit=1000&subjectDatasetKey=${e.key}`).then(e=>Promise.allSettled(e.data.result.filter(e=>!!(null==e?void 0:e.target)).map(e=>{var r,o,i,a;return UN(`${uA.dataApi}dataset/${t}/nameusage/search?TAXON_ID=${null==(r=null==e?void 0:e.target)?void 0:r.id}${(null==(o=null==e?void 0:e.subject)?void 0:o.rank)?"&rank="+(null==(i=null==e?void 0:e.subject)?void 0:i.rank):""}&q=${null==(a=null==e?void 0:e.subject)?void 0:a.name}`).then(e=>{const t=zM.get(e,"data.result[0]");if(t){const e=t.classification.slice(1,t.classification.length-1).map(e=>e.name).join(" > ");n[e]?n[e].push(t.classification[t.classification.length-1]):n[e]=[t.classification[t.classification.length-1]]}}).catch(t=>{console.log(e),console.log(t)})})).then(()=>this.setState({taxonMap:n,loading:!1})))}),o(this,"render",()=>{const{taxonMap:e}=this.state,{style:t}=this.props;return e?Object.keys(e).length>0?Object.keys(e).sort((e,t)=>e.length-t.length).map(n=>F.jsxs("div",{style:t,children:[F.jsxs("span",{children:[n,""!==n?":":""]})," ",e[n].map((t,r)=>F.jsxs(y.Fragment,{children:[F.jsx(vA,{to:"tree",args:{taxonKey:t.id},children:t.name}),r!==e[n].length-1?", ":""]},r))]},n)):"N/A":F.jsx(bf,{active:!0,paragraph:{rows:4}})}),this.state={loading:!0,taxonMap:null}}componentDidMount(){this.getData()}}const aW=({agent:e,countryAlpha2:t,style:n,noLinks:r})=>{const o=zM.get(e,"country")?zM.get(t,`[${zM.get(e,"country")}].title`,zM.get(e,"country")):null;return e?F.jsxs("span",{style:n,children:[(e.given||e.family)&&F.jsx("span",{style:{display:"block"},children:[e.family,e.given].filter(e=>!!e).join(", ")}),e.orcid&&(r?F.jsxs("div",{children:[F.jsx("img",{src:"https://www.checklistbank.org/images/orcid_16x16.png",style:{flex:"0 0 auto"},alt:""})," ",e.orcid]}):F.jsxs("a",{style:{display:"block"},href:`https://orcid.org/${e.orcid}`,children:[F.jsx("img",{src:"https://www.checklistbank.org/images/orcid_16x16.png",style:{flex:"0 0 auto"},alt:""})," ",e.orcid]})),e.organisation&&F.jsx("span",{style:{display:"block"},children:e.organisation}),e.rorid&&(r?F.jsxs("div",{children:[F.jsx("img",{src:"https://www.checklistbank.org/images/ror-logo-small.png",style:{flex:"0 0 auto",height:"20px"},alt:""})," ",e.rorid]}):F.jsxs("a",{style:{display:"block"},href:`https://ror.org/${e.rorid}`,children:[F.jsx("img",{src:"https://www.checklistbank.org/images/ror-logo-small.png",style:{flex:"0 0 auto",height:"20px"},alt:""})," ",e.rorid]})),e.department&&F.jsx("span",{style:{display:"block"},children:e.department}),(e.city||e.state||o)&&F.jsx("span",{style:{display:"block"},children:[e.city,e.state,o].filter(e=>!!e).join(", ")})]}):null},lW=({datasetKey:e,sourceDatasetKey:t,style:n={}})=>{const r=t?`${uA.dataApi}dataset/${e}/source/${t}.bib`:`${uA.dataApi}dataset/${e}.bib`;return F.jsx("a",{href:r,children:F.jsx("img",{src:"https://www.checklistbank.org/images/bibtex_logo.png",style:{height:"40px",...n}})})};function sW(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var cW={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function uW(e){cW=e}var dW={exec:()=>null};function hW(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function pW(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let o="string"==typeof t?t:t.source;return o=o.replace(mW.caret,"$1"),n=n.replace(e,o),r},getRegex:()=>new RegExp(n,t)};return r}var fW=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),mW={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:hW(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`)),hrRegex:hW(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:hW(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:hW(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:hW(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:hW(e=>new RegExp(`^ {0,${e}}>`))},gW=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,yW=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,vW=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,bW=pW(vW).replace(/bull/g,yW).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),xW=pW(vW).replace(/bull/g,yW).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),wW=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,CW=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kW=pW(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",CW).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),SW=pW(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,yW).getRegex(),EW="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$W=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,TW=pW("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",$W).replace("tag",EW).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),PW=pW(wW).replace("hr",gW).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",EW).getRegex(),MW={blockquote:pW(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",PW).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:kW,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:gW,html:TW,lheading:bW,list:SW,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:PW,table:dW,text:/^[^\n]+/},OW=pW("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gW).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",EW).getRegex(),NW={...MW,lheading:xW,table:OW,paragraph:pW(wW).replace("hr",gW).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",OW).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",EW).getRegex()},AW={...MW,html:pW("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",$W).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:dW,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pW(wW).replace("hr",gW).replace("heading"," *#{1,6} *[^\n]").replace("lheading",bW).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},IW=/^( {2,}|\\)\n(?!\s*$)/,RW=/[\p{P}\p{S}]/u,LW=/[\s\p{P}\p{S}]/u,BW=/[^\s\p{P}\p{S}]/u,zW=pW(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,LW).getRegex(),DW=/(?!~)[\p{P}\p{S}]/u,jW=pW(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",fW?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),_W=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,FW=pW(_W,"u").replace(/punct/g,RW).getRegex(),HW=pW(_W,"u").replace(/punct/g,DW).getRegex(),WW="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",KW=pW(WW,"gu").replace(/notPunctSpace/g,BW).replace(/punctSpace/g,LW).replace(/punct/g,RW).getRegex(),VW=pW(WW,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,DW).getRegex(),UW=pW("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,BW).replace(/punctSpace/g,LW).replace(/punct/g,RW).getRegex(),qW=pW(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,RW).getRegex(),GW=pW("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,BW).replace(/punctSpace/g,LW).replace(/punct/g,RW).getRegex(),XW=pW(/\\(punct)/,"gu").replace(/punct/g,RW).getRegex(),YW=pW(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ZW=pW($W).replace("(?:--\x3e|$)","--\x3e").getRegex(),QW=pW("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ZW).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),JW=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,eK=pW(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",JW).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tK=pW(/^!?\[(label)\]\[(ref)\]/).replace("label",JW).replace("ref",CW).getRegex(),nK=pW(/^!?\[(ref)\](?:\[\])?/).replace("ref",CW).getRegex(),rK=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,oK={_backpedal:dW,anyPunctuation:XW,autolink:YW,blockSkip:jW,br:IW,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:dW,delLDelim:dW,delRDelim:dW,emStrongLDelim:FW,emStrongRDelimAst:KW,emStrongRDelimUnd:UW,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:eK,nolink:nK,punctuation:zW,reflink:tK,reflinkSearch:pW("reflink|nolink(?!\\()","g").replace("reflink",tK).replace("nolink",nK).getRegex(),tag:QW,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:dW},iK={...oK,link:pW(/^!?\[(label)\]\((.*?)\)/).replace("label",JW).getRegex(),reflink:pW(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",JW).getRegex()},aK={...oK,emStrongRDelimAst:VW,emStrongLDelim:HW,delLDelim:qW,delRDelim:GW,url:pW(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",rK).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:pW(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",rK).getRegex()},lK={...aK,br:pW(IW).replace("{2,}","*").getRegex(),text:pW(aK.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},sK={normal:MW,gfm:NW,pedantic:AW},cK={normal:oK,gfm:aK,breaks:lK,pedantic:iK},uK={"&":"&","<":"<",">":">",'"':""","'":"'"},dK=e=>uK[e];function hK(e,t){if(t){if(mW.escapeTest.test(e))return e.replace(mW.escapeReplace,dK)}else if(mW.escapeTestNoEncode.test(e))return e.replace(mW.escapeReplaceNoEncode,dK);return e}function pK(e){try{e=encodeURI(e).replace(mW.percentDecode,"%")}catch{return null}return e}function fK(e,t){var n;let r=e.replace(mW.findPipe,(e,t,n)=>{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(mW.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!(null==(n=r.at(-1))?void 0:n.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(mW.slashPipe,"|");return r}function mK(e,t,n){let r=e.length;if(0===r)return"";let o=0;for(;o<r;){if(e.charAt(r-o-1)!==t)break;o++}return e.slice(0,r-o)}function gK(e){let t=e.split("\n"),n=t.length-1;for(;n>=0&&mW.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join("\n")}function yK(e,t=0){let n=t,r="";for(let t of e)if("\t"===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}function vK(e,t,n,r,o){let i=t.href,a=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}var bK=class{constructor(e){o(this,"options"),o(this,"rules"),o(this,"lexer"),this.options=e||cW}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:gK(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let o=r[1];return t.split("\n").map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=o.length?e.slice(o.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=mK(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:mK(t[0],"\n"),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:mK(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=mK(t[0],"\n").split("\n"),n="",r="",o=[];for(;e.length>0;){let t,i=!1,a=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))a.push(e[t]),i=!0;else{if(i)break;a.push(e[t])}e=e.slice(t);let l=a.join("\n"),s=l.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${l}`:l,r=r?`${r}\n${s}`:s;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(s,o,!0),this.lexer.state.top=c,0===e.length)break;let u=o.at(-1);if("code"===(null==u?void 0:u.type))break;if("blockquote"===(null==u?void 0:u.type)){let t=u,i=t.raw+"\n"+e.join("\n"),a=this.blockquote(i);o[o.length-1]=a,n=n.substring(0,n.length-t.raw.length)+a.raw,r=r.substring(0,r.length-t.text.length)+a.text;break}if("list"===(null==u?void 0:u.type)){let t=u,i=t.raw+"\n"+e.join("\n"),a=this.list(i);o[o.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-t.raw.length)+a.raw,e=i.substring(o.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:o,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),a=!1;for(;e;){let n=!1,r="",l="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let s=yK(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!s.trim(),d=0;if(this.options.pedantic?(d=2,l=s.trimStart()):u?d=t[1].length+1:(d=s.search(this.rules.other.nonSpaceChar),d=d>4?1:d,l=s.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),o=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),a=this.rules.other.htmlBeginRegex(d),h=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p,f=e.split("\n",1)[0];if(c=f,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),o.test(c)||i.test(c)||a.test(c)||h.test(c)||t.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!c.trim())l+="\n"+p.slice(d);else{if(u||s.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||o.test(s)||i.test(s)||n.test(s))break;l+="\n"+c}u=!c.trim(),r+=f+"\n",e=e.substring(f.length+1),s=p.slice(d)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(a=!0)),o.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(l),loose:!1,text:l,tokens:[]}),o.raw+=r}let l=o.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),o.raw=o.raw.trimEnd();for(let e of o.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(!e.task||"text"!==(null==t?void 0:t.type)&&"paragraph"!==(null==t?void 0:t.type))e.task&&(e.task=!1);else{e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:"checkbox",raw:n[0]+" ",checked:"[ ]"!==n[0]};e.checked=t.checked,o.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}if(!o.loose){let t=e.tokens.filter(e=>"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));o.loose=n}}if(o.loose)for(let e of o.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=gK(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:mK(t[0],"\n"),href:n,title:r}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=fK(n[1]),o=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(null==(t=n[3])?void 0:t.trim())?n[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:mK(n[0],"\n"),header:[],align:[],rows:[]};if(r.length===o.length){for(let e of o)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<r.length;e++)a.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(fK(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:mK(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=mK(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),vK(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return vK(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(r&&(r[1]||r[2]||r[3]||r[4])&&(!r[4]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[3]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,l=0,s="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=s.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(o=[...n].length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&i%3&&!((i+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);let t=[...r[0]][0].length,s=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=s.slice(1,-1);return{type:"em",raw:s,text:e,tokens:this.lexer.inlineTokens(e)}}let c=s.slice(2,-2);return{type:"strong",raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n,o,i=[...r[0]].length-1,a=i,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=l.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n||(o=[...n].length,o!==i))continue;if(r[3]||r[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let t=[...r[0]][0].length,l=e.slice(0,i+r.index+t+o),s=l.slice(i,-i);return{type:"del",raw:l,text:s,tokens:this.lexer.inlineTokens(s)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=n[0],r="mailto:"+e;else{let o;do{o=n[0],n[0]=(null==(t=this.rules.inline._backpedal.exec(n[0]))?void 0:t[0])??""}while(o!==n[0]);e=n[0],r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},xK=class e{constructor(e){o(this,"tokens"),o(this,"options"),o(this,"state"),o(this,"inlineQueue"),o(this,"tokenizer"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||cW,this.options.tokenizer=this.options.tokenizer||new bK,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:mW,block:sK.normal,inline:cK.normal};this.options.pedantic?(t.block=sK.pedantic,t.inline=cK.pedantic):this.options.gfm&&(t.block=sK.gfm,this.options.breaks?t.inline=cK.breaks:t.inline=cK.gfm),this.tokenizer.rules=t}static get rules(){return{block:sK,inline:cK}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(mW.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var r,o,i;this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(mW.tabCharGlobal," ").replace(mW.spaceLine,""));let a=1/0;for(;e;){if(!(e.length<a)){this.infiniteLoopError(e.charCodeAt(0));break}let l;if(a=e.length,null==(o=null==(r=this.options.extensions)?void 0:r.block)?void 0:o.some(n=>!!(l=n.call({lexer:this},e,t))&&(e=e.substring(l.raw.length),t.push(l),!0)))continue;if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length);let n=t.at(-1);1===l.raw.length&&void 0!==n?n.raw+="\n":t.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+l.raw,n.text+="\n"+l.text,this.inlineQueue.at(-1).src=n.text):t.push(l);continue}if(l=this.tokenizer.fences(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.heading(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.hr(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.blockquote(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.list(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.html(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length);let n=t.at(-1);"paragraph"===(null==n?void 0:n.type)||"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+l.raw,n.text+="\n"+l.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},t.push(l));continue}if(l=this.tokenizer.table(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.lheading(e)){e=e.substring(l.raw.length),t.push(l);continue}let s=e;if(null==(i=this.options.extensions)?void 0:i.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(this.state.top&&(l=this.tokenizer.paragraph(s))){let r=t.at(-1);n&&"paragraph"===(null==r?void 0:r.type)?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+l.raw,r.text+="\n"+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(l),n=s.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length);let n=t.at(-1);"text"===(null==n?void 0:n.type)?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+l.raw,n.text+="\n"+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(l);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var n,r,o,i,a;this.tokenizer.lexer=this;let l,s=e,c=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(c=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(c=this.tokenizer.rules.inline.anyPunctuation.exec(s));)s=s.slice(0,c.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(c=this.tokenizer.rules.inline.blockSkip.exec(s));)l=c[2]?c[2].length:0,s=s.slice(0,c.index+l)+"["+"a".repeat(c[0].length-l-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=(null==(r=null==(n=this.options.hooks)?void 0:n.emStrongMask)?void 0:r.call({lexer:this},s))??s;let u=!1,d="",h=1/0;for(;e;){if(!(e.length<h)){this.infiniteLoopError(e.charCodeAt(0));break}let n;if(h=e.length,u||(d=""),u=!1,null==(i=null==(o=this.options.extensions)?void 0:o.inline)?void 0:i.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(e,s,d)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(e,s,d)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(e)){e=e.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let r=e;if(null==(a=this.options.extensions)?void 0:a.startInline){let t,n=1/0,o=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},o),"number"==typeof t&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(r=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(r)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(d=n.raw.slice(-1)),u=!0;let r=t.at(-1);"text"===(null==r?void 0:r.type)?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(!this.options.silent)throw new Error(t);console.error(t)}},wK=class{constructor(e){o(this,"options"),o(this,"parser"),this.options=e||cW}space(e){return""}code({text:e,lang:t,escaped:n}){var r;let o=null==(r=(t||"").match(mW.notSpaceStart))?void 0:r[0],i=e.replace(mW.endingNewline,"")+"\n";return o?'<pre><code class="language-'+hK(o)+'">'+(n?i:hK(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:hK(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+o+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let o=e.rows[t];n="";for(let e=0;e<o.length;e++)n+=this.tablecell(o[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${hK(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=pK(e);if(null===o)return r;let i='<a href="'+(e=o)+'"';return t&&(i+=' title="'+hK(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=pK(e);if(null===o)return hK(n);let i=`<img src="${e=o}" alt="${hK(n)}"`;return t&&(i+=` title="${hK(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:hK(e.text)}},CK=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},kK=class e{constructor(e){o(this,"options"),o(this,"renderer"),o(this,"textRenderer"),this.options=e||cW,this.options.renderer=this.options.renderer||new wK,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new CK}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){var t,n;this.renderer.parser=this;let r="";for(let o=0;o<e.length;o++){let i=e[o];if(null==(n=null==(t=this.options.extensions)?void 0:t.renderers)?void 0:n[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){r+=t||"";continue}}let a=i;switch(a.type){case"space":r+=this.renderer.space(a);break;case"hr":r+=this.renderer.hr(a);break;case"heading":r+=this.renderer.heading(a);break;case"code":r+=this.renderer.code(a);break;case"table":r+=this.renderer.table(a);break;case"blockquote":r+=this.renderer.blockquote(a);break;case"list":r+=this.renderer.list(a);break;case"checkbox":r+=this.renderer.checkbox(a);break;case"html":r+=this.renderer.html(a);break;case"def":r+=this.renderer.def(a);break;case"paragraph":r+=this.renderer.paragraph(a);break;case"text":r+=this.renderer.text(a);break;default:{let e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return r}parseInline(e,t=this.renderer){var n,r;this.renderer.parser=this;let o="";for(let i=0;i<e.length;i++){let a=e[i];if(null==(r=null==(n=this.options.extensions)?void 0:n.renderers)?void 0:r[a.type]){let e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){o+=e||"";continue}}let l=a;switch(l.type){case"escape":case"text":o+=t.text(l);break;case"html":o+=t.html(l);break;case"link":o+=t.link(l);break;case"image":o+=t.image(l);break;case"checkbox":o+=t.checkbox(l);break;case"strong":o+=t.strong(l);break;case"em":o+=t.em(l);break;case"codespan":o+=t.codespan(l);break;case"br":o+=t.br(l);break;case"del":o+=t.del(l);break;default:{let e='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return o}},SK=(n=class{constructor(e){o(this,"options"),o(this,"block"),this.options=e||cW}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?xK.lex:xK.lexInline}provideParser(e=this.block){return e?kK.parse:kK.parseInline}},o(n,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),o(n,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),n),EK=new class{constructor(...e){o(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),o(this,"options",this.setOptions),o(this,"parse",this.parseMarkdown(!0)),o(this,"parseInline",this.parseMarkdown(!1)),o(this,"Parser",kK),o(this,"Renderer",wK),o(this,"TextRenderer",CK),o(this,"Lexer",xK),o(this,"Tokenizer",bK),o(this,"Hooks",SK),this.use(...e)}walkTokens(e,t){var n,r;let o=[];for(let i of e)switch(o=o.concat(t.call(this,i)),i.type){case"table":{let e=i;for(let n of e.header)o=o.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)o=o.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=i;o=o.concat(this.walkTokens(e.items,t));break}default:{let e=i;(null==(r=null==(n=this.defaults.extensions)?void 0:n.childTokens)?void 0:r[e.type])?this.defaults.extensions.childTokens[e.type].forEach(n=>{let r=e[n].flat(1/0);o=o.concat(this.walkTokens(r,t))}):e.tokens&&(o=o.concat(this.walkTokens(e.tokens,t)))}}return o}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new wK(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,o=e.renderer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new bK(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,o=e.tokenizer[r],i=t[r];t[r]=(...e)=>{let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new SK;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,o=e.hooks[r],i=t[r];SK.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&SK.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await o.call(t,e);return i.call(t,n)})();let r=o.call(t,e);return i.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await o.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=o.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return xK.lex(e,t??this.defaults)}parser(e,t){return kK.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},i=this.onError(!!o.silent,!!o.async);if(!0===this.defaults.async&&!1===r.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(t):t,r=await(o.hooks?await o.hooks.provideLexer(e):e?xK.lex:xK.lexInline)(n,o),i=o.hooks?await o.hooks.processAllTokens(r):r;o.walkTokens&&await Promise.all(this.walkTokens(i,o.walkTokens));let a=await(o.hooks?await o.hooks.provideParser(e):e?kK.parse:kK.parseInline)(i,o);return o.hooks?await o.hooks.postprocess(a):a})().catch(i);try{o.hooks&&(t=o.hooks.preprocess(t));let n=(o.hooks?o.hooks.provideLexer(e):e?xK.lex:xK.lexInline)(t,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let r=(o.hooks?o.hooks.provideParser(e):e?kK.parse:kK.parseInline)(n,o);return o.hooks&&(r=o.hooks.postprocess(r)),r}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+hK(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function $K(e,t){return EK.parse(e,t)}$K.options=$K.setOptions=function(e){return EK.setOptions(e),$K.defaults=EK.defaults,uW($K.defaults),$K},$K.getDefaults=sW,$K.defaults=cW,$K.use=function(...e){return EK.use(...e),$K.defaults=EK.defaults,uW($K.defaults),$K},$K.walkTokens=function(e,t){return EK.walkTokens(e,t)},$K.parseInline=EK.parseInline,$K.Parser=kK,$K.parser=kK.parse,$K.Renderer=wK,$K.TextRenderer=CK,$K.Lexer=xK,$K.lexer=xK.lex,$K.Tokenizer=bK,$K.Hooks=SK,$K.parse=$K,$K.options,$K.setOptions,$K.use,$K.walkTokens,$K.parseInline,kK.parse,xK.lex;const TK={col:"https://www.checklistbank.org/dataset/",gbif:"https://www.gbif.org/dataset/",plazi:"http://publication.plazi.org/id/",doi:"https://doi.org/"};class PK extends y.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{this.getData(),Sj().then(e=>{const t={};e.forEach(e=>{t[e.alpha2]=e}),this.setState({countryAlpha2:t})})}),o(this,"getData",()=>{const{datasetKey:e,sourceDatasetKey:t,pageTitleTemplate:n}=this.props;t&&UN(`${uA.dataApi}dataset/${e}/source/${t}`).then(e=>{n&&zM.get(e,"data.title")&&(document.title=n.replace("__dataset__",e.data.title)),this.setState({data:e.data,datasetError:null})}).catch(e=>this.setState({datasetError:e,data:null}))}),o(this,"getRank",()=>{UN(`${uA.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),this.props.auth&&(UN.defaults.headers.common.Authorization=`Basic ${$A(this.props.auth)}`),this.state={datasetLoading:!0,data:null,rank:null,countryAlpha2:{}}}componentDidUpdate(e){e.sourceDatasetKey===this.props.sourceDatasetKey&&e.datasetKey===this.props.datasetKey||this.getData()}render(){const{datasetKey:e}=this.props,{data:t,countryAlpha2:n,datasetError:r}=this.state;return F.jsx(y.Fragment,{children:F.jsxs("div",{className:"catalogue-of-life",style:{background:"#fff",padding:24,minHeight:280,margin:"16px 0",fontSize:"12px"},children:[r&&F.jsx(ml,{message:F.jsx(NA,{error:r}),type:"error"}),t&&F.jsxs(zw,{children:[F.jsxs(Lw,{flex:"auto",children:[F.jsx("h1",{style:{fontSize:"30px",fontWeight:"400",paddingLeft:"10px",display:"inline-block",textTransform:"none"},children:t.title}),t&&F.jsxs(y.Fragment,{children:[F.jsx("br",{}),F.jsx(lW,{style:{marginLeft:"8px",height:"32px"},datasetKey:e,sourceDatasetKey:e!==t.key?t.key:void 0})]})]}),F.jsx(Lw,{style:{textAlign:"right"},children:F.jsx(qF,{auth:this.props.auth,style:{maxWidth:"100%",height:"auto",marginRight:"8px"},datasetKey:e,sourceDatasetKey:t.key})})]}),t&&F.jsxs(y.Fragment,{children:[F.jsxs(E_,{label:"Short name",children:[t.alias,F.jsx(tv,{title:"Visit in COL Checklistbank",getPopupContainer:()=>document.getElementsByClassName("catalogue-of-life")[0],children:F.jsxs(mh,{type:"link",href:`https://www.checklistbank.org/dataset/${t.key}`,children:[F.jsx(ZA,{})," "]})})]}),F.jsx(E_,{label:"Full name",children:t.title}),(t.version||t.issued)&&F.jsx(E_,{label:`${t.version?"Version":""}${t.version&&t.issued?" / ":""}${t.issued?"Issued":""}`,children:(t.version||t.issued)&&`${t.version?t.version:""}${t.issued?" / "+t.issued:""}`}),F.jsx(E_,{label:"DOI",children:t.doi?F.jsxs("a",{href:`https://doi.org/${t.doi}`,children:[F.jsx("img",{src:"https://www.checklistbank.org/images/DOI_logo.png",style:{flex:"0 0 auto",height:"16px"},alt:""}),t.doi]}):"-"}),t.contact&&!zM.isEmpty(t.contact)&&F.jsx(E_,{label:"Contact",children:F.jsx(aW,{countryAlpha2:n,agent:t.contact})}),t.publisher&&!zM.isEmpty(t.publisher)&&F.jsx(E_,{label:"Publisher",children:F.jsx(aW,{countryAlpha2:n,agent:t.publisher})}),t.creator&&F.jsx(E_,{label:"Creator",children:F.jsx(zw,{gutter:[8,8],children:t.creator.map(e=>F.jsx(Lw,{span:8,children:F.jsx(aW,{countryAlpha2:n,agent:e})}))})}),t.editor&&F.jsx(E_,{label:"Editor",children:F.jsx(zw,{gutter:[8,8],children:t.editor.map(e=>F.jsx(Lw,{span:8,children:F.jsx(aW,{countryAlpha2:n,agent:e})}))})}),t.contributor&&F.jsx(E_,{label:"Contributor",children:F.jsx(zw,{gutter:[8,8],children:t.contributor.map(e=>F.jsx(Lw,{span:8,children:F.jsx(aW,{countryAlpha2:n,agent:e})}))})}),F.jsx(E_,{label:"Taxonomic coverage",children:F.jsx(iW,{dataset:t,datasetKey:e})}),F.jsx(oW,{datasetKey:e,dataset:t}),F.jsx(E_,{label:"Abstract",children:t.description?F.jsx("span",{dangerouslySetInnerHTML:{__html:_F.sanitize($K.parse(t.description))}}):""}),F.jsx(E_,{label:"Taxonomic scope",children:t.taxonomicScope||"-"}),F.jsx(E_,{label:"Geographic scope",children:t.geographicScope||"-"}),F.jsx(E_,{label:"Temporal scope",children:t.temporalScope||"-"})," ",F.jsx(E_,{label:"License",children:t.license||"-"}),F.jsx(E_,{label:"Checklist Confidence",children:F.jsx(WS,{value:t.confidence,disabled:!0})}),F.jsx(E_,{label:"Completeness",children:t.completeness}),F.jsx(E_,{label:"Url (website)",children:t.url?F.jsx("a",{href:t.url,target:"_blank",children:t.url}):"-"}),F.jsx(E_,{label:"ISSN",children:t.issn?F.jsx("a",{href:`https://portal.issn.org/resource/ISSN/${t.issn}`,children:t.issn}):"-"}),F.jsx(E_,{label:"GBIF key",children:t.gbifKey?F.jsx("a",{href:`https://www.gbif.org/dataset/${t.gbifKey}`,children:t.gbifKey}):"-"}),F.jsx(E_,{label:"Identifiers",children:t.identifier?F.jsx("ol",{style:{listStyle:"none",paddingInlineStart:"0px"},children:Object.keys(t.identifier).map(e=>F.jsxs("li",{style:{float:"left",marginRight:"8px"},children:[`${e.toUpperCase()}: `,TK[e]?F.jsx("a",{href:`${TK[e]}${t.identifier[e]}`,target:"_blank",children:t.identifier[e]}):t.identifier[e]]}))}):"-"}),F.jsx(E_,{label:"Citation",children:t.citation&&F.jsx("span",{dangerouslySetInnerHTML:{__html:t.citation}})}),F.jsx(E_,{label:"Source",children:t.source&&zM.isArray(t.source)?t.source.map(e=>!!e&&(e.citation?F.jsx("div",{style:{display:"inline-block"},dangerouslySetInnerHTML:{__html:e.citation}}):e.title)):"-"})]})]})})}}const MK=e=>{const t=e.key?{SECTOR_DATASET_KEY:e.key}:{SECTOR_PUBLISHER_KEY:e.id};return zM.isArray(e.sectorModes)&&(t.sectorMode=e.sectorModes),t},OK=(e,t)=>zM.get(e,`metrics.taxaByRankCount.${t||"species"}`)||0,NK=(e,t,n)=>[{title:"Title",dataIndex:["alias"],key:"title",ellipsis:!0,render:(t,n)=>F.jsxs(F.Fragment,{children:[n.id?F.jsxs("span",{children:[F.jsx(PA,{style:{marginLeft:"0px"}})," ","Publisher: "," ",F.jsx("a",{href:`https://www.checklistbank.org/dataset/${e}/publisher/${n.id}`,target:"_blank",rel:"noopener noreferrer",dangerouslySetInnerHTML:{__html:t}})," "]}):F.jsxs(F.Fragment,{children:[" ",!!(null==n?void 0:n.merged)&&F.jsx(PA,{style:{marginLeft:"0px"}})," ",F.jsx(vA,{to:"source",args:n.key,children:n.alias||n.title}),!!(null==n?void 0:n.taxonomicScope)&&F.jsx("br",{})]}),!!(null==n?void 0:n.taxonomicScope)&&(null==n?void 0:n.taxonomicScope)]}),width:"30%",sorter:(e,t)=>e.alias&&t.alias?e.alias.localeCompare(t.alias):0},{title:"Datasets",dataIndex:["metrics","datasetCount"],key:"datasets",render:(e,t)=>zM.get(t,"metrics.datasetCount",1).toLocaleString("en-GB")},{title:F.jsx(tv,{placement:"topLeft",title:"Count of all accepted families including extinct species",getPopupContainer:()=>document.getElementById("familyCount"),children:F.jsx("span",{id:"familyCount",children:"Families"})}),dataIndex:["metrics","taxaByRankCount","family"],key:"species",render:(e,t)=>F.jsx(vA,{to:"search",args:{...MK(t),rank:"family",status:["accepted","provisionally accepted"]},children:OK(t,"family").toLocaleString("en-GB")}),sorter:(e,t)=>OK(e,"family")-OK(t,"family")},{title:F.jsx(tv,{placement:"topLeft",title:"Count of all accepted genera including extinct species",getPopupContainer:()=>document.getElementById("genusCount"),children:F.jsx("span",{id:"genusCount",children:"Genera"})}),dataIndex:["metrics","taxaByRankCount","genus"],key:"species",render:(e,t)=>F.jsx(vA,{to:"search",args:{...MK(t),rank:"genus",status:["accepted","provisionally accepted"]},children:OK(t,"genus").toLocaleString("en-GB")}),sorter:(e,t)=>OK(e,"genus")-OK(t,"genus")},{title:F.jsx(tv,{placement:"topLeft",title:"Count of all accepted species including extinct species",getPopupContainer:()=>document.getElementById("speciesCount"),children:F.jsx("span",{id:"speciesCount",children:"Species"})}),dataIndex:["metrics","taxaByRankCount","species"],key:"species",render:(e,t)=>F.jsx(vA,{to:"search",args:{...MK(t),rank:"species",status:["accepted","provisionally accepted"]},children:OK(t).toLocaleString("en-GB")}),sorter:(e,t)=>OK(e)-OK(t)}].filter(e=>!!n||"datasets"!==e.key);class AK extends y.Component{constructor(e){super(e),o(this,"componentDidMount",()=>{this.getData(),this.getRank()}),o(this,"getData",()=>{this.setState({loading:!0});const{datasetKey:e}=this.props;Promise.all([UN(`${uA.dataApi}dataset/${e}/source?splitMerge=true`),UN(`${uA.dataApi}dataset/${e}/sector/publisher?limit=1000`)]).then(([t,n])=>{let r={};const o=t.data||[],i=zM.get(n,"data.result",[]);return i.length>0&&this.setState({hasPublishers:!0}),Promise.all([...i.map(t=>this.getPublisherMetrics(e,t.id).then(e=>({...t,metrics:e}))),...o.map(t=>this.getMetrics(e,t).then(e=>(r=zM.merge(r,e),{...t,metrics:e})))])}).then(e=>{this.setState({loading:!1,data:e.filter(e=>{var t;return!(null==e?void 0:e.id)||!!(null==e?void 0:e.id)&&(null==(t=null==e?void 0:e.metrics)?void 0:t.sectorCount)>0}).sort((e,t)=>e.id&&!t.id?e:t.id&&!e.id?t:e.alias&&t.alias?0===e.alias.localeCompare(t.alias)?!0===e.merged?1:-1:e.alias.localeCompare(t.alias):0),err:null})}).catch(e=>{this.setState({loading:!1,error:e,data:[]})})}),o(this,"getMetrics",(e,t)=>UN(`${uA.dataApi}dataset/${e}/source/${null==t?void 0:t.key}/metrics?merged=${null==t?void 0:t.merged}`).then(e=>e.data)),o(this,"getPublisherMetrics",(e,t)=>UN(`${uA.dataApi}dataset/${e}/sector/publisher/${t}/metrics`).then(e=>e.data)),o(this,"getRank",()=>{UN(`${uA.dataApi}vocab/rank`).then(e=>this.setState({rank:e.data.map(e=>e.name)}))}),this.props.auth&&(UN.defaults.headers.common.Authorization=`Basic ${$A(this.props.auth)}`),this.state={data:[],rank:null,hasPublishers:!1,loading:!1,showMerged:!0}}render(){const{data:e,loading:t,rank:n,hasPublishers:r,error:o}=this.state,{datasetKey:i}=this.props;return F.jsxs("div",{className:"catalogue-of-life",style:{background:"#fff",padding:24,minHeight:280,margin:"16px 0"},children:[F.jsx(zw,{children:o&&F.jsx(ml,{style:{marginBottom:"10px"},message:F.jsx(NA,{error:o}),type:"error"})}),F.jsxs(zw,{children:[F.jsxs(Lw,{span:12,style:{marginBottom:"8px"},children:["Include ",F.jsx(PA,{})," ",F.jsx(Aw,{checked:this.state.showMerged,onChange:({target:{checked:e}})=>this.setState({showMerged:e})})]}),F.jsx(Lw,{span:12,style:{textAlign:"right",marginBottom:"8px"},children:`Source datasets: ${e.reduce((e,t)=>{var n,r,o;return this.state.showMerged||!(null==t?void 0:t.merged)&&!(null==t?void 0:t.id)?(null==(n=null==t?void 0:t.metrics)?void 0:n.publisherKey)?(null==(r=null==t?void 0:t.metrics)?void 0:r.publisherKey)?e+(null==(o=null==t?void 0:t.metrics)?void 0:o.datasetCount):void 0:e+1:e},0).toLocaleString("en-GB")}`})]}),!o&&F.jsx(dM,{size:"small",columns:NK(i,this.props.auth,r),dataSource:e.filter(e=>{var t,n,r;return!(!this.state.showMerged&&((null==e?void 0:e.merged)||(null==e?void 0:e.id)))&&(!(null==(t=null==e?void 0:e.metrics)?void 0:t.publisherKey)||!(0===(null==(n=null==e?void 0:e.metrics)?void 0:n.datasetCount)||0===(null==(r=null==e?void 0:e.metrics)?void 0:r.usagesCount)))}),loading:t,rowKey:e=>`${e.key||e.id}-${e.merged}`,showSorterTooltip:!1,pagination:!1,expandedRowRender:e=>F.jsxs("div",{style:{marginLeft:"40px"},children:[F.jsxs(zw,{children:[F.jsx(Lw,{flex:"auto",style:{paddingLeft:"8px"},children:F.jsx("h3",{children:null==e?void 0:e.title})}),F.jsx(Lw,{children:F.jsx(qF,{auth:this.props.auth,datasetKey:i,sourceDatasetKey:e.key,style:{maxHeight:"64px"},size:"MEDIUM"})})]}),F.jsx(rW,{metrics:e.metrics,dataset:e,rank:n}),F.jsxs("div",{style:{marginTop:"12px"},children:[(null==e?void 0:e.version)&&F.jsx(E_,{md:8,label:"Dataset version",children:e.version}),(null==e?void 0:e.taxonomicScope)&&F.jsx(E_,{md:8,label:"Taxonomic scope",children:e.taxonomicScope})]}),e.citation&&F.jsx("div",{style:{marginTop:"12px"},children:F.jsx(E_,{md:24,label:"Citation",children:F.jsx("div",{dangerouslySetInnerHTML:{__html:e.citation}})})})]})})]})}}const IK=e=>"hash"===e,RK=e=>{if(IK(e)){const e="undefined"!=typeof window&&window.location.hash||"",t=e.startsWith("#")?e.slice(1):e,n=t.indexOf("?");return{path:n>=0?t.slice(0,n):t,search:n>=0?t.slice(n):""}}return{path:"undefined"!=typeof window&&window.location.pathname||"",search:"undefined"!=typeof window&&window.location.search||""}},LK=(e,t,n)=>{const r=n&&Object.keys(n).length>0?`?${DH.stringify(n,{arrayFormat:"none"})}`:"";if(IK(e)){const e=`${t}${r}`;window.location.hash=e}else{const e=`${t}${r}`;window.history.pushState(null,"",e),window.dispatchEvent(new PopStateEvent("popstate"))}},BK=(e,t,n)=>{if(!t)return null;const r=`${t}${null==n||"object"==typeof n?"":String(n)}${"object"==typeof n&&n&&Object.keys(n).length>0?`?${DH.stringify(n,{arrayFormat:"none"})}`:""}`;return IK(e)?`#${r}`:r},zK=(e,t,n,r)=>{if(!n)return;if("reload"===t){const t=BK(e,n,r);return void(null!=t&&"undefined"!=typeof window&&window.location.assign(t))}let o=n,i=null;"string"==typeof r||"number"==typeof r?o=`${n}${r}`:r&&"object"==typeof r&&(i=r),LK(e,o,i)},DK=(e,t)=>{if(t){if(!e.startsWith(t)){const n=e.indexOf(t);if(n<0)return;return e.slice(n+t.length).split("/").filter(Boolean).pop()}return e.slice(t.length).split("/").filter(Boolean).pop()}};const jK=NM(K(function({datasetKey:e,defaultTaxonKey:t,expandedTaxonKey:n,onExpandedTaxonKeyChange:r,showTreeOptions:o,linkToSpeciesPage:i,citation:a,type:l,insertPlaceholder:s,auth:c,...u}){return F.jsx(mA.Provider,{value:yA(u),children:F.jsx(WA,{datasetKey:e,defaultTaxonKey:t,expandedTaxonKey:n,onExpandedTaxonKeyChange:r,showTreeOptions:o,linkToSpeciesPage:i,citation:a,type:l,insertPlaceholder:s,auth:c})})})),_K=NM(K(function({taxonKey:e,datasetKey:t,pageTitleTemplate:n,identifierLabel:r,showDistributionMap:o,gbifChecklistKey:i,auth:a,...l}){return F.jsx(mA.Provider,{value:yA(l),children:F.jsx(gH,{taxonKey:e,datasetKey:t,pageTitleTemplate:n,identifierLabel:r,showDistributionMap:o,gbifChecklistKey:i,auth:a})})})),FK=NM(K(function({datasetKey:e,filters:t,onFiltersChange:n,defaultTaxonKey:r,citation:o,auth:i,...a}){return i&&(UN.defaults.headers.common.Authorization=`Basic ${$A(i)}`),F.jsx(mA.Provider,{value:yA(a),children:F.jsx(JH,{datasetKey:e,filters:t,onFiltersChange:n,defaultTaxonKey:r,citation:o})})})),HK=NM(K(function({sourceDatasetKey:e,datasetKey:t,pageTitleTemplate:n,auth:r,...o}){return F.jsx(mA.Provider,{value:yA(o),children:F.jsx(PK,{sourceDatasetKey:e,datasetKey:t,pageTitleTemplate:n,auth:r})})})),WK=NM(K(function({datasetKey:e,auth:t,...n}){return F.jsx(mA.Provider,{value:yA(n),children:F.jsx(AK,{datasetKey:e,auth:t})})})),KK=NM(function(e){const t=e.displayName||e.name||"BibTex",n=n=>{const{catalogueKey:r,datasetKey:o,sourceDatasetKey:i,...a}=n;return void 0!==r?(W(t,"the `catalogueKey` prop is deprecated; pass the catalogue as `datasetKey` and the source as `sourceDatasetKey`."),F.jsx(e,{...a,datasetKey:r,sourceDatasetKey:void 0!==i?i:o})):F.jsx(e,{...a,datasetKey:o,sourceDatasetKey:i})};return n.displayName=`withBibTexLegacyShim(${t})`,n}(lW)),VK=NM(({taxonId:e,datasetKey:t,level:n=1,showLevelSwitch:r=!1,darkMode:o,...i})=>{const[a,l]=g.useState(null),[s,c]=g.useState(null),[u,d]=g.useState([]);g.useEffect(()=>{e&&t&&p(),t&&(f(),h())},[e,t]);const h=()=>UN(`${uA.dataApi}vocab/rank`).then(e=>d(e.data.map(e=>e.name))),p=()=>UN(`${uA.dataApi}dataset/${t}/taxon/${e}`).then(e=>l(e.data)),f=()=>UN(`${uA.dataApi}dataset/${t}`).then(e=>c(e.data));return F.jsx(mA.Provider,{value:yA(i),children:a&&s&&u.length>0?F.jsx(uH,{taxon:a,datasetKey:t,rank:u,dataset:s,level:n,showLevelSwitch:r,darkMode:o}):F.jsx(zw,{justify:"center",style:{padding:"24px"},children:F.jsx(Lw,{children:F.jsx(yS,{size:"large"})})})})}),UK=NM(({taxonId:e,datasetKey:t,gbifChecklistKey:n,style:r,...o})=>{const[i,a]=g.useState(null),[l,s]=g.useState(null),[c,u]=g.useState([]);return g.useEffect(()=>{let n=!1;if(a(null),s(null),e&&t)return UN(`${uA.dataApi}vocab/rank`).then(e=>{n||u(e.data.map(e=>e.name))}),UN(`${uA.dataApi}dataset/${t}/taxon/${encodeURIComponent(e)}`).then(e=>{n||a(e.data)}),UN(`${uA.dataApi}dataset/${t}/taxon/${encodeURIComponent(e)}/info`).then(e=>{var t;n||s((null==(t=null==e?void 0:e.data)?void 0:t.distributions)||[])}),()=>{n=!0}},[e,t]),F.jsx(mA.Provider,{value:yA(o),children:i&&null!==l&&0!==c.length?F.jsx(x_,{data:l,datasetKey:t,focalTaxon:i,rankOrder:c,gbifChecklistKey:n,showDistributionMap:!0,style:r}):F.jsx(zw,{justify:"center",style:{padding:"24px"},children:F.jsx(Lw,{children:F.jsx(yS,{size:"large"})})})})});return{...Object.freeze(Object.defineProperty({__proto__:null,BibTex:KK,Search:FK,SourceDataset:HK,SourceDatasetList:WK,Taxon:_K,TaxonBreakdown:VK,TaxonDistribution:UK,Tree:jK,withRouting:function(e,t){const{kind:n,mode:r="path",navigation:o="spa",paths:i={}}=t,a=t=>{const[a,l]=g.useState(0);g.useEffect(()=>((e,t)=>{const n=IK(e)?"hashchange":"popstate";return window.addEventListener(n,t),()=>window.removeEventListener(n,t)})(r,()=>l(e=>e+1)),[]);const{path:s,search:c}=RK(r),u=g.useMemo(()=>((e,t,n)=>({hrefForTaxon:t=>BK(e,n.taxon,t),hrefForTree:t=>BK(e,n.tree,t),hrefForSearch:t=>BK(e,n.search,t),hrefForSource:t=>BK(e,n.source,t),onNavigateToTaxon:r=>zK(e,t,n.taxon,r),onNavigateToTree:r=>zK(e,t,n.tree,r),onNavigateToSearch:r=>zK(e,t,n.search,r),onNavigateToSource:r=>zK(e,t,n.source,r)}))(r,o,i),[]);let d={};if("taxon"===n)d.taxonKey=DK(s,i.taxon);else if("source"===n)d.sourceDatasetKey=DK(s,i.source);else if("taxonBreakdown"===n)d.taxonId=DK(s,i.taxonBreakdown);else if("taxonDistribution"===n)d.taxonId=DK(s,i.taxonDistribution);else if("bibtex"===n)d.sourceDatasetKey=DK(s,i.bibtex);else if("tree"===n){const e=DH.parse(c);d.expandedTaxonKey=e.taxonKey||void 0,d.onExpandedTaxonKeyChange=g.useCallback(e=>{const t=RK(r),n=DH.parse(t.search);e?n.taxonKey=e:delete n.taxonKey,LK(r,t.path||i.tree||"/",n)},[])}else if("search"===n){const e=DH.parse(c,{arrayFormat:"none"});d.filters=e,d.onFiltersChange=g.useCallback(e=>{const t=RK(r);LK(r,t.path||i.search||"/",e)},[])}return F.jsx(e,{...u,...d,...t})};return a.displayName=`withRouting(${e.displayName||e.name||"Component"})`,a}},Symbol.toStringTag,{value:"Module"})),React:v,ReactDOM:B}});
|
|
32
|
+
//# sourceMappingURL=col-browser.min.js.map
|